@font-face{font-family:Retro;src:url('/assets/game-previews/vidovdan-v1/Jersey10-Regular.ttf') format('truetype');font-display:swap}@font-face{font-family:Arcade;src:url('/assets/game-previews/vidovdan-v1/PressStart2P-Regular.ttf') format('truetype');font-display:swap}
:root{font-family:Retro,monospace;color:#e3cf9e;background:#090b09;color-scheme:dark;font-synthesis:none;-webkit-tap-highlight-color:transparent;--hud-height:124px}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none}body{touch-action:none;background:#10120f}button,a,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f7d785;outline-offset:2px}button:disabled{opacity:.45;cursor:wait}[hidden]{display:none!important}
#stage{position:fixed;inset:0;margin:auto;width:min(100%,500px);height:100dvh;overflow:hidden;pointer-events:none;z-index:10;isolation:isolate;box-shadow:0 0 80px #0009}#stage button,#stage a,#stage input{pointer-events:auto}canvas{touch-action:none}#weapon-view{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;image-rendering:pixelated}#shade{position:absolute;inset:0;background:linear-gradient(#0006,transparent 23%,transparent 65%,#0003);pointer-events:none}#hurt{position:absolute;inset:0;box-shadow:inset 0 0 95px 35px #be231b;opacity:0;pointer-events:none;mix-blend-mode:screen}
#hud{position:absolute;inset:0;padding:calc(env(safe-area-inset-top,0px) + 12px) 12px 0;display:none}.playing #hud,.paused #hud,.intermission #hud{display:block}.topline{display:flex;align-items:center;gap:6px}.roundclock{display:flex;align-items:baseline;gap:5px;text-shadow:2px 2px #111;font-size:19px}.roundclock b{font-size:37px;color:#ffdf8b;font-weight:400}.roundclock span{font-size:17px}.icon-btn{border:2px solid;border-color:#8a8467 #292c23 #292c23 #8a8467;background:#242b24d9;border-radius:0;min-width:44px;height:36px;padding:0 7px;font-size:20px;text-shadow:2px 2px #000}#pause{margin-left:auto}#sound{font-size:18px}.scorebox{font-size:27px;text-shadow:2px 2px #151612}.scorebox b{font-weight:400;color:#f8e5b7}.scorebox small,.wave-target small{display:block;font:7px/1.6 Arcade,monospace;color:#dfd6bd;margin-top:2px}#stats{display:flex;justify-content:space-between;margin-top:11px}.wave-target{text-align:right;font-size:22px;text-shadow:2px 2px #111}.wave-target b{font-weight:400;color:#f2d388}#radar{position:absolute;top:58px;left:50%;width:140px;height:74px;transform:translateX(-50%);image-rendering:pixelated;opacity:.78}
#crosshair{position:absolute;left:50%;top:50%;width:20px;height:20px;transform:translate(-50%,-50%);display:none;filter:drop-shadow(1px 1px 0 #222)}.playing #crosshair{display:block}#crosshair:before,#crosshair:after{content:'';position:absolute;background:#e4ead1a8}#crosshair:before{left:9px;top:0;width:2px;height:20px}#crosshair:after{top:9px;left:0;height:2px;width:20px}#crosshair i{position:absolute;inset:8px;background:#fff}#crosshair.hit{transform:translate(-50%,-50%) rotate(45deg)}#crosshair.hit:before,#crosshair.hit:after{background:#ffd682}#crosshair.headshot:before,#crosshair.headshot:after{background:#ff754c}#crosshair.hit i{opacity:0}#killfeed{position:absolute;top:31%;left:0;right:0;text-align:center;text-shadow:2px 2px #211b14;font-size:28px;opacity:0}#killfeed small{display:block;font:8px/1.6 Arcade;margin-top:5px;color:#f6daaa}#intro-hint{position:absolute;top:24%;left:14px;right:14px;text-align:center;opacity:0;font:8px/1.7 Arcade;text-shadow:2px 2px #222}
#touch-controls{display:none;position:absolute;inset:0;touch-action:none}.playing #touch-controls{display:block}#look-zone{position:absolute;left:35%;right:0;top:125px;bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px));pointer-events:auto;touch-action:none}#move-zone{position:absolute;left:0;bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px));width:44%;height:38%;pointer-events:auto;touch-action:none}#joystick{position:absolute;left:24px;bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px) + 39px);width:104px;height:104px;border:2px solid #e1d3ac55;clip-path:polygon(20% 0,80% 0,100% 20%,100% 80%,80% 100%,20% 100%,0 80%,0 20%);background:#141b131c;pointer-events:none}#joystick:before,#joystick:after{content:'';position:absolute;background:#d6cfac22}#joystick:before{left:50%;top:10px;bottom:10px;width:2px}#joystick:after{top:50%;left:10px;right:10px;height:2px}#stick{position:absolute;width:42px;height:42px;left:29px;top:29px;border:2px solid #ded0a875;background:#4a514533}#fire{position:absolute;right:25px;bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px) + 42px);width:86px;height:86px;border:2px solid #f1d8a099;border-radius:0;clip-path:polygon(15% 0,85% 0,100% 15%,100% 85%,85% 100%,15% 100%,0 85%,0 15%);background:#1d251b22;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:22px;touch-action:none;user-select:none;text-shadow:2px 2px #222}#fire b{width:20px;height:20px;border:2px solid #eadab4;position:relative}#fire b:after{content:'';position:absolute;inset:5px;background:#eadab4}#fire.active{background:#e3ac5138;border-color:#ffe0a6}.control-label{position:absolute;bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px) + 14px);font:7px Arcade;color:#e7d5ac99;text-shadow:1px 1px #111}#move-label{left:58px}#aim-label{right:22px}
#stage{--metal:url('/assets/game-previews/vidovdan-v1/hud-iron-v7b.webp');--trim:#777c64;--edge:#20251e;--ink:#dfd3ae;--number:#ecb365}#stage[data-hud=stone]{--metal:url('/assets/game-previews/vidovdan-v1/hud-stone-v7b.webp');--trim:#626554;--edge:#141812;--ink:#dbd7bd;--number:#d55b43}#stage[data-hud=bronze]{--metal:url('/assets/game-previews/vidovdan-v1/hud-bronze-v7b.webp');--trim:#8e7447;--edge:#30281c;--ink:#ead6a3;--number:#f4c868}
#status-bar{position:absolute;bottom:0;left:0;right:0;height:calc(var(--hud-height) + env(safe-area-inset-bottom,0px));padding:7px 7px calc(7px + env(safe-area-inset-bottom,0px));display:none;grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr);gap:5px;align-items:center;background:linear-gradient(#141a1066,#0e120f88),var(--metal);background-size:auto,128px;image-rendering:pixelated;border-top:4px solid var(--trim);box-shadow:inset 0 3px #13180f,0 -3px #191c16;pointer-events:none;color:var(--ink);text-shadow:2px 2px #10130e}.playing #status-bar,.paused #status-bar,.intermission #status-bar{display:grid}.status-cell{height:103px;border:2px solid;border-color:var(--edge) var(--trim) var(--trim) var(--edge);box-shadow:inset 2px 2px #0005;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#0a130e75}.status-label{font:8px/1.5 Arcade;white-space:nowrap;letter-spacing:-.5px}.status-cell strong{font-size:48px;line-height:.9;color:var(--number);font-weight:400;text-shadow:2px 2px #441e14,-1px -1px #f5d690;white-space:nowrap}.status-cell strong b{font-weight:400}.status-cell strong small{font-size:28px}.health-track{height:5px;width:72%;background:#171c15;border-bottom:1px solid #afa17a66}.health-track i{display:block;height:100%;background:#ba5b38}.portrait-cell{height:104px;position:relative;border:3px solid;border-color:#141c13 var(--trim) var(--trim) #141c13;background:#1b2118;overflow:hidden}.portrait-cell span{position:absolute;left:0;right:0;bottom:0;text-align:center;font:7px/13px Arcade;color:#e3d6b3;background:#151e14e6;text-shadow:1px 1px #000}#player-face{width:100%;height:100%;background:url('/assets/game-previews/vidovdan-v1/robi-hud-v5b.webp') 0 0/300% 100% no-repeat;image-rendering:pixelated}.ammo-cell strong{font-family:monospace;font-size:49px;line-height:35px;font-weight:900}
#menu,.overlay{position:absolute;inset:0;padding:calc(env(safe-area-inset-top,0px) + 25px) 26px calc(env(safe-area-inset-bottom,0px) + 20px);pointer-events:auto;background:linear-gradient(#0b12098c,#080e0ae0 75%);display:flex;flex-direction:column;overflow-y:auto;touch-action:pan-y}.playing #menu,.intermission #menu{display:none}.brand{display:flex;gap:9px;align-items:center;opacity:.65}.brand img{width:32px;height:32px;object-fit:contain}.brand span{font:6px/1.8 Arcade;letter-spacing:.1em}.menu-content{margin:auto 0 0}.eyebrow{font:8px/1.8 Arcade;color:#c2bc98;margin:0 0 10px}.menu-content h1{font:clamp(60px,18vw,92px)/.83 Retro;letter-spacing:-1px;margin:0 0 8px;color:#d9a75e;text-shadow:3px 3px #522c1c,5px 5px #0d140d}.menu-content h2,.panel h2,#wave-clear h2{font:37px/.95 Retro;font-weight:400;margin:0 0 16px;color:#d7c28f;text-shadow:3px 3px #312418}.menu-copy{font:21px/1.15 Retro;color:#babca2;margin:0 0 20px}.primary,.menu-row{border:0;background:transparent;color:#e5bd77;text-shadow:2px 2px #4b291b,3px 3px #111;font:30px/1 Retro;min-height:43px;width:100%;padding:7px 12px;text-align:left;position:relative;border-radius:0;display:block}.primary:before{content:'▸';position:absolute;left:-8px;color:#e5c17b}.primary{color:#ffd58c;background:#b2954722;border-top:2px solid #927a4144;border-bottom:2px solid #1c2116;margin-top:8px}.menu-row:hover,.primary:hover{color:#fff0bb;background:#b2954722}.menu-meta{display:flex;gap:10px;justify-content:space-between;margin:16px 0 0;font:6px/1.5 Arcade;color:#8e937c}.menu-meta a{color:#b3ae8e}.paused #menu{background:linear-gradient(#10170ae8,#11190bf5),url('/assets/game-previews/vidovdan-v1/hud-stone-v7b.webp');background-size:auto,128px}.paused .menu-content{margin:auto 0}.paused .brand{display:none}.paused #play{display:none}#resume,#restart,#save-score,#main-menu{display:none}.paused #resume,.paused #restart,.ended #save-score,.ended #main-menu{display:block}.ended #result-stats{display:grid}#result-stats{display:none;grid-template-columns:repeat(3,1fr);gap:9px;margin:0 0 16px}#result-stats b{font:30px Retro;color:#f0ce8b}#result-stats span{display:block;font:6px/1.5 Arcade;color:#bab99f;margin-top:3px}
.overlay{z-index:30;background:linear-gradient(#0b1009ef,#141a0ff5),url('/assets/game-previews/vidovdan-v1/hud-stone-v7b.webp');background-size:auto,128px;justify-content:center}.panel{width:100%;max-width:420px;margin:auto}.panel h2{font-size:38px}.speaker{display:block;width:min(100%,300px);height:auto;max-height:160px;object-fit:contain;margin:8px auto 16px;image-rendering:pixelated}.track-row{border:0;background:transparent;display:flex;align-items:center;gap:10px;width:100%;text-align:left;color:#b8aa7d;padding:10px 8px;min-height:48px;font:27px/.95 Retro;text-shadow:2px 2px #282219}.track-row .track-no{font:8px Arcade;color:#777c63;width:20px}.track-row[aria-pressed=true]{background:#bda6591a;color:#ffda8e;box-shadow:inset 3px 0 #d1ac61}.track-row[aria-pressed=true] .track-no{color:#e3c478}.small-note{font:8px/1.8 Arcade;color:#9da38b;margin:13px 0}.hud-choice{display:block;background:transparent;border:1px solid #6f74534d;color:#c5b58a;font:19px Retro;text-align:left;width:100%;padding:6px;margin-bottom:7px}.hud-choice[aria-pressed=true]{border-color:#d3b46b;color:#ffe4a5}.theme-sample{display:flex;align-items:center;justify-content:space-around;height:55px;margin-bottom:4px;font:38px Retro;text-shadow:2px 2px #121711;border:3px solid #5e604d}.theme-sample i{width:52px;height:49px;background:url('/assets/game-previews/vidovdan-v1/robi-hud-v5b.webp') 0 0/300% 100%;image-rendering:pixelated;font-size:0}.theme-sample.iron{background:linear-gradient(#19221866,#0e130c88),url('/assets/game-previews/vidovdan-v1/hud-iron-v7b.webp');color:#edb366}.theme-sample.stone{background:linear-gradient(#0e150a88,#0e130c99),url('/assets/game-previews/vidovdan-v1/hud-stone-v7b.webp');color:#d95e48}.theme-sample.bronze{background:linear-gradient(#20170966,#1e180b88),url('/assets/game-previews/vidovdan-v1/hud-bronze-v7b.webp');color:#f1ce7d}#options-menu .menu-row{font-size:25px}#board-rows{padding:0;list-style:none;max-height:38vh;overflow:auto;touch-action:pan-y}#board-rows li{display:grid;grid-template-columns:24px 1fr auto;gap:6px;border-bottom:1px solid #b5a56c33;padding:9px 0;font:23px Retro}#board-rows small{display:block;font:6px/1.6 Arcade;color:#9caa8a}#score-form label{font:9px Arcade;display:block;margin:15px 0 7px}#player-name{width:100%;padding:9px;background:#070c05;border:2px solid #85744c;color:#f5d99b;font:27px Retro;touch-action:auto;user-select:text}#board-menu,#options-menu{touch-action:pan-y}#wave-clear{position:absolute;top:28%;left:18px;right:18px;padding:24px 18px;pointer-events:auto;text-align:center;border:3px solid #7f7951;background:linear-gradient(#192015f2,#192015f2),url('/assets/game-previews/vidovdan-v1/hud-stone-v7b.webp');box-shadow:0 5px 0 #1119}#wave-clear p{font:10px/1.7 Arcade}#wave-clear .primary{text-align:center}#desktop-note{position:fixed;left:25px;bottom:24px;font:8px/2 Arcade;color:#69725b;pointer-events:none}#diagnostics{position:fixed;left:4px;bottom:4px;z-index:50;font:10px/1.5 monospace;color:#d5f5c3;background:#000c;padding:7px;white-space:pre;pointer-events:none;display:none}body.qa #diagnostics{display:block}
@media(max-width:720px){#desktop-note{display:none}}@media(max-height:650px){:root{--hud-height:110px}#menu,.overlay{padding:16px 22px}.brand{display:none}.menu-content h1{font-size:60px}.menu-content h2{font-size:29px;margin-bottom:10px}.menu-copy{font-size:18px;margin-bottom:12px}.menu-meta{margin-top:9px}.primary,.menu-row{min-height:37px;font-size:27px;padding:6px 10px}.speaker{max-height:100px;margin:0 auto 6px}.panel h2{font-size:32px;margin-bottom:9px}.track-row{font-size:25px;min-height:42px;padding:8px}.small-note{font-size:7px;margin:8px 0}.theme-sample{height:43px}.theme-sample i{height:37px;width:40px}#status-bar{grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr);padding:5px 6px;gap:4px}.portrait-cell{height:92px}.status-cell{height:91px;gap:7px}.status-cell strong{font-size:39px}.status-cell strong small{font-size:23px}.ammo-cell strong{font-size:43px}.status-label{font-size:7px}#joystick{bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px) + 27px);width:90px;height:90px}#stick{left:22px;top:22px}#fire{bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px) + 30px);width:76px;height:76px}.control-label{bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px) + 9px)}#radar{width:120px;height:64px;top:52px}#hud{padding:8px 10px 0}.roundclock b{font-size:32px}.scorebox{font-size:24px}.wave-target{font-size:20px}#wave-clear{top:23%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* V8: centred time-machine title, reachable lower menu, uninterrupted wave notices. */
.menu-content{margin:0;flex:1;display:flex;flex-direction:column;min-height:0;text-align:center}.menu-hero{margin:auto 0;padding:24px 0}.menu-actions{margin:0 auto;width:100%;max-width:330px}.menu-content h1{font-size:clamp(64px,19vw,94px);line-height:.95;letter-spacing:0}.menu-content h2{font-size:clamp(30px,9vw,43px);letter-spacing:2px}.menu-copy{font-size:21px;line-height:1.2;margin:19px 0 0}.menu-actions .primary,.menu-actions .menu-row{text-align:center}.menu-actions .primary:before{position:static;display:inline-block;margin-right:10px}.menu-meta{margin-top:18px}.ready .menu-hero{animation:time-arrival .75s steps(8,end) both}.ready .menu-content h1{animation:title-charge 1.15s steps(9,end) both}.ready .menu-content h2{animation:time-arrival .75s .15s steps(8,end) both}.ready .menu-actions{animation:time-arrival .55s .32s steps(8,end) both}.brand{justify-content:center}.paused .menu-content,.ended .menu-content{margin:auto 0;flex:0}.paused .menu-hero,.ended .menu-hero{padding:20px 0}.ended #result-stats{margin:18px 0 0}.paused #menu{justify-content:center}
@keyframes time-arrival{0%{opacity:0;transform:translateY(18px)}35%{opacity:.45;transform:translateY(-3px)}100%{opacity:1;transform:translateY(0)}}
@keyframes title-charge{0%{opacity:0;transform:scaleX(1.2) scaleY(.1);filter:brightness(3)}30%{opacity:1;transform:scaleX(.98) scaleY(1.03);filter:brightness(2)}40%{opacity:.6;transform:translateX(3px)}50%{opacity:1;transform:translateX(-2px)}75%,100%{opacity:1;transform:none;filter:brightness(1)}}
#gun-choices{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 13px}.gun-choice{flex:1 1 80px;border:2px solid #62644c;background:#141e12;color:#b8ac82;padding:9px 5px;font:21px Retro;min-height:46px}.gun-choice[aria-pressed=true]{border-color:#d1a960;color:#ffe4a7;background:#413b1f}.panel{padding:4px 0}.overlay{justify-content:flex-start}#options-menu .panel{margin:auto 0}#options-menu .menu-row{font-size:23px;min-height:37px}#options-menu .eyebrow{margin-top:11px}#options-menu .theme-sample{height:43px}#options-menu .theme-sample i{height:37px;width:40px}#options-menu .hud-choice{display:inline-block;width:calc(33.333% - 4px);font-size:16px;vertical-align:top;padding:3px;min-height:73px}#options-menu .theme-sample{font-size:24px}#options-menu .small-note{font-size:7px}
#wave-clear{top:143px;left:24px;right:24px;padding:8px 3px;border:0;border-top:1px solid #e1c68077;border-bottom:1px solid #e1c68044;background:linear-gradient(90deg,transparent,#101b0ec9 15%,#101b0ec9 85%,transparent);box-shadow:none;pointer-events:none;text-shadow:2px 2px #151a0f;animation:time-arrival .23s steps(4,end)}#wave-clear h2{font-size:25px;line-height:1.05;margin:0;color:#ffdc8f}#wave-clear p{font:6px/1.8 Arcade;margin:5px 0 0}#robi-caption{position:absolute;left:35px;right:35px;bottom:calc(var(--hud-height) + 149px);text-align:center;font:22px/1.1 Retro;color:#ffe1a0;text-shadow:2px 2px #111;background:#14200dbb;padding:7px;pointer-events:none}
@media(max-height:650px){.menu-hero{padding:12px 0}.menu-copy{font-size:18px;margin-top:12px}.menu-actions{max-width:300px}.menu-content h1{font-size:62px}.menu-content h2{font-size:29px}.menu-meta{margin-top:10px}#wave-clear{top:118px}#wave-clear h2{font-size:22px}.menu-hero .eyebrow{font-size:7px}}

/* Keep the two requested original ET sounds together above the existing choices. */
.gun-choice[data-gun=fg42],.gun-choice[data-gun=mg42]{flex-basis:calc(50% - 3px)}
/* Phone controls are game surfaces; only actual form fields accept text selection. */
html,body,#stage,#stage *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}img,canvas{-webkit-user-drag:none}#stage input,#stage textarea{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;touch-action:auto}
.ready #weapon-view{visibility:hidden}.ready #shade{background:linear-gradient(#172c4120,transparent 60%,#07110c66)}
.ready #menu{background:linear-gradient(#172c4340 0%,#14262f08 42%,#10201920 56%,#07110eec 82%,#090f0ffc)}
.ready #menu:before{content:'';position:absolute;inset:12px 9px;pointer-events:none;border:2px solid #bd814966;box-shadow:inset 0 0 0 3px #36182055,inset 0 0 0 5px #d0a35422}
.ready .brand{opacity:.85}.ready .menu-hero{margin:clamp(12px,3vh,28px) 0 auto;padding:0}.royal-seal{font:35px Retro;color:#ffdb81;text-shadow:2px 2px #8f3425,4px 4px #321b20;margin:0 auto 5px}.paused .royal-seal,.ended .royal-seal{display:none}
.ready .menu-hero .eyebrow{color:#ffdea0;text-shadow:2px 2px #20212a;font-size:8px;letter-spacing:2px}.ready .menu-content h1{color:#ffd981;text-shadow:0 -2px #fff4c2,3px 3px #a44029,5px 5px #572626,7px 7px #17202b;font-size:clamp(64px,21vw,102px);line-height:.9;margin-bottom:13px}.ready .menu-content h2{color:#fff0ba;font-size:clamp(32px,9vw,45px);text-shadow:2px 2px #9a352a,4px 4px #1e2531;letter-spacing:3px}.ready .menu-copy{margin:16px auto 0;color:#f1e2b9;text-shadow:2px 2px #182325;font-size:20px;max-width:260px}.ready .menu-actions{margin-top:clamp(50px,15vh,160px)}
.menu-audio{background:transparent;border:0;color:#d0bf8b;font:8px/1.8 Arcade;min-height:36px;padding:6px;width:100%;text-shadow:1px 1px #111}.paused .menu-audio,.ended .menu-audio{display:none}.menu-actions .primary{background:linear-gradient(90deg,#6c302936,#9c542d66,#6c302936);border-top-color:#e0b56388;color:#ffe7a6;min-height:48px}.primary:active,.menu-row:active,.track-row:active{transform:translateY(2px);filter:brightness(1.3)}
.dying #menu{display:none}.dying #hud{display:block;opacity:.65}.dying #status-bar{display:grid}.dying #weapon-view{animation:weapon-fall 4.4s ease-in-out forwards}.ended #weapon-view{transform:translateY(40%);opacity:.15}#death-veil{position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 50% 38%,#310c0810,#3b0c11b8 65%,#080609ef);box-shadow:inset 0 0 50px #c44c2e}.dying #death-veil{animation:death-fade 5.2s ease-out forwards}.ended #death-veil{opacity:.85}.ended #menu{background:linear-gradient(#100b0866,#0e120fed 90%);padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}.ended .brand{display:none}.ended .menu-content{margin:auto 0;flex:0;min-height:min-content}.ended .menu-hero{padding:8px 0 14px}.ended .menu-content h1{font-size:clamp(60px,17vw,83px);color:#f1a66d;line-height:.9}.ended .menu-content h2{font-size:25px;letter-spacing:0;margin:10px 0}.ended .menu-copy{font-size:19px;margin-top:10px}.ended #result-stats{margin:14px 0 0;padding:10px 0;border-top:1px solid #cc9a5344;border-bottom:1px solid #cc9a5344}.ended #save-score{font-size:29px}.ended #play{background:transparent;border:0;margin-top:4px;font-size:27px;min-height:42px}.ended #play:before{display:none}.ended #show-options,.ended #show-board{display:inline-block;width:49%;font-size:22px;min-height:38px;padding:6px 2px}.ended .menu-meta{margin-top:10px}
@keyframes weapon-fall{0%{transform:translateY(0) rotate(0);opacity:1}14%{transform:translateY(3%) rotate(-4deg);opacity:1}60%{transform:translateY(20%) rotate(-8deg);opacity:.7}100%{transform:translateY(40%) rotate(-6deg);opacity:.15}}@keyframes death-fade{0%{opacity:.9}12%{opacity:.22}72%{opacity:.55}100%{opacity:.85}}
#track-menu{background:linear-gradient(#192628ed,#1e1b15f5),url('/assets/game-previews/vidovdan-v1/hud-bronze-v7b.webp');background-size:auto,128px}#track-menu .panel{text-align:center}#track-menu .eyebrow{color:#ccab72;font-size:7px;letter-spacing:1px}#track-heading{color:#ffe0a0;font-size:39px;line-height:.95}.speaker-stage{position:relative;max-width:300px;margin:auto}.speaker-stage .speaker{margin:0 auto 14px}.equalizer{display:flex;position:absolute;bottom:14%;left:35%;right:35%;height:18%;align-items:flex-end;justify-content:center;gap:3px;opacity:.65;pointer-events:none}.equalizer i{background:#b9c468;width:5px;height:20%;box-shadow:0 0 3px #dbe78b}.previewing .equalizer i{animation:equalize .5s steps(4,end) infinite alternate}.equalizer i:nth-child(3n){animation-delay:-.3s}.equalizer i:nth-child(2n){animation-delay:-.15s}@keyframes equalize{0%{height:15%}70%{height:95%}100%{height:45%}}#track-list{border-top:2px solid #bf965955;border-bottom:2px solid #bf965955}.track-row{padding:10px 9px;color:#d2be97;min-height:48px;border-bottom:1px solid #bf96591c}.track-row[aria-pressed=true]{background:linear-gradient(90deg,#ad5c3340,transparent);color:#ffe3a1;box-shadow:inset 3px 0 #e2b768}.track-row[aria-pressed=true] .track-no{font-size:0}.track-row[aria-pressed=true] .track-no:after{content:'▸';font:27px Retro}#track-status{min-height:30px;color:#ddc38e;font-size:7px;display:grid;align-items:center;margin:8px 0}#track-menu .primary,#track-menu .menu-row{text-align:center}
#board-menu{height:var(--visible-height,100dvh);bottom:auto;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}#board-menu .panel{margin:0 auto}#board-menu h2{margin-bottom:8px}#board-rows{max-height:32vh}#score-form{padding-bottom:12px;border-bottom:1px solid #be9a5944}#score-form label{margin-top:8px}#player-name{font-size:27px;min-height:44px}#score-form .primary{font-size:27px;min-height:44px}
@media(max-height:650px){.ready .menu-hero{margin-top:4px}.royal-seal{font-size:25px;margin-bottom:1px}.ready .menu-content h1{font-size:72px;margin-bottom:8px}.ready .menu-content h2{font-size:32px}.ready .menu-copy{font-size:18px;margin-top:10px}.ready .menu-actions{margin-top:35px}.menu-audio{font-size:6px;min-height:28px}.menu-actions .primary{min-height:42px}.ended .menu-hero{padding:4px 0 8px}.ended .menu-content h1{font-size:60px}.ended .menu-content h2{font-size:23px;margin:5px 0}.ended #result-stats{margin-top:9px;padding:7px 0}.ended #result-stats b{font-size:27px}.ended #save-score{min-height:42px;font-size:26px}.ended #play{min-height:37px;font-size:25px}.ended .eyebrow{font-size:7px}.ended #menu{padding:14px 24px}.speaker-stage{max-width:215px}.speaker-stage .speaker{max-height:100px;margin-bottom:7px}#track-menu .track-row{min-height:43px;font-size:25px}.ready .menu-meta{margin-top:8px}#track-heading{font-size:34px}}
@media(prefers-reduced-motion:reduce){.dying #weapon-view{animation:none;opacity:.35;transform:none}.dying #death-veil{animation:none;opacity:.65}}

/* v9.2: readable arcade title over the actual empty daylight camp. */
.ready #menu{isolation:isolate;background:linear-gradient(#101a19b0,transparent 37%,transparent 57%,#11170fd9 80%,#0b100bf2);overflow:hidden;padding:calc(env(safe-area-inset-top,0px) + 20px) 24px calc(env(safe-area-inset-bottom,0px) + 14px)}
.ready #menu:before{inset:8px;border:1px solid #c9d5df38;box-shadow:none}
.ready .brand{position:relative;opacity:.82;color:#f1eeee;flex-shrink:0}.ready .brand img{width:24px;height:24px}.ready .brand span{font-size:5px}
.ready .menu-content{position:relative;justify-content:space-between;min-height:0;flex:1}
.ready .menu-hero{margin:clamp(18px,4vh,38px) 0 0;padding:0;animation:time-arrival .65s .15s steps(8,end) both}
.ready .menu-hero .eyebrow{font-size:7px;letter-spacing:2px;color:#d8e7ee;text-shadow:2px 2px #152131;margin-bottom:14px}
.ready .menu-content h1{font:clamp(58px,20vw,94px)/.9 Retro,monospace;letter-spacing:0;color:#f3eee4;text-shadow:-2px -2px #233044,2px 2px #ad343e,4px 4px #691e34,6px 6px #101c2c;margin-bottom:7px;animation:time-arrival .7s .25s steps(8,end) both}
.ready .menu-content h2{font:clamp(23px,7.5vw,36px)/1 Retro;letter-spacing:4px;color:#dde9ed;text-shadow:2px 2px #183349,3px 3px #101c29;margin:0}
.ready .menu-copy{font-size:17px;line-height:1.1;color:#d7e2e6;margin:12px auto 0;text-shadow:1px 2px #102437;max-width:250px}
.ready .menu-actions{margin:0 auto;padding-top:10px;max-width:310px;animation:time-arrival .55s .5s steps(8,end) both}
.menu-actions .primary,.overlay .primary{color:#f5eee6;background:linear-gradient(90deg,#5b142b00,#6d293fbb,#5b142b00);border-top:1px solid #b85d6977;border-bottom:1px solid #121c2c;min-height:46px;text-shadow:2px 2px #561e2c,3px 3px #0b1420}
.primary:before,.menu-actions .primary:before{color:#ee6972}.menu-row{color:#d5e1e6;text-shadow:2px 2px #142438,3px 3px #10151e}.menu-row:hover,.primary:hover{color:#fff;background:#a93b4f30}.menu-audio{color:#c7d7df;font-size:6px;min-height:30px}.menu-meta,.menu-meta a{color:#a8bac8}.ready .menu-meta{margin-top:8px;font-size:5px}.ready .menu-actions .menu-row{font-size:25px;min-height:36px;padding:5px}
.paused #menu{background:linear-gradient(#09111fd9,#101a2ee8);background-size:auto;padding:24px}.paused #hud,.paused #status-bar{opacity:.2}.paused .menu-content{margin:auto 0;flex:none;min-height:min-content;padding:25px 15px 22px;border-top:2px solid #a6495a;border-bottom:2px solid #5e293e;background:linear-gradient(90deg,#15203544,#121b2ddd,#15203544)}
.paused .menu-hero{padding:0 0 22px;margin:0}.paused .menu-content h1{color:#f3e9e2;text-shadow:3px 3px #962f46,5px 5px #101829;font-size:70px}.paused .eyebrow{color:#b8cedc;line-height:1.9}.paused .menu-copy{color:#bacbd7;margin-top:14px;font-size:22px}.paused .menu-meta{margin-top:18px}
.overlay,#track-menu{background:linear-gradient(#101b1ded,#0d1719f8);color:#d7e4e8}.panel h2,#track-heading{color:#eeeae2;text-shadow:3px 3px #902c44,5px 5px #0c1526}.overlay .eyebrow,#track-menu .eyebrow{color:#adc5d6}.small-note,#track-status{color:#b6c7d1}.gun-choice{flex:1 1 calc(50% - 4px);background:#182335;color:#c3d1db;border-color:#4d6071}.gun-choice[aria-pressed=true],.hud-choice[aria-pressed=true]{background:#55283b;color:#f2e9e0;border-color:#c87481}.hud-choice{color:#bfd1dd;border-color:#485565}.gun-choice[data-gun=fg42],.gun-choice[data-gun=mg42]{flex-basis:calc(50% - 4px)}
#track-list{border-color:#9b536155}.track-row{color:#c8d9df;border-bottom-color:#7d819e33}.track-row[aria-pressed=true]{color:#f4e9e1;background:linear-gradient(90deg,#a038514c,transparent);box-shadow:inset 3px 0 #e06776}.track-row .track-no{color:#a3b8cd}.equalizer i{background:#7cc9d3;box-shadow:0 0 3px #b4e6e5}
.ended #menu{background:linear-gradient(#1a102366,#0b1323ee 90%)}.ended .menu-content h1{color:#f0ddd6;text-shadow:3px 3px #982d43,5px 5px #101829}.ended .menu-content h2{color:#d9e2e7;text-shadow:2px 2px #263849}.ended .menu-copy{color:#b2c4d3}#result-stats b{color:#f1e8df}#result-stats span{color:#b7c9d5}
button:focus-visible,a:focus-visible,input:focus-visible{outline-color:#b6ddeb}
@media(max-height:650px){.ready #menu{padding-top:14px;padding-bottom:12px}.ready .brand{display:none}.ready .menu-hero{margin-top:16px}.ready .menu-content h1{font-size:clamp(58px,20vw,78px)}.ready .menu-content h2{font-size:26px}.ready .menu-hero .eyebrow{margin-bottom:8px;font-size:6px}.ready .menu-copy{font-size:15px;margin-top:9px}.ready .menu-actions{margin:0 auto;padding:0}.ready .menu-actions .primary{font-size:28px;min-height:40px}.ready .menu-actions .menu-row{font-size:23px;min-height:31px}.ready .menu-audio{min-height:26px}.paused .menu-content{padding:18px 9px}.paused .menu-content h1{font-size:61px}.paused .menu-hero{padding-bottom:15px}}
@media(prefers-reduced-motion:reduce){.ready #menu-art,.ready .menu-atmosphere,.ready .menu-hero,.ready .menu-content h1,.ready .menu-actions{animation:none}}

.paused #subtitle{display:none}

@media(prefers-reduced-motion:reduce){.ready.intro-sounding .menu-atmosphere{animation:none}}

#arrival-view{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;image-rendering:pixelated}
.ended .menu-content{animation:none}
.ended #title{animation:game-over-impact .6s ease-out both}
.ended #eyebrow{animation:results-arrive .35s .35s both}
.ended #subtitle{animation:results-arrive .4s .5s both}
.ended #menu-copy{animation:results-arrive .4s .8s both}
.ended #result-stats{animation:results-arrive .3s .9s both}
.ended #result-stats>div:nth-child(1){animation:results-arrive .35s .95s both}
.ended #result-stats>div:nth-child(2){animation:results-arrive .35s 1.1s both}
.ended #result-stats>div:nth-child(3){animation:results-arrive .35s 1.25s both}
.ended .menu-actions{animation:results-arrive .4s 1.5s both}
@keyframes game-over-impact{0%{opacity:0;transform:scale(1.26);filter:brightness(2)}22%{opacity:1;transform:scale(.97);filter:brightness(1.3)}48%{transform:scale(1.02)}100%{opacity:1;transform:none;filter:none}}
@keyframes results-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.ended .menu-content{animation:none}}

/* v9.3: a small static opening loads independently of the 3D engine. */
#menu-art{display:none}.ready #menu-art{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 49%;image-rendering:pixelated;z-index:-2;animation:none}
.ready #menu{background:transparent}.ready #menu:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#0a15265c,transparent 32%,transparent 57%,#0c151cb5 74%,#09131ce6)}
.ready #menu:before{z-index:0;pointer-events:none}.ready .menu-hero{margin-top:clamp(18px,3.5vh,32px)}

/* A single retro entry tap unlocks the opening song before New Game appears. */
#enter,#entry-note{display:none}.awaiting-entry .menu-actions>:not(#enter):not(#entry-note){display:none}.awaiting-entry #enter{display:block;min-height:56px;font-size:36px;letter-spacing:1px}.awaiting-entry #entry-note{display:block;font:6px/1.8 Arcade;letter-spacing:.6px;color:#b6cad5;margin:14px 0 7px}.awaiting-entry .menu-copy{visibility:hidden}.awaiting-entry .menu-actions{margin-bottom:clamp(20px,5vh,50px)}
@media(max-height:650px){.awaiting-entry .menu-actions{margin-bottom:20px}.awaiting-entry #enter{min-height:50px;font-size:32px}}

/* Occasional power-up and commander use the same pixel HUD; no extra touch controls. */
#supply-notice{position:absolute;z-index:8;top:36%;left:18px;right:18px;text-align:center;font:25px/1.1 Retro;color:#bde9e8;text-shadow:2px 2px #132729;pointer-events:none}#supply-notice small{display:block;font:7px/1.7 Arcade;margin-top:6px}#commander-bar{position:absolute;z-index:8;top:207px;left:28%;right:28%;text-align:center;font:18px Retro;color:#f3cf90;text-shadow:2px 2px #241b13;pointer-events:none}#commander-bar div{height:5px;background:#151a11;border:1px solid #ad8e53;margin:3px auto}#commander-bar i{display:block;height:100%;background:#b6412c}#commander-bar.winding{color:#ff9670}#commander-bar.winding i{background:#ed894b}.rocket-equipped #crosshair{width:30px;height:30px;border:1px solid #d1cf9b88}.rocket-equipped #crosshair:before{left:14px;top:5px}.rocket-equipped #crosshair:after{left:5px;top:14px}.rocket-equipped #crosshair i{inset:13px}.rocket-equipped #ammo{color:#bde9e8}
@media(max-height:650px){#commander-bar{top:162px;font-size:16px}#supply-notice{font-size:22px;top:39%}}

.ended #main-menu{font-size:25px;min-height:40px;padding:6px 12px}
@media(max-height:650px){.ended #main-menu{font-size:23px;min-height:36px}}

#board-menu h2{font-size:clamp(26px,8vw,35px)}#account-actions .primary{font-size:25px}#account-login{font-size:22px}#account-actions{margin-bottom:14px}#discard-score{font-size:17px;min-height:36px;margin-top:12px}#army-mode,#army-preview{font-size:23px}
/* v9.8: chosen portal direction, historical title and an optional story card. */
#welcome-logo{display:none}.ready #welcome-logo{display:block;width:100%;height:auto;max-width:400px;filter:drop-shadow(0 3px 3px #07132099)}.ready .menu-hero{margin-top:8px}.ready .menu-hero h1,.ready .menu-hero h2,.ready .menu-hero>.eyebrow{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%)}.ready .menu-copy{display:none}.ready #menu{background:linear-gradient(#07132115,transparent 56%,#07132177 72%,#071321f5 96%)}.ready #menu-art{object-position:center top}.ready .menu-atmosphere{opacity:.25}
#share-run{display:none}.ended #share-run{display:block;font-size:26px;min-height:40px;color:#bde5ed}#share-menu{justify-content:flex-start}#share-menu .panel{margin:0 auto}#share-menu h2{margin-bottom:4px}#share-menu .small-note{font-size:6px;line-height:1.8;margin:8px 0}#share-menu .menu-row,#share-menu .primary{font-size:25px;min-height:40px}#share-name,#share-copy{width:100%;font:24px Retro;padding:7px 10px;border:1px solid #69849a;background:#09131d;color:#f4eddf;border-radius:0}#share-preview{display:block;width:auto;max-width:100%;height:min(37dvh,330px);margin:12px auto;box-shadow:0 0 0 1px #7e9baf66;pointer-events:auto;touch-action:auto;-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto}#share-copy{font-size:18px}#share-menu label{display:block;font-size:6px;margin-bottom:6px}
@media(max-height:650px){.ready .brand{display:none}.ready .menu-hero{margin-top:0}.ready #welcome-logo{max-width:300px;margin:auto}#share-preview{height:30dvh}#share-menu{padding:12px 24px}.ended #share-run{font-size:23px;min-height:36px}}
/* v9.9: one Serbian MQ identity and a portal-era menu treatment. */
.world-brand{display:flex!important;align-items:center;justify-content:center;gap:9px;text-align:left;flex-shrink:0;margin:0 auto 12px;max-width:100%;color:#efe9dd;opacity:1}.world-brand .world-emblem{width:40px;height:40px;border:1px solid #8aaab36b;object-fit:cover;box-shadow:2px 2px #06111b}.world-brand .world-name{display:block;font:19px/1 Retro,monospace;letter-spacing:.4px;white-space:nowrap;text-shadow:1px 2px #07131e}.world-brand .arcade-name{display:block;font:5px/1.8 Arcade,monospace;color:#a7c7d8;letter-spacing:.3px;margin-top:4px}.ready .world-brand{margin-bottom:0}.ready #welcome-logo{display:block;margin-inline:auto;width:min(100%,400px)}.ready .menu-hero{display:flex;flex-direction:column;align-items:center;margin-top:4px;width:100%}.ready #menu{padding-top:max(12px,env(safe-area-inset-top))}.hud-world-brand{display:none;position:absolute;top:58px;left:50%;transform:translateX(-50%);white-space:nowrap;font:5px/1.5 Arcade;color:#bdcfdc;opacity:.75;pointer-events:none;text-shadow:1px 1px #142338}.playing .hud-world-brand{display:block}
.overlay{background:linear-gradient(135deg,#0a1725f5,#0b1522fa 58%,#183140f5);box-shadow:inset 0 0 0 1px #7599b44a,inset 0 0 0 7px #08131e99}.overlay .panel{border-top:1px solid #90c0cc77;padding-top:13px}.overlay .world-brand{margin-top:0;margin-bottom:17px}.panel h2,#track-heading{color:#e9e4d8;text-shadow:2px 2px #782d46,4px 4px #06131f}.overlay .eyebrow{color:#90bac9}.overlay .primary,.menu-actions .primary{border-top-color:#9f6d6d77;background:linear-gradient(90deg,#31223420,#55273b9c,#17334255);color:#eee9dd}.overlay .menu-row,.menu-actions .menu-row{color:#c9d9e0}.overlay .menu-row:hover{background:#537c8c22}.paused #menu{background:linear-gradient(#081522ef,#12283af5),url('/assets/game-previews/vidovdan-v1/entry-portal-v9.9.webp') center/cover}.paused .menu-content{border-color:#8faebb88 #0000 #65354c99}.paused #main-menu{display:block;font-size:25px}.ended .world-brand{margin-bottom:10px}.ended .menu-content{margin-top:auto}.ended .menu-hero{padding-top:0}
#entry-art{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none}.ready.awaiting-entry #entry-art{display:block}.ready.awaiting-entry #menu-art{visibility:hidden}.ready.portal-opening #entry-art{display:block;animation:portal-door .75s ease-in forwards}.portal-opening .menu-actions{pointer-events:none}.portal-opening #enter{visibility:hidden}.portal-opening:after{content:'';position:absolute;inset:0;z-index:50;pointer-events:none;animation:portal-light .75s steps(8,end) forwards;background:#83dfff}#entry-note{color:#b1d0df!important}
@keyframes portal-door{0%{opacity:1;transform:scale(1)}45%{opacity:1;transform:scale(1.17)}100%{opacity:0;transform:scale(1.6)}}@keyframes portal-light{0%{opacity:0}35%{opacity:.18}55%{opacity:.65}100%{opacity:0}}.ready #menu-art{z-index:-2}.ready #entry-art{z-index:-1}.ready #menu{isolation:isolate}.ready.awaiting-entry #menu{background:#07132122}
@media(max-height:650px){.world-brand{gap:6px;margin-bottom:8px}.world-brand .world-emblem{width:26px;height:26px}.world-brand .world-name{font-size:15px}.world-brand .arcade-name{font-size:4px;line-height:1.8;margin-top:2px}.ready .world-brand{margin-bottom:0}.ready #menu{padding-top:10px}.ready .menu-hero{margin-top:0}.ready #welcome-logo{width:min(100%,260px)}.overlay .panel{padding-top:8px}.overlay .world-brand{margin-bottom:10px}#track-menu .speaker{max-height:68px;margin:5px auto 8px}#track-heading{font-size:30px;margin-bottom:8px}#track-menu .track-row{min-height:39px;padding:7px 8px;font-size:24px}#track-menu .small-note{margin:7px 0;font-size:5px}#track-menu .eyebrow{font-size:5px}#track-status{min-height:20px;margin:4px 0}.paused #main-menu{min-height:37px;font-size:23px}.ended .world-brand{margin-bottom:4px}}
@media(prefers-reduced-motion:reduce){.ready.portal-opening #entry-art{animation:none;opacity:0}.portal-opening:after{display:none}}
/* v9.10: subtle credits, safe headroom and a deliberate passage into battle. */
.world-brand{gap:0;margin-bottom:10px;opacity:.8}.world-brand .world-emblem{display:none}.world-brand>div{text-align:center}.world-brand .world-name{font:6px/1.8 Arcade,monospace;letter-spacing:.15px;white-space:normal}.world-brand .arcade-name{font:4px/1.8 Arcade,monospace;margin-top:2px;letter-spacing:.1px;color:#9db3c6}.ready #menu{padding-top:max(14px,env(safe-area-inset-top))}.ready #welcome-logo{width:min(100%,44dvh,400px);margin-inline:auto}.ready .menu-hero{margin-top:3px}.hud-world-brand{top:43px;font-size:4.5px;opacity:.65}.overlay .world-brand{margin-bottom:15px}.ready.awaiting-entry .menu-actions{position:absolute;left:10%;right:10%;top:49%;width:80%;max-width:none;transform:translateY(-50%);margin:0;animation:none}.ready.awaiting-entry #enter{font-size:42px;min-height:72px;background:radial-gradient(ellipse,#071321e8,#07132199 60%,#07132100);border:0;box-shadow:none;text-shadow:2px 3px #051526,0 0 20px #a1e9ff99}.ready.awaiting-entry #enter:before{display:none}.ready.awaiting-entry #entry-note{margin:7px 0 0;font-size:5px;text-shadow:1px 2px #061526}.ready.awaiting-entry .menu-hero{visibility:hidden}.ready.awaiting-entry #menu:after{background:linear-gradient(#07132177,transparent 22%,transparent 80%,#07132177)}
.entering-battle #track-menu{pointer-events:none}.entering-battle #track-menu .panel{animation:step-through .95s ease-in both}.entering-battle #track-status{color:#e4f7ff}.entering-battle:after{content:'';position:absolute;inset:0;z-index:45;pointer-events:none;background:radial-gradient(ellipse,#b8f0ff,#327a9e 65%,#04101c);animation:battle-passage 1.3s ease-in-out both}
@keyframes step-through{0%,15%{opacity:1;transform:scale(1)}65%{opacity:.7;transform:scale(.98)}100%{opacity:0;transform:scale(.96)}}@keyframes battle-passage{0%,20%{opacity:0}70%,76%{opacity:1}100%{opacity:0}}
@media(max-height:650px){.world-brand .world-name{font-size:5px}.world-brand .arcade-name{font-size:4px}.ready #menu{padding-top:12px}.ready #welcome-logo{width:min(100%,44dvh,300px)}.hud-world-brand{top:39px;font-size:4px}.ready.awaiting-entry #enter{font-size:36px}}
@media(prefers-reduced-motion:reduce){.entering-battle:after{animation:none;opacity:.2}.entering-battle #track-menu .panel{animation:none}}
/* v9.11: accepted painted cover, separate title lines and the retained camp portal. */
#stage{container-type:size;--portal-size:min(78cqw,54dvh)}#entry-portal{display:none;position:absolute;inset:0;z-index:-1;overflow:hidden;transform-origin:50% 47%;pointer-events:none}.ready.awaiting-entry #entry-portal,.ready.portal-opening #entry-portal{display:block}.portal-shed{width:100%;height:100%;object-fit:cover}.portal-destination{position:absolute;left:50%;top:47%;width:var(--portal-size);aspect-ratio:1;border-radius:50%;overflow:hidden;transform:translate(-50%,-50%);box-shadow:0 0 30px #6ddfff66}.portal-destination img{width:100%;height:100%;object-fit:cover}.portal-rim{position:absolute;left:50%;top:47%;width:calc(var(--portal-size)*1.19);height:auto;aspect-ratio:1;object-fit:contain;mix-blend-mode:screen;transform:translate(-50%,-50%);animation:camp-rim 45s linear infinite;opacity:.94}.portal-floor{position:absolute;bottom:3%;left:8%;right:8%;height:30%;background:radial-gradient(ellipse,#72caff66,transparent 65%);mix-blend-mode:screen;animation:camp-floor 4s ease-in-out infinite}.ready.portal-opening #entry-portal{animation:camp-passage 1.45s cubic-bezier(.65,0,.8,.35) both}.ready.portal-opening #entry-portal .portal-rim{filter:brightness(1.6)}.portal-opening:after{animation:camp-wash 1.5s ease-in-out both}.ready.awaiting-entry #menu:after{display:none}.ready.awaiting-entry .menu-actions{top:47%}#portal-sound{display:none;position:absolute;z-index:8;right:5%;bottom:3%;min-height:44px;border:0;background:none;font:6px/1.6 Arcade;color:#c2dce8;padding:12px 6px;letter-spacing:.2px}.ready.awaiting-entry #portal-sound{display:block}.portal-opening #portal-sound{pointer-events:none;opacity:0}.world-brand{gap:7px}.world-brand .world-emblem{display:block;width:14px;height:14px;border:0;box-shadow:none}.world-brand .arcade-name{display:none}.world-brand .world-name{font-size:5px}.ready #welcome-logo{position:relative;aspect-ratio:900/330;height:auto}.ready #welcome-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.ready:not(.awaiting-entry):not(.portal-opening) #welcome-logo .logo-main{animation:restored-line .7s .08s ease-out both}.ready:not(.awaiting-entry):not(.portal-opening) #welcome-logo .logo-machine{animation:restored-line .65s .32s ease-out both}.ready:not(.awaiting-entry):not(.portal-opening) #welcome-logo .logo-year{animation:restored-line .55s .52s ease-out both}.ready .menu-hero{animation:none}.ready #menu-art{object-fit:cover;image-rendering:auto;animation:none}
@keyframes camp-rim{to{transform:translate(-50%,-50%) rotate(360deg)}}@keyframes camp-floor{50%{opacity:.55;transform:scaleX(1.06)}}@keyframes camp-passage{0%{transform:scale(1);opacity:1}65%{opacity:1}100%{transform:scale(6);opacity:0}}@keyframes camp-wash{0%,40%{opacity:0}76%{opacity:.55}100%{opacity:0}}@keyframes restored-line{from{opacity:0;transform:translateY(9px) scale(.98);filter:brightness(1.7)}to{opacity:1;transform:none;filter:none}}
@media(prefers-reduced-motion:reduce){.portal-rim,.portal-floor,.ready.portal-opening #entry-portal,.ready #welcome-logo img{animation:none!important}.ready.portal-opening #entry-portal{opacity:0}.portal-opening:after{display:none}}

.portal-opening #entry-note{visibility:hidden}.portal-opening .world-brand{opacity:0;transition:opacity .2s}
/* v9.12: one restrained movement/sound language from cover to combat. */
#cover-atmosphere{display:none;position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}.ready:not(.awaiting-entry):not(.portal-opening) #cover-atmosphere{display:block}#cover-atmosphere svg{position:absolute;inset:0;width:100%;height:100%}.cover-energy{transform-origin:270px 375px;animation:cover-current 5.5s ease-in-out infinite}.cover-spark{position:absolute;width:2px;height:2px;background:#c5efff;box-shadow:0 0 4px #60caff;opacity:0;animation:cover-ember 5s ease-in-out infinite}.spark-one{left:9%;top:39%}.spark-two{right:7%;top:29%;animation-delay:1.7s}.spark-three{right:13%;top:60%;animation-delay:3.2s}@keyframes cover-current{0%,100%{opacity:.17;transform:rotate(-.3deg)}50%{opacity:.65;transform:rotate(.3deg)}}@keyframes cover-ember{0%,55%,100%{opacity:0;transform:translateY(4px)}70%{opacity:.7}90%{opacity:0;transform:translateY(-9px)}}
#track-menu{background:radial-gradient(ellipse at 50% 32%,#234253e8,#0a1523f9 68%),url('/assets/game-previews/vidovdan-v1/hud-stone-v7b.webp');overflow-y:auto}#track-menu .world-brand{display:none!important}#track-menu .panel{max-width:350px;margin:auto;text-align:center;animation:radio-panel .36s ease-out both}#track-menu .eyebrow{font-size:6px;letter-spacing:.9px;margin:0 0 14px;color:#9fc3cd}#track-heading{font-size:clamp(32px,9cqw,42px);line-height:.95;margin:0 0 12px;text-shadow:2px 3px #342938,4px 5px #06101b}#track-menu .speaker-stage{margin:8px auto 15px;max-width:250px;animation:radio-speaker .5s .08s ease-out both}#track-menu .speaker{max-height:125px;margin:0 auto;filter:drop-shadow(0 12px 10px #02070c99)}#track-menu .small-note{font-size:5px;line-height:1.7;margin:8px 0 11px}#track-list{border-top:1px solid #6f9ca744;border-bottom:1px solid #6f9ca744}#track-menu .track-row{min-height:44px;font-size:26px;border-bottom:1px solid #8ebac011;padding:9px 9px;animation:radio-row .3s ease-out both}#track-menu .track-row:nth-child(1){animation-delay:.12s}#track-menu .track-row:nth-child(2){animation-delay:.17s}#track-menu .track-row:nth-child(3){animation-delay:.22s}#track-menu .track-row:nth-child(4){animation-delay:.27s}#track-menu .track-row[aria-pressed=true]{color:#fff2d9;background:linear-gradient(90deg,#4c3344aa,#1e3a4788);border-left:2px solid #d6b694}#track-menu .track-no{font-size:7px;color:#7fa5b4}#track-menu #music-go{margin-top:11px;min-height:44px}#track-menu #music-back{min-height:40px;font-size:24px}#track-status{min-height:20px;color:#b8d9df}
.overlay:not(#track-menu) .panel{animation:panel-arrive .2s ease-out both}.overlay.is-leaving .panel{animation:panel-leave .16s ease-in both!important}.paused .menu-content{animation:panel-arrive .2s ease-out both}.entering-battle #track-menu .panel{animation:radio-depart .48s ease-in both}.entering-battle:after{display:none!important}.entering-battle #track-menu{pointer-events:none}.ready.revealing-battle #menu,.revealing-battle #track-menu{visibility:hidden}.ready.revealing-battle #cover-atmosphere{display:none}
@keyframes radio-panel{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}@keyframes radio-speaker{0%{opacity:0;transform:translateY(12px) scale(.94)}70%{opacity:1;transform:translateY(-2px) scale(1.01)}100%{opacity:1;transform:none}}@keyframes radio-row{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}@keyframes radio-depart{to{opacity:0;transform:translateY(28px) scale(.95)}}@keyframes panel-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes panel-leave{to{opacity:0;transform:translateY(8px)}}
#passage-view{position:absolute;inset:0;z-index:46;pointer-events:auto;overflow:hidden;isolation:isolate}#passage-view .passage-dark{position:absolute;inset:0;background:#030b15;animation:tunnel-dark 1.75s linear both}.passage-rings{position:absolute;inset:0;overflow:hidden}.travel-ring{position:absolute;left:50%;top:47%;width:min(96cqw,66dvh);aspect-ratio:1;height:auto;object-fit:contain;mix-blend-mode:screen;opacity:0;transform:translate(-50%,-50%) scale(.2)}#passage-view[data-kind=battle] .travel-ring{animation:tunnel-ring 1.42s cubic-bezier(.38,0,.75,.4) both}.travel-ring.ring-0{animation-delay:0s!important}.travel-ring.ring-1{animation-delay:.12s!important}.travel-ring.ring-2{animation-delay:.24s!important}.travel-ring.ring-3{animation-delay:.36s!important}.passage-edges{position:absolute;inset:0;background:radial-gradient(ellipse,transparent 33%,#020912d9 85%);animation:tunnel-edges 1.75s both}.passage-label{position:absolute;top:45%;left:0;right:0;text-align:center;font:46px/.9 Retro;color:#e6f6f3;text-shadow:2px 3px #17334d;animation:tunnel-label .8s both}.passage-label small{font:5px/1.8 Arcade;letter-spacing:1px}.playing #passage-view{pointer-events:none}#passage-view[data-kind=resume] .passage-dark,#passage-view[data-kind=resume] .passage-label,#passage-view[data-kind=resume] .passage-rings{display:none}#passage-view[data-kind=resume] .passage-edges{animation:resume-edges .25s both}
@keyframes tunnel-dark{0%{opacity:0}15%,32%{opacity:.97}64%{opacity:.63}85%,100%{opacity:0}}@keyframes tunnel-ring{0%{opacity:0;transform:translate(-50%,-50%) scale(.12) rotate(-8deg)}16%{opacity:.9}75%{opacity:.85}100%{opacity:0;transform:translate(-50%,-50%) scale(5) rotate(9deg)}}@keyframes tunnel-label{0%{opacity:0;transform:translateY(6px)}20%,50%{opacity:.85}100%{opacity:0;transform:translateY(-4px)}}@keyframes tunnel-edges{0%{opacity:0}25%,70%{opacity:1}100%{opacity:0}}@keyframes resume-edges{from{opacity:.55}to{opacity:0}}
@media(max-height:650px){#track-menu .panel{margin:auto}#track-menu .eyebrow{margin-bottom:8px;font-size:5px}#track-heading{font-size:30px;margin-bottom:7px}#track-menu .speaker-stage{margin:5px auto 9px}#track-menu .speaker{max-height:84px}#track-menu .small-note{margin:6px 0;font-size:5px}#track-menu .track-row{min-height:42px;font-size:24px;padding:8px}#track-menu #music-go{margin-top:8px}#track-status{min-height:18px}}
@media(prefers-reduced-motion:reduce){#cover-atmosphere{display:none!important}#track-menu .panel,#track-menu .speaker-stage,#track-menu .track-row,.overlay .panel,.paused .menu-content{animation:none!important}#passage-view .travel-ring,#passage-view .passage-label{display:none!important}#passage-view .passage-dark,#passage-view .passage-edges{animation:none;opacity:.12}}
/* The black plate becomes a real alpha mask so the battlefield shows through the rings. */
.travel-ring{mask-image:url('/assets/game-previews/vidovdan-v1/portal-rim-v9.11.webp');mask-mode:luminance;mask-size:100% 100%;mask-repeat:no-repeat}
/* Reveal the real camp through an expanding aperture, rather than a flat blue frame. */
#passage-view[data-kind=battle] .passage-dark{background:radial-gradient(circle 15cqw at 50% 47%,transparent 72%,#030b15 100%);transform-origin:50% 47%}
@keyframes tunnel-dark{0%{opacity:0;transform:scale(.3)}15%{opacity:.98;transform:scale(.55)}32%{opacity:.98;transform:scale(1.1)}64%{opacity:.9;transform:scale(2.8)}85%{opacity:.6;transform:scale(5.5)}100%{opacity:0;transform:scale(6)}}

/* v9.13: the presenter belongs to the title, not the paused encounter. */
.paused #menu > .world-brand{display:none!important}

/* v9.14: replace the website's tall injected Home row with an in-menu exit.
   Removing its flex height also prevents the title/date being pushed over Robi. */
#stage #menu > .mq-game-home{display:none!important}
.ready #welcome-logo{width:min(100%,40dvh,380px)}
#exit-arcade{display:none;text-align:center;text-decoration:none;color:#c4cbd0;font:20px/1.2 Retro,monospace;min-height:44px;padding:10px 8px;opacity:.72}
.ready:not(.awaiting-entry):not(.portal-opening) #exit-arcade,.paused #exit-arcade,.ended #exit-arcade{display:block}
#exit-arcade:hover,#exit-arcade:focus-visible{opacity:1;color:#fff}

/* v9.15: lightweight blue current over the untouched painted portal. */
.portal-breath{opacity:.1;animation:portal-breathe 6.5s ease-in-out infinite}
.portal-current{stroke-linecap:round;opacity:.25;animation:portal-current-flow 13s linear infinite}
.portal-current.current-two{opacity:.2;animation-duration:19s;animation-direction:reverse}
@keyframes portal-breathe{0%,100%{opacity:.08}50%{opacity:.28}}
@keyframes portal-current-flow{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
/* Stop background work while the cover is obscured or the page is hidden. */
#menu[inert] #cover-atmosphere *,html[data-page-hidden] #cover-atmosphere *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.portal-breath,.portal-current{animation:none!important}}

/* v9.16: visible portal energy above the menu vignette, below all text. */
#cover-atmosphere{z-index:0}
.ready:not(.awaiting-entry):not(.portal-opening) #menu>.world-brand,.ready:not(.awaiting-entry):not(.portal-opening) #menu>.menu-content{position:relative;z-index:1}
.portal-current{stroke-width:6;opacity:.65;animation-duration:7s;stroke-dasharray:14 25 5 56}
.portal-current.current-two{stroke-width:2.5;opacity:.5;animation-duration:10s}
.portal-breath{animation:portal-visible-breath 4.8s ease-in-out infinite}
@keyframes portal-visible-breath{0%,100%{opacity:.2}50%{opacity:.56}}
@media(prefers-reduced-motion:reduce){.portal-breath{animation:none!important}}
#commander-bar{top:0;left:0;right:auto;width:126px;transform:translate(-50%,-100%);font-size:15px;line-height:1;white-space:nowrap;padding:3px 4px;background:#10150dc9;border:1px solid #e3bd7755;text-shadow:1px 1px #17120d}
#commander-bar div{height:5px;margin:4px 0 0}

/* Re-light the existing painted energy; the original image URL is reused. */
.portal-paint-light{filter:brightness(1.8) saturate(1.3);animation:painted-portal-pulse 4.4s ease-in-out infinite}
@keyframes painted-portal-pulse{0%,100%{opacity:.08}50%{opacity:.82}}
@media(prefers-reduced-motion:reduce){.portal-paint-light{animation:none!important;opacity:.12}}

/* Reduced-motion phones keep only a slow light pulse, without travelling arcs. */
@media(prefers-reduced-motion:reduce){
 .ready:not(.awaiting-entry):not(.portal-opening) #cover-atmosphere{display:block!important}
 #cover-atmosphere .cover-energy,#cover-atmosphere .portal-current,#cover-atmosphere .cover-spark{display:none!important}
 #cover-atmosphere .portal-paint-light{animation:painted-portal-pulse 8s ease-in-out infinite!important}
}
/* v9.17: preserve the approved still while real portal motion is auditioned. */
#stage #cover-atmosphere{display:none!important}
/* v9.21: one real masked video over the exact sharp cover; no full-frame movie. */
#portal-motion{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;z-index:-2;pointer-events:none;opacity:0;transition:opacity .22s linear;mask:url('/assets/game-previews/vidovdan-v1/portal-energy-mask-v9.21.png') center top/cover no-repeat;-webkit-mask:url('/assets/game-previews/vidovdan-v1/portal-energy-mask-v9.21.png') center top/cover no-repeat}
.ready:not(.awaiting-entry):not(.portal-opening) #portal-motion{display:block}
.ready.portal-motion-active:not(.awaiting-entry):not(.portal-opening) #portal-motion{opacity:1}
@media(prefers-reduced-motion:reduce){#portal-motion{display:none!important}}

/* Creator29Oct: classic score table, four clear result actions, no parchment. */
.ended #chronicle-skip,.ended #show-options,.ended #show-board,.ended #exit-arcade,.ended #menu-audio{display:none!important}
.ended #save-score,.ended #share-run,.ended #play,.ended #main-menu{display:block;width:100%;min-height:44px;margin:3px 0}
#chronicle-skip{display:none!important}
#board-menu{background:linear-gradient(#091321ed,#111a20fa);padding:20px 24px;justify-content:flex-start}
#board-menu .panel{margin:auto 0;width:100%}#board-menu .world-brand{display:none!important}
#board-menu h2{font:42px/1 Retro,monospace;text-align:center;color:#f1eadd;margin:0 0 12px}
#board-menu .small-note{font:8px/1.8 Arcade,monospace;text-align:center;color:#b9cdd6;margin:10px 0}
#board-menu #board-rows{max-height:35dvh;overflow:auto;margin:14px 0;padding:0;list-style:none}
#chronicle-inscription{font:24px Retro;text-align:center;color:#c1e3e8;margin:10px 0}
#board-back{position:sticky;bottom:0;background:#16232c;margin-top:12px}
#supply-notice{top:calc(31% + 76px)}
#share-preview{-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto;touch-action:manipulation}
@media(max-height:650px){#board-menu{padding:12px 20px}#board-menu h2{font-size:34px}#board-menu #board-rows{max-height:30dvh}.ended #save-score,.ended #share-run,.ended #play,.ended #main-menu{font-size:24px;min-height:40px}#supply-notice{top:calc(31% + 72px)}}

/* Saving an image is the deliberate exception to game long-press suppression. */
#share-image-view{pointer-events:auto;position:fixed;inset:0;z-index:1000;overflow:auto;background:#06111d;touch-action:pan-y;overscroll-behavior:contain;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}
#share-image-view[hidden]{display:none}#share-image-view .share-image-tools{padding:12px 20px;text-align:center;background:#081420}#share-image-view p{font:9px Arcade,monospace;line-height:1.8;color:#bedde7}#share-image-view button{font-size:24px;min-height:44px}
#share-save-image{display:block;width:100%;height:auto;max-width:1080px;margin:auto;pointer-events:auto;touch-action:pan-y;-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto;-webkit-user-drag:auto}


/* Independent game link controls remain ready while the PNG is prepared. */
#share-menu .share-game-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 4px}
#share-menu .share-game-actions .menu-row{font-size:22px;line-height:1;min-height:44px;padding:7px 4px;text-align:center}
#share-menu #share-copy{font:12px/1.5 monospace;min-height:36px;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;touch-action:manipulation}
#share-menu #share-game-note{min-height:22px;margin-bottom:14px}

/* Fresh-tap weapon switch, above FIRE and outside its captured drag. */
#weapon-switch{position:absolute;right:25px;bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px) + 42px + 86px + 56px);width:56px;height:56px;min-height:0;padding:12px;display:grid;place-items:center;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;background:#1d251b22;border:2px solid #f1d8a077;border-radius:0;box-shadow:none;color:#e9dcc0;cursor:pointer;z-index:3}
#weapon-switch svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:square;stroke-linejoin:miter;pointer-events:none}
#weapon-switch:not(:disabled):active{background:#d2d8b82b;border-color:#fff2cd}
#weapon-switch:focus-visible{outline:2px solid #bce5e7;outline-offset:3px}
#weapon-switch:disabled{opacity:.25;cursor:default}
#weapon-reserve{font:6px/1.4 Arcade;white-space:normal;text-align:center;color:#e3d6b3}
@media(max-height:650px){#weapon-switch{width:52px;height:52px;padding:10px;bottom:calc(var(--hud-height) + env(safe-area-inset-bottom,0px) + 30px + 76px + 48px)}}

/* Public menu: no game canvas, scores, combat or account state. */
.preview-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#preview-start-form{margin:0}#preview-account-note{font:7px/1.8 Arcade;color:#c4d7e0;margin:7px 0 10px}.ready #menu-art{content-visibility:auto}#options-menu .panel{width:100%;margin:auto 0}#options-menu .menu-row,#options-back{text-align:center;min-height:44px}

#preview-start-form #play{min-height:44px}
