:root {
  color-scheme: dark;
  --ink: #f5f4ee;
  --muted: #9699a2;
  --dim: #676b74;
  --paper: #090b10;
  --panel: rgba(18, 20, 27, 0.82);
  --panel-solid: #12141b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --acid: #e7ff70;
  --warm: #ffb84d;
  --hot: #ff654f;
  --cold: #75d9ff;
  --success: #a8f7bd;
  --danger: #ff7765;
  --heat: 0.06;
  --signal: 0.06;
  --multiplier-energy: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  width: 100%;
  height: 100%;
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -20%, #24202a 0, transparent 36rem),
    linear-gradient(180deg, #0c0e13 0%, var(--paper) 45%, #08090d 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.ambient,
.grain {
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

.ambient {
  width: 36rem;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.11;
  filter: blur(80px);
}

.ambient-one {
  top: 20%;
  left: -20rem;
  background: var(--cold);
}

.ambient-two {
  right: -22rem;
  bottom: 0;
  background: var(--hot);
}

.grain {
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app {
  width: 100%;
  height: 100dvh;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 28px);
}

.panel-label,
.readout-label {
  margin: 0;
  color: var(--warm);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  width: min(1180px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(13, 15, 20, 0.76);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
}

.control-panel {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--panel);
}

.control-panel {
  border-right: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-heading > div {
  display: grid;
  gap: 7px;
}

.panel-heading strong {
  font-size: 1rem;
  font-weight: 650;
}

.wallet-value {
  display: flex;
  gap: 7px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}

.wallet-value small {
  color: var(--dim);
  font-size: 0.65rem;
}

.text-button {
  padding: 4px 0;
  border: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
  font-size: 0.72rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.text-button:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.stake-control {
  margin: 48px 0 0;
}

.stake-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stake-heading label {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stake-heading output {
  font-size: 1rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 0;
  appearance: none;
  border-radius: 99px;
  background:
    linear-gradient(
      90deg,
      var(--warm) var(--stake-progress, 6.25%),
      rgba(255, 255, 255, 0.12) var(--stake-progress, 6.25%)
    );
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  appearance: none;
  border: 4px solid #171921;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 1px var(--warm), 0 0 18px rgba(255, 184, 77, 0.4);
}

input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 3px solid #171921;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 1px var(--warm), 0 0 18px rgba(255, 184, 77, 0.4);
}

input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.stake-bounds {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.6rem;
}

.stake-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 22px;
}

.stake-presets button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.stake-presets button:hover,
.stake-presets button.selected {
  border-color: rgba(255, 184, 77, 0.55);
  color: var(--ink);
  background: rgba(255, 184, 77, 0.1);
}

.stake-presets button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.round-data {
  display: grid;
  gap: 0;
  margin: 40px 0 0;
}

.round-data div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.round-data div:last-child {
  border-bottom: 1px solid var(--line);
}

.round-data dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.round-data dd {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.score-history {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}

.history-heading h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-heading span {
  color: var(--dim);
  font-size: 0.59rem;
  font-variant-numeric: tabular-nums;
}

.history-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 45px;
  border-top: 1px solid var(--line);
  animation: history-in 180ms ease-out;
}

.history-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.history-outcome {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--success);
  background: rgba(168, 247, 189, 0.08);
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.history-outcome.loss {
  color: var(--danger);
  background: rgba(255, 119, 101, 0.08);
}

.history-details {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.history-details strong {
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
}

.history-details small {
  overflow: hidden;
  color: var(--dim);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-change {
  font-size: 0.64rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.history-change.gain {
  color: var(--success);
}

.history-change.loss {
  color: var(--danger);
}

.history-change.neutral {
  color: var(--muted);
}

.history-list .empty-history {
  display: block;
  min-height: auto;
  padding: 15px 0;
  color: var(--dim);
  font-size: 0.62rem;
  line-height: 1.4;
}

.reactor-panel {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  padding: 28px clamp(24px, 4vw, 64px) 34px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 184, 77, calc(0.06 + var(--heat) * 0.18)),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 45%);
  transition: background 650ms ease;
}

.reactor-panel::before,
.reactor-panel::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.reactor-panel::before {
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 72%);
}

.reactor-panel::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm), transparent);
  opacity: calc(var(--heat) * 0.7);
  box-shadow: 0 0 24px var(--warm);
  transition: opacity 650ms ease, box-shadow 650ms ease;
}

.top-readout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--dim);
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readout-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}

.audio-toggle {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--warm);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.audio-toggle:hover {
  border-color: rgba(255, 184, 77, 0.45);
  background: rgba(255, 184, 77, 0.07);
}

.audio-toggle::after {
  position: absolute;
  width: 15px;
  height: 1px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.audio-toggle.muted {
  color: var(--dim);
}

.audio-toggle.muted::after {
  opacity: 1;
  transform: rotate(-45deg) scaleX(1);
}

.audio-bars {
  display: flex;
  gap: 2px;
  align-items: end;
  height: 12px;
}

.audio-bars i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
}

