:root {
  --bg: #080a10;
  --panel: #11141d;
  --panel-2: #191d29;
  --ink: #f3f4ed;
  --muted: #a2a6b1;
  --line: rgba(255, 255, 255, 0.16);
  --acid: #d7ff4f;
  --violet: #9c7dff;
  --cyan: #78e8ff;
  --danger: #ff7d7d;
  --safe: #79f2bd;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 88% 8%, rgba(156, 125, 255, .25), transparent 34rem),
    radial-gradient(circle at 8% 82%, rgba(120, 232, 255, .13), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.game-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.brand { text-decoration: none; font-weight: 950; letter-spacing: -.045em; font-size: 1.1rem; }
.brand span { color: var(--acid); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.tiny-link { color: var(--muted); text-decoration: none; font-size: .9rem; }
.tiny-link:hover, .tiny-link:focus-visible { color: var(--ink); }
.link-button { border: 0; padding: 0; background: transparent; }
.eyebrow { color: var(--acid); text-transform: uppercase; letter-spacing: .16em; font-weight: 850; font-size: .75rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 6.4rem); line-height: .92; letter-spacing: -.07em; margin-bottom: 18px; }
h2 { font-size: clamp(1.65rem, 4vw, 3rem); line-height: 1; letter-spacing: -.045em; }
h3 { font-size: 1.05rem; }
.lede { max-width: 720px; color: #c4c7cf; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

.card { border: 1px solid var(--line); background: rgba(17, 20, 29, .86); backdrop-filter: blur(18px); border-radius: 28px; padding: clamp(20px, 4vw, 38px); box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.choice { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: .2s ease; }
.choice:hover, .choice:focus-visible { transform: translateY(-4px); border-color: var(--acid); outline: none; }
.choice-no { font-size: 4rem; font-weight: 950; color: var(--acid); letter-spacing: -.08em; }
.choice h2 { margin-bottom: 12px; }
.choice p { color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.choice-grid.audience-entry { grid-template-columns: minmax(0, 620px); }
.presenter-entry { margin: 20px 0 0; color: var(--muted); font-size: .82rem; }
.presenter-entry a { color: inherit; text-underline-offset: 4px; }
.presenter-entry a:hover, .presenter-entry a:focus-visible { color: var(--ink); }
.presenter-login { min-height: calc(100svh - 110px); display: grid; place-items: center; }
.presenter-login .card { width: min(520px, 100%); padding: clamp(26px, 6vw, 48px); }
.presenter-login h1 { margin: 10px 0 14px; font-size: clamp(2.2rem, 7vw, 4.4rem); }
.presenter-login .lede { font-size: 1rem; }
.presenter-login form { display: grid; gap: 16px; margin-top: 28px; }
.login-error { min-height: 1.25em; margin: -4px 0 0; color: var(--danger); font-size: .86rem; }

.button { min-height: 52px; border: 0; border-radius: 999px; padding: 13px 22px; background: var(--acid); color: #0a0d12; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.button:hover, .button:focus-visible { filter: brightness(1.06); outline: 3px solid rgba(215,255,79,.25); }
.button:disabled { opacity: .42; cursor: not-allowed; filter: none; }
.button.secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button.violet { background: var(--violet); color: #0d0a16; }
.button.danger { color: #1a0909; background: var(--danger); }
.full { width: 100%; }

.field { display: grid; gap: 9px; }
.field label { color: #d9dbe1; font-weight: 780; font-size: .92rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 56px; border: 1px solid var(--line); border-radius: 16px; background: #0d1017; color: var(--ink); padding: 14px 16px; font: inherit; font-size: 1.05rem; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); outline: 3px solid rgba(120,232,255,.12); }
.field-hint { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.answer-actions { display: grid; gap: 8px; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: #d5d7de; background: rgba(8,10,16,.62); font-size: .82rem; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill.online::before { background: var(--safe); box-shadow: 0 0 0 5px rgba(121,242,189,.1); }
.status-pill.slow::before { background: #ffd36b; }
.status-pill.offline::before { background: var(--danger); }
.toast { position: fixed; z-index: 90; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 14px; width: min(460px, calc(100% - 32px)); background: #f3f4ed; color: #0b0d12; border-radius: 15px; padding: 13px 17px; font-weight: 800; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: 0 18px 70px rgba(0,0,0,.35); }
.toast.show { opacity: 1; translate: -50% 0; }

.sprite { width: 74px; aspect-ratio: 1.25; background-image: url("/game/assets/characters.png"); background-size: 500% 400%; background-position: calc(var(--col) * 25%) calc(var(--row) * 33.333%); background-repeat: no-repeat; filter: drop-shadow(0 9px 10px rgba(0,0,0,.26)); }
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.avatar-choice { min-width: 0; min-height: 86px; display: grid; place-items: center; padding: 5px; border: 1px solid var(--line); background: #0d1017; border-radius: 16px; }
.avatar-choice .sprite { width: 100%; max-width: 72px; }
.avatar-choice.selected { border-color: var(--acid); background: rgba(215,255,79,.09); box-shadow: inset 0 0 0 2px var(--acid); }
.avatar-choice:focus-visible { outline: 3px solid rgba(120,232,255,.28); }

.setup { width: min(620px, 100%); margin: 8vh auto 0; }
.setup-step { display: grid; gap: 22px; }
.room-code-input { text-transform: uppercase; letter-spacing: .22em; font-weight: 900; text-align: center; font-size: 1.35rem !important; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 20px; align-items: start; }
.map-card { overflow: hidden; position: relative; min-height: 660px; }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; position: relative; z-index: 3; }
.map { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; min-height: 430px; padding: 80px 2% 30px; }
.map::before { content: ""; position: absolute; left: 10%; right: 10%; top: 53%; height: 8px; border-radius: 99px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 18px, transparent 18px 30px); }
.stage { position: relative; z-index: 2; display: grid; justify-items: center; align-content: start; min-width: 0; }
.stage-node { width: clamp(70px, 9vw, 105px); aspect-ratio: 1; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: #0d1017; font-size: clamp(1.35rem, 3vw, 2.4rem); font-weight: 950; transition: .25s ease; }
.stage.unlocked .stage-node { border-color: var(--acid); color: var(--acid); box-shadow: 0 0 0 10px rgba(215,255,79,.07); }
.stage.done .stage-node { background: var(--acid); color: #0a0d12; }
.stage-title { margin: 18px 8px 0; text-align: center; font-weight: 850; line-height: 1.25; }
.stage-note { margin: 7px 8px 0; color: var(--muted); font-size: .78rem; text-align: center; line-height: 1.45; }
.player-marker { position: absolute; z-index: 5; left: calc(10% + (var(--progress) * 26.66%)); top: calc(53% - 82px); transform: translateX(-50%); transition: left .65s cubic-bezier(.2,.8,.2,1); }
.player-marker .sprite { width: 74px; }
.player-marker-name { display: block; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; border-radius: 999px; padding: 4px 9px; background: rgba(8,10,16,.88); border: 1px solid var(--line); font-size: .78rem; font-weight: 800; }

.side-stack { display: grid; gap: 18px; }
.mission { border-color: rgba(215,255,79,.34); }
.mission-label { color: var(--acid); font-size: .75rem; letter-spacing: .14em; font-weight: 900; }
.mission h2 { margin: 10px 0 12px; }
.mission p { color: #c7cad2; line-height: 1.62; }
.placeholder { border: 1px dashed rgba(255,255,255,.24); border-radius: 15px; padding: 13px; color: var(--muted); background: rgba(255,255,255,.03); font-size: .88rem; }

.host-create { min-height: calc(100svh - 110px); display: grid; place-items: center; }
.host-create .card { width: min(680px, 100%); text-align: center; }
.host-page .game-shell { width: min(1540px, calc(100% - 24px)); }
.host-dashboard { display: grid; gap: 18px; }
.room-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.host-page .room-strip { padding: 14px 18px; border-radius: 18px; }
.room-code { font-size: clamp(2rem, 5vw, 4.7rem); letter-spacing: .17em; font-weight: 950; line-height: 1; color: var(--acid); }
.host-page .room-code { font-size: 2rem; }
.qr { width: 150px; aspect-ratio: 1; background: #fff; border-radius: 14px; padding: 7px; }
.host-page .qr { width: 72px; border-radius: 10px; }
.room-links { display: grid; gap: 8px; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.host-grid { display: grid; grid-template-columns: 180px minmax(520px, 1fr) 300px; gap: 16px; align-items: start; }
.page-panel { position: sticky; top: 12px; max-height: calc(100svh - 24px); padding: 14px 10px; overflow: hidden; border-radius: 18px; }
.page-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 12px; }
.page-panel-head h2 { margin: 3px 0 0; font-size: 1.25rem; }
.page-counter { border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: var(--muted); font-size: .7rem; font-weight: 850; }
.page-list { display: grid; gap: 8px; max-height: calc(100svh - 108px); overflow: auto; padding: 2px 5px 18px 2px; scrollbar-width: thin; }
.page-item { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 6px; width: 100%; border: 0; padding: 0; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.page-item:disabled { cursor: not-allowed; opacity: .48; }
.page-index { font-size: .7rem; font-weight: 900; text-align: center; }
.page-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: end; border: 2px solid transparent; border-radius: 8px; padding: 8px; color: #fff; background: linear-gradient(135deg, #253349, #111620); box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.page-thumb::before, .page-thumb i { content: ""; position: absolute; border-radius: 50%; opacity: .72; }
.page-thumb::before { width: 52px; height: 52px; right: -12px; top: -18px; background: var(--violet); }
.page-thumb i { width: 36px; height: 36px; left: -9px; bottom: -13px; background: var(--cyan); }
.page-thumb b { position: relative; z-index: 2; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .62rem; line-height: 1.2; }
.page-thumb em { position: absolute; z-index: 3; top: 5px; left: 5px; border-radius: 999px; padding: 3px 6px; color: #0d0a16; background: var(--violet); font-size: .52rem; font-style: normal; font-weight: 950; }
.page-thumb.poll { background: linear-gradient(135deg, #4d3c80, #171525); }
.page-thumb.roles { background: linear-gradient(135deg, #1c5b6e, #10212d); }
.page-thumb.reveal { background: linear-gradient(135deg, #312261, #10121a); }
.page-thumb.app { background: linear-gradient(135deg, #7a4a2b, #1e1715); }
.page-thumb.journey { background: linear-gradient(135deg, #235b55, #101f24); }
.page-thumb.tone-1 { background: linear-gradient(135deg, #594485, #191527); }
.page-thumb.tone-2 { background: linear-gradient(135deg, #756121, #241e10); }
.page-item.active { color: var(--ink); }
.page-item.active .page-thumb { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(156,125,255,.24), 0 8px 20px rgba(0,0,0,.25); }
.page-item:hover:not(:disabled) .page-thumb { border-color: rgba(120,232,255,.55); }
.preview-column { min-width: 0; display: grid; gap: 9px; }
.audience-now { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 42px; border: 1px solid var(--line); border-radius: 13px; padding: 8px 12px; background: rgba(17,20,29,.9); }
.audience-now > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; font-weight: 850; white-space: nowrap; }
.audience-now i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f67; box-shadow: 0 0 0 4px rgba(255,95,103,.12); }
.audience-now strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.audience-now em { color: var(--muted); font-size: .72rem; font-style: normal; font-weight: 850; }
.presenter-monitor { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(230px, .72fr) 190px; align-items: start; gap: 12px; }
.shared-monitor, .share-monitor, .phone-monitor { min-width: 0; display: grid; gap: 7px; }
.monitor-label { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; background: rgba(17,20,29,.84); }
.monitor-label span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .69rem; font-weight: 900; }
.monitor-label span i { width: 7px; height: 7px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 4px rgba(121,242,189,.1); }
.phone-monitor .monitor-label span i { background: var(--cyan); }
.share-monitor .monitor-label span i { background: #ff6575; }
.monitor-label strong { color: var(--muted); font-size: .62rem; }
.stage-scene { width: 100%; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; position: relative; padding: 0; border-radius: 18px; background: #18273b url("/game/assets/world-map.png") center 58% / cover no-repeat; }
.stage-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,10,16,.78), rgba(8,10,16,.04) 34%, rgba(8,10,16,.32)); }
.scene-title { position: absolute; z-index: 8; top: 12px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.preview-live { border-radius: 999px; padding: 5px 8px; color: #fff; background: rgba(8,10,16,.72); font-size: .62rem; font-weight: 950; letter-spacing: .12em; }
.walkers { position: absolute; z-index: 3; inset: 0; }
.preview-caption { margin: 0; color: var(--muted); font-size: .72rem; text-align: center; }
.share-preview-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #2a4255; border-radius: 10px; color: #f4f7f8; background: radial-gradient(circle at 80% 80%, rgba(45,212,191,.12), transparent 32%), #07131f; box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.share-preview-top { position: absolute; z-index: 4; top: 0; left: 0; right: 0; min-height: 27px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid rgba(255,255,255,.1); padding: 5px 8px; background: rgba(5,13,22,.88); font-size: .46rem; }
.share-preview-top span { display: inline-flex; align-items: center; gap: 4px; color: #a7b5c1; white-space: nowrap; }
.share-preview-top span i { width: 5px; aspect-ratio: 1; border-radius: 50%; background: #ff6575; }
.share-preview-top b { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .48rem; }
.share-preview { position: absolute; inset: 27px 0 0; display: grid; overflow: hidden; }
.share-preview > p { place-self: center; color: var(--muted); font-size: .7rem; }
.share-preview-empty, .share-preview-content { min-width: 0; display: grid; align-content: center; gap: 7px; padding: 14px; }
.share-preview-empty span, .share-preview-content > small { color: var(--violet); font-size: .48rem; font-weight: 950; letter-spacing: .09em; }
.share-preview-empty h3, .share-preview-content h3 { margin: 0; font-size: clamp(.88rem, 1.25vw, 1.3rem); line-height: 1.02; letter-spacing: -.035em; }
.share-preview-empty p, .share-preview-content > p { margin: 0; color: #aebbc6; font-size: .56rem; line-height: 1.45; }
.share-mini-bars { display: grid; gap: 4px; }
.share-mini-bars span { display: grid; grid-template-columns: 42px 1fr 13px; align-items: center; gap: 5px; font-size: .47rem; }
.share-mini-bars span > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-mini-bars span > i { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.share-mini-bars span > i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--acid)); }
.share-mini-bars span > strong { color: var(--acid); }
.share-mini-tags { display: flex; flex-wrap: wrap; gap: 4px; overflow: hidden; }
.share-mini-tags span, .share-mini-tags em, .share-preview-action { border-radius: 999px; padding: 4px 6px; color: #dce6eb; background: rgba(255,255,255,.08); font-size: .48rem; font-style: normal; }
.share-mini-tags span b { color: var(--acid); }
.share-preview-action { justify-self: start; color: #06211f; background: var(--violet); font-weight: 900; }
.phone-frame { position: relative; width: 100%; aspect-ratio: 9 / 16.8; overflow: hidden; border: 5px solid #2b2f3b; border-radius: 27px; background: #ecf7fb; box-shadow: 0 16px 36px rgba(0,0,0,.28); color: #17283b; }
.phone-speaker { position: absolute; z-index: 8; top: 7px; left: 50%; width: 54px; height: 13px; translate: -50% 0; border-radius: 99px; background: #11141d; }
.phone-status { position: absolute; z-index: 7; top: 9px; left: 12px; right: 12px; display: flex; justify-content: space-between; font-size: .43rem; font-weight: 900; }
.phone-status b { letter-spacing: .08em; }
.phone-preview { position: absolute; inset: 0; overflow: hidden; }
.phone-preview > p { margin: 55px 18px; text-align: center; }
.phone-home { position: absolute; z-index: 9; bottom: 6px; left: 50%; width: 64px; height: 3px; translate: -50% 0; border-radius: 99px; background: rgba(23,40,59,.48); }
.phone-world { position: absolute; inset: 0; overflow: hidden; padding: 33px 8px 10px; background: linear-gradient(rgba(225,249,255,.15), rgba(130,208,231,.18)), url("/game/assets/world-map.png") center / cover; }
.phone-world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(16,44,65,.13)); pointer-events: none; }
.phone-objective { position: relative; z-index: 3; display: grid; gap: 1px; border: 1px solid rgba(255,255,255,.86); border-radius: 12px; padding: 8px 9px; background: rgba(255,255,255,.92); box-shadow: 0 6px 18px rgba(24,68,96,.2); }
.phone-objective small { color: #7552df; font-size: .46rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.phone-objective strong { font-size: .7rem; line-height: 1.15; }
.phone-objective span { overflow: hidden; color: #657384; font-size: .48rem; text-overflow: ellipsis; white-space: nowrap; }
.phone-map-mark { position: absolute; z-index: 3; top: 43%; left: 58%; display: grid; place-items: center; width: 36px; aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%; color: #142238; background: #ffc34d; box-shadow: 0 0 0 7px rgba(255,195,77,.24); }
.phone-map-mark.active { background: var(--acid); box-shadow: 0 0 0 9px rgba(215,255,79,.24); }
.phone-player-dot { position: absolute; z-index: 4; top: 58%; left: 42%; display: grid; place-items: center; width: 28px; aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--violet); box-shadow: 0 7px 14px rgba(37,46,76,.28); }
.phone-sheet { position: absolute; z-index: 5; left: 8px; right: 8px; bottom: 9px; max-height: 44%; overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 15px; padding: 10px; color: #f4f4ee; background: rgba(15,20,31,.94); box-shadow: 0 10px 26px rgba(0,0,0,.32); }
.phone-sheet.open { max-height: 68%; }
.phone-sheet em { color: var(--acid); font-size: .45rem; font-style: normal; font-weight: 950; letter-spacing: .1em; }
.phone-sheet h3 { margin: 4px 0 5px; font-size: .76rem; line-height: 1.08; }
.phone-sheet p { margin: 0 0 7px; color: #bfc4ce; font-size: .5rem; line-height: 1.38; }
.phone-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.phone-options span, .phone-submit { display: block; border-radius: 7px; padding: 6px; text-align: center; color: #111522; background: var(--acid); font-size: .5rem; font-weight: 900; }
.phone-options span { color: #eef0f5; background: #292f3e; border: 1px solid rgba(255,255,255,.12); }
.phone-input { margin-bottom: 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; padding: 6px; color: #aeb5c2; background: #0d1017; font-size: .5rem; line-height: 1.45; }
.phone-tags { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0; }
.phone-tags span { border-radius: 99px; padding: 4px 6px; color: #111522; background: var(--cyan); font-size: .43rem; font-weight: 900; }
.walker { position: absolute; left: var(--x); top: var(--y); display: grid; justify-items: center; animation: wander var(--speed) ease-in-out infinite alternate; animation-delay: var(--delay); }
.walker.live { animation: none; transition: left .16s linear, top .16s linear; }
.walker.live.moving .sprite { animation: playerWalk .3s ease-in-out infinite alternate; }
.walker.facing-left .sprite { scale: -1 1; }
.walker .sprite { width: 68px; }
.walker span { max-width: 94px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 999px; padding: 3px 8px; background: rgba(8,10,16,.8); border: 1px solid var(--line); font-size: .73rem; font-weight: 800; }
@keyframes wander { from { translate: -9px 0; } to { translate: 17px -13px; } }
.empty-scene { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 30px; }
.phase-board { position: relative; z-index: 5; width: 100%; height: 100%; min-height: 0; display: grid; align-content: center; justify-items: center; gap: clamp(10px, 2vw, 20px); text-align: center; padding: 48px clamp(22px, 4vw, 44px) 24px; border-radius: 0; background: rgba(8,10,16,.72); backdrop-filter: blur(10px); overflow: hidden; }
.poll-board { align-content: center; gap: 12px; }
.poll-board .phase-question { font-size: clamp(1.3rem, 2.2vw, 2.25rem); }
.phase-question { font-size: clamp(1.4rem, 2.5vw, 2.65rem); line-height: 1.06; letter-spacing: -.055em; font-weight: 950; }
.poll-grid { width: min(540px, 100%); height: clamp(130px, 18vw, 190px); display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 14px; }
.poll-item { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; align-items: end; }
.poll-item strong { font-size: clamp(.9rem, 2vw, 1.2rem); }
.poll-item b { color: var(--acid); font-size: 1.35rem; }
.poll-bar { width: min(74px, 100%); height: 100%; margin: auto; display: flex; align-items: end; overflow: hidden; border-radius: 18px 18px 5px 5px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.poll-bar i { display: block; width: 100%; min-height: 8px; background: linear-gradient(180deg, var(--acid), var(--cyan)); transition: height .45s ease; }
.role-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; align-content: center; gap: 12px; width: 100%; max-width: 780px; max-height: 320px; overflow: auto; padding: 4px; }
.role-wall span { font-size: calc(clamp(1rem, 2.3vw, 1.9rem) * var(--weight)); line-height: 1; font-weight: 950; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(156,125,255,.12); }
.role-wall span:nth-child(3n+2) { background: rgba(120,232,255,.1); }
.role-wall span:nth-child(3n) { background: rgba(215,255,79,.09); }
.role-wall b { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .3em; border-radius: 99px; color: #0a0d12; background: var(--acid); font-size: .45em; vertical-align: middle; }
.reveal-board { text-align: left; justify-items: start; max-width: 820px; margin: auto; }
.reveal-board h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); margin-bottom: 0; }
.reveal-board p { font-size: clamp(.88rem, 1.4vw, 1.15rem); line-height: 1.5; color: #d7d9e0; }
.reveal-board small { color: var(--acid); font-size: .95rem; line-height: 1.5; }
.ability-board { align-content: start; gap: 10px; padding: 18px 22px; text-align: left; }
.ability-board > .eyebrow, .ability-board > h2 { justify-self: start; }
.ability-board > h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); }
.ability-map { position: relative; width: min(760px, 100%); height: 240px; margin: 0 auto; }
.ability-map::before { content: ""; position: absolute; inset: 34px 12%; border: 1px solid rgba(120,232,255,.25); border-radius: 50%; }
.ability-center, .ability-node { position: absolute; display: grid; justify-items: center; text-align: center; border: 1px solid var(--line); background: rgba(11,15,24,.92); box-shadow: 0 10px 26px rgba(0,0,0,.24); }
.ability-center { left: 50%; top: 50%; translate: -50% -50%; z-index: 2; width: 126px; aspect-ratio: 1; align-content: center; border: 2px solid var(--acid); border-radius: 50%; }
.ability-center b { font-size: 1.3rem; }
.ability-center span { color: var(--acid); font-size: .78rem; }
.ability-node { width: 176px; min-height: 65px; align-content: center; border-radius: 15px; padding: 7px 10px; }
.ability-node small { color: var(--cyan); font-size: .62rem; letter-spacing: .12em; }
.ability-node strong { font-size: 1rem; }
.ability-node span { color: var(--muted); font-size: .64rem; }
.ability-node::after { content: ""; position: absolute; z-index: -1; width: 66px; height: 1px; background: linear-gradient(90deg, var(--violet), var(--cyan)); opacity: .65; }
.ability-node.node-1 { left: 1%; top: 2%; }
.ability-node.node-2 { left: 1%; bottom: 2%; }
.ability-node.node-3 { left: 50%; top: 0; translate: -50% 0; }
.ability-node.node-4 { left: 50%; bottom: 0; translate: -50% 0; }
.ability-node.node-5 { right: 1%; top: 2%; }
.ability-node.node-6 { right: 1%; bottom: 2%; }
.ability-node.node-1::after, .ability-node.node-2::after { right: -56px; top: 50%; rotate: 16deg; }
.ability-node.node-2::after { rotate: -16deg; }
.ability-node.node-3::after { left: 50%; bottom: -25px; rotate: 90deg; }
.ability-node.node-4::after { left: 50%; top: -25px; rotate: 90deg; }
.ability-node.node-5::after, .ability-node.node-6::after { left: -56px; top: 50%; rotate: -16deg; }
.ability-node.node-6::after { rotate: 16deg; }
.human-callout { width: min(760px, 100%); display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.human-callout span { color: var(--violet); font-weight: 900; }
.human-callout b { color: var(--acid); text-align: right; }
.app-board { grid-template-columns: 1.15fr .85fr; text-align: left; justify-items: stretch; align-items: center; max-width: 940px; margin: auto; gap: 20px; }
.app-board h2 { font-family: ui-serif, "Noto Serif TC", serif; font-size: clamp(2rem, 3.6vw, 4rem); margin: 6px 0 12px; }
.app-board p { max-width: 620px; color: #d0d2da; line-height: 1.6; }
.app-preview { width: 100%; height: min(250px, 30vw); border: 1px solid var(--line); border-radius: 16px; background: #080a10; }
.app-actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.app-qr { width: 190px; aspect-ratio: 1; object-fit: contain; border-radius: 20px; background: white; padding: 10px; color: #111; display: grid; place-items: center; text-align: center; font-size: 2.4rem; font-weight: 950; }
.app-actions .app-qr { width: 104px; border-radius: 13px; font-size: 1.6rem; }
.pending-qr small { font-size: .8rem; color: #555; }
.journey-board { text-align: left; justify-items: start; align-content: center; gap: 14px; }
.journey-board h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 3.25rem); max-width: 850px; }
.journey-board > p { margin: 0; max-width: 800px; color: #d7d9e0; font-size: clamp(.85rem, 1.35vw, 1.1rem); line-height: 1.5; }
.slide6-board { grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr); align-items: center; gap: 22px; overflow: hidden; padding: 18px 22px; text-align: left; }
.slide6-copy { position: relative; z-index: 4; display: grid; align-content: center; gap: 12px; }
.slide6-copy h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 4.25rem); line-height: .98; }
.slide6-copy > p { margin: 0; color: #d7d9e0; font-size: clamp(.9rem, 1.4vw, 1.12rem); line-height: 1.55; }
.slide6-copy > small { color: var(--muted); letter-spacing: .05em; }
.route-feelings { display: grid; gap: 8px; }
.route-feelings span { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); padding: 7px 0; color: var(--muted); font-size: .82rem; }
.route-feelings b { color: var(--ink); font-size: .95rem; }
.route-picker-visual { height: 405px; display: grid; place-items: center; perspective: 1000px; }
.route-picker-visual img { height: 395px; width: auto; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; box-shadow: 0 25px 58px rgba(0,0,0,.48); transform: rotateY(-5deg); }
.slide7-board .slide6-copy > p { color: var(--acid); font-weight: 850; }
.tools-board { align-content: start; justify-items: stretch; gap: 11px; padding: 18px 24px; text-align: left; }
.tools-board > h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 4.1rem); }
.tool-lanes { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.tool-lanes section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; border: 1px solid rgba(215,255,79,.3); border-radius: 17px; padding: 11px; background: rgba(215,255,79,.055); }
.tool-lanes section.later { grid-template-columns: 1fr; border-color: var(--line); background: rgba(255,255,255,.025); }
.tool-lanes small { grid-column: 1 / -1; color: var(--acid); font-weight: 900; letter-spacing: .08em; }
.tool-lanes .later small { color: var(--muted); }
.tool-lanes span { border-radius: 11px; padding: 8px 10px; background: rgba(8,10,16,.72); font-size: .82rem; font-weight: 800; }
.build-loop { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 17px; padding: 10px 12px; background: rgba(156,125,255,.08); }
.build-loop div { display: flex; align-items: center; gap: 6px; }
.build-loop b { width: 28px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #10130b; background: var(--acid); }
.build-loop span { font-weight: 850; white-space: nowrap; }
.build-loop i { color: var(--violet); font-style: normal; }
.tools-board > p { margin: 0; color: #d7d9e0; font-size: .88rem; }
.tools-board .result-cloud { max-height: 52px; }
.tools-board .result-cloud span { padding: 5px 9px; font-size: .72rem; }
.tools-callout { color: var(--acid); font-size: 1rem; }
.journey-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #fff; font-size: .75rem; font-weight: 850; }
.journey-line span { border-radius: 999px; padding: 6px 9px; background: rgba(120,232,255,.1); border: 1px solid rgba(120,232,255,.22); }
.journey-line i { color: var(--acid); font-style: normal; }
.screen-fan { position: relative; height: 405px; min-width: 430px; perspective: 1200px; }
.screen-shot { position: absolute; top: 50%; left: 50%; height: 390px; width: auto; border: 1px solid rgba(255,255,255,.26); border-radius: 14px; object-fit: cover; box-shadow: 0 22px 48px rgba(0,0,0,.48); transform-origin: 50% 80%; }
.screen-shot.shot-1 { z-index: 1; transform: translate(-94%, -48%) rotate(-7deg) scale(.88); opacity: .78; }
.screen-shot.shot-2 { z-index: 3; transform: translate(-50%, -50%) scale(1); }
.screen-shot.shot-3 { z-index: 2; transform: translate(-6%, -48%) rotate(7deg) scale(.88); opacity: .78; }
.slide6-board .result-cloud { max-height: 72px; }
.slide6-board .result-cloud span { padding: 6px 10px; font-size: .78rem; }
.result-cloud { display: flex; flex-wrap: wrap; gap: 9px; max-height: 130px; overflow: auto; }
.result-cloud span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(120,232,255,.09); font-weight: 850; }
.result-cloud b { color: var(--acid); }
.stage-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 15px 0 2px; }
.stage-options .button { min-height: 48px; border-radius: 15px; padding: 10px 12px; }
.prompt-card { display: grid; gap: 7px; margin: 15px 0; border: 1px solid rgba(156,125,255,.35); border-radius: 17px; padding: 15px; background: rgba(156,125,255,.08); }
.prompt-card strong { color: var(--acid); }
.prompt-card span { line-height: 1.45; }
.prompt-card small { color: var(--muted); }
.prompt-help-board { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px 24px; align-content: center; }
.prompt-help-board > .eyebrow, .prompt-help-board > h2, .prompt-help-board > .tools-callout { grid-column: 1 / -1; }
.prompt-dialogue { display: grid; gap: 12px; }
.prompt-dialogue > div { border-radius: 20px; padding: 14px 17px; max-width: 92%; }
.prompt-dialogue small { display: block; margin-bottom: 5px; font-weight: 800; letter-spacing: .08em; }
.prompt-dialogue p { margin: 0; line-height: 1.5; }
.chat-me { justify-self: end; background: rgba(156,125,255,.18); border: 1px solid rgba(156,125,255,.4); }
.chat-ai { background: rgba(183,255,96,.09); border: 1px solid rgba(183,255,96,.32); }
.stuck-lines { display: grid; gap: 10px; align-content: start; }
.stuck-lines span { display: grid; gap: 3px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; padding: 13px 15px; background: rgba(255,255,255,.045); }
.stuck-lines b { color: var(--acid); font-size: .78rem; }
.resource-drawer { margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: rgba(255,255,255,.04); }
.resource-drawer summary { cursor: pointer; color: var(--acid); font-weight: 850; }
.resource-drawer .resource-link { display: block; margin-top: 9px; }
.music-story-board { display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; align-items: center; }
.music-story-copy { min-width: 0; }
.music-story-copy blockquote { margin: 16px 0; border-left: 4px solid var(--violet); padding: 11px 16px; color: #eef1ff; background: rgba(156,125,255,.08); line-height: 1.55; }
.song-details { display: flex; flex-wrap: wrap; gap: 8px; }
.song-details span { border: 1px solid rgba(183,255,96,.3); border-radius: 999px; padding: 7px 10px; color: var(--acid); background: rgba(183,255,96,.06); font-weight: 800; }
.song-loop { display: flex; align-items: center; gap: 10px; margin: 17px 0; }
.song-loop b { border-radius: 14px; padding: 10px 12px; background: rgba(255,255,255,.06); }
.song-loop i { color: var(--violet); font-style: normal; font-weight: 950; }
.music-app-shot { display: grid; place-items: center; min-width: 0; }
.music-app-shot img { width: min(100%, 300px); max-height: 590px; border-radius: 24px; object-fit: cover; object-position: top; box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.closing-bridge-board { align-content: center; }
.closing-bridge-board h2 { max-width: 980px; }
.era-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.era-contrast section { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 20px; background: rgba(255,255,255,.04); }
.era-contrast section.now { border-color: rgba(183,255,96,.35); background: rgba(183,255,96,.07); }
.era-contrast small { grid-column: 1 / -1; color: var(--muted); font-weight: 900; letter-spacing: .16em; }
.era-contrast b { font-size: 1.15rem; }
.era-contrast i { color: var(--violet); font-style: normal; font-weight: 950; }
.era-contrast span { grid-column: 1 / -1; color: #d7d9e0; }
.era-contrast em { grid-column: 1 / -1; color: var(--acid); font-style: normal; font-weight: 900; }
.closing-bridge-board > p { max-width: 920px; color: #d7d9e0; font-size: clamp(.92rem, 1.5vw, 1.22rem); }
.final-reflection-board { text-align: center; justify-items: center; align-content: center; overflow: hidden; }
.final-reflection-board h2 { max-width: 980px; }
.reflection-lines { display: grid; gap: 6px; margin: 12px 0 18px; }
.reflection-lines p { margin: 0; color: #e9eaf0; font-size: clamp(.95rem, 1.5vw, 1.22rem); }
.reflection-lines p:last-child { color: var(--acid); font-weight: 900; }
.final-arrivals { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; max-height: 120px; overflow: hidden; margin: 4px 0 20px; }
.final-arrivals > div { display: grid; justify-items: center; gap: 3px; min-width: 54px; }
.final-arrivals .sprite { width: 46px; }
.final-arrivals span { max-width: 70px; overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.final-reflection-board > strong { color: #fff; font-size: clamp(1.5rem, 3vw, 3.1rem); line-height: 1.2; }
.resource-link { display: block; margin: 7px 0; border-bottom: 1px solid var(--line); padding: 8px 2px; color: var(--cyan); text-decoration: none; }

.host-side { display: grid; gap: 14px; }
.host-side > .card { padding: 18px; border-radius: 18px; }
.control-heading { margin: 5px 0 12px; font-size: 1.5rem; }
.current-page-card { display: grid; gap: 4px; margin-bottom: 12px; border: 1px solid rgba(156,125,255,.36); border-radius: 13px; padding: 11px 12px; background: rgba(156,125,255,.09); }
.current-page-card span { color: var(--muted); font-size: .66rem; font-weight: 850; }
.current-page-card strong { color: var(--violet); font-size: 1.05rem; }
.current-page-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: .74rem; }
.control-copy { margin-bottom: 12px; font-size: .78rem; line-height: 1.45; }
.control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.presentation-nav { margin-top: 10px; }
.open-display { margin-top: 10px; font-size: .82rem; }
.reset-room { margin-top: 10px; font-size: .82rem; }
.answer-manager-card h3 { margin: 5px 0 8px; }
.answer-manager { margin-top: 13px; }
.answer-manager-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: .72rem; }
.answer-manager-head b { color: var(--acid); }
.answer-list { display: grid; gap: 7px; max-height: 300px; overflow: auto; padding-right: 3px; }
.answer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 9px 9px 9px 11px; background: rgba(255,255,255,.035); }
.answer-row div { min-width: 0; display: grid; gap: 2px; }
.answer-row small { color: var(--muted); font-size: .66rem; }
.answer-row strong { overflow-wrap: anywhere; font-size: .79rem; line-height: 1.35; }
.answer-delete { border: 1px solid rgba(255,112,126,.32); border-radius: 10px; padding: 7px 9px; color: #ff9ca6; background: rgba(255,112,126,.08); font: inherit; font-size: .68rem; font-weight: 850; cursor: pointer; }
.answer-delete:hover { border-color: rgba(255,112,126,.7); background: rgba(255,112,126,.16); }

.display-mode { overflow: hidden; background: #000; }
.display-mode .game-shell { width: 100%; height: 100svh; padding: 0; }
.display-mode .topbar, .display-mode .room-strip, .display-mode .page-panel, .display-mode .host-side, .display-mode .audience-now, .display-mode .share-monitor, .display-mode .phone-monitor, .display-mode .monitor-label, .display-mode .preview-caption { display: none !important; }
.display-mode .host-dashboard, .display-mode .host-grid, .display-mode .preview-column, .display-mode .presenter-monitor, .display-mode .shared-monitor { width: 100%; height: 100%; display: grid; place-items: center; }
.display-mode .stage-scene { width: min(100vw, calc(100svh * 16 / 9)); max-height: 100svh; border: 0; border-radius: 0; }
.participant-list { display: grid; gap: 8px; max-height: 430px; overflow: auto; padding-right: 4px; }
.participant { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; padding: 8px 11px 8px 5px; background: #0d1017; }
.participant .sprite { width: 48px; }
.participant-name { font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.participant-meta { color: var(--muted); font-size: .76rem; margin-top: 3px; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.online-dot.on { background: var(--safe); box-shadow: 0 0 0 5px rgba(121,242,189,.1); }

/* Player world — a full-screen, camera-following adventure map. */
.player-page:has(.world-game:not(.hidden)) { overflow: hidden; overscroll-behavior: none; }
.player-page .game-shell:has(.world-game:not(.hidden)) { width: 100%; height: 100svh; margin: 0; padding: 0; }
.player-page .game-shell:has(.world-game:not(.hidden)) > .topbar { display: none; }
.world-game { position: fixed; inset: 0; overflow: hidden; background: #9edcf2; color: #fff; }
.world-viewport { position: absolute; inset: 0; overflow: hidden; outline: none; touch-action: none; cursor: grab; }
.world-viewport:active { cursor: grabbing; }
.world { --world-size: 1420px; position: absolute; left: 0; top: 0; width: var(--world-size); height: var(--world-size); transform-origin: 0 0; will-change: transform; }
.world-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; -webkit-user-drag: none; }
.world::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 46%, rgba(16, 35, 57, .1) 100%); }
.world-hud { position: fixed; z-index: 30; top: 14px; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.world-brand { pointer-events: auto; padding: 10px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 16px; color: #16273c; background: rgba(255,255,255,.84); box-shadow: 0 8px 28px rgba(28,73,103,.18); backdrop-filter: blur(16px); text-decoration: none; font-weight: 950; letter-spacing: -.035em; }
.world-brand span { color: #7552df; margin-left: 4px; }
.world-status { display: flex; gap: 8px; }
.world-status .status-pill { color: #17283b; background: rgba(255,255,255,.86); border-color: rgba(255,255,255,.65); box-shadow: 0 8px 28px rgba(28,73,103,.16); }
.objective { position: fixed; z-index: 31; top: max(70px, calc(env(safe-area-inset-top) + 70px)); left: 50%; translate: -50% 0; width: min(520px, calc(100% - 32px)); display: grid; grid-template-columns: 1fr; align-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; padding: 11px 16px 12px; text-align: left; color: #17283b; background: rgba(255,255,255,.91); box-shadow: 0 12px 38px rgba(23,59,88,.21); backdrop-filter: blur(18px); }
.objective small, .objective strong, .objective em { display: block; }
.objective small { color: #7552df; font-weight: 900; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.objective strong { margin: 1px 0; font-size: 1rem; }
.objective em { color: #637083; font-size: .78rem; font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.beacon { --beacon-color: #d7ff4f; position: absolute; z-index: 6; width: 102px; height: 132px; translate: -50% -82%; display: grid; justify-items: center; align-content: end; border: 0; padding: 0; color: inherit; background: transparent; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(29,50,78,.3)); font: inherit; }
.beacon::before { content: ""; position: absolute; left: 50%; bottom: 12px; width: 32px; height: 86px; translate: -50% 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--beacon-color) 55%, transparent)); clip-path: polygon(41% 0,59% 0,100% 100%,0 100%); opacity: .8; animation: beaconGlow 1.8s ease-in-out infinite; }
.beacon-core { position: relative; z-index: 2; width: 54px; aspect-ratio: 1; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #13223b; background: var(--beacon-color); font-size: 1.55rem; box-shadow: 0 0 0 8px color-mix(in srgb, var(--beacon-color) 32%, transparent), 0 9px 22px rgba(19,34,59,.28); animation: beaconBob 1.6s ease-in-out infinite alternate; }
.beacon-label { position: relative; z-index: 3; margin-top: 8px; max-width: 150px; border: 2px solid rgba(255,255,255,.9); border-radius: 999px; padding: 5px 10px; color: #17283b; background: rgba(255,255,255,.94); font-size: .72rem; font-weight: 950; white-space: nowrap; }
.beacon-action { position: relative; z-index: 4; margin-top: 5px; border: 2px solid rgba(255,255,255,.95); border-radius: 999px; padding: 4px 8px; color: #fff; background: rgba(15,118,110,.9); box-shadow: 0 5px 14px rgba(16,72,67,.28); font-size: .56rem; font-weight: 950; white-space: nowrap; opacity: .72; transition: .18s ease; }
.beacon.locked { --beacon-color: #a7b0bd; filter: grayscale(.55) drop-shadow(0 8px 12px rgba(29,50,78,.2)); opacity: .82; }
.beacon.active { pointer-events: auto; cursor: pointer; }
.beacon.active .beacon-core { animation: beaconBob 1s ease-in-out infinite alternate, activePulse 1.3s ease-out infinite; }
.beacon.active:active .beacon-core { scale: .82; }
.beacon.active.ready .beacon-action { color: #17230c; background: var(--acid); opacity: 1; animation: beaconActionPulse .9s ease-in-out infinite alternate; }
.beacon.active.ready .beacon-core { box-shadow: 0 0 0 12px color-mix(in srgb, var(--beacon-color) 38%, transparent), 0 9px 22px rgba(19,34,59,.28); }
.beacon.pressed { z-index: 22; pointer-events: none; }
.beacon.pressed::after { content: ""; position: absolute; z-index: 1; left: 50%; bottom: 34px; width: 62px; aspect-ratio: 1; translate: -50% 50%; border: 6px solid #fff; border-radius: 50%; animation: landmarkRing .7s ease-out forwards; }
.beacon.pressed .beacon-core { animation: landmarkPress .7s cubic-bezier(.2,.85,.25,1) both; }
.beacon.pressed .beacon-label, .beacon.pressed .beacon-action { animation: landmarkLabel .7s ease both; }
@keyframes beaconGlow { 50% { opacity: .42; transform: scaleX(1.15); } }
@keyframes beaconBob { to { translate: 0 -8px; } }
@keyframes activePulse { 70%,100% { box-shadow: 0 0 0 26px transparent, 0 9px 22px rgba(19,34,59,.28); } }
@keyframes beaconActionPulse { to { translate: 0 -3px; box-shadow: 0 8px 20px rgba(72,101,20,.36); } }
@keyframes landmarkPress { 0% { scale: 1; } 22% { scale: .74; rotate: -8deg; } 55% { scale: 1.28; rotate: 7deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes landmarkRing { 0% { scale: .45; opacity: 1; } 100% { scale: 3.2; opacity: 0; } }
@keyframes landmarkLabel { 0%,20% { translate: 0 0; } 48% { translate: 0 -12px; } 100% { translate: 0 0; } }
.world-player { position: absolute; z-index: 14; width: 92px; height: 116px; translate: -50% -78%; display: grid; justify-items: center; align-content: end; transition: filter .2s ease; filter: drop-shadow(0 14px 8px rgba(24,43,65,.3)); will-change: left, top; }
.world-player::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 3px; width: 54px; height: 20px; translate: -50% 0; border-radius: 50%; background: rgba(18,42,62,.3); filter: blur(2px); }
.world-player .sprite { width: 86px; position: relative; z-index: 2; transform-origin: 50% 85%; }
.world-player.moving .sprite { animation: playerWalk .3s ease-in-out infinite alternate; }
.world-player.facing-left .sprite { scale: -1 1; }
.player-guide { position: absolute; z-index: 18; width: 56px; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border: 4px solid rgba(255,255,255,.94); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #2dd4bf, #159685); box-shadow: 0 0 0 9px rgba(45,212,191,.2), 0 10px 24px rgba(17,78,72,.34); font: inherit; font-size: 1.55rem; line-height: 1; cursor: pointer; transform-origin: center; animation: guidePulse 1.25s ease-in-out infinite alternate; }
.player-guide.arrived { opacity: 0; pointer-events: none; }
@keyframes guidePulse { to { box-shadow: 0 0 0 18px rgba(45,212,191,0), 0 10px 24px rgba(17,78,72,.34); scale: 1.08; } }
.world-player-name { position: relative; z-index: 4; max-width: 116px; margin-top: -7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 2px solid #fff; border-radius: 999px; padding: 4px 9px; color: #16273c; background: rgba(255,255,255,.93); font-size: .75rem; font-weight: 950; box-shadow: 0 5px 14px rgba(27,58,80,.18); }
@keyframes playerWalk { from { rotate: -3deg; translate: 0 0; } to { rotate: 3deg; translate: 0 -7px; } }
.remote-player { position: absolute; z-index: 12; width: 72px; height: 96px; translate: -50% -76%; display: grid; justify-items: center; align-content: end; opacity: .88; filter: drop-shadow(0 10px 7px rgba(24,43,65,.28)); transition: left .16s linear, top .16s linear; will-change: left, top; }
.remote-player::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 3px; width: 44px; height: 15px; translate: -50% 0; border-radius: 50%; background: rgba(18,42,62,.27); filter: blur(2px); }
.remote-player .sprite { width: 68px; position: relative; z-index: 2; transform-origin: 50% 85%; }
.remote-player .world-player-name { max-width: 90px; padding: 3px 7px; font-size: .66rem; }
.remote-player.moving .sprite { animation: playerWalk .3s ease-in-out infinite alternate; }
.remote-player.facing-left .sprite { scale: -1 1; }
.world-token { position: absolute; z-index: 9; width: 46px; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.94); border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #fff7ad, #ffb62e 58%, #ff7b38); box-shadow: 0 0 0 8px rgba(255,208,70,.2), 0 8px 18px rgba(88,49,5,.3); animation: tokenFloat 1.25s ease-in-out infinite alternate; animation-delay: var(--token-delay); }
.world-token span { font-size: 1.45rem; filter: drop-shadow(0 2px 2px rgba(86,46,0,.28)); }
.world-token.collected { display: none; }
.world-token.collecting { animation: tokenCollect .34s ease-out forwards; }
@keyframes tokenFloat { to { translate: -50% calc(-50% - 10px); rotate: 8deg; } }
@keyframes tokenCollect { to { translate: -50% -90%; scale: 1.8; opacity: 0; } }
.world-player.jumping .sprite { animation: playerJump .5s cubic-bezier(.2,.8,.2,1); }
@keyframes playerJump { 0%,100% { translate: 0 0; scale: 1; } 45% { translate: 0 -46px; scale: 1.08 .92; } 70% { translate: 0 -16px; scale: .96 1.04; } }
.joystick { position: fixed; z-index: 31; left: max(24px, env(safe-area-inset-left)); bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px)); width: 128px; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.62); border-radius: 50%; background: rgba(23,40,61,.28); box-shadow: inset 0 0 0 12px rgba(255,255,255,.08), 0 10px 30px rgba(25,51,77,.2); backdrop-filter: blur(10px); touch-action: none; }
.joystick::before, .joystick::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.35); }
.joystick-knob { position: absolute; left: 50%; top: 50%; width: 62px; aspect-ratio: 1; translate: -50% -50%; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; background: linear-gradient(145deg, rgba(156,125,255,.94), rgba(99,67,198,.94)); box-shadow: 0 7px 18px rgba(43,36,92,.38); }
.world-actions { position: fixed; z-index: 31; right: 24px; right: max(24px, env(safe-area-inset-right)); bottom: 30px; bottom: max(30px, calc(env(safe-area-inset-bottom) + 22px)); display: flex; align-items: end; gap: 12px; }
.jump-button { width: 68px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 0; border: 3px solid rgba(255,255,255,.88); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #78e8ff, #2e9ccd); font-size: .78rem; font-weight: 950; box-shadow: 0 9px 25px rgba(21,91,123,.3); }
.jump-button span { font-size: 1.45rem; line-height: .9; }
.interact-button { width: 92px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 2px; border: 4px solid rgba(255,255,255,.92); border-radius: 50%; color: #16273c; background: linear-gradient(145deg, #e6ff83, #b8e92f); font-weight: 950; box-shadow: 0 9px 28px rgba(72,101,20,.28); }
.interact-button span { font-size: 1.45rem; line-height: 1; }
.interact-button:disabled { opacity: .52; filter: grayscale(.5); }
.round-action { width: 48px; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; color: #fff; background: rgba(23,40,61,.48); font-size: 1.3rem; backdrop-filter: blur(10px); }
.move-hint { position: fixed; z-index: 30; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0; margin: 0; border-radius: 999px; padding: 8px 14px; color: #fff; background: rgba(19,39,59,.58); backdrop-filter: blur(10px); font-size: .74rem; font-weight: 800; pointer-events: none; }
.leaderboard-hud { position: fixed; z-index: 30; left: 18px; top: 82px; width: 210px; border: 1px solid rgba(255,255,255,.65); border-radius: 18px; padding: 12px; color: #17283b; background: rgba(255,255,255,.88); box-shadow: 0 12px 36px rgba(23,59,88,.2); backdrop-filter: blur(15px); transition: width .22s ease, box-shadow .22s ease; }
.leaderboard-hud.expanded { z-index: 47; width: min(340px, calc(100% - 36px)); box-shadow: 0 22px 60px rgba(23,59,88,.34); }
.leaderboard-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.leaderboard-title > div { display: flex; align-items: center; gap: 7px; }
.leaderboard-title strong { font-size: .82rem; }
.leaderboard-title span { border-radius: 99px; padding: 3px 7px; color: #fff; background: #7552df; font-size: .62rem; font-weight: 900; }
.leaderboard-title button { border: 1px solid rgba(99,67,198,.24); border-radius: 999px; padding: 5px 8px; color: #5637b9; background: rgba(156,125,255,.1); font: inherit; font-size: .62rem; font-weight: 950; cursor: pointer; white-space: nowrap; }
.leaderboard-rows { display: grid; gap: 2px; max-height: min(54svh, 430px); overflow: auto; overscroll-behavior: contain; }
.leader-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 5px; min-height: 27px; padding: 3px 4px; border-radius: 8px; font-size: .72rem; }
.leader-row.me { background: rgba(215,255,79,.55); }
.leader-row span { min-width: 0; display: grid; overflow: hidden; font-weight: 800; }
.leader-row span > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-row span > small { color: #687185; font-size: .59rem; font-weight: 750; }
.leader-row strong { font-size: .7rem; }
.leaderboard-hud.expanded .leader-row { min-height: 38px; border-bottom: 1px solid rgba(23,40,61,.08); padding: 5px 6px; }
.leaderboard-hud > p { margin: 3px 0 0; color: #637083; font-size: .7rem; line-height: 1.35; }
.score-pill::before { display: none; }
.reward-burst { position: fixed; z-index: 80; left: 50%; top: 42%; translate: -50% -50%; display: grid; justify-items: center; pointer-events: none; opacity: 0; scale: .65; transition: .2s ease; filter: drop-shadow(0 12px 25px rgba(26,36,55,.3)); }
.reward-burst strong { font-size: clamp(3.8rem, 11vw, 7rem); line-height: .8; letter-spacing: -.08em; color: #f4ff8b; -webkit-text-stroke: 4px #5637b9; paint-order: stroke fill; }
.reward-burst span { margin-top: 12px; border: 3px solid #fff; border-radius: 999px; padding: 8px 16px; color: #16273c; background: #fff; font-weight: 950; }
.reward-burst.show { opacity: 1; scale: 1; animation: rewardPop 1.8s ease both; }
@keyframes rewardPop { 0% { opacity: 0; scale: .4; } 15%,72% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.12; translate: -50% -85%; } }
.landmark-feedback { position: fixed; z-index: 78; left: 50%; top: 38%; translate: -50% -50%; display: flex; align-items: center; gap: 12px; border: 3px solid rgba(255,255,255,.95); border-radius: 22px; padding: 12px 18px 12px 12px; color: #17283b; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(16,49,66,.36); opacity: 0; scale: .6; pointer-events: none; }
.landmark-feedback > span { width: 46px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #082b27; background: var(--acid); font-size: 1.5rem; font-weight: 950; }
.landmark-feedback > div { display: grid; gap: 1px; }
.landmark-feedback strong { font-size: .96rem; }
.landmark-feedback small { color: #667483; font-size: .7rem; font-weight: 800; }
.landmark-feedback.show { animation: landmarkFeedback .75s cubic-bezier(.18,.88,.26,1) both; }
@keyframes landmarkFeedback { 0% { opacity: 0; scale: .55; translate: -50% -25%; } 24%,72% { opacity: 1; scale: 1; translate: -50% -50%; } 100% { opacity: 0; scale: 1.05; translate: -50% -74%; } }
.mission-sheet { position: fixed; z-index: 50; left: 50%; bottom: 18px; width: min(620px, calc(100% - 32px)); max-height: min(76svh, 680px); translate: -50% calc(100% + 40px); overflow: auto; border: 2px solid rgba(255,255,255,.72); border-radius: 28px; padding: 26px; color: var(--ink); background: rgba(11,15,24,.94); box-shadow: 0 25px 90px rgba(10,28,44,.45); backdrop-filter: blur(24px); opacity: 0; pointer-events: none; transition: translate .3s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.mission-sheet.open { translate: -50% 0; opacity: 1; pointer-events: auto; }
.mission-close { position: sticky; z-index: 3; top: 0; float: right; width: 42px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: #202635; font-size: 1.45rem; }
.mission-content { clear: both; padding-top: 2px; }
.mission-content .control-row { margin-top: 16px; }
.mission-content .button { margin-top: 10px; }
.live-share-button { position: fixed; z-index: 45; top: max(88px, calc(env(safe-area-inset-top) + 78px)); right: max(18px, env(safe-area-inset-right)); max-width: min(260px, calc(100% - 36px)); display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 2px solid rgba(255,255,255,.82); border-radius: 18px; padding: 9px 11px; color: #17283b; text-align: left; background: rgba(255,255,255,.92); box-shadow: 0 12px 35px rgba(23,59,88,.24); backdrop-filter: blur(18px); cursor: pointer; }
.live-share-button > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.live-share-button small { color: #6d7483; font-size: .62rem; font-weight: 850; }
.live-share-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.live-share-icon { width: 27px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #ff6575; background: rgba(255,101,117,.13); font-size: .66rem; box-shadow: 0 0 0 0 rgba(255,101,117,.34); }
.live-share-button em { border-radius: 999px; padding: 5px 7px; color: #17230c; background: var(--acid); font-size: .62rem; font-style: normal; font-weight: 950; white-space: nowrap; }
.live-share-button.unread { border-color: var(--acid); animation: liveButtonNudge 1.8s ease-in-out infinite; }
.live-share-button.unread .live-share-icon { animation: liveSignal 1.35s ease-out infinite; }
@keyframes liveSignal { 70%,100% { box-shadow: 0 0 0 11px rgba(255,101,117,0); } }
@keyframes liveButtonNudge { 0%,84%,100% { translate: 0 0; } 89% { translate: -5px 0; } 94% { translate: 3px 0; } }
.live-share-panel { position: fixed; z-index: 95; inset: 0; display: grid; place-items: center; padding: clamp(10px, 3vw, 34px); background: rgba(4,7,13,.78); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.live-share-panel.open { opacity: 1; pointer-events: auto; }
.live-share-window { width: min(1100px, 100%); max-height: calc(100svh - 24px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 26px; color: var(--ink); background: #0d111a; box-shadow: 0 35px 110px rgba(0,0,0,.55); transform: translateY(16px) scale(.98); transition: transform .24s ease; }
.live-share-panel.open .live-share-window { transform: none; }
.live-share-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 14px 16px 13px 20px; background: #121722; }
.live-share-header > div { min-width: 0; display: grid; gap: 3px; }
.live-share-header span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .68rem; font-weight: 850; }
.live-share-header span i { width: 8px; aspect-ratio: 1; border-radius: 50%; background: #ff6575; box-shadow: 0 0 0 5px rgba(255,101,117,.12); }
.live-share-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(.92rem, 2vw, 1.18rem); }
.live-share-header button { width: 42px; aspect-ratio: 1; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: #242a37; font: inherit; font-size: 1.45rem; cursor: pointer; }
.live-share-content { min-height: 0; overflow: auto; background: radial-gradient(circle at 18% 15%, rgba(156,125,255,.13), transparent 30%), radial-gradient(circle at 82% 82%, rgba(120,232,255,.1), transparent 30%), #0b0f17; }
.live-share-window > footer { padding: 10px 18px; color: var(--muted); text-align: center; background: #10141d; font-size: .7rem; }
.live-share-slide { min-height: min(62vw, 610px); display: grid; align-content: center; gap: 18px; padding: clamp(28px, 6vw, 76px); }
.live-share-slide h2 { max-width: 880px; margin: 0; font-size: clamp(2rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.live-share-slide > p { max-width: 760px; margin: 0; color: #c6cad4; font-size: clamp(1rem, 2.3vw, 1.45rem); line-height: 1.6; }
.live-waiting { text-align: center; justify-items: center; }
.live-poll-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 3vw, 32px); align-items: end; }
.live-poll-grid > div { display: grid; justify-items: center; gap: 8px; }
.live-poll-grid strong { font-size: clamp(.8rem, 2vw, 1.25rem); }
.live-poll-grid span { width: min(86px, 100%); height: clamp(110px, 22vw, 230px); display: flex; align-items: end; overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: rgba(255,255,255,.05); }
.live-poll-grid i { width: 100%; min-height: 8px; border-radius: 12px 12px 0 0; background: linear-gradient(#d7ff4f, #78e8ff); transition: height .35s ease; }
.live-poll-grid b { color: var(--acid); font-size: clamp(1.2rem, 3vw, 2rem); }
.live-role-wall, .live-result-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.live-role-wall span, .live-result-cloud span { border: 1px solid rgba(156,125,255,.42); border-radius: 999px; padding: 9px 14px; background: rgba(156,125,255,.1); font-weight: 850; }
.live-role-wall b, .live-result-cloud b { color: var(--acid); }
.live-empty { color: var(--muted) !important; }
.live-ability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.live-ability-grid span { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 18px; padding: clamp(14px, 2vw, 22px); background: rgba(255,255,255,.045); }
.live-ability-grid b { color: var(--acid); font-size: clamp(1rem, 2vw, 1.35rem); }
.live-ability-grid small { color: var(--muted); }
.live-callout { border-left: 4px solid var(--violet); padding: 12px 15px; background: rgba(156,125,255,.08); font-size: clamp(.9rem, 2vw, 1.2rem); }
.live-app-slide { grid-template-columns: .72fr 1.28fr; align-items: center; }
.live-app-slide > div { display: grid; gap: 16px; align-content: center; }
.live-app-slide iframe { width: 100%; height: min(58svh, 540px); border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.competition-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.competition-head h3 { margin: 4px 0 0; font-size: 1.35rem; }
.race-live { border-radius: 999px; padding: 6px 9px; color: #18200a; background: var(--acid); font-size: .7rem; font-weight: 950; }
.host-leaderboard { display: grid; gap: 7px; margin-top: 15px; }
.host-rank { display: grid; grid-template-columns: 30px 40px minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 10px 4px 6px; background: #0d1017; }
.host-rank.podium { border-color: rgba(215,255,79,.32); background: rgba(215,255,79,.055); }
.host-rank .sprite { width: 40px; }
.host-rank span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 850; }
.host-rank strong { color: var(--acid); white-space: nowrap; }

@media (min-width: 900px) {
  .world { --world-size: 1650px; }
  .world-player { scale: 1.08; }
  .mission-sheet { left: auto; right: 24px; bottom: 24px; width: 430px; max-height: calc(100svh - 170px); translate: calc(100% + 60px) 0; }
  .mission-sheet.open { translate: 0 0; }
}

@media (max-width: 820px) {
  .choice-grid, .game-layout, .host-grid { grid-template-columns: 1fr; }
  .page-panel { position: static; max-height: none; }
  .page-list { grid-auto-flow: column; grid-auto-columns: 150px; grid-template-columns: none; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; }
  .choice { min-height: 220px; }
  .room-strip { grid-template-columns: 1fr auto; }
  .room-strip .room-links { grid-column: 1 / -1; }
  .map-card { min-height: 700px; }
  .map { grid-template-columns: 1fr; gap: 36px; min-height: 560px; padding: 22px 0 20px 98px; }
  .map::before { left: 51px; right: auto; top: 9%; bottom: 9%; width: 8px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.16) 0 18px, transparent 18px 30px); }
  .stage { grid-template-columns: 88px 1fr; align-items: center; justify-items: start; }
  .stage-node { grid-row: 1 / 3; }
  .stage-title, .stage-note { text-align: left; margin: 0 0 0 14px; }
  .stage-note { margin-top: 5px; }
  .player-marker { left: 49px; top: calc(9% + (var(--progress) * 27%)); transform: translate(-50%, -50%); transition: top .65s cubic-bezier(.2,.8,.2,1); }
  .player-marker .sprite { width: 62px; }
  .player-marker-name { display: none; }
  .app-board { grid-template-columns: 1fr; }
  .slide6-board { grid-template-columns: 1fr; }
  .screen-fan { min-width: 0; height: 300px; }
  .screen-shot { height: 285px; }
  .route-picker-visual { height: 300px; }
  .route-picker-visual img { height: 290px; }
  .tool-lanes { grid-template-columns: 1fr; }
  .build-loop { flex-wrap: wrap; }
  .prompt-help-board { grid-template-columns: 1fr; }
  .prompt-help-board > .eyebrow, .prompt-help-board > h2, .prompt-help-board > .tools-callout { grid-column: 1; }
  .music-story-board { grid-template-columns: 1fr; }
  .music-app-shot img { max-height: 300px; }
  .song-loop { flex-wrap: wrap; }
  .era-contrast { grid-template-columns: 1fr; }
  .app-qr { width: 130px; }
  .app-preview { height: 260px; }
}

@media (max-width: 1180px) and (min-width: 821px) {
  .host-grid { grid-template-columns: 170px minmax(480px, 1fr); }
  .host-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .game-shell { width: min(100% - 22px, 1180px); padding-top: 14px; }
  .topbar { margin-bottom: 18px; }
  .tiny-link.hide-phone { display: none; }
  .card { border-radius: 22px; padding: 19px; }
  h1 { font-size: 3rem; }
  .avatar-grid { gap: 7px; }
  .avatar-choice { min-height: 69px; border-radius: 13px; }
  .setup { margin-top: 2vh; }
  .map-head { align-items: center; }
  .map-head h1 { font-size: 2rem; margin-bottom: 8px; }
  .room-code { font-size: 2.25rem; }
  .qr { width: 108px; }
  .control-row { grid-template-columns: 1fr; }
  .world-hud { left: 10px; right: 10px; }
  .world-brand { padding: 9px 11px; font-size: .86rem; }
  .world-brand span { display: none; }
  .world-status .status-pill:first-child { display: none; }
  .objective { top: max(62px, calc(env(safe-area-inset-top) + 62px)); border-radius: 17px; }
  .live-share-button { top: max(142px, calc(env(safe-area-inset-top) + 142px)); right: 10px; max-width: 190px; border-radius: 15px; padding: 8px 9px; }
  .live-share-button strong { font-size: .7rem; }
  .live-share-window { max-height: calc(100svh - 16px); border-radius: 20px; }
  .live-share-slide { min-height: 58svh; padding: 28px 20px; }
  .live-share-slide h2 { font-size: clamp(2rem, 10vw, 3.15rem); }
  .live-ability-grid { grid-template-columns: repeat(2, 1fr); }
  .live-app-slide { grid-template-columns: 1fr; }
  .live-app-slide iframe { height: 42svh; }
  .joystick { left: 18px; width: 112px; }
  .joystick-knob { width: 54px; }
  .world-actions { right: 18px; }
  .interact-button { width: 82px; }
  .jump-button { width: 62px; }
  .leaderboard-hud { left: 10px; top: auto; bottom: 156px; width: 178px; padding: 9px; }
  .leaderboard-hud.expanded { width: calc(100% - 20px); }
  .leaderboard-hud.expanded .leaderboard-rows { max-height: min(48svh, 390px); }
  .leader-row { min-height: 24px; font-size: .66rem; }
  .move-hint { display: none; }
  .mission-sheet { bottom: 10px; width: calc(100% - 20px); border-radius: 24px; padding: 20px; }
}

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

/* 2026 visual refresh — quiet island studio */
:root {
  --bg: #07131f;
  --panel: #0d1c2a;
  --panel-2: #132638;
  --ink: #f4f7f8;
  --muted: #9aabba;
  --line: rgba(163, 190, 207, .2);
  --acid: #f2b84b;
  --violet: #2dd4bf;
  --cyan: #7dd3fc;
  --danger: #fb7185;
  --safe: #34d399;
  --focus: #f6c865;
  --shadow: 0 20px 55px rgba(0, 6, 15, .28);
}

html { color-scheme: dark; }
body {
  background:
    radial-gradient(circle at 86% 0%, rgba(45, 212, 191, .09), transparent 34rem),
    linear-gradient(155deg, #07131f 0%, #091725 52%, #07111b 100%);
  font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  letter-spacing: .005em;
}
:focus-visible { outline: 3px solid var(--focus) !important; outline-offset: 3px; }
.game-shell { width: min(1240px, calc(100% - 48px)); padding: 28px 0 52px; }
.topbar { min-height: 44px; margin-bottom: clamp(28px, 5vw, 64px); }
.brand { font-size: .92rem; letter-spacing: .08em; font-weight: 800; }
.brand span { margin-left: .35rem; color: var(--violet); font-weight: 700; }
.tiny-link { color: #afbdc9; font-size: .85rem; text-underline-offset: 5px; }
.eyebrow { color: var(--violet); font-size: .7rem; font-weight: 800; letter-spacing: .2em; }
h1 { font-weight: 760; letter-spacing: -.065em; }
h2, h3 { letter-spacing: -.035em; }
.lede { color: #bdc9d2; }
.muted { color: var(--muted); }

.card {
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(13, 28, 42, .9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.button {
  min-height: 48px;
  border-radius: 10px;
  background: var(--acid);
  color: #17202a;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); filter: none; background: #f7c767; }
.button:focus-visible { filter: none; }
.button.secondary { border-color: #385064; color: #dce5eb; background: #102235; }
.button.secondary:hover { border-color: #648298; background: #152b40; }
.button.violet { color: #062721; background: var(--violet); }
.button.violet:hover { background: #5ee4d2; }
.field input, .field textarea, .field select { border-radius: 10px; background: #081522; }
.field input:focus, .field textarea:focus { border-color: var(--violet); outline-color: rgba(45, 212, 191, .16); }

/* Game entry: the activity is the first viewport, with a single clear action. */
.game-landing {
  min-height: calc(100svh - 150px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}
.landing-copy { position: relative; z-index: 2; padding-bottom: 4vh; }
.landing-copy h1 { margin: 18px 0 26px; font-size: clamp(3.8rem, 7.5vw, 7.4rem); line-height: .88; }
.landing-copy h1 span { display: inline-block; color: #dfe8ee; }
.landing-copy .lede { max-width: 590px; font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.7; }
.landing-actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.landing-primary { min-width: 190px; }
.landing-primary span { margin-left: auto; font-size: 1.2rem; }
.landing-note { color: var(--muted); font-size: .78rem; }
.presenter-entry { margin-top: 26px; font-size: .8rem; }
.presenter-entry a { text-decoration-color: #466075; }
.landing-visual {
  position: relative;
  min-height: min(70svh, 720px);
  overflow: hidden;
  border: 1px solid rgba(160, 192, 209, .28);
  border-radius: 22px;
  background: #152f43;
  box-shadow: 0 34px 90px rgba(0, 5, 14, .42);
}
.landing-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 17, 28, .08), rgba(5, 17, 28, .14) 55%, rgba(5, 17, 28, .72)); pointer-events: none; }
.landing-visual img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transform: scale(1.025); }
.landing-visual-label, .landing-visual-status { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.2); background: rgba(7,19,31,.8); backdrop-filter: blur(16px); }
.landing-visual-label { left: 22px; bottom: 22px; display: grid; gap: 4px; min-width: 190px; border-radius: 12px; padding: 14px 16px; }
.landing-visual-label span { color: #9cb0be; font-size: .68rem; letter-spacing: .12em; }
.landing-visual-label strong { font-size: 1.1rem; }
.landing-visual-status { top: 20px; right: 20px; display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; font-size: .72rem; font-weight: 700; }
.landing-visual-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(45,212,191,.15); }

/* Player setup */
.setup { margin-top: 4vh; }
.setup.card { border-top: 3px solid var(--violet); }
.avatar-choice { border-radius: 10px; background: #081522; }
.avatar-choice.selected { border-color: var(--violet); background: rgba(45,212,191,.1); box-shadow: inset 0 0 0 1px var(--violet); }

/* Presenter workspace: presentation first, controls second. */
.host-page { background: #07111b; }
.host-page .game-shell { width: min(1600px, calc(100% - 32px)); padding-top: 16px; }
.host-page .topbar { min-height: 40px; margin-bottom: 12px; }
.host-dashboard { gap: 12px; }
.host-page .room-strip { grid-template-columns: 180px minmax(0, 1fr) auto; gap: 16px; padding: 12px 14px; border-radius: 12px; box-shadow: none; }
.host-page .room-code { color: var(--acid); font-size: 1.8rem; letter-spacing: .16em; }
.host-page .qr { border-radius: 8px; }
.room-links { color: var(--muted); }
.host-grid { grid-template-columns: 190px minmax(560px, 1fr) 290px; gap: 12px; }
.page-panel { top: 10px; max-height: calc(100svh - 150px); padding: 12px 9px; border-radius: 12px; box-shadow: none; }
.page-panel-head { padding: 2px 6px 12px; }
.page-panel-head h2 { font-size: 1.1rem; }
.page-counter { color: #9fb0bd; background: #102235; }
.page-list { gap: 4px; max-height: calc(100svh - 215px); padding: 0 4px 12px 0; }
.page-item { grid-template-columns: 24px 1fr; gap: 7px; border-radius: 9px; padding: 4px; }
.page-item:hover:not(:disabled) { background: rgba(255,255,255,.035); }
.page-index { color: #8296a6; font-size: .65rem; }
.page-thumb, .page-thumb.poll, .page-thumb.roles, .page-thumb.reveal, .page-thumb.app, .page-thumb.journey, .page-thumb.tone-1, .page-thumb.tone-2 {
  aspect-ratio: auto;
  min-height: 56px;
  align-items: center;
  border: 1px solid #284054;
  border-radius: 8px;
  padding: 9px 8px;
  background: #0a1825;
  box-shadow: none;
}
.page-thumb::before, .page-thumb i { display: none; }
.page-thumb b { font-size: .66rem; line-height: 1.35; font-weight: 720; }
.page-thumb em { top: 4px; right: 4px; left: auto; padding: 2px 5px; color: #07131f; background: var(--violet); font-size: .46rem; }
.page-item.active { background: rgba(45,212,191,.06); }
.page-item.active .page-index { color: var(--violet); }
.page-item.active .page-thumb { border-color: var(--violet); background: #102932; box-shadow: inset 3px 0 0 var(--violet); }
.page-item:hover:not(:disabled) .page-thumb { border-color: #4b6a7d; }
.preview-column { gap: 7px; }
.audience-now, .monitor-label { border-color: #263c4e; border-radius: 8px; background: #0b1926; }
.audience-now { min-height: 38px; padding: 7px 11px; }
.audience-now i, .monitor-label span i { background: var(--violet); box-shadow: none; }
.presenter-monitor { grid-template-columns: minmax(0, 1.35fr) minmax(230px, .72fr) 190px; gap: 10px; }
.monitor-label { min-height: 31px; }
.stage-scene { container-type: inline-size; border: 1px solid #2a4255; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.stage-scene::after { background: linear-gradient(180deg, rgba(7,19,31,.64), rgba(7,19,31,.06) 30%, rgba(7,19,31,.28)); }
.host-page:not(.display-mode) { position: fixed; inset: 0; width: 100%; overflow: hidden; }
.host-page:not(.display-mode) .host-side { max-height: calc(100svh - 176px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.host-page:not(.display-mode) .page-list { overscroll-behavior: contain; overflow-anchor: none; }
.phone-frame { border-color: #203547; border-radius: 22px; box-shadow: 0 18px 45px rgba(0,0,0,.34); }
.host-side { gap: 10px; }
.host-side > .card { padding: 16px; border-radius: 12px; box-shadow: none; }
.current-page-card { border-color: rgba(45,212,191,.35); border-radius: 9px; background: rgba(45,212,191,.07); }
.current-page-card strong { color: var(--violet); }
.control-row { gap: 8px; }
.answer-row, .participant, .host-rank { border-radius: 8px; background: #091724; }
.race-live { color: #08221e; background: var(--violet); }
.host-rank.podium { border-color: rgba(242,184,75,.38); background: rgba(242,184,75,.06); }
.host-rank strong { color: var(--acid); }

/* Presentation system: restrained colour, strong hierarchy, 16:9 safe area. */
.phase-board {
  justify-items: start;
  gap: clamp(10px, 1.6vw, 18px);
  padding: clamp(34px, 5vw, 64px);
  text-align: left;
  background: linear-gradient(145deg, rgba(7,19,31,.96), rgba(12,30,44,.94));
  backdrop-filter: blur(8px);
}
.phase-board::before { content: ""; position: absolute; top: 0; left: clamp(34px, 5vw, 64px); width: 70px; height: 4px; background: var(--violet); }
.phase-board > .eyebrow { color: var(--violet); }
.phase-board h2, .phase-question { max-width: 920px; font-weight: 720; letter-spacing: -.045em; }
.phase-board h2 { font-size: clamp(1.55rem, 5cqi, 4.25rem); }
.phase-question { justify-self: start; font-size: clamp(1.65rem, 3.1vw, 3.25rem); text-align: left; }
.poll-board { justify-items: start; }
.poll-board .phase-question { font-size: clamp(1.65rem, 3.1vw, 3.25rem); }
.poll-grid { width: min(680px, 100%); justify-self: center; }
.poll-item b, .tools-callout, .reflection-lines p:last-child { color: var(--acid); }
.poll-bar { border-radius: 6px 6px 2px 2px; background: rgba(255,255,255,.05); }
.poll-bar i { background: linear-gradient(180deg, var(--acid), #d58d22); }
.role-wall { justify-content: flex-start; }
.role-wall span { border-color: #2b485b; border-radius: 8px; background: #102436; }
.role-wall span:nth-child(3n+2), .role-wall span:nth-child(3n) { background: #102436; }
.role-wall b { color: #09221e; background: var(--violet); }
.ability-center { border-color: var(--violet); }
.ability-center span, .ability-node small { color: var(--violet); }
.ability-node { border-radius: 10px; background: rgba(9,23,36,.94); box-shadow: none; }
.ability-node::after { background: #365a6e; }
.human-callout span { color: var(--violet); }
.human-callout b { color: var(--acid); }
.route-feelings span, .stuck-lines span { border-color: #2a4255; }
.journey-line span, .result-cloud span { border-color: #2c5163; border-radius: 8px; background: rgba(45,212,191,.07); }
.journey-line i { color: var(--acid); }
.tool-lanes section { border-color: rgba(45,212,191,.3); border-radius: 10px; background: rgba(45,212,191,.05); }
.tool-lanes span { border-radius: 7px; background: #091724; }
.tool-lanes small { color: var(--violet); }
.build-loop { border-radius: 10px; background: rgba(242,184,75,.07); }
.build-loop b { color: #10202a; background: var(--acid); }
.build-loop i { color: #66869a; }
.prompt-card, .chat-me, .chat-ai { border-radius: 10px; }
.chat-me { border-color: rgba(45,212,191,.3); background: rgba(45,212,191,.06); }
.chat-ai { border-color: rgba(242,184,75,.28); background: rgba(242,184,75,.055); }
.music-story-copy blockquote { border-color: var(--violet); background: rgba(45,212,191,.06); }
.song-details span { border-color: rgba(242,184,75,.3); color: var(--acid); background: rgba(242,184,75,.05); }
.song-loop i { color: #66869a; }
.era-contrast section { border-radius: 10px; }
.era-contrast section.now { border-color: rgba(45,212,191,.34); background: rgba(45,212,191,.06); }
.era-contrast i { color: #66869a; }
.era-contrast em { color: var(--acid); }
.screen-shot, .route-picker-visual img, .music-app-shot img { border-radius: 10px; box-shadow: 0 20px 44px rgba(0,0,0,.42); }

@container (max-width: 720px) {
  .phase-board {
    gap: 7px;
    padding: 24px 30px 18px;
  }
  .phase-board::before { left: 30px; width: 56px; height: 3px; }
  .phase-board > .eyebrow { font-size: .52rem; }
  .phase-question, .poll-board .phase-question { font-size: clamp(1.45rem, 6cqi, 2.1rem); }
  .poll-grid { height: 150px; gap: 10px; }
  .poll-item { gap: 4px; }
  .poll-item strong { font-size: .78rem; }
  .poll-item b { font-size: 1rem; }
  .ability-board { align-content: start; padding-top: 20px; }
  .ability-board > h2 { font-size: clamp(1.45rem, 5.6cqi, 2.1rem); line-height: 1; }
  .ability-map { height: 146px; }
  .ability-map::before { inset: 24px 15%; }
  .ability-center { width: 76px; }
  .ability-center b { font-size: .8rem; }
  .ability-center span { font-size: .48rem; }
  .ability-node { width: 114px; min-height: 43px; border-radius: 7px; padding: 4px 6px; }
  .ability-node small { font-size: .43rem; }
  .ability-node strong { font-size: .7rem; }
  .ability-node span { font-size: .43rem; }
  .ability-node::after { width: 42px; }
  .ability-node.node-1::after, .ability-node.node-2::after { right: -38px; }
  .ability-node.node-3::after { bottom: -18px; }
  .ability-node.node-4::after { top: -18px; }
  .ability-node.node-5::after, .ability-node.node-6::after { left: -38px; }
  .human-callout { padding-top: 6px; font-size: .55rem; }
  .slide6-board { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; padding: 18px 22px; }
  .phase-board.slide6-board h2, .tools-board > h2 { font-size: clamp(1.35rem, 5cqi, 2rem); }
  .slide6-copy { gap: 6px; }
  .slide6-copy > p, .tools-board > p { font-size: .65rem; line-height: 1.35; }
  .slide6-copy > small { font-size: .52rem; }
  .route-feelings { gap: 3px; }
  .route-feelings span { grid-template-columns: 42px 1fr; gap: 5px; padding: 3px 0; font-size: .55rem; }
  .route-feelings b { font-size: .62rem; }
  .route-picker-visual, .screen-fan { min-width: 0; height: 230px; }
  .route-picker-visual img, .screen-shot { height: 220px; }
  .result-cloud { gap: 4px; max-height: 52px; }
  .result-cloud span, .slide6-board .result-cloud span { padding: 3px 6px; font-size: .5rem; }
  .journey-line { gap: 3px; font-size: .5rem; }
  .journey-line span { padding: 3px 5px; }
  .tools-board { gap: 6px; padding: 18px 22px; }
  .tool-lanes { gap: 7px; }
  .tool-lanes section { gap: 4px; padding: 7px; }
  .tool-lanes span { padding: 5px 6px; font-size: .58rem; }
  .tool-lanes small { font-size: .5rem; }
  .build-loop { gap: 4px; padding: 6px; }
  .build-loop div { gap: 3px; }
  .build-loop b { width: 20px; font-size: .58rem; }
  .build-loop span { font-size: .54rem; }
  .tools-callout { font-size: .66rem; }
  .prompt-help-board { gap: 8px 12px; }
  .prompt-dialogue { gap: 6px; }
  .prompt-dialogue > div { padding: 8px; }
  .prompt-dialogue p { font-size: .58rem; line-height: 1.35; }
  .stuck-lines { gap: 4px; }
  .stuck-lines span { padding: 6px; font-size: .54rem; }
  .music-story-board { gap: 12px; }
  .music-story-copy blockquote { margin: 6px 0; padding: 6px 9px; font-size: .58rem; }
  .song-details { gap: 4px; }
  .song-details span { padding: 4px 6px; font-size: .5rem; }
  .song-loop { gap: 4px; margin: 7px 0; }
  .song-loop b { padding: 5px 6px; font-size: .52rem; }
  .music-app-shot img { max-height: 225px; }
  .era-contrast { gap: 8px; margin: 8px 0; }
  .era-contrast section { gap: 4px 7px; padding: 10px; font-size: .56rem; }
  .era-contrast b { font-size: .7rem; }
  .closing-bridge-board > p { font-size: .65rem; }
  .reflection-lines { gap: 3px; margin: 5px 0 8px; }
  .reflection-lines p { font-size: .66rem; }
  .final-arrivals { max-height: 68px; margin-bottom: 8px; }
  .final-arrivals .sprite { width: 30px; }
  .final-reflection-board > strong { font-size: 1.15rem; }
  .app-board { gap: 12px; }
  .app-board h2 { font-size: 1.8rem; }
  .app-board p { font-size: .62rem; line-height: 1.4; }
  .app-preview { height: 190px; }
  .app-qr, .app-actions .app-qr { width: 64px; }
}

/* Player HUD inherits the same brand accent without compromising map contrast. */
.world-brand span, .objective small { color: #0f766e; }
.joystick-knob { background: linear-gradient(145deg, #2dd4bf, #159685); box-shadow: 0 7px 18px rgba(15,118,110,.28); }
.leaderboard-title span { background: #0f766e; }
.leader-row.me { background: rgba(242,184,75,.48); }
.mission-sheet { border-color: rgba(156,190,209,.42); border-radius: 18px; background: rgba(7,19,31,.96); }
.reward-burst strong { color: #ffd978; -webkit-text-stroke-color: #0f766e; }

@media (max-width: 980px) {
  .host-page:not(.display-mode) { position: static; width: auto; overflow: auto; }
  .host-page:not(.display-mode) .host-side { max-height: none; overflow: visible; }
  .game-landing { grid-template-columns: 1fr 1fr; gap: 30px; }
  .landing-visual { min-height: 58svh; }
  .host-grid { grid-template-columns: 170px minmax(480px, 1fr); }
  .host-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .game-shell { width: min(100% - 28px, 1240px); }
  .game-landing { grid-template-columns: 1fr; min-height: auto; }
  .landing-copy { padding: 4vh 0 0; }
  .landing-copy h1 { font-size: clamp(3.5rem, 15vw, 6rem); }
  .landing-visual { min-height: 52svh; order: 2; }
  .host-grid { grid-template-columns: 1fr; }
  .page-panel { position: static; }
  .page-list { grid-auto-columns: 128px; }
  .presenter-monitor { grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr); }
  .projection-monitor { grid-column: 1 / -1; }
  .phone-monitor { display: grid; }
  .host-side { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .game-shell { width: min(100% - 24px, 1240px); }
  .landing-copy h1 { margin-top: 14px; font-size: clamp(3.25rem, 17vw, 5rem); }
  .landing-actions { align-items: stretch; flex-direction: column; }
  .landing-primary { width: 100%; }
  .landing-visual { min-height: 46svh; border-radius: 16px; }
  .landing-visual-label { left: 14px; bottom: 14px; }
  .landing-visual-status { top: 14px; right: 14px; }
  .card { border-radius: 12px; }
  .host-page .room-strip { grid-template-columns: 1fr auto; }
  .phase-board { padding: 32px 24px 24px; }
  .phase-board::before { left: 24px; }
}
