:root {
  color-scheme: dark;
  --bg: #05060a;
  --bg-2: #08111f;
  --panel: rgba(8, 17, 31, 0.84);
  --panel-strong: #0d1524;
  --line: rgba(0, 229, 255, 0.22);
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.62);
  --cyan: #00e5ff;
  --blue: #3b82f6;
  --magenta: #ff2fd1;
  --violet: #7c3aed;
  --yellow: #ffd400;
  --danger: #ff3b3b;
  --bronze: #c97b3c;
  --silver: #c7d0da;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
  --glow-cyan: 0 0 18px rgba(0, 229, 255, 0.22);
  --glow-blue: 0 0 22px rgba(59, 130, 246, 0.26);
  --glow-magenta: 0 0 18px rgba(255, 47, 209, 0.2);
  --glow-yellow: 0 0 20px rgba(255, 212, 0, 0.22);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: "Rajdhani", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 14%, rgba(0, 229, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 84% 16%, rgba(255, 47, 209, 0.16), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent 28%),
    var(--bg);
  overscroll-behavior: none;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.36));
  background-size:
    100% 3px,
    56px 56px,
    100% 100%;
  mix-blend-mode: screen;
  opacity: 0.32;
}

html.public-page,
body.public-page {
  overflow: hidden;
  height: 100%;
  min-height: 100%;
}

.cabinet-frame {
  width: min(1420px, calc(100% - 14px));
  margin: 10px auto 18px;
  padding: 10px 10px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 8%),
    linear-gradient(180deg, rgba(124, 58, 237, 0.08), transparent 24%),
    linear-gradient(180deg, #131825, #090c14 18%, #040508 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 30px rgba(0, 0, 0, 0.7),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 229, 255, 0.08),
    0 0 50px rgba(0, 229, 255, 0.08);
  position: relative;
}

.cabinet-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.1);
  pointer-events: none;
  box-shadow:
    inset 0 0 18px rgba(0, 229, 255, 0.06),
    inset 0 0 34px rgba(255, 47, 209, 0.05);
}

.cabinet-viewport {
  height: calc(100dvh - 20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

button,
.button-link {
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 10px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(8, 17, 31, 0.96)),
    var(--panel-strong);
  font: inherit;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 8px 18px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(0, 229, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.primary-link {
  color: #041210;
  background: linear-gradient(180deg, #3fffff, var(--cyan));
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

button:hover,
.button-link:hover {
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.24), rgba(8, 17, 31, 0.98)),
    var(--panel-strong);
  border-color: rgba(0, 229, 255, 0.48);
  box-shadow:
    var(--glow-cyan),
    0 0 26px rgba(59, 130, 246, 0.16);
  filter: brightness(1.04);
}

button:active,
.button-link:active {
  transform: translateY(1px) scale(0.985);
}

.app-shell {
  width: min(1360px, calc(100% - 20px));
  height: 100dvh;
  margin: 0 auto;
  padding: 6px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.home-screen,
.boot-fallback {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 14%, rgba(0, 229, 255, 0.08), transparent 26rem),
    rgba(7, 7, 7, 0.82);
  backdrop-filter: blur(10px);
}

.home-card,
.boot-card {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.09), rgba(17, 17, 17, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.home-copy,
.boot-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.home-actions,
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.home-actions button,
.home-actions .button-link,
.install-actions button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.home-actions button {
  color: #041210;
  background: linear-gradient(180deg, #3fffff, var(--cyan));
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

.home-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: "Orbitron", sans-serif;
}

.install-prompt {
  position: fixed;
  right: 12px;
  bottom: 38px;
  z-index: 15;
  width: min(360px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 47, 209, 0.1), rgba(17, 17, 17, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
}

.install-prompt span {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer {
  position: static;
  margin-top: 8px;
  color: rgba(245, 245, 245, 0.54);
  font-size: 0.64rem;
  font-family: "Orbitron", sans-serif;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  letter-spacing: 0.08em;
}

.game-panel,
.side-panel {
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.06), rgba(8, 17, 31, 0.98) 18%),
    #090b10;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 12px 30px rgba(255, 255, 255, 0.02),
    0 16px 42px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(0, 229, 255, 0.04);
  backdrop-filter: blur(10px);
}

.game-panel {
  min-height: 0;
  padding: 6px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
}

.top-bar,
.controls-row {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  align-items: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: var(--glow-cyan);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  font-family: "Audiowide", sans-serif;
}

h1 {
  font-size: clamp(0.98rem, 1.55vw, 1.3rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(245, 245, 245, 0.08);
}

h2 {
  font-size: 0.96rem;
  color: var(--yellow);
  text-transform: uppercase;
  text-shadow: var(--glow-yellow);
}

.difficulty,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.difficulty-btn,
.actions button,
.actions .button-link {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  font-size: 0.74rem;
}

.difficulty-btn.active,
.actions button:first-child {
  color: #041210;
  background: linear-gradient(180deg, #3fffff, var(--cyan));
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

.actions button:nth-child(3) {
  color: #281d00;
  background: linear-gradient(180deg, #ffe676, var(--yellow));
  border-color: transparent;
  box-shadow: var(--glow-yellow);
}

.actions button:nth-child(4) {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 47, 209, 0.28), rgba(17, 17, 17, 0.95)),
    var(--panel-strong);
  border-color: transparent;
  box-shadow: var(--glow-magenta);
}

.actions .button-link {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 47, 209, 0.28), rgba(17, 17, 17, 0.95)),
    var(--panel-strong);
  border-color: transparent;
  box-shadow: var(--glow-magenta);
}

.stats-grid {
  margin: 3px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.stat {
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(17, 17, 17, 0.92)),
    rgba(17, 17, 17, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.04);
}

.stat span,
.seed-box span {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 800;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat strong {
  display: block;
  min-height: 1.05em;
  overflow-wrap: anywhere;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.68rem, 0.86vw, 0.82rem);
  line-height: 0.96;
}

.timer-stat {
  grid-column: auto;
  text-align: center;
  padding: 4px 5px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.14), rgba(17, 17, 17, 0.95)),
    rgba(17, 17, 17, 0.95);
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.05), var(--glow-cyan);
}

.timer-stat span {
  margin-bottom: 2px;
}

.timer-stat strong {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.08rem, 1.65vw, 1.48rem);
  line-height: 0.92;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.24);
}

.timer-stat strong.timer-hot {
  color: var(--yellow);
  animation: timerHot 520ms ease infinite alternate;
}

@keyframes timerHot {
  from {
    transform: scale(1);
    text-shadow: 0 0 18px rgba(41, 211, 168, 0.2);
  }
  to {
    transform: scale(1.018);
    text-shadow: 0 0 28px rgba(255, 212, 0, 0.52);
  }
}

.pace-good {
  color: var(--yellow);
}

.pace-bad {
  color: var(--danger);
}

.canvas-wrap {
  position: relative;
  width: min(100%, calc(100dvh - 300px));
  max-height: 100%;
  margin: 0 auto;
  aspect-ratio: 1;
  align-self: center;
  min-height: 140px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.06), transparent 35%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.56), rgba(3, 4, 6, 0.92)),
    #040404;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 32px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(255, 212, 0, 0.06),
    0 0 36px rgba(0, 229, 255, 0.06);
}

.canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 3px, 44px 44px;
  opacity: 0.28;
  pointer-events: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.finish-flash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 212, 0, 0.12), transparent 42%),
    rgba(7, 7, 7, 0.68);
  color: var(--yellow);
  font-size: clamp(2rem, 8vw, 5rem);
  font-family: "Orbitron", sans-serif;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: var(--glow-yellow);
  animation: finishPulse 850ms ease forwards;
}

@keyframes finishPulse {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  22%,
  72% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

.controls-row {
  margin-top: 4px;
  min-width: 0;
}

.seed-box {
  min-width: 0;
  max-width: 52%;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 47, 209, 0.08), rgba(17, 17, 17, 0.92)),
    rgba(17, 17, 17, 0.92);
}

.seed-display {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.seed-box code {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.66rem;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seed-display button,
.seed-play button,
.seed-history button {
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line);
  font-size: 0.64rem;
}

.seed-message {
  min-height: 1.1em;
  margin: 2px 0 0;
  color: var(--yellow);
  font-size: 0.64rem;
  font-weight: 800;
}

.seed-message.error {
  color: var(--danger);
}

.seed-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  margin-top: 2px;
  min-width: 0;
}

.seed-play input {
  min-width: 0;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(17, 17, 17, 0.92);
  font: inherit;
  font-weight: 700;
  font-size: 0.7rem;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.05);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(17, 17, 17, 0.92)),
    rgba(17, 17, 17, 0.92);
  color: var(--muted);
  font-size: 0.62rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  user-select: none;
}

.toggle input {
  width: 13px;
  height: 13px;
  accent-color: var(--cyan);
}

.side-panel {
  min-height: 0;
  padding: 8px;
  position: static;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.run-hud {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(7, 10, 16, 0.98)),
    rgba(7, 7, 7, 0.98);
  box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.04);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.arcade-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.arcade-actions button {
  min-height: 40px;
  font-size: 0.9rem;
}

.panel-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.section-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.section-mini-head button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.world-panel {
  min-height: 0;
  padding-top: 2px;
}

.leaderboard {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: auto;
  max-height: 66%;
  scrollbar-width: thin;
}

.history-title {
  margin-top: 4px;
  font-size: 0.8rem;
}

.seed-history {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
  align-content: start;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
}

.seed-history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px;
  align-items: center;
  padding: 2px 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 32, 0.68);
}

.seed-history .mini-actions {
  display: flex;
  gap: 4px;
}

.seed-history strong,
.seed-history code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seed-history strong {
  font-size: 0.62rem;
}

.seed-history code,
.seed-history .meta {
  color: var(--muted);
  font-size: 0.54rem;
}

.leaderboard li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(8, 17, 31, 0.98)),
    rgba(17, 17, 17, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(255, 255, 255, 0.015);
}

.owner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 1px solid rgba(255, 212, 0, 0.45);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(255, 212, 0, 0.08);
  font-family: "Orbitron", sans-serif;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 212, 0, 0.14);
}

.owner-badge.inline-badge {
  margin-left: 6px;
}

.leaderboard li:nth-child(1) .rank,
.leaderboard li:nth-child(1) strong {
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
}

.leaderboard li:nth-child(2) .rank,
.leaderboard li:nth-child(2) strong {
  color: var(--silver);
}

.leaderboard li:nth-child(3) .rank,
.leaderboard li:nth-child(3) strong {
  color: var(--bronze);
}

.leaderboard button,
.leaderboard .no-ghost {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
}

.leaderboard button.active-ghost {
  color: #041210;
  background: linear-gradient(180deg, #3fffff, var(--cyan));
  box-shadow: var(--glow-cyan);
}

.leaderboard .no-ghost {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.leaderboard .rank {
  color: var(--blue);
  font-weight: 950;
  font-family: "Orbitron", sans-serif;
  font-size: 1.56rem;
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.18);
}

.leaderboard strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.86rem;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.leaderboard .meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.2;
}

.leaderboard .meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.leaderboard .self-row {
  border-color: rgba(255, 212, 0, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 212, 0, 0.08), rgba(17, 17, 17, 0.96)),
    rgba(17, 17, 17, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 212, 0, 0.08),
    0 0 18px rgba(255, 212, 0, 0.08);
}

.leaderboard .self-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 0, 0.35);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
}

.leaderboard .empty {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.leaderboard.compact-board li {
  min-height: 58px;
}

.leaderboard .rival-delta {
  color: #7fe8ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.subpanel-title {
  margin: 10px 0 6px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-objective {
  color: #7fe8ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.world-actions {
  display: flex;
  justify-content: flex-start;
  margin: 8px 0 10px;
}

.world-actions button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.daily-world-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 10px;
}

.daily-world-stat {
  padding: 10px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(17, 17, 17, 0.96)),
    rgba(17, 17, 17, 0.96);
}

.daily-world-stat span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.daily-world-stat strong {
  display: block;
  color: #f6fbff;
  font-family: "Orbitron", sans-serif;
  font-size: 1.12rem;
}

.touch-pad {
  position: relative;
  z-index: 1;
  margin: 10px auto 0;
  width: 210px;
  min-height: 168px;
  display: none;
  justify-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(8, 17, 31, 0.98)),
    rgba(17, 17, 17, 0.98);
  box-shadow: var(--shadow), 0 0 26px rgba(0, 229, 255, 0.08);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: contain;
  contain: layout paint;
}

.touch-joystick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 142px;
  height: 142px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.12), rgba(8, 17, 31, 0.98) 68%);
  border: 1px solid rgba(0, 229, 255, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 26px rgba(0, 229, 255, 0.08),
    0 0 24px rgba(0, 229, 255, 0.08);
  transition: opacity 90ms ease;
  will-change: opacity;
}

.touch-pad.is-active .touch-joystick {
  opacity: 1;
  border-color: rgba(255, 212, 0, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 30px rgba(0, 229, 255, 0.12),
    0 0 28px rgba(255, 212, 0, 0.14);
}

.touch-joystick-ring {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.05);
}

.touch-stick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(0, 229, 255, 0.28), rgba(17, 17, 17, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 18px rgba(0, 229, 255, 0.16);
  pointer-events: none;
  transition: none;
  will-change: transform;
  backface-visibility: hidden;
}

.joystick-side-btn {
  display: none;
}

.touch-pad-label {
  align-self: end;
  margin: 0;
  color: #7fe8ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.result-card {
  width: min(430px, 100%);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.12), rgba(8, 17, 31, 0.96)),
    var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48), 0 0 34px rgba(0, 229, 255, 0.08);
  text-align: center;
}

.result-badge {
  margin: 0 0 4px;
  color: var(--yellow);
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: var(--glow-yellow);
}

.result-badge.new-best {
  color: var(--yellow);
  animation: bestGlow 850ms ease infinite alternate;
}

@keyframes bestGlow {
  from {
    text-shadow: 0 0 8px rgba(41, 211, 168, 0.24);
  }
  to {
    text-shadow: 0 0 26px rgba(255, 212, 0, 0.85);
  }
}

.final-time {
  display: block;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 0.95;
}

.result-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.result-lines div {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 32, 0.72);
}

.result-lines span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-lines strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.result-actions button {
  min-height: 46px;
  padding: 0 12px;
}

