@charset "UTF-8";
/* Retains the original sky, white HUD and blue arcade controls. Site CSS is untouched. */
:root{color-scheme:light;--ink:#0f172a;--muted:#64748b;--line:#bae6fd;--accent:#0ea5e9;--accent-dark:#0284c7;--accent-soft:#e0f2fe;font-family:'Outfit','Segoe UI',Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#38bdf8 0%,#7dd3fc 40%,#bae6fd 100%);color:var(--ink);height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column;align-items:center}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation;border:0}button:disabled{cursor:default;opacity:.5}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit;text-decoration:none}[hidden]{display:none!important}button svg,a svg,.badge svg{width:20px;height:20px;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}.skip-link{position:fixed;top:-70px;z-index:99;background:white;padding:10px}.skip-link:focus{top:8px}
.site-nav{width:100%;max-width:580px;min-height:55px;padding:calc(5px + env(safe-area-inset-top)) 13px 8px;display:flex;align-items:center;gap:9px;justify-content:space-between;background:rgba(255,255,255,.95);border-bottom:2px solid white;border-radius:0 0 20px 20px;box-shadow:0 4px 20px #00000012;flex-shrink:0;z-index:2}.home-button{display:flex;align-items:center;gap:5px;color:#fff;background:linear-gradient(135deg,#f87171,#ef4444);border:2px solid #fecaca;border-radius:12px;padding:8px 10px;font-size:11px;font-weight:800}.home-button svg{width:17px;height:17px}.header-stats{display:flex;align-items:center;gap:7px;flex:1}.badge{display:flex;align-items:center;gap:6px;padding:7px 11px;border-radius:13px;border:2px solid;font-size:13px;font-weight:800}.badge svg{width:16px;height:16px}.badge.heart{color:#ef4444;border-color:#fecaca;background:#fef2f2}.badge.coin{color:#b45309;border-color:#fde68a;background:#fffbeb}.header-actions{display:flex;gap:6px;align-items:center}.icon-button{height:35px;width:35px;display:grid;place-items:center;background:#f0f9ff;border:2px solid #bae6fd;border-radius:11px;color:#0ea5e9;flex-shrink:0}.icon-button svg{width:18px;height:18px}.icon-button.trophy{color:#f59e0b;border-color:#fde68a;background:#fffbeb}.icon-button:hover{filter:brightness(.96)}
.play-column{width:100%;max-width:580px;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;padding:7px 0 0;gap:0}.stage{position:relative;flex:1;min-height:0;width:calc(100% - 24px);max-width:540px;border:3px solid #ffffffd9;border-radius:24px;overflow:hidden;box-shadow:0 15px 30px #0f172a26;background:#b7dec3;isolation:isolate;touch-action:none}.stage canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none}.game-controls{width:100%;padding:10px 16px 6px;background:rgba(255,255,255,.96);border-top:2px solid white;border-radius:22px 22px 0 0;display:flex;justify-content:center;flex-shrink:0;margin-top:8px;box-shadow:0 -5px 20px #0f172a08}.action-button{height:57px;width:100%;max-width:430px;border-radius:17px;background:linear-gradient(135deg,#0ea5e9,#0284c7);color:white;border:3px solid #7dd3fc;display:flex;gap:10px;align-items:center;justify-content:center;font-size:16px;font-weight:900;box-shadow:0 6px 16px #0284c738;letter-spacing:.3px}.action-button kbd{font-size:9px;padding:4px 7px;border:1px solid #ffffff77;border-radius:5px;opacity:.8;margin-left:8px}.action-button:disabled{opacity:.45}.under-stage{font-size:9px;color:#64748b;background:rgba(255,255,255,.96);width:100%;text-align:center;padding:3px 4px calc(7px + env(safe-area-inset-bottom));min-height:20px}
.in-game-hud{position:absolute;inset:12px 14px auto;display:flex;align-items:flex-start;gap:8px;pointer-events:none}.mode-pill{font-size:8px;background:#ffffffd9;border-radius:8px;color:#527066;padding:7px 9px;font-weight:800;letter-spacing:.4px}.score-pill{position:absolute;left:50%;transform:translateX(-50%);text-align:center;color:white;text-shadow:0 3px 9px #163c4244;top:2px}.score-pill strong{display:block;font-size:51px;line-height:1;font-weight:900}.score-pill span{font-size:8px;font-weight:800;letter-spacing:1.5px}.in-game-hud .icon-button{pointer-events:auto;margin-left:auto}.icon-button.glass{background:#ffffffdc;border-color:#ffffffaa}.countdown{position:absolute;inset:0;background:#28475135;display:grid;place-items:center;color:#fff;font-size:95px;font-weight:900;text-shadow:0 5px 18px #0f172a44;z-index:4}.stage-toast{position:absolute;left:50%;top:95px;transform:translateX(-50%);max-width:94%;width:max-content;white-space:normal;text-align:center;pointer-events:none;background:#fff9d9;color:#99742b;padding:10px 15px;border:1px solid #fff;border-radius:16px;font-size:12px;font-weight:700;z-index:5}
.start-panel{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:calc(100% - 34px);max-width:345px;background:#fffffffa;border:3px solid #7dd3fc;border-radius:25px;padding:20px 20px 12px;box-shadow:0 20px 40px #1768812e;text-align:center}.start-panel h1{font-size:23px;font-weight:900;color:#0284c7;margin:0 0 9px;letter-spacing:-.7px}.game-instruction{font-size:11px;line-height:1.5;color:#64748b;margin:0 0 9px}.start-stats{display:none}.start-stats span{font-size:9px;letter-spacing:.5px;color:#64748b}.start-stats strong{display:inline;margin-left:7px;color:#0284c7;font-size:18px}#account-status{font-size:10px;line-height:1.4;color:#64748b;margin:6px 0 12px}.button{width:100%;min-height:47px;display:flex;gap:8px;align-items:center;justify-content:center;border-radius:14px;padding:12px 15px;font-size:13px;font-weight:850}.button.primary{background:linear-gradient(135deg,#0ea5e9,#0284c7);color:white;border:2px solid #7dd3fc;box-shadow:0 5px 14px #0284c732}.button.primary svg{width:15px;height:15px;fill:currentColor;stroke:none}.button.secondary{background:#e0f2fe;border:2px solid #bae6fd;color:#0369a1}.button-end{font-size:9px;color:#e0f2fe;margin-left:auto}.button-end:empty{display:none}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#64748b;background:none;font-size:10px;padding:10px 0}.text-button svg{width:12px;height:12px}.difficulty-picker{display:flex;gap:4px;align-items:center;justify-content:center;border-top:1px solid #e2e8f0;padding-top:8px;margin-top:2px;color:#94a3b8;font-size:8px}.difficulty-picker>span{margin-right:4px}.difficulty-picker button{font-size:9px;background:#f1f5f9;color:#64748b;padding:5px 8px;border-radius:7px}.difficulty-picker button.active{background:#e0f2fe;color:#0284c7}
.dialog-backdrop{position:fixed;inset:0;background:#1c293b66;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}.dialog{width:380px;max-width:100%;max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;border:1px solid white;border-radius:24px;background:#fff;padding:36px 27px 24px;position:relative;box-shadow:0 25px 90px #14253844}.dialog-close{position:absolute;top:12px;right:12px;width:28px;height:28px;border:0;background:#f5f6f9}.dialog-close svg{width:14px;height:14px}.dialog-kicker{font-size:9px;letter-spacing:2px;font-weight:700;color:var(--accent-dark);margin:8px 0;text-align:center}.dialog h2{font-size:26px;justify-content:center;text-align:center;margin:8px 0 12px;letter-spacing:-1px}.dialog p{font-size:12px;line-height:1.65;color:#8b94a4;text-align:center}.dialog .button{margin-top:10px}.result-medal{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-dark);border:7px solid #f8faf6;outline:1px solid var(--line);width:76px;height:76px;border-radius:50%;margin:5px auto 20px}.result-medal svg{width:30px;height:30px}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:22px 0 12px}.result-stat{padding:17px 10px;border-radius:13px;background:#f6f7fa;text-align:center}.result-stat strong{display:block;font-size:30px;letter-spacing:-1px}.result-stat small{font-size:8px;color:#9ba3b1;letter-spacing:1.2px}.save-state{font-size:10px!important;color:var(--accent-dark)!important;margin:12px 0 20px!important;min-height:16px}.dialog .text-button{width:100%;padding:12px 0}.leaderboard-tabs{display:flex;background:#f1f3f7;padding:4px;border-radius:10px;margin:20px 0}.leaderboard-tabs button{flex:1;background:none;padding:8px 4px;font-size:10px;color:#929baa;border-radius:7px}.leaderboard-tabs button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #24354309}.rank-list{list-style:none;padding:0;margin:0 0 15px}.rank-list li{display:flex;gap:12px;align-items:center;padding:13px 5px;border-bottom:1px solid #edf0f4;font-size:12px}.rank-list .place{width:23px;color:#acb4bf;font-size:10px}.rank-list .rank-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-list strong{font-variant-numeric:tabular-nums}.help-steps{list-style:none;padding:0;counter-reset:help}.help-steps li{counter-increment:help;display:flex;align-items:center;gap:12px;padding:13px 0;font-size:12px;color:#7d8798;line-height:1.6}.help-steps li:before{content:counter(help);background:var(--accent-soft);color:var(--accent-dark);border-radius:10px;min-width:29px;height:29px;display:grid;place-items:center;font-size:11px;font-weight:700}.login-fields{display:grid;gap:9px;margin:20px 0 10px}.login-fields label{font-size:10px;color:#838d9e}.login-fields input{display:block;width:100%;border:1px solid var(--line);background:#f9fafc;padding:13px;border-radius:10px;font:inherit;font-size:13px;margin-top:5px}.error-message{color:#b95454!important}.new-record{color:#a87524!important}.dialog-backdrop[data-kind=result] .dialog{padding-top:32px}

.dialog{border:3px solid #7dd3fc;border-radius:26px}.dialog h2{color:#0284c7;font-weight:900}.dialog-backdrop{background:#14394877}.result-medal{background:#e0f2fe;color:#0284c7}.result-grid{border-radius:14px}.save-state{color:#087660!important}
@media(max-width:600px){.site-nav{padding-left:10px;padding-right:10px;gap:6px;min-height:53px}.home-button{padding:7px}.home-button span{display:none}.header-stats{gap:6px}.badge{padding:7px 9px;gap:5px;font-size:12px}.header-actions{gap:5px}.icon-button{height:32px;width:32px;border-radius:10px}.icon-button svg{height:16px;width:16px}.stage{width:calc(100% - 10px);border-radius:22px}.game-controls{padding:9px 13px 4px;margin-top:7px}.action-button{height:54px;font-size:15px}.action-button kbd{display:none}.start-panel{bottom:13px;max-width:330px;padding:16px 17px 9px;border-radius:23px}.start-panel h1{font-size:21px}.game-instruction{font-size:10px}.dialog{padding:31px 22px 20px}.mode-pill{font-size:7px}.score-pill strong{font-size:44px}}
@media(max-height:680px){.start-panel{padding:12px 15px 6px;bottom:10px}.start-panel h1{font-size:19px;margin-bottom:6px}.game-instruction{display:none}#account-status{font-size:9px;margin-bottom:8px}.button{min-height:42px}.action-button{height:48px}.under-stage{font-size:8px}.text-button{padding:8px 0}.site-nav{min-height:49px}}
@media(min-width:701px){.stage{width:min(540px,calc((100dvh - 160px) * .65625))}}
@media(max-height:500px) and (orientation:landscape){.site-nav{min-height:43px;padding-top:3px;padding-bottom:4px}.stage{width:calc((100dvh - 130px) * .65625);min-width:155px;border-radius:15px}.game-controls{padding:6px 12px 3px;margin-top:5px}.action-button{height:39px;max-width:240px;font-size:12px}.under-stage{font-size:8px;min-height:16px;padding-bottom:3px}.start-panel{padding:10px 9px 5px;width:calc(100% - 10px);border-radius:15px;bottom:6px}.start-panel h1{font-size:12px}.start-panel #account-status,.start-panel .game-instruction,.start-panel .difficulty-picker{display:none}.start-panel .button{font-size:10px;min-height:34px;padding:7px}.start-panel .button-end{display:none}.start-panel .text-button{font-size:8px;padding:7px 0}.in-game-hud{inset:8px 7px auto}.mode-pill{display:none}.score-pill strong{font-size:30px}.in-game-hud .icon-button{height:25px;width:25px;border-radius:8px}.dialog{max-height:calc(100dvh - 24px)}.dialog-backdrop{padding:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the original single-stage layout proportional in narrow desktop panels too. */
@media(min-height:501px){.stage{width:min(calc(100% - 10px),calc((100dvh - 145px) * .65625))}}

/* Story levels: each game plays in its own part of the city. */
.story-lines { display: grid; gap: 10px; margin: 12px 0; text-align: left; }
.story-line { display: flex; gap: 10px; align-items: flex-start; margin: 0; line-height: 1.45; font-size: .95rem; text-align: left; }
.story-words { min-width: 0; }
.story-line strong { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--zone, #b7791f); }
.story-face { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--zone, #b7791f); }
.story-line.villain .story-face { border-color: #e5e7eb; }
.story-line.villain strong { color: #e5e7eb; }
.story-narration { font-style: italic; opacity: .82; }
.story-still { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin: 0 0 12px; }
.level-stars { display: flex; justify-content: center; gap: 6px; margin: 8px 0 4px; font-size: 2.2rem; line-height: 1; }
.level-stars .star { color: rgba(148, 163, 184, .35); }
.level-stars .star.on { color: #f5b301; text-shadow: 0 2px 0 rgba(146, 90, 0, .35); }
a.button[hidden], a.text-button[hidden] { display: none; }
a.button { text-decoration: none; text-align: center; justify-content: center; }
a.text-button { display: block; text-align: center; }
body[data-zone=street] { --zone: #ffc53d; --zone-deep: #a06c00; --zone-art: url(../story/art/bg-street.webp); }
body[data-zone=tower] { --zone: #ff6b4a; --zone-deep: #9c2f17; --zone-art: url(../story/art/bg-tower.webp); }
body[data-zone=sky] { --zone: #7cc4ff; --zone-deep: #2563a8; --zone-art: url(../story/art/bg-sky.webp); }
body[data-zone] { background: #0b1020 var(--zone-art) center / cover fixed; }
body[data-zone] .site-nav { background: rgba(11, 16, 32, .86); color: #eef2ff; border-color: rgba(255, 255, 255, .1); }
body[data-zone] .under-stage { color: #cbd5e1; background: rgba(11, 16, 32, .88); }
body[data-zone] .stage { border-color: var(--zone); }
body[data-zone] .game-controls { background: rgba(11, 16, 32, .88); border-color: var(--zone); }
body[data-zone] .action-button { background: var(--zone); color: #0b1020; border-color: transparent; box-shadow: 0 5px 0 var(--zone-deep); }
body[data-zone] .action-button:disabled { opacity: .45; }
body[data-zone] .badge, body[data-zone] .icon-button, body[data-zone] .home-button { background: rgba(255, 255, 255, .1); color: #eef2ff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
body[data-zone] .badge strong { color: #eef2ff; }
body[data-zone] .start-panel, body[data-zone] .dialog { background: #141a30; color: #eef2ff; border-color: var(--zone); }
body[data-zone] .start-panel h1, body[data-zone] .dialog h2 { color: var(--zone); }
body[data-zone] .dialog-kicker, body[data-zone] .game-instruction, body[data-zone] #account-status, body[data-zone] .save-state { color: #cbd5e1; }
body[data-zone] .button.primary { background: var(--zone); color: #0b1020; box-shadow: 0 5px 0 var(--zone-deep); border-color: transparent; }
body[data-zone] .button.secondary { background: transparent; color: var(--zone); border: 2px solid var(--zone); }
body[data-zone] .text-button { color: #cbd5e1; }
body[data-zone] .mode-pill { background: rgba(11, 16, 32, .84); color: var(--zone); border-color: var(--zone); }
body[data-zone] .icon-button.dialog-close { color: #cbd5e1; background: transparent; }

/* 3D picture: it lies over the 2D canvas, which stays underneath to receive taps. */
#game-canvas-3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage.has-3d #game-canvas { opacity: 0; }

.story-link { display: block; text-align: center; text-decoration: none; font-weight: 800; color: var(--zone, #0284c7); }
body[data-zone] .story-link { color: var(--zone); }

/* The level road lives inside each game. */
.level-map { position: absolute; inset: 0; z-index: 3; overflow-y: auto; touch-action: pan-y; color: #eef2ff; background-color: #0b1020; background-size: cover; background-position: center; background-attachment: local; -webkit-overflow-scrolling: touch; }
.level-map[hidden] { display: none; }
.level-map[data-zone=street] { --zone: #ffc53d; --deep: #a06c00; --ink-on: #1a1405; background-image: linear-gradient(rgba(11, 16, 32, .42), rgba(11, 16, 32, .42)), url(../story/art/bg-street.webp); }
.level-map[data-zone=tower] { --zone: #ff6b4a; --deep: #9c2f17; --ink-on: #fff; background-image: linear-gradient(rgba(11, 16, 32, .5), rgba(11, 16, 32, .5)), url(../story/art/bg-tower.webp); }
.level-map[data-zone=sky] { --zone: #7cc4ff; --deep: #2563a8; --ink-on: #06213f; background-image: linear-gradient(rgba(11, 16, 32, .25), rgba(11, 16, 32, .25)), url(../story/art/bg-sky.webp); }
.map-still { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: rgba(11, 16, 32, .92); border-bottom: 3px solid var(--zone); }
.map-words small { display: block; font-size: .66rem; letter-spacing: .14em; color: var(--zone); }
.map-words strong { font-size: 1.05rem; }
.map-feathers { flex: none; color: var(--zone); font-weight: 800; }
.level-map .road { position: relative; list-style: none; margin: 0; padding: 24px 14px 26px; display: flex; flex-direction: column; gap: 16px; }
.level-map[data-zone=tower] .road { flex-direction: column-reverse; }
.level-map .route { position: absolute; top: 0; left: 0; pointer-events: none; }
.level-map .route path { fill: none; stroke-linecap: round; }
.level-map .route-under { stroke: rgba(4, 7, 16, .55); stroke-width: 14; }
.level-map .route-line { stroke: var(--zone); stroke-width: 4; stroke-dasharray: 2 12; }
.level-map[data-zone=tower] .route-line { stroke-dasharray: 12 6; stroke-linecap: butt; }
.level-map .stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 92px; min-height: 90px; }
.level-map .pos-0 { margin-left: 4%; }
.level-map .pos-1 { margin-left: 36%; }
.level-map .pos-2 { margin-left: calc(72% - 28px); }
.level-map .pos-3 { margin-left: 36%; }
.level-map .stop-button { width: 66px; height: 66px; cursor: pointer; font: inherit; border: 0; color: var(--ink-on); background: var(--zone); box-shadow: 0 6px 0 var(--deep), 0 10px 20px rgba(0, 0, 0, .45); transition: transform .12s ease; }
.level-map .stop-button b { display: block; font-size: 1.4rem; }
.level-map .stop-button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--deep); }
.level-map .stop-button:focus-visible, .sheet-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.level-map[data-zone=street] .stop-button { transform: rotate(45deg); border-radius: 12px; width: 58px; height: 58px; margin: 6px 0; border: 3px solid #1a1405; }
.level-map[data-zone=street] .stop-button b { transform: rotate(-45deg); }
.level-map[data-zone=street] .stop-button:active { transform: rotate(45deg) translate(2px, 2px); }
.level-map[data-zone=tower] .stop-button { width: 84px; height: 54px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 8px, transparent 8px 20px), var(--zone); }
.level-map[data-zone=sky] .stop-button { border-radius: 50%; box-shadow: 0 0 0 5px rgba(124, 196, 255, .25), 0 6px 0 var(--deep), 0 10px 20px rgba(0, 0, 0, .45); }
.level-map .boss .stop-button { outline: 3px solid #fff; outline-offset: 3px; }
.level-map .stop.open .stop-button { background: #ff5d8f; color: #fff; box-shadow: 0 6px 0 #a11f4c, 0 0 26px rgba(255, 93, 143, .8); animation: map-pulse 1.6s ease-in-out infinite; }
.level-map .stop.locked .stop-button { opacity: 1; background: #2a3355; color: #a7b2d3; box-shadow: 0 6px 0 #1a2140; cursor: not-allowed; }
.level-map .node-stars { margin-top: 10px; font-size: .92rem; letter-spacing: 1px; text-shadow: 0 1px 3px #000; }
.level-map .node-stars i { font-style: normal; color: rgba(255, 255, 255, .28); }
.level-map .node-stars i.on { color: #ffc53d; }
.level-map .stop-here { margin-top: 10px; font-size: .62rem; letter-spacing: .1em; font-weight: 700; text-shadow: 0 1px 3px #000; }
.map-free { display: block; width: calc(100% - 28px); margin: 0 14px 18px; background: rgba(11, 16, 32, .88); color: var(--zone); border: 2px solid var(--zone); }
@keyframes map-pulse { 50% { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { .level-map .stop.open .stop-button { animation: none; } .level-map .stop-button { transition: none; } }
.level-sheet { position: sticky; bottom: 0; left: 0; right: 0; z-index: 4; }
.level-sheet[hidden] { display: none; }
.sheet-card { position: relative; padding: 18px 18px 20px; background: #1b2342; border-radius: 20px 20px 0 0; text-align: center; border-top: 3px solid var(--zone); box-shadow: 0 -12px 40px rgba(0, 0, 0, .6); }
.sheet-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--zone); margin-top: -50px; background: #1b2342; }
.sheet-close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; background: none; border: 0; color: #a7b2d3; font-size: 1.7rem; cursor: pointer; }
.sheet-kicker { margin: 4px 0; font-size: .72rem; letter-spacing: .12em; color: #a7b2d3; }
.sheet-card h2 { margin: 0 0 4px; font-size: 1.3rem; color: var(--zone); }
.sheet-goal { margin: 8px 0 4px; font-size: .88rem; }
.sheet-reward { margin: 0 0 14px; font-size: .84rem; color: #ffc53d; line-height: 1.4; }
.sheet-card .button.primary { display: block; background: var(--zone); color: #0b1020; box-shadow: 0 5px 0 var(--deep); border-color: transparent; }
body[data-zone] .dialog .save-state { color: #ffc53d !important; font-weight: 700; }
.map-chapter.sealed .map-still { filter: grayscale(.85) brightness(.5); }
.map-chapter.sealed .map-words strong { color: #a7b2d3; }

/* Sponsors */
.ad-overlay { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: rgba(4, 7, 16, .94); color: #eef2ff; }
.ad-label { margin: 0; font-size: .78rem; letter-spacing: .06em; color: #a7b2d3; }
.ad-image { padding: 0; border: 0; background: none; cursor: pointer; max-width: 100%; }
.ad-image img { display: block; max-width: min(100%, 520px); max-height: 60vh; border-radius: 16px; }
.ad-skip { min-width: 180px; }
.map-ad { display: block; width: calc(100% - 28px); margin: 14px; padding: 0; border: 2px solid var(--zone); border-radius: 14px; overflow: hidden; background: #0b1020; color: #a7b2d3; cursor: pointer; }
.map-ad img { display: block; width: 100%; max-height: 200px; object-fit: contain; }
.map-ad small { display: block; padding: 4px 8px; font-size: .68rem; text-align: right; }
.sponsor-card { margin: 10px 0; padding: 12px; border: 2px dashed var(--zone, #ffc53d); border-radius: 14px; text-align: center; }
.sponsor-card small { display: block; font-size: .72rem; color: #a7b2d3; }
.sponsor-card strong { display: block; margin: 2px 0 8px; }
.sponsor-code { display: block; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: #0b1020; color: #ffc53d; font: 800 1.05rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .06em; word-break: break-all; cursor: copy; }
.map-codes { margin: 0 14px 14px; padding: 12px; border-radius: 14px; background: rgba(11, 16, 32, .9); }
.map-codes h3 { margin: 0 0 6px; font-size: .95rem; color: var(--zone); }

/* Daily reward and invites */
.daily-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.daily-day { padding: 8px 4px; border-radius: 10px; text-align: center; background: rgba(255, 255, 255, .07); color: #eef2ff; }
.daily-day small { display: block; font-size: .66rem; color: #a7b2d3; }
.daily-day b { display: block; font-size: .82rem; white-space: nowrap; }
.daily-day.done { opacity: .45; }
.daily-day.today { background: #ffc53d; color: #0b1020; }
.daily-day.today small { color: #0b1020; }
.daily-day:last-child { grid-column: span 2; }
.daily-note { margin: 0 0 12px; font-size: .78rem; line-height: 1.4; color: #cbd5e1; }
.map-invite { margin: 14px; padding: 14px; border-radius: 14px; background: rgba(11, 16, 32, .92); border: 2px solid var(--zone); }
.map-invite h3 { margin: 0 0 4px; font-size: .98rem; color: var(--zone); }
.map-invite p { margin: 0 0 8px; font-size: .84rem; line-height: 1.4; }
.map-invite-count { color: #a7b2d3; }
.map-invite .button.primary { width: 100%; background: var(--zone); color: #0b1020; box-shadow: 0 5px 0 var(--deep); border-color: transparent; }
body[data-zone] .stage-toast { background: rgba(11, 16, 32, .94); color: #eef2ff; border-color: var(--zone); }
