/* Approved AI-BOMB artwork; preserve alpha and intrinsic aspect ratio. */
@media(min-width:1000px) and (min-height:600px){
 body:is([data-screen=playing],[data-screen=paused]) main>header{min-height:48px;padding-block:4px}
 body:is([data-screen=playing],[data-screen=paused]) header .brand img{max-height:37px}
 body:is([data-screen=playing],[data-screen=paused]) main>footer{padding-block:5px}
}
@media(min-width:1000px) and (min-height:600px) and (pointer:fine){
 #clock{position:fixed;top:5px;left:45%;z-index:4;padding:1px 17px;font-size:25px;border-radius:12px}
 #modeScore{position:fixed;top:12px;left:29%;z-index:4;width:140px}
 #hud>div:first-child,#hud #stats{box-sizing:border-box;max-width:148px}
}
body[data-screen=menu] main>header{display:none}
body[data-screen=menu] main{grid-template-rows:minmax(0,1fr) auto}
header .brand{display:flex;align-items:center;flex:0 1 174px;min-width:0;line-height:0}
header .brand img{display:block;width:100%;height:auto;max-height:52px;object-fit:contain}
#intro h1.game-logo{margin:8px 0 10px;line-height:0;letter-spacing:normal}
.game-logo img{display:block;width:min(340px,100%);height:auto;max-height:112px;object-fit:contain;object-position:center;margin-inline:auto}
.game-tagline{font-size:18px;font-weight:800;color:#fff1b1;margin:0 0 8px}
@media(max-width:760px){header .brand{flex-basis:115px}.game-logo img{width:250px}.game-tagline{font-size:15px}}
@media(max-width:380px){header .brand{flex-basis:84px}.settings{gap:3px}.settings button,.settings select{padding:5px}}
@media(max-height:560px){header .brand{flex-basis:116px}header .brand img{max-height:32px}.game-logo img{width:200px;max-height:65px}.game-tagline{font-size:14px}}

body[data-screen=menu] #overlay{align-items:center}
#intro .arena-heading{font-size:clamp(22px,2.4vw,30px);line-height:1.3;letter-spacing:.5px;text-transform:none;font-weight:1000;color:#fff4ce;text-shadow:0 1px #e3ac45,0 2px #c48a28,0 3px #96611e,0 5px #0b1d46,0 7px 9px #07173888;margin:26px 0 16px}
body[data-screen=menu] #overlay,body[data-screen=menu] #intro{scrollbar-color:#eef7ff #234980;scrollbar-width:thin}
body[data-screen=menu] #overlay::-webkit-scrollbar,body[data-screen=menu] #intro::-webkit-scrollbar{width:10px}
body[data-screen=menu] #overlay::-webkit-scrollbar-track,body[data-screen=menu] #intro::-webkit-scrollbar-track{background:#234980;border-radius:10px}
body[data-screen=menu] #overlay::-webkit-scrollbar-thumb,body[data-screen=menu] #intro::-webkit-scrollbar-thumb{background:#eef7ff;border:2px solid #234980;border-radius:10px}

/* Keep the scrolling surface inside a separate, stationary rounded frame. */
#intro-shell{width:min(100%,1000px);max-width:1000px;max-height:calc(100% - 10px);padding:12px;display:flex;flex-direction:column;min-height:0;overflow:hidden}
#intro-shell:has(#intro[hidden]){display:none}
#intro-shell #intro{width:100%;min-height:0;max-height:none;padding:12px 18px;border:0;border-radius:12px;background:transparent;box-shadow:none;overflow:auto;scrollbar-gutter:stable both-edges}
body[data-screen=menu] #intro{scrollbar-width:auto}
body[data-screen=menu] #intro::-webkit-scrollbar{width:16px}
@media(max-width:760px){#intro-shell{padding:10px}#intro-shell #intro{padding:8px 4px}}
