/* WySign — Sign Language Trivia (Lee Wyatt Corp) */
:root {
  --ws-bg: #050508;
  --ws-card: #12101c;
  --ws-card2: #181527;
  --ws-line: rgba(168, 85, 247, .25);
  --ws-grad: linear-gradient(90deg, #a855f7, #ec4899);
  --ws-text: #e7e3f5;
  --ws-dim: #9b93b8;
  --ws-good: #34d399;
  --ws-bad: #f87171;
}
body { background: var(--ws-bg); color: var(--ws-text); }
.ws-main { max-width: 1080px; margin: 0 auto; padding: 74px 16px 60px; min-height: 70vh; }
.ws-grad { background: var(--ws-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Landing */
.ws-landing { text-align: center; padding: 18px 8px 44px; }
.ws-landing h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 10px; }
.ws-tag { color: var(--ws-dim); max-width: 640px; margin: 0 auto 26px; line-height: 1.6; }
.ws-feature-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.ws-feat { background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: 14px; padding: 16px 18px; width: 250px; text-align: left; }
.ws-feat b { display: block; margin-bottom: 6px; }
.ws-feat span { color: var(--ws-dim); font-size: .9rem; line-height: 1.5; }
.ws-cta { display: inline-block; background: var(--ws-grad); color: #fff; font-weight: 700; padding: 14px 30px; border-radius: 999px; text-decoration: none; }
.ws-note { color: var(--ws-dim); font-size: .85rem; margin-top: 16px; }

/* Game shell */
.ws-shell { background: linear-gradient(180deg, #14101f 0%, #0e0b16 100%); border: 1px solid var(--ws-line); border-radius: 18px; overflow: hidden; position: relative; box-shadow: 0 18px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(168,85,247,.08), 0 0 80px rgba(168,85,247,.07); }
.ws-shell::before { content: ""; position: absolute; inset: -40%; pointer-events: none; background:
  radial-gradient(circle at 22% 18%, rgba(168,85,247,.10), transparent 42%),
  radial-gradient(circle at 80% 78%, rgba(236,72,153,.08), transparent 45%);
  animation: wsamb 16s ease-in-out infinite alternate; }
@keyframes wsamb { from { transform: translate(0,0) } to { transform: translate(4%,3%) } }
.ws-shell > * { position: relative; }
.ws-shell:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: var(--ws-bg); }
.ws-topbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(168,85,247,.45), rgba(236,72,153,.45), transparent) 1; flex-wrap: wrap; background: rgba(5,5,8,.35); }
.ws-topbar .ws-logo { font-weight: 800; font-size: 1.1rem; }
.ws-topbar .sp { flex: 1; }
.ws-ibtn { background: var(--ws-card2); color: var(--ws-text); border: 1px solid var(--ws-line); border-radius: 10px; padding: 8px 13px; cursor: pointer; font-size: .9rem; }
.ws-ibtn { -webkit-tap-highlight-color: transparent; }
.ws-ibtn:focus { outline: none; }
.ws-ibtn:focus-visible { outline: 2px solid #a855f7; outline-offset: 2px; }
@media (hover: hover) { .ws-ibtn:hover { border-color: #a855f7; } }
.ws-ibtn.on { background: var(--ws-grad); border-color: transparent; color: #fff; }

/* Screens */
.ws-screen { padding: 26px 20px 34px; }
.ws-screen[hidden] { display: none; }

/* Menu */
.ws-menu { text-align: center; }
.ws-menu h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 18px 0 6px; }
.ws-menu p { color: var(--ws-dim); margin-bottom: 26px; }
.ws-menu-btns { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
.ws-bigbtn { background: var(--ws-grad); border: 0; color: #fff; font-size: 1.15rem; font-weight: 800; padding: 16px; border-radius: 14px; cursor: pointer; }
.ws-bigbtn.alt { background: var(--ws-card2); border: 1px solid var(--ws-line); color: var(--ws-text); }
.ws-bigbtn { -webkit-tap-highlight-color: transparent; position: relative; overflow: hidden; transition: transform .1s, filter .12s; }
.ws-bigbtn:focus { outline: none; }
.ws-bigbtn:focus-visible { outline: 2px solid #ec4899; outline-offset: 2px; }
@media (hover: hover) { .ws-bigbtn:hover { filter: brightness(1.12); transform: translateY(-2px); } }
.ws-bigbtn:active { transform: scale(.98); }
.ws-bigbtn:not(.alt) { box-shadow: 0 8px 28px rgba(168,85,247,.35); }
.ws-mystats { margin-top: 22px; color: var(--ws-dim); font-size: .92rem; }
.ws-mystats b { color: var(--ws-text); }

/* Quiz */
.ws-hud { display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; font-weight: 700; }
.ws-hud .lab { color: var(--ws-dim); font-weight: 400; font-size: .8rem; display: block; text-align: center; }
.ws-hud > div { text-align: center; min-width: 72px; }
#ws-streak.hot { color: #fbbf24; text-shadow: 0 0 14px rgba(251,191,36,.6); }
.ws-lives { letter-spacing: 3px; }
.ws-timerbar { height: 8px; background: var(--ws-card2); border-radius: 99px; overflow: hidden; max-width: 560px; margin: 0 auto 18px; }
.ws-timerbar i { display: block; height: 100%; background: var(--ws-grad); border-radius: 99px; transition: width .15s linear; }
.ws-timerbar.danger i { background: #f87171; }
.ws-stagewrap { display: flex; justify-content: center; margin-bottom: 8px; }
.ws-stage { position: relative; width: min(100%, 460px); aspect-ratio: 4/3; background: radial-gradient(ellipse at 50% 30%, #221c38 0%, #0b0913 78%); border: 1px solid rgba(168,85,247,.35); border-radius: 16px; box-shadow: inset 0 0 50px rgba(0,0,0,.5), 0 6px 26px rgba(0,0,0,.4), 0 0 24px rgba(168,85,247,.10); }
.ws-stage canvas { width: 100%; height: 100%; display: block; }
.ws-replay { position: absolute; right: 10px; bottom: 10px; }
.ws-prompt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; }
.ws-prompt[hidden] { display: none; }
.ws-prompt.word { font-size: clamp(1.8rem, 7vmin, 3.2rem); font-weight: 900; background: var(--ws-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ws-prompt.pic { font-size: clamp(4rem, 18vmin, 9rem); }
.ws-prompt.fact { font-size: clamp(1.05rem, 3.4vmin, 1.5rem); font-weight: 700; line-height: 1.45; }
.ws-spell-pos { position: absolute; left: 12px; bottom: 12px; color: var(--ws-dim); font-size: .8rem; }
.ws-q { text-align: center; color: var(--ws-dim); margin: 10px 0 14px; }
.ws-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; margin: 0 auto; }
.ws-ans { background: linear-gradient(180deg, #1c1830, #15121f); border: 1px solid var(--ws-line); color: var(--ws-text); font-size: 1.02rem; font-weight: 700; padding: 16px 12px; border-radius: 13px; cursor: pointer; transition: transform .08s, border-color .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent; outline: none; }
.ws-ans:focus { outline: none; }
.ws-ans:focus-visible { outline: 2px solid #a855f7; outline-offset: 2px; }
@media (hover: hover) {
  .ws-ans:hover:not(:disabled) { border-color: #a855f7; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(168,85,247,.18); }
}
.ws-ans:active:not(:disabled) { transform: scale(.97); }
.ws-ans.correct { background: rgba(52, 211, 153, .18); border-color: var(--ws-good); color: var(--ws-good); }
.ws-ans.wrong { background: rgba(248, 113, 113, .16); border-color: var(--ws-bad); color: var(--ws-bad); }
.ws-ans:disabled { cursor: default; }
.ws-answers.minis { max-width: 720px; }
.ws-ans.mini { padding: 0; aspect-ratio: 4/3; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1d1830 0%, #0b0913 75%); }
.ws-ans.mini canvas { width: 100%; height: 100%; display: block; pointer-events: none; }
.ws-feedback { text-align: center; min-height: 26px; margin-top: 12px; font-weight: 700; }
.ws-feedback .desc { display: block; color: var(--ws-dim); font-weight: 400; font-size: .88rem; margin-top: 4px; }
.ws-float { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); font-size: 1.6rem; font-weight: 900; pointer-events: none; animation: wsfloat 1s ease-out forwards; color: #fbbf24; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
@keyframes wsfloat { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -70px; } }
@keyframes wsshake { 0%,100%{ transform: translateX(0);} 25%{ transform: translateX(-8px);} 75%{ transform: translateX(8px);} }
.ws-shake { animation: wsshake .3s; }

/* Game over */
.ws-over { text-align: center; }
.ws-over h2 { font-size: 2.2rem; margin: 10px 0; }
.ws-over .big { font-size: 3.4rem; font-weight: 900; }
.ws-over .row { color: var(--ws-dim); margin: 6px 0; }
.ws-over .row b { color: var(--ws-text); }
.ws-newbest { color: #fbbf24; font-weight: 800; margin: 10px 0; font-size: 1.15rem; }

/* Leaderboard */
.ws-lb { max-width: 560px; margin: 0 auto; }
.ws-lb h2 { text-align: center; margin-bottom: 18px; }
.ws-lb-row { display: flex; align-items: center; gap: 12px; background: var(--ws-card2); border: 1px solid var(--ws-line); border-radius: 12px; padding: 11px 15px; margin-bottom: 8px; }
.ws-lb-row.me { border-color: #a855f7; background: rgba(168,85,247,.1); }
.ws-lb-rank { width: 34px; font-weight: 900; color: var(--ws-dim); }
.ws-lb-row:nth-child(1) .ws-lb-rank { color: #fbbf24; }
.ws-lb-row:nth-child(2) .ws-lb-rank { color: #cbd5e1; }
.ws-lb-row:nth-child(3) .ws-lb-rank { color: #d97706; }
.ws-lb-name { flex: 1; font-weight: 700; overflow-wrap: anywhere; }
.ws-lb-score { font-weight: 800; }
.ws-lb-sub { color: var(--ws-dim); font-size: .78rem; display: block; font-weight: 400; }
.ws-lb-empty { text-align: center; color: var(--ws-dim); padding: 30px 0; }

/* Library */
.ws-lib-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.ws-chipbtn { background: var(--ws-card2); border: 1px solid var(--ws-line); color: var(--ws-dim); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .85rem; -webkit-tap-highlight-color: transparent; }
.ws-chipbtn:focus { outline: none; }
.ws-chipbtn.on { background: var(--ws-grad); color: #fff; border-color: transparent; }
.ws-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ws-lib-card { background: var(--ws-card2); border: 1px solid var(--ws-line); border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; }
@media (hover: hover) { .ws-lib-card:hover { border-color: #a855f7; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(168,85,247,.14); } }
.ws-lib-card { transition: transform .1s, border-color .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent; }
.ws-lib-card b { display: block; }
.ws-lib-card span { color: var(--ws-dim); font-size: .75rem; }
/* Library viewer modal */
.ws-modal { position: fixed; inset: 0; background: rgba(3,2,8,.82); display: flex; align-items: center; justify-content: center; z-index: 1200; padding: 16px; }
.ws-modal[hidden] { display: none !important; }
.ws-modal-card { background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: 18px; padding: 20px; max-width: 520px; width: 100%; text-align: center; max-height: 92vh; overflow: auto; }
.ws-modal-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.ws-modal-card .cat { color: var(--ws-dim); font-size: .85rem; margin-bottom: 12px; display: block; }
.ws-modal-card .desc { color: var(--ws-dim); line-height: 1.55; margin: 12px 0 16px; }
.ws-modal-stage { width: 100%; aspect-ratio: 4/3; background: radial-gradient(ellipse at 50% 30%, #1d1830 0%, #0b0913 75%); border: 1px solid var(--ws-line); border-radius: 14px; }
.ws-modal-stage canvas { width: 100%; height: 100%; display: block; }
.ws-back { margin-top: 18px; text-align: center; }

@media (max-width: 560px) {
  .ws-main { padding-top: 84px; }
  .ws-answers:not(.minis) { grid-template-columns: 1fr; }
  .ws-screen { padding: 18px 12px 24px; }
}

/* ── Fullscreen: game only, everything scales to fit, no scrolling ────────── */
html.ws-noscroll, html.ws-noscroll body { overflow: hidden !important; height: 100%; }
.ws-shell.fs { position: fixed; inset: 0; z-index: 5000; border-radius: 0; border: 0; }
.ws-shell.fs, .ws-shell:fullscreen {
  display: flex; flex-direction: column; width: 100%; height: 100dvh; background: var(--ws-bg);
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
.ws-shell.fs .ws-topbar, .ws-shell:fullscreen .ws-topbar { padding: 6px 12px; flex-wrap: nowrap; }
.ws-shell.fs .ws-screen, .ws-shell:fullscreen .ws-screen {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 8px clamp(8px, 2vw, 24px);
}
.ws-shell.fs .ws-screen[hidden], .ws-shell:fullscreen .ws-screen[hidden] { display: none; }
/* quiz layout fills the height: hud / timer / stage(flex) / answers / feedback */
.ws-shell.fs #ws-screen-quiz, .ws-shell:fullscreen #ws-screen-quiz { justify-content: flex-start; }
.ws-shell.fs .ws-hud, .ws-shell:fullscreen .ws-hud { margin-bottom: 6px; font-size: clamp(.85rem, 2.4vmin, 1.1rem); }
.ws-shell.fs .ws-timerbar, .ws-shell:fullscreen .ws-timerbar { margin-bottom: 8px; }
.ws-shell.fs .ws-stagewrap, .ws-shell:fullscreen .ws-stagewrap { flex: 1; min-height: 0; margin-bottom: 4px; }
.ws-shell.fs .ws-stage, .ws-shell:fullscreen .ws-stage { width: auto; height: 100%; max-width: 100%; aspect-ratio: 4/3; }
.ws-shell.fs .ws-q, .ws-shell:fullscreen .ws-q { margin: 2px 0 6px; font-size: clamp(.78rem, 2.2vmin, 1rem); }
.ws-shell.fs .ws-answers, .ws-shell:fullscreen .ws-answers { gap: clamp(6px, 1.2vmin, 12px); }
.ws-shell.fs .ws-answers:not(.minis), .ws-shell:fullscreen .ws-answers:not(.minis) { grid-template-columns: 1fr 1fr; }
.ws-shell.fs .ws-ans:not(.mini), .ws-shell:fullscreen .ws-ans:not(.mini) {
  padding: clamp(8px, 1.8vmin, 16px) 10px; font-size: clamp(.8rem, 2.4vmin, 1.05rem);
}
.ws-shell.fs .ws-ans.mini, .ws-shell:fullscreen .ws-ans.mini { aspect-ratio: auto; height: clamp(70px, 16vmin, 130px); }
.ws-shell.fs .ws-feedback, .ws-shell:fullscreen .ws-feedback { min-height: 20px; margin-top: 6px; font-size: clamp(.78rem, 2.2vmin, .95rem); }
.ws-shell.fs .ws-feedback .desc, .ws-shell:fullscreen .ws-feedback .desc { font-size: clamp(.68rem, 1.9vmin, .85rem); }
.ws-shell.fs .ws-back, .ws-shell:fullscreen .ws-back { margin-top: 4px; }
.ws-shell.fs .ws-back .ws-ibtn, .ws-shell:fullscreen .ws-back .ws-ibtn { padding: 4px 10px; font-size: .75rem; }
.ws-shell.fs #ws-screen-lib, .ws-shell:fullscreen #ws-screen-lib,
.ws-shell.fs #ws-screen-lb, .ws-shell:fullscreen #ws-screen-lb { overflow-y: auto; justify-content: flex-start; }
.ws-shell.fs .ws-menu-btns .ws-bigbtn, .ws-shell:fullscreen .ws-menu-btns .ws-bigbtn { padding: clamp(10px, 2.2vmin, 16px); font-size: clamp(.95rem, 2.8vmin, 1.15rem); }

/* ── Polish: confetti + question fade ─────────────────────────────────────── */
.ws-conf { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; z-index: 50; pointer-events: none; animation: wsconf linear forwards; }
@keyframes wsconf { from { transform: translateY(0) rotate(0deg); opacity: 1; } to { transform: translateY(110vh) rotate(560deg); opacity: .7; } }
.ws-fadein { animation: wsqfade .32s ease-out; }
@keyframes wsqfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ws-timerbar i { box-shadow: 0 0 10px rgba(168,85,247,.5); }
.ws-timerbar.danger i { box-shadow: 0 0 12px rgba(248,113,113,.7); }
#ws-streak.hot { animation: wspulse 1s ease-in-out infinite; }
@keyframes wspulse { 50% { transform: scale(1.12); text-shadow: 0 0 22px rgba(251,191,36,.9); } }
.ws-ans.correct { box-shadow: 0 0 18px rgba(52,211,153,.25); }
.ws-ans.wrong { box-shadow: 0 0 18px rgba(248,113,113,.22); }

/* ── Settings popup + ghost buttons ───────────────────────────────────────── */
.ws-ibtn.ws-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); color: var(--ws-dim); }
@media (hover: hover) { .ws-ibtn.ws-ghost:hover { color: var(--ws-text); border-color: rgba(168,85,247,.5); background: rgba(168,85,247,.08); } }
#ws-btn-set { font-size: 1.05rem; padding: 8px 11px; }
.ws-set-card { max-width: 360px; text-align: left; }
.ws-set-card h3 { text-align: center; margin-bottom: 14px; }
.ws-set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 2px; }
.ws-set-lab { font-weight: 700; }
.ws-set-lab.sub { color: var(--ws-dim); font-weight: 400; font-size: .85rem; padding-left: 26px; }
.ws-switch { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.ws-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ws-switch i { position: absolute; inset: 0; background: var(--ws-card2); border: 1px solid var(--ws-line); border-radius: 99px; transition: background .15s, border-color .15s; pointer-events: none; }
.ws-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ws-dim); transition: transform .15s, background .15s; }
.ws-switch input:checked + i { background: linear-gradient(90deg, rgba(168,85,247,.5), rgba(236,72,153,.5)); border-color: transparent; }
.ws-switch input:checked + i::after { transform: translateX(20px); background: #fff; }
.ws-slider { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 99px; background: var(--ws-card2); outline: none; cursor: pointer; }
.ws-slider:disabled { opacity: .35; cursor: default; }
.ws-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #ec4899); border: 2px solid #fff2; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.ws-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #ec4899); border: 2px solid #fff2; }
.ws-set-card .ws-ibtn { width: 100%; }

/* ── Fullscreen-only game + lobby ─────────────────────────────────────────── */
.ws-launch { border: 0; cursor: pointer; font-size: 1.25rem; box-shadow: 0 10px 34px rgba(168,85,247,.4); -webkit-tap-highlight-color: transparent; transition: transform .1s, filter .12s; }
@media (hover: hover) { .ws-launch:hover { filter: brightness(1.12); transform: translateY(-2px); } }
.ws-launch:active { transform: scale(.97); }
/* tighter gap between the topbar and the game content */
.ws-shell.fs .ws-topbar, .ws-shell:fullscreen .ws-topbar { padding: 5px 12px; }
.ws-shell.fs .ws-screen, .ws-shell:fullscreen .ws-screen { padding-top: 4px; }
.ws-shell.fs #ws-screen-quiz .ws-hud, .ws-shell:fullscreen #ws-screen-quiz .ws-hud { margin-top: 0; }

/* ── Custom icon buttons (quiet, blended) ─────────────────────────────────── */
.ws-iconbtn { background: transparent; border: 0; color: #6e6590; padding: 7px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.ws-iconbtn:focus { outline: none; }
.ws-iconbtn:focus-visible { outline: 2px solid #a855f7; outline-offset: 2px; }
@media (hover: hover) { .ws-iconbtn:hover { color: var(--ws-text); background: rgba(168,85,247,.10); } }
.ws-iconbtn:active { transform: scale(.92); }
.ws-replay.ws-iconbtn { position: absolute; right: 8px; bottom: 8px; background: rgba(5,5,8,.45); color: #8d83ad; backdrop-filter: blur(3px); }
.ws-bigbtn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ws-bigbtn svg { flex: none; opacity: .9; }
/* true/false answers: two wide buttons */
.ws-answers.tf { grid-template-columns: 1fr 1fr; max-width: 480px; }
.ws-answers.tf .ws-ans { font-size: 1.15rem; padding: 20px 12px; }

/* ── WyGames hub ──────────────────────────────────────────────────────────── */
.wg-hub { text-align: center; padding: 6px 8px 10px; }
.wg-title { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 6px; }
.wg-sub { color: var(--ws-dim); margin-bottom: 28px; }
.wg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 420px)); gap: 18px; justify-content: center; }
.wg-card { background: linear-gradient(180deg, #14101f, #0e0b16); border: 1px solid var(--ws-line); border-radius: 18px; overflow: hidden; text-align: left; box-shadow: 0 14px 44px rgba(0,0,0,.45), 0 0 40px rgba(168,85,247,.06); transition: transform .12s, border-color .15s, box-shadow .15s; }
@media (hover: hover) { .wg-card:hover { transform: translateY(-3px); border-color: rgba(168,85,247,.5); box-shadow: 0 18px 54px rgba(0,0,0,.5), 0 0 46px rgba(168,85,247,.12); } }
.wg-art { position: relative; aspect-ratio: 16/9; background: radial-gradient(ellipse at 50% 30%, #221c38 0%, #0b0913 78%); border-bottom: 1px solid rgba(168,85,247,.2); }
.wg-art canvas { width: 100%; height: 100%; display: block; }
.wg-badge { position: absolute; top: 10px; left: 10px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #b9a8e8; background: rgba(5,5,8,.55); border: 1px solid rgba(168,85,247,.3); padding: 3px 9px; border-radius: 99px; backdrop-filter: blur(3px); }
.wg-info { padding: 16px 18px 20px; }
.wg-info h3 { font-size: 1.35rem; margin-bottom: 2px; }
.wg-kind { color: var(--ws-dim); font-size: .8rem; display: block; margin-bottom: 10px; }
.wg-info p { color: var(--ws-dim); font-size: .9rem; line-height: 1.55; margin-bottom: 14px; }
.wg-info .ws-launch { width: 100%; text-align: center; }
.wg-stats { margin-top: 12px; font-size: .82rem; }
/* modals sit above fullscreen content */
.ws-modal { z-index: 6000; }
.wg-info a.ws-launch { display: block; text-decoration: none; }

.wg-wyworld-shell { position: fixed; inset: 0; z-index: 7000; background: #050508; }
.wg-wyworld-shell[hidden] { display: none !important; }
.wg-wyworld-shell.on { display: block; }
.wg-wyworld-shell iframe { width: 100%; height: 100%; border: 0; display: block; background: #050508; }
.wg-wyworld-close { position: fixed; right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); z-index: 7001; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(8,8,13,.82); color: #fff; font: 800 .88rem system-ui, sans-serif; padding: 9px 13px; cursor: pointer; backdrop-filter: blur(8px); }
html.wg-world-open, html.wg-world-open body { overflow: hidden !important; height: 100%; }
