/* OPERATION NAPKIN - COMBAT module styles (play/css/combat-08.css). Owner: COMBAT.
   combat-08 (release I, 2026-10-26; RELEASE-I-DESIGN-v01 I1 + I7, with combat-sound-01 / combat-scare-01 / combat-12): combat-07 plus
   the last block - the quick sound panel's MUSIC switch + MUSIC volume (the desktop mixer: speaker row over the MUSIC row, both
   growing with HUD SCALE; the landscape top bar; META's pause screen row), the full-screen picture of the bear's scare, and one fix
   found in passing: the HUD is one stacking context, so META's screens cover all of it (the portrait strip and the slot icons were
   painted over the pause menu in release H). Every other rule is combat-07's.
   combat-07 (release H, 2026-10-25; RELEASE-H-DESIGN-v01 H12, with combat-hud-09 / combat-11): combat-06 plus the last block - the
   HUD, bigger and clearer: HUD SCALE through --hud-s / --hud-k, 30 % bigger text at 100 %, icons >= 40 px on desktop, bigger
   hearts, bold outlined numbers, 70 % dark panels, plain-word labels, the 18 % bands (combat-hud-09's layout pass), the portrait
   strip under the arena; continued (the main session's review of try1 + H18 / H22): the doors stay clear (combat-hud-09's pass),
   the boss name shrinks in a narrow column, the boon chips in the bottom-left group or (portrait) as the strip's last row, the dash
   slot's refill ring and glow, the "have/cap" counters gold when full. Every other rule is combat-06's.
   combat-06 (release E+F+G, 2026-10-25; PLAYERS-LIST-DESIGN-v01 G1): combat-05 plus the last block - the stat row (DMG, RATE, SPD,
   LUCK: a 2 x 2 block right of the hearts column inside the top wall row; on portrait phones one row at the top-left of the control
   zone under the arena), its green / red ticks, the STATS panel (in-run overlay and META's embedded pause-screen version) and the
   SHOT slot's weapon look. The top-centre band (floor name, boss bar) is 40 % wide (was 44 %) so the stat block never touches it
   with up to 8 hearts. Every other rule is combat-05's.
   combat-05 (final verification of the co-op release, 2026-10-16): combat-04 plus the last block (the phone-portrait top bar's
   volume slider really gets narrow: core's compact rule had the stronger selector, so long floor names were still cut).
   combat-04 (co-op multiplayer): combat-03 plus the block at the end (the ally panel: seat colour, name, character icon, small
   hearts, DOWN / AFK / RECONNECTING / LAG tag, revive bar; top right under the run clock, portrait phones under the own hearts).
   SHOP-BEAR finisher 2 (combat-03): combat-02 plus the block at the end (clock pill on desktop, phone-portrait top bar).
   SHOP-BEAR v02 (combat-02): run clock under the minimap (+ the floor split flash; touch: in the top bar), ability icons
   in the HUD slots (SPECIAL, new SHOT slot with the PAPER TOWEL ROLL charge ring, DASH, empty ACTIVE, popcorn, sauce,
   boon chips) with captions, and icons on the touch buttons. Without MTNG.icons the HUD keeps the old text labels.
   In-run HUD (GDD 19.4): hearts (NERVES napkins / CRUST chunks / CROUTONS / GLAZE), GREASE bar, SMUG pips, currencies,
   floor name, boss bar, timers, thermometer, active item + charge, sauce packet, boon slots, special ring, dash pips,
   the touch top bar, touch button extras and the deep-fry Impact captions. Every class starts with combat-.
   The HUD lives in .mtn-arena (font-size scales with the arena); it stays inside the top and bottom wall rows
   (under 12 % of the arena height each) and is semi-transparent over gameplay. */

.combat-hud {
  position: absolute; inset: 0; pointer-events: none;
  font-size: clamp(9px, calc(16px * var(--as)), 16px); line-height: 1.1;
  color: var(--cream); font-family: var(--f-display); letter-spacing: 0.03em;
}
.combat-hud button, .combat-hud input { pointer-events: auto; }

