/* ============================================================
   bpm — arcade rhythm-cooking. Dark steel cabinet + neon,
   rooted in the Bogomolova zine tokens (Oswald / mono / Caveat
   type + marker-red as the impact accent). B&W zine ingredients.
   ============================================================ */

:root {
  /* neon arcade layer */
  --neon-red:     #E5251D;   /* = marker red, the impact colour */
  --neon-red-hot: #FF4438;
  --neon-cyan:    #25E6E6;
  --neon-magenta: #FF2D9B;
  --neon-yellow:  #FFE14D;
  --neon-lime:    #A6FF3D;

  /* steel cabinet */
  --steel-0: #0b0c0f;
  --steel-1: #14161b;
  --steel-2: #1e222a;
  --steel-3: #2a2f39;
  --steel-4: #3a414d;
  --steel-line: rgba(255,255,255,0.08);
  --steel-text: #e8eaee;
  --steel-mute: #8b919c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: var(--steel-text);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
  user-select: none;
}

#root { width: 100%; height: 100%; }

/* ---- scaling stage (fixed 1600x900 arcade canvas) ---- */
.stage-viewport {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #0a0b0e 0%, #000 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.stage {
  position: relative;
  width: 1600px;
  height: 900px;
  transform-origin: center center;
  background: var(--steel-0);
  overflow: hidden;
}

/* CRT scanline + vignette overlay, sits above everything */
.crt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0.16) 3px,
      rgba(0,0,0,0) 4px);
  mix-blend-mode: multiply;
}
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ============================================================
   Shared label type
   ============================================================ */
.mono-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--steel-mute);
  line-height: 1;
}
.display-word {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.9;
  font-weight: 700;
}
.hand {
  font-family: var(--font-hand);
  line-height: 0.95;
}

/* ============================================================
   MAIN MENU
   ============================================================ */
.menu {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(80% 60% at 50% 38%, #1a1d24 0%, #0b0c0f 70%);
}
.menu-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--steel-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 45%, #000 0%, transparent 80%);
  opacity: 0.6;
}
.menu-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 300px;
  line-height: 0.78;
  letter-spacing: -0.02em;
  position: relative;
  color: #fff;
  text-shadow:
    0 0 2px var(--neon-cyan),
    0 0 28px rgba(37,230,230,0.5),
    0 8px 0 #000;
}
.menu-title .dot {
  color: var(--neon-red);
  text-shadow: 0 0 24px rgba(229,37,29,0.7);
}
.menu-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 34px;
  color: #cfd3da;
  margin-top: 6px;
}
.menu-sub {
  margin-top: 4px;
  color: var(--steel-mute);
  max-width: 620px;
  text-align: center;
  line-height: 1.5;
  font-size: 17px;
}
.menu-cta {
  margin-top: 46px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.blink {
  animation: blink 1.1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

/* big neon press-start pill */
.press-start {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 26px;
  color: #06070a;
  background: var(--neon-yellow);
  border: none;
  padding: 20px 46px;
  cursor: pointer;
  box-shadow: 0 0 0 3px #06070a, 0 0 32px rgba(255,225,77,0.45);
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.press-start:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px #06070a, 0 0 44px rgba(255,225,77,0.7); }
.press-start:active { transform: translateY(1px); }

.menu-foot {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
}

/* ============================================================
   DISH SELECT
   ============================================================ */
.select {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 30%, #181b21 0%, #0b0c0f 75%);
  display: flex;
  flex-direction: column;
  padding: 54px 64px;
}
.select-head { display: flex; align-items: flex-end; justify-content: space-between; }
.select-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 92px;
  line-height: 0.85;
  color: #fff;
}
.dish-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.dish-card {
  position: relative;
  background: linear-gradient(180deg, #fbfaf6 0%, #efece3 100%);
  border: 3px solid #06070a;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  box-shadow: 0 14px 0 rgba(0,0,0,0.4);
  color: #111;
}
.dish-card:hover { transform: translateY(-10px); box-shadow: 0 24px 0 rgba(0,0,0,0.45); }
.dish-card.is-sel { outline: 4px solid var(--neon-red); outline-offset: 4px; }
.dish-card .dish-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 10px;
}
.dish-card .dish-meta {
  border-top: 2px solid #06070a;
  padding: 18px 22px 22px;
  background: #fff;
}
.dish-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 44px;
  line-height: 0.9;
  color: #111;
}
.dish-en { font-family: var(--font-serif); font-style: italic; font-size: 19px; color: #5c5c5c; margin-top: 2px; }
.dish-spec { display: flex; gap: 18px; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: #5c5c5c; text-transform: uppercase; }
.dish-spec b { color: #111; font-weight: 700; }
.dish-corner {
  position: absolute;
  top: -14px; left: -14px;
  width: 44px; height: 44px;
  background: var(--neon-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transform: rotate(-8deg);
  box-shadow: 0 4px 0 rgba(0,0,0,0.4);
  z-index: 2;
}

/* ============================================================
   GAMEPLAY
   ============================================================ */
.game {
  position: absolute;
  inset: 0;
  background: var(--steel-0);
  overflow: hidden;
}

/* everything that shakes lives here */
.shaker { position: absolute; inset: 0; will-change: transform; }

/* ---- top HUD ---- */
.hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  align-items: stretch;
  z-index: 60;
  background: linear-gradient(180deg, #1b1e25 0%, rgba(11,12,15,0.0) 100%);
  border-bottom: 1px solid var(--steel-line);
}
.hud-score { padding: 16px 26px; display: flex; flex-direction: column; gap: 2px; }
.hud-score .score-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 0.82;
  color: #fff;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.hud-score .score-sub { display: flex; align-items: baseline; gap: 12px; }
.mult {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--neon-yellow);
  text-shadow: 0 0 14px rgba(255,225,77,0.5);
}

/* rhythm track */
.rhythm {
  position: relative;
  margin: 18px 8px;
  border: 1px solid var(--steel-line);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  overflow: hidden;
}
.rhythm .beatline {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.16);
  transform: translateX(-1px);
  will-change: transform;
}
.rhythm .beatline.strong { background: rgba(255,255,255,0.32); width: 3px; }
.rhythm .tick {
  position: absolute;
  top: 50%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 2.5px solid var(--neon-cyan);
  background: rgba(37,230,230,0.12);
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
  box-shadow: 0 0 12px rgba(37,230,230,0.4);
}
.rhythm-target {
  position: absolute;
  top: 50%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border: 3px solid var(--neon-red);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(229,37,29,0.55), inset 0 0 12px rgba(229,37,29,0.3);
  will-change: transform;
}
.rhythm-target::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
}
.rhythm-label {
  position: absolute;
  top: 6px; left: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--steel-mute);
  text-transform: uppercase;
}
.bpm-readout {
  position: absolute;
  bottom: 5px; right: 12px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--neon-cyan);
}

