@font-face{font-family:Field Condensed;src:url(fonts/BarlowCondensed-700.woff2) format('woff2');font-weight:700;font-display:swap}

html,body{background:#060a15;color:#deedf6;font:700 16px 'Field Condensed',system-ui,sans-serif}
.pad{touch-action:none;color:#c9f2f6;background:#101e2d;border:1px solid #416b85;border-radius:6px;box-shadow:inset 0 1px #8de9ff26,0 3px #0007}
.pad:active{background:#21485d;border-color:#9cefff}
#dpad{background:none;border:none;box-shadow:none;pointer-events:none}
#dpad .btn{background:#0f1d2a;border:1px solid #416b85;border-radius:6px;pointer-events:auto;touch-action:none}
#dpad .btn:active{background:#21485d}
#dpad .btn::before{content:'';display:block;width:12px;height:12px;border:solid #bfe9f2;border-width:2px 2px 0 0;transform:translateY(3px) rotate(-45deg)}
#dpad .d::before{transform:translateY(-3px) rotate(135deg)}
#dpad .l::before{transform:translateX(3px) rotate(-135deg)}
#dpad .r::before{transform:translateX(-3px) rotate(45deg)}
#fireBtn{color:#ffe0aa;background:#35241b;border-color:#be8250}
#fireBtn:active{background:#715034}
#pauseBtn::before{content:'';width:11px;height:15px;border:solid #c5e4d9;border-width:0 3px}
#mobileHud{color:#bfe9f2;font-variant-numeric:tabular-nums;white-space:pre-line}
#mobileBrief{inset:50% 14px auto;transform:translateY(-50%);background:#0d1928;border:1px solid #416484;border-top:3px solid #71ccdc;color:#e2edf7;box-shadow:0 14px 55px #0009;max-width:680px;margin:auto;max-height:calc(100% - 24px);overscroll-behavior:contain}
#mobileBrief header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
#mobileBrief h2{color:#d9f9ff;font-family:'Segoe UI',system-ui,sans-serif;font-weight:400;min-width:0;overflow-wrap:anywhere}
#mobileBrief p{font:400 14px/1.55 system-ui,sans-serif;min-height:0;user-select:text}
#mobileBrief .controls{font-size:14px;color:#a3cada;flex:none}
#mobileBrief button{font:700 18px 'Field Condensed',system-ui,sans-serif;color:#091621;background:#9edfec;border:0;border-radius:4px;flex:none}
#mobileBrief #briefBack{min-height:36px;min-width:49px;background:#182d3e;border:1px solid #416484;color:#c8e8f2;font-size:15px}
#stage:not([data-scene=play]) #touch,#stage:not([data-scene=play]) #mobileHud{display:none}
body:has(#stage:is([data-scene=play],[data-scene=brief])) > button[aria-label='Go back']{display:none}
@media (pointer:coarse){
  #stage:not([data-scene=play]){padding:0}
  #stage[data-scene=brief] #game{visibility:hidden}
  #mobileBrief p{max-height:46dvh}
}
@media (pointer:coarse) and (orientation:landscape){
  #mobileHud{left:9px;right:auto;top:10px;text-align:left}
  #mobileBrief{inset:50% min(90px,10vw) auto;gap:8px}
  #mobileBrief p{max-height:39dvh}
  #mobileBrief button{min-height:40px}
}
