:root {
  --buy: #ccff00;
  --buy-soft: #e6ff83;
  --ink: #0d0e0b;
  --paper: #f8f8f8;
  --paper-cool: #f3f5f0;
  --rule: #cfd2ca;
  --muted: #62665f;
  --signal: #ff5c4d;
  --press-depth: 12px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.topbar {
  min-height: 64px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.wordmark {
  width: max-content;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar-center,
.utilities,
.signal-controls,
.sound-control,
.utilities a {
  display: flex;
  align-items: center;
}

.topbar-center {
  gap: 8px;
  font-family: "Spline Sans Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.network-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--buy);
  box-shadow: 0 0 0 4px rgba(204, 255, 0, 0.22);
}

body[data-network="reconnecting"] .network-dot { background: var(--signal); box-shadow: none; }
body[data-network="demo"] .network-dot { background: var(--buy-soft); box-shadow: none; }

.utilities {
  justify-content: flex-end;
  gap: 22px;
  font-family: "Spline Sans Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.utilities a,
.sound-control { gap: 7px; }

.signal-controls {
  gap: 11px;
  padding-right: 18px;
  border-right: 1px solid var(--rule);
}

.sound-control {
  width: 138px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sound-label { white-space: nowrap; }

.sound-control:hover,
.utilities a:hover { color: #526800; }

.sound-control > i,
.sound-control > span {
  position: relative;
  z-index: 1;
}

.sound-control > i { font-size: 16px; }

.sound-bars {
  width: 11px;
  height: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.sound-bars b {
  width: 2px;
  height: 5px;
  display: block;
  background: currentColor;
  transform-origin: bottom;
}

.sound-bars b:nth-child(2) { height: 11px; }
.sound-bars b:nth-child(3) { height: 7px; }

body[data-sound-prompt="active"] .sound-control {
  border-color: var(--ink);
  background: var(--buy);
  color: var(--ink);
}

body[data-sound-prompt="active"] .sound-control::after {
  content: "";
  width: 1px;
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  background: rgba(13, 14, 11, 0.36);
  animation: sound-scan 2.4s cubic-bezier(0.3, 0.72, 0.25, 1) infinite;
}

body[data-sound-prompt="active"] .sound-control > i {
  animation: sound-call 2.4s ease-in-out infinite;
}

body[data-sound-prompt="active"] .sound-bars b {
  animation: sound-bars 620ms ease-in-out infinite alternate;
}

body[data-sound-prompt="active"] .sound-bars b:nth-child(2) { animation-delay: -210ms; }
body[data-sound-prompt="active"] .sound-bars b:nth-child(3) { animation-delay: -390ms; }

@keyframes sound-scan {
  0%, 28% { left: 0; opacity: 0; }
  34% { opacity: 1; }
  72% { left: calc(100% - 1px); opacity: 1; }
  78%, 100% { left: calc(100% - 1px); opacity: 0; }
}

@keyframes sound-call {
  0%, 72%, 100% { transform: rotate(0deg) scale(1); }
  78% { transform: rotate(-8deg) scale(1.08); }
  84% { transform: rotate(8deg) scale(1.08); }
  90% { transform: rotate(-4deg) scale(1.04); }
}

@keyframes sound-bars {
  from { transform: scaleY(0.42); }
  to { transform: scaleY(1); }
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 8px;
}

.volume-control input {
  width: 62px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

body[data-sound="on"] .sound-control {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--buy);
}

body[data-sound="on"][data-activity="single"] .sound-bars b,
body[data-sound="on"][data-activity="active"] .sound-bars b,
body[data-sound="on"][data-activity="burst"] .sound-bars b,
body[data-sound="on"][data-activity="hammering"] .sound-bars b {
  animation: sound-bars 360ms ease-in-out infinite alternate;
}

body[data-sound="off"][data-sound-prompt="settled"] .sound-bars { display: none; }
body[data-sound="on"] .volume-control input { accent-color: var(--buy); }

.live-stage {
  min-height: calc(100svh - 104px);
  position: relative;
  isolation: isolate;
}

.stage-rule {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
  z-index: -1;
}

.stage-rule-left { left: 11%; }
.stage-rule-right { right: 11%; }

.hero-copy {
  padding: 34px 5vw 8px;
  text-align: center;
}

.hero-copy p,
.machine-label,
.receipt-copy > span,
.receipt-copy small,
.metrics span,
.metrics small,
.recent-heading,
.footer-rail {
  font-family: "Spline Sans Mono", monospace;
  text-transform: uppercase;
}

.hero-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
}

.hero-copy h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.94;
  font-weight: 900;
}

.hero-line {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
}

.hero-line strong { font-weight: 800; }

.button-zone {
  --activity-scale: 0.08;
  width: min(100%, 900px);
  min-height: 410px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
}

.button-zone::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 20px;
  left: 20px;
  height: 3px;
  background: var(--buy);
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  transform: scaleX(var(--activity-scale));
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

body[data-activity="single"] .button-zone { --activity-scale: 0.26; }
body[data-activity="active"] .button-zone { --activity-scale: 0.5; }
body[data-activity="burst"] .button-zone { --activity-scale: 0.76; }
body[data-activity="hammering"] .button-zone { --activity-scale: 1; }

.stage-register {
  position: absolute;
  z-index: 4;
  bottom: 34px;
  left: 20px;
  width: 138px;
  font-family: "Spline Sans Mono", monospace;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.stage-register > span,
.stage-register > small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.stage-register > strong {
  display: block;
  margin: 4px 0 3px;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 0.82;
  will-change: transform, opacity;
}

.stage-register > small {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stage-register > small i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--buy);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

body[data-activity="active"] .stage-register > small i,
body[data-activity="burst"] .stage-register > small i,
body[data-activity="hammering"] .stage-register > small i {
  animation: register-beacon 620ms steps(2, end) infinite;
}

.button-machine {
  width: 620px;
  max-width: 72vw;
  margin: 0;
  position: relative;
  z-index: 2;
}

.button-base {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

.button-face-well,
.button-face {
  position: absolute;
  pointer-events: none;
}

.button-face-well {
  z-index: 2;
  top: 15.7%;
  left: 24.7%;
  width: 50.6%;
  height: 46.5%;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.4);
  box-shadow: inset 0 11px 17px rgba(0, 0, 0, 0.68), inset 0 -3px 6px rgba(204, 255, 0, 0.2);
  opacity: 0;
  transition: opacity 75ms ease;
}

.button-face {
  z-index: 3;
  inset: 0;
  background: url("/buy-artifact.jpg") center / 100% 100% no-repeat;
  clip-path: ellipse(24.9% 23% at 50% 38.9%);
  transform-origin: 50% 38.9%;
  transition: transform 105ms cubic-bezier(0.2, 0.78, 0.2, 1), filter 105ms ease;
  will-change: transform, filter;
}

.button-machine.is-pressed .button-face {
  transform: translateY(var(--press-depth)) scale(0.963);
  filter: saturate(1.13) brightness(0.93);
}

.button-machine.is-pressed .button-face-well { opacity: 1; }

.press-effects {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.effect-ring {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 34%;
  aspect-ratio: 1;
  border: 2px solid var(--buy);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.72);
  box-shadow: 0 0 0 2px rgba(13, 14, 11, 0.3);
  animation: verified-ring 650ms cubic-bezier(0.12, 0.7, 0.3, 1) forwards;
}

.effect-plus {
  --effect-x: 50%;
  --effect-y: 17%;
  --effect-drift: 0px;
  position: absolute;
  left: var(--effect-x);
  top: var(--effect-y);
  color: var(--buy);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 0 2px 0 var(--ink), 0 0 13px rgba(204, 255, 0, 0.86);
  transform: translate(-50%, -50%);
  animation: verified-plus 920ms cubic-bezier(0.16, 0.9, 0.25, 1) forwards;
}

.effect-plus small {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-family: "Spline Sans Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.effect-spark {
  --spark-x: 0px;
  --spark-y: 0px;
  --spark-turn: 0deg;
  position: absolute;
  left: 50%;
  top: 39%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink);
  background: var(--buy);
  transform: translate(-50%, -50%);
  box-shadow: 1px 1px 0 var(--ink);
  animation: verified-spark 620ms cubic-bezier(0.1, 0.72, 0.22, 1) forwards;
}

.effect-spark.is-white { background: var(--paper); }
.effect-spark.is-red { background: var(--signal); }

@keyframes verified-ring {
  0% { opacity: 0.92; transform: translate(-50%, -50%) scale(0.72); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.75); }
}

@keyframes verified-plus {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.68); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  62% { opacity: 1; transform: translate(-50%, -78%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--effect-drift)), -145%) scale(0.88); }
}

@keyframes verified-spark {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.2); }
  18% { opacity: 1; transform: translate(-50%, -50%) rotate(20deg) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) rotate(var(--spark-turn)) scale(0.3); }
}

