html,body{margin:0!important;width:100%;height:100%;overflow:hidden;background:#08152a!important;color:#f3f7ff;font-family:system-ui,sans-serif}body{display:flex!important;flex-direction:column;align-items:center;min-height:0!important}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #ffd17a;outline-offset:3px}[hidden]{display:none!important}#demo-toolbar{height:66px;flex-shrink:0;display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 10px;font-size:14px}#demo-toolbar button,#demo-touch button{min-height:44px;background:#18384c;color:white;border:1px solid #68b9ca;border-radius:10px;padding:6px 12px;font:600 14px system-ui}#demo-toolbar span{font-weight:700}a{color:#8fe5ff}body>main{padding:0!important;margin:0!important;max-width:none!important;width:min(calc((100dvh - 148px)*420/740),100vw)!important;flex:0 0 auto;display:block!important;height:auto!important}main>header,main>footer{display:none!important}#arena{width:100%!important;height:auto!important;aspect-ratio:420/740!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}#game{width:100%!important;height:100%!important;aspect-ratio:420/740;display:block}#demo-cover{position:fixed;inset:0;z-index:999999;background:#08152af5;display:grid;place-items:center;overflow:auto;padding:20px;box-sizing:border-box}#demo-cover>div{max-width:480px;text-align:center}#demo-cover h1{font-size:clamp(28px,7vw,44px);color:#ffd08c;margin:10px}#demo-cover p{line-height:1.5;font-size:16px}#demo-start{display:block;margin:20px auto;min-height:52px;padding:12px 32px;border:0;border-radius:12px;background:#ffd08c;color:#08152a;font:800 19px system-ui}#demo-touch{height:70px;display:flex;gap:18px;align-items:center;justify-content:center;flex-shrink:0;width:min(100%,420px)}#demo-touch button{width:30%;min-height:54px;touch-action:none;user-select:none}#demo-touch button:active{background:#386477}#demo-special{font-size:16px}#launch-intro,#home,#results{display:none!important}#panel{max-width:360px;box-sizing:border-box}#panel button{min-height:48px;margin:10px}#settings{display:none!important}@media(max-width:600px){#demo-toolbar{gap:4px;height:66px;font-size:14px}#demo-toolbar span{display:none}#demo-toolbar button{padding:4px 7px}#demo-toolbar a{font-size:14px}}
#demo-cover a{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;border:1px solid #68b9ca;border-radius:10px;text-decoration:none;font-weight:700}
/* Existing, approved title art; responsive demo controls use the game's fonts. */
#demo-cover{background:#04335b url('menu-day-background.png') center/cover no-repeat;padding:16px;font-family:GameText,system-ui,sans-serif}
#demo-cover>.demo-welcome{display:grid;grid-template-columns:auto minmax(240px,330px);gap:28px;align-items:center;max-width:950px;width:auto;text-align:center}
.demo-poster{position:relative;width:auto;height:calc(100dvh - 32px);aspect-ratio:853/1844;max-width:100%;filter:drop-shadow(0 12px 30px #001a38aa)}
.demo-poster>img{display:block;width:100%;height:100%;object-fit:contain;border-radius:18px}
#demo-start{position:absolute;left:19%;top:83.7%;width:62%;height:6.6%;min-height:44px;margin:0;padding:0;background:transparent;border:0;border-radius:40px;color:transparent;font-size:0;box-shadow:none}
#demo-start:disabled{background:#06284be6;color:white;font:700 16px GameText,system-ui}
#demo-start:focus-visible{outline:4px solid #fff299;outline-offset:5px}
#demo-start:hover:not(:disabled){box-shadow:0 0 28px #78f6ff}
.demo-menu-copy{padding:24px;border:1px solid #51d8ff;border-radius:20px;background:linear-gradient(145deg,#063560f5,#001329f5);box-shadow:inset 0 1px 2px #d5ffff70,0 10px 40px #00142b80}
#demo-cover h2{font:900 clamp(26px,4vw,36px) SkyArcade,GameText,system-ui;color:#ffe36b;margin:10px 0;text-shadow:0 3px #173e62}
#demo-cover .demo-eyebrow{font-size:14px;letter-spacing:2px;color:#9feaff;margin:0}
#demo-cover .demo-subtitle{font-size:14px;font-weight:800;color:#c2eeff}
#demo-cover p{margin:12px 0;font-family:GameText,system-ui}
#demo-cover details{border-top:1px solid #3f7794;padding-top:12px;font-size:16px}
#demo-cover summary{cursor:pointer;min-height:32px;color:#c5f5ff}
#demo-cover #demo-status{font-size:14px;color:#d1efff}
#demo-cover a,#demo-menu-sound{display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:44px;margin:10px 0;font:800 16px GameText,system-ui;border:1px solid #73d9ff;border-radius:10px}
#demo-menu-sound{background:linear-gradient(#116098,#062a53);color:white;cursor:pointer}
#demo-cover a{background:linear-gradient(#fff895,#ffc52d);color:#082344;border-color:#fff2a1;box-shadow:0 3px #a5610c}
#demo-cover small{font-size:14px;line-height:1.4;display:block;color:#b8d6ed}
@media(max-width:640px){#demo-cover{display:block;padding:12px;overflow:auto}#demo-cover>.demo-welcome{display:flex;flex-direction:column;gap:12px;width:100%}.demo-poster{height:auto;width:min(100%,calc(78dvh * 853 / 1844));flex:none}.demo-menu-copy{box-sizing:border-box;width:min(100%,420px);padding:16px}#demo-cover h2{margin:6px 0}}

/* Use the available iframe height for keyboard play and keep the original
   portrait artwork inside the playfield. Touch layouts keep their controls. */
#arena {
  container-type: inline-size;
  outline: 1px solid #445974;
}
#countdown:not(.launch-card) { font-size: clamp(24px, 22cqi, 72px); }
#countdown.launch-card { padding-inline: 8px; }
#countdown.launch-card strong { font-size: clamp(16px, 12cqi, 38px); }
#countdown.launch-card small,
#countdown.launch-card span,
#countdown.launch-card .launch-call { font-size: clamp(10px, 6cqi, 16px); }
#countdown.launch-card .launch-call { margin-top: clamp(10px, 8cqi, 26px); }
#demo-cover { background: #0b1528; }

@media (min-width: 650px) and (hover: hover) and (pointer: fine) {
  body { justify-content: center; background: #0b1528 !important; }
  body > main { width: min(calc((100dvh - 12px) * 420 / 740), 100vw) !important; }
  #demo-touch, #arena > #pause { display: none; }
  #arena > .hud { inset: 12px 12px auto; gap: 6px; }
  #arena > .hud .right b { white-space: nowrap; }
  #arena:has(> #pause:not([hidden])) > .progress { top: 86px; }
  #arena:has(> #pause:not([hidden])) > #powerbar { top: 96px; }
  #arena > #hint { bottom: 8px; font-size: 12px; padding: 5px 8px; }
  #demo-toolbar {
    position: absolute;
    top: 12px;
    left: max(16px, calc(50% - (100dvh - 12px) * 210 / 740 - 172px));
    width: 156px;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  #demo-toolbar span { margin-bottom: 4px; }
}
