/* Vlad's Games: the hub page, the tutorial player and the animated scenes inside it. */
:root {
  --bg: #100a24; --bg2: #1a1140; --card: #241858; --card2: #30226e; --line: rgba(255, 255, 255, .13);
  --text: #fff7ec; --muted: #b9abe6; --dim: #8f82bf;
  --pink: #ff4fa3; --yellow: #ffd23f; --cyan: #3ee8d4; --purple: #7657ed; --red: #ff5a6e; --green: #3ddc84;
  --radius: 22px;
  --font: "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  min-height: 100vh; color: var(--text); font: 17px/1.45 var(--font); overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 8% -10%, #3d1d75 0%, transparent 60%),
    radial-gradient(900px 650px at 105% 105%, #0f3b52 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 16px 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand .mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 6px 18px rgba(255, 79, 163, .35); }
.top .sp { flex: 1; }
.back { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 4px; }
.back:hover { color: var(--text); }
.lang { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.lang button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--text); color: #1a1140; }

/* ---------- hub page ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.hero { text-align: center; padding: 7vh 0 4vh; }
.hero h1 { margin: 0; font-size: clamp(44px, 9vw, 92px); line-height: 1; font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(90deg, var(--pink), var(--yellow) 50%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(118, 87, 237, .45)); }
.hero p { color: var(--muted); font-size: clamp(18px, 2.6vw, 22px); margin: 14px auto 0; max-width: 560px; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.game {
  display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--bg2)); box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transition: transform .2s, box-shadow .2s;
}
.game:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(0, 0, 0, .45); }
.game .art { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; }
.game .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game h2 { margin: 0; font-size: 30px; line-height: 1.1; }
.game .desc { margin: 0; color: var(--muted); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 12px 20px; border-radius: 16px;
  font-weight: 600; font-size: 18px; text-decoration: none; border: 2px solid var(--line); background: var(--card2); color: var(--text);
  transition: transform .08s, filter .2s; flex: 1 1 auto; text-align: center;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn.play { background: linear-gradient(135deg, var(--pink), #ff7a59); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(255, 79, 163, .35); }
.btn.play.song { background: linear-gradient(180deg, #8a6bff, #6a46f0); box-shadow: 0 8px 24px rgba(118, 87, 237, .45); }
.btn.tut { background: rgba(255, 255, 255, .06); }
.foot { text-align: center; color: var(--dim); font-size: 14px; padding: 30px 16px 40px; }

/* card art: Backwards */
.art.bw { background: radial-gradient(500px 260px at 20% 0%, #4a2190 0%, transparent 70%), radial-gradient(400px 260px at 100% 100%, #0f3b52, transparent 70%), #160d33; }
.bw-logo { font-weight: 700; letter-spacing: .06em; line-height: 1; display: inline-flex; gap: .02em; }
.bw-logo span:nth-child(1) { color: #ff4fa3; } .bw-logo span:nth-child(2) { color: #ff708a; } .bw-logo span:nth-child(3) { color: #ff9171; }
.bw-logo span:nth-child(4) { color: #ffb158; } .bw-logo span:nth-child(5) { color: #ffd23f; } .bw-logo span:nth-child(6) { color: #cfd864; }
.bw-logo span:nth-child(7) { color: #9fdd8a; } .bw-logo span:nth-child(8) { color: #6ee3af; } .bw-logo span:nth-child(9) { color: #3ee8d4; }
.bw-logo span { display: inline-block; }
.bw-logo .flip { transform: scaleX(-1); }
.art.bw .bw-logo { font-size: clamp(34px, 7vw, 58px); }
.art .bars { position: absolute; left: 0; right: 0; bottom: 14%; display: flex; gap: 5px; justify-content: center; align-items: center; height: 40px; opacity: .55; }
.art .bars i { width: 6px; border-radius: 3px; background: var(--cyan); animation: barz 1.2s ease-in-out infinite; }
@keyframes barz { 50% { transform: scaleY(.3); } }
/* card art: Guess the Song */
.art.gts { background: radial-gradient(420px 260px at 10% 0%, #5b2dff55, transparent 70%), radial-gradient(420px 260px at 100% 30%, #ff3d8b44, transparent 70%), #0d0b16; }
.gts-title { font-weight: 700; font-size: clamp(32px, 6vw, 50px); line-height: 1; text-align: center;
  background: linear-gradient(90deg, #fff, #d9ceff 40%, #ff5c8a 75%, #ffc83d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.disc { border-radius: 50%; animation: spin 6s linear infinite;
  background: radial-gradient(circle, #ff5c8a 0 13%, #111 14% 17%, transparent 18%), repeating-radial-gradient(circle, #1b1b22 0 2px, #26262f 3px 4px);
  box-shadow: 0 0 0 3px #ffffff14, 0 10px 40px #000a, 0 0 60px #7657ed44; }
@keyframes spin { to { transform: rotate(360deg); } }
.art.gts .disc { position: absolute; width: 34%; aspect-ratio: 1; right: -6%; bottom: -14%; opacity: .9; }
.art.gts .disc.two { left: -8%; top: -18%; right: auto; bottom: auto; width: 26%; opacity: .5; animation-duration: 9s; }

/* ---------- tutorial page ---------- */
.tut-head { text-align: center; padding: 26px 0 18px; }
.tut-head h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; }
.tut-head p { margin: 8px 0 0; color: var(--muted); }
.below { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
@media (min-width: 860px) { .below { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.panel { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel h2 { font-size: 20px; margin: 0 0 10px; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chapters button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px;
  border: 1px solid transparent; background: rgba(255, 255, 255, .04); font-size: 17px; }
.chapters button:hover { background: rgba(255, 255, 255, .09); }
.chapters button.now { border-color: var(--cyan); background: rgba(62, 232, 212, .1); }
.chapters time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 38px; }
.play-cta { display: flex; flex-direction: column; gap: 10px; }
.play-cta .btn { font-size: 20px; min-height: 62px; }
.play-cta p { margin: 0; color: var(--muted); font-size: 15px; text-align: center; }
details.script summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.script summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
details.script[open] summary::after { transform: rotate(180deg); }
details.script summary::-webkit-details-marker { display: none; }
.script-body h3 { font-size: 16px; color: var(--cyan); margin: 16px 0 6px; }
.script-body p { margin: 0 0 8px; color: var(--muted); }

/* ---------- player ---------- */
.player { border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; background: #0b0720; user-select: none; cursor: pointer; }
.stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; font-family: var(--font); color: var(--text); }
.layer { position: absolute; inset: 0; animation: layer-in .35s ease both; }
.layer.out { animation: layer-out .3s ease both; }
@keyframes layer-in { from { opacity: 0; } }
@keyframes layer-out { to { opacity: 0; } }
.stage.paused *, .stage.paused *::before, .stage.paused *::after { animation-play-state: paused !important; }

.subs { position: absolute; left: 4%; right: 4%; bottom: 4.5%; text-align: center; pointer-events: none; z-index: 5; }
.subs span { display: inline; padding: .16em .5em; line-height: 1.55; border-radius: .3em; background: rgba(0, 0, 0, .78); color: #fff;
  font: 500 max(14px, 2.35cqw)/1.55 var(--font); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.subs span:empty { display: none; }
.screen.ui-on .subs { bottom: 6.5%; }

.overlay { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(8, 4, 24, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bigplay { display: flex; flex-direction: column; align-items: center; gap: max(6px, 1.2cqw); border: 0; background: none; padding: 0; color: #fff; }
.bigplay .circle { width: max(64px, 13cqw); height: max(64px, 13cqw); border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), #ff7a59); box-shadow: 0 10px 40px rgba(255, 79, 163, .55), 0 0 0 max(5px, 1cqw) rgba(255, 255, 255, .15);
  transition: transform .15s; }
.bigplay:hover .circle { transform: scale(1.06); }
.bigplay .circle svg { width: 42%; height: 42%; margin-left: 8%; }
.bigplay b { font-size: max(17px, 3cqw); font-weight: 600; text-shadow: 0 2px 12px #000; }
.bigplay small { font-size: max(13px, 1.8cqw); color: #e7defd; text-shadow: 0 2px 12px #000; }
.endcard { display: flex; flex-direction: column; align-items: center; gap: max(10px, 2cqw); text-align: center; padding: 16px; }
.endcard h3 { margin: 0; font-size: max(20px, 4cqw); }
.endcard .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.endcard .btn { flex: 0 0 auto; font-size: max(15px, 2cqw); min-height: max(44px, 6cqw); }
.spinner { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; z-index: 4;
  border: 5px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; pointer-events: none; }

.controls { position: relative; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #120b2b; border-top: 1px solid var(--line); flex-wrap: wrap; }
.controls button { border: 0; background: transparent; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; position: relative; }
.controls button:hover { background: rgba(255, 255, 255, .1); }
.controls svg { width: 24px; height: 24px; fill: currentColor; }
.controls .time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 6px; white-space: nowrap; }
.controls .cc-btn { width: auto; padding: 0 10px; font-weight: 700; font-size: 13px; gap: 4px; display: inline-flex; align-items: center; }
.controls .cc-btn .cc { border: 2px solid currentColor; border-radius: 5px; padding: 0 4px; line-height: 1.3; }
.controls .cc-btn[aria-pressed="false"] { color: var(--dim); }
.progress { flex: 1 1 160px; min-width: 120px; height: 44px; display: flex; align-items: center; cursor: pointer; position: relative; touch-action: none; }
.progress .track { position: relative; width: 100%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.progress .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--yellow)); width: 0; }
.progress .knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px #0008; left: 0; }
.progress .tick { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: #120b2b; }
.progress:hover .track { height: 8px; }
.menu { position: absolute; right: 8px; bottom: calc(100% + 6px); z-index: 8; background: #1f1548; border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 190px; box-shadow: 0 16px 40px #000a; }
.menu p { margin: 4px 10px 6px; font-size: 13px; color: var(--muted); }
.menu button { display: flex; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font-size: 16px; gap: 8px; }
.menu button:hover { background: rgba(255, 255, 255, .08); }
.menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--cyan); font-weight: 700; }
.player:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.player:fullscreen .screen { width: min(100vw, calc((100vh - 58px) * 16 / 9)); margin: 0 auto; }
@media (max-width: 520px) {
  .controls .time, .controls .c-prev, .controls .c-next { display: none; }
  .controls { flex-wrap: nowrap; gap: 0; padding: 4px; }
  .controls button { width: 40px; }
  .progress { min-width: 0; margin: 0 6px; }
  .player { border-radius: 14px; }
}

/* =====================================================================================================
   Scenes (inside the 1280×720 stage)
   ===================================================================================================== */
.stage.t-bw { background: radial-gradient(900px 600px at 10% -10%, #3a1d6e, transparent 60%), radial-gradient(800px 500px at 110% 110%, #0f3b52, transparent 55%), #140c2e; }
.stage.t-gts { background: radial-gradient(800px 560px at 10% -10%, #5b2dff40, transparent 60%), radial-gradient(700px 520px at 110% 10%, #ff3d8b30, transparent 60%), radial-gradient(800px 600px at 50% 120%, #00c2ff26, transparent 60%), #0d0b16; }
.abs { position: absolute; }
.center-x { left: 50%; transform: translateX(-50%); }
.pop { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.rise { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.hide { opacity: 0; visibility: hidden; }
.show { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.cap { position: absolute; font-size: 26px; font-weight: 600; color: var(--muted); text-align: center; }

/* pointer (a finger that taps) */
.pointer { position: absolute; left: 0; top: 0; z-index: 20; opacity: 0; pointer-events: none; transform: translate(1150px, 820px); }
.pointer .finger { position: absolute; left: -14px; top: -6px; font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 10px #0009); transform-origin: 30% 10%; }
.pointer .ring { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 4px solid #fff; opacity: 0; }
.pointer.tap .ring { animation: ring .55s ease-out; }
.pointer.tap .finger { animation: press .3s ease; }
@keyframes ring { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }
@keyframes press { 50% { transform: scale(.85) translateY(4px); } }
.tapped { animation: tapped .35s ease; }
@keyframes tapped { 50% { transform: scale(.94); filter: brightness(1.3); } }

/* devices */
.dev { position: absolute; }
.tv { border-radius: 22px; background: #07050f; padding: 14px; box-shadow: 0 30px 70px #000b, 0 0 0 2px #2e2550; display: flex; flex-direction: column; }
.tv-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: #1d1838; border-radius: 10px 10px 0 0; }
.tv-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.tv-bar i:nth-child(2) { background: #febc2e; } .tv-bar i:nth-child(3) { background: #28c840; }
.tv-bar .url { margin-left: 14px; flex: 1; height: 28px; border-radius: 999px; background: #0d0a1c; color: #d8d0f5; font-size: 17px; display: flex; align-items: center; padding: 0 14px; white-space: nowrap; overflow: hidden; }
.tv-body { position: relative; flex: 1; overflow: hidden; border-radius: 0 0 10px 10px; }
.tv-stand { position: absolute; width: 180px; height: 22px; border-radius: 0 0 14px 14px; background: #1c1733; }
.phone { border-radius: 42px; background: #07050f; padding: 12px; box-shadow: 0 30px 60px #000b, 0 0 0 2px #2e2550; }
.ph-notch { position: absolute; left: 50%; top: 18px; width: 90px; height: 22px; margin-left: -45px; border-radius: 12px; background: #000; z-index: 3; }
.ph-body { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; }
.phone.sm { border-radius: 26px; padding: 8px; }
.phone.sm .ph-notch { width: 46px; height: 12px; top: 12px; margin-left: -23px; border-radius: 6px; }
.phone.sm .ph-body { border-radius: 19px; }
.t-bw .tv-body, .t-bw .ph-body { background: radial-gradient(500px 300px at 10% -10%, #3a1d6e, transparent 60%), #140c2e; }
.t-gts .tv-body, .t-gts .ph-body { background: radial-gradient(500px 300px at 10% -10%, #5b2dff40, transparent 60%), radial-gradient(400px 300px at 110% 10%, #ff3d8b30, transparent 60%), #0d0b16; }

/* avatars + bubbles */
.av { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 700; color: #fff; width: 64px; height: 64px; font-size: 30px; flex: none; box-shadow: 0 6px 16px #0006; }
.av.lg { width: 110px; height: 110px; font-size: 52px; }
.av.sm { width: 44px; height: 44px; font-size: 22px; }
.person { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 24px; font-weight: 600; }
.person .emo { position: absolute; right: -16px; top: -14px; font-size: 44px; }
.bubble { position: absolute; background: #fff; color: #1a1140; font-weight: 600; font-size: 34px; padding: 14px 24px; border-radius: 26px; white-space: nowrap; box-shadow: 0 10px 30px #0007; }
.bubble::after { content: ""; position: absolute; left: 34px; bottom: -14px; border: 14px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bubble.right::after { left: auto; right: 34px; }
.bubble.weird { background: #ffd23f; }
.bubble.weird::after { border-top-color: #ffd23f; }
.bubble .mirror { display: inline-block; transform: scaleX(-1); }
.note-fly { position: absolute; font-size: 34px; animation: notefly 2.4s ease-in infinite; opacity: 0; }
@keyframes notefly { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(30px, -110px) rotate(20deg); } }
.plus1 { position: absolute; font-size: 44px; font-weight: 700; color: var(--green); text-shadow: 0 4px 16px #0008; animation: plus1 1.4s ease-out both; }
@keyframes plus1 { from { opacity: 0; transform: translateY(20px) scale(.6); } 25% { opacity: 1; transform: none; } to { opacity: 1; transform: translateY(-30px); } }

/* waveform */
.wave { display: flex; align-items: center; gap: 6px; height: 90px; }
.wave i { width: 9px; border-radius: 5px; background: var(--cyan); }
.wave.live i { animation: barz .9s ease-in-out infinite; }
.wave.flip { transform: scaleX(-1); }
.wave.pink i { background: var(--pink); }
.wave.yellow i { background: var(--yellow); }

/* ---------- Backwards Game look ---------- */
.bw { font-family: var(--font); }
.bw.wrapc, .bw .wrapc { position: absolute; inset: 0; padding: 26px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.bw h2 { margin: 0; font-size: 34px; }
.bw h3 { margin: 0; font-size: 24px; }
.bw .muted { color: var(--muted); }
.bw .b { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; padding: 12px 18px; border-radius: 18px;
  font-size: 22px; font-weight: 600; background: #33236e; border: 2px solid var(--line); color: #fff; }
.bw .b.primary { background: linear-gradient(135deg, var(--pink), #ff7a59); border-color: transparent; box-shadow: 0 8px 24px rgba(255, 79, 163, .35); }
.bw .b.yellow { background: var(--yellow); color: #2a1a00; border-color: transparent; }
.bw .b.cyan { background: var(--cyan); color: #05302b; border-color: transparent; }
.bw .b.green { background: var(--green); color: #06301a; border-color: transparent; }
.bw .b.red { background: var(--red); color: #3a0010; border-color: transparent; }
.bw .b.rec { background: #ff3b5c; border-color: transparent; animation: recpulse 1s infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 10px rgba(255, 59, 92, .25); } }
.bw .b.playing { border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(62, 232, 212, .25); }
.bw .b.small { width: auto; min-height: 44px; font-size: 17px; padding: 8px 14px; border-radius: 14px; }
.bw .cardx { background: linear-gradient(180deg, #271a57, #1d1242); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.bw .field { width: 100%; min-height: 58px; border-radius: 16px; border: 2px solid var(--line); background: #0f0926; color: #fff; font-size: 24px; padding: 0 16px; display: flex; align-items: center; text-align: left; }
.bw .field.ph { color: var(--dim); }
.caret::after { content: "|"; margin-left: 2px; animation: blink 1s steps(1) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.bw .pill { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 600; letter-spacing: .15em; }
.bw .roomcode { font-size: 58px; font-weight: 700; letter-spacing: .25em; color: var(--yellow); line-height: 1; }
.bw .switch { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 2px solid var(--line); }
.bw .switch .tx { flex: 1; } .bw .switch b { display: block; font-size: 20px; } .bw .switch small { color: var(--muted); font-size: 15px; display: block; line-height: 1.3; }
.bw .switch .sw { width: 62px; height: 36px; border-radius: 18px; background: rgba(255, 255, 255, .18); position: relative; flex: none; transition: background .25s; }
.bw .switch .sw::after { content: ""; position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .25s; }
.bw .switch.on { border-color: var(--cyan); } .bw .switch.on .sw { background: var(--cyan); } .bw .switch.on .sw::after { transform: translateX(26px); }
.bw .players { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; min-height: 70px; }
.gone { display: none !important; }
.bw .pchip { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 22px; font-weight: 600; }
.bw .result { font-size: 64px; font-weight: 700; }
.bw .btnrow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bw .dialog { position: absolute; left: 14px; right: 14px; bottom: 18px; background: #f4f2fa; color: #1c1830; border-radius: 22px; padding: 18px; text-align: left; box-shadow: 0 -10px 40px #0009; }
.bw .dialog p { margin: 0 0 14px; font-size: 19px; font-weight: 500; }
.bw .dialog .row { display: flex; gap: 10px; }
.bw .dialog .row span { flex: 1; text-align: center; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 18px; background: #e3def3; }
.bw .dialog .row span.allow { background: #3b5bdb; color: #fff; }
.bw .step-card { width: 230px; height: 250px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, #271a57, #1d1242); border: 2px solid var(--line); box-shadow: 0 20px 40px #0007; font-size: 26px; font-weight: 600; text-align: center; padding: 14px; }
.bw .step-card .i { font-size: 86px; line-height: 1; }
.bw .step-card .n { font-size: 18px; color: var(--yellow); letter-spacing: .1em; }
.arrow { font-size: 44px; color: var(--muted); }
.cam { position: absolute; inset: 0; background: radial-gradient(400px 300px at 50% 40%, #3a3550, #121018); }
.cam .frame { position: absolute; left: 50%; top: 40%; width: 190px; height: 190px; margin: -95px; }
.cam .frame::before, .cam .frame::after { content: ""; position: absolute; inset: -10px; border: 5px solid #fff; border-radius: 18px; clip-path: polygon(0 0, 30% 0, 30% 6%, 6% 6%, 6% 30%, 0 30%, 0 0, 100% 0, 100% 30%, 94% 30%, 94% 6%, 70% 6%, 70% 0, 100% 0, 100% 100%, 70% 100%, 70% 94%, 94% 94%, 94% 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 6% 70%, 6% 94%, 30% 94%, 30% 100%, 0 100%); }
.cam .scanline { position: absolute; left: 0; right: 0; height: 4px; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.cam .link { position: absolute; left: 16px; right: 16px; top: 70%; padding: 14px 16px; border-radius: 16px; background: #f4f2fa; color: #1c1830; font-size: 18px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.qr { background: #fff; border-radius: 14px; padding: 10px; display: block; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -30px; width: 14px; height: 22px; border-radius: 3px; animation: fall 2.6s linear infinite; }
@keyframes fall { to { transform: translateY(800px) rotate(540deg); } }

/* ---------- Guess the Song look ---------- */
.gts { font-family: var(--font); }
.gts.wrapc, .gts .wrapc { position: absolute; inset: 0; padding: 20px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.gts.wrapc > *, .bw.wrapc > * { flex: none; }
.gts .hdr { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 20px; font-weight: 700; }
.gts .eq { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.gts .eq i { width: 4px; border-radius: 2px; background: linear-gradient(#ff5c8a, #7657ed); animation: eq 1.1s ease-in-out infinite; height: 100%; }
.gts .eq i:nth-child(2) { animation-delay: -.3s; background: linear-gradient(#ffc83d, #ff5c8a); }
.gts .eq i:nth-child(3) { animation-delay: -.6s; background: linear-gradient(#41c7ff, #7657ed); }
.gts .eq i:nth-child(4) { animation-delay: -.15s; background: linear-gradient(#5be38c, #41c7ff); }
@keyframes eq { 50% { transform: scaleY(.35); } }
.gts .steps { display: flex; gap: 6px; margin-left: auto; margin-right: auto; }
.gts .steps span { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; color: #9c95ae; font-size: 15px; font-weight: 700; border: 1px solid transparent; }
.gts .steps span b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #ffffff14; font-size: 13px; }
.gts .steps span.now { color: #fff; border-color: #ffffff2e; background: #ffffff10; }
.gts .steps span.now b { background: #7657ed; box-shadow: 0 0 14px #7657edaa; }
.gts .steps span.done b { background: #176b47; }
.gts .title { margin: 4px 0 0; font-size: 40px; font-weight: 700; }
.gts .kicker { color: #ffc83d; letter-spacing: 4px; font-size: 16px; font-weight: 700; }
.gts .lead { color: #c7c2d5; font-size: 20px; max-width: 760px; margin: 0; }
.gts .cards { display: flex; gap: 16px; justify-content: center; width: 100%; }
.gts .mc { flex: 1; max-width: 330px; text-align: left; border-radius: 20px; padding: 18px; background: #1c1830cc; border: 2px solid #ffffff24; box-shadow: 0 6px 0 #00000040; transition: border-color .25s, box-shadow .25s, transform .25s; }
.gts .mc .i { font-size: 46px; line-height: 1; }
.gts .mc b { display: block; font-size: 26px; margin: 8px 0 4px; }
.gts .mc small { display: block; color: #c7c2d5; font-size: 16px; line-height: 1.35; }
.gts .mc.picked { border-color: #ff5c8a; box-shadow: 0 6px 0 #00000040, 0 0 0 4px #ff5c8a33, 0 14px 40px #ff5c8a33; transform: translateY(-4px); }
.gts .mc.gold.picked { border-color: #ffc83d; box-shadow: 0 0 0 4px #ffc83d26; background: #ffc83d14; }
.gts .gb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 22px; font-size: 20px; font-weight: 600;
  background: #ffffff1c; color: #fff; box-shadow: 0 4px 0 #00000055; }
.gts .gb.primary { background: linear-gradient(180deg, #8a6bff, #6a46f0); box-shadow: 0 4px 0 #3d23a8, 0 8px 24px #7657ed55; }
.gts .gb.link { background: none; box-shadow: none; color: #b9aaff; text-decoration: underline; font-size: 19px; }
.gts .gb.surprise { background: linear-gradient(90deg, #ff5c8a, #ffc83d, #5be38c, #41c7ff, #b388ff, #ff5c8a); background-size: 300% 100%; color: #160d24; animation: rainbow 6s linear infinite; font-size: 24px; padding: 16px 30px; }
@keyframes rainbow { to { background-position: 300% 0; } }
.gts .tabs { display: flex; gap: 8px; justify-content: center; }
.gts .tabs span { padding: 10px 16px; border-radius: 12px; background: #ffffff10; font-weight: 600; font-size: 18px; border: 2px solid transparent; }
.gts .tabs span.on { background: #7657ed; border-color: #b9aaff; }
.gts .search { display: flex; gap: 10px; width: 640px; }
.gts .search .in { flex: 1; height: 54px; border-radius: 14px; border: 2px solid #ffffff24; background: #ffffff0d; font-size: 21px; display: flex; align-items: center; padding: 0 16px; text-align: left; }
.gts .search .in.ph { color: #9c95ae; }
.gts .qchips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; }
.gts .qchips span { padding: 10px 16px; border-radius: 999px; background: #ffffff12; border: 2px solid #ffffff24; font-size: 18px; font-weight: 600; transition: all .25s; }
.gts .qchips span.on { border-color: #ffc83d; background: #ffc83d22; transform: scale(1.06); }
.gts .rchips { display: flex; gap: 8px; justify-content: center; }
.gts .rchips span { min-width: 56px; padding: 8px 12px; border-radius: 12px; background: #ffffff12; border: 2px solid #ffffff24; font-size: 19px; font-weight: 700; }
.gts .rchips span.on { border-color: #ffc83d; background: #ffc83d22; color: #ffc83d; }
.gts .slider { display: flex; align-items: center; gap: 12px; font-size: 18px; color: #c7c2d5; width: 280px; }
.gts .slider .bar { flex: 1; height: 8px; border-radius: 4px; background: #ffffff22; position: relative; }
.gts .slider .bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 50%); border-radius: 4px; background: #ffc83d; }
.gts .slider output { color: #ffc83d; font-weight: 700; width: 48px; text-align: right; }
.gts .code { font-size: 56px; font-weight: 700; letter-spacing: 14px; color: #ffc83d; text-shadow: 0 0 24px #ffc83d66; line-height: 1; }
.gts .teams { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gts .team { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 19px; color: #160d24; }
.gts .field { width: 100%; height: 56px; border-radius: 14px; border: 2px solid #ffffff24; background: #ffffff0d; font-size: 22px; display: flex; align-items: center; padding: 0 14px; text-align: left; }
.gts .field.ph { color: #9c95ae; }
.gts .lbl { font-size: 16px; color: #c7c2d5; text-align: left; width: 100%; margin-bottom: -6px; }
.gts .cover { width: 100%; height: 150px; border-radius: 20px; background: linear-gradient(135deg, #2a1f55, #161226); border: 1px solid #ffffff24; display: flex; align-items: center; justify-content: center; gap: 28px; position: relative; overflow: hidden; }
.gts .cover .disc { width: 110px; height: 110px; flex: none; }
.gts .cover .ct { font-size: 34px; font-weight: 700; }
.gts .cover .ct small { display: block; font-size: 20px; color: #c7c2d5; font-weight: 500; }
.gts .prog { position: absolute; left: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #ff5c8a, #ffc83d); width: 0; transition: width 6s linear; }
.gts .answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.gts .ans { display: flex; align-items: center; gap: 14px; text-align: left; padding: 10px 16px; border-radius: 16px; background: #ffffff12; border: 2px solid #ffffff24; font-size: 21px; font-weight: 600; transition: all .3s; }
.gts .ans kbd { width: 34px; height: 34px; border-radius: 9px; background: #ffffff1c; display: grid; place-items: center; font: 700 17px var(--font); flex: none; }
.gts .ans small { display: block; color: #c7c2d5; font-weight: 500; font-size: 17px; }
.gts .ans.good { background: #176b47; border-color: #36c98b; }
.gts .ans.dim { opacity: .4; }
.gts .ans.bad { background: #762e38; border-color: #dc6877; }
.gts .toast { padding: 10px 20px; border-radius: 14px; background: #176b47; border: 2px solid #36c98b; font-size: 22px; font-weight: 700; }
.gts .foot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gts .countnum { font-size: 260px; font-weight: 700; line-height: 1; background: linear-gradient(180deg, #fff, #ff5c8a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 40px #ff5c8a66); }
.gts .countnum.go { background: linear-gradient(90deg, #ffc83d, #5be38c); -webkit-background-clip: text; background-clip: text; font-size: 200px; }
.gts .podium { display: flex; align-items: flex-end; gap: 18px; justify-content: center; height: 330px; }
.gts .pod { width: 210px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gts .pod .blk { width: 100%; border-radius: 18px 18px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 12px; font-size: 52px; transition: height .8s cubic-bezier(.2, .8, .2, 1); height: 0; overflow: hidden; }
.gts .pod b { font-size: 22px; }
.gts .pod .pts { color: #ffc83d; font-weight: 700; font-size: 20px; }
.gts .board { width: 640px; display: grid; gap: 12px; }
.gts .row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 18px; background: #1c1830cc; border: 2px solid #ffffff24; font-size: 26px; font-weight: 600; }
.gts .row .dot { width: 22px; height: 22px; border-radius: 50%; }
.gts .row .q { margin-left: auto; color: #ffc83d; font-size: 30px; letter-spacing: 4px; animation: wob 1.2s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(-6deg) scale(1.1); } }
.gts .streak { font-size: 90px; font-weight: 700; }
.gts .meter { display: flex; gap: 12px; }
.gts .meter span { width: 130px; height: 74px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; font-weight: 700; background: #ffffff10; border: 2px solid #ffffff24; color: #ffffff55; transition: all .3s; }
.gts .meter span.on { background: linear-gradient(180deg, #ffb13d, #ff5c3d); color: #fff; border-color: #ffc83d; box-shadow: 0 0 30px #ff7a3d77; }
.hl { box-shadow: 0 0 0 5px #ffc83d, 0 0 40px #ffc83d88 !important; border-color: #ffc83d !important; }