.result-actions button:first-child {
  color: #041210;
  background: linear-gradient(180deg, #3fffff, var(--cyan));
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

#modalRestartBtn {
  color: #041210;
  background: linear-gradient(180deg, #3fffff, var(--cyan));
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

@media (max-width: 940px) {
  .app-shell {
    width: min(100% - 12px, 720px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 148px;
    gap: 6px;
    padding: 6px 0;
  }

  .side-panel {
    min-height: 0;
  }

  .side-panel h2,
  .panel-note,
  .history-title,
  .seed-history {
    display: none;
  }

  .leaderboard {
    max-height: none;
    flex: 1 1 auto;
    margin-top: 6px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: 100%;
    padding: 4px;
    grid-template-rows: minmax(0, 1fr) 118px;
  }

  .game-panel,
  .side-panel {
    padding: 7px;
  }

  .game-panel {
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  }

  .top-bar,
  .controls-row {
    align-items: center;
    flex-direction: row;
  }

  .top-bar {
    gap: 6px;
  }

  h1 {
    font-size: 1.18rem;
  }

  .eyebrow {
    display: none;
  }

  .difficulty,
  .actions {
    justify-content: flex-end;
  }

  .difficulty button,
  .actions button,
  .actions .button-link {
    flex: 0 1 auto;
    min-height: 30px;
    padding: 0 7px;
    font-size: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .stat:not(.timer-stat) {
    padding: 5px 4px;
    text-align: center;
  }

  .stat span,
  .seed-box span {
    font-size: 0.56rem;
  }

  .stat strong {
    font-size: 0.78rem;
  }

  .timer-stat {
    grid-column: 1 / -1;
    padding: 4px 5px 5px;
  }

  .timer-stat strong {
    font-size: clamp(1.3rem, 7.4vw, 1.9rem);
  }

  .canvas-wrap {
    width: min(100%, calc(100dvh - 330px));
  }

  .controls-row {
    gap: 6px;
    margin-top: 6px;
  }

  .seed-box {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 5px 6px;
  }

  .seed-box code {
    font-size: 0.72rem;
  }

  .seed-message {
    display: none;
  }

  .seed-play {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    margin-top: 5px;
  }

  .seed-play input {
    min-height: 30px;
    font-size: 0.78rem;
  }

  .seed-play button {
    min-height: 30px;
  }

  .options-row {
    justify-content: flex-start;
  }

  .toggle {
    flex: 0 1 auto;
    justify-content: center;
    min-height: 28px;
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .result-lines {
    grid-template-columns: 1fr;
  }

  .touch-pad {
    display: grid;
    position: static;
    margin: 12px auto 4px;
    width: 218px;
    min-height: 174px;
    gap: 10px;
    padding: 8px;
  }

  .touch-joystick {
    width: 152px;
    height: 152px;
  }

  .touch-stick {
    width: 60px;
    height: 60px;
  }

  .touch-pad-label {
    font-size: 0.78rem;
  }
}

.daily-shell {
  width: min(1280px, calc(100% - 20px));
  height: calc(100% - 84px);
  margin: 0 auto;
  padding: 0 0 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.daily-header,
.daily-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(17, 17, 17, 0.96) 22%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.daily-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
}

.daily-header h1 {
  font-family: "Audiowide", sans-serif;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f9fcff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.12);
}

.daily-header p {
  margin: 4px 0 0;
  color: #82e9ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.daily-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.daily-toolbar .button-link,
.daily-toolbar button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.daily-toolbar .button-link.primary {
  color: #041210;
  background: linear-gradient(180deg, #3fffff, var(--cyan));
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

.daily-panel {
  padding: 16px;
  min-height: 0;
  overflow: hidden;
}

.daily-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  min-height: 0;
  overflow: auto;
  align-content: start;
  padding-right: 4px;
}

.daily-card {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(17, 17, 17, 0.96)),
    rgba(17, 17, 17, 0.96);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.04);
}

.daily-card.today {
  border-color: rgba(255, 212, 0, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 0, 0.08), var(--glow-yellow);
}

.daily-card h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.96rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.daily-card .meta,
.daily-card .seed-line {
  margin: 0;
  color: #7fe8ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-card .best-line {
  margin: 10px 0 0;
  color: var(--yellow);
  font-family: "Orbitron", sans-serif;
  font-size: 1.46rem;
  line-height: 1;
}

.daily-card .card-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.daily-card .card-actions .button-link,
.daily-card .card-actions button {
  flex: 1 1 auto;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.daily-empty {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 680px) {
  .daily-shell {
    width: 100%;
    padding: 6px;
  }

  .daily-header {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-toolbar {
    justify-content: flex-start;
  }

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

  .home-card,
  .boot-card {
    padding: 18px;
  }

  .home-copy,
  .boot-card p {
    font-size: 0.86rem;
  }

  .install-prompt {
    right: 6px;
    bottom: 56px;
    width: calc(100vw - 12px);
  }

  .site-footer {
    bottom: 4px;
    max-width: calc(100vw - 12px);
    white-space: normal;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  width: min(1360px, calc(100% - 18px));
  margin: 0 auto 10px;
  min-height: 78px;
  padding: 18px 24px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 47, 209, 0.12), rgba(0, 229, 255, 0.08) 32%, rgba(124, 58, 237, 0.14) 70%, rgba(255, 212, 0, 0.08)),
    linear-gradient(180deg, rgba(15, 21, 34, 0.98), rgba(6, 9, 15, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(0, 229, 255, 0.08),
    0 0 48px rgba(124, 58, 237, 0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent),
    linear-gradient(180deg, rgba(0, 229, 255, 0.06), transparent 46%);
  pointer-events: none;
}

.site-logo {
  color: #ffd84f;
  text-decoration: none;
  font-family: "Audiowide", sans-serif;
  font-size: 1.96rem;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(255, 212, 0, 0.28),
    0 0 30px rgba(255, 47, 209, 0.16);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.site-nav a {
  color: rgba(245, 245, 245, 0.76);
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.site-nav a:hover {
  color: var(--cyan);
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.player-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.9);
}

.player-badge.is-google-connected {
  border-color: rgba(41, 211, 168, 0.48);
  background:
    linear-gradient(180deg, rgba(41, 211, 168, 0.12), rgba(5, 10, 18, 0.94)),
    rgba(5, 10, 18, 0.9);
  box-shadow: 0 0 18px rgba(41, 211, 168, 0.14);
}

.player-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0, 229, 255, 0.32);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.16);
}

.player-badge span,
.player-badge strong {
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
}

.player-badge span {
  color: var(--muted);
  text-transform: uppercase;
}

.player-badge strong {
  color: var(--text);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 999px;
  color: #7fe8ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.06);
}

.player-badge.is-google-connected .auth-badge {
  border-color: rgba(41, 211, 168, 0.42);
  color: #9fffe0;
  background: rgba(41, 211, 168, 0.1);
}

.player-badge .owner-badge {
  margin-left: 2px;
}

.player-badge button,
.google-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.google-signin-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.google-signin-shell .google-btn {
  position: relative;
  z-index: 1;
}

.google-signin-mount {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: 10px;
}

.google-signin-shell.is-linked .google-signin-mount,
.google-signin-shell.is-fallback .google-signin-mount {
  display: none;
}

.google-signin-shell:not(.is-linked):not(.is-fallback) .google-btn {
  pointer-events: none;
}

.google-signin-mount > div,
.google-signin-mount iframe {
  width: 100% !important;
  height: 100% !important;
  opacity: 0.02;
  display: block;
}

.google-signin-mount iframe {
  display: block;
}

.site-main {
  width: min(1360px, calc(100% - 18px));
  margin: 0 auto;
  padding: 0 0 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.home-shell,
.play-shell {
  height: calc(100% - 84px);
  min-height: 0;
}

.home-shell {
  display: grid;
  align-items: center;
}

.home-header {
  position: relative;
  margin-bottom: 12px;
}

.home-logo {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(8, 17, 31, 0.96)),
    rgba(9, 9, 9, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 18px rgba(59, 130, 246, 0.22),
    0 0 36px rgba(0, 229, 255, 0.08);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 0.94rem;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
}

.site-nav a.active::after,
.site-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.2), var(--cyan), rgba(0, 229, 255, 0.2));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.38);
}

.home-signin {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.24), 0 0 38px rgba(124, 58, 237, 0.08);
}

.home-arcade-stage {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 47, 209, 0.24), transparent 22%),
    radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.14), transparent 24%),
    radial-gradient(circle at 14% 42%, rgba(255, 47, 209, 0.14), transparent 18%),
    radial-gradient(circle at 86% 42%, rgba(59, 130, 246, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(5, 6, 10, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 -20px 60px rgba(0, 0, 0, 0.55),
    0 24px 70px rgba(0, 0, 0, 0.46),
    0 0 40px rgba(0, 229, 255, 0.08);
}

.home-arcade-stage::before {
  content: "";
  position: absolute;
  inset: 36% -12% -8%;
  background:
    linear-gradient(rgba(0, 229, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.14) 1px, transparent 1px);
  background-size: 100% 28px, 56px 100%;
  transform: perspective(700px) rotateX(72deg);
  transform-origin: top;
  opacity: 0.18;
  pointer-events: none;
}

.home-arcade-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
    linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.04), transparent);
  pointer-events: none;
}

