:root {
  --tesla: #e31937;
  --tesla-dark: #8a0c18;
  --tesla-light: #ff4d5e;
  --spacex: #f3efe6;
  --spacex-dark: #161616;
  --spacex-gold: #e3b23c;
  --yellow: #ffd000;
  --yellow-dark: #c48400;
  --ink: #fff6e8;
  --muted: #c9b8a4;
  --ring: #1a0c12;
  --ui: "Oswald", Impact, sans-serif;
  --display: "Bungee", Impact, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #09060a;
  color: var(--ink);
  font-family: var(--ui);
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #3a1420 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, #1a1028 0%, transparent 50%),
    linear-gradient(#140810, #09060a 40%, #07050c);
}

.grain,
.spots,
.crowd,
.ring-lights {
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  mix-blend-mode: overlay;
}

.spots { position: fixed; inset: 0; z-index: 1; overflow: hidden; }
.spot {
  position: absolute;
  top: -10%;
  width: 42vw;
  height: 90vh;
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: sweep 7.5s ease-in-out infinite;
}
.tesla-spot {
  left: 4%;
  background: linear-gradient(to bottom, rgba(227,25,55,.28), transparent 70%);
}
.spacex-spot {
  right: 4%;
  animation-delay: -3.4s;
  background: linear-gradient(to bottom, rgba(227,178,60,.22), transparent 70%);
}
@keyframes sweep {
  0%, 100% { transform: translateX(-6%) rotate(-8deg); opacity: .7; }
  50% { transform: translateX(10%) rotate(7deg); opacity: 1; }
}

.jumbo {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: .7rem 1rem 0;
}
.kicker {
  margin: 0;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(255,208,0,.45);
}
h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  margin: .35rem 0 .7rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 5.2rem);
  line-height: .9;
  letter-spacing: .02em;
}
.tesla-side { color: var(--tesla); text-shadow: 0 3px 0 #4a040c, 0 0 24px rgba(227,25,55,.55); }
.spacex-side { color: var(--spacex); text-shadow: 0 3px 0 #000, 0 0 24px rgba(255,255,255,.25); }
.vs-badge {
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 7vw, 4.2rem);
  height: clamp(2.6rem, 7vw, 4.2rem);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1a8, var(--yellow) 42%, var(--yellow-dark));
  color: #3a2200;
  font-size: .42em;
  box-shadow: 0 4px 0 #7a4a00, 0 0 0 4px #1a0c08, 0 10px 24px rgba(0,0,0,.45);
  transform: rotate(-8deg);
}

.board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .7rem 1rem;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: .7rem .9rem;
  background: linear-gradient(#1a1218, #0e0a0e);
  border: 2px solid #3a2a22;
  box-shadow: inset 0 0 0 1px #000, 0 8px 30px rgba(0,0,0,.4);
  border-radius: 6px;
}
.hp { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tesla-hp { align-items: flex-start; }
.spacex-hp { align-items: flex-end; text-align: right; }
.hp .bar { width: 100%; }
.hp-name {
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--muted);
}
.bar {
  height: 12px;
  background: #2a1818;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid #000;
}
.bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.tesla-hp .bar i { background: linear-gradient(90deg, var(--tesla-dark), var(--tesla-light)); }
.spacex-hp .bar i {
  background: linear-gradient(90deg, #888, #fff);
  transform-origin: right center;
}
.hp b {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--yellow);
  width: 100%;
}
.spacex-hp .hp-name,
.spacex-hp b { text-align: right; }
.round-box {
  min-width: 4.6rem;
  padding: .25rem .5rem .4rem;
  background: #000;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--mono);
}
.round-box span { display: block; font-size: .58rem; letter-spacing: .18em; }
.round-box strong { font-size: 1.5rem; line-height: 1; }

