@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --night: #080a14;
  --night-2: #101426;
  --surface: rgba(22, 27, 48, .92);
  --surface-2: #1d2340;
  --line: rgba(255, 255, 255, .10);
  --ink: #f7f8ff;
  --muted: #9ca5c2;
  --lime: #c8ff45;
  --violet: #7864ff;
  --pink: #ff4fa3;
  --cyan: #4ce3ff;
  --coral: #ff6868;
  --green: #42e6a4;
  --yellow: #ffd45a;
  --blue: #7864ff;
  --purple: #9a62ff;
  --white: #fff;
  --paper: #080a14;
  --shadow: 0 20px 60px rgba(0, 0, 0, .38);
  --soft-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -10%, rgba(120, 100, 255, .22), transparent 35%),
    radial-gradient(circle at -15% 60%, rgba(255, 79, 163, .12), transparent 34%),
    linear-gradient(180deg, #090b17 0%, #0d1120 100%);
  font-family: 'DM Sans', Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .48; }

.shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  margin: auto;
  padding: max(20px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
}

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient::after {
  content: ''; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.ambient i { position: absolute; width: 320px; height: 320px; border-radius: 50%; filter: blur(70px); opacity: .16; animation: drift 12s ease-in-out infinite; }
.ambient i:nth-child(1) { background: var(--violet); top: -160px; right: -130px; }
.ambient i:nth-child(2) { background: var(--pink); bottom: -180px; left: -130px; animation-delay: -4s; }
.ambient i:nth-child(3) { width: 220px; height: 220px; background: var(--cyan); top: 42%; left: -180px; animation-delay: -8s; }
@keyframes drift { 50% { transform: translate(45px, 45px) scale(1.18); } }

.enter { animation: screenIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px) scale(.988); } }