.home-arcade-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 212, 0, 0.08), transparent 18%),
    radial-gradient(circle at 50% 62%, rgba(59, 130, 246, 0.14), transparent 28%);
  pointer-events: none;
}

.home-marquee-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

.home-marquee {
  padding: 18px 0 10px;
  text-align: center;
}

.home-marquee-title {
  margin: 0;
  font-family: "Audiowide", sans-serif;
  font-size: clamp(5rem, 11vw, 8.4rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  animation: marqueePulse 3.8s ease-in-out infinite;
}

.home-marquee-title span:first-child {
  color: #ffd232;
  text-shadow: 0 2px 0 #8b5600, 0 6px 0 #402300, 0 0 28px rgba(255, 212, 0, 0.34), 0 0 58px rgba(255, 212, 0, 0.14);
}

.home-marquee-title span:last-child {
  color: #ff4fd9;
  text-shadow: 0 2px 0 #8a0064, 0 6px 0 #3d002c, 0 0 28px rgba(255, 47, 209, 0.34), 0 0 58px rgba(124, 58, 237, 0.14);
}

@keyframes marqueePulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.01);
    filter: brightness(1.04);
  }
}

.home-slogan-bar {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 220px));
  margin: 10px auto 0;
  padding: 14px 22px;
  border: 2px solid rgba(0, 229, 255, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(7, 7, 7, 0.96)),
    rgba(7, 7, 7, 0.96);
  color: #dffcff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.08rem, 2.2vw, 1.62rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.16), inset 0 0 18px rgba(0, 229, 255, 0.05);
}

.home-action-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.1fr;
  gap: 20px;
  width: min(920px, calc(100% - 180px));
  margin: 22px auto 0;
  padding: 24px 26px;
  border: 1px solid rgba(126, 84, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(13, 18, 39, 0.98), rgba(7, 7, 12, 0.99)),
    rgba(7, 7, 12, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 24px rgba(126, 84, 255, 0.12),
    0 0 46px rgba(0, 229, 255, 0.05);
}

.home-action-main {
  display: grid;
  align-content: center;
  gap: 18px;
  padding-right: 18px;
  border-right: 1px solid rgba(126, 84, 255, 0.24);
}

.home-kicker {
  margin: 0;
  color: #e5f2ff;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-play-button {
  min-height: 102px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 2px solid rgba(255, 212, 0, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 212, 0, 0.32), rgba(134, 84, 0, 0.94)),
    rgba(134, 84, 0, 0.94);
  color: #fff7d5;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 24px rgba(255, 212, 0, 0.34),
    0 0 52px rgba(255, 212, 0, 0.16);
  animation: playPulse 2.4s ease-in-out infinite;
}

.home-play-button::after {
  content: "▶";
  margin-left: 12px;
  font-size: 0.78em;
}

.home-quick-links {
  display: flex;
  gap: 10px;
}

.home-quick-links .button-link {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.home-play-button::after {
  content: ">";
}

@keyframes playPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.12),
      0 0 24px rgba(255, 212, 0, 0.34),
      0 0 52px rgba(255, 212, 0, 0.16);
  }
  50% {
    transform: translateY(-1px);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 30px rgba(255, 212, 0, 0.42),
      0 0 64px rgba(255, 212, 0, 0.2);
  }
}

.home-quick-links .button-link {
  min-height: 42px;
  min-width: 132px;
}

.home-feature-list {
  display: grid;
  gap: 12px;
  align-content: center;
}

.home-feature-list article {
  display: grid;
  gap: 6px;
  padding: 8px 0;
}

.home-feature-list strong {
  color: #fbfdff;
  font-family: "Orbitron", sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.12);
}

.home-feature-list span {
  color: #7fe8ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.92;
}

.home-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--yellow);
  background: rgba(255, 212, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 0, 0.2);
  font-size: 0.94rem;
}

.home-stats-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(920px, calc(100% - 180px));
  margin: 14px auto 0;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 18, 37, 0.96), rgba(8, 8, 12, 0.98)),
    rgba(8, 8, 12, 0.98);
}

.home-stats-bar article {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-right: 1px solid rgba(59, 130, 246, 0.18);
}

.home-stats-bar article:last-child {
  border-right: 0;
}

.home-stats-bar span {
  color: #8bb9ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.home-stats-bar strong {
  color: #f5f5f5;
  font-family: "Orbitron", sans-serif;
  font-size: 1.46rem;
  line-height: 1;
}

.home-info-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(920px, calc(100% - 180px));
  margin: 18px auto 0;
}

.home-info-card {
  padding: 20px 18px;
  border-radius: 14px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  background:
    linear-gradient(180deg, rgba(9, 14, 28, 0.94), rgba(7, 7, 12, 0.98)),
    rgba(7, 7, 12, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.home-info-card h2 {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-info-card p {
  margin: 0;
  color: #dff7ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.home-info-card.cyan {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.08);
}

.home-info-card.cyan h2 {
  color: #61f1ff;
}

.home-info-card.magenta {
  border-color: rgba(255, 47, 209, 0.3);
  box-shadow: 0 0 18px rgba(255, 47, 209, 0.08);
}

.home-info-card.magenta h2 {
  color: #ff80e5;
}

.home-info-card.yellow {
  border-color: rgba(255, 212, 0, 0.3);
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.08);
}

.home-info-card.yellow h2 {
  color: #ffe36c;
}

.home-info-card {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.home-info-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px rgba(0, 229, 255, 0.08);
}

.home-bottom-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(920px, calc(100% - 180px));
  margin: 16px auto 0;
}

.home-bottom-links {
  display: flex;
  gap: 8px;
}

.home-bottom-links .button-link {
  min-height: 46px;
  min-width: 96px;
  font-size: 0.86rem;
}

.home-footer-line {
  margin: 0;
  color: #5de6ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.14);
}

.play-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.hero-section,
.site-section {
  margin-bottom: 10px;
  border: 2px solid rgba(59, 130, 246, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.06), rgba(17, 17, 17, 0.98) 16%),
    #0b0b0b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 16px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.home-hero {
  display: none;
}

