:root {
  --night: #11152b;
  --night-2: #1a2140;
  --paper: #f7f7ff;
  --ink: #202642;
  --muted: #727995;
  --cyan: #52d9e8;
  --blue: #5b8cff;
  --pink: #ff5d8f;
  --yellow: #ffd166;
  --green: #67d391;
  --purple: #aa82ff;
  --shadow: 0 24px 60px rgba(16, 21, 46, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100dvh; overflow-x: hidden; color: var(--ink); background: #eff2ff; font-family: "Nunito", system-ui, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.ambient-grid { position: fixed; inset: 0; pointer-events: none; opacity: .38; background-image: linear-gradient(rgba(82,217,232,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(82,217,232,.09) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%); }
.screen { position: relative; z-index: 1; min-height: 100dvh; }
.eyebrow { margin: 0 0 7px; color: #6170a7; font-size: 11px; font-weight: 900; letter-spacing: .17em; }
h1, h2, b { font-family: "Fredoka", system-ui, sans-serif; }

.home-screen { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(30px, 7vw, 100px); padding: clamp(28px, 7vw, 90px); color: white; background: radial-gradient(circle at 68% 22%, rgba(91,140,255,.22), transparent 28%), radial-gradient(circle at 18% 88%, rgba(82,217,232,.15), transparent 28%), linear-gradient(135deg, #11152b, #1d2346 60%, #12162d); overflow: hidden; }
.home-screen::after { content: ""; position: absolute; right: -13vw; bottom: -22vw; width: 58vw; aspect-ratio: 1; border: 1px solid rgba(82,217,232,.15); border-radius: 50%; box-shadow: 0 0 0 6vw rgba(82,217,232,.025), 0 0 0 12vw rgba(82,217,232,.02); pointer-events: none; }
.home-copy, .entry-card { position: relative; z-index: 2; }
.logo-eye { width: 92px; height: 58px; display: grid; place-items: center; border: 5px solid currentColor; border-radius: 70% 20% 70% 20%; color: var(--cyan); transform: rotate(45deg); box-shadow: 0 0 28px rgba(82,217,232,.25); }
.logo-eye span { width: 25px; height: 25px; border: 6px solid currentColor; border-radius: 50%; background: var(--night); }
.home-copy .logo-eye { margin: 0 0 30px 8px; }
.home-copy .eyebrow { color: #93a0d1; }
h1 { margin: 0; font: 700 clamp(66px, 10vw, 142px)/.72 "Fredoka", sans-serif; letter-spacing: -.07em; }
h1 span { display: block; margin-left: .46em; color: var(--cyan); }
.hero-line { margin: 28px 0 30px; color: #d8ddf8; font-size: clamp(18px, 2.2vw, 30px); font-weight: 800; }
.truth-demo { display: flex; gap: 10px; align-items: stretch; max-width: 600px; }
.truth-demo > div { min-width: 0; flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.055); }
.truth-demo small { color: #8993bd; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.truth-demo b { font-size: 13px; }
.truth-icon, .truth-result > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; font-size: 20px; }
.truth-icon.laser { background: #ff426f; }.truth-icon.crack { background: #ff9f43; }.truth-result > span { background: var(--cyan); color: var(--night); }

.entry-card { width: min(430px, 100%); justify-self: end; padding: clamp(24px, 3vw, 34px); border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 32px 80px rgba(4,8,24,.34); backdrop-filter: blur(16px); }
.entry-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; color: #64709a; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.entry-kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(103,211,145,.15); }
label { display: block; margin: 0 0 7px 3px; font-size: 12px; font-weight: 900; }
input { width: 100%; height: 54px; padding: 0 16px; border: 2px solid #dfe3f2; border-radius: 13px; outline: 0; color: var(--ink); background: white; font-weight: 900; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91,140,255,.12); }
input::placeholder { color: #adb3c9; }

.primary-button, .secondary-button, .small-button, .ping-button, .move-button, .ready-button { border: 0; cursor: pointer; font-weight: 900; transition: transform .13s ease, opacity .13s ease, box-shadow .13s ease; }
.primary-button { width: 100%; min-height: 55px; margin-top: 14px; padding: 12px 18px; border-radius: 14px; color: var(--night); background: linear-gradient(135deg, #64e7e4, #52c8ef); box-shadow: 0 7px 0 #2599b7, 0 13px 24px rgba(52,185,207,.22); }
.primary-button span { float: right; font-size: 20px; }
.primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled), .small-button:hover:not(:disabled), .ping-button:hover:not(:disabled), .move-button:hover:not(:disabled), .ready-button:hover:not(:disabled) { transform: translateY(-2px); }
.primary-button:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 3px 0 #2599b7; }
button:disabled { cursor: not-allowed; opacity: .4; filter: grayscale(.5); }
.secondary-button { min-width: 95px; border-radius: 13px; color: white; background: var(--night); }
.small-button { padding: 9px 12px; border-radius: 10px; color: #405282; background: #edf0ff; }
.divider { display: flex; align-items: center; gap: 10px; margin: 21px 0 13px; color: #a1a8c0; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #e2e5f0; }
.join-row { display: flex; gap: 9px; }.join-row input { text-align: center; text-transform: uppercase; letter-spacing: .22em; }
.error-message { min-height: 18px; margin: 9px 3px -2px; color: #e23d68; font-size: 11px; font-weight: 900; }
.text-button { display: block; margin: 12px auto 0; border: 0; background: none; color: #69728f; text-decoration: underline; font-size: 12px; font-weight: 900; cursor: pointer; }

.lobby-screen { padding: 26px clamp(18px, 5vw, 70px) 50px; background: linear-gradient(150deg, #f7f8ff, #ecf6ff); }
.lobby-header { max-width: 1150px; margin: 0 auto 28px; display: grid; grid-template-columns: 48px 1fr 48px; text-align: center; }
.icon-button { width: 44px; height: 44px; border: 1px solid #dfe3f2; border-radius: 13px; background: rgba(255,255,255,.85); box-shadow: 0 6px 18px rgba(31,39,75,.08); font-size: 19px; font-weight: 900; cursor: pointer; }
.room-code { border: 0; background: none; cursor: pointer; }.room-code span { display: block; font: 700 32px/1 "Fredoka"; letter-spacing: .17em; }.room-code small { color: #8088a5; font-size: 9px; }
.lobby-grid { max-width: 1150px; margin: auto; display: grid; grid-template-columns: 1fr 1.08fr; gap: 26px; }
.mission-brief, .team-panel { padding: clamp(25px, 4vw, 42px); border: 1px solid white; border-radius: 25px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.mission-brief { position: relative; overflow: hidden; color: white; background: linear-gradient(145deg, #171c38, #242b54); }
.mission-brief::after { content: ""; position: absolute; right: -100px; bottom: -100px; width: 290px; height: 290px; border: 45px solid rgba(82,217,232,.06); border-radius: 50%; }
.mission-brief .eyebrow { color: var(--cyan); }.mission-brief h2, .team-panel h2 { margin: 5px 0 12px; font-size: clamp(28px, 4vw, 42px); line-height: 1; }.brief-lead { max-width: 490px; margin: 0 0 24px; color: #cdd4f1; font-size: 14px; line-height: 1.55; font-weight: 700; }
.brief-steps { display: grid; gap: 10px; }.brief-steps > div { display: flex; align-items: center; gap: 11px; }.brief-steps span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--cyan); border-radius: 50%; color: var(--cyan); font-family: "Fredoka"; font-weight: 700; }.brief-steps p { margin: 0; color: #d4daf2; font-size: 12px; }.brief-steps b { color: white; }
.tiny-map { position: relative; z-index: 2; width: min(380px, 100%); margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; transform: perspective(500px) rotateX(15deg) rotateZ(-2deg); }.tiny-map i { aspect-ratio: 1.7; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; background: rgba(255,255,255,.055); color: white; font-style: normal; }.tiny-map .hazard { color: var(--pink); background: rgba(255,66,111,.13); }.tiny-map .bot { color: var(--cyan); font-size: 20px; }.tiny-map .ping { color: var(--yellow); font-weight: 900; }.tiny-map .exit { color: var(--green); font-size: 20px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }.panel-title h2 { font-size: 28px; }.player-list { display: grid; gap: 9px; }.player-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 11px; border: 1px solid #e4e7f2; border-radius: 14px; background: white; }.player-avatar { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid var(--ink); border-radius: 12px 12px 16px 16px; color: var(--ink); font-size: 14px; font-weight: 900; }.player-name { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 900; }.player-tag { padding: 4px 7px; border-radius: 7px; color: #53618d; background: #edf0fb; font-size: 8px; font-weight: 900; text-transform: uppercase; }.bot-remove { border: 0; color: #9299b0; background: none; font-weight: 900; cursor: pointer; }.offline { opacity: .45; }
.bot-note { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 12px; color: #5d6685; background: #f2f5ff; font-size: 10px; line-height: 1.35; }.bot-note span { color: var(--purple); font-size: 22px; }.bot-note p { margin: 0; }.waiting-text { margin: 18px 0 0; color: #7a829d; text-align: center; font-size: 12px; font-weight: 900; }

.game-screen { padding: 12px; color: white; background: radial-gradient(circle at 50% 100%, #252d56, transparent 55%), #10142a; overflow: hidden; }
.game-header { max-width: 1400px; margin: 0 auto 10px; display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 9px; align-items: center; }.brand-mini { display: flex; align-items: center; gap: 9px; font: 700 16px "Fredoka"; letter-spacing: .06em; }.mini-eye { width: 25px; height: 16px; display: inline-block; border: 3px solid var(--cyan); border-radius: 70% 20% 70% 20%; transform: rotate(45deg); }.game-stat { min-width: 90px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.055); }.game-stat small { display: block; color: #828cb7; font-size: 7px; font-weight: 900; letter-spacing: .14em; }.game-stat b { font-size: 16px; }.game-stat.power b { color: var(--cyan); letter-spacing: 3px; }.game-stat.cores b { color: var(--yellow); }.room-mini b { letter-spacing: .12em; }
.game-layout { max-width: 1400px; height: calc(100dvh - 82px); min-height: 560px; margin: auto; display: grid; grid-template-columns: 220px minmax(520px, 1fr) 220px; gap: 12px; }
.vision-panel, .team-panel-game { min-height: 0; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.055); }.vision-panel .eyebrow, .team-panel-game .eyebrow { color: var(--cyan); }.vision-panel h2 { margin: 5px 0 12px; font-size: 23px; }.vision-badges { display: grid; gap: 8px; }.vision-badge { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(255,255,255,.055); font-size: 11px; font-weight: 900; }.vision-badge span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: white; font-size: 17px; }.vision-warning { margin: 14px 0 20px; color: #aab2d2; font-size: 10px; line-height: 1.45; }.legend { display: grid; gap: 9px; }.legend > div { display: flex; gap: 9px; align-items: center; }.legend-tile { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.07); }.legend p { margin: 0; }.legend b { display: block; font-size: 10px; }.legend small { color: #8f98be; font-size: 8px; }.robot-symbol { color: var(--cyan); font-size: 20px; }.core-symbol { color: var(--yellow); font-size: 18px; }.exit-symbol { color: var(--green); font-size: 19px; }.ping-symbol { color: var(--yellow); font-weight: 900; }
.board-section { min-height: 0; display: flex; flex-direction: column; }.turn-banner { min-height: 58px; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 11px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.08); }.turn-banner > span { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,209,102,.12); }.turn-banner small { display: block; color: #8f98be; font-size: 7px; font-weight: 900; letter-spacing: .14em; }.turn-banner b { font-size: 15px; }.turn-banner > strong { font: 700 31px "Fredoka"; color: var(--yellow); }.turn-banner.your-turn { border-color: rgba(82,217,232,.55); background: linear-gradient(135deg, rgba(82,217,232,.15), rgba(91,140,255,.11)); }.turn-banner.your-turn > span { background: var(--cyan); box-shadow: 0 0 0 5px rgba(82,217,232,.15); }.turn-banner.your-turn > strong { color: var(--cyan); }
.turn-banner.look-phase { border-color: rgba(255,209,102,.55); background: linear-gradient(135deg, rgba(255,209,102,.16), rgba(255,93,143,.1)); }.turn-banner.look-phase > span { background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,209,102,.16); }.turn-banner.move-phase { border-color: rgba(170,130,255,.55); background: linear-gradient(135deg, rgba(170,130,255,.18), rgba(91,140,255,.1)); }.turn-banner.move-phase > span { background: var(--purple); box-shadow: 0 0 0 5px rgba(170,130,255,.16); }
.game-board { min-height: 0; flex: 1; margin: 9px 0; display: grid; gap: 6px; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(4,8,24,.4); box-shadow: inset 0 0 70px rgba(82,217,232,.035); }.tile { position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(150,170,225,.16); border-radius: 10px; color: white; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease; }.tile:hover { transform: translateY(-2px); border-color: rgba(82,217,232,.5); }.tile.selected { border: 3px solid var(--cyan); box-shadow: 0 0 0 4px rgba(82,217,232,.11); }.tile.adjacent::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(82,217,232,.36); border-radius: 7px; }.tile.trail { background: rgba(82,217,232,.08); }.tile.goal { background: radial-gradient(circle, rgba(103,211,145,.23), rgba(103,211,145,.04)); }.tile-icon { position: relative; z-index: 2; font-size: clamp(18px, 3.3vw, 38px); }.hazard-icon { width: 56%; max-width: 54px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 13px; font-size: clamp(14px, 2vw, 24px); animation: hazardPulse 1.4s ease-in-out infinite alternate; }.hazard-icon.private::after { content: "ONLY YOU SEE THIS"; position: absolute; bottom: -14px; white-space: nowrap; color: currentColor; font-size: clamp(5px, .7vw, 8px); font-weight: 900; letter-spacing: .08em; }.hazard-icon.revealed { filter: saturate(.5); opacity: .78; }.robot { width: 58%; max-width: 59px; aspect-ratio: 1; display: grid; place-items: center; border: 4px solid var(--cyan); border-radius: 16px 16px 21px 21px; color: var(--cyan); background: #182142; box-shadow: 0 7px 0 rgba(0,0,0,.22), 0 0 24px rgba(82,217,232,.25); font: 700 clamp(19px, 3vw, 34px) "Fredoka"; animation: robotBob .8s ease-in-out infinite alternate; }.goal-beacon { color: var(--green); font-size: clamp(27px, 4vw, 48px); text-shadow: 0 0 24px rgba(103,211,145,.5); animation: beacon 1.2s ease-in-out infinite alternate; }.tile-pings { position: absolute; z-index: 5; top: 4px; right: 4px; display: flex; flex-direction: row-reverse; }.tile-ping { width: 25px; height: 25px; display: grid; place-items: center; margin-left: -6px; border: 2px solid white; border-radius: 50%; color: white; box-shadow: 0 3px 8px rgba(0,0,0,.25); font: 900 11px "Nunito"; animation: pingPop .25s ease-out; }.tile-coordinate { position: absolute; left: 5px; bottom: 3px; color: rgba(255,255,255,.22); font-size: 7px; font-weight: 900; }
.goal-beacon.locked { color: #7780a6; filter: grayscale(1); text-shadow: none; animation: none; }.goal-lock-label { position: absolute; z-index: 3; bottom: 12px; color: #a4acc9; font-size: clamp(5px,.65vw,8px); font-weight: 900; text-transform: uppercase; }.core-pickup { color: var(--yellow); font-size: clamp(24px, 3.8vw, 43px); text-shadow: 0 0 24px rgba(255,209,102,.65); animation: coreFloat .8s ease-in-out infinite alternate; }
@keyframes hazardPulse { to { transform: scale(1.08) rotate(2deg); } }@keyframes robotBob { to { transform: translateY(-4px); } }@keyframes beacon { to { transform: scale(1.12); } }@keyframes coreFloat { to { transform: translateY(-5px) rotate(8deg); } }@keyframes pingPop { from { transform: scale(.3); } }
.selection-bar { min-height: 62px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 8px 10px 8px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.055); }.selection-bar small { display: block; color: #7f89ae; font-size: 7px; font-weight: 900; letter-spacing: .13em; }.selection-bar b { font-size: 13px; }.ping-button, .move-button, .ready-button { height: 42px; padding: 0 14px; border-radius: 10px; }.ready-button { color: var(--night); background: linear-gradient(135deg, var(--yellow), #ffab65); }.ping-button { color: var(--night); background: var(--yellow); }.move-button { color: var(--night); background: var(--cyan); }
.team-panel-game { display: flex; flex-direction: column; }.signal-feed { min-height: 0; flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; }.signal-empty { margin: auto; color: #7d86aa; font-size: 10px; text-align: center; }.signal-item { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.045); font-size: 9px; }.signal-avatar { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid white; border-radius: 8px; color: var(--night); font-weight: 900; }.signal-item b { display: block; font-size: 10px; }.signal-item small { color: #929bbd; }.scout-strip { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }.scout-strip > small { color: #737da5; font-size: 7px; font-weight: 900; letter-spacing: .14em; }.scout-strip > div { display: flex; margin-top: 7px; }.scout-dot { width: 30px; height: 30px; display: grid; place-items: center; margin-right: -4px; border: 2px solid #151a34; border-radius: 10px; color: var(--night); font-size: 9px; font-weight: 900; }.scout-dot.captain { box-shadow: 0 0 0 3px var(--yellow); transform: translateY(-3px); }
.countdown-overlay { position: fixed; z-index: 20; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; background: rgba(9,12,28,.9); backdrop-filter: blur(8px); }.countdown-overlay .logo-eye { margin-bottom: 25px; }.countdown-overlay b { font-size: clamp(80px, 16vw, 170px); line-height: .8; color: var(--cyan); }.countdown-overlay p { color: #c4cae5; font-weight: 900; }.event-toast { position: fixed; z-index: 30; top: 90px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border: 2px solid white; border-radius: 13px; color: var(--night); background: var(--yellow); box-shadow: 0 12px 35px rgba(0,0,0,.3); font-weight: 900; animation: toastIn .24s ease-out; }@keyframes toastIn { from { transform: translate(-50%,-15px) scale(.9); opacity: 0; } }

.results-screen { display: grid; place-items: center; padding: 25px; color: white; background: radial-gradient(circle at 50% 30%, #2a3566, #10142a 70%); }.results-card { width: min(600px, 100%); padding: clamp(25px, 5vw, 46px); border: 1px solid rgba(255,255,255,.13); border-radius: 26px; background: rgba(255,255,255,.07); box-shadow: 0 30px 80px rgba(0,0,0,.3); text-align: center; }.result-icon { width: 85px; height: 85px; margin: 0 auto 16px; display: grid; place-items: center; border: 4px solid var(--green); border-radius: 50%; color: var(--green); font-size: 45px; box-shadow: 0 0 35px rgba(103,211,145,.25); }.results-card .eyebrow { color: var(--cyan); }.results-card h2 { margin: 8px 0; font-size: clamp(30px, 5vw, 48px); line-height: 1; }.result-reason { margin: 0 auto 15px; color: #b3bbd9; font-size: 13px; }.stars { margin: 8px 0 16px; color: var(--yellow); font-size: 35px; letter-spacing: 5px; }.score-card { display: inline-block; min-width: 150px; padding: 10px 20px; border-radius: 13px; background: rgba(255,255,255,.08); }.score-card small { display: block; color: #8993b8; font-size: 7px; font-weight: 900; letter-spacing: .14em; }.score-card b { color: white; font-size: 28px; }.scoreboard { margin: 18px 0 4px; display: grid; gap: 7px; text-align: left; }.score-row { display: grid; grid-template-columns: 35px 1fr auto auto; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,.055); font-size: 10px; }.score-row-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--night); font-weight: 900; }.score-row b { font-size: 11px; }.score-stat { color: #9da6c7; }.results-card .text-button, .results-card .waiting-text { color: #9fa8c8; }

dialog { width: min(500px, calc(100% - 28px)); padding: 30px; border: 0; border-radius: 22px; color: var(--ink); background: #f8f9ff; box-shadow: 0 30px 90px rgba(0,0,0,.35); }dialog::backdrop { background: rgba(8,12,28,.72); backdrop-filter: blur(5px); }dialog h2 { margin: 5px 0 20px; font-size: 31px; }dialog ol { list-style: none; padding: 0; display: grid; gap: 13px; }dialog li { display: flex; gap: 12px; align-items: center; }dialog li > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--night); background: var(--cyan); font-family: "Fredoka"; font-weight: 700; }dialog li b { display: block; font-size: 13px; }dialog li p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }.dialog-close { position: absolute; top: 13px; right: 15px; border: 0; background: none; font-size: 25px; cursor: pointer; }.toast { position: fixed; z-index: 40; left: 50%; bottom: 25px; transform: translate(-50%,20px); padding: 10px 15px; border-radius: 10px; color: white; background: #161b36; box-shadow: 0 8px 25px rgba(0,0,0,.25); font-size: 11px; font-weight: 900; opacity: 0; pointer-events: none; transition: .2s ease; }.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1050px) {
  .game-layout { grid-template-columns: 180px minmax(450px,1fr); }.team-panel-game { display: none; }
}
@media (max-width: 760px) {
  .home-screen { grid-template-columns: 1fr; align-content: start; padding: 34px 18px; }.home-copy { text-align: center; }.home-copy .logo-eye { margin: 0 auto 23px; transform: rotate(45deg) scale(.75); }.home-copy .eyebrow { font-size: 8px; }h1 { font-size: clamp(60px,19vw,92px); }.hero-line { margin: 18px 0; }.truth-demo { display: none; }.entry-card { justify-self: center; }.lobby-grid { grid-template-columns: 1fr; }.mission-brief { padding: 25px; }.game-screen { padding: 7px; overflow: auto; }.game-header { grid-template-columns: 1fr auto auto; }.brand-mini { font-size: 12px; }.room-mini { display: none; }.game-layout { height: auto; min-height: calc(100dvh - 68px); display: flex; flex-direction: column; }.vision-panel { padding: 10px 12px; }.vision-panel h2, .vision-warning, .legend { display: none; }.vision-panel .eyebrow { margin-bottom: 5px; }.vision-badges { display: flex; overflow-x: auto; }.vision-badge { flex: 0 0 auto; padding: 6px 9px; }.vision-badge span { width: 25px; height: 25px; }.board-section { min-height: 530px; flex: 1; }.game-board { min-height: 390px; gap: 4px; padding: 6px; }.tile { border-radius: 7px; }.selection-bar { grid-template-columns: 1fr 1fr; }.selection-bar > div { grid-column: 1 / 3; }.ping-button, .move-button { width: 100%; }.lobby-screen { padding: 18px 12px 35px; }.lobby-header { margin-bottom: 18px; }.mission-brief h2 { font-size: 30px; }.tiny-map { display: none; }
  .game-header { grid-template-columns: 1fr auto auto auto; }.ready-button { grid-column: 1 / 3; }.ping-button, .move-button, .ready-button { width: 100%; }
}
@media (max-width: 420px) {
  .entry-card { padding: 21px 17px; }h1 { font-size: 64px; }.hero-line { font-size: 16px; }.game-stat { min-width: 66px; padding: 6px 8px; }.game-stat b { font-size: 13px; }.game-board { min-height: 340px; }.turn-banner { min-height: 52px; }.turn-banner > strong { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
