:root {
  --bg: #090713;
  --bg-soft: #100d20;
  --panel: rgba(21, 17, 42, .88);
  --panel-solid: #15112a;
  --line: rgba(180, 163, 230, .16);
  --line-bright: rgba(167, 139, 250, .4);
  --text: #f6f3ff;
  --muted: #aaa3bf;
  --purple: #8b5cf6;
  --purple-light: #b9a1ff;
  --rose: #f43f5e;
  --mint: #44e6b1;
  --warning: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --radius: 22px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--text); background: var(--bg); font: 16px/1.6 var(--font-body); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; transform: translateY(-150%); border-radius: 10px; background: #fff; color: #090713; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(100px); opacity: .13; pointer-events: none; }
.ambient-one { width: 480px; height: 480px; top: 80px; right: -180px; background: #7c3aed; }
.ambient-two { width: 400px; height: 400px; top: 760px; left: -250px; background: #f43f5e; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px var(--font-display); letter-spacing: -.4px; }
.brand img { filter: drop-shadow(0 0 12px rgba(139, 92, 246, .4)); }
.brand span span { color: var(--purple-light); }
.icon-button { display: grid; width: 44px; height: 44px; padding: 11px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.025); transition: border-color .2s, color .2s, background .2s; }
.icon-button:hover { border-color: var(--line-bright); color: var(--text); background: rgba(139,92,246,.1); }
.icon-button svg { width: 20px; fill: currentColor; }
.icon-button .sound-off, .icon-button[aria-pressed="true"] .sound-on { display: none; }
.icon-button[aria-pressed="true"] .sound-off { display: block; }

.hero { display: grid; width: min(1120px, calc(100% - 40px)); min-height: 575px; margin: 0 auto; padding: 78px 0 70px; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 45px; }
.eyebrow, .section-kicker { color: var(--purple-light); font-size: 12px; font-weight: 800; letter-spacing: 2.1px; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid rgba(68,230,177,.2); border-radius: 999px; color: #9df3d6; background: rgba(68,230,177,.06); letter-spacing: 1.2px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.hero h1 { max-width: 680px; margin: 24px 0 22px; font: 700 clamp(52px, 7vw, 82px)/.96 var(--font-display); letter-spacing: -3.5px; }
.hero h1 span { display: block; color: transparent; background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 48%, #fb7185 100%); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p { max-width: 575px; margin: 0 0 30px; color: #c2bbd2; font-size: 18px; line-height: 1.65; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; min-height: 50px; padding: 0 22px; align-items: center; justify-content: center; gap: 10px; border-radius: 13px; font-weight: 800; text-decoration: none; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.primary-button { border: 1px solid #9f7aea; color: white; background: linear-gradient(135deg, #7c3aed, #6d28d9); box-shadow: 0 10px 30px rgba(124,58,237,.25), inset 0 1px rgba(255,255,255,.22); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(124,58,237,.36), inset 0 1px rgba(255,255,255,.22); }
.primary-button:disabled { cursor: not-allowed; opacity: .42; filter: grayscale(.4); }
.primary-button svg, .secondary-button svg, .seo-copy aside a svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-cta { min-height: 56px; padding: 0 27px; }
.hero-stats { display: flex; margin-top: 34px; gap: 27px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.hero-stats span { display: flex; align-items: baseline; gap: 6px; }
.hero-stats strong { color: var(--text); font: 700 18px var(--font-display); letter-spacing: 0; text-transform: none; }

.hero-visual { position: relative; height: 430px; }
.orbit { position: absolute; border: 1px solid rgba(167,139,250,.12); border-radius: 50%; }
.orbit-one { inset: 4% 8%; animation: orbit 18s linear infinite; }
.orbit-two { inset: 18% 21%; border-style: dashed; animation: orbit 13s linear reverse infinite; }
.orbit::before { position: absolute; width: 8px; height: 8px; content: ""; top: -4px; left: 50%; border-radius: 50%; background: var(--rose); box-shadow: 0 0 15px var(--rose); }
.role-card { position: absolute; z-index: 2; top: 36px; left: 50%; display: flex; width: 268px; height: 354px; padding: 36px 25px; transform: translateX(-50%) rotate(2deg); flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(185,161,255,.45); border-radius: 28px; background: linear-gradient(160deg, rgba(49,36,89,.96), rgba(14,11,31,.99)); box-shadow: 0 38px 100px rgba(0,0,0,.55), 0 0 60px rgba(124,58,237,.2), inset 0 1px rgba(255,255,255,.12); animation: float 5s ease-in-out infinite; }
.role-card::after { position: absolute; inset: 0; content: ""; opacity: .13; background: repeating-linear-gradient(0deg, transparent 0 3px, #a78bfa 4px); pointer-events: none; }
.scanner { position: absolute; z-index: 1; top: 0; width: 100%; height: 2px; background: var(--mint); box-shadow: 0 0 18px var(--mint); animation: scan 3.8s ease-in-out infinite; }
.role-card svg { width: 94px; margin-bottom: 27px; fill: none; stroke: #aa8cff; stroke-width: 2.8; filter: drop-shadow(0 0 12px rgba(139,92,246,.55)); }
.role-card small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 2.5px; }
.role-card strong { margin: 6px 0 10px; color: #ff718b; font: 700 30px var(--font-display); letter-spacing: 1px; text-shadow: 0 0 22px rgba(244,63,94,.42); }
.role-card > span { color: var(--muted); font-size: 12px; }
.crew-card { position: absolute; z-index: 1; width: 155px; height: 82px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(23,18,47,.8); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.crew-card .mini-avatar { float: left; display: grid; width: 38px; height: 38px; margin-right: 10px; place-items: center; border-radius: 10px; color: #ddd5ff; background: rgba(139,92,246,.28); font: 700 15px var(--font-display); }
.crew-card i { display: block; width: 55px; height: 6px; margin: 5px 0; border-radius: 10px; background: rgba(255,255,255,.13); }
.crew-card i:last-child { width: 37px; opacity: .55; }
.card-left { top: 128px; left: -2px; transform: rotate(-8deg); }
.card-right { right: -8px; bottom: 92px; transform: rotate(8deg); }
.sus-chip { position: absolute; z-index: 3; right: 23px; top: 67px; padding: 8px 14px; transform: rotate(7deg); border: 1px solid rgba(244,63,94,.4); border-radius: 8px; color: #ff8ca0; background: rgba(244,63,94,.12); font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }

.game-shell { width: min(1120px, calc(100% - 40px)); min-height: 600px; margin: 25px auto 110px; padding: 35px; scroll-margin-top: 20px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(21,17,42,.97), rgba(12,9,27,.97)); box-shadow: var(--shadow); }
.game-topline { display: flex; align-items: center; justify-content: space-between; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.game-topline h2 { margin: 3px 0 0; font: 700 28px var(--font-display); letter-spacing: -.6px; }
.game-toolbar { display: flex; align-items: center; gap: 18px; }
.progress-steps { display: flex; align-items: center; }
.progress-steps span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #777087; font-size: 11px; font-weight: 800; transition: all .3s; }
.progress-steps span.active { border-color: var(--purple); color: white; background: var(--purple); box-shadow: 0 0 18px rgba(139,92,246,.35); }
.progress-steps span.complete { border-color: rgba(68,230,177,.6); color: var(--mint); background: rgba(68,230,177,.1); }
.progress-steps i { width: 28px; height: 1px; background: var(--line); }
.game-alert { margin: 20px 0 -5px; padding: 11px 15px; border: 1px solid rgba(244,63,94,.35); border-radius: 10px; color: #ffacbb; background: rgba(244,63,94,.08); font-weight: 700; }
.screen { display: none; padding-top: 30px; animation: enter .35s ease both; }
.screen.active { display: block; }
.setup-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.022); }
.setup-main, .setup-options { padding: 24px; }
.panel-heading, .option-title { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-heading > div, .option-title { display: flex; align-items: center; gap: 12px; }
.panel h3 { margin: 0; font: 700 20px var(--font-display); }
.step-label { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #c7b9ff; background: rgba(139,92,246,.15); font-size: 10px; font-weight: 900; }
.counter { padding: 4px 10px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.05); font-size: 11px; font-weight: 800; }
.field-help, .option-title p, .option-row p { margin: 7px 0 18px; color: var(--muted); font-size: 12px; }
.player-list { display: grid; max-height: 274px; gap: 8px; overflow: auto; padding-right: 3px; scrollbar-color: var(--purple) transparent; }
.player-row { display: flex; min-height: 47px; padding: 5px 7px 5px 6px; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; background: rgba(255,255,255,.035); transition: border-color .2s, background .2s; }
.player-row:focus-within { border-color: var(--line-bright); background: rgba(139,92,246,.07); }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #e9e3ff; font: 700 13px var(--font-display); background: var(--avatar, #5b46a8); }
.player-row input { width: 100%; min-width: 0; padding: 6px 4px; border: 0; outline: 0; color: var(--text); background: transparent; font-weight: 800; }
.remove-player { display: grid; width: 44px; height: 44px; flex: 0 0 auto; padding: 12px; place-items: center; border: 0; border-radius: 9px; color: #777087; background: transparent; transition: color .2s, background .2s; }
.remove-player:hover { color: #ff8ca0; background: rgba(244,63,94,.1); }
.remove-player svg, .add-player svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.add-player { display: flex; width: 100%; min-height: 44px; margin-top: 10px; align-items: center; justify-content: center; gap: 8px; border: 1px dashed rgba(167,139,250,.3); border-radius: 11px; color: var(--purple-light); background: rgba(139,92,246,.04); font-size: 13px; font-weight: 800; transition: border .2s, background .2s; }
.add-player:hover { border-color: var(--purple); background: rgba(139,92,246,.1); }
.option-block { padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.option-title { justify-content: flex-start; }
.option-title p { margin-bottom: 15px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.category { position: relative; display: flex; min-height: 88px; padding: 10px 5px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.018); transition: border .2s, background .2s, color .2s; }
.category:hover, .category.active { border-color: rgba(167,139,250,.55); color: var(--text); background: rgba(139,92,246,.1); }
.category.active::after { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; content: ""; border-radius: 50%; background: var(--purple-light); box-shadow: 0 0 8px var(--purple); }
.category svg { width: 22px; margin-bottom: 5px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.category span { font-size: 11px; font-weight: 900; }
.category small { color: #6f687d; font-size: 9px; }
.custom-words { margin-top: 14px; }
.custom-words label { display: flex; margin-bottom: 6px; justify-content: space-between; font-size: 12px; font-weight: 800; }
.custom-words label span { color: var(--muted); font-weight: 600; }
.custom-words textarea { width: 100%; padding: 10px 12px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--text); background: rgba(0,0,0,.2); font-size: 13px; }
.custom-words textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.option-row { display: flex; min-height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.option-row:last-child { border: 0; }
.option-row label { font-size: 13px; font-weight: 900; }
.option-row p { margin: 1px 0 0; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.18); }
.segmented button { width: 44px; height: 44px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-weight: 900; }
.segmented button.active { color: white; background: var(--purple); }
.option-row select { min-height: 44px; padding: 0 31px 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--text); background: #16122d; font-weight: 800; }
.start-button { display: flex; min-width: 235px; margin: 27px 0 0 auto; }

.reveal-stage { display: flex; width: min(500px, 100%); margin: 0 auto; padding: 5px 20px 15px; flex-direction: column; align-items: center; text-align: center; }
.pass-badge { margin-bottom: 10px; padding: 5px 10px; border: 1px solid rgba(68,230,177,.2); border-radius: 999px; color: #94efd1; background: rgba(68,230,177,.06); font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
#revealProgress { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.reveal-stage h3 { margin: 0; font: 700 27px var(--font-display); }
.reveal-stage h3 span { color: var(--purple-light); }
#revealInstruction { margin: 5px 0 19px; color: var(--muted); font-size: 13px; }
.secret-card { position: relative; width: min(320px, 86vw); height: 240px; padding: 0; overflow: hidden; border: 1px solid rgba(167,139,250,.48); border-radius: 24px; outline: none; color: var(--text); background: transparent; box-shadow: 0 25px 65px rgba(0,0,0,.4), 0 0 30px rgba(124,58,237,.13); user-select: none; touch-action: none; }
.secret-card:focus-visible { box-shadow: 0 0 0 4px rgba(185,161,255,.35), 0 25px 65px rgba(0,0,0,.4); }
.card-face { position: absolute; inset: 0; display: flex; padding: 25px; flex-direction: column; align-items: center; justify-content: center; transition: opacity .15s, transform .15s; }
.card-cover { background: radial-gradient(circle at 50% 30%, #32245c, #15102e 70%); }
.card-cover::after { position: absolute; inset: 0; content: ""; opacity: .1; background: repeating-linear-gradient(0deg, transparent 0 4px, #a78bfa 5px); }
.card-cover svg { width: 70px; margin-bottom: 17px; fill: none; stroke: #b59bff; stroke-width: 2.5; filter: drop-shadow(0 0 12px rgba(139,92,246,.5)); }
.card-cover strong { z-index: 1; font: 700 22px var(--font-display); }
.card-cover span { z-index: 1; margin-top: 3px; color: var(--muted); font-size: 11px; }
.card-secret { opacity: 0; transform: scale(.96); background: radial-gradient(circle at 50% 20%, #473078, #19132f 68%); }
.secret-card.revealed .card-cover { opacity: 0; transform: scale(1.04); }
.secret-card.revealed .card-secret { opacity: 1; transform: scale(1); }
.card-secret small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 2px; }
.card-secret strong { max-width: 100%; margin: 10px 0; overflow-wrap: anywhere; color: #d4c8ff; font: 700 clamp(28px, 8vw, 41px)/1 var(--font-display); text-shadow: 0 0 25px rgba(139,92,246,.35); }
.card-secret span { color: #bdb4cf; font-size: 12px; }
.secret-card.imposter { border-color: rgba(244,63,94,.55); }
.secret-card.imposter .card-secret { background: radial-gradient(circle at 50% 20%, #5a2039, #201020 70%); }
.secret-card.imposter .card-secret strong { color: #ff718b; text-shadow: 0 0 25px rgba(244,63,94,.4); }
.privacy-note { display: flex; margin: 13px 0 17px; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.privacy-note svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

#discussScreen.active { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.mission-panel { display: flex; padding: 35px; flex-direction: column; align-items: center; text-align: center; }
.mission-panel h3, .vote-header h3, .result-card h3 { margin: 5px 0; font: 700 30px var(--font-display); }
.mission-panel h3 span { color: var(--purple-light); }
.mission-panel > p { max-width: 560px; margin: 5px 0 17px; color: var(--muted); font-size: 13px; }
.timer-ring { position: relative; display: grid; width: 178px; height: 178px; margin: 6px auto 19px; place-items: center; }
.timer-ring svg { position: absolute; inset: 0; width: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 5; }
.timer-track { stroke: rgba(255,255,255,.06); }
.timer-arc { stroke: var(--purple); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 0; filter: drop-shadow(0 0 5px rgba(139,92,246,.6)); transition: stroke-dashoffset 1s linear, stroke .3s; }
.timer-ring div { text-align: center; }
.timer-ring strong { display: block; font: 700 37px/1 var(--font-display); }
.timer-ring span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.timer-ring.warning .timer-arc { stroke: var(--rose); }
.timer-actions { display: flex; gap: 10px; }
.secondary-button { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.035); }
.secondary-button:hover { transform: translateY(-1px); border-color: var(--line-bright); background: rgba(139,92,246,.08); }
.timer-actions .secondary-button svg { width: 17px; }
.clue-tips { padding: 25px; }
.clue-tips h3 { margin-bottom: 19px; font-size: 17px; }
.clue-tips > div { display: flex; padding: 15px 0; gap: 12px; border-top: 1px solid var(--line); }
.clue-tips > div > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--purple-light); background: rgba(139,92,246,.12); font-size: 9px; font-weight: 900; }
.clue-tips p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.clue-tips strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 12px; }

.vote-header { text-align: center; }
.vote-header p { margin: 3px 0 21px; color: var(--muted); font-size: 13px; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vote-player { position: relative; min-height: 115px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: rgba(255,255,255,.025); transition: border .2s, background .2s, transform .2s; }
.vote-player:hover { transform: translateY(-2px); border-color: var(--line-bright); }
.vote-player.selected { border-color: var(--rose); background: rgba(244,63,94,.1); box-shadow: 0 0 0 1px rgba(244,63,94,.15), 0 10px 25px rgba(244,63,94,.08); }
.vote-player .avatar { margin: 0 auto 9px; }
.vote-player strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.vote-player small { color: var(--muted); font-size: 10px; }
.vote-player.selected::after { position: absolute; top: 9px; right: 9px; display: grid; width: 18px; height: 18px; content: "✓"; place-items: center; border-radius: 50%; color: white; background: var(--rose); font-size: 11px; font-weight: 900; }
#confirmVote { display: flex; min-width: 190px; margin: 24px auto 0; }

.result-card { width: min(660px, 100%); margin: 0 auto; padding: 38px; text-align: center; }
.result-icon { display: grid; width: 72px; height: 72px; margin: 0 auto 15px; place-items: center; border-radius: 22px; color: var(--mint); background: rgba(68,230,177,.1); }
.result-icon svg { width: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.result-card.lose .result-icon { color: var(--rose); background: rgba(244,63,94,.1); }
.result-card > p { margin: 5px auto 20px; color: var(--muted); }
.round-secret { display: flex; margin: 18px 0; padding: 13px 18px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; }
.round-secret strong { color: var(--purple-light); font: 700 18px var(--font-display); }
.remaining-players { display: flex; margin: 20px 0; flex-wrap: wrap; justify-content: center; gap: 7px; }
.player-pill { padding: 6px 10px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.045); font-size: 11px; font-weight: 800; }
.player-pill.out { color: #80798e; text-decoration: line-through; }
.player-pill.imposter-reveal { color: #ff9bad; background: rgba(244,63,94,.1); }
.result-actions { display: flex; justify-content: center; gap: 10px; }
.result-actions [hidden] { display: none; }

.content-section, .faq-section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.content-heading { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.content-heading h2 { margin: 7px 0 10px; font: 700 clamp(32px, 5vw, 45px)/1.1 var(--font-display); letter-spacing: -1.5px; }
.content-heading p { margin: 0; color: var(--muted); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-grid article { position: relative; min-height: 245px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(26,20,50,.85), rgba(13,10,29,.85)); }
.steps-grid article > span { position: absolute; right: 15px; top: -16px; color: rgba(255,255,255,.035); font: 700 92px var(--font-display); }
.steps-grid svg { width: 37px; margin-bottom: 31px; fill: none; stroke: var(--purple-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps-grid h3 { margin: 0 0 9px; font: 700 19px var(--font-display); }
.steps-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.seo-copy { display: grid; margin-top: 65px; grid-template-columns: 1.35fr .65fr; gap: 45px; }
.seo-copy h2 { margin: 0 0 15px; font: 700 31px var(--font-display); }
.seo-copy h3 { margin: 25px 0 8px; font: 700 20px var(--font-display); }
.seo-copy p { color: #aaa3b8; }
.seo-copy aside { align-self: start; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.022); }
.seo-copy aside h3 { margin-top: 0; }
.seo-copy ul { padding-left: 19px; color: var(--muted); font-size: 13px; }
.seo-copy li { margin-bottom: 10px; }
.seo-copy li::marker { color: var(--purple); }
.seo-copy aside a { display: flex; padding: 11px 0; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #c7b9ff; text-decoration: none; font-size: 12px; font-weight: 800; }
.seo-copy aside a:hover { color: white; }

.faq-section { padding-top: 45px; padding-bottom: 110px; }
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 70px; padding: 18px 0; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font: 600 17px var(--font-display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 19px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .2s; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { margin: -4px 35px 20px 0; color: var(--muted); font-size: 14px; }

footer { display: flex; width: min(1120px, calc(100% - 40px)); min-height: 115px; margin: 0 auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p { margin-right: auto; }
footer > div { display: flex; gap: 20px; }
footer > div a { text-decoration: none; }
footer > div a:hover { color: white; }

.dialog-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; padding: 20px; place-items: center; background: rgba(3,2,8,.82); backdrop-filter: blur(8px); }
.dialog-backdrop[hidden] { display: none; }
.dialog { width: min(420px, 100%); padding: 30px; border: 1px solid var(--line-bright); border-radius: 20px; background: #15112a; box-shadow: var(--shadow); text-align: center; }
.dialog h2 { margin: 0; font: 700 25px var(--font-display); }
.dialog p { color: var(--muted); }
.dialog > div { display: flex; justify-content: center; gap: 9px; }
.danger-button { border: 1px solid rgba(244,63,94,.5); color: white; background: #be2443; }

:focus-visible { outline: 3px solid rgba(185,161,255,.75); outline-offset: 3px; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateX(-50%) rotate(2deg) translateY(0); } 50% { transform: translateX(-50%) rotate(0deg) translateY(-9px); } }
@keyframes scan { 0%,12% { transform: translateY(0); opacity: 0; } 30%,75% { opacity: 1; } 88%,100% { transform: translateY(350px); opacity: 0; } }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 55px; grid-template-columns: 1fr; text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: min(500px, 100%); margin: 0 auto; }
  .setup-grid, #discussScreen.active, .seo-copy { grid-template-columns: 1fr; }
  .clue-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .clue-tips h3 { grid-column: 1 / -1; }
  .clue-tips > div { border: 0; }
}

@media (max-width: 680px) {
  .hero { width: calc(100% - 28px); padding: 45px 0 35px; }
  .hero h1 { margin-top: 18px; font-size: clamp(45px, 14vw, 65px); letter-spacing: -2.5px; }
  .hero-copy > p { font-size: 16px; }
  .hero-stats { gap: 13px; }
  .hero-stats span { flex-direction: column; gap: 0; }
  .hero-visual { height: 360px; transform: scale(.88); margin-top: -15px; margin-bottom: -20px; }
  .crew-card { display: none; }
  .game-shell { width: calc(100% - 20px); margin-bottom: 70px; padding: 18px; border-radius: 22px; }
  .game-topline { align-items: flex-start; }
  .game-topline h2 { font-size: 22px; }
  .game-toolbar { gap: 10px; }
  .progress-steps i { width: 10px; }
  .setup-main, .setup-options { padding: 17px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category:last-child { grid-column: span 2; }
  .option-row { gap: 10px; }
  .start-button { width: 100%; }
  .mission-panel { padding: 24px 15px; }
  .clue-tips { display: block; }
  .clue-tips > div { border-top: 1px solid var(--line); }
  .timer-actions { width: 100%; }
  .timer-actions button { flex: 1; padding: 0 13px; }
  .vote-grid { grid-template-columns: repeat(2, 1fr); }
  .result-card { padding: 28px 17px; }
  .result-actions { flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr; }
  .content-section, .faq-section { width: calc(100% - 32px); padding-top: 45px; }
  .seo-copy { margin-top: 45px; gap: 20px; }
  footer { width: calc(100% - 32px); padding: 28px 0; flex-wrap: wrap; gap: 10px; }
  footer p { flex-basis: 100%; order: 3; }
  footer > div { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