.call {
  min-height: 1.4em;
  margin: .55rem 0 0;
  font-size: clamp(.95rem, 2.4vw, 1.2rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffe9b0;
  text-shadow: 0 0 16px rgba(255,208,0,.35);
}

.venue {
  position: relative;
  flex: 1;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(196px, 260px) minmax(280px, 760px) minmax(196px, 260px);
  align-items: start;
  justify-content: center;
  gap: .35rem .7rem;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  min-height: 0;
  padding: 0 .7rem .35rem;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.crowd {
  position: absolute;
  inset: 0 0 12%;
  grid-column: 1 / -1;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 100%, transparent 28%, rgba(0,0,0,.55) 80%),
    repeating-radial-gradient(circle at 0 120%, #1c1018 0 8px, #120c12 9px 18px);
  opacity: .45;
  mask-image: linear-gradient(to top, transparent 0%, #000 22%, #000 78%, transparent);
}

.stage {
  position: relative;
  width: 100%;
  height: min(420px, 58dvh);
  margin: 0;
  min-height: 320px;
}

.ring-lights {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 78%;
  height: 10px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, #ff3b3b 0 16px, #fff 16px 32px, #2b6cff 32px 48px);
  border-radius: 99px;
  box-shadow: 0 0 22px rgba(255,80,80,.45);
  opacity: .9;
  z-index: 1;
}

.post {
  position: absolute;
  top: 14px;
  width: 16px;
  height: 168px;
  border-radius: 5px 5px 4px 4px;
  background: linear-gradient(180deg, #f3efe6, #8a8074 70%, #3a342e);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.35), 0 10px 16px rgba(0,0,0,.4);
  z-index: 2;
}
.post.left { left: 10%; }
.post.right { right: 10%; }
.post::after {
  content: "";
  position: absolute;
  top: -8px; left: -4px; right: -4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(#fff, #bbb);
}

.ropes {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 36px;
  height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 0;
}
.ropes i {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(#fff, #d8d8d8);
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.ropes i:nth-child(2) { background: linear-gradient(#ff4d5e, #b10f22); }

.platform {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(620px, 92%);
  height: 150px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 36%, #ffe96a, var(--yellow) 46%, #e09a00 72%, #9a5a00);
  box-shadow:
    0 28px 40px rgba(0,0,0,.55),
    inset 0 14px 18px rgba(255,255,255,.35),
    inset 0 -22px 28px rgba(120,50,0,.45);
  z-index: 1;
}
.platform .rim {
  position: absolute;
  inset: 8px 14px;
  border-radius: 50%;
  border: 6px solid rgba(150,70,0,.35);
  box-shadow: inset 0 0 0 3px rgba(255,230,120,.25);
}
.mold {
  position: absolute;
  left: 0; right: 0;
  top: 38%;
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .18em;
  color: rgba(120,55,0,.55);
}
.mold.sub { top: 52%; font-size: 1rem; color: rgba(90,40,0,.7); }
.toy-btn {
  position: absolute;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 0 #4a2200, inset 0 4px 6px rgba(255,255,255,.35);
}
.toy-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #4a2200; }
.tesla-btn { left: 22%; background: radial-gradient(circle at 35% 30%, #ff6b78, var(--tesla) 46%, var(--tesla-dark)); }
.spacex-btn { right: 22%; background: radial-gradient(circle at 35% 30%, #fff, #d8d4cc 46%, #777); }

.fighter {
  --dir: 1;
  --skin: var(--tesla);
  --skin-dark: var(--tesla-dark);
  --skin-light: var(--tesla-light);
  --glove: #c81e32;
  position: absolute;
  bottom: 96px;
  width: 168px;
  height: 250px;
  z-index: 3;
  transform-origin: 50% 100%;
  transition: transform .15s;
  cursor: pointer;
}
.tesla { left: 14%; }
.spacex {
  right: 14%;
  --dir: -1;
  --skin: var(--spacex);
  --skin-dark: #b7b0a4;
  --skin-light: #fff;
  --glove: #1a1a1a;
}
.fighter.hit { animation: recoil .28s ease; }
.tesla.hit { animation-name: recoil-right; }
.spacex.hit { animation-name: recoil-left; }
@keyframes recoil-right {
  0%, 100% { transform: none; }
  35% { transform: translateX(18px) rotate(4deg); }
}
@keyframes recoil-left {
  0%, 100% { transform: none; }
  35% { transform: translateX(-18px) rotate(-4deg); }
}
.fighter.punching { z-index: 5; }
.fighter.ko .head {
  transform: translateY(-86px) rotate(calc(var(--dir) * -18deg));
  transition: transform .55s cubic-bezier(.2,1.4,.3,1);
}
.fighter.ko .spring {
  height: 78px;
  opacity: 1;
}
.fighter.win { animation: bounce 0.7s ease infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.torso {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 102px;
  height: 118px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, var(--skin-light), var(--skin) 38%, var(--skin-dark));
  border-radius: 18px 18px 22px 22px;
  box-shadow:
    inset 0 10px 12px rgba(255,255,255,.28),
    inset 0 -16px 18px rgba(0,0,0,.25),
    0 10px 0 rgba(0,0,0,.18);
}
.spacex .torso {
  background: linear-gradient(180deg, #fff, #ece7dc 40%, #1a1a1a 41%, #111);
}
.chest {
  position: absolute;
  left: 10px; right: 10px; top: 54px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .08em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}
.spacex .chest { background: #000; color: #fff; }

.head {
  position: absolute;
  left: 50%;
  top: -78px;
  width: 96px;
  height: 84px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--skin-light), var(--skin) 50%, var(--skin-dark));
  border-radius: 16px 16px 20px 20px;
  box-shadow:
    inset 0 8px 10px rgba(255,255,255,.3),
    0 8px 0 rgba(0,0,0,.2);
  z-index: 4;
  transition: transform .2s;
}
.spacex .head {
  background: linear-gradient(180deg, #fff, #e8e2d6 60%, #cfc6b8);
}
.visor {
  position: absolute;
  left: 12px; right: 12px; top: 22px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(#1a0508, #3a0a12);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), 0 0 12px rgba(227,25,55,.4);
}
.spacex .visor {
  background: linear-gradient(180deg, #f3d67a, #8a5a12);
  box-shadow: inset 0 4px 6px rgba(255,255,255,.4), 0 0 12px rgba(227,178,60,.35);
}
.t-mark, .x-mark {
  position: absolute;
  left: 0; right: 0; top: 20px;
  text-align: center;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--tesla);
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(227,25,55,.8);
}
.x-mark { color: #111; top: 21px; text-shadow: none; }
.mouth {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 28px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #2a1010;
}
.spacex .mouth { background: #222; }
.stars {
  display: none;
  position: absolute;
  inset: 24px 0 auto;
  text-align: center;
  color: #ffd000;
  font-size: 1.4rem;
  letter-spacing: .2em;
}
.fighter.ko .stars { display: block; }
.fighter.ko .t-mark,
.fighter.ko .x-mark,
.fighter.ko .visor { opacity: .15; }
.ant {
  position: absolute;
  left: 50%;
  top: -18px;
  width: 8px;
  height: 22px;
  transform: translateX(-50%);
  background: linear-gradient(#ddd, #666);
  border-radius: 4px;
}
.ant::after {
  content: "";
  position: absolute;
  top: -10px; left: -5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--tesla) 45%, var(--tesla-dark));
  box-shadow: 0 0 10px rgba(227,25,55,.6);
}
.spacex .ant::after {
  background: radial-gradient(circle at 35% 30%, #fff, var(--spacex-gold) 50%, #7a4a00);
  box-shadow: 0 0 10px rgba(227,178,60,.55);
}

.spring {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 22px;
  height: 8px;
  transform: translateX(-50%);
  opacity: 0;
  background: repeating-linear-gradient(
    180deg,
    #c9c3b8 0 4px,
    #6e685c 4px 7px
  );
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
  transition: height .55s cubic-bezier(.2,1.4,.3,1), opacity .2s;
}

.arm {
  position: absolute;
  width: 34px;
  height: 92px;
  background: linear-gradient(var(--skin-light), var(--skin-dark));
  border-radius: 18px;
  top: 78px;
  z-index: 2;
  transform-origin: 50% 12px;
  box-shadow: inset 0 6px 8px rgba(255,255,255,.2);
}
.spacex .arm {
  background: linear-gradient(#fff, #d8d2c6);
}
.arm.rear { z-index: 1; }
.tesla .arm.rear { left: 18px; transform: rotate(18deg); }
.tesla .arm.front { right: 4px; transform: rotate(-12deg); }
.spacex .arm.rear { right: 18px; transform: rotate(-18deg); }
.spacex .arm.front { left: 4px; transform: rotate(12deg); }
.glove {
  position: absolute;
  bottom: -22px;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8, var(--glove) 42%, #111);
  box-shadow: inset 0 -8px 10px rgba(0,0,0,.35), 0 6px 0 rgba(0,0,0,.2);
}
.tesla.punching .arm.front { animation: tesla-punch .42s ease; }
.spacex.punching .arm.front { animation: spacex-punch .42s ease; }
@keyframes tesla-punch {
  0% { transform: rotate(-12deg); }
  40% { transform: rotate(-78deg) translate(18px, -8px); }
  100% { transform: rotate(-12deg); }
}
@keyframes spacex-punch {
  0% { transform: rotate(12deg); }
  40% { transform: rotate(78deg) translate(-18px, -8px); }
  100% { transform: rotate(12deg); }
}

.legs {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
  z-index: 2;
}
.legs span {
  width: 28px;
  height: 44px;
  border-radius: 8px 8px 6px 6px;
  background: linear-gradient(var(--skin), var(--skin-dark));
  box-shadow: 0 6px 0 rgba(0,0,0,.25);
}
.spacex .legs span { background: linear-gradient(#222, #000); }

#fx {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.hud {
  position: relative;
  z-index: 7;
  padding: .4rem 1rem 1.2rem;
  text-align: center;
}
.controls {
  display: flex;
  justify-content: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: .45rem;
}
.big {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .95rem;
  border: 0;
  cursor: pointer;
  padding: .7rem 1rem;
  border-radius: 8px;
  color: #fff;
}
.tesla-big {
  background: linear-gradient(#ff4d5e, var(--tesla));
  box-shadow: 0 4px 0 var(--tesla-dark);
}
.spacex-big {
  background: linear-gradient(#3a3a3a, #111);
  box-shadow: 0 4px 0 #000;
}
.auto {
  background: linear-gradient(#ffe14a, var(--yellow-dark));
  color: #3a2200;
  box-shadow: 0 4px 0 #7a4a00;
}
.auto.on { outline: 2px solid #fff; }
.big:active { transform: translateY(3px); box-shadow: none; }
kbd {
  display: inline-block;
  margin-left: .35rem;
  padding: 0 .3rem;
  border-radius: 4px;
  background: rgba(0,0,0,.25);
  font-family: var(--mono);
  font-size: .75em;
}
.hint, .fine {
  margin: .2rem auto 0;
  max-width: 42rem;
  color: var(--muted);
}
.hint { font-size: .92rem; letter-spacing: .04em; }
.fine { font-size: .72rem; opacity: .75; }

.intro, .ko {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(6,2,8,.72);
  backdrop-filter: blur(4px);
}
.intro-card, .ko-card {
  text-align: center;
  padding: 1.5rem;
}
.intro-kicker, .ko-kicker {
  margin: 0;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--yellow);
}
.intro-main, .ko-card h2 {
  margin: .4rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 10vw, 6rem);
  line-height: .95;
}
.ko-card h2.tesla-win { color: var(--tesla); }
.ko-card h2.spacex-win { color: var(--spacex); }
.ko[hidden] { display: none; }
.ko-card p { color: var(--muted); font-size: 1.05rem; }
#rematch {
  margin-top: .8rem;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 1rem;
  padding: .75rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #3a2200;
  cursor: pointer;
  box-shadow: 0 4px 0 #7a4a00;
}

.shake { animation: shake .28s linear; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.pit {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  height: min(480px, 62dvh);
  min-height: 320px;
  padding: .45rem .5rem .55rem;
  background: linear-gradient(180deg, rgba(20,10,14,.72), rgba(8,6,10,.88));
  border: 1px solid #3a2a22;
  box-shadow: inset 0 0 0 1px #000, 0 10px 28px rgba(0,0,0,.35);
  overflow: auto;
}
.tesla-pit { border-left: 4px solid var(--tesla); }
.spacex-pit { border-right: 4px solid var(--spacex-gold); }
.pit-kicker {
  margin: 0 0 .35rem;
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
}
.cornerman {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: .35rem;
}
.corner-name {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}
.optimus, .crew {
  position: relative;
  width: 54px;
  height: 92px;
}
.op-head, .cr-helm {
  position: absolute;
  left: 50%;
  top: 0;
  width: 22px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 5px;
}
.op-head { background: linear-gradient(#fff, #cfc8be); }
.op-head::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 7px;
  height: 5px;
  background: #111;
  box-shadow: inset 0 1px 0 var(--tesla);
}
.cr-helm { background: linear-gradient(#fff, #d8d0c4); border-radius: 50% 50% 40% 40%; }
.cr-helm::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 7px;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(#f3d67a, #8a5a12);
}
.op-torso, .cr-torso {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 26px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 6px;
}
.op-torso { background: linear-gradient(#e8e4dc, #aaa); }
.cr-torso { background: linear-gradient(#f4f1ea, #1a1a1a 55%); }
.op-arm, .cr-arm, .op-leg, .cr-leg {
  position: absolute;
  width: 8px;
  border-radius: 4px;
}
.op-arm, .cr-arm { top: 26px; height: 28px; }
.op-arm.l { left: 4px; background: #ccc; }
.op-arm.r { right: 4px; background: #ccc; }
.cr-arm.l { left: 4px; background: #ddd; }
.cr-arm.r { right: 4px; background: #ddd; }
.op-leg, .cr-leg { bottom: 0; height: 32px; }
.op-leg.l { left: 16px; background: #bbb; }
.op-leg.r { right: 16px; background: #bbb; }
.cr-leg.l { left: 16px; background: #222; }
.cr-leg.r { right: 16px; background: #222; }

.arsenal {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .2rem;
  margin: 0 0 .4rem;
  padding: .3rem;
  background: rgba(0,0,0,.25);
  border-radius: 6px;
}
.arsenal svg {
  width: 100%;
  height: 36px;
  display: block;
}
.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.lines li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .2rem .4rem;
  align-items: center;
  padding: .22rem .3rem;
  background: rgba(0,0,0,.28);
  border-radius: 4px;
}
.lines li:has(svg + svg) {
  grid-template-columns: 22px 22px 1fr;
}
.lines svg {
  width: 100%;
  height: 28px;
  display: block;
}
.lines b {
  display: block;
  font-size: .78rem;
  letter-spacing: .04em;
  font-weight: 600;
}
.lines span {
  display: block;
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .03em;
}

@media (max-width: 980px) {
  .venue {
    grid-template-columns: 1fr;
  }
  .stage { height: min(360px, 48dvh); }
  main.venue {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stage { flex: 1 1 100%; }
  .pit { flex: 1 1 280px; max-width: 420px; }
}

@media (max-width: 700px) {
  .stage { height: min(340px, 52dvh); }
  .fighter { transform: scale(.86); transform-origin: 50% 100%; }
  .tesla { left: 4%; }
  .spacex { right: 4%; }
  .board { grid-template-columns: 1fr 1fr; }
  .round-box { grid-column: 1 / -1; justify-self: center; }
  kbd { display: none; }
  .kicker { letter-spacing: .12em; font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .spot, .fighter.win { animation: none; }
  .tesla.punching .arm.front,
  .spacex.punching .arm.front { animation: none; }
}