.hero-copy h1 {
  margin-top: 0;
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  line-height: 0.9;
}

.hero-tagline {
  margin: 8px 0 0;
  color: var(--yellow);
  font-family: "Orbitron", sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}

.hero-actions button,
.hero-actions .button-link,
.section-actions button,
.section-actions .button-link {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.hero-panel {
  display: block;
}

.hero-strip,
.player-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 212, 0, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 212, 0, 0.06), rgba(8, 17, 31, 0.92)),
    rgba(8, 8, 8, 0.92);
  box-shadow: inset 0 0 14px rgba(255, 212, 0, 0.03);
}

.hero-strip span {
  color: var(--muted);
  font-family: "Orbitron", sans-serif;
  font-size: 0.64rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-strip strong {
  color: var(--text);
  font-size: 0.72rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.section-head h2 {
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 212, 0, 0.12);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-section {
  padding: 10px;
}

.play-section {
  padding-bottom: 10px;
}

.public-page .app-shell {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) 250px;
}

.play-app-shell {
  height: calc(100% - 68px);
}

.play-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}

.play-hidden-actions,
.hidden-side-section,
.hidden-action {
  display: none !important;
}

.arcade-status-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 6px 10px;
}

.play-page .site-actions .google-btn {
  display: inline-flex;
}

.play-page .site-header {
  margin-bottom: 6px;
}

.play-page .play-shell {
  gap: 0;
}

.play-page .play-toolbar {
  margin-bottom: 6px;
}

.play-page .game-panel {
  padding: 8px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.play-page .controls-row {
  justify-content: center;
}

.play-page .seed-box {
  max-width: min(100%, 420px);
}

.play-page .actions {
  justify-content: center;
}

.play-page .actions .button-link,
.play-page .actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.play-page .app-shell {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 520px);
  align-items: stretch;
  gap: 12px;
}

.play-page .canvas-wrap {
  min-height: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 46px rgba(0, 0, 0, 0.42),
    0 0 20px rgba(255, 212, 0, 0.08),
    0 0 42px rgba(0, 229, 255, 0.05);
}

.play-page .side-panel section h2 {
  margin-bottom: 4px;
  font-size: 1.22rem;
}

.play-page .leaderboard {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
}

.play-page .side-panel {
  padding: 14px;
  gap: 12px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(12, 24, 42, 0.98), rgba(6, 10, 16, 0.99)),
    rgba(7, 7, 7, 0.98);
}

.play-page .run-hud .stat {
  padding: 8px 10px;
}

.play-page .run-hud .stat span {
  font-size: 0.8rem;
}

.play-page .run-hud .stat strong {
  font-size: 1.12rem;
}

.play-page .run-hud .timer-stat strong {
  font-size: 1.9rem;
}

.play-page #leaderboardSection,
.play-page #worldLeaderboardSection {
  display: grid;
  gap: 6px;
  min-height: 0;
}

.play-page #worldLeaderboardSection {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 360px;
}

.play-page #worldLeaderboard,
.play-page #worldNeighborhood {
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.play-page #worldLeaderboard {
  flex: 1 1 260px;
  min-height: 260px;
}

.play-page #worldNeighborhood {
  flex: 0 0 140px;
  min-height: 120px;
}

.play-page #worldLeaderboard li,
.play-page #worldNeighborhood li {
  min-height: 54px;
  padding: 8px 10px;
  gap: 8px;
}

.play-page #worldLeaderboard .rank,
.play-page #worldNeighborhood .rank {
  font-size: 1.18rem;
}

.play-page #worldLeaderboard strong,
.play-page #worldNeighborhood strong {
  font-size: 1.24rem;
}

.play-page #worldLeaderboard .meta,
.play-page #worldNeighborhood .meta {
  font-size: 0.78rem;
}

.play-page .seed-play,
.play-page .options-row {
  display: none;
}

.play-page .controls-row {
  margin-top: 6px;
}

.play-page .seed-box {
  padding: 4px 6px;
}

.play-page .player-badge button,
.play-page .player-badge span {
  display: none;
}

.play-page .player-badge {
  min-height: 44px;
  padding: 0 12px;
}

.play-page .player-badge strong {
  font-size: 0.94rem;
}

.panel-title {
  margin: 0;
  font-family: "Audiowide", sans-serif;
  font-size: 1.28rem;
  text-transform: uppercase;
}

.daily-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.daily-preview-card,
.history-board li,
.daily-history-list li {
  padding: 10px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.05), rgba(10, 10, 10, 0.98)),
    rgba(10, 10, 10, 0.98);
}

.daily-preview-card h3,
.history-board strong,
.daily-history-list strong,
.player-title {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.96rem;
}

.daily-preview-card p,
.history-board .meta,
.daily-history-list .meta {
  margin: 4px 0 0;
  color: #7fe8ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.daily-preview-card .daily-best {
  color: var(--yellow);
  font-family: "Orbitron", sans-serif;
  font-size: 1.18rem;
}

