:root{--ink:#10221e;--panel:#19342c;--paper:#f3f2e7;--lime:#d9f56b;--muted:#b4c4b8;--line:#ffffff20;--coral:#ff9876;color-scheme:dark}*{box-sizing:border-box}body{background:var(--ink);font-family:Tahoma,Arial,sans-serif}button,input,select{font:inherit}button{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:3px solid var(--lime)!important;outline-offset:4px}button:disabled{cursor:not-allowed!important;opacity:.45!important}button{transition:transform .18s,background .18s,border-color .18s!important}button:active{transform:scale(.98)}#menu3dCanvas{display:none!important}#menu{padding:0!important;overflow-y:auto;background:var(--ink)!important;justify-content:flex-start!important;isolation:isolate}#menuBg{background:radial-gradient(ellipse at 5% 70%,#294b3c88,transparent 55%)!important;opacity:1!important;animation:none!important}#menuBg:after{display:none}.home-top,.home-bottom{position:relative;width:100%;max-width:1440px;margin:auto;padding:26px 5%;display:flex;justify-content:space-between;align-items:center;gap:20px;z-index:2}.home-top{border-bottom:1px solid var(--line);margin-top:0;min-height:92px}.wordmark{color:var(--paper);text-decoration:none;display:flex;align-items:center;gap:12px;font-size:24px;font-weight:700}.wordmark small{font-size:10px;letter-spacing:2px;color:var(--muted);direction:ltr;border-right:1px solid var(--line);padding-right:12px;margin-right:8px}.mark{width:42px;height:42px;display:grid;place-content:center;border:1px solid var(--lime);border-radius:12px;color:var(--lime);font-size:26px}.top-actions{display:flex;gap:10px}.top-actions button{background:none;border:1px solid var(--line);color:var(--paper);padding:10px 14px;border-radius:9px;font-size:12px;cursor:pointer}.top-actions button span{margin-right:12px;color:var(--lime)}.home-layout{position:relative;z-index:1;width:min(1320px,90%);margin:auto;display:grid;grid-template-columns:1.05fr 1fr;gap:6%;align-items:center;padding:64px 0 55px;min-height:650px}#menuHeader{position:relative!important;text-align:right!important;margin:0!important;padding:0!important}.eyebrow{font-size:12px;color:var(--lime);letter-spacing:.5px;display:flex;gap:10px;align-items:center;margin-bottom:25px}.eyebrow i,.live-dot{height:7px;width:7px;border-radius:50%;background:var(--lime);display:inline-block;box-shadow:0 0 0 5px #dbf96d12}#title{font-size:clamp(38px,4.4vw,72px)!important;line-height:1.65!important;letter-spacing:-3px;color:var(--paper)!important;text-shadow:none!important;animation:none!important;margin:0 0 18px!important;white-space:normal}#title em{color:var(--lime);font-style:normal}#menuHeader .sub{font-size:15px!important;line-height:2.1!important;font-style:normal!important;color:var(--muted)!important;margin:0!important}.hero-tags{display:flex;gap:10px;flex-wrap:wrap;margin:23px 0 28px}.hero-tags span{font-size:11px;border:1px solid var(--line);padding:7px 10px;border-radius:30px;color:var(--muted)}#menuMain{position:static!important;transform:none!important;display:grid!important;grid-template-columns:1fr 1fr;gap:10px;width:100%!important;max-width:520px;margin:0!important}#playBtnMain,#homeOnline{font-size:16px!important;border-radius:10px!important;padding:18px 20px!important;min-width:0!important;min-height:62px!important;margin:0!important;animation:none!important;box-shadow:none!important;display:flex;align-items:center;justify-content:space-between;cursor:pointer}#playBtnMain{background:var(--lime)!important;color:var(--ink)!important;border:1px solid var(--lime)!important}#homeOnline{background:var(--panel);color:var(--paper);border:1px solid #ffffff30}#playBtnMain span,#homeOnline span{font-size:24px}#menuMain .menuBtnRow{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 0!important}#menuMain .menuSmallBtn{min-width:0!important;width:auto!important;border:0!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important;color:var(--muted)!important;font-size:11px!important;padding:9px 4px!important;border-radius:6px!important;font-weight:normal}#menuMain .menuSmallBtn:hover{background:#ffffff0d!important;color:var(--lime)!important}#menuHeader .totalScore{display:flex!important;align-items:center;gap:12px;margin-top:28px!important;border:0!important;border-top:1px solid var(--line)!important;padding:18px 0 0!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-size:11px;color:var(--muted)!important}#totalScoreDisplay{font-size:24px;color:var(--paper);font-weight:700}.totalScore small{margin-right:auto;font-size:10px;color:#91a69a}.hero-stage{height:520px;position:relative;border:1px solid #a3bc9f40;border-radius:18px;background:linear-gradient(135deg,#365a42,#234135 55%,#172e27);overflow:hidden;direction:ltr;box-shadow:0 35px 90px #0003}.stage-grid{position:absolute;inset:0;background-image:linear-gradient(#c0d8a40c 1px,transparent 1px),linear-gradient(90deg,#c0d8a40c 1px,transparent 1px);background-size:35px 35px;mask-image:linear-gradient(black,transparent)}.stage-tag{position:absolute;top:24px;right:24px;color:#d3e4c8a8;font-size:10px}.stage-orbit{width:470px;height:470px;border:1px solid #dbf96d30;border-radius:50%;position:absolute;top:90px;left:0;box-shadow:0 0 0 45px #dbf96d04,0 0 0 90px #dbf96d03}.stage-doors{position:absolute;left:34%;top:70px;width:125px;height:250px;border:10px solid #8cab75;border-bottom:0;transform:perspective(500px) rotateY(15deg);background:linear-gradient(100deg,#d9f56b55,#d9f56b08);box-shadow:0 0 70px #dbf96d1c}.stage-doors span{display:block;text-align:center;background:var(--lime);color:var(--ink);font:700 13px monospace;padding:3px;position:absolute;top:-28px;left:25px}.hero-person{position:absolute;object-fit:contain;object-position:bottom;filter:drop-shadow(9px 20px 8px #0005);height:auto;max-width:none;pointer-events:none}.hero-main{width:59%;height:370px;bottom:47px;left:22%;z-index:3}.hero-back{width:39%;height:280px;bottom:78px;left:-2%;z-index:2;transform:rotate(-7deg)}.hero-side{width:35%;height:278px;bottom:79px;right:-2%;z-index:2;transform:rotate(6deg)}.stage-caption{position:absolute;bottom:0;left:0;right:0;padding:22px;display:flex;align-items:center;gap:15px;background:#0b201ce8;backdrop-filter:blur(10px);z-index:4;direction:rtl;border-top:1px solid #c1dbaf33}.stage-caption b{font-size:15px;color:var(--paper);display:block}.stage-caption small{display:block;margin-top:7px;font-size:10px;color:var(--muted)}.stage-arrow{margin-right:auto;font-size:28px;color:var(--lime)}.stage-sticker{position:absolute;top:80px;left:18px;transform:rotate(-12deg);background:var(--coral);color:#36231a;padding:15px 12px;font-size:20px;font-weight:700;z-index:4;box-shadow:5px 5px 0 #132a24}.stage-sticker small{font:7px monospace;letter-spacing:1px}.home-bottom{border-top:1px solid var(--line);color:#a1b1a5;font-size:10px;margin-bottom:0;padding-top:20px;padding-bottom:20px}.home-bottom span:last-child{direction:ltr;letter-spacing:1px}#credit,#telegramBtn,#lang-switch,#redeemBtn,#version{display:none!important}#loading{background:var(--ink)!important}#loading h2{color:var(--lime);text-shadow:none;animation:none;font-size:28px}#loading .fill{background:var(--lime)}#startGameBtn{animation:none;background:var(--lime);color:var(--ink);box-shadow:none;border-radius:10px}#loading .tip{color:var(--muted);line-height:1.9}#modeSelect{background:var(--ink)!important;padding:70px 5% 40px!important;align-content:center;gap:16px;overflow-y:auto}#modeSelect[style*="grid"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,380px));justify-content:center}#modeSelect>h2,#modeSelect>.eyebrow,#globalMapSelect{grid-column:1/-1;text-align:center;justify-content:center;margin:0 0 10px!important}#modeSelect h2{color:var(--paper);text-shadow:none!important;font-size:30px}.modeBtn{margin:0!important;width:100%!important;max-width:none!important;min-height:160px;text-align:right;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:14px;padding:26px!important;box-shadow:none!important;transition:transform .2s,border-color .2s!important}.modeBtn:hover{transform:translateY(-3px);border-color:var(--lime)!important;box-shadow:0 12px 25px #0002!important}.modeBtn h3{color:var(--lime)!important;font-size:22px!important;text-shadow:none!important;margin-bottom:13px}.modeBtn p{color:var(--muted)!important;font-size:12px!important;line-height:1.9!important}#modeBackBtn{top:20px;left:5%;background:var(--panel);border:1px solid var(--line);color:var(--paper);border-radius:8px;padding:10px 18px}#charSelect,#shop,#stats,#leaderboard,#weeklyQuests,#slotMachine,#petSelect,#multiplayerMenu,#multiLobby{background:var(--ink)!important;color:var(--paper)!important}#charSelect h2,#shop h2,#stats h2,#leaderboard h2,#weeklyQuests h2,#petSelect h2,#multiplayerMenu h2,#multiLobby h2{color:var(--paper)!important;text-shadow:none!important}#charGrid{gap:12px!important}.charCard{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:none!important;overflow:hidden}.charCard.selected{border-color:var(--lime)!important;box-shadow:0 0 0 2px var(--lime)!important}.charCard img{object-fit:contain!important;background:linear-gradient(140deg,#37503b,#142c25)!important}.charCard h3{color:var(--paper)!important}.charCard .ability{color:var(--lime)!important}.charCard.locked{filter:grayscale(.7);opacity:.65}.menu-btn,.multiBtn{background:var(--lime)!important;color:var(--ink)!important;border:1px solid transparent!important;border-radius:9px!important;text-shadow:none!important;box-shadow:none!important;min-height:44px}.multiBtn.secondary{background:#234035!important;color:var(--paper)!important;border-color:var(--line)!important}.multiPanel,.multiModalBox{border:1px solid var(--line)!important;background:var(--panel)!important;box-shadow:0 25px 80px #0004!important;border-radius:18px!important}.multiPanel{max-width:860px!important;padding:25px!important}.multiPanel h2{font-size:28px!important;margin:18px 0!important}.multiPanel .muted{font-size:12px;line-height:2;color:var(--muted)}.multiChoice{background:#10271f!important;border:1px solid var(--line)!important;color:var(--paper)!important;border-radius:10px!important;box-shadow:none!important;min-height:48px}.multiChoice.active{border-color:var(--lime)!important;background:#34482a!important;color:var(--lime)!important}.multiChoice small{color:var(--muted)!important;line-height:1.8!important}.multiInput,input[type=text],#multiChatInput{background:#10271f!important;color:var(--paper)!important;border:1px solid #577563!important;border-radius:9px!important;padding:13px!important;font-size:14px!important}.multiPlayer,.multiRoom{background:#10271f!important;border-color:var(--line)!important;border-radius:10px!important}.multiStatus{line-height:1.9;min-height:32px}.multiRule,.multiBadge{background:#10271f!important;border-color:var(--line)!important;color:var(--muted)!important}#multiServerSettingsBtn{font-size:10px!important;opacity:.7;padding:7px!important;min-height:30px}#hud{top:max(16px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));display:none;gap:6px;max-width:calc(100% - 120px)}#hud.active{display:flex;flex-wrap:wrap}.hud-item{background:#10221ee6!important;border:1px solid #a4bf9c40!important;border-radius:8px!important;font-size:12px!important;padding:8px 11px!important;backdrop-filter:none!important}#stamina-fill,.miniStaminaTrack i{background:var(--lime)!important}#abilityBtn{background:var(--panel)!important;border-color:var(--lime)!important;box-shadow:none!important;color:var(--paper)!important}#pauseBtn,#camBtn{background:#10221ee6!important;border:1px solid var(--line)!important;border-radius:10px!important;width:44px!important;height:44px!important}#pauseMenu{background:#0b1b17ed!important;backdrop-filter:blur(10px);overflow-y:auto;gap:6px}#pauseMenu h2{color:var(--paper);text-shadow:none;font-size:32px;margin-bottom:14px}#pauseMenu .row{font-size:13px;justify-content:space-between;width:min(330px,90vw)}#pauseMenu .menu-btn{width:min(330px,90vw)}#unstuckBtn{display:none!important}#orientationHint,#multiIntroBox,#achievePopup{visibility:hidden}#orientationHint.show,#multiIntroBox.show,#achievePopup.show{visibility:visible}#gameOver{background:#10221ef2!important}#gameOver h2{color:var(--lime)!important;text-shadow:none!important}#gameOver .stats{line-height:2}#joystick{background:#10221e80!important;border:2px solid #d9f56b66!important;width:112px!important;height:112px!important;bottom:max(28px,env(safe-area-inset-bottom))!important;left:max(24px,env(safe-area-inset-left))!important}#stick{background:#d9f56bbf!important;box-shadow:none!important}#runBtn,#shootBtn,#rewindBtn{background:#10221ed9!important;border:2px solid #d9f56b80!important;box-shadow:none!important;min-height:54px;min-width:54px}#subtitle{font-size:15px!important;background:#10221ee6!important;border-radius:10px!important;line-height:1.9!important;padding:12px 20px!important;text-shadow:none!important;max-width:80vw}#cutsceneSkipBtn{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:9px!important;padding:12px 20px!important}#tutorial.helpCenter{background:#10221ef5!important}#tutorial.helpCenter .box{background:var(--panel)!important;border:1px solid var(--line)!important;box-shadow:none!important}.helpTab.active{background:var(--lime)!important;color:var(--ink)!important}.helpTab{border-color:var(--line)!important}#multiEventBanner{font-size:24px!important;background:#10221eec!important;border:1px solid var(--lime)!important;text-shadow:none!important;box-shadow:0 12px 50px #0004!important}.reborn-dialog{width:min(460px,92vw);margin:auto;border:1px solid #718b6e;background:var(--panel);color:var(--paper);border-radius:20px;padding:30px;max-height:90dvh;overflow-y:auto}.reborn-dialog::backdrop{background:#06130edb;backdrop-filter:blur(6px)}.reborn-dialog h2{font-size:26px;margin-bottom:24px}.reborn-dialog .eyebrow{margin-bottom:12px}.dialog-close{float:left;border:0;background:none;color:var(--muted);font-size:28px;cursor:pointer}.reborn-dialog label{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;margin:20px 0}.reborn-dialog select{max-width:210px;padding:10px;border:1px solid var(--line);background:var(--ink);color:var(--paper);border-radius:8px;font-size:11px}.reborn-dialog input[type=range]{width:50%;accent-color:var(--lime)}.reborn-dialog input[type=checkbox]{accent-color:var(--lime);width:20px;height:20px}.soft-button{display:block!important;width:100%;padding:12px;background:#10271f;color:var(--paper);border:1px solid #ffffff30;border-radius:8px;margin:10px 0!important;font-size:12px;text-align:center;cursor:pointer}.file-label{justify-content:center!important}.settings-note{font-size:10px;line-height:2;color:var(--muted);margin-top:18px}#rebornToast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:20000;background:var(--lime);color:var(--ink);font-size:12px;line-height:1.8;border-radius:10px;padding:12px 20px;max-width:90%;transition:opacity .2s,transform .2s;box-shadow:0 6px 30px #0005}#rebornToast.visible{opacity:1;transform:translate(-50%,0)}#fpsBadge{position:fixed;top:74px;right:16px;z-index:120;background:#10221edd;color:var(--lime);font:11px monospace;padding:6px 9px;border-radius:6px;direction:ltr}#firstRunHint{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#10221edd;padding:12px 20px;color:var(--paper);font-size:12px;z-index:60;border-radius:10px;max-width:90%;text-align:center;line-height:2;pointer-events:none}.reduce-motion *{scroll-behavior:auto}.reduce-motion #drugOverlay,.reduce-motion #weddingOverlay,.reduce-motion #bossAlarm,.reduce-motion #rageOverlay{display:none!important}.reduce-motion *{animation:none!important;transition:none!important}
@media(min-width:1600px){.home-layout{min-height:740px}.hero-stage{height:580px}.hero-main{height:410px}.hero-back,.hero-side{height:320px}}
@media(max-width:900px){.home-layout{gap:30px;width:92%;padding:40px 0;min-height:580px}.hero-stage{height:430px}#title{font-size:42px!important;letter-spacing:-2px}.hero-main{height:290px}.hero-side,.hero-back{height:210px}#menuMain{grid-template-columns:1fr}#playBtnMain,#homeOnline{min-height:50px!important;padding:12px 16px!important}.hero-tags{gap:6px}.hero-tags span{font-size:9px}.home-top{padding:18px 4%}.stage-sticker{font-size:17px;left:9px;top:65px}.wordmark small{display:none}}
@media(max-width:600px){.home-layout{display:flex;flex-direction:column-reverse;gap:25px;padding:22px 0;width:90%;min-height:0}.hero-stage{height:245px;width:100%;border-radius:14px}.hero-main{height:220px;bottom:12px;left:23%;width:52%}.hero-back,.hero-side{height:160px;bottom:28px}.stage-caption{display:none}.stage-doors{height:160px;top:49px;width:90px}.stage-tag{font-size:8px;top:14px;right:14px}.stage-sticker{top:50px;font-size:15px;padding:9px}.stage-orbit{width:310px;height:310px;top:25px;left:20%}#menuHeader{width:100%}#title{font-size:37px!important;line-height:1.55!important;margin-bottom:12px!important}#title br{display:none}#title em{display:block}.eyebrow{font-size:10px;margin-bottom:12px}#menuHeader .sub{font-size:12px!important;line-height:1.9!important}.hero-tags{margin:16px 0}#menuMain{grid-template-columns:1fr 1fr;max-width:none}#playBtnMain,#homeOnline{font-size:12px!important;padding:12px!important}#menuMain .menuBtnRow{margin-top:4px!important}#menuHeader .totalScore{margin-top:14px!important}.home-top{min-height:65px;padding:12px 5%;gap:8px}.wordmark{font-size:19px;gap:7px}.mark{width:32px;height:32px;font-size:21px}.top-actions{gap:6px}.top-actions button{font-size:9px;padding:8px}.top-actions button span{margin-right:4px}.home-bottom{padding:15px 5%;font-size:8px;gap:6px}.home-bottom span:first-child{max-width:100px}.home-bottom span:nth-child(2){display:none}#modeSelect[style*="grid"]{grid-template-columns:1fr!important;align-content:start;padding-top:75px!important}#modeSelect h2{font-size:24px}.modeBtn{min-height:135px;padding:20px!important}.modeBtn h3{font-size:20px!important}.multiPanel{padding:16px!important}.multiChoiceRow{gap:8px!important}.multiChoice{font-size:13px!important;padding:12px!important}.multiPanel h2{font-size:23px!important}.multiPanel .multiRules{grid-template-columns:1fr!important}#hud .hud-item{font-size:10px!important;padding:6px 8px!important}.reborn-dialog{padding:23px}.reborn-dialog select{max-width:170px}#firstRunHint{bottom:155px;font-size:10px}#multiIntroBox{max-height:94dvh;overflow:auto}}
@media(max-height:500px) and (min-width:600px){.home-layout{min-height:0;padding:25px 0;grid-template-columns:1.2fr 1fr}.home-top{min-height:55px;padding:10px 5%}.hero-stage{height:310px}#title{font-size:34px!important;line-height:1.5!important}.hero-main{height:220px}.hero-side,.hero-back{height:170px}.hero-tags{margin:12px 0}.home-bottom{padding:12px 5%}.hero-stage .stage-caption{padding:14px}.hero-stage .stage-sticker{top:40px}#menuMain{grid-template-columns:1fr 1fr}.multiPanel{margin:8px auto!important}.reborn-dialog{max-height:95dvh}.modeBtn{min-height:130px!important}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Gameplay transitions remain short; no blurred rendering or artificial fog overlays. */
#worldTransition:not([hidden]){position:fixed;inset:0;background:#101f1c;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#ecf2df;font-family:Tahoma}
#worldTransition strong{font-size:clamp(24px,5vw,48px)}#worldTransition span{color:#d8f267;letter-spacing:3px}
body.cinematic:before,body.cinematic:after{content:'';position:fixed;left:0;right:0;height:6vh;background:#080c0a;z-index:85;pointer-events:none}body.cinematic:before{top:0}body.cinematic:after{bottom:0}
body.cinematic #cutsceneSkipBtn{z-index:110}body.cinematic #subtitle{bottom:9vh!important}
