@font-face {
  font-family: "Space Grotesk Local";
  src: url("../fonts/space/SpaceGrotesk-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist Local";
  src: url("../fonts/urbanist/Urbanist-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #050813;
  --panel: #0b1020;
  --panel-2: #101a36;
  --red: #ff3b2f;
  --red-hot: #ff6a3d;
  --blue: #30a8ff;
  --blue-soft: #7fd3ff;
  --cream: #f7f2e8;
  --muted: #8b9aba;
  --court: #c9874d;
  --display: "Space Grotesk Local", "Arial Narrow", sans-serif;
  --body: "Urbanist Local", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body.game-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -10%, rgba(48, 168, 255, .18), transparent 37rem),
    radial-gradient(circle at 6% 75%, rgba(255, 59, 47, .11), transparent 28rem),
    linear-gradient(180deg, #02040a 0%, #070b17 55%, #03050c 100%);
  font-family: var(--body);
}

body.game-body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .17;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue-soft) !important;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  padding: .75rem 1rem;
  color: #fff;
  background: #000;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.game-shell {
  width: min(100%, 1720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 2.5vw, 2.75rem) 2rem;
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin-bottom: 1rem;
}

.brand-lockup {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(.9rem, 1.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}

.brand-lockup:hover {
  color: #fff;
}

.brand-lockup b {
  color: var(--red);
}

.brand-ball {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid #ffab70;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 59, 47, .55);
}

.brand-ball::before,
.brand-ball::after {
  position: absolute;
  content: "";
  background: #250d0b;
}

.brand-ball::before {
  top: 3px;
  bottom: 3px;
  left: 15px;
  width: 2px;
}

.brand-ball::after {
  top: 15px;
  right: 3px;
  left: 3px;
  height: 2px;
}

.game-actions {
  display: flex;
  gap: .55rem;
}

.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(132, 167, 225, .27);
  border-radius: 50%;
  background: rgba(13, 20, 40, .82);
  box-shadow: inset 0 1px rgba(255, 255, 255, .07);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--blue);
  background: rgba(48, 168, 255, .13);
}

.arcade-stage {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(420px, 760px) minmax(190px, 1fr);
  gap: clamp(1rem, 2.8vw, 3.5rem);
  align-items: center;
  min-height: calc(100vh - 110px);
}

.side-panel {
  max-width: 280px;
}

.side-panel-left {
  justify-self: end;
  text-align: right;
}

.side-panel-right {
  justify-self: start;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .19em;
}

.side-record {
  display: block;
  margin: .35rem 0 0;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.25rem);
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 59, 47, .65), 0 0 35px rgba(255, 59, 47, .28);
}

.record-owner {
  color: var(--muted);
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .18em;
}

.side-rule {
  width: 50px;
  height: 3px;
  margin: 1.4rem 0 1.4rem auto;
  background: linear-gradient(90deg, transparent, var(--red));
}

.side-panel p {
  color: #95a3bf;
  font-size: .84rem;
  line-height: 1.65;
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  padding: .4rem .68rem;
  color: #ffbd85;
  border: 1px solid rgba(255, 130, 62, .28);
  border-radius: 99px;
  background: rgba(255, 130, 62, .07);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.connection-pill::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #ff8938;
  box-shadow: 0 0 8px currentColor;
}

.connection-pill.is-online {
  color: #71efb6;
  border-color: rgba(49, 225, 154, .25);
  background: rgba(49, 225, 154, .07);
}

.connection-pill.is-online::before {
  background: #37e7a0;
}

.side-panel-right ol {
  padding: 0;
  margin: 1.35rem 0 0;
  list-style: none;
}

.side-panel-right li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: .8rem;
  align-items: start;
  padding: .9rem 0;
  border-top: 1px solid rgba(133, 162, 211, .14);
}

.side-panel-right li > span {
  color: var(--red);
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .08em;
}

.side-panel-right li p {
  margin: 0;
  line-height: 1.35;
}

