/* HashHollow mine game inside the site shell. Game styles are scoped in newgame-game.css (generated). */
body.playing-newgame .page-heading,body.playing-newgame footer{display:none}
body.playing-newgame .content{padding:0}
body.playing-newgame{overflow:hidden}
body.playing-newgame #ng-root{overflow:hidden}
body.playing-newgame #ng-root{height:calc(100dvh - 82px);min-height:360px}
.ng-play-top{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:12px;font-weight:700;white-space:nowrap}
.ng-play-top[hidden]{display:none}
.ng-play-big{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:min(100%,320px);padding:18px 30px;border-radius:16px;font-size:20px;font-weight:800;letter-spacing:.01em;box-shadow:0 14px 40px #9cff6a33}
.ng-hero{position:relative;border-radius:26px;overflow:hidden;border:1px solid #ffffff1f;box-shadow:0 30px 80px #0008;aspect-ratio:16/10}
.ng-hero img{width:100%;height:100%;object-fit:cover;display:block}
.ng-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0000 55%,#05080bcc)}
.ng-hero-cap{position:absolute;left:22px;bottom:18px;z-index:1;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#ffd993}
@media(max-width:700px){.ng-play-top span{display:none}.ng-play-top{padding:9px 12px}}
/* phones and tablets: the game takes the whole screen (the Menu button leads back to the site) */
body.playing-newgame #ng-root.touch{position:fixed;inset:0;z-index:70;height:auto!important;min-height:0;background:#0b1014}
#ng-root.touch #ng-wrap{position:absolute;inset:0;height:auto;z-index:1}
body.playing-newgame:has(#ng-root.touch){overflow:hidden}
/* control buttons: round icon art */
#ng-root #ng-pad{gap:14px;align-items:flex-start}
#ng-root #ng-pad button{width:76px;height:76px;padding:0;background:none;border:0;border-radius:50%;position:relative;filter:drop-shadow(0 6px 10px #000a);transition:transform .08s;cursor:pointer}
#ng-root #ng-pad button:active{transform:scale(.92)}
#ng-root .ngi{display:block;width:100%;height:100%;background:center/contain no-repeat}
#ng-root .ngi-jump{background-image:url(/game/ui/btn-jump.webp)}
#ng-root .ngi-duck{background-image:url(/game/ui/btn-duck.webp)}
#ng-root .ngi-sprint{background-image:url(/game/ui/btn-sprint.webp)}
#ng-root .ngi-power{background-image:url(/game/ui/btn-power.webp)}
#ng-root #ng-pad small{position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);background:#0b1014d9;border:1px solid #ffffff2e;border-radius:8px;padding:1px 6px;font-size:10px;color:#ffd993;white-space:nowrap}
#ng-root #ng-pad .cd{position:absolute;inset:0;display:grid;place-items:center;font:800 26px system-ui,sans-serif;color:#fff;text-shadow:0 2px 6px #000;background:#000a;border-radius:50%}
#ng-root #ng-pad .cd:empty{display:none}
@media (pointer:coarse){#ng-root #ng-pad button{width:66px;height:66px}#ng-root #ng-pad small{display:none}}
#ng-root #ng-wrap{height:100%}
/* small phones in portrait: canvas shrinks so the control buttons always fit; hint is compact */
@media (max-width:760px) and (orientation:portrait){
  #ng-root #ng-c{width:auto!important;height:auto!important;aspect-ratio:auto!important;max-width:100%;max-height:calc(100% - 175px);align-self:center}
  #ng-root #ng-stage{overflow:hidden}
  #ng-root #ng-rot{font-size:11px;padding:4px 8px;margin:4px 8px 0;line-height:1.3}
  #ng-root #ng-msg{bottom:100px}
}
@media (max-height:700px) and (orientation:portrait){#ng-root #ng-rot{display:none}}
/* phones in landscape: card below the top bar, messages stay left of the buttons */
@media (orientation:landscape){
  #ng-root.touch #ng-card{top:76px}
  #ng-root.touch #ng-msg{left:30%;max-width:42vw}
}
/* the deposit notice must not cover the game HUD: it slides in from the bottom while playing */
body.playing-newgame #hh-dep-banner{top:auto;bottom:96px;transform:translate(-50%,160%)}
body.playing-newgame #hh-dep-banner.show{transform:translate(-50%,0)}
/* phones: a compact top bar so the game, not the buttons, gets the screen */
@media (pointer:coarse),(max-width:760px){
  #ng-root #ng-bar{gap:3px 8px;padding:4px 8px;font-size:11px;line-height:1.1}
  #ng-root #ng-bar button{padding:2px 5px;font-size:10px;gap:3px;border-radius:6px}
  #ng-root #ng-bar .ico{width:16px;height:16px}
  #ng-root #ng-bar #ng-hMats:empty{display:none}
}
@media (min-width:761px) and (max-width:1500px) and (pointer:fine){
  #ng-root #ng-bar{gap:4px 10px;padding:4px 10px;font-size:12px}
  #ng-root #ng-bar button{padding:3px 7px;font-size:11.5px;gap:4px}
  #ng-root #ng-bar .ico{width:20px;height:20px}
}
/* phones: smaller round control buttons, pushed to the right edge so they cover less of the game */
#ng-root.touch #ng-pad{gap:6px;opacity:.9}
#ng-root.touch #ng-pad button{width:50px;height:50px}
#ng-root.touch #ng-pad small{display:none}
#ng-root.touch #ng-pad .cd{font-size:18px}
@media (orientation:landscape){
  #ng-root.touch #ng-pad{right:calc(4px + env(safe-area-inset-right));bottom:calc(4px + env(safe-area-inset-bottom));gap:4px}
  #ng-root.touch #ng-pad button{width:44px;height:44px}
}
@media (max-width:760px) and (orientation:portrait){
  #ng-root.touch #ng-pad{align-self:flex-end;margin:4px calc(8px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) auto;justify-content:flex-end}
  #ng-root.touch #ng-pad button{width:48px;height:48px}
  #ng-root #ng-c{max-height:calc(100% - 120px)}
}

/* HHL Mine button carries the token logo */
#ng-root #ng-bMine{display:inline-flex;align-items:center;gap:5px}
#ng-root #ng-bMine::before{content:'';width:16px;height:16px;flex:none;background:url(/token/hhl-logo-128.png) center/contain no-repeat}
