/* Gameplay reaches every edge; UI floats over the scene rather than framing it. */
.in-bout { overflow: hidden; }
.in-bout #app { position: fixed; inset: 0; width: 100%; height: 100dvh; min-height: 0; padding: 0; overflow: hidden; }
.in-bout #app>header,.in-bout #app>footer,.in-bout .run-strip { display: none; }
.in-bout #app>.arena { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; flex: none; }
.in-bout #scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.in-bout .fight-hud::before { display: none; background: none; }
.in-bout .fight-hud { background: none; }
.in-bout .fighter-name,.in-bout .meter-meta,.in-bout .stamina-label,
.in-bout .match-info,.in-bout .shot-player {
  text-shadow: 1px 1px 0 #141414,-1px -1px 0 #141414,0 2px 3px #141414;
}
.in-bout .controls-deck,.in-bout.compact-controls .controls-deck {
  position: fixed; left: 0; right: 0;
  bottom: max(12px,env(safe-area-inset-bottom));
  background: none; border: 0; box-shadow: none; pointer-events: none;
}
.in-bout .controls-deck button,.in-bout .controls-deck .stick { pointer-events: auto; }
/* Touch positions retain their safe-area padding; no full-width gradient behind them. */
.touch-fight .controls-deck,.touch-fight.compact-controls .controls-deck { bottom: 0; background: none; }
.in-bout #shot-dock {
  bottom: max(8px,env(safe-area-inset-bottom));
  background: none; border: 0; box-shadow: none;
  padding: 4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left));
  pointer-events: none;
}
.in-bout #shot-dock button { pointer-events: auto; border: 2px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); font-weight: 700; }
.in-bout #shot-dock button.available { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.in-bout #shot-dock button.throwing { background: var(--yellow); color: var(--ink); transform: translate(1px,2px); box-shadow: 1px 1px 0 var(--ink); }
.in-bout #shot-dock button.uppercut { box-shadow: 2px 3px 0 var(--ink),inset 0 -3px var(--red); }
.in-bout #shot-dock .available i { background: var(--red); }
.in-bout.controls-open:not(.touch-fight):not(.versus-match) #shot-dock { display: none; }
/* Pause, fullscreen and optional control help remain reachable without a header. */
.in-bout:not(.touch-fight) .touch-fight-tools {
  display: flex; position: absolute; top: max(10px,env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%); gap: 5px; z-index: 10;
}
.in-bout .touch-fight-tools button[hidden] { display: none; }
.in-bout:not(.touch-fight) .touch-fight-tools button {
  min-width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  box-shadow: 2px 3px 0 var(--ink); font: 900 22px var(--display);
}
.in-bout:not(.touch-fight) .touch-fight-tools button:active { transform: translate(1px,2px); box-shadow: 1px 1px 0 var(--ink); background: var(--yellow); }
.in-bout:not(.touch-fight) .fight-hud { top: max(12px,env(safe-area-inset-top)); grid-template-columns: minmax(0,1fr) 154px minmax(0,1fr); gap: 12px; }
.in-bout:not(.touch-fight) .match-info { padding-top: 49px; }
.in-bout:not(.touch-fight) #bout,.in-bout:not(.touch-fight) #round-state { display: none; }
.in-bout:not(.touch-fight) .controls-deck { bottom: 65px; padding-top: 4px; padding-bottom: 4px; }
.in-bout:not(.touch-fight) .movement-controls { background: var(--paper); color: var(--ink); padding: 8px; border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.in-bout:not(.touch-fight) .movement-controls strong,.in-bout:not(.touch-fight) .movement-controls p { color: var(--ink); }
.in-bout:not(.touch-fight) .movement-controls small { color: var(--muted); }
.in-bout:not(.touch-fight) .stick { border: 3px solid var(--ink); }
.in-bout:not(.touch-fight) .stick-nub { background: var(--paper); }
.in-bout:not(.touch-fight) .attack-controls button {
  --pad-fill: var(--red); --pad-ink: var(--paper);
  background: var(--pad-fill); color: var(--pad-ink); border: 3px solid var(--ink);
  box-shadow: 3px 4px 0 var(--ink); padding: 7px 8px; gap: 3px; min-width: 108px;
}
.in-bout:not(.touch-fight) #leftHook,.in-bout:not(.touch-fight) #rightHook,.in-bout:not(.touch-fight) #block { --pad-fill: var(--yellow); --pad-ink: var(--ink); }
.in-bout:not(.touch-fight) .attack-controls strong { text-transform: uppercase; font: 900 16px/1 var(--display); }
.in-bout:not(.touch-fight) .attack-controls .fight-button-mark { display: block; width: 27px; height: 25px; pointer-events: none; }
.in-bout:not(.touch-fight) .fight-button-mark svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.in-bout:not(.touch-fight) .right-glove svg { transform: scaleX(-1); }
.in-bout:not(.touch-fight) .attack-controls kbd { border-color: currentColor; color: inherit; background: transparent; }
.in-bout:not(.touch-fight) .attack-controls button:hover:not(:disabled),.in-bout:not(.touch-fight) .attack-controls #block.held { background: var(--pad-fill); color: var(--pad-ink); border-color: var(--ink); box-shadow: 3px 4px 0 var(--ink),inset 0 0 0 2px var(--paper); }
.in-bout:not(.touch-fight) .attack-controls button:active:not(:disabled) { transform: translate(2px,3px); box-shadow: 1px 1px 0 var(--ink); }
.in-bout:not(.touch-fight) .attack-controls .unaffordable { --pad-fill: #605b52; --pad-ink: #d7d0c3; }
.in-bout:not(.touch-fight) .attack-controls .showboat { --pad-fill: var(--paper); --pad-ink: var(--ink); }
.in-bout:not(.touch-fight) .overlay { inset: 155px 0 75px; }
@media (max-width: 1100px) {
  .in-bout #shot-dock.two-player { flex-direction: column; align-items: stretch; gap: 6px; }
  .in-bout #shot-dock.two-player section { width: 100%; gap: 5px; }
  .in-bout #shot-dock.two-player button { flex: 1; min-width: 0; max-width: 165px; }
}
@media (max-width: 700px) {
  .in-bout:not(.touch-fight) .touch-fight-tools button { min-width: 36px; width: 36px; }
  .in-bout:not(.touch-fight) .fight-hud { grid-template-columns: minmax(0,1fr) 118px minmax(0,1fr); gap: 6px; }
}

/* Only one set of attack/taunt buttons is presented at a time. */
.in-bout:not(.compact-controls):not(.versus-match) #shot-dock {display:none}
.showboat-controls .movement-controls,.showboat-controls #block {display:none!important}
.showboat-controls .controls-deck {justify-content:flex-end}
.in-bout.showboat-controls .attack-controls button.showboat {--pad-fill:var(--red);--pad-ink:var(--paper)}
.in-bout .attack-controls #leftHook.showboat,.in-bout .attack-controls #rightHook.showboat {--pad-fill:var(--yellow);--pad-ink:var(--ink)}
/* Compact controller hints and both versus rows use the same poster palette. */
.in-bout #shot-dock button {background:var(--red);color:var(--paper)}
.in-bout #shot-dock button[data-shot=leftHook],.in-bout #shot-dock button[data-shot=rightHook] {background:var(--yellow);color:var(--ink)}
.in-bout #shot-dock button.available {background:var(--red);color:var(--paper)}
.in-bout #shot-dock button[data-shot=leftHook].available,.in-bout #shot-dock button[data-shot=rightHook].available {background:var(--yellow);color:var(--ink)}
.in-bout #shot-dock button:not(.available):not(.throwing) {opacity:.45}
.in-bout #shot-dock button span,.in-bout #shot-dock button kbd {color:inherit}
.in-bout #shot-dock button.throwing {box-shadow:1px 1px 0 var(--ink),inset 0 0 0 2px var(--paper)}

.in-bout .attack-controls button.showboat strong {color:var(--pad-ink)}