.machine-label {
  position: absolute;
  right: 2%;
  bottom: 22%;
  width: 130px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
  color: var(--muted);
  font-size: 8px;
}

.machine-label b { color: var(--ink); font-weight: 600; }

.live-receipt {
  width: min(90%, 1120px);
  min-height: 94px;
  margin: -18px auto 0;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 138px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  position: relative;
  z-index: 3;
}

.receipt-counter {
  min-width: 0;
  align-self: stretch;
  padding-right: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label meter"
    "state state";
  align-content: center;
  border-right: 1px solid #3f413c;
  font-family: "Spline Sans Mono", monospace;
  text-transform: uppercase;
}

.receipt-counter > span { grid-area: label; color: #b8bcb2; font-size: 8px; }

.receipt-counter > small { grid-area: state; margin-top: 8px; color: #b8bcb2; font-size: 8px; }
.receipt-counter > small b { color: var(--paper); font-weight: 600; }

.signal-meter {
  grid-area: meter;
  display: flex;
  align-items: center;
  gap: 3px;
}

.signal-meter i {
  width: 6px;
  height: 6px;
  border: 1px solid #6d7168;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: background 130ms ease, border-color 130ms ease, transform 130ms ease;
}

.signal-meter[data-level="1"] i:first-child,
.signal-meter[data-level="2"] i:nth-child(-n+2),
.signal-meter[data-level="3"] i:nth-child(-n+3),
.signal-meter[data-level="4"] i {
  border-color: var(--buy);
  background: var(--buy);
  transform: scale(1.08);
}

@keyframes register-beacon {
  0%, 42% { background: var(--buy); }
  43%, 100% { background: var(--paper); }
}

.receipt-mark {
  width: 52px;
  height: 52px;
  position: relative;
}

.receipt-mark img {
  width: 48px;
  height: 48px;
  display: block;
  border: 1px solid #55584f;
  border-radius: 50%;
  object-fit: cover;
}

.receipt-mark i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--buy);
  border: 2px solid var(--ink);
}