.hud-combo { padding: 16px 26px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; }
.combo-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 74px;
  line-height: 0.8;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition: color 120ms;
}
.combo-num.hot { color: var(--neon-magenta); text-shadow: 0 0 22px rgba(255,45,155,0.6); }
.combo-x { font-family: var(--font-hand); font-size: 30px; color: var(--neon-cyan); }

/* accuracy meter strip under combo */
.acc-bar { width: 200px; height: 7px; background: rgba(255,255,255,0.08); margin-top: 8px; position: relative; }
.acc-fill { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-lime)); }

/* ---- the steel counter / play field ---- */
.counter {
  position: absolute;
  left: 0; right: 300px;
  top: 150px; bottom: 132px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 5px),
    linear-gradient(180deg, #23272f 0%, #191c22 50%, #23272f 100%);
  overflow: hidden;
}
.counter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 30% 50%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
/* brushed seam lines */
.counter .seam { position: absolute; left: 0; right: 0; height: 1px; background: rgba(0,0,0,0.4); box-shadow: 0 1px 0 rgba(255,255,255,0.04); }

/* the conveyor lane */
.lane {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 230px;
  margin-top: -115px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.36), rgba(0,0,0,0.12) 18%, rgba(0,0,0,0.12) 82%, rgba(0,0,0,0.36));
  border-top: 2px solid rgba(0,0,0,0.5);
  border-bottom: 2px solid rgba(0,0,0,0.5);
  overflow: hidden;
}
.lane-belt {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 46px);
  will-change: background-position;
}
.lane-rail { position: absolute; left:0; right:0; height: 3px; background: rgba(255,255,255,0.07); }

