/* Original vector-art direction. All dimensions follow the 9:16 gameplay viewport. */
:root{--gold:#ffd05c;--paper:#fff4d3;--deep:#102e32;--accent:#bdf3b3}
body{background:radial-gradient(ellipse at 50% 25%,#366c55,#102c33 70%)}
.masthead,.editorial{display:none!important}main{top:0;max-width:none;padding:10px;display:flex;justify-content:center;align-items:center;gap:0}
.cabinet{--arena-h:min(calc(100dvh - 20px),calc((100vw - 20px)*16/9));width:calc(var(--arena-h)*9/16);height:var(--arena-h);border-radius:20px;box-shadow:0 28px 100px #001b22aa}
.v4-screen{font-family:'Trebuchet MS',Arial,sans-serif}.v4-screen button,dialog button{font-family:'Arial Black',Arial,sans-serif;letter-spacing:.04em}
.page-title,.result-title,.home-heading,.cinema-caption strong{font-family:Impact,'Arial Black',sans-serif;letter-spacing:.035em;line-height:1.05;text-shadow:0 .06em #b7742c,0 .12em #092d31;paint-order:stroke fill;-webkit-text-stroke:.02em #203d35}
.page-title em,.home-heading em{font-style:normal;color:var(--gold)}
.v4-screen .primary{position:relative;overflow:hidden;animation:play-glow 3.8s ease-in-out infinite}
.v4-screen .primary:after{content:'';position:absolute;inset:-80% auto -80% -55%;width:30%;background:linear-gradient(90deg,transparent,#fff8);transform:rotate(24deg);animation:button-shine 6s ease-in-out infinite;pointer-events:none}
.at-home .cabinet{visibility:hidden}.at-home #v4-ui{left:0!important;top:0!important;width:100vw!important;height:100dvh!important;border-radius:0;container-type:normal}
.premium-home{padding:24px;display:grid;place-items:center;background:linear-gradient(90deg,#10372bc9,#123f36d9),url('assets/menu-forest.svg') center/cover;isolation:isolate;overflow:hidden;font-size:16px;gap:0}
.home-inner{width:min(1080px,100%);height:min(700px,100%);display:grid;grid-template-columns:1.15fr 1fr;gap:6%;align-items:center;position:relative;z-index:2}
.home-stage{height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;min-height:0;min-width:0}
.home-stage .small-cap{font-size:11px;letter-spacing:3px;color:#d8efc2}.home-stage .menu-logo{margin:22px 0 0}
.home-stage .menu-logo span{font-family:Impact,'Arial Black',sans-serif;font-size:clamp(28px,4.4vw,60px);letter-spacing:1px;-webkit-text-stroke:1px #294e3c;text-shadow:0 3px #184332,0 6px #061f28}
.home-stage .menu-logo strong{font-family:Impact,'Arial Black',sans-serif;font-size:clamp(80px,12vw,166px);letter-spacing:2px;line-height:.97;-webkit-text-stroke:4px #70422a;text-shadow:0 7px #c57a2b,0 14px #133d31,0 20px 30px #001f27}
.home-stage .logo-tag{font-size:11px;letter-spacing:3px;margin:20px 0 0}
.cast-theatre{position:relative;height:300px;min-height:140px;max-height:45vh;overflow:hidden;margin-top:20px}
.cast-hole{position:absolute;bottom:10%;height:20%;border-radius:50%;background:radial-gradient(ellipse,#071c1e 40%,#6d4d2d 45%,#d5ae5e 52%,#6bb254 60%,transparent 62%)}.hole-a{left:2%;width:65%}.hole-b{right:-4%;width:52%;bottom:15%}
.cast-brat{position:absolute;height:90%;left:4%;bottom:13%;transform-origin:50% 90%;animation:cast-brat 11s ease-in-out infinite;filter:drop-shadow(3px 7px 2px #001c2444)}
.cast-vex{position:absolute;height:66%;right:0;bottom:20%;transform-origin:50% 100%;animation:cast-vex 13s ease-in-out infinite;filter:drop-shadow(3px 6px 1px #001c2455)}
.cast-hammer{position:absolute;width:23%;left:6%;top:0;transform-origin:70% 80%;animation:cast-hammer 11s ease-in-out infinite}
.speech-bubble{position:absolute;right:5%;top:1%;padding:12px 17px;border-radius:20px 20px 20px 0;background:#fff0bf;color:#4c392a;font-weight:900;font-size:13px;transform:rotate(6deg);box-shadow:0 4px #0a2c2944;animation:bubble-talk 13s ease-in-out infinite}
.home-panel{padding:30px;border:1px solid #e4eab744;border-radius:30px;background:linear-gradient(135deg,#295b48ed,#133e34f5);box-shadow:0 12px 0 #062a2b66,0 30px 70px #001c2444;min-width:0}
.home-panel .topline{font-size:11px;letter-spacing:2px;gap:8px}.home-panel .wallet{font-size:15px;min-height:38px;border-radius:30px;padding:6px 15px;background:#153f30;color:#ffe09c;box-shadow:none;letter-spacing:0}
.home-heading{font-size:clamp(36px,4.7vw,62px);margin:24px 0;text-align:left;color:#fff0ce;transform:rotate(-2deg)}
.home-panel .menu-progress{padding:14px 16px;border-radius:14px}.home-panel .row{font-size:12px}.home-panel .row small{font-size:12px}.home-panel .progress-track{height:7px;margin-top:9px}
.home-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.home-actions button{font-size:12px;min-height:48px;padding:10px;border-radius:13px;box-shadow:0 4px #082b27}.home-actions .primary{grid-column:1/-1;min-height:70px;font-size:25px;border-radius:18px;box-shadow:0 6px #b77925}
.home-panel>.text-button{font-size:10px;min-height:38px;margin-top:13px;width:100%;padding:5px;letter-spacing:.025em}.home-caption{font-size:9px;letter-spacing:1px;text-align:center;color:#b7d3b3;margin:8px 0 0}
.forest-life{position:absolute;inset:0;pointer-events:none;z-index:-1;overflow:hidden}.forest-life i{position:absolute;color:#edffa9;font-size:7px;opacity:.3;animation:leaf-drift calc(8s + var(--i)*.4s) ease-in-out infinite;animation-delay:calc(var(--i)*-.7s)}
.canopy{position:absolute;pointer-events:none;inset:-10%;z-index:-1;background:radial-gradient(ellipse at 0 0,#4a8d5266,transparent 35%),radial-gradient(ellipse at 100% 100%,#adc96522,transparent 35%);animation:canopy-sway 14s ease-in-out infinite}.canopy-front{inset:-20%;animation-duration:19s;animation-direction:reverse;background:radial-gradient(ellipse at 100% 0,#87a64c33,transparent 40%)}
#game-controls{position:fixed;z-index:11;display:flex;gap:7px;justify-content:center}#game-controls button{width:18%;height:100%;min-height:24px;border-radius:10px;border:1px solid #bcd69c55;color:#ffe299;background:#173d38;font-size:clamp(14px,2.3vh,22px);padding:0;box-shadow:0 3px #092e2c}
#game-controls button:hover{background:#326c50}#game-controls button:active{transform:translateY(2px)}
#power-slots{position:fixed;z-index:10;display:flex;gap:4%;font-family:Arial,sans-serif;container-type:inline-size}.power-slot{width:48%;height:100%;display:flex;align-items:center;gap:5%;padding:3%;border:1px solid #b3d59c55;border-radius:12px;background:linear-gradient(120deg,#254c40,#13362f);color:#cce1bb;text-align:left;position:relative;overflow:hidden;box-shadow:0 4px #102d2c}
.power-slot>span:nth-child(2){flex:1;min-width:0}.power-slot b{display:block;font-family:'Arial Black',sans-serif;font-size:2.7cqw;white-space:nowrap;letter-spacing:-.05em}.power-slot small{display:block;font-size:2.1cqw;margin-top:5%;white-space:nowrap}.power-slot kbd{font-size:2.5cqw;margin:0;border:0;padding:0;color:#ffd87b}.power-symbol{font-size:7cqw;line-height:1;min-width:8cqw;text-align:center;color:#e3d5f7}.power-slot.ready{border-color:#ffe08a;box-shadow:0 3px #87622e,0 0 14px #ffe08322}.ready .power-symbol{animation:power-orbit 3s ease-in-out infinite}.power-slot[data-kind=second] .power-symbol{color:#ffaeca;animation-name:heart-beat}.power-slot[data-kind=xray] .power-symbol{color:#b5f4ff}.power-slot[data-kind=magnet] .power-symbol{color:#dbb7ff}.power-slot[data-kind=thunder] .power-symbol{color:#ffe176;animation-name:charge-flicker}
.power-slot.ready:after{content:'';position:absolute;left:-50%;top:-50%;height:200%;width:22%;background:linear-gradient(90deg,transparent,#fff3,transparent);transform:rotate(20deg);animation:button-shine 5s infinite;pointer-events:none}
#countdown{position:fixed;z-index:22;display:grid;place-items:center;background:#102c3280;backdrop-filter:blur(2px);container-type:inline-size;text-align:center;color:var(--paper);pointer-events:none}
.count-card{width:90%}.count-card small{font-weight:900;font-size:4cqw;letter-spacing:1cqw}.count-card strong{display:block;font-family:Impact,'Arial Black',sans-serif;font-size:30cqw;line-height:1.3;color:#ffd25b;-webkit-text-stroke:.6cqw #74462a;paint-order:stroke fill;text-shadow:0 2cqw #a2642e,0 4cqw #0b2b30;transform-origin:center}.count-card p{font-size:3cqw;letter-spacing:.5cqw}
.pause-screen{justify-content:center;gap:4cqw;text-align:center;background:linear-gradient(#0b2d32f0,#1c5948f0),url('assets/menu-forest.svg') center/cover}.pause-screen .page-title{font-size:12cqw}.pause-emblem{font-size:15cqw;color:#b7dda8}.pause-screen .result-actions{margin-top:0}
.playground-screen{gap:3cqw;justify-content:center}.sandbox-form{background:#123b32ed;border:1px solid #b4d68b55;border-radius:4cqw;padding:4cqw;text-align:left}.sandbox-form>label{display:flex;justify-content:space-between;align-items:center;gap:3cqw;margin-bottom:3cqw;font-weight:bold;font-size:2.8cqw}.sandbox-form select{max-width:72%;min-height:9cqw;border-radius:2cqw;border:1px solid #b6d09355;background:#12362e;color:#fff0c7;padding:1cqw;font-size:2.8cqw}.sandbox-form p{font-size:2.8cqw}.demo-powers{display:grid;grid-template-columns:1fr 1fr;gap:3cqw;font-size:2.6cqw}.demo-powers label{display:flex;align-items:center;gap:1cqw}.demo-powers input{accent-color:#ffd05b}
.power-card{grid-template-columns:50px 1fr auto;align-items:center;gap:12px}.power-card p{grid-column:1/-1}.power-card h3{margin:0}.power-medallion{height:48px;width:48px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 35% 25%,#79826d,#193f35);border:1px solid #dddf9c66;color:#ffe195;font-size:30px}.available .power-medallion{animation:power-orbit 4s ease-in-out infinite}.power-card[data-kind=second] .power-medallion{color:#ffb5cd}.power-card[data-kind=xray] .power-medallion{color:#bcf3ff}.power-card[data-kind=magnet] .power-medallion{color:#ddbbff}
.result-screen{gap:2cqw;padding:5cqw}.result-screen .result-title{font-size:8.5cqw;animation:title-land .6s cubic-bezier(.2,1.3,.4,1) both}.result-screen .result-actor{height:23cqw}.result-screen .result-stars{font-size:10cqw;margin:0}.result-screen .reward-box{padding:3cqw;font-size:2.6cqw;position:relative}.reward-box strong{font-size:4.5cqw}.wallet-total{color:#ffe39d;font-weight:bold;margin:1cqw 0 0}.result-screen .result-meta{font-size:2.5cqw;line-height:1.6}.result-screen .text-button{min-height:6cqw;padding:1cqw;font-size:2.4cqw}.result-screen.world .coming-soon{padding:2cqw;margin:0;font-size:2.3cqw;animation:world-reveal .8s ease-out both;animation-delay:.3s}.result-screen.world .coming-soon strong{font-size:4cqw}.result-screen.world .reward-box p{margin:1cqw 0}.result-screen.world .result-title{font-size:7cqw}
.reward-heading{display:flex;align-items:center;justify-content:center;gap:2cqw;min-height:7cqw;margin-bottom:1cqw}.reward-heading strong{min-width:0;line-height:1.3;overflow-wrap:anywhere}
.coin-flight{position:relative;flex:0 0 7cqw;width:7cqw;height:7cqw;overflow:hidden;contain:paint;isolation:isolate;pointer-events:none}.coin-flight i{position:absolute;left:1cqw;top:1cqw;color:#ffdf72;font-size:4cqw;line-height:1;font-style:normal;animation:coin-collect 1.5s ease-in-out both}.coin-flight i:nth-child(2){left:2cqw;animation-delay:.15s}.coin-flight i:nth-child(3){left:3cqw;animation-delay:.3s}
.screen-static .coin-flight,body.reduced .coin-flight{display:none}
.chest-opening{position:relative;margin:1cqw auto 0;display:flex;align-items:center;justify-content:center;gap:2cqw;color:#ffe197}.chest-opening b{font-size:7cqw;animation:chest-hop 1s ease-in-out both}.chest-opening span{font-size:6cqw;animation:chest-spark 1.2s ease-out both}.chest-opening small{font-size:2.2cqw}
.cinema-caption{width:95%;text-align:center;background:linear-gradient(transparent,#143d3380,transparent);padding:10cqw 0}.cinema-caption small{font-size:3cqw;letter-spacing:1cqw}.cinema-caption strong{display:block;font-size:17cqw;color:#ffdb79}.cinema-caption button{background:#163c33;color:#fff0c8;border:1px solid #e2d68b55;border-radius:2cqw;min-height:10cqw;margin-top:12cqw;padding:2cqw;font-size:3cqw;pointer-events:auto}
.chest-art{position:relative;width:20cqw;height:15cqw}.chest-art>img{position:absolute;width:100%;left:0;bottom:0}.chest-art>.chest-lid{bottom:5.8cqw;transform-origin:75% 80%;animation:lid-open 1.3s .2s cubic-bezier(.2,.9,.3,1) both}.chest-art>span{position:absolute;left:40%;bottom:70%;animation:chest-spark 1.3s .5s both}.trophy-reward{display:flex;align-items:center;justify-content:center;gap:3cqw}.trophy-reward img{height:13cqw;animation:trophy-shine 4s ease-in-out infinite}.trophy-reward p{font-size:2.4cqw}.result-screen.world .chest-art{width:15cqw;height:11cqw}.result-screen.world .chest-art>.chest-lid{bottom:4.2cqw}
@keyframes lid-open{0%,20%{transform:translateY(1cqw) rotate(0)}35%{transform:translateY(0) rotate(-5deg)}100%{transform:translateY(-4cqw) rotate(-27deg)}}
@keyframes trophy-shine{50%{filter:brightness(1.2);transform:rotate(3deg)}}
.v4-screen button.map-node,.v4-screen button.map-node:hover,.v4-screen button.map-node:active,.v4-screen button.map-node:focus,.v4-screen button.map-node:focus-visible,.v4-screen button.map-node:disabled{transform:translate(-50%,-50%);animation:none;transition:none;filter:none;box-shadow:0 1cqw 0 #0d2828;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.map-node .node-stars{pointer-events:none}.map-scroll{scroll-behavior:auto}
.map-screen .page-title{font-size:7cqw}.intro-screen img{animation:boss-arrival 1.1s cubic-bezier(.2,1.2,.3,1) both}.intro-screen .page-title{animation:title-land .7s .2s both;font-size:13cqw}
.quick-screen{gap:2.5cqw;padding:5cqw}.quick-screen img{height:24cqw}.quick-screen .guide-card{padding:3cqw;font-size:3cqw;line-height:1.4}.quick-screen .guide-card p{margin:2cqw 0}.intro-screen{gap:3.5cqw}.intro-screen img{height:43cqw}.result-screen.world .result-actor{height:16cqw}.result-screen.world .result-stars{font-size:8cqw}
.screen-static *,body.reduced *,body.reduced *:before,body.reduced *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@keyframes cast-brat{0%,100%{transform:translateY(8%) rotate(-7deg)}15%,25%{transform:translateY(0) rotate(3deg)}30%{transform:translateY(3%) rotate(-13deg)}45%{transform:translateY(105%) rotate(10deg)}55%{transform:translateY(105%) rotate(-6deg)}65%,80%{transform:translateY(-3%) rotate(5deg)}90%{transform:translateY(5%) rotate(-5deg)}}
@keyframes cast-vex{0%,10%,100%{transform:translateY(110%) rotate(8deg)}22%,36%{transform:translateY(0) rotate(-5deg)}48%{transform:translateY(10%) rotate(13deg)}60%{transform:translateY(-3%) rotate(-4deg)}80%{transform:translateY(3%) rotate(8deg)}92%{transform:translateY(110%) rotate(18deg)}}
@keyframes cast-hammer{0%,19%,100%{transform:translateY(-150%) rotate(-40deg);opacity:0}25%{opacity:1;transform:translateY(-10%) rotate(-35deg)}29%{transform:translateY(35%) rotate(40deg);opacity:1}34%{transform:translateY(-150%) rotate(-30deg);opacity:0}}
@keyframes bubble-talk{0%,15%,90%,100%{opacity:0;transform:scale(.4) rotate(10deg)}22%,80%{opacity:1;transform:scale(1) rotate(4deg)}}
@keyframes canopy-sway{50%{transform:translateX(1.5%) rotate(1deg)}}
@keyframes leaf-drift{0%,100%{transform:translate(0,0) rotate(0);opacity:.1}50%{transform:translate(25px,-35px) rotate(130deg);opacity:.7}}
@keyframes play-glow{50%{filter:brightness(1.08);box-shadow:0 6px #b77925,0 0 24px #f5d47a33}}
@keyframes button-shine{0%,65%{left:-55%}85%,100%{left:140%}}
@keyframes power-orbit{0%,100%{transform:rotate(-7deg) translateY(0)}50%{transform:rotate(8deg) translateY(-3px)}}
@keyframes heart-beat{0%,35%,70%,100%{transform:scale(1)}45%,60%{transform:scale(1.18)}}
@keyframes charge-flicker{0%,85%,100%{filter:brightness(1);transform:rotate(-8deg)}88%,94%{filter:brightness(1.8);transform:rotate(5deg)}}
@keyframes title-land{from{opacity:0;transform:translateY(-12px) scale(1.2) rotate(-4deg)}to{opacity:1;transform:none}}
@keyframes coin-collect{0%{transform:translateY(3cqw) scale(.4);opacity:0}25%{opacity:1;transform:translateY(0) scale(1)}100%{transform:translateY(-4cqw) scale(.6);opacity:0}}
@keyframes chest-hop{0%{transform:translateY(8px) rotate(-8deg) scale(.5)}35%{transform:translateY(-6px) rotate(7deg) scale(1.2)}65%{transform:rotate(-5deg)}100%{transform:none}}
@keyframes chest-spark{from{transform:scale(.2) rotate(0);opacity:0}50%{opacity:1}to{transform:scale(1.15) rotate(150deg);opacity:1}}
@keyframes world-reveal{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
.reset-progress-section{border-top:1px solid #c8e3b533;margin-top:24px;padding-top:12px}.reset-progress-section h3{color:#ffd78b}.reset-progress-section button,.danger-button{background:#8d3435;color:#fff3d3;border:1px solid #e48c6d}.reset-actions{display:flex;flex-wrap:wrap;gap:12px}.reset-actions button{flex:1;min-width:140px}[data-reset-error]{color:#ffd49b}
@keyframes boss-arrival{0%{opacity:0;transform:scale(1.6) translateY(-12cqw) rotate(-12deg);filter:brightness(3)}65%{opacity:1;transform:scale(.95) rotate(4deg)}100%{transform:none;filter:none}}
@media(max-width:700px){main{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.cabinet{--arena-h:min(calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)),calc((100vw - env(safe-area-inset-left) - env(safe-area-inset-right))*16/9));border:0;border-radius:0}.premium-home{padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background-size:auto 100%}.home-inner{width:min(430px,100%);height:100%;max-height:920px;display:flex;flex-direction:column;gap:0;justify-content:center}.home-stage{height:43%;width:100%;flex-shrink:1;min-height:120px;justify-content:flex-start}.home-stage .small-cap{font-size:8px;letter-spacing:2px}.home-stage .menu-logo{margin:12px 0 0}.home-stage .menu-logo span{font-size:clamp(24px,7vw,38px)}.home-stage .menu-logo strong{font-size:clamp(65px,23vw,112px);-webkit-text-stroke:2px #70422a;text-shadow:0 4px #c57a2b,0 8px #133d31}.home-stage .logo-tag{font-size:8px;letter-spacing:2px;margin-top:10px}.cast-theatre{width:100%;height:auto;flex:1;margin-top:8px;min-height:70px;max-height:200px}.speech-bubble{font-size:10px;padding:8px 11px;top:3%;right:0}.home-panel{width:100%;padding:16px 18px;border-radius:22px;flex-shrink:0}.home-heading{display:none}.home-panel .topline{font-size:9px}.home-panel .wallet{font-size:13px;min-height:30px;padding:4px 12px}.home-panel .menu-progress{margin-top:10px;padding:10px 12px}.home-panel .row,.home-panel .row small{font-size:10px}.home-actions{margin-top:12px;gap:9px}.home-actions button{min-height:42px;font-size:10px}.home-actions .primary{min-height:54px;font-size:23px}.home-panel>.text-button{margin-top:9px;min-height:28px;font-size:9px}.home-caption{font-size:7px;margin-top:5px}.power-card{grid-template-columns:38px 1fr auto;gap:7px}.power-medallion{width:36px;height:36px;font-size:25px}.power-card button{font-size:10px;padding:8px;min-height:36px}dialog h2{font-size:21px}}
@media(max-height:620px) and (max-width:700px) and (orientation:portrait){.home-stage{height:34%}.home-stage .small-cap,.home-stage .logo-tag{display:none}.home-stage .menu-logo{margin:0}.home-stage .menu-logo span{font-size:23px}.home-stage .menu-logo strong{font-size:70px}.home-panel{padding:10px 14px}.home-actions button{min-height:36px}.home-actions .primary{min-height:44px}.home-panel .menu-progress{margin-top:5px}.home-caption{display:none}}
@media(max-height:500px) and (orientation:landscape){.premium-home{padding:12px}.home-inner{height:100%;display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:860px;width:100%}.home-stage{height:100%}.home-stage .small-cap,.home-stage .logo-tag{display:none}.home-stage .menu-logo span{font-size:28px}.home-stage .menu-logo strong{font-size:90px}.home-stage .menu-logo{margin:0}.cast-theatre{max-height:160px;margin-top:15px}.home-panel{padding:12px}.home-heading{display:none}.home-actions{gap:7px;margin-top:10px}.home-actions button{min-height:34px;font-size:10px}.home-actions .primary{min-height:46px;font-size:20px}.home-panel .menu-progress{padding:7px 10px;margin-top:8px}.home-panel>.text-button{min-height:24px;margin-top:7px;font-size:8px}.home-caption{font-size:7px}.home-panel .topline{font-size:9px}.home-panel .wallet{min-height:28px;padding:5px 9px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.coin-flight{display:none}}