.side-panel-right li strong {
  display: block;
  margin-bottom: .25rem;
  color: #fff;
  font-family: var(--display);
  font-size: .78rem;
  text-transform: uppercase;
}

.machine-frame {
  --cabinet-inset: clamp(4px, .55vw, 8px);
  position: relative;
  container-type: inline-size;
  width: min(100%, 760px);
  aspect-ratio: 54 / 77;
  margin: 0 auto;
  overflow: hidden;
  border: clamp(7px, 1vw, 12px) solid #76121b;
  border-radius: clamp(30px, 4vw, 58px) clamp(30px, 4vw, 58px) 18px 18px;
  background:
    linear-gradient(135deg, #21070c 0%, #841622 23%, #0b111f 52%, #0c5c91 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 175, 145, .4),
    0 0 0 3px #25080d,
    0 0 0 6px #137fc1,
    0 0 30px rgba(48, 168, 255, .24),
    0 42px 90px rgba(0, 0, 0, .6);
  isolation: isolate;
}

.machine-frame::before {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 2px rgba(255, 119, 96, .22),
    inset 0 0 18px rgba(0, 0, 0, .9);
}

.machine-frame::after {
  position: absolute;
  inset: 0;
  z-index: 50;
  content: "";
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 45px rgba(0, 0, 0, .72);
}

.machine-leds {
  position: absolute;
  z-index: 40;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0 6px,
    #d8f5ff 6px 10px,
    transparent 10px 19px
  );
  filter: drop-shadow(0 0 6px var(--blue));
  opacity: .18;
}

.machine-leds-top {
  top: 7px;
  right: 22px;
  left: 22px;
  height: 5px;
}

.machine-leds-left,
.machine-leds-right {
  top: 22px;
  bottom: 22px;
  width: 5px;
  background: repeating-linear-gradient(
    180deg,
    var(--blue) 0 6px,
    #d8f5ff 6px 10px,
    transparent 10px 19px
  );
}

.machine-leds-left { left: 8px; }
.machine-leds-right { right: 8px; }

.hud {
  position: absolute;
  top: 1.1%;
  left: 50%;
  z-index: 32;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(63%, 455px);
  padding: .24rem .68rem;
  border: 1px solid rgba(255, 72, 61, .58);
  border-radius: 8px;
  background: rgba(3, 6, 15, .78);
  box-shadow: 0 0 14px rgba(255, 59, 47, .16), inset 0 0 16px rgba(0, 0, 0, .72);
  transform: translateX(-50%);
  backdrop-filter: blur(7px);
}

.hud-cell {
  text-align: center;
}

.hud-cell span,
.console-stat span {
  display: block;
  color: #94a3c1;
  font-family: var(--display);
  font-size: clamp(.48rem, .9vw, .65rem);
  letter-spacing: .13em;
}

.hud-cell strong {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.35vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  text-shadow: 0 0 8px rgba(255, 59, 47, .75);
}

.hud-time.is-urgent strong {
  animation: urgent-pulse .65s steps(2) infinite;
}

.game-canvas {
  position: absolute;
  inset: var(--cabinet-inset);
  z-index: 5;
  overflow: hidden;
  border-radius: clamp(22px, 3.5vw, 49px) clamp(22px, 3.5vw, 49px) 10px 10px;
  touch-action: none;
  user-select: none;
}

.game-canvas canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit;
  object-fit: contain;
}

.machine-console {
  position: absolute;
  right: 5%;
  bottom: 3.5%;
  left: 5%;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr .8fr 1fr;
  align-items: center;
  min-height: 74px;
  padding: .7rem 1rem;
  border: 2px solid #6f1722;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 14, 32, .96), rgba(2, 5, 12, .98));
  box-shadow: 0 0 18px rgba(255, 59, 47, .16), inset 0 0 18px rgba(0, 0, 0, .7);
}

.console-stat {
  text-align: center;
}