/* == top-left: hearts, grease, smug, currencies == */
.combat-tl { position: absolute; left: 1.2%; top: 1.3%; display: flex; flex-direction: column; gap: 0.22em; max-width: 44%; opacity: 0.94; }
.combat-hearts { display: flex; flex-wrap: wrap; gap: 0.16em; max-width: 13.5em; }
.combat-ht {
  position: relative; display: inline-block; width: 1.22em; height: 1.22em; flex: none;
  border: 0.09em solid var(--ink); box-shadow: 0 0.1em 0 rgba(0, 0, 0, 0.5); overflow: hidden;
}
.combat-ht.half::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; right: 0; background: rgba(11, 9, 7, 0.82); }
.combat-ht.empty { background: rgba(11, 9, 7, 0.6) !important; border-color: rgba(247, 236, 216, 0.4); box-shadow: none; }
.combat-ht.empty::after { opacity: 0.25; }
/* NERVES = paper napkins with a fold */
.combat-ht.nerve { background: #FFFFFF; border-radius: 0.14em; }
.combat-ht.nerve::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 45%, #C9C2B4 47%, #C9C2B4 53%, transparent 55%), linear-gradient(180deg, transparent 70%, rgba(201, 194, 180, 0.6) 70%);
}
/* CRUST = crispy crust chunks */
.combat-ht.crust { background: radial-gradient(circle at 35% 30%, #FFE7A3 0 18%, #F2B233 40%, #B8651B 100%); border-radius: 42% 52% 46% 56%; }
.combat-ht.crust::after { content: ""; position: absolute; left: 25%; top: 55%; width: 18%; height: 14%; background: #8A4A12; border-radius: 50%; box-shadow: 0.35em -0.3em 0 -0.02em #8A4A12; }
/* CROUTONS = toasted cubes (shield hearts) */
.combat-ht.crouton { background: linear-gradient(135deg, #F3D79B 0 45%, #D9A85A 45% 100%); border-radius: 0.12em; transform: rotate(-6deg); }
.combat-ht.crouton::after { content: ""; position: absolute; left: 22%; top: 22%; width: 16%; height: 16%; background: #A86B2A; border-radius: 50%; box-shadow: 0.4em 0.32em 0 #A86B2A, 0.08em 0.48em 0 #A86B2A; }
/* GLAZE = the monkey's glossy golden heart */
.combat-ht.glaze { background: linear-gradient(160deg, #FFF7D6 0%, #FFE7A3 25%, #F2B233 70%, #C98A1E 100%); border-radius: 50% 50% 46% 46%; box-shadow: 0 0 0.35em rgba(255, 231, 163, 0.7); }
.combat-ht.glaze::after { content: ""; position: absolute; left: 18%; top: 14%; width: 30%; height: 22%; background: rgba(255, 255, 255, 0.85); border-radius: 50%; transform: rotate(-25deg); }

.combat-grease { width: 7em; height: 0.36em; border-radius: 0.2em; background: rgba(11, 9, 7, 0.65); border: 0.08em solid var(--ink); overflow: hidden; }
.combat-grease-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #F2B233, #FFE7A3); transition: width 0.15s; }
.combat-smug { font-size: 0.75em; line-height: 1; }
.combat-smugpip { margin-right: 0.08em; }
.combat-cur { display: flex; flex-wrap: wrap; gap: 0.55em; font-size: 0.92em; color: var(--grease); text-shadow: 0 0.1em 0 var(--ink), 0 0 0.3em var(--ink); }
.combat-c { display: inline-flex; align-items: center; gap: 0.15em; white-space: nowrap; }
.combat-c b { font-weight: 400; }
.combat-ci { display: inline-block; width: 0.85em; height: 0.85em; border: 0.08em solid var(--ink); }
.combat-c.crumb .combat-ci { background: #F2B233; clip-path: polygon(10% 45%, 40% 5%, 95% 25%, 85% 85%, 25% 95%); border: none; }
.combat-c.popcorn .combat-ci { background: repeating-linear-gradient(90deg, #E2332B 0 0.18em, #FFFFFF 0.18em 0.36em); border-radius: 0.1em 0.1em 0.25em 0.25em; }
.combat-c.ticket .combat-ci { background: #F7ECD8; border-radius: 0.08em; width: 1.05em; height: 0.7em; }
.combat-c.golden .combat-ci { background: radial-gradient(circle at 35% 35%, #FFF3C4, #F2B233 60%, #B8651B); border-radius: 50%; }
.combat-c.golden { font-size: 0.78em; color: #FFD166; }

/* == top-centre: floor name, boss bar, timers, thermometer, buffs == */
.combat-tc { position: absolute; left: 50%; top: 1.1%; transform: translateX(-50%); width: 44%; display: flex; flex-direction: column; align-items: center; gap: 0.2em; }
.combat-floor { font-size: 1em; color: var(--cream); text-shadow: 0 0.1em 0 var(--ink), 0 0 0.35em var(--ink); white-space: nowrap; transition: opacity 0.8s; }
.combat-floor.gone { opacity: 0; }
.combat-boss { width: 100%; display: none; }
.combat-boss-name { text-align: center; font-size: 0.85em; color: var(--grease); text-shadow: 0 0.1em 0 var(--ink); }
.combat-boss-bar { position: relative; height: 0.62em; margin-top: 0.12em; border-radius: 0.3em; background: rgba(11, 9, 7, 0.75); border: 0.09em solid var(--ink); overflow: hidden; }
.combat-boss-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(180deg, #FF5A4E, #B5221B); transition: width 0.12s; }
.combat-boss-notches i { position: absolute; top: 0; bottom: 0; width: 0.14em; margin-left: -0.07em; background: var(--cream); opacity: 0.85; }
.combat-timer {
  --f: 1; display: none; padding: 0.12em 0.6em; border-radius: 0.6em; font-size: 0.8em; color: var(--ink);
  background: linear-gradient(90deg, var(--batter) calc(var(--f) * 100%), rgba(247, 236, 216, 0.35) 0); border: 0.08em solid var(--ink);
}
.combat-thermo { display: none; padding: 0.08em 0.5em; border-radius: 0.5em; font-size: 0.7em; background: rgba(11, 9, 7, 0.7); color: #FFB347; border: 0.08em solid rgba(255, 122, 26, 0.6); max-width: 100%; text-align: center; }
.combat-thermo.hot { color: #FF5A4E; border-color: #E2332B; }
.combat-buffs { display: flex; gap: 0.3em; }
.combat-buff { font-size: 0.62em; padding: 0.08em 0.4em; border-radius: 0.4em; background: rgba(242, 178, 51, 0.85); color: var(--ink); }

/* == top-right: minimap slot (the world module draws the minimap there) == */
.combat-tr { position: absolute; right: 1.2%; top: 1.2%; width: 20%; height: 11%; }

/* == bottom-left: active item + charge, sauce packet == */
.combat-bl { position: absolute; left: 1.2%; bottom: 1.3%; display: flex; gap: 0.5em; align-items: flex-end; opacity: 0.94; }
.combat-active, .combat-sauce {
  display: flex; align-items: center; gap: 0.3em; padding: 0.18em 0.35em; border-radius: 0.5em;
  background: rgba(11, 9, 7, 0.55); border: 0.08em solid rgba(242, 178, 51, 0.35);
}
.combat-icon { width: 2.1em; height: 2.1em; display: flex; align-items: center; justify-content: center; }
.combat-icon img { width: 100%; height: 100%; object-fit: contain; }
.combat-icon-l { font-size: 0.75em; color: var(--ink); background: var(--batter); border-radius: 0.3em; padding: 0.2em 0.25em; }
.combat-active-bar { display: inline-flex; gap: 0.1em; }
.combat-seg { width: 0.42em; height: 0.75em; border-radius: 0.1em; background: rgba(247, 236, 216, 0.2); border: 0.06em solid var(--ink); }
.combat-seg.on { background: var(--batter); }
.combat-active.full { border-color: var(--batter); animation: combat-glow 0.9s ease-in-out infinite; }
@keyframes combat-glow { 50% { box-shadow: 0 0 0.6em rgba(242, 178, 51, 0.7); } }
.combat-sauce-sw { width: 0.95em; height: 1.2em; border-radius: 0.2em; border: 0.08em solid var(--ink); }
.combat-sauce-name { font-size: 0.7em; color: var(--cream); }
.combat-glyph { font-size: 0.6em; padding: 0.05em 0.3em; border-radius: 0.25em; border: 0.07em solid rgba(247, 236, 216, 0.55); color: var(--cream); }
.combat-glyph:empty { display: none; }

/* == bottom-right: boons, special ring, dash pips, pause + sound (desktop) == */
.combat-br { position: absolute; right: 1.2%; bottom: 1.3%; display: flex; gap: 0.45em; align-items: center; opacity: 0.94; }
.combat-boons { display: flex; gap: 0.2em; align-items: center; }
.combat-boon { font-size: 0.55em; padding: 0.18em 0.32em; border-radius: 0.3em; background: rgba(247, 236, 216, 0.12); color: rgba(247, 236, 216, 0.5); border: 0.08em solid rgba(11, 9, 7, 0.8); }
.combat-boon.on { color: var(--ink); background: var(--cream); }
.combat-boon-p { font-size: 0.65em; color: var(--grease); }
.combat-special {
  --cd: 0; position: relative; width: 2.1em; height: 2.1em; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(rgba(11, 9, 7, 0.78) calc(var(--cd) * 360deg), rgba(255, 79, 163, 0.75) 0); border: 0.09em solid var(--ink);
}
.combat-special::before { content: none; }
.combat-hud:not(.combat-icons) .combat-special::before { content: attr(data-label); font-size: 0.55em; color: var(--cream); text-shadow: 0 0.1em 0 var(--ink); }
.combat-hud:not(.combat-icons) .combat-slot-special .combat-slot-cap { display: none; }
.combat-special.ready { box-shadow: 0 0 0.4em rgba(255, 79, 163, 0.6); }
.combat-special .combat-glyph, .combat-dash .combat-glyph { position: absolute; top: -0.5em; right: -0.65em; background: rgba(11, 9, 7, 0.78); }
.combat-hud:not(.combat-icons) .combat-special .combat-glyph { top: auto; bottom: -0.6em; right: auto; }
.combat-dash { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.15em; }
.combat-pips { display: flex; gap: 0.18em; }
.combat-pip { width: 0.62em; height: 0.62em; border-radius: 50%; background: rgba(247, 236, 216, 0.22); border: 0.07em solid var(--ink); }
.combat-pip.on { background: var(--teal); }
.combat-sys { display: flex; align-items: center; gap: 4px; pointer-events: none; }
.combat-sys .mtn-sound { pointer-events: auto; }
.combat-pause { padding: 4px 10px; font-size: 18px; background: var(--panel-2); color: var(--cream); border-color: rgba(247, 236, 216, 0.25); box-shadow: none; }

/* hub: no hearts or kit in the snack bar (meta shows its own minimal HUD); pause + sound stay */
.combat-inhub .combat-tl, .combat-inhub .combat-bl, .combat-inhub .combat-boons, .combat-inhub .combat-special,
.combat-inhub .combat-dash, .combat-inhub .combat-tc, .combat-inhub .combat-slot, .combat-inhub .combat-clockbox { display: none; }

/* == touch: bottom pieces move into the buttons; the top bar holds pause, floor, map and the speaker == */
html.mtn-touch .combat-bl, html.mtn-touch .combat-boons, html.mtn-touch .combat-special, html.mtn-touch .combat-dash, html.mtn-touch .combat-sys,
html.mtn-touch .combat-slot, html.mtn-touch .combat-clock { display: none; }
html.mtn-touch .combat-floor { display: none; }
.combat-topbar { display: flex; align-items: center; gap: 6px; width: 100%; height: 100%; min-width: 0; }
.combat-tb-floor { flex: 1 1 auto; min-width: 0; text-align: center; font: 400 14px/1 var(--f-display); letter-spacing: 0.04em; color: var(--grease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combat-tb-clock { flex: none; font: 400 12px/1 var(--f-display); letter-spacing: 0.04em; color: rgba(247, 236, 216, 0.8); font-variant-numeric: tabular-nums; white-space: nowrap; }
.combat-tb-btn { padding: 4px 10px; font-size: 18px; background: var(--panel-2); color: var(--cream); border-color: rgba(247, 236, 216, 0.25); box-shadow: none; flex: none; }
.combat-topbar .mtn-sound { flex: none; flex-wrap: nowrap; }
@media (max-width: 400px) { .combat-topbar .mtn-sound-vol { width: 72px; } .combat-tb-btn { padding: 4px 8px; } }
.combat-tbtn-img { position: absolute; left: 18%; top: 14%; width: 64%; height: 64%; object-fit: contain; pointer-events: none; opacity: 0.92; }
.combat-zoneinfo { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); display: flex; gap: 4px; pointer-events: none; font: 400 13px/1 var(--f-display); }
.combat-zoneinfo .combat-boon { font-size: 11px; }
html.mtn-touch:not(.mtn-portrait) .combat-zoneinfo { display: none; }

/* == deep-fry Impact captions (21.3) == */
.combat-captions { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.combat-cap {
  position: absolute; transform-origin: center; white-space: nowrap;
  font: 400 clamp(16px, calc(34px * var(--as)), 34px) / 1 var(--f-meme); color: #FFFFFF; letter-spacing: 0.02em;
  -webkit-text-stroke: clamp(2px, calc(4px * var(--as)), 4px) #000000; paint-order: stroke fill; text-shadow: 0 0.06em 0 #000;
  animation: combat-cap 0.9s ease-out both;
}
.combat-cap.full { font-size: clamp(20px, calc(52px * var(--as)), 52px); -webkit-text-stroke-width: clamp(3px, calc(6px * var(--as)), 6px); }
@keyframes combat-cap { 0% { opacity: 0; scale: 1.5; } 12% { opacity: 1; scale: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .combat-cap { animation: none; }
  .combat-active.full { animation: none; }
  .combat-grease-fill, .combat-boss-fill { transition: none; }
}

/* == SHOP-BEAR v02: run clock (8.2) - under the minimap slot, right-aligned; the split flash under it == */
.combat-clockbox { position: absolute; right: 1.2%; top: calc(1.2% + 11% + 0.35em); display: flex; flex-direction: column; align-items: flex-end; gap: 0.2em; pointer-events: none; }
.combat-clock {
  font: 400 0.85em/1 var(--f-display); letter-spacing: 0.04em; color: rgba(247, 236, 216, 0.8); text-align: right;
  font-variant-numeric: tabular-nums; text-shadow: 0 0.1em 0 var(--ink), 0 0 0.3em var(--ink);
}
.combat-split {
  font: 400 0.7em/1 var(--f-display); letter-spacing: 0.04em; color: var(--grease); white-space: nowrap; text-align: right;
  font-variant-numeric: tabular-nums; text-shadow: 0 0.1em 0 var(--ink), 0 0 0.3em var(--ink); opacity: 0; transition: opacity 0.6s;
}
.combat-split.on { opacity: 1; transition: opacity 0.15s; }
.combat-split.gone { opacity: 0; }

/* == ability icons (7.5). MTNG.icons spans have px sizes inline; inside the HUD they scale with the HUD font (em) == */
.combat-hud .combat-ic { width: 1.75em !important; height: 1.75em !important; }
.combat-hud .combat-ic canvas, .combat-tbtn-ic .combat-ic canvas { display: block; width: 100% !important; height: 100% !important; }
.combat-slot { display: flex; flex-direction: column; align-items: center; gap: 0.1em; }
.combat-slot-ic { display: flex; align-items: center; justify-content: center; line-height: 0; }
.combat-slot-ic:empty { display: none; }
.combat-slot-cap { font-size: 0.5em; line-height: 1; letter-spacing: 0.05em; color: var(--cream); text-shadow: 0 0.1em 0 var(--ink); white-space: nowrap; }
.combat-special .combat-slot-ic { position: relative; z-index: 1; }
.combat-special .combat-ic { width: 1.5em !important; height: 1.5em !important; }
/* SHOT slot: napkin / crumb; with PAPER TOWEL ROLL a charge ring (fills while fire is held, solid while the beam fires) */
.combat-shot {
  --charge: 0; position: relative; width: 1.75em; height: 1.75em; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(11, 9, 7, 0.6); border: 0.09em solid var(--ink);
}
.combat-shot .combat-ic { width: 1.375em !important; height: 1.375em !important; position: relative; z-index: 1; }
.combat-shot::before {
  content: ""; position: absolute; inset: -0.2em; border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(#FFFFFF calc(var(--charge) * 360deg), rgba(247, 236, 216, 0.16) 0);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 61%); mask: radial-gradient(circle, transparent 58%, #000 61%);
}
.combat-shot.beam::before { opacity: 1; }
.combat-shot.firing::before { background: #FFFFFF; }
.combat-shot.firing { box-shadow: 0 0 0.45em rgba(255, 255, 255, 0.75); }
.combat-hud:not(.combat-icons) .combat-shot { width: 1.4em; height: 1.4em; }
.combat-slot.dim { opacity: 0.45; }
.combat-dash .combat-ic { width: 1.6em !important; height: 1.6em !important; }
/* boon chips: ability icon on the god-coloured chip */
.combat-boon.combat-boon-ic { display: inline-flex; align-items: center; justify-content: center; padding: 0.14em 0.22em; line-height: 0; }
.combat-boon.combat-boon-ic .combat-ic { width: 1.8em !important; height: 1.8em !important; }
.combat-boon.combat-boon-ic:not(.on) { background: rgba(247, 236, 216, 0.12); }
.combat-zoneinfo .combat-boon.combat-boon-ic .combat-ic { width: 14px !important; height: 14px !important; }
/* currencies + sauce + active */
.combat-c.combat-c-ic .combat-ic { width: 1.22em !important; height: 1.22em !important; }
.combat-sauce-ic { display: inline-flex; line-height: 0; }
.combat-sauce-ic:empty { display: none; }
.combat-sauce-ic .combat-ic { width: 1.125em !important; height: 1.125em !important; }
.combat-icon .combat-ic { width: 100% !important; height: 100% !important; }
.combat-active.combat-empty .combat-icon { opacity: 0.6; }
.combat-active.combat-empty .combat-active-bar:empty { display: none; }
/* touch buttons: icon (60 % of the button) above a small label */
.combat-tbtn-ic { position: absolute; left: 20%; top: 7%; width: 60%; height: 60%; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 1; line-height: 0; }
.combat-tbtn-ic:empty { display: none; }
.combat-tbtn-ic .combat-ic { width: 100% !important; height: 100% !important; }
.mtn-tbtn.combat-tbtn-hasic .mtn-tbtn-label { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font-size: 9px; letter-spacing: 0.04em; text-shadow: 0 1px 0 #0B0907; }

/* == SHOP-BEAR finisher 2 (combat-03.css) ==
   - the desktop run clock sits on a small dark pill: it stayed hard to read on the light steel walls of floors 3-5;
   - phone portrait: the clock in the top bar no longer squeezes the floor name (narrower volume slider, tighter gaps,
     floor name and clock one step smaller). */
.combat-clock { color: rgba(247, 236, 216, 0.96); background: rgba(11, 9, 7, 0.58); border-radius: 6px; padding: 0.12em 0.35em 0.08em; }
@media (max-width: 480px) {
  .combat-topbar { gap: 4px; }
  .combat-topbar .mtn-sound-vol { width: 44px; }
  .combat-tb-floor { font-size: 12px; letter-spacing: 0.02em; }
  .combat-tb-clock { font-size: 11px; letter-spacing: 0.02em; }
  .combat-tb-btn { padding: 4px 7px; }
}

/* == co-op (combat-04.css, MP-DESIGN 10.8): the ally panel. One row per ally: seat-colour chip with the character icon, name,
   small hearts, state tag, revive bar while OUT TO LUNCH. Seat colours are never enemy red. Names are text only. == */
.combat-allies { display: flex; flex-direction: column; align-items: flex-end; gap: 0.22em; pointer-events: none; margin-top: 0.3em; opacity: 0.95; }
.combat-allies.combat-allies-tl { align-items: flex-start; margin-top: 0.25em; }
.combat-ally {
  --seat: #F2B233; display: flex; align-items: center; gap: 0.3em; padding: 0.14em 0.4em 0.12em 0.18em; border-radius: 0.6em;
  background: rgba(11, 9, 7, 0.62); border: 0.09em solid var(--seat); font-size: 0.72em; line-height: 1; white-space: nowrap;
}
.combat-ally-chip {
  display: inline-flex; align-items: center; justify-content: center; width: 1.45em; height: 1.45em; flex: none; border-radius: 50%;
  background: var(--seat); color: var(--ink); font-size: 0.85em; line-height: 0; overflow: hidden;
}
.combat-ally-chip .combat-ic { width: 1.15em !important; height: 1.15em !important; }
.combat-hud .combat-ally-chip .combat-ic { width: 1.15em !important; height: 1.15em !important; }
.combat-ally-name { color: var(--seat); text-shadow: 0 0.08em 0 var(--ink), 0 0 0.25em var(--ink); max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.combat-ally-hearts { display: inline-flex; gap: 0.1em; }
.combat-ally-ht { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 0.12em; border: 0.06em solid var(--ink); background: var(--cream); }
.combat-ally-ht.half { background: linear-gradient(90deg, var(--cream) 50%, rgba(11, 9, 7, 0.7) 50%); }
.combat-ally-ht.empty { background: rgba(11, 9, 7, 0.6); border-color: rgba(247, 236, 216, 0.35); }
.combat-ally-ht.crouton { background: #D9A85A; }
.combat-ally-tag { padding: 0.1em 0.3em; border-radius: 0.3em; background: var(--cream); color: var(--ink); font-size: 0.8em; letter-spacing: 0.04em; }
.combat-ally.down .combat-ally-tag { background: var(--batter); }
.combat-ally.away { opacity: 0.6; }
.combat-ally-rev { display: inline-block; width: 3.2em; height: 0.42em; border-radius: 0.21em; background: rgba(247, 236, 216, 0.2); overflow: hidden; }
.combat-ally-rev i { display: block; height: 100%; width: 0; background: var(--seat); }
.combat-inhub .combat-allies { display: none; }
@media (prefers-reduced-motion: reduce) { .combat-ally-rev i { transition: none; } }

/* == combat-05 (final verification, 2026-10-16): the phone-portrait top bar ==
   The top bar's speaker is core's compact sound control (`.mtn-sound.compact`), and core-03.css sizes its slider with
   `.mtn-sound.compact .mtn-sound-vol { width: 96px }` - three classes, stronger than the two of the phone rules above
   (`.combat-topbar .mtn-sound-vol` 72 px at <= 400 px, 44 px at <= 480 px), which therefore never applied: the slider stayed
   96 px wide and long floor names (THE DRIVE-THRU, 3:12 AM) were cut in portrait. Same widths as designed, one class more. */
@media (max-width: 480px) {
  .combat-topbar .mtn-sound.compact .mtn-sound-vol { width: 44px; }
}
/* Narrow portrait phones (360 px is a common Android width): with the clock in the bar the longest name still lost about
   14 px. Tighter gaps and button padding and a 1 px smaller floor name give it room; nothing else changes. */
@media (max-width: 370px) {
  .combat-topbar { gap: 3px; }
  .combat-topbar .mtn-sound { gap: 4px; }
  .combat-tb-btn { padding: 4px 6px; }
  .combat-tb-floor { font-size: 11px; letter-spacing: 0.01em; }
}

/* == combat-06 (release E+F+G, G1): THE STAT ROW ==
   Desktop and landscape: a 2 x 2 block (DMG RATE / SPD LUCK) to the right of the hearts / currencies column (left: 100 % of that
   column), so it adds no height to the top-left band (the HUD stays inside the top wall row, under 12 % of the arena height).
   It never takes the mouse on desktop (shooting goes through); touch devices tap it for the STATS panel. */
.combat-tc { width: 40%; }
#ui .combat-statrow { pointer-events: none; }   /* core-03: "#ui button" is (1,0,1): this needs (1,1,0) to win (ENGINE-CONTRACT-v06 W.6) */
.combat-statrow {
  position: absolute; left: 100%; top: 0; margin: 0 0 0 0.55em; padding: 0.22em 0.4em 0.2em; display: grid; grid-template-columns: auto auto;
  column-gap: 0.5em; row-gap: 0.1em; align-items: center; font: 400 clamp(8.5px, calc(11.5px * var(--as)), 12px) / 1.1 var(--f-display);
  letter-spacing: 0.03em; color: var(--cream); background: rgba(11, 9, 7, 0.5); border: 1px solid rgba(247, 236, 216, 0.18); border-radius: 0.5em;
  box-shadow: none; text-transform: none; min-width: 0; min-height: 0; white-space: nowrap; pointer-events: none; cursor: default; opacity: 0.94;
}
html.mtn-touch #ui .combat-statrow { pointer-events: auto; cursor: pointer; }
.combat-statrow:focus-visible { outline: 2px solid var(--batter); outline-offset: 2px; }
.combat-statrow.open { border-color: var(--batter); }
.combat-statrow.lastcall { border-color: #E2332B; box-shadow: 0 0 0.5em rgba(226, 51, 43, 0.55); }
.combat-st { display: inline-flex; align-items: center; gap: 0.25em; padding: 0 0.15em; border-radius: 0.3em; transition: background-color 0.2s, color 0.2s; }
.combat-hud .combat-st .combat-ic, .combat-st .combat-ic { width: 1.25em !important; height: 1.25em !important; flex: none; }
.combat-st .combat-ic canvas { display: block; width: 100% !important; height: 100% !important; }
.combat-st-lab { font-style: normal; font-size: 0.8em; color: var(--grease); }
.combat-st-v { font-weight: 400; font-variant-numeric: tabular-nums; min-width: 2.1em; text-shadow: 0 0.08em 0 var(--ink); }
.combat-st.up { background: rgba(91, 209, 106, 0.38); color: #D8FFD8; }
.combat-st.down { background: rgba(226, 51, 43, 0.42); color: #FFE0DC; }
@media (prefers-reduced-motion: reduce) { .combat-st { transition: none; } }
/* portrait phones: the arena's top band is ~26 px tall at 360 px - the row sits at the top-left of the control zone instead,
   under the arena, at a fixed readable size; it is a button there (tap = the STATS panel) */
html.mtn-touch.mtn-portrait .combat-statrow {
  position: fixed; left: 8px; top: calc(var(--zy) + 6px); margin: 0; display: flex; gap: 6px; font-size: 11px; padding: 4px 7px;
  background: rgba(11, 9, 7, 0.72); z-index: 3;
}
html.mtn-touch.mtn-portrait.mtn-lefthanded .combat-statrow { left: auto; right: 8px; }
html.mtn-touch.mtn-portrait .combat-st .combat-ic { width: 14px !important; height: 14px !important; }
html.mtn-touch.mtn-portrait .combat-st-v { min-width: 0; }
.combat-inhub .combat-statrow { display: none; }

/* == combat-06: THE STATS PANEL (the in-run overlay over the arena, and META's embedded pause-screen version) == */
.combat-stats { color: var(--cream); font: 400 13px/1.35 var(--f-body, system-ui, -apple-system, "Segoe UI", sans-serif); text-align: left; }
.combat-stats-ov {
  position: fixed; left: calc(var(--ax) + var(--aw) / 2); top: calc(var(--ay) + var(--ah) / 2); transform: translate(-50%, -50%);
  width: min(600px, calc(var(--aw) - 16px), 96vw); max-height: min(calc(var(--ah) - 16px), 92vh); overflow: auto; z-index: 6;
  padding: 10px 12px; background: rgba(11, 9, 7, 0.86); border: 2px solid rgba(242, 178, 51, 0.6); border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); pointer-events: none;
}
.combat-stats-ov.tap { pointer-events: auto; cursor: pointer; }
html.mtn-touch.mtn-portrait .combat-stats-ov {
  top: calc(var(--ay) + 6px); transform: translateX(-50%); width: calc(100vw - 16px); max-height: calc(100vh - var(--ay) - 12px);
}
.combat-stats-embed { width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 10px; background: rgba(11, 9, 7, 0.55); border-radius: 10px; }
.combat-stats-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.combat-stats-head .combat-ic, .combat-stats-head .mtn-icon { width: 30px !important; height: 30px !important; flex: none; }
.combat-stats-wname { display: flex; flex-direction: column; min-width: 0; }
.combat-stats-wname b { font: 400 18px/1.1 var(--f-display); letter-spacing: 0.04em; color: var(--batter); }
.combat-stats-wname i { font-style: normal; font-family: var(--f-type, inherit); color: rgba(247, 236, 216, 0.8); font-size: 12px; }
.combat-stats-wdesc { font-size: 12px; color: rgba(247, 236, 216, 0.85); margin-bottom: 6px; }
.combat-stats-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; }
@media (max-width: 560px) { .combat-stats-body { grid-template-columns: minmax(0, 1fr); } }
.combat-stats-nums { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-content: start; }
.combat-stats-row { display: contents; }
.combat-stats-row dt { color: rgba(247, 236, 216, 0.78); white-space: nowrap; }
.combat-stats-row dd { margin: 0; font: 400 14px/1.35 var(--f-display); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; color: var(--cream); }
.combat-stats-row.on dt, .combat-stats-row.on dd { color: #FFD166; }
.combat-stats-build h4 { margin: 2px 0 3px; font: 400 13px/1.2 var(--f-display); letter-spacing: 0.06em; color: var(--batter); }
.combat-stats-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.combat-stats-list li { display: flex; align-items: flex-start; gap: 6px; }
.combat-stats-list li .combat-ic, .combat-stats-list li .mtn-icon, .combat-stats-itic { width: 22px !important; height: 22px !important; flex: none; }
.combat-stats-it { display: flex; flex-direction: column; min-width: 0; }
.combat-stats-it b { font: 400 12px/1.2 var(--f-display); letter-spacing: 0.04em; }
.combat-stats-it span { font-size: 11.5px; color: rgba(247, 236, 216, 0.8); }
.combat-stats-none, .combat-stats-empty { font-size: 12px; color: rgba(247, 236, 216, 0.6); margin-bottom: 4px; }

/* == combat-07 (release H, 2026-10-25; RELEASE-H-DESIGN-v01 H12): THE HUD, BIGGER AND CLEARER ==
   HUD SCALE (settings key hudScale: 100 / 125 / 150 / 175 %; unset 125 % on desktop, 115 % on phones) reaches every rule below
   through --hud-s (the scale in use; combat-hud-09 sets it on <html>) and --hud-k (1.3 x --hud-s: at 100 % every HUD text is 30 %
   bigger than release E+F+G). The HUD's base font keeps core's arena rule (clamp(9px, 16px x arena scale, 16px)) x --hud-k;
   icons are 1.95 em (>= 40 px on desktop at 100 %), hearts 1.42 em, numbers bold with a dark outline, every panel sits on a 70 %
   dark backdrop, labels in plain words stand next to the icons (DMG 12.4, CRUMBS 137, SHOT / DASH / SPECIAL under the boons).
   combat-hud-09's layout pass keeps the top and bottom bands inside 18 % of the arena height each and the play centre clear
   (it steps the scale down when needed, never below 100 %) and places the top-centre column. */
:root { --hud-s: 1.25; --hud-k: 1.625; --hud-bg: rgba(11, 9, 7, 0.7); --hud-line: rgba(247, 236, 216, 0.2); }
.combat-hud { font-size: calc(clamp(9px, calc(16px * var(--as)), 16px) * var(--hud-k)); }
/* numbers: bold with a dark outline */
.combat-c b, .combat-st-v, .combat-clock, .combat-split, .combat-boon-p, .combat-thermo, .combat-tb-clock {
  font-weight: 700; -webkit-text-stroke: 0.16em var(--ink); paint-order: stroke fill; letter-spacing: 0.04em;
}
.combat-timer { font-weight: 700; }

/* top-left: hearts, grease, smug, currencies (+ the stat row to its right) on one dark panel */
.combat-tl {
  gap: 0.2em; max-width: none; opacity: 1; padding: 0.28em 0.45em 0.32em;
  background: var(--hud-bg); border: 1px solid var(--hud-line); border-radius: 0.45em;
}
.combat-hearts { gap: 0.14em; max-width: 15.8em; }
.combat-ht { width: 1.42em; height: 1.42em; border-width: 0.08em; }
.combat-grease { width: 6.5em; height: 0.42em; }
.combat-smug { font-size: 0.85em; }
.combat-cur { display: grid; grid-template-columns: auto auto; column-gap: 0.75em; row-gap: 0.05em; font-size: 0.92em; color: var(--grease); text-shadow: none; }
.combat-c { gap: 0.28em; }
.combat-c b { color: var(--cream); font-size: 1em; }
.combat-c.golden { font-size: 1em; color: #FFD166; }
.combat-c.golden b { color: #FFD166; }
.combat-ci { width: 0.95em; height: 0.95em; }
.combat-c.combat-c-ic .combat-ic { width: 1.2em !important; height: 1.2em !important; }
.combat-c-lab { font-style: normal; font-size: 0.66em; letter-spacing: 0.07em; color: rgba(247, 236, 216, 0.86); }
.combat-tl-loop { font-size: 0.66em !important; }

/* the stat row: icon + plain word + number ("DMG 12.4"), a 2 x 2 block right of the hearts panel */
.combat-statrow {
  margin: 0 0 0 0.4em; padding: 0.3em 0.5em; column-gap: 0.7em; row-gap: 0.12em; font: 400 1em/1.05 var(--f-display);
  background: var(--hud-bg); border: 1px solid var(--hud-line); border-radius: 0.45em; opacity: 1;
}
.combat-st { gap: 0.3em; padding: 0 0.12em; }
.combat-hud .combat-st .combat-ic, .combat-st .combat-ic { width: 1.95em !important; height: 1.95em !important; }
.combat-st-lab { display: inline; font-style: normal; font-size: 0.6em; letter-spacing: 0.07em; color: var(--grease); }
.combat-st-v { font-size: 0.92em; min-width: 2.4em; }

/* top-centre: floor name, boss bar, timer, thermometer, buffs (combat-hud-09 sets left / width / top) */
.combat-tc { gap: 0.22em; }
.combat-floor { padding: 0.08em 0.6em 0.04em; background: var(--hud-bg); border-radius: 0.45em; text-shadow: 0 0.08em 0 var(--ink); }
.combat-boss { box-sizing: border-box; padding: 0.16em 0.5em 0.3em; background: var(--hud-bg); border: 1px solid var(--hud-line); border-radius: 0.45em; }
.combat-boss-name { font-size: 0.92em; letter-spacing: 0.04em; -webkit-text-stroke: 0.12em var(--ink); paint-order: stroke fill; }
.combat-boss-bar { height: 0.8em; margin-top: 0.14em; }
.combat-timer { font-size: 0.82em; }
.combat-thermo { font-size: 0.72em; background: var(--hud-bg); }
.combat-buffs { gap: 0.32em; flex-wrap: wrap; justify-content: center; }
.combat-buff { font-size: 0.66em; padding: 0.1em 0.45em; font-weight: 700; }

/* top-right: the run clock (+ split flash) and the co-op ally panel under WORLD's minimap */
.combat-clock { background: var(--hud-bg); padding: 0.14em 0.4em 0.08em; border-radius: 0.4em; }
.combat-ally { background: var(--hud-bg); }
.combat-ally-name { max-width: 7em; }

/* bottom-left (desktop): the active item (icon, name, charge) and the sauce packet */
.combat-bl { gap: 0.5em; opacity: 1; }
.combat-active, .combat-sauce { background: var(--hud-bg); border-color: var(--hud-line); padding: 0.22em 0.42em; gap: 0.32em; }
.combat-icon { width: 2.2em; height: 2.2em; }
.combat-active-name { font-size: 0.58em; letter-spacing: 0.05em; color: var(--cream); white-space: nowrap; max-width: 8em; overflow: hidden; text-overflow: ellipsis; }
.combat-seg { width: 0.45em; height: 0.85em; }
.combat-sauce-sw { width: 1em; height: 1.3em; }
.combat-sauce-ic .combat-ic { width: 1.95em !important; height: 1.95em !important; }
.combat-sauce-name { font-size: 0.72em; }
.combat-glyph { font-size: 0.62em; }

/* bottom-right (desktop): boons (with their slot names), SPECIAL, SHOT, DASH, pause + sound on one dark panel */
.combat-br { gap: 0.5em; opacity: 1; padding: 0.22em 0.5em; background: var(--hud-bg); border: 1px solid var(--hud-line); border-radius: 0.5em; }
.combat-boons { gap: 0.3em; align-items: flex-start; }
.combat-boon-slot { display: flex; flex-direction: column; align-items: center; gap: 0.08em; }
.combat-boon.combat-boon-ic { font-size: 1em; padding: 0.1em; border-radius: 0.35em; }
.combat-boon.combat-boon-ic .combat-ic { width: 1.95em !important; height: 1.95em !important; }
.combat-boon:not(.combat-boon-ic) { font-size: 0.72em; }
.combat-boon-p { font-size: 0.85em; line-height: 2.2; }
.combat-special { width: 2.55em; height: 2.55em; }
.combat-special .combat-ic { width: 1.95em !important; height: 1.95em !important; }
.combat-shot { width: 2.45em; height: 2.45em; }
.combat-shot .combat-ic { width: 1.95em !important; height: 1.95em !important; }
.combat-dash .combat-ic { width: 1.95em !important; height: 1.95em !important; }
.combat-slot-cap { font-size: 0.56em; letter-spacing: 0.06em; }
.combat-pip { width: 0.72em; height: 0.72em; }
.combat-pause { font-size: calc(18px * var(--hud-s)); padding: calc(4px * var(--hud-s)) calc(10px * var(--hud-s)); }
.combat-hud:not(.combat-icons) .combat-special::before { font-size: 0.6em; }

/* phones in landscape: the same bands inside the arena; numbers without their words (the STATS panel has them), smaller icons;
   the top bar's floor name and clock grow with the scale (portrait keeps release E+F+G's: the 44 px bar is full at 360 px) */
html.mtn-touch:not(.mtn-portrait) .combat-c-lab { display: none; }
html.mtn-touch:not(.mtn-portrait) .combat-cur { display: flex; flex-wrap: wrap; gap: 0.6em; }
html.mtn-touch:not(.mtn-portrait) .combat-st .combat-ic { width: 1.35em !important; height: 1.35em !important; }
html.mtn-touch:not(.mtn-portrait) .combat-statrow { padding: 0.2em 0.4em; row-gap: 0.06em; }
html.mtn-touch:not(.mtn-portrait) .combat-st-v { font-size: 0.97em; }   /* >= 1.3 x E+F+G's 8.5 px at 100 % */
html.mtn-touch:not(.mtn-portrait) .combat-tb-floor { font-size: calc(14px * 1.3 * var(--hud-s)); }
html.mtn-touch:not(.mtn-portrait) .combat-tb-clock { font-size: calc(12px * 1.3 * var(--hud-s)); }

/* phones in portrait: hearts, currencies, stat row and allies form one strip at the top of the control zone, right under the
   arena (the arena keeps the top-centre column and WORLD's minimap); the boon chips sit under the strip (combat-hud-09) */
html.mtn-touch.mtn-portrait .combat-tl {
  position: fixed; left: 8px; right: 8px; top: calc(var(--zy) + 6px); z-index: 3; font-size: calc(11px * var(--hud-k));
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.7em; row-gap: 0.3em; align-items: start;
}
html.mtn-touch.mtn-portrait .combat-hearts, html.mtn-touch.mtn-portrait .combat-grease, html.mtn-touch.mtn-portrait .combat-smug,
html.mtn-touch.mtn-portrait .combat-allies { grid-column: 1 / -1; }
html.mtn-touch.mtn-portrait .combat-hearts { max-width: none; }
html.mtn-touch.mtn-portrait .combat-cur { grid-column: 1; display: flex; flex-direction: column; row-gap: 0.1em; }
html.mtn-touch.mtn-portrait .combat-statrow {
  grid-column: 2; justify-self: end; position: static; margin: 0; display: grid; grid-template-columns: auto auto;
  font-size: 1em; padding: 0.25em 0.45em; column-gap: 0.6em; row-gap: 0.1em; background: rgba(11, 9, 7, 0.55);
}
html.mtn-touch.mtn-portrait .combat-st .combat-ic { width: 1.4em !important; height: 1.4em !important; }
html.mtn-touch.mtn-portrait .combat-st-v { min-width: 2em; font-size: 1.04em; }   /* >= 1.3 x E+F+G's 11 px at 100 % */
/* the arena of a portrait phone is ~225 px tall: its top-centre column (boss bar ...) stops growing at 14.5 px so it stays inside
   the 18 % band at every scale (the strip under the arena keeps growing) */
html.mtn-touch.mtn-portrait .combat-tc { font-size: min(1em, 14.5px); }
.combat-zoneinfo { font: 400 calc(13px * var(--hud-k)) / 1 var(--f-display); gap: 0.35em; }
.combat-zoneinfo .combat-boon { font-size: 0.85em; }
.combat-zoneinfo .combat-boon.combat-boon-ic .combat-ic { width: 1.5em !important; height: 1.5em !important; }

/* the STATS panel (hold C / tap the stat row; META's pause screen) grows with the HUD */
.combat-stats { font-size: calc(13px * var(--hud-k)); }
.combat-stats-ov { width: min(calc(600px * var(--hud-s)), calc(var(--aw) - 16px), 96vw); background: rgba(11, 9, 7, 0.88); }
.combat-stats-embed { font-size: min(calc(13px * var(--hud-k)), 19px); }
.combat-stats-head .combat-ic, .combat-stats-head .mtn-icon { width: 2.3em !important; height: 2.3em !important; }
.combat-stats-wname b { font-size: 1.38em; }
.combat-stats-wname i, .combat-stats-wdesc, .combat-stats-none, .combat-stats-empty { font-size: 0.92em; }
.combat-stats-row dd { font: 400 1.08em/1.35 var(--f-display); letter-spacing: 0.03em; }
.combat-stats-build h4 { font-size: 1em; }
.combat-stats-list li .combat-ic, .combat-stats-list li .mtn-icon, .combat-stats-itic { width: 1.7em !important; height: 1.7em !important; }
.combat-stats-it b { font-size: 0.92em; }
.combat-stats-it span { font-size: 0.88em; }

/* == combat-07 continued (release H, the main session's review of try1 + "Additions" H18 / H22; combat-hud-09) ==
   the doors stay clear (combat-hud-09's layout pass places the stat row, the top-centre column and the boon chips), the boss name
   shrinks instead of running out of a narrow column, the floor name may wrap in a narrow column; the boon chips in the bottom-left
   group get the panel look; portrait phones: the boon chips are the strip's last row (the old control-zone copy is gone); H18 the
   dash slot's refill ring and glow; H22 the "have/cap" counters and their gold when full. */
.combat-boss-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combat-tc .combat-floor { white-space: normal; text-align: center; max-width: 100%; line-height: 1.1; }
.combat-bl > .combat-boons { align-self: flex-end; padding: 0.22em 0.5em; background: var(--hud-bg); border: 1px solid var(--hud-line); border-radius: 0.5em; }
html.mtn-touch.mtn-portrait .combat-zoneinfo { display: none; }
.combat-tl-boons { display: none; }
html.mtn-touch.mtn-portrait .combat-tl-boons {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.35em 0.6em; padding-top: 0.3em;
  border-top: 1px solid var(--hud-line); font-size: 0.92em;
}
html.mtn-touch.mtn-portrait .combat-tl-boons .combat-boon { font-size: 0.85em; }
html.mtn-touch.mtn-portrait .combat-tl-boons .combat-boon.combat-boon-ic { font-size: 1em; padding: 0.08em; border-radius: 0.3em; }
html.mtn-touch.mtn-portrait .combat-tl-boons .combat-boon.combat-boon-ic .combat-ic { width: 1.6em !important; height: 1.6em !important; }
html.mtn-touch.mtn-portrait .combat-tl-boons .combat-slot-cap { font-size: 0.62em; }
html.mtn-touch.mtn-portrait .combat-tl-boons .combat-boon-p { line-height: 1.75; }
/* H18: the one dash cooldown fills a ring around the dash icon; when it is over every pip lights up at once with a teal glow */
.combat-dash .combat-slot-ic { display: inline-flex; border-radius: 50%; padding: 0.14em; }
.combat-dash.recharging .combat-slot-ic { background: conic-gradient(var(--teal) calc(var(--rec, 0) * 360deg), rgba(11, 9, 7, 0.78) 0); box-shadow: 0 0 0 0.07em var(--ink); }
.combat-dash.refill .combat-slot-ic { animation: combat-dash-refill 0.5s ease-out; }
.combat-dash.refill .combat-pip.on { box-shadow: 0 0 0.45em var(--teal); }
@keyframes combat-dash-refill { 0% { box-shadow: 0 0 0 0 rgba(127, 179, 172, 0.95); } 100% { box-shadow: 0 0 0 0.75em rgba(127, 179, 172, 0); } }
@media (prefers-reduced-motion: reduce) { .combat-dash.refill .combat-slot-ic { animation: none; box-shadow: 0 0 0 0.12em var(--teal); } }
/* H22: "have/cap" (the cap a little smaller), gold when the bag is full; the POP button's badge too */
.combat-c-cap { font-size: 0.72em; opacity: 0.85; letter-spacing: 0.02em; }
.combat-c.full b, .combat-c.full .combat-c-cap { color: #FFD166; opacity: 1; }
.combat-c.full { text-shadow: 0 0 0.4em rgba(255, 209, 102, 0.55); }
.mtn-tbtn.combat-full .mtn-tbtn-badge { background: #FFD166; color: var(--ink); }
/* the empty buffs row takes no gap in the column (a portrait arena's band is 40 px); the stat row a little narrower (1280 px arenas) */
.combat-buffs:empty { display: none; }
.combat-statrow { column-gap: 0.5em; }
.combat-st-v { min-width: 2.05em; }
/* the STATS panel: one column in META's narrow pause-screen embed and in any panel under 640 px wide (the bigger HUD text made the
   two columns run into each other) */
.combat-stats-ov { container-type: inline-size; }   /* only the overlay (it has its own width): an embed sized by its content keeps its size */
.combat-stats-embed .combat-stats-body { grid-template-columns: minmax(0, 1fr); }
@container (max-width: 640px) { .combat-stats-ov .combat-stats-body { grid-template-columns: minmax(0, 1fr); } }
/* a landscape phone with no room for the stat row in the top band: it sits in the bottom band right of the S door and is no button
   there (a thumb aiming from that corner must never open the STATS panel; the pause menu has it) */
html.mtn-touch #ui .combat-statrow[data-place="bottom"] { pointer-events: none; }

/* == release H integration (2026-10-25): the portrait "Turn your phone sideways" hint (core-03.css, bottom-left while the first-use
   hints show) sat on the SAUCE button with H12's bigger buttons - it moves above the bottom button row (SAUCE / POP / SCOOT) and ends
   left of the NICE / active column (mirrored for the left-handed layout by core-03's own rule) == */
html.mtn-touch.mtn-portrait #touch.hints::after { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100% - 212px); }

/* == combat-08 (release I, 2026-10-26; RELEASE-I-DESIGN-v01 I1): the MUSIC switch + MUSIC volume (combat-sound-01) ==
   The switch looks like core's speaker (a pill, the batter rim while MUSIC is on); off: a red slash over the note; SOUND off: the
   whole MUSIC control dims (music plays only while SOUND is on - it still switches). The slider is the speaker's twin. */
.combat-music { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; pointer-events: auto; }
.combat-music-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.25em; min-width: 44px; min-height: 44px;
  padding: 6px 12px; border-radius: 22px; cursor: pointer; font: 400 16px/1 var(--f-display); letter-spacing: 0.04em; color: var(--cream);
  background: var(--panel-2); border: 2px solid rgba(247, 236, 216, 0.25); box-shadow: none; text-transform: none;
}
.combat-music.on .combat-music-btn { border-color: var(--batter); color: var(--grease); }
.combat-music-btn:focus-visible, .combat-music-vol:focus-visible { outline: 3px solid var(--batter); outline-offset: 2px; }
.combat-music-ic { display: inline-block; font-size: 1.05em; line-height: 1; }
.combat-music:not(.on) .combat-music-ic { opacity: 0.55; }
.combat-music:not(.on) .combat-music-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1.5em; height: 0.16em; margin: -0.08em 0 0 -0.75em; border-radius: 0.08em;
  background: #E2332B; box-shadow: 0 0 0 0.06em var(--ink); transform: rotate(-38deg); pointer-events: none;
}
.combat-music-vol { width: 96px; min-height: 44px; accent-color: var(--batter); cursor: pointer; background: transparent; }
.combat-music:not(.on) .combat-music-vol { opacity: 0.5; }
.combat-music.snd-off { opacity: 0.62; }
/* desktop HUD: the pause + sound corner is a small mixer - the speaker row, the MUSIC row right under it (same widths); both rows
   grow with HUD SCALE (--hud-s; combat-hud-09's layout pass keeps the bottom band inside its 18 %) */
.combat-mixer { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: calc(3px * var(--hud-s)); pointer-events: none; }
.combat-mixer > .mtn-sound, .combat-mixer > .combat-music { pointer-events: auto; flex-wrap: nowrap; justify-content: flex-start; gap: calc(6px * var(--hud-s)); }
.combat-sys .combat-mixer .mtn-sound-btn, .combat-sys .combat-music-btn {
  min-width: calc(38px * var(--hud-s)); min-height: calc(36px * var(--hud-s)); padding: 0 calc(8px * var(--hud-s)); border-radius: calc(18px * var(--hud-s));
  font-size: calc(15px * var(--hud-s)); line-height: 1;
}
.combat-sys .combat-mixer .mtn-sound-vol, .combat-sys .combat-music-vol { width: calc(76px * var(--hud-s)); min-height: calc(30px * var(--hud-s)); }
/* touch: the top bar's MUSIC switch after the speaker (landscape only - a portrait bar has no room left: the pause screen has the row);
   the slider from 760 px on (a narrower landscape bar keeps the switch alone) */
.combat-topbar .combat-music { flex: none; gap: 6px; }
.combat-topbar .combat-music-btn { padding: 4px 10px; font-size: calc(16px * var(--hud-s)); }
html.mtn-portrait .combat-topbar .combat-music { display: none; }
@media (max-width: 759px) { .combat-topbar .combat-music-vol { display: none; } }
/* META's pause screens: the MUSIC row right under core's speaker row ("MUSIC: ON" + the slider), TEXT SIZE like META's rows */
.meta-pause-sound.combat-has-music { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; }
.combat-music-pause { flex-basis: 100%; justify-content: center; gap: 8px; }
.combat-music-pause .combat-music-btn { font-size: calc(16px * var(--meta-ts, 1)); }
.combat-music-pause .combat-music-vol { width: 112px; }
/* META's title (combat-sound-01 adds the row only where it fits): the speaker row, then the MUSIC row, centred */
.meta-title-sound.combat-has-music { display: flex; flex-direction: column; align-items: center; row-gap: 8px; }

/* == combat-08 (release I, 2026-10-26; RELEASE-I-DESIGN-v01 I7): the bear's scare / the punch barrage, full screen (combat-scare-01)
   A canvas over the whole viewport (the arena, the HUD, the touch controls) while it plays on the caught player's own client; it
   never takes a touch or a click, and it hides while a menu screen is on top. Reduced motion is the part's own (a still image). */
.combat-scare { position: fixed; inset: 0; z-index: 4; pointer-events: none; display: none; contain: strict; }
.combat-scare.on { display: block; }
.combat-scare-cv { display: block; width: 100%; height: 100%; }

/* == combat-08 (release I, found in passing on the pause screen's MUSIC row): the HUD is ONE stacking context ==
   Its z-indexed pieces - the portrait strip under the arena (z 3: hearts, currencies, the stat row) and the slot icons (z 1) - were
   painted over META's screens in release H (a phone's pause menu had the strip across SETTINGS / ABANDON RUN / SAVE & QUIT). Isolated,
   the HUD keeps their order inside it, and a screen added to #ui later (pause, settings, boon picker, boss intro) covers all of it. */
.combat-hud { isolation: isolate; }