.receipt-copy { min-width: 0; }

.receipt-copy > span {
  display: block;
  margin-bottom: 3px;
  color: #b8bcb2;
  font-size: 8px;
}

.receipt-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
  line-height: 1.05;
}

.receipt-copy strong b { color: var(--buy); }

.receipt-copy small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #b8bcb2;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-receipt > a {
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid #3f413c;
  color: var(--buy);
  font-family: "Spline Sans Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.button-round {
  width: min(90%, 1120px);
  min-height: 76px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: "Spline Sans Mono", monospace;
  position: relative;
  text-transform: uppercase;
}

.round-heading {
  min-width: 0;
  padding: 11px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 6px 10px;
  border-right: 1px solid var(--rule);
}

.round-heading > span {
  color: var(--muted);
  font-size: 8px;
}

.round-heading > strong {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.round-heading > b {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
}

.round-heading > b i { color: #526800; font-size: 16px; }

.round-heading > b > span { flex: 0 0 auto; }

.round-heading > b em {
  overflow: hidden;
  color: #526800;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-board {
  min-width: 0;
  padding: 10px 16px;
  display: grid;
  grid-template-rows: 16px 10px 13px;
  align-content: center;
  gap: 5px;
}

.round-legend {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  font-size: 8px;
  white-space: nowrap;
}

.round-legend span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.round-legend span i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
}

.round-legend span b { font-weight: 700; }
.round-legend .rank-0 i { background: var(--ink); }
.round-legend .rank-1 i { background: var(--buy); }
.round-legend .rank-2 i { background: var(--signal); }
.round-legend .rank-3 i { background: #8b9086; }
.round-empty-label { color: var(--muted); }

.round-track {
  min-width: 0;
  height: 10px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-cool);
}

.round-segment {
  height: 100%;
  display: block;
  border-left: 1px solid var(--paper);
  transition: width 320ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.round-segment:first-child { border-left: 0; }
.round-segment.rank-0 { background: var(--ink); }
.round-segment.rank-1 { background: var(--buy); }
.round-segment.rank-2 { background: var(--signal); }
.round-segment.rank-3 { background: #8b9086; }
.round-segment.is-empty { width: 100%; background: var(--paper-cool); }

.round-board > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-round.is-crown-flip::after {
  content: "";
  width: 3px;
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--buy);
  pointer-events: none;
  animation: crown-sweep 820ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

@keyframes crown-sweep {
  0% { left: 0; opacity: 1; }
  82% { left: calc(100% - 3px); opacity: 1; }
  100% { left: calc(100% - 3px); opacity: 0; }
}

.button-round + .metrics { margin-top: 0; }

.metrics {
  width: min(90%, 1120px);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.metrics > div {
  min-width: 0;
  min-height: 96px;
  padding: 15px 18px;
  border-left: 1px solid var(--rule);
}

.metrics > div:first-child { border-left: 0; }
.metrics span,
.metrics small { display: block; font-size: 8px; }
.metrics span { color: var(--muted); }
.metrics strong { display: block; margin: 4px 0 2px; font-size: 28px; line-height: 1; }
.metrics small { color: var(--muted); }

.recent-events {
  width: min(90%, 1120px);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--ink);
}

.recent-heading {
  padding: 15px 18px 15px 0;
  font-size: 9px;
}

.recent-heading span,
.recent-heading small { display: block; }
.recent-heading small { margin-top: 4px; color: var(--muted); font-size: 8px; }

.recent-events ol {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border-left: 1px solid var(--rule);
}

.recent-events li { min-width: 0; }

.recent-events li a,
.recent-empty {
  min-height: 70px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--rule);
}

.recent-events li:first-child a { border-left: 0; }

.recent-events li a:hover { background: var(--paper-cool); }
.recent-events li strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.recent-events li span { margin-top: 4px; color: var(--muted); font-family: "Spline Sans Mono", monospace; font-size: 8px; text-transform: uppercase; }
.recent-empty { grid-column: 1 / -1; color: var(--muted); font-family: "Spline Sans Mono", monospace; font-size: 9px; }

.footer-rail {
  min-height: 40px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--buy);
  border-top: 1px solid var(--ink);
  font-size: 9px;
}

.footer-rail a { font-weight: 700; }

body.overlay-mode {
  background: transparent;
}

body.overlay-mode .topbar,
body.overlay-mode .hero-copy,
body.overlay-mode .button-round,
body.overlay-mode .metrics,
body.overlay-mode .recent-events,
body.overlay-mode .footer-rail,
body.overlay-mode .stage-rule,
body.overlay-mode .machine-label { display: none; }

body.overlay-mode .live-stage {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

body.overlay-mode .live-receipt { margin-top: -36px; }

@media (max-width: 900px) {
  .topbar { padding: 0 20px; grid-template-columns: 1fr auto; }
  .topbar-center { display: none; }
  .utilities { gap: 14px; }
  .hero-copy h1 { font-size: 58px; }
  .button-zone { min-height: 360px; }
  .button-machine { max-width: 82vw; }
  .machine-label { display: none; }
  .live-receipt { grid-template-columns: 125px auto minmax(0, 1fr) auto; }
  .live-receipt,
  .button-round,
  .metrics,
  .recent-events { width: calc(100% - 40px); }
  .recent-events { grid-template-columns: 150px 1fr; }
  .recent-events ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-events li:nth-child(n+3) { display: none; }
}

@media (max-width: 620px) {
  .topbar { min-height: 54px; padding: 0 14px; }
  .wordmark { font-size: 13px; }
  .utilities a span { display: none; }
  .utilities a { font-size: 0; }
  .utilities a i { font-size: 16px; }
  .signal-controls { gap: 0; padding-right: 12px; }
  .volume-control { display: none; }
  .sound-control {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
    gap: 4px;
  }
  .sound-control .sound-label { display: none; }
  .sound-control > i { font-size: 18px; }
  .sound-bars { width: 8px; gap: 1px; }
  .hero-copy { padding: 26px 18px 0; }
  .hero-copy h1 { font-size: 46px; }
  .hero-line { display: block; font-size: 15px; }
  .hero-line span,
  .hero-line strong { display: block; }
  .button-zone {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto 72px;
    overflow: hidden;
  }
  .button-machine { width: 100%; max-width: 430px; grid-row: 1; }
  .press-effects { bottom: 72px; }
  .button-zone::after { right: 14px; bottom: 0; left: 14px; }
  .stage-register {
    position: relative;
    bottom: auto;
    left: auto;
    width: calc(100% - 28px);
    height: 72px;
    grid-row: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 12px;
  }
  .stage-register > span { grid-column: 2; align-self: end; }
  .stage-register > strong { grid-row: 1 / 3; align-self: center; margin: 0; font-size: 46px; }
  .stage-register > small { grid-column: 2; align-self: start; font-size: 7px; }
  .effect-plus { font-size: 26px; }
  .live-receipt { width: calc(100% - 24px); margin-top: 0; padding: 12px; grid-template-columns: 80px 42px minmax(0, 1fr); gap: 10px; }
  .receipt-counter { padding-right: 10px; }
  .receipt-counter > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .receipt-mark { width: 44px; height: 44px; }
  .receipt-mark img { width: 42px; height: 42px; }
  .receipt-copy strong {
    overflow: visible;
    font-size: 17px;
    line-height: 1;
    text-overflow: clip;
    white-space: normal;
  }
  .live-receipt > a { display: none; }
  .button-round {
    width: 100%;
    min-height: 84px;
    margin-top: 12px;
    grid-template-columns: 116px minmax(0, 1fr);
    border-right: 0;
    border-left: 0;
  }
  .round-heading {
    padding: 9px 12px;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .round-heading > strong { font-size: 12px; }
  .round-heading > b { font-size: 12px; gap: 4px; }
  .round-heading > b i { font-size: 13px; }
  .round-heading > b > span { display: none; }
  .round-board { padding: 9px 12px; gap: 5px; }
  .round-legend { gap: 9px; font-size: 7px; }
  .round-legend span { gap: 3px; }
  .round-legend span i { width: 6px; height: 6px; }
  .round-board > small { font-size: 7px; }
  .metrics { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .metrics > div { min-height: 84px; padding: 13px 14px; border-bottom: 1px solid var(--rule); }
  .metrics > div:nth-child(3) { border-left: 0; border-bottom: 0; }
  .metrics > div:nth-child(4) { border-bottom: 0; }
  .metrics strong { font-size: 23px; }
  .recent-events { width: 100%; margin-bottom: 20px; grid-template-columns: 1fr; }
  .recent-heading { padding: 14px; border-bottom: 1px solid var(--rule); }
  .recent-events ol { border-left: 0; }
  .recent-events li a { min-height: 64px; }
  .footer-rail { min-height: 48px; padding: 0 14px; font-size: 8px; }
  .footer-rail span:nth-child(2) { display: none; }
  .stage-rule-left { left: 14px; }
  .stage-rule-right { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .effect-plus,
  .effect-ring,
  .effect-spark { display: none !important; }
}
