@media(max-width:740px){.topbar{height:53px;padding:0 13px}.brand-btn b{font-size:12px}.brand-btn small{font-size:7px}.brand-crest{width:31px;height:31px}.gold-pill{font-size:11px;padding:6px 9px}.icon-button{width:32px;height:32px}.screen{min-height:calc(100dvh - 93px)}.title-screen{min-height:calc(100dvh - 93px)}.hero-layout{display:flex;flex-direction:column-reverse;min-height:0;padding:0 14px 20px;align-items:stretch;gap:0}.title-art{height:clamp(225px,41dvh,350px);width:min(100%,530px);margin:0 auto}.title-art .splash{bottom:-7px}.splash.center{left:33%;height:94%}.splash.left{left:8%;height:78%}.splash.right{right:4%;height:80%}.title-copy{text-align:center;margin-top:-7px}.edition{font-size:10px;padding:6px 10px;letter-spacing:1px}.logo-en{font-size:clamp(48px,12vw,72px);letter-spacing:-2px;margin:12px auto 0}.title-copy h1{font-size:clamp(30px,8vw,39px);margin:3px 0}.subhead{font-size:12px;margin-bottom:15px}.menu-buttons{margin:auto;gap:10px}.primary-button{min-height:51px;font-size:20px;padding:9px}.secondary-button{min-height:43px;padding:9px}.glass-button{font-size:11px;min-height:38px;padding:7px 5px}.tiny-disclaimer{font-size:10px;margin:14px auto 0}.feature-ribbon{font-size:10px;padding:11px 15px;gap:9px}.world-cards{grid-template-columns:1fr;gap:12px;padding:0 14px}.world-card{min-height:156px}.level-list{padding:8px 14px}.stage-grid{grid-template-columns:repeat(5,1fr);gap:8px}.stage-btn{min-height:60px}.generic-screen{padding:14px}.game-screen{padding:4px 7px 10px}.game-wrap{max-width:min(100%,490px)}.game-meta{height:31px;font-size:12px}.round-small{width:30px;height:30px}.hud-stats{gap:6px;margin:3px 0}.hud-counter{min-height:35px;padding:3px}.hud-counter strong{font-size:20px}.hud-counter span{font-size:9px}.score-counter strong{font-size:17px}.battle-arena{height:106px;border-radius:14px}.fighter img{height:92px}.fighter-caption b{font-size:9px}.energy-bar,.hp-bar{height:7px}.arena-center{font-size:18px}.board-shell{padding:4px;border-radius:13px;margin:5px auto 0}.board-header{min-height:21px;padding:1px 4px 3px}.goal-desc{font-size:10px}.skills-tray{padding-top:5px}.skill-label{margin-bottom:5px}.skill-label small{font-size:9px}.power-tools{gap:3px}.power-tool{border-radius:8px;padding:2px}.power-tool img{max-height:40px}.power-tool small{font-size:9px}.game-buttons{margin-top:6px}.toolbar-button,.ultimate-button{min-height:33px;font-size:12px}.bottom-disclaimer{min-height:40px;padding:9px;font-size:9px}.modal-content{padding:18px 15px}.modal-content h2{font-size:25px}}
@media(max-width:360px){.skill-label small{display:none}.title-art{height:210px}.title-copy h1{font-size:28px}.feature-ribbon{display:none}.battle-arena{height:87px}.fighter img{height:76px}.hud-counter{min-height:30px}}
@media(min-width:900px){.game-wrap{max-width:590px}.game-screen{padding-top:13px}.game-screen .battle-arena{height:150px}}
@media(orientation:landscape) and (max-height:530px) and (max-width:1000px){.game-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,1fr);grid-template-rows:auto auto 1fr;gap:0 12px;max-width:980px}.game-top{grid-column:1/-1;width:100%}.battle-arena{grid-column:2;height:100px!important}.board-shell{grid-row:2/4;grid-column:1;align-self:start}.skills-tray{grid-column:2;grid-row:3}.power-tools{gap:3px}.power-tool img{max-height:32px}.skill-label small{display:none}#puzzle-canvas{max-height:calc(100dvh - 110px);width:auto;max-width:100%;margin:auto}}
@media(prefers-reduced-motion:reduce){.title-glitter,.title-art .splash,.fighter img,.loading-mask .loader-gem{animation:none!important}.power-tool,.game-toast{transition:none}}
@supports(padding:env(safe-area-inset-bottom)){.bottom-disclaimer{padding-bottom:calc(10px + env(safe-area-inset-bottom))}.topbar{padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right))}.game-screen{padding-left:max(7px,env(safe-area-inset-left));padding-right:max(7px,env(safe-area-inset-right))}}
