:root {
  --ink: #0B0A12;
  --void: #1B1140;
  --violet: #6C2BD9;
  --blue: #4A6CF7;
  --crimson: #C81E3C;
  --gold: #E8B23A;
  --green: #3BE0A8;
  --bone: #F2E9D8;
  --hud-h: 84px;
  --ctrl-h: 136px;
  --pad: max(14px, env(safe-area-inset-left), env(safe-area-inset-right));
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #050409; overflow: hidden; }
body {
  color: var(--bone);
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: manipulation;
}
button { font-family: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
#app { position: fixed; inset: 0; overflow: hidden; background: #050409; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.kicker {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: .28em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold);
}
.small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #b9b0cb; }

/* ---------- title ---------- */
.screen { position: absolute; inset: 0; z-index: 20; }
#titleScreen {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--pad);
  background:
    linear-gradient(90deg, rgba(5,4,10,.84) 0%, rgba(7,5,15,.6) 42%, rgba(7,5,15,.08) 72%, rgba(7,5,15,.38) 100%);
}
.title-copy { max-width: 720px; position: relative; z-index: 2; }
.logo {
  margin: 14px 0 8px;
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  font-size: clamp(54px, 10.5vw, 150px);
  line-height: .78;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow:
    5px 6px 0 var(--crimson),
    -2px -2px 0 #12060c,
    0 0 26px rgba(108,43,217,.55);
  transform: skewX(-4deg);
}
.logo span { display: block; }
.logo .l2 { position: relative; display: inline-block; padding-right: .12em; }
.logo .slash {
  position: absolute;
  right: .02em; top: .02em;
  width: .10em; height: .96em;
  background: #0a0509;
  transform: rotate(19deg);
  box-shadow: 0 0 0 .018em var(--ink), 0 0 12px rgba(200,30,60,.8);
  pointer-events: none;
}
.tagline {
  margin: 18px 0 22px;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  letter-spacing: .02em;
  color: #d8cfe6;
  max-width: 34ch;
  line-height: 1.35;
}
.title-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.big-btn, .ghost-btn {
  border: 2px solid var(--bone);
  background: transparent;
  color: var(--bone);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 14px;
  padding: 15px 22px;
  border-radius: 0;
  position: relative;
  transition: none;
}
.big-btn {
  background: var(--crimson);
  border-color: var(--bone);
  box-shadow: 4px 4px 0 #12060c, 0 0 0 1px var(--ink);
  color: #fff;
}
.big-btn:hover { background: #e02a4c; }
.big-btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 #12060c; }
.ghost-btn { border-color: #6a5d84; color: #ddd4e8; }
.ghost-btn:hover { border-color: var(--bone); color: var(--bone); }
.big-btn .key {
  display: inline-block; margin-left: 12px; font-size: 10px; letter-spacing: .1em;
  border: 1px solid rgba(255,255,255,.5); padding: 2px 5px; vertical-align: 2px;
}
.ghost-btn.small-btn, .big-btn.small-btn { padding: 11px 16px; font-size: 12px; }
.big-btn:disabled { background: #241d33; color: #6e6484; border-color: #3a3050; box-shadow: none; cursor: default; }
.title-foot {
  margin-top: 22px; color: #9a8fb0; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; max-width: 56ch; line-height: 1.7;
}
.title-side { align-self: flex-end; margin-bottom: 4vh; }
.stamp {
  font-family: "Chakra Petch", monospace;
  border: 2px solid rgba(200,30,60,.55);
  color: rgba(242,233,216,.45);
  padding: 12px;
  letter-spacing: .3em;
  font-size: 10px;
  line-height: 1.9;
  transform: rotate(-3deg);
  text-align: center;
}

/* ---------- select ---------- */
#selectScreen {
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(5,4,10,.62) 0%, rgba(7,5,15,.30) 22%, rgba(7,5,15,.16) 58%, rgba(5,4,10,.58) 100%),
    repeating-linear-gradient(0deg, rgba(242,233,216,.022) 0 1px, transparent 1px 4px);
  padding: var(--pad);
  padding-top: max(10px, env(safe-area-inset-top));
}
.sel-head { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; padding: 4px 0 10px; border-bottom: 1px solid #2a2550; }
.back-btn {
  width: 42px; height: 42px; background: transparent; border: 1px solid #4b3f63;
  color: var(--bone); font-size: 20px; line-height: 1;
}
.sel-title { flex: 1; min-width: 0; text-shadow: 0 2px 10px rgba(5,4,10,.9); }
.picks { display: flex; align-items: baseline; gap: 10px; font-family: "Unbounded", sans-serif; font-size: clamp(15px,2.2vw,22px); font-weight: 900; letter-spacing: -.02em; }
.picks #pickLeft { color: var(--bone); }
.picks #pickRight { color: #cbbfe0; }
.picks .vs { font-family: "Chakra Petch", monospace; font-size: 12px; color: var(--crimson); letter-spacing: .2em; }
.sel-side { text-align: right; }
.stage-label { font-size: 9px; letter-spacing: .22em; color: #9d92b2; }
.stage-row { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; justify-content: flex-end; }
.stage-chip {
  border: 1px solid #3d3357; background: transparent; color: #a99dbe;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px;
}
.stage-chip.on { border-color: var(--gold); color: var(--gold); background: rgba(232,178,58,.08); }
.roster {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px; padding: 12px 2px 14px; align-content: start;
}
.plate {
  position: relative; padding: 0; border: 1px solid #332a4d; background: #0c0916;
  aspect-ratio: 220 / 260; overflow: hidden; display: block;
  box-shadow: inset 0 -42px 32px rgba(5,4,10,.55), inset 0 24px 30px rgba(5,4,10,.28);
}
.plate img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 28%;
  filter: saturate(1.06) contrast(1.02);
}
.plate canvas.fallback { width: 100% !important; height: 100% !important; display: none; }
.plate .tag, .plate .ep { z-index: 2; }
.plate::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(242,233,216,.08); pointer-events: none;
}
.plate .tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 6px 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(0deg, rgba(5,4,10,.96), rgba(5,4,10,0));
  text-align: left;
}
.plate .ep {
  position: absolute; left: 6px; top: 5px; font-size: 7px; letter-spacing: .16em;
  color: rgba(242,233,216,.55); text-transform: uppercase;
}
.plate:hover { border-color: #6a5d84; }
.plate.focused { outline: 2px solid var(--gold); outline-offset: 2px; }
.plate.on {
  border-color: var(--bone);
  box-shadow: 0 0 0 2px var(--ink), 0 0 24px var(--aura, rgba(108,43,217,.55)), inset 0 0 18px rgba(5,4,10,.3);
  animation: jolt .18s steps(2, end) 1;
}
@keyframes jolt {
  0% { transform: translate(-4px,-3px) scale(1.04) rotate(-.6deg); }
  60% { transform: translate(2px,1px) scale(1.01) rotate(.2deg); }
  100% { transform: translate(0,0) scale(1); }
}
.plate.p1::before, .plate.p2::before {
  position: absolute; z-index: 3; top: 4px; right: 4px; font-family: "Chakra Petch", monospace;
  font-size: 10px; font-weight: 700; padding: 2px 5px; color: #0a0710;
}
.plate.p1::before { content: "P1"; background: var(--gold); }
.plate.p2::before { content: "P2"; background: var(--crimson); color: #fff; }
.sel-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 10px; border-top: 1px solid #2a2550; flex-wrap: wrap; }
.sel-hint {
  margin-right: auto; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: #b9aecd; text-shadow: 0 1px 6px rgba(5,4,10,.9); line-height: 1.5;
}

/* ---------- HUD ---------- */
#hud {
  position: absolute; inset: 0 0 auto 0; z-index: 15;
  display: flex; align-items: flex-start; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) var(--pad) 0;
  pointer-events: none;
}
.hud-side { flex: 1 1 0; min-width: 0; }
.hud-side.left { text-align: left; }
.hud-side.right { text-align: right; }
.hud-id { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.hud-side.right .hud-id { justify-content: flex-end; }
.hud-id .who { font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 13px; letter-spacing: -.02em; color: var(--bone); }
.hud-id .small { font-size: 9px; }
.bar { position: relative; overflow: hidden; border: 1px solid #160f26; background: #0a0813; box-shadow: 0 0 0 1px rgba(242,233,216,.12); }
.bar.hp { height: 17px; }
.bar.ce { height: 6px; margin-top: 4px; background: #0a0714; }
.hp-fill, .hp-gain, .ce-fill { position: absolute; top: 0; bottom: 0; left: 0; }
.hud-side.right .hp-fill, .hud-side.right .hp-gain, .hud-side.right .ce-fill { left: auto; right: 0; }
.hp-gain { background: var(--green); opacity: .9; z-index: 1; }
.hp-fill {
  background: linear-gradient(180deg, #e6355a 0%, var(--crimson) 45%, #7d0f24 100%);
  z-index: 2;
  border-right: 2px solid rgba(242,233,216,.5);
}
.hud-side.right .hp-fill { border-right: 0; border-left: 2px solid rgba(242,233,216,.5); }
.hp-fill::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 7px);
}
.bar .seam { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); z-index: 3; box-shadow: 0 0 6px rgba(232,178,58,.7); }
.seam { left: 34%; }
.hud-side.right .seam { left: auto; right: 34%; }
.ce-fill { background: linear-gradient(180deg, #a375ff, var(--violet) 60%, #3a127e); z-index: 2; }
.hud-mid { flex: 0 0 auto; text-align: center; padding: 0 6px; }
.timer { font-family: "Chakra Petch", monospace; font-weight: 700; font-size: clamp(28px, 4.2vw, 46px); line-height: .9; color: var(--bone); text-shadow: 2px 2px 0 var(--crimson); font-variant-numeric: tabular-nums; }
.round { font-family: "Barlow Semi Condensed", sans-serif; font-size: 8px; letter-spacing: .24em; color: var(--gold); margin-top: 2px; }
.help-btn {
  pointer-events: auto; flex: 0 0 auto; width: 30px; height: 30px; margin-top: 2px;
  background: rgba(11,10,18,.7); border: 1px solid #4b3f63; color: var(--bone);
  font-family: "Chakra Petch", monospace; font-weight: 700; font-size: 14px;
}
#domainBanner {
  position: absolute; z-index: 16; left: 50%; top: 20%; transform: translate(-50%, -50%) rotate(-3deg);
  font-family: "Unbounded", sans-serif; font-weight: 900; font-size: clamp(16px, 3vw, 30px);
  letter-spacing: -.02em; color: var(--bone);
  text-shadow: 3px 3px 0 var(--crimson), 0 0 24px rgba(108,43,217,.8);
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  padding: 6px 18px; background: rgba(5,4,10,.55); pointer-events: none;
  animation: bannerIn .2s steps(2,end) 1;
}
@keyframes bannerIn { from { transform: translate(-50%,-50%) rotate(-3deg) scale(1.18); } to { transform: translate(-50%,-50%) rotate(-3deg) scale(1); } }

/* ---------- controls ---------- */
#controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 18;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 10px var(--pad) max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(5,4,10,.94) 30%, rgba(5,4,10,.45) 72%, rgba(5,4,10,0));
  pointer-events: none;
}
.ctrl-left, .ctrl-right { pointer-events: auto; display: flex; gap: 7px; }
.ctrl-right {
  display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: 46px 46px;
  grid-template-areas: "tech heal domain" "strike strike guard"; gap: 6px;
}
.ctrl-left { align-items: flex-end; }
.pad {
  width: 62px; height: 68px; background: rgba(18,14,34,.88); border: 1px solid #4a3d68;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 3px 0 #05040a;
}
.pad:active, .pad.down { background: rgba(108,43,217,.35); border-color: var(--bone); transform: translateY(2px); box-shadow: none; }
.pad svg { width: 30px; height: 30px; }
.act {
  position: relative; background: rgba(16,12,30,.9); border: 1px solid #4a3d68;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px; gap: 1px; box-shadow: 0 3px 0 #05040a; min-width: 0;
}
.act svg { width: 26px; height: 26px; }
.act span { font-size: 7px; letter-spacing: .1em; text-transform: uppercase; color: #d7cce8; line-height: 1; }
.act:active, .act.down { transform: translateY(2px); box-shadow: none; background: rgba(108,43,217,.3); }
.act.tech { grid-area: tech; border-color: rgba(108,43,217,.75); }
.act.heal { grid-area: heal; border-color: rgba(59,224,168,.55); }
.act.domain { grid-area: domain; border-color: rgba(232,178,58,.45); }
.act.strike { grid-area: strike; border-color: rgba(200,30,60,.6); }
.act.guard { grid-area: guard; border-color: rgba(74,108,247,.55); }
.act.domain.ready {
  border-color: var(--gold);
  background: rgba(232,178,58,.18);
  animation: domainBeat 1.1s steps(2,end) infinite;
}
@keyframes domainBeat { 0%,100% { box-shadow: 0 0 0 rgba(232,178,58,0); } 50% { box-shadow: 0 0 18px rgba(232,178,58,.7), inset 0 0 12px rgba(232,178,58,.4); } }
.act.tech.ready { box-shadow: 0 0 10px rgba(108,43,217,.5); }

/* ---------- cutscene ---------- */
#cutscene { position: absolute; inset: 0; z-index: 40; background: rgba(3,2,6,.25); }
#cutscene .bar {
  position: absolute; left: 0; right: 0; height: 11vh; min-height: 46px;
  background: var(--bone);
  box-shadow: 0 0 0 2px #08060e;
  z-index: 2;
}
#cutscene .bar::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(11,10,18,.10) 0 1px, transparent 1px 3px),
              repeating-linear-gradient(90deg, rgba(11,10,18,.05) 0 1px, transparent 1px 4px);
}
#cutscene.go .bar.top { top: 0; transform: translateY(-102%); animation: barTop .22s steps(3,end) forwards; border-bottom: 3px solid #08060e; }
#cutscene.go .bar.bottom { bottom: 0; transform: translateY(102%); animation: barBottom .22s steps(3,end) forwards; border-top: 3px solid #08060e; }
#cutscene.breaking .bar.top { animation: barTopOut .3s steps(4,end) forwards; }
#cutscene.breaking .bar.bottom { animation: barBottomOut .3s steps(4,end) forwards; }
@keyframes barTop { from { transform: translateY(-102%); } to { transform: translateY(0); } }
@keyframes barBottom { from { transform: translateY(102%); } to { transform: translateY(0); } }
@keyframes barTopOut { from { transform: translateY(0); } to { transform: translateY(-102%); } }
@keyframes barBottomOut { from { transform: translateY(0); } to { transform: translateY(102%); } }
#cutscene .bar::before {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--violet);
  opacity: .8; box-shadow: 0 0 10px rgba(108,43,217,.9);
}
#cutscene .bar.top::before { bottom: 4px; }
#cutscene .bar.bottom::before { top: 4px; }
.cs-meta {
  position: absolute; top: calc(11vh + 8px); left: var(--pad); right: var(--pad); z-index: 3;
  display: flex; justify-content: space-between;
  font-family: "Chakra Petch", monospace; font-size: 9px; letter-spacing: .22em; color: rgba(242,233,216,.6);
}
.cs-text {
  position: absolute; z-index: 3; left: var(--pad); bottom: calc(11vh + 26px);
  max-width: min(62ch, 62vw); text-align: left;
}
.cs-speaker {
  font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 4px; border-bottom: 1px solid rgba(232,178,58,.55); display: inline-block;
}
.cs-line {
  margin-top: 8px;
  font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600;
  font-size: clamp(18px, 3.4vw, 40px); line-height: 1.04;
  color: var(--bone);
  text-shadow: 2px 2px 0 rgba(11,10,18,.9), 0 0 18px rgba(0,0,0,.8);
  text-transform: uppercase; letter-spacing: -.01em;
}
.cs-line.jolt { animation: lineJolt .12s steps(2,end) 1; }
@keyframes lineJolt { 0% { transform: translateX(-14px); opacity: .2; } 100% { transform: translateX(0); opacity: 1; } }
.cs-nameplate {
  position: absolute; z-index: 4; right: var(--pad); top: 26%;
  transform: rotate(-4deg) translateX(16px); opacity: 0;
  font-family: "Unbounded", sans-serif; font-weight: 900; font-size: clamp(22px, 4.4vw, 56px);
  line-height: .94; letter-spacing: -.03em; text-transform: uppercase;
  color: var(--bone);
  text-shadow: 4px 4px 0 var(--crimson), -1px -1px 0 #0a0509, 0 0 26px rgba(108,43,217,.7);
  text-align: right; max-width: 52vw;
  border-right: 5px solid var(--crimson); padding-right: 12px;
}
.cs-nameplate.on { animation: stamp .18s steps(2,end) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-4deg) translateX(34px) scale(1.12); } 100% { opacity: 1; transform: rotate(-4deg) translateX(0) scale(1); } }
.cs-hint {
  position: absolute; z-index: 3; bottom: calc(11vh - 26px); right: var(--pad);
  font-family: "Chakra Petch", monospace; font-size: 9px; letter-spacing: .2em;
  color: rgba(11,10,18,.5);
}
.cs-crack {
  position: absolute; z-index: 5; left: -2%; top: 50%; width: 0; height: 3px;
  background: var(--violet);
  box-shadow: 0 0 18px 3px rgba(108,43,217,.9);
  transform: rotate(-6deg);
  clip-path: polygon(0 40%, 6% 0, 12% 60%, 20% 10%, 27% 70%, 34% 20%, 41% 80%, 48% 30%, 55% 72%, 62% 12%, 70% 66%, 78% 20%, 85% 70%, 92% 30%, 100% 60%, 100% 100%, 0 100%);
}
.cs-crack.on { animation: crackRun .3s steps(5,end) forwards; }
@keyframes crackRun { from { width: 0; } to { width: 104%; } }
#cutscene .bar, .cs-text, .cs-nameplate, .cs-meta, .cs-hint { transition: none; }

