.hg-expand-row { display:flex;justify-content:flex-end;margin-bottom:4px; }
.hg-expand { min-height:44px;padding:10px 8px;background:transparent;border:0;color:#bac0af;font:600 .75rem/1.3 var(--font-body);cursor:pointer;touch-action:manipulation;text-decoration:underline;text-underline-offset:4px; }
.hg-expand:focus-visible { outline:2px solid var(--volt);outline-offset:2px; }
.hg-fullscreen-dialog { position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--bg,#11140d);color:var(--ink);overflow:auto;overscroll-behavior:contain; }
.hg-fullscreen-dialog::backdrop { background:#11140d; }
.hero-games.is-fullscreen { width:100%;max-width:none;min-height:100%;box-sizing:border-box;background:var(--bg,#11140d);padding:max(8px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:auto;overscroll-behavior:contain; }
.hero-games.is-fullscreen > * { width:100%;max-width:520px;margin-left:auto;margin-right:auto; }
.hero-games.is-fullscreen .hero-game { min-height:0;padding:8px 0; }
.hero-games.is-fullscreen h2 { font-size:1.6rem;margin-top:4px; }
.hero-games.is-fullscreen .hgm-modes { margin-top:8px; }
.hero-games.is-fullscreen .hg-status { min-height:3em;margin:6px 0;font-size:.75rem; }
.hero-games.is-fullscreen .hgm-scoreline { min-height:64px; }
.hero-games.is-fullscreen .hg-field,.hero-games.is-fullscreen .hgm-field { width:min(100%,calc((100dvh - 355px)*1.257));min-width:220px;margin-left:auto;margin-right:auto; }
.hero-games.is-fullscreen .hgr-target { min-width:64px;min-height:64px; }
@media(min-width:700px) { .hero-games.is-fullscreen { display:flex;flex-direction:column;justify-content:center; }.hero-games.is-fullscreen .hg-field,.hero-games.is-fullscreen .hgm-field { max-width:480px; } }
@media(max-height:540px) { .hero-games.is-fullscreen .hg-field,.hero-games.is-fullscreen .hgm-field { width:280px;min-width:0; }.hero-games.is-fullscreen { justify-content:flex-start; } }
/* Keep play and pause reachable on short phones without shrinking touch targets. */
@media(max-width:600px) and (max-height:700px) {
 .hero-games.is-fullscreen .hg-heading,.hero-games.is-fullscreen h2,.hero-games.is-fullscreen .hgm-mode-note { display:none; }
 .hero-games.is-fullscreen .hg-field,.hero-games.is-fullscreen .hgm-field { width:220px;min-width:220px; }
 .hero-games.is-fullscreen .hg-controls { flex-wrap:nowrap;align-items:center; }
 .hero-games.is-fullscreen .hg-book { flex-basis:auto;margin-left:auto; }
 .hero-games.is-fullscreen .hg-status { min-height:0; }
}
