/* Head Hockey Battle : page-specific styles (shared: arcade-kit.css, sim3d.css for the banner / result card) */
.hh-wrap { position: relative; width: 100%; }
.hh-wrap .ak-stage { background: #0b1220; }
.hh-hud { position: absolute; inset: 0; pointer-events: none; font-family: system-ui, sans-serif; container-type: inline-size; --c0: #2563eb; --c1: #dc2626; }
.hh-hud button, .hh-hud .sim-result { pointer-events: auto; }
.hh-sb { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(15, 23, 42, .88); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 4px 10px; color: #fff; white-space: nowrap; }
.hh-sb span { font: 800 13px system-ui, sans-serif; color: #e2e8f0; }
.hh-sb b { min-width: 34px; text-align: center; font: 900 26px/1.15 system-ui, sans-serif; border-radius: 9px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.hh-s0 { background: var(--c0); } .hh-s1 { background: var(--c1); }
.hh-sb b.is-goal { animation: hh-goal .9s ease-out 2; }
@keyframes hh-goal { 50% { transform: scale(1.35); box-shadow: 0 0 18px #facc15; } }
.hh-sb i { font: 900 16px system-ui, sans-serif; font-style: normal; color: #fde68a; min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.hh-sb i.is-low { color: #fca5a5; }
.hh-pop { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); font: 900 clamp(20px, 4cqw, 36px) system-ui, sans-serif; color: #fde047; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); opacity: 0; white-space: nowrap; text-align: center; }
.hh-pop small { display: block; font-size: .5em; color: #fff; }
.hh-pop.is-on { animation: hh-pop 1.8s ease-out forwards; }
@keyframes hh-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%); } }
.hh-tb { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.hh-tb button, .hh-tb .ak-mute { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(15, 23, 42, .78); color: #fff; font-size: 17px; cursor: pointer; }
.hh-tb button:focus-visible { outline: 3px solid #ffd54a; }
.hh-hud .sim-banner { pointer-events: none; }
.hh-hud .sim-result[hidden] { display: none; }
.hh-hud.is-over .hh-touch.hh-touch, .hh-hud.is-over .hh-tb { display: none; }
/* touch: one cluster (1 player) or one per player (2 players, one each side) */
.hh-touch { position: absolute; left: 10px; right: 10px; bottom: 10px; display: none; justify-content: space-between; }
.hh-hud.is-touch .hh-touch { display: flex; }
.hh-tc { display: contents; }
.hh-tc button { width: 64px; height: 64px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .6); background: rgba(30, 58, 138, .7); color: #fff; font-size: 26px; touch-action: none; user-select: none; -webkit-user-select: none; }
.hh-tc button.is-on { background: rgba(219, 39, 119, .9); transform: scale(.94); }
.hh-touch:not(.is-2p) .hh-tc0 { display: grid; grid-template-columns: 64px 64px 1fr 64px 64px; gap: 10px; width: 100%; }
.hh-touch:not(.is-2p) .hh-tc0 [data-b="j"] { grid-column: 4; } .hh-touch:not(.is-2p) .hh-tc0 [data-b="s"] { grid-column: 5; background: rgba(220, 38, 38, .75); }
.hh-touch.is-2p .hh-tc { display: grid; grid-template-columns: repeat(2, 52px); gap: 6px; }
.hh-touch.is-2p .hh-tc button { width: 52px; height: 52px; font-size: 21px; }
.hh-touch.is-2p .hh-tc0 button { background: color-mix(in srgb, var(--c0) 70%, transparent); } .hh-touch.is-2p .hh-tc1 button { background: color-mix(in srgb, var(--c1) 70%, transparent); }
.hh-opts { margin-top: 14px; }
.hh-opts h3 { margin: 10px 0 6px; }
.hh-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.hh-row button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; font: inherit; }
.hh-row button b { font-size: 16px; } .hh-row button small { font-size: 11px; opacity: .8; }
.hh-row button[aria-pressed="true"] { border-color: #7dd3fc; background: rgba(14, 165, 233, .18); } .hh-row button:disabled { opacity: .45; cursor: not-allowed; }
.hh-row button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
.hh-final { font: 900 34px system-ui, sans-serif; margin: 4px 0; } .hh-st { font-size: 28px; margin: 2px 0; }
@container (max-width: 600px) {
  .hh-sb { top: 6px; gap: 5px; padding: 3px 8px; } .hh-sb span { display: none; } .hh-sb b { font-size: 22px; min-width: 28px; } .hh-sb i { font-size: 14px; min-width: 50px; }
  .hh-tb { right: 6px; top: 50px; gap: 4px; } .hh-tb button, .hh-tb .ak-mute { width: 34px; height: 34px; font-size: 15px; }
  .hh-pop { top: 30%; font-size: 22px; }
  .hh-touch:not(.is-2p) .hh-tc0 { grid-template-columns: 62px 62px 1fr 62px 62px; gap: 8px; }
}