.audio-bars i:nth-child(1) {
  height: 5px;
}

.audio-bars i:nth-child(2) {
  height: 11px;
}

.audio-bars i:nth-child(3) {
  height: 8px;
}

.state-pill[data-state="active"] {
  border-color: rgba(255, 184, 77, 0.35);
  color: var(--warm);
  background: rgba(255, 184, 77, 0.07);
}

.state-pill[data-state="cashed"],
.state-pill[data-state="maxed"] {
  border-color: rgba(168, 247, 189, 0.35);
  color: var(--success);
  background: rgba(168, 247, 189, 0.07);
}

.state-pill[data-state="busted"] {
  border-color: rgba(255, 119, 101, 0.4);
  color: var(--danger);
  background: rgba(255, 119, 101, 0.08);
}

.reactor {
  position: relative;
  z-index: 1;
  width: clamp(210px, 26vw, 330px);
  aspect-ratio: 1;
  margin: 18px 0 -24px;
  filter:
    saturate(calc(0.92 + var(--heat) * 0.38))
    brightness(calc(0.96 + var(--heat) * 0.12));
  transform: scale(calc(0.92 + var(--heat) * 0.24));
  transition:
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 650ms ease;
}

.reactor-halo,
.reactor-orbit,
.reactor-core,
.core-glare,
.spark {
  position: absolute;
  border-radius: 50%;
}

.reactor-halo {
  inset: 6%;
  opacity: calc(0.16 + var(--heat) * 0.7);
  background:
    conic-gradient(
      from 0deg,
      transparent 0 15%,
      rgba(255, 184, 77, 0.48) 25%,
      transparent 38% 68%,
      rgba(231, 255, 112, 0.35) 78%,
      transparent 92%
    );
  filter: blur(calc(22px - var(--heat) * 11px));
  transition: opacity 700ms ease, filter 700ms ease;
  animation: rotate 8s linear infinite;
}

.reactor-orbit {
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.orbit-outer {
  inset: 11%;
  border-top-color: rgba(255, 184, 77, 0.6);
  border-right-color: transparent;
  animation: rotate 7s linear infinite;
}

.orbit-outer::before,
.orbit-inner::before {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 16px var(--warm);
  content: "";
}

.orbit-outer::before {
  top: 11%;
  right: 17%;
}

.orbit-inner {
  inset: 23%;
  border-bottom-color: rgba(231, 255, 112, 0.5);
  border-left-color: transparent;
  animation: rotate-reverse 4.5s linear infinite;
}

.orbit-inner::before {
  right: 9%;
  bottom: 14%;
  width: 5px;
  height: 5px;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
}

.reactor-core {
  inset: 32%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    radial-gradient(circle at 38% 32%, #fffbd5 0 3%, transparent 12%),
    radial-gradient(
      circle at 42% 40%,
      color-mix(in srgb, var(--warm), var(--hot) calc(var(--heat) * 70%)),
      #6a321d 60%,
      #17151a 100%
    );
  box-shadow:
    0 0 calc(22px + var(--heat) * 100px)
      rgba(255, 126, 67, calc(0.2 + var(--heat) * 0.55)),
    inset -15px -18px 25px rgba(0, 0, 0, 0.5),
    inset 10px 10px 20px rgba(255, 255, 255, 0.16);
  filter:
    saturate(calc(0.9 + var(--heat) * 0.65))
    brightness(calc(0.92 + var(--heat) * 0.2));
  transform: scale(calc(0.8 + var(--heat) * 0.48));
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 600ms ease,
    filter 650ms ease;
}

.core-glare {
  inset: -30%;
  background: conic-gradient(
    transparent 0 28%,
    rgba(255, 255, 255, 0.3) 35%,
    transparent 42% 70%,
    rgba(255, 231, 173, 0.24) 78%,
    transparent 85%
  );
  animation: rotate 3.5s linear infinite;
}

.spark {
  width: 4px;
  height: 4px;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  opacity: calc(0.1 + var(--heat) * 0.9);
}

.spark-one {
  top: 28%;
  left: 16%;
  animation: flicker 0.54s ease-in-out infinite alternate;
}

.spark-two {
  top: 66%;
  right: 16%;
  animation: flicker 0.41s 0.1s ease-in-out infinite alternate-reverse;
}

.spark-three {
  right: 27%;
  bottom: 15%;
  animation: flicker 0.67s 0.18s ease-in-out infinite alternate;
}

.multiplier-block {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}

.multiplier-block strong {
  margin: 4px 0 1px;
  font-size: clamp(3.8rem, 7vw, 6.4rem);
  font-weight: 530;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.075em;
  line-height: 1;
  text-shadow: 0 0 calc(var(--multiplier-energy) * 30px)
    rgba(255, 184, 77, 0.55);
}

.multiplier-block strong span {
  margin-left: 2px;
  color: var(--warm);
  font-size: 0.44em;
  vertical-align: 24%;
}

.multiplier-block > span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.signal {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  margin-top: 26px;
}

.signal-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-heading strong {
  color: color-mix(
    in srgb,
    var(--acid),
    var(--hot) calc(var(--signal) * 100%)
  );
  letter-spacing: 0.14em;
}

.signal-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.signal-track i {
  z-index: 2;
  border-right: 3px solid #15171e;
}

.signal-fill {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: calc(var(--signal) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cold), var(--acid) 45%, var(--warm) 72%, var(--hot));
  box-shadow: 0 0 14px rgba(255, 184, 77, 0.4);
  transition: width 120ms linear;
}

.hold-button {
  position: relative;
  z-index: 2;
  width: min(300px, 88%);
  min-height: 84px;
  margin-top: 32px;
  padding: 7px;
  border: 1px solid rgba(255, 184, 77, 0.46);
  border-radius: 22px;
  background: rgba(255, 184, 77, 0.08);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.hold-button:hover {
  border-color: rgba(255, 184, 77, 0.8);
  background: rgba(255, 184, 77, 0.12);
  transform: translateY(-2px);
}

.hold-button.holding {
  border-color: var(--acid);
  background: rgba(231, 255, 112, 0.11);
  transform: translateY(2px) scale(0.985);
}

.hold-button.busted {
  border-color: var(--danger);
  background: rgba(255, 101, 79, 0.1);
  animation: jolt 240ms ease-out;
}

.button-aura {
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  opacity: 0;
  background: var(--acid);
  filter: blur(24px);
  transition: opacity 120ms ease;
}

.holding .button-aura {
  opacity: calc(0.06 + var(--heat) * 0.16);
}

.button-face {
  position: relative;
  display: grid;
  min-height: 68px;
  place-content: center;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent),
    #17191f;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.button-face strong {
  font-size: 0.81rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button-face small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
}

.game-message {
  position: relative;
  z-index: 2;
  min-height: 2.8em;
  margin: 18px 0 0;
  color: #b8b9bf;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
}

.game-message.win {
  color: var(--success);
}

.game-message.loss {
  color: var(--danger);
}

.keyboard-hint {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--dim);
  font-size: 0.6rem;
}