/* hit zone */
.hitzone {
  position: absolute;
  top: 50%;
  width: 168px; height: 168px;
  margin: -84px 0 0 -84px;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,0.25);
  z-index: 8;
  pointer-events: none;
}
.hitzone::after {
  content: "";
  position: absolute; inset: 24px;
  border-radius: 50%;
  border: 2px solid var(--neon-red);
  box-shadow: 0 0 24px rgba(229,37,29,0.4);
  opacity: 0.8;
}
.hitzone-ring {
  position: absolute;
  top: 50%;
  width: 168px; height: 168px;
  margin: -84px 0 0 -84px;
  border-radius: 50%;
  border: 4px solid var(--neon-cyan);
  z-index: 9;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ingredients riding the belt */
.ingredient {
  position: absolute;
  top: 50%;
  left: 0;
  width: 130px; height: 130px;
  margin: -65px 0 0 -65px;
  will-change: transform;
  z-index: 10;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
}
.ing-inner { position: absolute; inset: 0; }
.ing-inner.missed { animation: missfall 0.55s var(--ease-out) forwards; }
@keyframes missfall { to { transform: translateY(50px) rotate(24deg); opacity: 0.2; filter: grayscale(1) brightness(0.5); } }
.ing-inner.smashed { animation: smashpop 0.34s var(--ease-out) forwards; }
@keyframes smashpop { 0%{ transform: scale(1);} 30%{ transform: scale(1.25);} 60%{ transform: scale(0.5); opacity: 0.8;} 100%{ transform: scale(0.15) rotate(40deg); opacity: 0; } }

/* the weapon / hand */
.weapon {
  position: absolute;
  top: 50%;
  left: 0;
  width: 230px; height: 300px;
  margin: -40px 0 0 -115px;   /* anchored so handle is below the lane */
  z-index: 30;
  transform-origin: 50% 92%;
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,0.55));
}

.weapon-ghost {
  z-index: 29;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(37,230,230,0.25)) grayscale(0.2);
  will-change: transform, opacity;
}

/* impact splash (marker red) */
.splash {
  position: absolute;
  top: 50%;
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  z-index: 28;
  pointer-events: none;
  will-change: transform, opacity;
}
.splash.go { animation: splashpop 0.5s var(--ease-out) forwards; }
@keyframes splashpop { 0%{ transform: scale(0.3); opacity: 0; } 18%{ opacity: 1; } 100%{ transform: scale(1.15); opacity: 0; } }

/* motion slash streak (swing/slash weapons) */
.slash-fx {
  position: absolute;
  top: 50%;
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  z-index: 26;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.45));
  will-change: transform, opacity;
}
.slash-fx.go { animation: slashfx 0.34s var(--ease-out) forwards; }
@keyframes slashfx { 0%{ opacity: 0; transform: scale(0.55); } 18%{ opacity: 1; } 100%{ opacity: 0; transform: scale(1.12); } }

/* judgment popup */
.judge {
  position: absolute;
  top: 50%;
  margin-top: -150px;
  z-index: 40;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 78px;
  line-height: 0.8;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}
.judge.go { animation: judgepop 0.62s var(--ease-out) forwards; }
@keyframes judgepop {
  0% { transform: translateX(-50%) translateY(14px) scale(0.6) rotate(-6deg); opacity: 0; }
  22% { transform: translateX(-50%) translateY(-6px) scale(1.1) rotate(-4deg); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-44px) scale(1) rotate(-3deg); opacity: 0; }
}
.judge .pts { display: block; font-family: var(--font-display); font-size: 26px; letter-spacing: 0.04em; margin-top: 2px; }