.daily-preview-card .card-actions,
.history-board .history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.daily-preview-card .button-link,
.daily-preview-card button,
.history-board button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.daily-history-list,
.history-board {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.history-board li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.history-board .meta,
.daily-history-list .meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-board .empty,
.daily-history-list .empty {
  color: var(--muted);
  font-weight: 700;
}

.history-page-panel {
  min-height: 0;
}

.history-page-list {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.history-page-list li {
  padding: 14px;
}

.history-page-list li {
  padding: 12px;
}

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

.player-card {
  max-width: 440px;
}

.result-note {
  margin: 10px 0 0;
  color: #7fe8ff;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.player-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(7, 7, 7, 0.92);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.google-btn.is-disabled {
  opacity: 0.9;
}

@media (max-width: 1100px) {
  .cabinet-frame {
    padding: 8px;
    border-radius: 16px;
  }

  .home-marquee-wrap,
  .home-action-panel,
  .home-stats-bar,
  .home-info-grid,
  .home-bottom-bar {
    width: 100%;
  }

  .home-slogan-bar {
    width: 100%;
  }

  .home-action-panel,
  .home-info-grid {
    grid-template-columns: 1fr;
  }

  .home-action-main {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(126, 84, 255, 0.24);
  }

  .home-stats-bar {
    grid-template-columns: 1fr;
  }

  .home-stats-bar article {
    border-right: 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
  }

  .home-stats-bar article:last-child {
    border-bottom: 0;
  }

  .home-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-section,
  .public-page .app-shell,
  .daily-preview-grid,
  .hero-strip {
    grid-template-columns: 1fr;
  }

  .play-toolbar {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-nav,
  .site-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .cabinet-frame {
    width: calc(100% - 8px);
    margin: 4px auto 10px;
    padding: 6px;
    border-radius: 12px;
  }

  .cabinet-viewport {
    height: calc(100dvh - 8px);
  }

  .site-header,
  .site-main {
    width: calc(100% - 10px);
  }

  .site-header {
    padding: 8px 0 6px;
  }

  .site-nav {
    gap: 6px 10px;
  }

  .home-logo {
    justify-content: center;
  }

  .hero-section,
  .site-section {
    padding: 10px;
  }

  .home-marquee-title {
    font-size: clamp(3.2rem, 18vw, 4.7rem);
  }

  .home-slogan-bar {
    padding: 10px 12px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
  }

  .home-action-panel {
    padding: 16px;
  }

  .home-play-button {
    min-height: 78px;
    font-size: 2rem;
  }

  .home-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .home-info-card {
    padding: 16px 14px;
  }

  .home-bottom-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 0.86rem;
  }

  .site-actions .google-btn {
    display: inline-flex;
  }

  .history-board li {
    grid-template-columns: 1fr;
  }

  .site-footer {
    max-width: none;
  }

  .daily-shell,
  .play-shell,
  .home-shell {
    height: calc(100% - 78px);
  }

  .public-page:not(.play-page) .cabinet-viewport {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .public-page:not(.play-page) .home-shell {
    height: auto;
    min-height: 0;
    display: block;
  }

  .public-page:not(.play-page) .home-arcade-stage {
    min-height: 0;
    overflow: hidden;
    padding: 12px;
    border-color: rgba(0, 229, 255, 0.28);
    background:
      radial-gradient(circle at 50% 10%, rgba(255, 47, 209, 0.22), transparent 24%),
      radial-gradient(circle at 50% 24%, rgba(0, 229, 255, 0.16), transparent 26%),
      linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(5, 6, 10, 0.99));
  }

  .public-page:not(.play-page) .home-action-panel,
  .public-page:not(.play-page) .home-stats-bar,
  .public-page:not(.play-page) .home-info-grid,
  .public-page:not(.play-page) .home-bottom-bar {
    border-color: rgba(0, 229, 255, 0.22);
    background:
      linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(8, 17, 31, 0.96)),
      rgba(7, 7, 7, 0.96);
  }

  .public-page:not(.play-page) .site-header {
    background:
      linear-gradient(90deg, rgba(255, 47, 209, 0.14), rgba(0, 229, 255, 0.1), rgba(255, 212, 0, 0.08)),
      rgba(6, 9, 15, 0.98);
  }

  .public-page:not(.play-page) .home-signin {
    display: inline-flex;
  }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  html.play-page,
  body.play-page {
    overscroll-behavior: none;
  }

  .play-page .cabinet-viewport {
    height: 100dvh;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .play-page .play-shell {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .play-page .play-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .play-page .app-shell {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    overflow: visible;
  }

  .play-page .side-panel {
    order: -1;
    min-height: 0;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
  }

  .play-page .run-hud {
    gap: 8px;
  }

  .play-page .run-hud .mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .play-page .run-hud .timer-stat strong {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .play-page .run-hud .stat {
    padding: 8px;
  }

  .play-page #leaderboardSection,
  .play-page #worldLeaderboardSection {
    display: grid !important;
    gap: 4px;
    min-height: 0;
  }

  .play-page .side-history {
    display: none !important;
  }

  .play-page .side-panel section h2,
  .play-page .subpanel-title {
    display: block;
    margin: 0;
    font-size: 0.82rem;
  }

  .play-page .panel-note,
  .play-page .world-actions,
  .play-page #worldNeighborhood,
  .play-page #worldLeaderboardSection .subpanel-title:last-of-type {
    display: none;
  }

  .play-page .leaderboard {
    display: grid;
    gap: 4px;
    max-height: 76px;
    overflow: auto;
  }

  .play-page .leaderboard li {
    min-height: 34px;
    padding: 6px 8px;
  }

  .play-page .game-panel {
    min-height: 0;
    grid-template-rows: auto auto auto auto auto auto;
    overflow: visible;
  }

  .play-page .canvas-wrap {
    width: min(100%, 58dvh, 560px);
    min-height: 0;
    max-height: none;
    align-self: center;
  }

  .play-page .touch-pad {
    display: grid;
    position: relative;
    z-index: 20;
    width: min(250px, 86vw);
    min-height: clamp(130px, 21dvh, 180px);
    margin: 14px auto 10px;
    padding: 8px;
    place-items: center;
    border-color: rgba(0, 229, 255, 0.46);
    background:
      radial-gradient(circle at 50% 28%, rgba(0, 229, 255, 0.14), transparent 42%),
      linear-gradient(180deg, rgba(9, 34, 54, 0.98), rgba(4, 8, 14, 0.98));
    touch-action: none;
    user-select: none;
  }

  .play-page .touch-joystick {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(112px, 30vw, 136px);
    height: clamp(112px, 30vw, 136px);
    margin: 0 auto;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.22), rgba(8, 17, 31, 0.98) 67%),
      #07121f;
  }

  .play-page .touch-pad.is-active .touch-joystick {
    opacity: 1;
  }

  .play-page .touch-joystick-ring,
  .play-page .touch-stick {
    display: block;
  }

  .play-page .touch-stick {
    width: clamp(42px, 12vw, 54px);
    height: clamp(42px, 12vw, 54px);
  }

  .play-page .touch-pad-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    font-size: 0.72rem;
    text-align: center;
  }

  .play-page .site-actions .google-btn {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .play-page .canvas-wrap {
    width: min(100%, 48dvh, 420px);
  }

  .play-page .run-hud .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .play-page .leaderboard {
    max-height: 64px;
  }

  .play-page #leaderboardSection {
    display: none !important;
  }

  .play-page #worldLeaderboard {
    max-height: 72px;
  }

  .play-page .touch-pad {
    width: min(300px, 92vw);
    min-height: clamp(140px, 24dvh, 188px);
    margin-bottom: 16px;
  }

  .play-page .top-bar {
    align-items: flex-start;
    gap: 8px;
  }

  .play-page .panel-title {
    font-size: 1.02rem;
  }

  .play-page .difficulty {
    gap: 4px;
  }

  .play-page .difficulty button {
    min-height: 28px;
    padding: 0 6px;
    font-size: 0.68rem;
  }
}