kbd {
  display: inline-block;
  margin-left: 3px;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.58rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes flicker {
  from {
    opacity: 0.15;
    transform: scale(0.7);
  }
  to {
    opacity: calc(0.25 + var(--heat) * 0.75);
    transform: scale(calc(0.8 + var(--heat)));
  }
}

@keyframes history-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes jolt {
  20% {
    transform: translateX(-7px);
  }
  45% {
    transform: translateX(6px);
  }
  70% {
    transform: translateX(-3px);
  }
}

@media (max-width: 720px) {
  .app {
    padding: 8px;
  }

  .game-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    border-radius: 20px;
  }

  .reactor-panel {
    grid-row: 1;
    min-height: 0;
    padding: 16px 18px 12px;
  }

  .control-panel {
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(170px, 1.2fr);
    gap: 18px;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .stake-control {
    margin: 0;
  }

  .stake-heading {
    margin-bottom: 12px;
  }

  .stake-presets {
    margin-top: 12px;
  }

  .round-data {
    display: none;
  }

  .score-history {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 10px;
  }

  .history-heading {
    margin-bottom: 6px;
  }

  .history-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .history-list li {
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 2px 7px;
    min-height: 54px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .history-list li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .history-list li:nth-child(n + 4) {
    display: none;
  }

  .history-outcome {
    grid-row: 1 / span 2;
  }

  .history-change {
    grid-column: 2;
  }

  .history-list .empty-history {
    grid-column: 1 / -1;
    padding: 10px;
  }

  .reactor {
    width: clamp(155px, 25vh, 225px);
    margin: 2px 0 -20px;
  }

  .multiplier-block strong {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .signal {
    margin-top: 14px;
  }

  .hold-button {
    min-height: 70px;
    margin-top: 18px;
  }

  .button-face {
    min-height: 54px;
  }

  .game-message {
    min-height: 2em;
    margin-top: 12px;
  }

  .keyboard-hint {
    display: none;
  }
}

@media (max-height: 680px) {
  .reactor {
    width: clamp(125px, 23vh, 180px);
    margin-top: -10px;
  }

  .multiplier-block strong {
    font-size: clamp(3rem, 12vh, 4.6rem);
  }

  .signal {
    margin-top: 10px;
  }

  .hold-button {
    min-height: 64px;
    margin-top: 12px;
  }

  .button-face {
    min-height: 48px;
  }

  .game-message {
    min-height: 1.8em;
    margin-top: 8px;
  }

  .keyboard-hint {
    display: none;
  }
}

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