.console-stat strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(.78rem, 1.6vw, 1.18rem);
  font-variant-numeric: tabular-nums;
}

.console-center {
  border-right: 1px solid rgba(130, 160, 215, .18);
  border-left: 1px solid rgba(130, 160, 215, .18);
}

.console-center strong {
  color: var(--red);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.start-overlay,
.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
}

.start-overlay {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(2, 4, 12, .35), rgba(2, 5, 14, .9)),
    radial-gradient(circle at 50% 35%, rgba(23, 122, 219, .2), transparent 45%);
  backdrop-filter: blur(4px);
  transition: opacity .35s ease, visibility .35s ease;
}

.start-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.start-card {
  max-width: 500px;
  text-align: center;
}

.start-card h1 {
  margin: .5rem 0 1rem;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6.7rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .75;
  text-shadow: 6px 6px 0 #111d3d, 0 0 32px rgba(48, 168, 255, .24);
  transform: skew(-4deg);
}

.start-card h1 em {
  color: var(--red);
  font-style: inherit;
}

.start-card p {
  max-width: 390px;
  margin: 0 auto 1.5rem;
  color: #a7b5d0;
  font-size: clamp(.8rem, 1.5vw, 1rem);
  line-height: 1.5;
}

.start-card .btn-primary,
.arcade-modal .btn-primary,
.leaderboard-card .btn-primary {
  border-color: var(--red);
  background: linear-gradient(135deg, #ff2e2e, #e12636);
  box-shadow: 0 12px 30px rgba(255, 46, 46, .25), inset 0 1px rgba(255, 255, 255, .25);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .08em;
}

.pause-play-icon {
  display: none;
}

.start-card small {
  display: block;
  margin-top: 1rem;
  color: #71809c;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.countdown-overlay {
  background: rgba(2, 4, 10, .55);
  backdrop-filter: blur(3px);
}

.countdown-overlay strong {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(6rem, 20vw, 15rem);
  line-height: 1;
  text-shadow: 0 0 10px #fff, 0 0 35px var(--red), 8px 8px 0 #1d2b55;
}

.countdown-overlay strong.pop {
  animation: countdown-pop .55s cubic-bezier(.19, .8, .25, 1);
}

.game-message {
  position: absolute;
  top: 21%;
  left: 50%;
  z-index: 65;
  max-width: 84%;
  padding: .55rem 1.2rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 99px;
  background: rgba(5, 8, 19, .87);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .45);
  font-family: var(--display);
  font-size: clamp(.85rem, 2.2vw, 1.45rem);
  letter-spacing: .08em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -10px) scale(.92);
  transition: .2s ease;
  pointer-events: none;
}