@media (orientation: landscape) and (hover: none), (orientation: landscape) and (max-width: 950px), (orientation: landscape) and (max-height: 680px) {
  .play-page .cabinet-viewport {
    height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    overflow: hidden;
  }

  .play-page .site-header {
    display: none;
  }

  .play-page .play-toolbar,
  .play-page .controls-row {
    display: none;
  }

  .play-page .play-shell {
    height: 100dvh;
    overflow: hidden;
  }

  .play-page .app-shell {
    height: 100%;
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr) clamp(150px, 24vw, 210px);
    gap: clamp(6px, 1.2vw, 10px);
    overflow: hidden;
  }

  body[data-joystick-side="right"].play-page .app-shell {
    grid-template-columns: clamp(150px, 24vw, 210px) minmax(0, 1fr);
  }

  .play-page #leaderboardSection,
  .play-page #worldLeaderboardSection {
    display: grid !important;
  }

  .play-page .side-history,
  .play-page #worldNeighborhood,
  .play-page #worldLeaderboardSection .subpanel-title:last-of-type,
  .play-page .world-actions,
  .play-page .panel-note {
    display: none !important;
  }

  .play-page .side-panel {
    grid-column: 2;
    min-height: 0;
    height: 100%;
    min-width: 0;
    padding: 4px;
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
  }

  body[data-joystick-side="right"].play-page .side-panel {
    grid-column: 1;
  }

  .play-page .run-hud {
    gap: 5px;
    padding: 6px;
  }

  .play-page .run-hud .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .play-page .run-hud .stat {
    padding: 4px 5px;
  }

  .play-page .run-hud .stat span {
    font-size: 0.5rem;
  }

  .play-page .run-hud .stat strong {
    font-size: 0.76rem;
  }

  .play-page .run-hud .timer-stat strong {
    font-size: 1.35rem;
  }

  .play-page .arcade-actions {
    gap: 4px;
  }

  .play-page .arcade-actions button,
  .play-page .section-mini-head button {
    min-height: 28px;
    padding: 0 6px;
    font-size: 0.58rem;
  }

  .play-page .side-panel section h2,
  .play-page .subpanel-title {
    margin: 0;
    font-size: 0.68rem;
  }

  .play-page #worldLeaderboardSection {
    flex: 1 1 auto;
    min-height: 0;
    gap: 3px;
  }

  .play-page #leaderboardSection {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 30%;
    gap: 3px;
  }

  .play-page .leaderboard {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    gap: 4px;
    overflow: auto;
  }

  .play-page .leaderboard li {
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 34px;
    gap: 5px;
    padding: 5px;
  }

  .play-page .leaderboard .rank {
    font-size: 0.82rem;
  }

  .play-page .leaderboard strong {
    font-size: 0.78rem;
  }

  .play-page .leaderboard .meta {
    font-size: 0.58rem;
  }

  .play-page .leaderboard button,
  .play-page .leaderboard .no-ghost {
    display: none;
  }

  .play-page .game-panel {
    grid-column: 1;
    min-width: 0;
    height: 100%;
    grid-template-columns: clamp(118px, 20vw, 164px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    column-gap: clamp(4px, 1vw, 8px);
    align-items: center;
    padding: 4px;
    overflow: hidden;
  }

  body[data-joystick-side="right"].play-page .game-panel {
    grid-column: 2;
  }

  body[data-joystick-side="right"].play-page .game-panel {
    grid-template-columns: minmax(0, 1fr) clamp(118px, 20vw, 164px);
  }

  .play-page .top-bar {
    display: none;
  }

  .play-page .canvas-wrap {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, calc(100dvh - 8px), calc(100vw - 326px));
    justify-self: start;
  }

  .play-page .touch-pad {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: clamp(112px, 19vw, 154px);
    min-height: min(calc(100dvh - 16px), 260px);
    margin: 0;
    padding: 6px 6px 30px;
  }

  body[data-joystick-side="right"].play-page .touch-pad {
    grid-column: 2;
  }

  body[data-joystick-side="right"].play-page .canvas-wrap {
    grid-column: 1;
    justify-self: end;
  }

  .play-page .touch-joystick {
    width: clamp(92px, 18vw, 122px);
    height: clamp(92px, 18vw, 122px);
  }

  .play-page .touch-stick {
    width: clamp(36px, 8vw, 48px);
    height: clamp(36px, 8vw, 48px);
  }

  .play-page .touch-pad-label {
    display: none;
  }

  .play-page .joystick-side-btn {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    z-index: 2;
    display: inline-flex;
    min-height: 22px;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 0.48rem;
    letter-spacing: 0;
    opacity: 0.72;
  }
}

@media (orientation: portrait) and (max-width: 900px), (orientation: portrait) and (hover: none) and (pointer: coarse) {
  html.play-page,
  body.play-page {
    height: auto;
    min-height: 100%;
    overflow: hidden;
  }

  .play-page .cabinet-viewport {
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  body.is-touch-joystick-active.play-page .cabinet-viewport {
    overflow: hidden;
  }

  .play-page .app-shell {
    grid-template-columns: 1fr;
  }

  .play-page .game-panel {
    order: 0;
  }

  .play-page .side-panel {
    order: 1;
    display: flex !important;
    flex-direction: column;
    overflow: visible;
  }

  .play-page #leaderboardSection,
  .play-page #worldLeaderboardSection,
  .play-page .side-history {
    display: grid !important;
  }

  .play-page .panel-note,
  .play-page #worldLeaderboardSection .subpanel-title:last-of-type {
    display: block;
  }

  .play-page .world-actions {
    display: flex;
  }

  .play-page #worldNeighborhood {
    display: grid;
  }

  .play-page .leaderboard {
    max-height: none;
    overflow: visible;
  }
}

@media (orientation: landscape) and (max-height: 680px) {
  .result-modal {
    place-items: center;
    padding: 8px max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left));
  }

  .result-card {
    width: min(620px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    padding: 10px;
    border-radius: 12px;
  }

  .result-badge {
    margin-bottom: 2px;
    font-size: 0.68rem;
  }

  .final-time {
    margin-bottom: 8px;
    font-size: clamp(2.2rem, 12dvh, 3.7rem);
  }

  .result-lines {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 8px;
  }

  .result-lines div {
    padding: 6px 5px;
  }

  .result-lines span {
    margin-bottom: 2px;
    font-size: 0.5rem;
  }

  .result-lines strong {
    font-size: 0.72rem;
  }

  .result-note {
    margin: 4px 0 6px;
    font-size: 0.58rem;
  }

  .result-actions {
    gap: 6px;
  }

  .result-actions button {
    min-height: 34px;
    font-size: 0.68rem;
  }
}