/* ---------- result ---------- */
#result {
  position: absolute; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center;
  background: rgba(4,3,8,.72); padding: var(--pad);
}
.result-card {
  width: min(620px, 94vw); background: rgba(11,10,18,.92);
  border: 1px solid #4a3d68; box-shadow: 0 0 0 4px rgba(5,4,10,.8), 0 24px 80px rgba(0,0,0,.6);
  padding: clamp(18px, 4vw, 38px); position: relative;
  background-image: repeating-linear-gradient(0deg, rgba(242,233,216,.025) 0 1px, transparent 1px 4px);
}
.result-card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(232,178,58,.35); pointer-events: none;
}
.result-kicker { font-size: 9px; letter-spacing: .28em; color: var(--gold); }
.result-title {
  font-family: "Unbounded", sans-serif; font-weight: 900; font-size: clamp(60px, 16vw, 132px);
  line-height: .85; letter-spacing: -.05em; color: var(--bone);
  text-shadow: 6px 6px 0 var(--crimson), 0 0 30px rgba(108,43,217,.6);
  margin: 4px 0 2px;
}
.result-winner { font-family: "Unbounded", sans-serif; font-weight: 900; font-size: clamp(16px, 3.4vw, 28px); letter-spacing: -.01em; color: var(--gold); }
.result-quote { margin: 14px 0 8px; font-size: 17px; line-height: 1.35; color: #d8cfe6; max-width: 44ch; }
.result-stats { font-family: "Chakra Petch", monospace; font-size: 11px; letter-spacing: .08em; color: #9a8fb0; margin-bottom: 18px; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- help ---------- */
#help {
  position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(4,3,8,.86); padding: var(--pad);
}
.help-card {
  width: min(720px, 95vw); max-height: 92vh; overflow-y: auto;
  background: rgba(11,10,18,.97); border: 1px solid #4a3d68;
  padding: clamp(18px, 4vw, 34px); position: relative;
}
.help-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(232,178,58,.3); pointer-events: none; }
.help-card h2 { font-family: "Unbounded", sans-serif; font-weight: 900; font-size: clamp(22px, 4vw, 36px); margin: 6px 0 18px; letter-spacing: -.02em; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.help-grid b { display: block; font-family: "Chakra Petch", monospace; font-size: 11px; letter-spacing: .12em; color: var(--gold); margin-bottom: 3px; }
.help-grid span { font-size: 14px; line-height: 1.35; color: #d5cbe3; }
.help-note { font-size: 13px; line-height: 1.4; color: #a99dbe; border-left: 3px solid var(--green); padding-left: 10px; margin: 0 0 18px; }

/* ---------- impact flash ---------- */
#flash {
  position: absolute; inset: 0; z-index: 17; background: #fff; opacity: 0; pointer-events: none;
  mix-blend-mode: screen;
}
#flash.hit { animation: flashHit .1s steps(2,end) 1; }
@keyframes flashHit { 0% { opacity: .55; } 100% { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hud-id .small { display: none; }
  .hud-id .who { font-size: 11px; }
  .bar.hp { height: 14px; }
  .timer { font-size: 28px; }
  .roster { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
  .title-copy { max-width: 100%; }
  .title-side { display: none; }
  .cs-nameplate { top: auto; bottom: 26%; right: var(--pad); font-size: clamp(20px, 6vw, 40px); max-width: 70vw; }
  .cs-text { max-width: 88vw; bottom: calc(11vh + 22px); }
  .cs-line { font-size: clamp(17px, 5vw, 30px); }
  .title-foot { display: none; }
  .ctrl-right { grid-template-columns: repeat(3, 54px); grid-template-rows: 44px 44px; }
  .pad { width: 56px; height: 62px; }
}
@media (max-width: 420px) {
  .hud-mid { padding: 0 2px; }
  .round { display: none; }
  .help-btn { width: 26px; height: 26px; font-size: 12px; }
  .ctrl-right { grid-template-columns: repeat(3, 52px); grid-template-rows: 42px 42px; gap: 5px; }
  .pad { width: 52px; height: 58px; }
  .act svg { width: 23px; height: 23px; }
  .act span { font-size: 6px; }
  .sel-head { gap: 8px; }
  .stage-row { max-width: 150px; }
  .picks { font-size: 14px; }
}
@media (max-height: 560px) {
  .logo { font-size: clamp(40px, 8.5vh, 84px); }
  .title-copy { max-width: 64%; }
  .tagline { margin: 8px 0 10px; font-size: 13px; }
  .title-actions .big-btn, .title-actions .ghost-btn { padding: 9px 13px; font-size: 11px; }
  .title-foot { display: none; }
  .roster { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .sel-head { padding-bottom: 6px; }
  .cs-text { bottom: calc(11vh + 18px); }
  .cs-line { font-size: 20px; }
}
@media (min-width: 1100px) {
  .roster { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
}