.brand { display: flex; align-items: center; gap: 9px; font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.5px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  color: #0a0d18; background: var(--lime); font-size: 20px; font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 24px rgba(200,255,69,.22);
  transform: rotate(-6deg);
}
.beta { margin-left: 2px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 7px; color: var(--muted); font: 700 8px/1 'DM Sans'; letter-spacing: 1.3px; }
.topbar, .builder-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.hero { padding: 44px 0 24px; text-align: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; border: 1px solid rgba(200,255,69,.22); border-radius: 99px; padding: 7px 11px; color: var(--lime); background: rgba(200,255,69,.06); font-size: 10px; font-weight: 800; letter-spacing: 1.25px; text-transform: uppercase; }
.hero-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero h1 { margin: 17px auto 14px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(44px, 13.4vw, 68px); line-height: .91; letter-spacing: -4px; max-width: 520px; }
.hero h1 span { color: transparent; background: linear-gradient(92deg, var(--lime), var(--cyan)); background-clip: text; -webkit-background-clip: text; }
.hero p { max-width: 390px; margin: 18px auto 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.faces { display: flex; justify-content: center; align-items: center; min-height: 84px; margin: 5px 0 4px; }
.mini-face { width: 72px; height: 72px; margin-left: -13px; overflow: hidden; border: 3px solid var(--night-2); border-radius: 24px; background: var(--surface-2); box-shadow: 0 14px 28px rgba(0,0,0,.32); }
.mini-face:first-child { margin-left: 0; }
.mini-face .portrait { width: 100%; height: 100%; border-radius: 0; }
.mini-face .spark { display: none; }
.float-0 { transform: rotate(-7deg) translateY(5px); }
.float-1 { transform: rotate(3deg) translateY(-4px); }
.float-2 { transform: rotate(-2deg) translateY(2px); }
.float-3 { transform: rotate(7deg) translateY(7px); }

.panel, .room-card, .host-answer, .question-preview, .player-list, .scoreboard {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(29,35,64,.94), rgba(17,21,39,.96));
  box-shadow: var(--shadow);
}
.panel { border-radius: 26px; padding: 18px; }
.glass { backdrop-filter: blur(18px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 17px; border-radius: 14px; padding: 4px; background: rgba(255,255,255,.055); }
.tab { min-height: 43px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 800; }
.tab.active { color: #0b0d18; background: var(--lime); box-shadow: 0 7px 20px rgba(200,255,69,.14); }
.field { display: block; margin: 13px 0; }
.field > span { display: block; margin: 0 0 7px 2px; color: #b5bdd5; font-size: 10px; font-weight: 800; letter-spacing: 1.15px; }
.field input, .field select, .custom-question input {
  width: 100%; min-height: 50px; outline: none; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
  color: var(--ink); background: rgba(4,6,15,.55); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .custom-question input::placeholder { color: #68718f; }
.field input:focus, .field select:focus, .custom-question input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(120,100,255,.13); }
.field select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position: calc(100% - 19px) 22px,calc(100% - 14px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.code-input { text-transform: uppercase; letter-spacing: 5px; font-weight: 800; }

.primary, .secondary, .ask, .guess { width: 100%; min-height: 54px; border-radius: 16px; font-weight: 800; transition: transform .15s, filter .15s; }
.primary { border: 0; padding: 15px 17px; color: #0a0d18; background: linear-gradient(110deg, var(--lime), #a9ff8a); box-shadow: 0 10px 30px rgba(200,255,69,.16), inset 0 1px rgba(255,255,255,.55); }
.primary span { float: right; font-size: 20px; }
.secondary { border: 1px solid var(--line); padding: 14px 16px; color: var(--ink); background: var(--surface-2); }
.primary:active, .secondary:active, .ask:active, .guess:active { transform: scale(.98); }
.text-btn { border: 0; padding: 12px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; }
.hint { margin: 15px 0 0; color: #717b99; text-align: center; font-size: 11px; line-height: 1.5; }
.error { margin-bottom: 12px; border: 1px solid rgba(255,104,104,.3); border-radius: 12px; padding: 11px; color: #ff9c9c; background: rgba(255,104,104,.08); font-size: 13px; }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ''; position: absolute; inset: -80% auto -80% -40%; width: 20%; background: rgba(255,255,255,.35); transform: rotate(18deg); animation: shine 3.7s infinite; }
@keyframes shine { 0%,60% { left: -40%; } 90%,100% { left: 135%; } }

.live-pill { display: inline-flex; align-items: center; border: 1px solid rgba(66,230,164,.22); border-radius: 99px; padding: 7px 10px; color: var(--green); background: rgba(66,230,164,.07); font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }
.live-pill i { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.room-card { margin: 28px 0 25px; overflow: hidden; border-radius: 25px; padding: 21px; text-align: center; position: relative; }
.room-card::before { content: ''; position: absolute; width: 180px; height: 180px; right: -90px; top: -100px; border-radius: 50%; background: rgba(120,100,255,.25); filter: blur(10px); }
.eyebrow { color: var(--lime); font-size: 9px; font-weight: 900; letter-spacing: 1.45px; text-transform: uppercase; }
.room-code { position: relative; margin: 7px 0 11px; font: 700 clamp(42px,14vw,64px)/1 'Space Grotesk'; letter-spacing: 7px; }
.room-qr { position:relative; display:grid; justify-items:center; gap:7px; width:188px; margin:13px auto 15px; border:1px solid rgba(255,255,255,.18); border-radius:22px; padding:11px 11px 9px; color:#cbd2e7; background:rgba(255,255,255,.07); box-shadow:0 15px 35px rgba(0,0,0,.22); font-size:9px; font-weight:800; letter-spacing:.45px; }
.room-qr img { display:block; width:164px; height:164px; border-radius:13px; background:#fff; }
.copy-link { position: relative; border: 1px solid var(--line); border-radius: 99px; padding: 10px 14px; color: var(--ink); background: rgba(255,255,255,.06); font-size: 12px; font-weight: 800; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 24px 2px 11px; }
.section-title h2 { margin: 0; font-family: 'Space Grotesk'; font-size: 20px; letter-spacing: -.7px; }
.pill, .count-badge { display: inline-grid; place-items: center; min-width: 36px; min-height: 27px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 9px; color: #cbd2e7; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 800; }
.count-badge { color: #0a0d18; background: var(--lime); border-color: transparent; font-size: 13px; }
.count-badge.bad { color: #fff; background: var(--coral); }
.deck-strip { display: flex; gap: 9px; overflow-x: auto; padding: 3px 2px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.deck-strip::-webkit-scrollbar { display: none; }
.tiny-character { position: relative; flex: 0 0 92px; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; padding: 0 0 9px; color: var(--ink); background: #171c32; box-shadow: var(--soft-shadow); animation: cardIn .4s both; animation-delay: var(--delay); }
.tiny-character .portrait { width: 100%; height: 80px; border-radius: 0; }
.tiny-character b { display: block; overflow: hidden; padding: 8px 5px 0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.edit-dot { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #111527; background: var(--lime); font-size: 11px; }
.question-preview { display: grid; gap: 7px; border-radius: 18px; padding: 14px 16px; color: var(--muted); font-size: 12px; }
.question-preview b { color: var(--lime); }
.deck-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; text-align: left; }
.deck-cta b { display: block; font-size: 13px; }.deck-cta span { color: var(--muted); font-size: 10px; }
.waiting-copy { color: var(--muted); text-align: center; font-size: 13px; }
.player-list { overflow: hidden; border-radius: 18px; padding: 5px 13px; }
.player { display: grid; grid-template-columns: 38px 1fr auto 8px; align-items: center; gap: 9px; min-height: 54px; border-bottom: 1px solid rgba(255,255,255,.065); }
.player:last-child { border: 0; }
.player-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #121527; font-weight: 900; }
.player-name { font-weight: 700; }.host { border-radius: 99px; padding: 4px 7px; color: var(--lime); background: rgba(200,255,69,.09); font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.status { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }.status.off { background: #596079; box-shadow: none; }
.lobby-actions { display: grid; gap: 4px; margin-top: 20px; }

.builder { padding-bottom: 120px; }
.builder-top { align-items: flex-start; }
.builder-top h1 { margin: 3px 0 0; font: 700 31px/1.02 'Space Grotesk'; letter-spacing: -1.6px; }
.round-btn, .close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface-2); font-size: 21px; }
.builder-lead { margin: 18px 0 27px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.builder-board, .board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.builder-board .tiny-character { width: 100%; min-width: 0; }
.add-card { min-height: 119px; border: 1.5px dashed #59617e; border-radius: 18px; color: var(--lime); background: rgba(255,255,255,.025); }
.add-card span { display: block; font-size: 27px; }.add-card b { font-size: 11px; }
.custom-questions { display: grid; gap: 8px; margin-bottom: 18px; }
.custom-question { display: grid; grid-template-columns: 28px 1fr 38px; align-items: center; gap: 7px; }
.custom-question > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--lime); background: rgba(200,255,69,.09); font-size: 11px; font-weight: 900; }
.custom-question button { width: 38px; height: 38px; border: 1px solid rgba(255,104,104,.18); border-radius: 11px; color: #ff8b8b; background: rgba(255,104,104,.08); font-size: 19px; }
.builder-footer { position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(560px,100%); transform: translateX(-50%); padding: 11px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(8,10,20,.88); backdrop-filter: blur(18px); }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--ink); font-size: 10px; font-weight: 800; }.progress-copy span { color: var(--muted); font-weight: 600; }

.drawer { position: fixed; z-index: 50; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 14px; background: rgba(2,4,10,.75); backdrop-filter: blur(8px); animation: fade .2s both; }
.drawer-card { width: min(530px,100%); max-height: 91dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 28px 28px 20px 20px; padding: 20px; background: #151a2e; box-shadow: 0 -20px 80px rgba(0,0,0,.55); animation: sheetIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; } } @keyframes sheetIn { from { transform: translateY(45px); opacity: .6; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.drawer-head h2 { margin: 4px 0 8px; font: 700 25px 'Space Grotesk'; }
.drag { width: 42px; height: 4px; margin: -7px auto 15px; border-radius: 9px; background: #4c536c; }
.editor-preview { display: flex; align-items: center; gap: 13px; margin: 7px 0 14px; border: 1px solid var(--line); border-radius: 18px; padding: 10px; background: rgba(255,255,255,.035); }
.editor-preview .portrait { flex: 0 0 84px; width: 84px; height: 84px; }.editor-preview strong { font: 700 20px 'Space Grotesk'; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.palette { display: flex; flex-wrap: wrap; gap: 9px; }.palette label { display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid #151a2e; border-radius: 11px; outline: 1px solid var(--line); transition: transform .15s; }.palette label.selected { outline: 2px solid var(--lime); transform: scale(1.1); }.palette input { position: absolute; opacity: 0; pointer-events: none; }
.hair-palette label { border-radius: 50%; }
.traits { display: grid; gap: 8px; }.trait { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 12px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 13px; font-weight: 700; }.trait.checked { border-color: rgba(200,255,69,.35); color: var(--ink); background: rgba(200,255,69,.065); }.trait input { accent-color: var(--lime); }
.danger { width: 100%; margin-top: 9px; border: 1px solid rgba(255,104,104,.22); border-radius: 14px; padding: 12px; color: #ff8c8c; background: rgba(255,104,104,.07); font-weight: 800; }

.secret-title { margin: 38px 0 22px; text-align: center; }.secret-title h1 { margin: 8px auto; max-width: 430px; font: 700 36px/.98 'Space Grotesk'; letter-spacing: -1.8px; }.secret-title p { color: var(--muted); line-height: 1.45; }
.character { position: relative; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 0; color: var(--ink); background: #171c32; box-shadow: var(--soft-shadow); animation: cardIn .45s both; animation-delay: var(--delay); transition: transform .25s, opacity .25s, filter .25s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(13px) scale(.95); } }
.character .portrait { width: 100%; height: clamp(105px,29vw,154px); border-radius: 0; }
.character-name { overflow: hidden; padding: 11px 5px 12px; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.secret-board .character:active, .secret-board .character:hover { transform: translateY(-5px); border-color: var(--lime); box-shadow: 0 15px 35px rgba(200,255,69,.11); }
.portrait { position: relative; display: grid; place-items: end center; overflow: hidden; border-radius: 18px; isolation: isolate; }
.portrait::after { content: ''; position: absolute; inset: 0; z-index: 3; background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 32%); pointer-events: none; }
.avatar-svg { position: relative; z-index: 2; display: block; width: 100%; height: 100%; filter: drop-shadow(0 7px 8px rgba(21,18,34,.16)); }
.spark { position: absolute; z-index: 1; top: 5px; right: 8px; color: rgba(255,255,255,.65); font-size: 13px; }
.card-back { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; opacity: 0; color: #111524; background: var(--lime); font: 900 44px 'Space Grotesk'; transform: rotateY(90deg); transition: .35s; }
.character.eliminated { opacity: .32; filter: grayscale(.8); transform: scale(.93); }.character.eliminated .card-back { opacity: 1; transform: rotateY(0); }
.guess-mode .character:not(.eliminated) { animation: guessPulse 1.25s infinite alternate; border-color: rgba(200,255,69,.42); }
@keyframes guessPulse { to { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(200,255,69,.14); } }
.host-board .character { pointer-events: none; }

.waiting-screen { padding-top: 26px; text-align: center; }.waiting-screen h1 { margin: 15px 0 8px; font: 700 38px/1 'Space Grotesk'; letter-spacing: -1.8px; }.waiting-screen p { color: var(--muted); line-height: 1.55; }
.waiting-orb { display: grid; place-items: center; width: 138px; height: 138px; margin: 74px auto 27px; border: 1px solid rgba(200,255,69,.32); border-radius: 43px; color: #0a0d18; background: linear-gradient(145deg,var(--lime),var(--cyan)); box-shadow: 0 25px 60px rgba(76,227,255,.18); font: 800 75px 'Space Grotesk'; animation: trophy 1.5s ease-in-out infinite alternate; }
@keyframes trophy { to { transform: translateY(-9px) rotate(3deg); } }

.game-shell { max-width: 680px; }
.game-head { margin: -20px -18px 16px; padding: max(18px,env(safe-area-inset-top)) 18px 15px; border-bottom: 1px solid var(--line); background: rgba(12,15,29,.89); backdrop-filter: blur(17px); }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; }.round { margin-top: 2px; color: var(--muted); font-size: 10px; }.game-head-actions { display: flex; align-items: center; gap: 7px; }
.questions-left { border-radius: 10px; padding: 7px 9px; color: var(--muted); background: rgba(255,255,255,.06); font-size: 9px; }.questions-left b { color: var(--lime); font-size: 13px; }
.game-leave { border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; }
.last-answer { margin-top: 11px; overflow: hidden; border-radius: 10px; padding: 10px 12px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.yes { color: var(--green); }.no { color: var(--coral); }.host-gain { margin-left: 5px; border-radius: 99px; padding: 3px 6px; color: #0a0d18; background: var(--lime); font-size: 9px; font-weight: 900; }
.action-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 9px; margin-bottom: 14px; }.ask, .guess { border: 0; color: #0a0d18; font-size: 23px; }.ask { background: var(--lime); }.guess { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }.guess.active { color: #0a0d18; background: var(--cyan); }.ask span,.guess span { display: block; margin-top: 2px; font-size: 10px; }
.pending-banner { margin-bottom: 14px; border: 1px solid rgba(120,100,255,.3); border-radius: 17px; padding: 14px; background: rgba(120,100,255,.09); font-size: 13px; }.pending-banner span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.host-answer { margin-bottom: 15px; border-radius: 22px; padding: 18px; text-align: center; }.host-answer h2 { margin: 9px 0; font: 700 23px/1.12 'Space Grotesk'; }.host-answer p { color: var(--muted); font-size: 11px; }
.yes-no { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }.yes-no button { min-height: 60px; border: 0; border-radius: 15px; color: #091015; font-size: 21px; font-weight: 900; }.yes-no button:first-child { background: var(--green); }.yes-no button:last-child { color: #fff; background: var(--coral); }
.waiting-answer { padding: 25px; }.waiting-dot { width: 11px; height: 11px; margin: auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200,255,69,.3); animation: waitPulse 1.5s infinite; }@keyframes waitPulse { 70% { box-shadow: 0 0 0 18px transparent; } }

.question-sheet { padding-bottom: max(20px,env(safe-area-inset-bottom)); }.repeat-rule { display: grid; grid-template-columns: 43px 1fr; align-items: center; gap: 10px; margin: 2px 0 13px; border: 1px solid rgba(255,212,90,.25); border-radius: 15px; padding: 10px; background: rgba(255,212,90,.07); }.repeat-rule > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: #111524; background: var(--yellow); font: 900 16px 'Space Grotesk'; box-shadow: 0 7px 18px rgba(255,212,90,.16); }.repeat-rule p { margin: 0; color: #aeb6cf; font-size: 10px; line-height: 1.4; }.repeat-rule b { display: block; margin-bottom: 2px; color: var(--yellow); font-size: 11px; }.question-list { display: grid; gap: 8px; }.question-list button { display: grid; grid-template-columns: 28px 1fr 20px; align-items: center; gap: 9px; width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 11px; color: var(--ink); background: rgba(255,255,255,.035); text-align: left; font-size: 12px; font-weight: 700; animation: cardIn .35s both; animation-delay: var(--delay); }.question-list button b { font-weight: 700; }.question-list button small { display: block; margin-top: 4px; color: var(--coral); font-size: 7px; font-weight: 900; letter-spacing: .55px; }.question-list button span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #0c1020; background: var(--lime); font-size: 10px; }.question-list button i { color: var(--lime); font-style: normal; font-size: 16px; }.question-list button.used { border-color: rgba(255,104,104,.24); color: #8e96b0; background: rgba(255,104,104,.045); }.question-list button.used span { color: #fff; background: var(--coral); }.question-list button.used i { color: var(--coral); }
.answer-fx { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; overflow: hidden; color: #081018; animation: answerIn 1.25s both; }.answer-yes { background: var(--green); }.answer-no { color: #fff; background: var(--coral); }.answer-fx small { position: relative; z-index: 2; font-size: 10px; font-weight: 900; letter-spacing: 2px; }.answer-fx strong { position: relative; z-index: 2; font: 800 min(38vw,180px)/.9 'Space Grotesk'; letter-spacing: -10px; }.answer-fx span { position: relative; z-index: 2; margin-top: 13px; font-weight: 800; }.answer-ring { position: absolute; width: 170px; height: 170px; border: 35px solid rgba(255,255,255,.3); border-radius: 50%; animation: ring 1s ease-out both; }@keyframes ring { to { width: 700px; height: 700px; opacity: 0; } }@keyframes answerIn { 0% { clip-path: circle(0 at 50% 50%); } 22%,78% { clip-path: circle(100% at 50% 50%); } 100% { clip-path: circle(0 at 50% 50%); } }
.penalty-fx { position:fixed; z-index:110; inset:0; display:grid; place-content:center; justify-items:center; padding:28px; overflow:hidden; color:#fff; text-align:center; background:radial-gradient(circle at 50% 35%,rgba(255,212,90,.3),transparent 26%),linear-gradient(145deg,#ff4f68,#7b3fff 75%); animation:penaltyIn 2.4s both; }
.penalty-host { color:#0a0d18; background:radial-gradient(circle at 50% 34%,rgba(255,255,255,.72),transparent 25%),linear-gradient(145deg,var(--lime),var(--yellow)); }
.penalty-fx small { position:relative; z-index:2; margin-bottom:8px; font-size:10px; font-weight:950; letter-spacing:2.1px; }
.penalty-fx strong { position:relative; z-index:2; max-width:100%; font:800 clamp(49px,15vw,94px)/.87 'Space Grotesk'; letter-spacing:-4px; text-shadow:0 8px 28px rgba(0,0,0,.18); }
.penalty-fx p { position:relative; z-index:2; max-width:340px; margin:18px 0 0; font-size:16px; line-height:1.45; }
.penalty-fx p b { font-weight:950; }
.penalty-burst { position:absolute; display:grid; place-items:center; width:190px; height:190px; border:24px solid rgba(255,255,255,.18); border-radius:50%; color:rgba(255,255,255,.15); font:900 64px 'Space Grotesk'; animation:penaltyBurst 1.1s ease-out both; }
.penalty-host .penalty-burst { border-color:rgba(8,10,20,.12); color:rgba(8,10,20,.14); }
@keyframes penaltyBurst { from { transform:scale(.1) rotate(-22deg); opacity:1; } to { transform:scale(4) rotate(12deg); opacity:0; } }
@keyframes penaltyIn { 0% { clip-path:circle(0 at 50% 50%); } 15%,84% { clip-path:circle(100% at 50% 50%); } 100% { clip-path:circle(0 at 50% 50%); } }

.result { text-align: center; }.result > h1 { margin: 7px 0; font: 700 47px/.95 'Space Grotesk'; letter-spacing: -2.8px; }.result > p { color: var(--muted); }.result > p strong { color: var(--lime); }.leader-banner { display: flex; align-items: center; justify-content: center; gap: 5px; width: fit-content; margin: 13px auto 0; border: 1px solid rgba(200,255,69,.24); border-radius: 99px; padding: 8px 12px; color: var(--lime); background: rgba(200,255,69,.07); font-size: 11px; }.leader-banner span { margin-left: 4px; color: var(--ink); font-weight: 900; }.score-row small { margin-left: 4px; border-radius: 99px; padding: 3px 5px; color: var(--lime); background: rgba(200,255,69,.08); font-size: 7px; letter-spacing: .7px; }.trophy { display: grid; place-items: center; width: 86px; height: 86px; margin: 55px auto 20px; border-radius: 27px; color: #0b0e18; background: linear-gradient(145deg,var(--lime),var(--yellow)); box-shadow: 0 20px 50px rgba(200,255,69,.2); font-size: 44px; animation: trophy 1s infinite alternate; }.secret-card { width: 160px; margin: 25px auto; border: 2px solid var(--lime); border-radius: 25px; transform: rotate(-2deg); box-shadow: 0 22px 50px rgba(0,0,0,.4); }.secret-card .portrait { height: 155px; border-radius: 22px 22px 0 0; }.winner-card { animation: winner 1.1s cubic-bezier(.2,.9,.2,1); }@keyframes winner { from { opacity: 0; transform: scale(.5) rotate(-20deg); } }
.scoreboard { margin: 22px 0 16px; border-radius: 21px; padding: 5px 15px 10px; text-align: left; }.score-row { display: flex; align-items: center; justify-content: space-between; min-height: 49px; border-bottom: 1px solid rgba(255,255,255,.06); }.score-row:last-child { border: 0; }.score-row i { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 7px; border-radius: 8px; color: #0a0d18; background: var(--lime); font-style: normal; font-size: 10px; }.score-row b { color: var(--lime); }
.confetti { position: fixed; z-index: 90; inset: 0; overflow: hidden; pointer-events: none; }.confetti i { position: absolute; top: -20px; left: var(--x); width: 8px; height: 15px; border-radius: 3px; background: var(--c); animation: confetti 2.8s var(--d) ease-in both; }@keyframes confetti { to { transform: translateY(110vh) rotate(var(--r)); } }

/* Home / login — cinematic game-pass experience */
.home-shell { max-width: 600px; padding-top: max(16px,env(safe-area-inset-top)); }
.home-top { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-online { display: inline-flex; align-items: center; gap: 6px; color: #8c95b1; font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.home-online i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: blink 1.6s infinite; }
.home-hero { position: relative; padding: 27px 0 19px; }
.home-hero .hero-kicker { margin-bottom: 7px; padding: 6px 10px; font-size: 8px; }
.crew-stage { position: relative; width: min(390px,100%); height: 115px; margin: 1px auto -1px; perspective: 700px; }
.crew-stage::before { content: ''; position: absolute; left: 11%; right: 11%; bottom: 6px; height: 35px; border-radius: 50%; background: rgba(120,100,255,.28); filter: blur(25px); }
.crew-stage .faces { position: absolute; z-index: 3; inset: 14px 0 auto; margin: 0; min-height: 90px; }
.crew-stage .mini-face { width: 78px; height: 83px; margin-left: -17px; border: 2px solid rgba(255,255,255,.7); border-radius: 25px; box-shadow: 0 18px 35px rgba(0,0,0,.42),0 0 0 5px rgba(17,21,39,.65); animation: crewFloat 3.8s ease-in-out infinite; }
.crew-stage .mini-face:nth-child(2) { animation-delay: -.7s; }
.crew-stage .mini-face:nth-child(3) { animation-delay: -1.4s; }
.crew-stage .mini-face:nth-child(4) { animation-delay: -2.1s; }
@keyframes crewFloat { 50% { translate: 0 -7px; } }
.mystery-card { position: absolute; z-index: 5; left: 50%; top: 7px; display: grid; place-items: center; width: 52px; height: 70px; border: 2px solid rgba(255,255,255,.68); border-radius: 18px; color: #0a0d18; background: linear-gradient(145deg,var(--lime),#88ffd2); box-shadow: 0 15px 40px rgba(200,255,69,.28); font: 900 34px 'Space Grotesk'; transform: translateX(-50%) rotate(5deg) translateY(-7px); animation: mysteryPulse 2.6s ease-in-out infinite; }
@keyframes mysteryPulse { 50% { transform: translateX(-50%) rotate(-3deg) translateY(-13px) scale(1.05); box-shadow: 0 22px 50px rgba(200,255,69,.4); } }
.clue-bubble { position: absolute; z-index: 6; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: 7px 9px; color: #cfd4e8; background: rgba(20,24,43,.88); box-shadow: 0 8px 20px rgba(0,0,0,.25); backdrop-filter: blur(10px); font-size: 7px; font-weight: 800; white-space: nowrap; }
.clue-one { left: 0; top: 0; transform: rotate(-5deg); animation: clueIn 4s ease-in-out infinite; }
.clue-two { right: 0; bottom: 7px; transform: rotate(4deg); animation: clueIn 4s -2s ease-in-out infinite; }
@keyframes clueIn { 50% { translate: 0 -5px; border-color: rgba(200,255,69,.35); } }
.stage-spark { position: absolute; z-index: 7; color: var(--lime); text-shadow: 0 0 13px var(--lime); animation: twinkle 1.8s infinite alternate; }
.spark-one { left: 11%; bottom: 10px; }.spark-two { right: 10%; top: 4px; animation-delay: -.8s; }
@keyframes twinkle { to { opacity: .25; transform: scale(.55) rotate(90deg); } }
.home-hero h1 { position: relative; z-index: 2; margin: 4px auto 8px; font-size: clamp(42px,12.2vw,65px); line-height: .9; }
.home-hero h1 span { filter: drop-shadow(0 0 22px rgba(76,227,255,.15)); }
.home-hero p { margin-top: 13px; font-size: 14px; }
.login-card { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 29px; padding: 20px; background: linear-gradient(155deg,rgba(32,38,70,.97),rgba(14,18,34,.98)); box-shadow: 0 28px 70px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.07); }
.login-card::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 23px 23px; mask-image: linear-gradient(135deg,#000,transparent 65%); }
.login-glow { position: absolute; z-index: -1; width: 190px; height: 190px; right: -105px; top: -110px; border-radius: 50%; background: var(--violet); filter: blur(45px); opacity: .36; }
.login-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; text-align: left; }
.login-step { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.35px; }
.login-head h2 { margin: 4px 0 0; font: 700 24px/1 'Space Grotesk'; letter-spacing: -1px; }
.pass-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(200,255,69,.25); border-radius: 14px; color: var(--lime); background: rgba(200,255,69,.07); font-size: 21px; }
.login-tabs { gap: 5px; margin-bottom: 16px; padding: 5px; border: 1px solid rgba(255,255,255,.055); background: rgba(4,7,16,.42); }
.login-tabs .tab { min-height: 46px; font-size: 12px; }
.login-tabs .tab i { margin-right: 5px; font-style: normal; font-size: 16px; }
.login-tabs .tab.active { box-shadow: 0 9px 25px rgba(200,255,69,.18); }
.login-card .field { margin: 12px 0; text-align: left; }
.input-wrap { position: relative; display: flex; align-items: center; min-height: 58px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(3,5,14,.62); transition: border-color .2s,box-shadow .2s,transform .2s; }
.input-wrap:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200,255,69,.09),0 12px 28px rgba(0,0,0,.2); transform: translateY(-1px); }
.login-card .field .input-wrap input { min-width: 0; min-height: 56px; border: 0; padding: 13px 74px 13px 54px; background: transparent; box-shadow: none; }
.input-avatar { position: absolute; left: 11px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #0a0d18; background: linear-gradient(145deg,var(--lime),var(--cyan)); font-size: 17px; }
.input-wrap em { position: absolute; right: 11px; border-radius: 99px; padding: 4px 6px; color: #737d9b; background: rgba(255,255,255,.055); font-size: 6px; font-style: normal; font-weight: 900; letter-spacing: .7px; }
.login-card .code-input { letter-spacing: 4px; }
.home-cta { display: flex; align-items: center; justify-content: space-between; min-height: 68px; margin-top: 16px; padding: 11px 12px 11px 17px; border-radius: 19px; text-align: left; box-shadow: 0 15px 35px rgba(200,255,69,.19),inset 0 1px rgba(255,255,255,.6); }
.primary.home-cta .cta-copy { float: none; display: flex; flex-direction: column; color: #090d17; font-size: 17px; line-height: 1.1; }
.home-cta small { margin-bottom: 4px; opacity: .62; font-size: 7px; font-weight: 900; letter-spacing: 1.1px; }
.home-cta > b { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: #fff; background: #101426; box-shadow: 0 7px 16px rgba(0,0,0,.24); font-size: 23px; transition: transform .2s; }
.home-cta:hover > b { transform: translateX(3px) rotate(-4deg); }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 15px; color: #7f89a7; font-size: 7px; font-weight: 800; }
.trust-row span::first-letter { color: var(--lime); }
.home-foot { margin: 15px 0 0; color: #66708d; text-align: center; font-size: 8px; }

/* wow10: motion is a first-class part of the entrance */
.home-shell ~ * {} /* keeps the block easy to identify in built assets */
.home-shell .ambient i { animation-duration: 5.5s; opacity: .24; }
.home-top { animation: homeDrop .65s cubic-bezier(.2,.9,.2,1) both; }
.home-hero .hero-kicker { animation: homeDrop .65s .12s cubic-bezier(.2,.9,.2,1) both,pillGlow 1.7s 1s ease-in-out infinite alternate; }
.crew-stage { animation: stageEnter .85s .18s cubic-bezier(.18,1.25,.35,1) both; }
.home-hero h1 { animation: homeDrop .7s .42s cubic-bezier(.2,.9,.2,1) both; }
.home-hero p { animation: homeDrop .65s .55s cubic-bezier(.2,.9,.2,1) both; }
.login-card { animation: cardLaunch .78s .68s cubic-bezier(.16,1,.3,1) both,cardBreathe 3s 1.6s ease-in-out infinite; }
@keyframes homeDrop { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
@keyframes stageEnter { from { opacity: 0; transform: translateY(25px) scale(.72) rotateX(18deg); } }
@keyframes cardLaunch { from { opacity: 0; transform: translateY(55px) scale(.93); } }
@keyframes cardBreathe { 50% { box-shadow: 0 32px 80px rgba(0,0,0,.54),0 0 35px rgba(120,100,255,.12),inset 0 1px rgba(255,255,255,.09); } }
@keyframes pillGlow { to { box-shadow: 0 0 20px rgba(200,255,69,.18); transform: scale(1.035); } }
.stage-radar { position: absolute; z-index: 1; left: 50%; top: 48%; width: 195px; height: 195px; transform: translate(-50%,-50%); }
.stage-radar::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg,transparent 0 69%,rgba(200,255,69,.38) 78%,transparent 86%); animation: radarSpin 2.4s linear infinite; }
.stage-radar i { position: absolute; inset: 50%; border: 1px solid rgba(200,255,69,.18); border-radius: 50%; animation: radarWave 2.4s ease-out infinite; }
.stage-radar i:nth-child(2) { animation-delay: -.8s; }.stage-radar i:nth-child(3) { animation-delay: -1.6s; }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes radarWave { from { inset: 50%; opacity: .9; } to { inset: 4%; opacity: 0; } }
.motion-trail { position: absolute; z-index: 2; inset: 0; }
.motion-trail i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 11px var(--cyan); animation: particleFly 2.8s linear infinite; }
.motion-trail i:nth-child(1){left:10%;top:65%;animation-delay:-.2s}.motion-trail i:nth-child(2){left:23%;top:14%;animation-delay:-1.3s}.motion-trail i:nth-child(3){left:73%;top:12%;animation-delay:-2.1s}.motion-trail i:nth-child(4){left:88%;top:61%;animation-delay:-.9s}.motion-trail i:nth-child(5){left:35%;top:82%;animation-delay:-1.7s}.motion-trail i:nth-child(6){left:66%;top:84%;animation-delay:-2.5s}
@keyframes particleFly { 0% { opacity: 0; transform: translateY(14px) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-38px) scale(1.5); } }
.crew-stage .mini-face { animation-duration: 2.3s; animation-timing-function: cubic-bezier(.45,0,.55,1); animation-iteration-count: infinite; }
.crew-stage .mini-face:nth-child(1) { animation-name: crewDance1; }.crew-stage .mini-face:nth-child(2) { animation-name: crewDance2; }.crew-stage .mini-face:nth-child(3) { animation-name: crewDance3; }.crew-stage .mini-face:nth-child(4) { animation-name: crewDance4; }
@keyframes crewDance1 { 0%,100% { transform: rotate(-9deg) translateY(8px); } 50% { transform: rotate(-3deg) translate(-5px,-8px) scale(1.05); } }
@keyframes crewDance2 { 0%,100% { transform: rotate(4deg) translateY(-1px); } 50% { transform: rotate(-3deg) translate(2px,9px) scale(.96); } }
@keyframes crewDance3 { 0%,100% { transform: rotate(-3deg) translateY(4px); } 50% { transform: rotate(5deg) translate(3px,-9px) scale(1.04); } }
@keyframes crewDance4 { 0%,100% { transform: rotate(8deg) translateY(9px); } 50% { transform: rotate(2deg) translate(5px,-6px) scale(.98); } }
.mystery-card { overflow: hidden; animation: mysteryFlip 3.2s cubic-bezier(.65,0,.35,1) infinite; transform-style: preserve-3d; }
.mystery-card b { font: 900 34px/1 'Space Grotesk'; }
.mystery-card em { position: absolute; bottom: 6px; font-size: 6px; font-style: normal; font-weight: 900; letter-spacing: 1px; }
.mystery-card::after { content: ''; position: absolute; width: 18px; height: 140%; left: -35px; top: -15px; background: rgba(255,255,255,.7); transform: rotate(18deg); animation: cardSweep 2.2s .8s infinite; }
@keyframes mysteryFlip { 0%,100% { transform: translateX(-50%) rotate(6deg) translateY(-8px) rotateY(0); } 35% { transform: translateX(-50%) rotate(-4deg) translateY(-17px) scale(1.1) rotateY(0); } 55% { transform: translateX(-50%) rotate(-1deg) translateY(-14px) scale(1.06) rotateY(180deg); } 75% { transform: translateX(-50%) rotate(5deg) translateY(-10px) rotateY(360deg); } }
@keyframes cardSweep { 0%,55% { left:-35px } 85%,100% { left:80px } }
.clue-bubble { opacity: 0; animation: cluePop 4.8s ease-in-out infinite; }
.clue-one { animation-delay: 0s; }.clue-two { animation-delay: -3.2s; }.clue-three { left: 5%; bottom: 2px; transform: rotate(-2deg); animation-delay: -1.6s; }
@keyframes cluePop { 0%,23%,100% { opacity: 0; transform: translateY(8px) scale(.72) rotate(-3deg); } 32%,58% { opacity: 1; transform: translateY(-4px) scale(1.06) rotate(2deg); } 68% { opacity: 0; transform: translateY(-15px) scale(.9); } }
.home-hero h1 span { background-size: 220% 100%; animation: titleFlow 2.2s linear infinite; }
@keyframes titleFlow { to { background-position: 220% 0; } }
.login-card::after { content: ''; position: absolute; z-index: -1; left: -40%; top: -80%; width: 35%; height: 250%; opacity: .16; background: linear-gradient(90deg,transparent,#fff,transparent); transform: rotate(18deg); animation: panelSweep 4.2s 1.3s ease-in-out infinite; }
@keyframes panelSweep { 0%,58% { left:-40% } 88%,100% { left:135% } }
.pass-icon { animation: passBounce 1.8s ease-in-out infinite; }
@keyframes passBounce { 50% { transform: translate(3px,-3px) rotate(8deg); box-shadow: 0 0 18px rgba(200,255,69,.16); } }
.home-cta { animation: ctaPulse 1.7s ease-in-out infinite; }
.home-cta > b { animation: arrowGo 1.15s ease-in-out infinite; }
@keyframes ctaPulse { 50% { box-shadow: 0 19px 42px rgba(200,255,69,.31),0 0 0 5px rgba(200,255,69,.055); filter: saturate(1.14) brightness(1.04); } }
@keyframes arrowGo { 50% { transform: translateX(5px) scale(1.06); } }

/* Character identity, gender and seasonal costumes */
.gender-picker { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.gender-picker label { position:relative; display:flex; align-items:center; justify-content:center; gap:8px; min-height:50px; border:1px solid var(--line); border-radius:14px; color:var(--muted); background:rgba(255,255,255,.025); font-size:13px; cursor:pointer; transition:.2s; }
.gender-picker label.selected { border-color:rgba(200,255,69,.55); color:var(--ink); background:rgba(200,255,69,.09); box-shadow:0 0 0 3px rgba(200,255,69,.05); }
.gender-picker input { position:absolute; opacity:0; }
.gender-picker i { display:grid; place-items:center; width:27px; height:27px; border-radius:9px; color:#0b1020; background:var(--lime); font-size:17px; font-style:normal; font-weight:900; }
.male-traits { display:none; grid-template-columns:1fr 1fr; gap:8px; }
.male-traits.show { display:grid; }
.traits { display:grid; gap:8px; margin:13px 0; }
.trait { margin:0; }
.costume { filter:drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.topbar-pills { display:flex; align-items:center; gap:6px; }
.theme-live { display:inline-flex; align-items:center; min-height:29px; border:1px solid var(--line); border-radius:99px; padding:6px 9px; color:#e9edff; background:rgba(255,255,255,.06); font-size:9px; font-weight:900; }
.theme-field { margin:15px 0 4px; text-align:left; }
.theme-field > span { display:block; margin:0 0 8px 2px; color:#b5bdd5; font-size:10px; font-weight:800; letter-spacing:1.15px; }
.theme-picker { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; }
.theme-choice { position:relative; min-width:0; min-height:68px; border:1px solid var(--line); border-radius:14px; padding:7px 2px; color:var(--muted); background:rgba(4,6,15,.48); }
.theme-choice i,.theme-choice b { display:block; }.theme-choice i { font-size:21px; font-style:normal; }.theme-choice b { margin-top:3px; overflow:hidden; font-size:8px; text-overflow:ellipsis; }.theme-choice small { position:absolute; top:-5px; right:-3px; border-radius:99px; padding:2px 4px; color:#091015; background:var(--lime); font-size:5px; font-weight:900; }
.theme-choice.selected { border-color:var(--lime); color:var(--ink); background:rgba(200,255,69,.1); box-shadow:0 0 0 2px rgba(200,255,69,.07); }
.season-fx { position:fixed; z-index:-1; inset:0; overflow:hidden; pointer-events:none; }
.season-fx i { position:absolute; left:var(--x); top:-8vh; opacity:0; animation:seasonFall 7s var(--d) linear infinite; }
@keyframes seasonFall { 10%{opacity:.75} 100%{opacity:0;transform:translate3d(25px,112vh,0) rotate(280deg)} }
body[data-theme="christmas"] { --lime:#f4fff5; --violet:#1f8f55; --pink:#d9364e; background:radial-gradient(circle at 85% 0,rgba(220,45,65,.26),transparent 34%),radial-gradient(circle at 0 70%,rgba(28,145,82,.22),transparent 38%),linear-gradient(180deg,#07150f,#101b18); }
body[data-theme="christmas"] .season-fx i::before { content:'❄'; color:#fff; font-size:17px; }
body[data-theme="halloween"] { --lime:#ff9d2e; --violet:#7d3cff; --pink:#ff7139; background:radial-gradient(circle at 85% 0,rgba(255,111,31,.25),transparent 34%),radial-gradient(circle at 0 70%,rgba(106,43,181,.26),transparent 40%),linear-gradient(180deg,#100815,#190d1d); }
body[data-theme="halloween"] .season-fx i::before { content:'✦'; color:#ff9d2e; font-size:15px; }
body[data-theme="summer"] { --lime:#fff36b; --violet:#168de2; --pink:#ff628a; --cyan:#4df1e0; background:radial-gradient(circle at 90% 0,rgba(255,224,70,.31),transparent 35%),radial-gradient(circle at 0 70%,rgba(22,174,218,.25),transparent 42%),linear-gradient(180deg,#07203a,#0e2538); }
body[data-theme="summer"] .season-fx i::before { content:'✹'; color:#fff36b; font-size:16px; }
body[data-theme="easter"] { --lime:#ffef65; --violet:#9b6cff; --pink:#ff86bc; --cyan:#72e6dc; background:radial-gradient(circle at 88% 0,rgba(255,134,188,.27),transparent 35%),radial-gradient(circle at 0 70%,rgba(114,230,220,.23),transparent 40%),linear-gradient(180deg,#17132c,#16172c); }
body[data-theme="easter"] .season-fx i::before { content:'•'; display:block; width:8px; height:11px; border-radius:50%; color:transparent; background:#ff9fc9; box-shadow:0 0 10px rgba(255,159,201,.5); }

/* Match modes, host rotation and final ceremony */
.mode-field { margin:14px 0 5px; text-align:left; }
.mode-field > span { display:block; margin:0 0 8px 2px; color:#b5bdd5; font-size:10px; font-weight:800; letter-spacing:1.15px; }
.mode-picker { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.mode-choice { min-width:0; min-height:66px; border:1px solid var(--line); border-radius:14px; padding:8px 4px; color:var(--muted); background:rgba(4,6,15,.48); transition:.2s; }
.mode-choice i,.mode-choice b,.mode-choice small { display:block; }
.mode-choice i { font-size:18px; font-style:normal; }.mode-choice b { margin:2px 0; color:var(--ink); font-size:10px; }.mode-choice small { font-size:7px; }
.mode-choice.selected { border-color:var(--cyan); background:rgba(77,241,224,.1); box-shadow:0 0 0 2px rgba(77,241,224,.06); transform:translateY(-1px); }
.sound-field { margin:14px 0 5px; text-align:left; }
.sound-field > span { display:block; margin:0 0 8px 2px; color:#b5bdd5; font-size:10px; font-weight:800; letter-spacing:1.15px; }
.sound-picker { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.sound-choice { min-width:0; min-height:55px; display:grid; grid-template-columns:32px 1fr; grid-template-rows:1fr 1fr; align-items:center; column-gap:8px; border:1px solid var(--line); border-radius:14px; padding:8px 12px; color:var(--muted); background:rgba(4,6,15,.48); text-align:left; transition:.2s; }
.sound-choice i { grid-row:1/3; font-size:20px; font-style:normal; }.sound-choice b { align-self:end; color:var(--ink); font-size:11px; }.sound-choice small { align-self:start; font-size:7px; }
.sound-choice.selected { border-color:var(--lime); background:rgba(200,255,69,.09); box-shadow:0 0 0 2px rgba(200,255,69,.06); transform:translateY(-1px); }
.mode-live { display:inline-flex; align-items:center; min-height:29px; border:1px solid rgba(77,241,224,.25); border-radius:99px; padding:6px 9px; color:var(--cyan); background:rgba(77,241,224,.06); font-size:9px; font-weight:900; }
.next-host-banner { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:2px 11px; width:min(100%,370px); margin:15px auto; border:1px solid rgba(77,241,224,.23); border-radius:18px; padding:12px 15px; text-align:left; background:linear-gradient(120deg,rgba(77,241,224,.09),rgba(140,108,232,.08)); }
.next-host-banner span { grid-row:1/3; display:grid; place-items:center; min-width:55px; min-height:55px; border-radius:15px; color:#07121a; background:var(--cyan); font-size:8px; font-weight:950; text-align:center; }
.next-host-banner b { font-size:18px; }.next-host-banner small { color:var(--muted); font-size:9px; }
.match-final { min-height:100dvh; padding-top:24px; padding-bottom:max(36px,env(safe-area-inset-bottom)); overflow-x:hidden; text-align:center; }
.final-crown { width:82px; height:82px; margin:25px auto 12px; border:1px solid rgba(255,212,90,.4); border-radius:28px; color:#2b2100; background:linear-gradient(145deg,#fff2a7,#ffd45a); box-shadow:0 0 44px rgba(255,212,90,.28); font-size:46px; line-height:82px; transform:rotate(-4deg); animation:trophy .7s both; }
.match-final h1 { margin:7px 0 3px; font-size:clamp(34px,10vw,58px); line-height:.95; letter-spacing:-1.7px; background:linear-gradient(100deg,var(--lime),var(--cyan),#fff); -webkit-background-clip:text; color:transparent; }
.final-winners { margin:9px auto 18px; color:var(--muted); font-size:15px; }.final-winners strong { display:block; margin-top:4px; color:var(--ink); font-size:21px; }
.final-hero { display:grid; grid-template-columns:1.15fr .85fr; gap:9px; max-width:430px; margin:0 auto 17px; }
.final-secret,.final-round-win { min-width:0; border:1px solid var(--line); border-radius:20px; padding:12px; background:rgba(255,255,255,.045); }
.final-secret .portrait { max-width:125px; margin:0 auto 7px; border-radius:15px; }.final-secret span,.final-round-win span { display:block; color:var(--muted); font-size:7px; font-weight:900; letter-spacing:.8px; }.final-secret b,.final-round-win b { display:block; margin-top:3px; font-size:15px; }
.final-round-win { display:flex; flex-direction:column; align-items:center; justify-content:center; background:linear-gradient(150deg,rgba(140,108,232,.15),rgba(244,152,193,.08)); }.final-round-win b { font-size:18px; }.final-round-win small { margin-top:5px; color:var(--lime); font-weight:900; }
.final-ranking { max-width:430px; margin:0 auto; text-align:left; }.final-ranking .podium-1 { border-color:rgba(255,212,90,.4); background:rgba(255,212,90,.08); }.final-ranking .podium-1 i { color:#ffd45a; }
.final-copy { max-width:380px; margin:18px auto 8px; color:var(--muted); font-size:11px; line-height:1.55; }
@media (max-width:420px) { .topbar-pills { flex-wrap:wrap; justify-content:flex-end; }.live-pill { display:none; }.mode-choice { min-height:61px; }.final-hero { grid-template-columns:1fr 1fr; } }

#toast { position: fixed; z-index: 200; left: 50%; bottom: max(22px,env(safe-area-inset-bottom)); max-width: calc(100% - 36px); opacity: 0; pointer-events: none; transform: translate(-50%,20px); border: 1px solid var(--line); border-radius: 99px; padding: 11px 17px; color: var(--ink); background: #222943; box-shadow: var(--shadow); font-size: 12px; font-weight: 800; transition: .25s; }#toast.show { opacity: 1; transform: translate(-50%,0); }
.pop { animation: cardIn .35s both; animation-delay: var(--delay); }
.empty { color: var(--muted); text-align: center; }

@media (max-width: 370px) {
  .shell { padding-left: 13px; padding-right: 13px; }
  .hero h1 { font-size: 43px; }
  .builder-board, .board { gap: 7px; }
  .character-name { font-size: 10px; }
  .two-cols { grid-template-columns: 1fr; }
}
@media (min-width: 700px) {
  .game-shell { max-width: 760px; }.game-shell .board { grid-template-columns: repeat(4,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