.game-message.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.game-message[data-tone="success"] { border-color: #62efad; box-shadow: 0 0 22px rgba(98, 239, 173, .24); }
.game-message[data-tone="warning"] { border-color: #ffad5c; }
.game-message[data-tone="fire"] {
  color: #fff6da;
  border-color: #ff7426;
  background: linear-gradient(90deg, rgba(143, 22, 0, .94), rgba(235, 58, 0, .94));
  box-shadow: 0 0 35px rgba(255, 84, 0, .55);
}

.practice-banner {
  position: absolute;
  top: 12.5%;
  left: 50%;
  z-index: 31;
  width: max-content;
  max-width: 80%;
  padding: .34rem .7rem;
  color: #ffc185;
  border: 1px solid rgba(255, 161, 74, .28);
  border-radius: 99px;
  background: rgba(42, 21, 7, .84);
  font-size: clamp(.52rem, 1vw, .68rem);
  text-align: center;
  transform: translateX(-50%);
}

.sponsor-hotspot {
  position: absolute;
  top: 41%;
  right: 27.8%;
  bottom: auto;
  z-index: 35;
  display: inline-flex;
  gap: .3cqw;
  align-items: center;
  justify-content: center;
  width: 12.5%;
  max-width: none;
  height: 2%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: transparent;
  border: 1px solid transparent;
  border-radius: max(3px, .65cqw);
  background: transparent;
  box-shadow: none;
  font-size: clamp(.3rem, .95cqw, .46rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
  backdrop-filter: none;
}

.game-credit {
  margin: 1.35rem auto 0;
  color: #6f7d98;
  font-family: var(--display);
  font-size: clamp(.56rem, .8vw, .7rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}

.machine-frame.is-on-fire {
  box-shadow:
    inset 0 1px 0 rgba(255, 205, 135, .55),
    0 0 0 3px #571106,
    0 0 0 6px #ff6a00,
    0 0 52px rgba(255, 78, 0, .48),
    0 42px 90px rgba(0, 0, 0, .65);
}

.machine-frame.is-on-fire .machine-leds {
  opacity: .55;
  background: repeating-linear-gradient(90deg, #ff3b1f 0 6px, #ffe17a 6px 10px, transparent 10px 19px);
  filter: drop-shadow(0 0 9px #ff5a00);
}

.machine-frame.is-paused .game-canvas {
  filter: saturate(.4) brightness(.55);
}

.arcade-modal {
  color: #fff;
  border: 1px solid rgba(69, 181, 255, .32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(48, 168, 255, .12), transparent 40%),
    #080d1d;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .68), 0 0 32px rgba(48, 168, 255, .12);
}

.arcade-modal .modal-header {
  align-items: flex-start;
  padding: 1.6rem 1.7rem 1rem;
  border-bottom-color: rgba(121, 154, 210, .16);
}

.arcade-modal .modal-title {
  margin-top: .2rem;
  color: #fff;
  font-family: var(--display);
  font-size: 2rem;
}

.arcade-modal .modal-body {
  padding: 1.7rem;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

.instruction-grid > div {
  padding: 1rem;
  border: 1px solid rgba(111, 150, 211, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.instruction-grid b {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: .9rem;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--red);
  font-family: var(--display);
}

.instruction-grid h3 {
  margin: 0 0 .3rem;
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
}

.instruction-grid p,
.keyboard-note,
.arcade-modal p {
  color: #9eabc4;
  font-size: .86rem;
  line-height: 1.55;
}

.keyboard-note {
  margin: 1.2rem 0 0;
}

.leaderboard-list {
  display: grid;
  gap: .55rem;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 44px 1fr 90px 70px;
  gap: .6rem;
  align-items: center;
  padding: .8rem 1rem;
  border: 1px solid rgba(120, 153, 209, .15);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.leaderboard-row:first-child {
  border-color: rgba(255, 71, 50, .43);
  background: linear-gradient(90deg, rgba(255, 59, 47, .11), transparent);
}

.leaderboard-row .rank {
  color: var(--red);
  font-family: var(--display);
  font-weight: 700;
}

.leaderboard-row strong {
  color: #fff;
  font-family: var(--display);
  letter-spacing: .12em;
}

.leaderboard-row > span:not(.rank) {
  color: #8493af;
  font-size: .75rem;
}

.leaderboard-row b {
  color: var(--red);
  font-family: var(--display);
  font-size: 1.4rem;
  text-align: right;
}

.reward-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .35rem .7rem;
  color: #07101f;
  border-radius: 99px;
  background: #69d7ff;
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.reward-modal-content h2,
.final-modal-content h2 {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: .95;
}

.promo-code {
  padding: .9rem;
  color: #99a7c0;
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  font-size: .7rem;
  letter-spacing: .14em;
}

.promo-code strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1.1rem;
}

.final-score {
  margin: 1.5rem auto;
}

.final-score span {
  display: block;
  color: #92a2bd;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .16em;
}

.final-score strong {
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: .9;
  text-shadow: 0 0 25px rgba(255, 59, 47, .5);
}

.initials-input {
  max-width: 270px;
  height: 72px;
  margin: 0 auto;
  color: var(--red) !important;
  border: 1px solid rgba(255, 59, 47, .5);
  background: #03050c !important;
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: .3em;
  text-align: center;
  text-transform: uppercase;
}

.text-button {
  color: #8190ab;
  border: 0;
  background: transparent;
  font-size: .78rem;
  text-decoration: underline;
}

.leaderboard-page,
.legal-copy {
  min-height: 100vh;
}

.leaderboard-card {
  max-width: 760px;
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid rgba(69, 181, 255, .25);
  border-radius: 24px;
  background: rgba(8, 13, 29, .88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
}

.leaderboard-card h1,
.legal-copy h1 {
  margin-top: .25rem;
  color: #fff;
  font-family: var(--display);
}

.legal-copy {
  max-width: 760px;
}

.legal-copy p {
  color: #a7b3c8;
  line-height: 1.75;
}

@keyframes countdown-pop {
  0% { opacity: 0; transform: scale(.45); }
  55% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes urgent-pulse {
  50% { opacity: .38; }
}

@media (max-width: 1240px) {
  .arcade-stage {
    display: block;
    min-height: 0;
  }

  .side-panel {
    display: none;
  }

  .machine-frame {
    width: min(100%, 760px, calc((100dvh - 104px) * .7013));
    max-height: calc(100dvh - 104px);
  }
}

@media (max-width: 820px) {
  body.game-body {
    overscroll-behavior: none;
  }

  .game-shell {
    min-height: 100dvh;
    padding: max(.65rem, env(safe-area-inset-top)) .7rem max(.8rem, env(safe-area-inset-bottom));
  }

  .game-topbar {
    min-height: 50px;
    margin-bottom: .6rem;
  }

  .brand-ball {
    width: 29px;
    height: 29px;
  }

  .brand-ball::before {
    left: 13px;
  }

  .brand-ball::after {
    top: 13px;
  }

  .game-actions {
    gap: .35rem;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .arcade-stage {
    display: block;
    min-height: 0;
  }

  .side-panel {
    display: none;
  }

  .machine-frame {
    width: min(100%, calc((100dvh - 76px) * .7013));
    max-height: calc(100dvh - 76px);
    border-width: 7px;
    border-radius: 30px 30px 13px 13px;
  }

  .hud {
    top: .9%;
    width: 69%;
  }

  .machine-console {
    right: 3.5%;
    bottom: 2.3%;
    left: 3.5%;
    min-height: 58px;
    padding: .45rem .55rem;
  }

  .start-card h1 {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  #pause-button.is-resume .pause-glyph {
    display: none;
  }

  #pause-button.is-resume .pause-play-icon {
    display: block;
    font-size: 1.65rem;
    line-height: 1;
  }

  .sponsor-hotspot {
    top: 41%;
    right: 27.8%;
    bottom: auto;
  }
}

@media (max-width: 520px) {
  .brand-lockup {
    gap: .45rem;
    font-size: .77rem;
    letter-spacing: .04em;
  }

  .game-actions .icon-button:first-child {
    display: none;
  }

  .hud {
    top: .8%;
    padding: .2rem .4rem;
  }

  .start-overlay {
    padding: 1rem;
  }

  .start-card p {
    font-size: .78rem;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: 30px 1fr 56px;
  }

  .leaderboard-row > span:not(.rank) {
    display: none;
  }

  .practice-banner {
    top: 11.5%;
  }

  .game-credit {
    margin-top: 1rem;
    font-size: .54rem;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .game-shell {
    padding: .25rem;
  }

  .game-topbar {
    position: fixed;
    top: .35rem;
    right: .5rem;
    left: .5rem;
    z-index: 90;
    pointer-events: none;
  }

  .game-topbar > * {
    pointer-events: auto;
  }

  .machine-frame {
    width: calc((100dvh - 8px) * .7013);
    max-height: calc(100dvh - 8px);
  }

  .brand-lockup span:last-child {
    display: none;
  }
}

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