@media (orientation: landscape) and (max-width: 760px) {
  .play-page .app-shell {
    grid-template-columns: minmax(0, 1fr) 142px;
  }

  body[data-joystick-side="right"].play-page .app-shell {
    grid-template-columns: 142px minmax(0, 1fr);
  }

  .play-page .game-panel {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  body[data-joystick-side="right"].play-page .game-panel {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .play-page .canvas-wrap {
    width: min(100%, calc(100dvh - 8px), calc(100vw - 258px));
  }

  .play-page .touch-pad {
    width: 104px;
  }

  .play-page .touch-joystick {
    width: 88px;
    height: 88px;
  }

  .play-page .touch-stick {
    width: 34px;
    height: 34px;
  }
}

@media (orientation: landscape) and (hover: none), (orientation: landscape) and (max-width: 950px), (orientation: landscape) and (max-height: 680px) {
  .play-page .app-shell {
    display: grid;
    grid-template-columns: clamp(108px, 18vw, 150px) minmax(0, 1fr) clamp(148px, 24vw, 210px);
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(4px, 1vw, 8px);
    height: 100%;
    overflow: hidden;
  }

  body[data-joystick-side="right"].play-page .app-shell {
    grid-template-columns: clamp(148px, 24vw, 210px) minmax(0, 1fr) clamp(108px, 18vw, 150px);
  }

  .play-page .game-panel {
    display: contents;
  }

  .play-page .touch-pad {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    width: auto;
    min-width: 0;
    min-height: min(calc(100dvh - 16px), 260px);
    margin: 0;
    padding: 6px 6px 30px;
  }

  .play-page .canvas-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    width: min(100%, calc(100dvh - 8px));
    min-width: 0;
  }

  .play-page .side-panel {
    grid-column: 3;
    grid-row: 1;
    display: flex !important;
    min-width: 0;
    height: 100%;
    min-height: 0;
    padding: 4px;
    gap: 5px;
    overflow: hidden;
  }

  body[data-joystick-side="right"].play-page .touch-pad {
    grid-column: 3;
  }

  body[data-joystick-side="right"].play-page .canvas-wrap {
    grid-column: 2;
    justify-self: end;
  }

  body[data-joystick-side="right"].play-page .side-panel {
    grid-column: 1;
  }

  .play-page #leaderboardSection {
    display: none !important;
  }

  .play-page #worldLeaderboardSection {
    display: grid !important;
    flex: 1 1 auto;
    min-height: 0;
    gap: 3px;
  }

  .play-page .world-panel .section-mini-head {
    min-height: 0;
  }

  .play-page .run-hud {
    flex: 0 0 auto;
    gap: 4px;
    padding: 5px;
  }

  .play-page .run-hud .timer-stat strong {
    font-size: 1.18rem;
  }

  .play-page .run-hud .stat {
    padding: 3px 4px;
  }

  .play-page .run-hud .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
  }

  .play-page .leaderboard {
    min-height: 0;
    max-height: none;
    overflow: auto;
  }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .play-page .site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    min-height: 44px;
    width: 100%;
    margin: 0 0 6px;
    padding: 5px 6px;
    border-radius: 10px;
  }

  .play-page .site-logo {
    font-size: 0.98rem;
  }

  .play-page .site-nav {
    gap: 4px;
    justify-content: center;
    overflow: hidden;
  }

  .play-page .site-nav a {
    min-height: 26px;
    padding: 0 6px;
    font-size: 0.58rem;
  }

  .play-page .site-actions {
    min-width: 0;
    justify-content: flex-end;
    gap: 4px;
  }

  .play-page .player-badge {
    display: none;
  }

  .play-page .google-btn {
    min-height: 28px;
    padding: 0 7px;
    font-size: 0.56rem;
  }

  .play-page .play-toolbar,
  .play-page .seed-play,
  .play-page .options-row,
  .play-page #leaderboardSection,
  .play-page .side-history,
  .play-page .panel-note,
  .play-page .world-actions,
  .play-page #dailyWorldStats,
  .play-page #worldNeighborhood,
  .play-page #worldLeaderboardSection .subpanel-title:last-of-type,
  .play-page .section-mini-head button {
    display: none !important;
  }

  .play-page .top-bar {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0;
  }

  .play-page .top-bar > div:first-child {
    display: none;
  }

  .play-page .difficulty {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }

  .play-page .difficulty button {
    min-height: 28px;
    padding: 0 6px;
    font-size: 0.62rem;
  }

  .play-page .controls-row {
    display: grid !important;
    grid-template-columns: 1fr;
    margin-top: 6px;
  }

  .play-page .seed-box {
    display: none;
  }

  .play-page .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .play-page .actions .button-link,
  .play-page .actions .hidden-action {
    display: none !important;
  }

  .play-page #dailyBtn {
    display: inline-flex;
    min-height: 30px;
    font-size: 0.66rem;
  }

  .play-page .side-panel {
    display: flex !important;
    flex-direction: column;
  }

  .play-page .run-hud {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px;
  }

  .play-page .run-hud .timer-stat {
    grid-column: 1;
  }

  .play-page .run-hud .timer-stat strong {
    font-size: clamp(1.15rem, 7vw, 1.75rem);
  }

  .play-page .run-hud .mini-stats {
    display: none !important;
  }

  .play-page .arcade-actions {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    min-width: 86px;
  }

  .play-page .arcade-actions button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  .play-page #worldLeaderboardSection {
    display: grid !important;
    flex: 1 1 auto;
    min-height: 0;
    gap: 4px;
  }

  .play-page .section-mini-head h2,
  .play-page .subpanel-title {
    display: block;
    margin: 0;
    font-size: 0.74rem;
  }

  .play-page .leaderboard {
    display: grid;
    gap: 4px;
  }

  .play-page .touch-pad {
    width: min(220px, 76vw);
    min-height: clamp(112px, 18dvh, 150px);
  }

  .play-page .touch-joystick {
    width: clamp(96px, 26vw, 116px);
    height: clamp(96px, 26vw, 116px);
  }

  .play-page .touch-stick {
    width: clamp(36px, 10vw, 46px);
    height: clamp(36px, 10vw, 46px);
  }
}

@media (orientation: portrait) and (max-width: 900px), (orientation: portrait) and (hover: none) and (pointer: coarse) {
  .play-page .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .play-page .site-logo {
    text-align: center;
  }

  .play-page .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .play-page .site-nav a {
    justify-content: center;
    text-align: center;
    padding: 0 4px;
    font-size: 0.52rem;
  }

  .play-page .site-actions {
    justify-content: center;
  }

  .play-page .side-panel {
    order: 1;
    overflow: visible;
  }

  .play-page .leaderboard {
    max-height: none;
    overflow: visible;
  }
}

@media (orientation: landscape) and (hover: none), (orientation: landscape) and (max-width: 950px), (orientation: landscape) and (max-height: 680px) {
  .play-page .site-header {
    display: none;
  }

  .play-page .top-bar {
    display: grid !important;
    position: fixed;
    left: 50%;
    top: max(4px, env(safe-area-inset-top));
    z-index: 28;
    width: min(270px, calc(100vw - 330px));
    min-width: 176px;
    padding: 3px;
    transform: translateX(-50%);
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 8px;
    background: rgba(5, 9, 16, 0.78);
    backdrop-filter: blur(8px);
  }

  .play-page .controls-row {
    display: none !important;
  }

  .play-page .run-hud {
    grid-template-columns: 1fr;
  }

  .play-page .arcade-actions {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .play-page .top-bar > div:first-child {
    display: none;
  }

  .play-page .difficulty {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
  }

  .play-page .difficulty button {
    min-height: 24px;
    padding: 0 4px;
    font-size: 0.52rem;
  }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .play-page .side-panel,
  .play-page #worldLeaderboardSection,
  .play-page #worldLeaderboard {
    display: grid !important;
  }

  .play-page #worldLeaderboardSection {
    min-height: 0;
  }

  .play-page #worldLeaderboard {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
}

@media (orientation: landscape) and (hover: none), (orientation: landscape) and (max-width: 950px), (orientation: landscape) and (max-height: 680px) {
  .play-page #worldLeaderboard {
    max-height: none;
    overflow: auto;
  }
}

@media (orientation: portrait) and (max-width: 900px), (orientation: portrait) and (hover: none) and (pointer: coarse) {
  html.public-page,
  body.public-page.play-page {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .play-page .cabinet-frame,
  .play-page .cabinet-viewport {
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .play-page .play-shell,
  .play-page .app-shell,
  .play-page .side-panel,
  .play-page #worldLeaderboardSection {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .play-page .play-shell {
    padding-bottom: 160px;
  }

  .play-page #worldLeaderboard {
    display: grid !important;
    max-height: none;
    overflow: visible;
  }
}

@media (orientation: portrait) and (max-width: 900px), (orientation: portrait) and (hover: none) and (pointer: coarse) {
  html,
  body,
  html.public-page,
  body.public-page,
  body.public-page.play-page {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    position: static !important;
  }

  .play-page .cabinet-frame,
  .play-page .cabinet-viewport,
  .play-page .play-shell,
  .play-page .play-app-shell,
  .play-page .app-shell {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .play-page .cabinet-frame {
    margin-bottom: 0 !important;
    padding-bottom: 180px !important;
  }

  .play-page .game-panel {
    display: grid !important;
    overflow: visible !important;
  }

  .play-page .side-panel {
    display: flex !important;
    flex-direction: column !important;
    order: 2 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 10px !important;
  }

  .play-page .run-hud {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    order: 0 !important;
    visibility: visible !important;
  }

  .play-page .timer-stat {
    display: block !important;
  }

  .play-page .timer-stat strong {
    display: block !important;
    font-size: clamp(1.2rem, 7vw, 1.8rem) !important;
  }

  .play-page .arcade-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    visibility: visible !important;
  }

  .play-page .arcade-actions button {
    display: inline-flex !important;
  }

  .play-page #worldLeaderboardSection {
    display: grid !important;
    order: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  .play-page #worldLeaderboard {
    display: grid !important;
    height: auto !important;
    min-height: 120px !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
  }
}