/* ---- right rail: customer orders ---- */
.rail {
  position: absolute;
  right: 0; top: 150px; bottom: 0;
  width: 300px;
  background: linear-gradient(180deg, #15171c 0%, #0d0e12 100%);
  border-left: 1px solid var(--steel-line);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 55;
}
.rail-head { display: flex; align-items: center; justify-content: space-between; }
.rail-head .display-word { font-size: 26px; color: #fff; }
.orders { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }
.order-ticket {
  background: #fbfaf6;
  color: #111;
  border: 2px solid #06070a;
  padding: 14px 16px 16px;
  position: relative;
  transition: transform 180ms var(--ease-out), opacity 180ms;
}
.order-ticket.current { box-shadow: 0 0 0 3px var(--neon-red), 0 0 26px rgba(229,37,29,0.35); }
.order-ticket.next { opacity: 0.92; transform: scale(0.96); }
.order-ticket.future { opacity: 0.62; transform: scale(0.9); }
.order-ticket .ot-top { display: flex; align-items: center; justify-content: space-between; }
.order-ticket .ot-cust { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #5c5c5c; }
.order-ticket .ot-dish { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 30px; line-height: 0.92; margin-top: 6px; color: #111; }
.order-ticket .ot-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chk {
  width: 26px; height: 26px;
  border: 1.5px solid #c9c9c7;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 3px;
}
.chk.done { border-color: var(--neon-red); background: #fff; }
.chk svg { width: 100%; height: 100%; }

/* assembling plate (bottom-left of counter) */
.plate {
  position: absolute;
  left: 40px;
  bottom: 18px;
  width: 220px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.plate-stack {
  position: relative;
  width: 150px;
  height: 120px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}
.plate-stack .pi { width: 110px; height: 30px; margin-top: -10px; animation: plateadd 0.3s var(--ease-out); }
@keyframes plateadd { from { transform: translateY(-30px) scale(0.5); opacity: 0; } }
.plate-base { width: 168px; height: 14px; background: linear-gradient(180deg, #cfd3da, #6b7280); border-radius: 0 0 50% 50% / 0 0 100% 100%; box-shadow: 0 6px 10px rgba(0,0,0,0.5); }
.plate-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--steel-mute); text-transform: uppercase; margin-top: 8px; }

/* ---- bottom weapon dock ---- */
.dock {
  position: absolute;
  left: 0; right: 300px; bottom: 0;
  height: 132px;
  background: linear-gradient(180deg, rgba(11,12,15,0) 0%, #16181d 40%);
  border-top: 1px solid var(--steel-line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 30px;
  z-index: 60;
}
.weapon-slot {
  position: relative;
  width: 116px; height: 92px;
  border: 2px solid var(--steel-line);
  background: var(--steel-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 120ms var(--ease-out), border-color 120ms, background 120ms;
}
.weapon-slot:hover { transform: translateY(-3px); background: var(--steel-3); }
.weapon-slot.active { border-color: var(--neon-red); background: #20242b; box-shadow: 0 0 22px rgba(229,37,29,0.3); }
.weapon-slot .ws-key {
  position: absolute; top: 5px; left: 7px;
  font-family: var(--font-mono); font-size: 11px; color: var(--steel-mute);
}
.weapon-slot .ws-art { width: 64px; height: 50px; display: flex; align-items: center; justify-content: center; }
.weapon-slot .ws-name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; color: #cdd1d8; }
.weapon-slot.active .ws-name { color: #fff; }
.dock-hint { margin-left: auto; text-align: right; color: var(--steel-mute); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; line-height: 1.7; }
.dock-hint kbd {
  font-family: var(--font-mono);
  background: var(--steel-3);
  border: 1px solid var(--steel-4);
  border-bottom-width: 2px;
  padding: 2px 7px;
  color: #fff;
  font-size: 11px;
}

/* ---- count-in + round summary overlays ---- */
.overlay {
  position: absolute; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,8,11,0.0);
}
.countin {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 360px;
  color: #fff;
  text-shadow: 0 0 40px rgba(37,230,230,0.6);
  animation: countpop 0.6s var(--ease-out);
}
.countin.go { color: var(--neon-red); text-shadow: 0 0 50px rgba(229,37,29,0.7); }
@keyframes countpop { from { transform: scale(2.2); opacity: 0; } 60% { opacity: 1; } }

.summary {
  background: linear-gradient(180deg, #fbfaf6, #efece3);
  color: #111;
  border: 3px solid #06070a;
  width: 720px;
  padding: 44px 50px 40px;
  box-shadow: 0 28px 0 rgba(0,0,0,0.45);
  position: relative;
}
.summary .display-word { font-size: 78px; color: #111; line-height: 0.82; white-space: nowrap; }
.summary .sum-sub { font-family: var(--font-serif); font-style: italic; font-size: 24px; color: #5c5c5c; margin-top: 4px; }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin: 30px 0; }
.sum-stat { border-top: 2px solid #06070a; padding-top: 10px; }
.sum-stat .sm-num { font-family: var(--font-display); font-weight: 700; font-size: 50px; line-height: 0.85; }
.sum-stat .sm-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #5c5c5c; margin-top: 4px; }
.sum-actions { display: flex; gap: 14px; }

.scrim { position: absolute; inset: 0; background: rgba(6,7,10,0.72); backdrop-filter: blur(3px); z-index: 199; }

/* pause */
.pause-btn {
  position: absolute; top: 158px; right: 312px;
  z-index: 80;
  background: transparent;
  border: 1px solid var(--steel-line);
  color: var(--steel-mute);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  padding: 7px 12px; cursor: pointer; text-transform: uppercase;
}
.pause-btn:hover { color: #fff; border-color: var(--steel-4); }

/* flash on the whole field for a strong beat */
.beatflash {
  position: absolute; inset: 0; z-index: 5;
  background: radial-gradient(60% 60% at 30% 50%, rgba(37,230,230,0.10), transparent 70%);
  opacity: 0; will-change: opacity; pointer-events: none;
}
