
/* V5.2 modern children's adventure interface, safe for notched landscape phones */
:root{--accent:#ffe184;--mint:#8df0dd;--coral:#ff99ba}
html{scroll-behavior:smooth}
button{font-family:inherit;cursor:pointer}
button:focus-visible,a:focus-visible{outline:4px solid #f9e276;outline-offset:3px}
.home-hero{box-shadow:0 24px 68px #07182f8a,inset 0 0 0 2px #ffffff31;border:1px solid #ffffff60;background-size:cover;min-height:365px}
.home-hero .hero-content{filter:drop-shadow(0 2px 7px #15263b99)}
.home-hero .display{letter-spacing:-.035em;text-shadow:0 5px 2px #14345d,0 0 30px #6be7d842}
.stage-card,.dash-card,.gear-card,.profile-panel,.award-card,.character-option{transition:transform .16s ease,box-shadow .18s ease,border-color .18s ease}
@media(hover:hover){.stage-card:hover,.dash-card:hover,.gear-card:hover,.character-option:hover{transform:translateY(-4px);box-shadow:0 15px 26px #081e416b}}
.dash-card{box-shadow:0 7px 26px #101d3a30, inset 0 1px 0 #ffffff29}
.v52-new{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:12px;margin:20px 0 22px}
.v52-new .feature-ticket{position:relative;overflow:hidden;border-radius:20px;padding:18px 20px;border:2px solid #ffffd869;background:radial-gradient(circle at 95% -15%,#ffbfc9 0%,transparent 36%),linear-gradient(135deg,#246f92,#2e5e8b 52%,#3f4592);color:#fff8e8;display:flex;gap:13px;align-items:center;min-height:110px;text-align:left;box-shadow:0 12px 23px #102c4b66}
.v52-new .feature-ticket:nth-child(2){background:radial-gradient(circle at 96% 0%,#fff4b276,transparent 45%),linear-gradient(135deg,#437c92,#527eab 53%,#b1689f)}
.v52-new .feature-ticket:hover{filter:brightness(1.08)}
.v52-new .feature-ticket strong{font-size:18px;font-weight:900;display:block}
.v52-new .feature-ticket small{color:#d5f8ef;font-size:12px;line-height:1.42;display:block;margin-top:5px}
.v52-new .feature-icon{font-size:43px;filter:drop-shadow(0 6px 4px #1b336a86);flex:0 0 auto}
.v52-new .feature-arrow{font-size:22px;margin-left:auto}
.way-button{appearance:none;touch-action:manipulation;display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:10px;background:#fbd98b;color:#24466b;border:2px solid #fffbce;font-size:10px;font-weight:900;white-space:nowrap;margin-top:7px;min-height:32px;box-shadow:0 3px 0 #122e56;pointer-events:auto;line-height:1.15}
.way-button:active{transform:translateY(2px);box-shadow:none}
.game-viewport{isolation:isolate}
.game-viewport #game-canvas{touch-action:none}
@media(max-width:650px){.v52-new{grid-template-columns:1fr}.v52-new .feature-ticket{min-height:90px;padding:13px}.v52-new .feature-ticket strong{font-size:17px}}
@media(orientation:landscape) and (max-height:850px){
 body.game-playing .mission-hud{display:flex;flex-direction:column;align-items:flex-start;max-width:min(41vw,390px);padding:5px 7px;gap:3px}
 body.game-playing .way-button{font-size:clamp(9px,1.3vw,11px);padding:5px 8px;min-height:30px;margin-top:1px;max-width:100%;background:#ffe19ddf}
 body.game-playing .game-hud{pointer-events:none}
 body.game-playing .mission-hud .way-button{pointer-events:auto}
 body.game-playing .touch-ui{pointer-events:none}
 body.game-playing .touch-ui .control{pointer-events:auto}
}
@media(orientation:landscape) and (max-height:390px){
 body.game-playing .mission-hud{max-width:min(38vw,285px)}
 body.game-playing .mission-hud strong{font-size:10px;line-height:1.1;max-height:2.3em;overflow:hidden}
 body.game-playing .way-button{min-height:25px;padding:3px 7px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition:none!important}}

