:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-soft: #0e0e10;
  --panel: #131316;
  --panel-raised: #18181c;
  --ink: #f5f5f7;
  --muted: #98989f;
  --dim: #6b6b73;
  --line: #26262b;
  --line-bright: #35353c;
  --accent: #ff2e4d;
  --accent-dim: #b02338;
  --accent-soft: rgba(255, 46, 77, 0.14);
  --ok: #4ade80;
  --yellow: #f5c451;
  --red: #ff5252;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 4%, rgba(255, 46, 77, 0.07), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

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

button {
  border: 0;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* ---------- avatars ---------- */

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: hsl(var(--h, 350) 55% 24%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  user-select: none;
}

.avatar--xl {
  width: 64px;
  height: 64px;
  font-size: 1.35rem;
}

.avatar--md {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}

.avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
}

.avatar--xs {
  width: 22px;
  height: 22px;
  font-size: 0.52rem;
}

/* ---------- topbar ---------- */

.topbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.wordmark-symbol {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.connection-status,
.identity-button,
.payment-mode-label,
.token-mark,
.panel-status,
.section-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}

.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.12);
}

.connection-status[data-state="live"] {
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--ok);
}

.connection-status[data-state="live"] .connection-dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14), 0 0 12px rgba(74, 222, 128, 0.5);
}

.connection-status[data-state="reconnecting"] .connection-dot,
.connection-status[data-state="connecting"] .connection-dot {
  animation: blink 1.1s steps(2, end) infinite;
}

.connection-status[data-state="offline"] {
  border-color: rgba(255, 82, 82, 0.45);
  color: var(--red);
}

.connection-status[data-state="offline"] .connection-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.12);
}

.identity-button {
  border-color: var(--line-bright);
  background: var(--panel-raised);
  color: var(--ink);
  font-weight: 700;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.identity-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.identity-button .avatar {
  margin-right: 0.15rem;
}

/* ---------- page frame ---------- */

.page-content {
  padding: 1.8rem 0 0;
}

.tagline {
  margin: 0 0 1.4rem;
  color: var(--ink);
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.tagline span {
  color: var(--accent);
}

.load-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 82, 82, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(255, 82, 82, 0.08);
  padding: 0.9rem 1rem;
  color: var(--red);
}

.load-error p {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-size: 0.78rem;
}

.eyebrow,
.metric-label,
.button-meta,
.site-footer,
.field-help {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent);
}

.eyebrow--red {
  color: var(--red);
}

/* ---------- shared panel ---------- */

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.96), rgba(17, 17, 20, 0.98));
  box-shadow: var(--shadow);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.85rem 1.1rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-status {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
}

.panel-status--quiet {
  color: var(--dim);
}

/* ---------- arena: who is #1 + spend ---------- */

.arena {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.current-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-color: rgba(255, 46, 77, 0.35);
}

.current-card.is-you {
  box-shadow: 0 0 0 1px rgba(255, 46, 77, 0.4), var(--shadow);
}

.current-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.6rem 1.1rem 1.3rem;
  text-align: center;
}

.current-card[data-state="empty"] .avatar {
  background: var(--panel-raised);
  border-style: dashed;
  color: var(--dim);
}

.rank-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 46, 77, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 0.3rem 0.75rem;
}

.rank-label {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.rank-lockup strong {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.current-card[data-state="empty"] .rank-lockup {
  border-color: var(--line);
  background: var(--bg-soft);
}

.current-card[data-state="empty"] .rank-lockup strong {
  color: var(--dim);
}

.leader-identity {
  min-width: 0;
}

.leader-identity h1 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.current-card[data-state="empty"] .leader-identity h1 {
  color: var(--muted);
}

.leader-identity p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.duration-panel {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.metric-label {
  display: block;
  color: var(--dim);
}

.hero-timer {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink);
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.duration-side {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.lock-value {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.empty-leader-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.empty-glyph {
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 0.7;
}

/* ---------- action stack: take + wallet ---------- */

.action-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
}

.takeover-card {
  padding-bottom: 1.1rem;
}

.takeover-card[data-state="queued"] {
  border-color: rgba(245, 196, 81, 0.45);
}

.takeover-card[data-state="current"] {
  border-color: rgba(255, 46, 77, 0.5);
}

.takeover-card[data-state="pending"] {
  border-color: rgba(245, 196, 81, 0.65);
}

.takeover-card[data-state="pending"] .primary-button::after {
  animation: blink 1s steps(2, end) infinite;
}

.token-mark {
  min-height: 0;
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
}

.takeover-card h2 {
  margin: 0;
  padding: 1.3rem 1.1rem 0;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.takeover-note {
  min-height: 2.6rem;
  margin: 0.7rem 1.1rem 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.primary-button,
.secondary-button,
.purchase-button,
.robbed-action,
.dismiss-button {
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), opacity 160ms var(--ease);
}

.primary-button {
  display: flex;
  min-height: 3.4rem;
  width: calc(100% - 2.2rem);
  align-items: center;
  justify-content: space-between;
  margin: 0 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  padding: 0.85rem 1.05rem;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
}

.primary-button::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
}

.primary-button--xl {
  min-height: 4.4rem;
  font-size: clamp(0.95rem, 4vw, 1.2rem);
  letter-spacing: 0.05em;
}

.primary-button:hover:not(:disabled) {
  background: #ff5470;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 46, 77, 0.3);
}

.primary-button:active:not(:disabled) {
  transform: translateY(0);
}

.primary-button:disabled {
  background: var(--line);
  color: var(--dim);
  box-shadow: none;
  opacity: 0.9;
  transform: none;
}

.button-meta {
  display: flex;
  justify-content: space-between;
  margin: 0.75rem 1.1rem 0;
  color: var(--dim);
}

.button-meta strong {
  color: var(--muted);
  font-size: inherit;
}

.queue-panel {
  margin: 1rem 1.1rem 0;
  border: 1px solid rgba(245, 196, 81, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(245, 196, 81, 0.05);
  padding: 0.75rem 0.85rem;
}

.queue-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--yellow);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.queue-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.6);
  animation: pulse 1.2s ease-in-out infinite;
}

.queue-countdown {
  display: block;
  margin-top: 0.4rem;
  color: var(--yellow);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.queue-panel p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

.inline-error {
  margin: 0.8rem 1.1rem 0;
  border-left: 2px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.4rem 0 0.4rem 0.65rem;
  color: var(--red);
  font-size: 0.65rem;
  line-height: 1.5;
}

/* ---------- wallet ---------- */

.wallet-card {
  padding-bottom: 1.1rem;
}

.wallet-balance {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 1.3rem 1.1rem 0.3rem;
}

.wallet-balance strong {
  color: var(--ink);
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.wallet-balance span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.wallet-spent-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.9rem 1.1rem 0;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.wallet-spent-row strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.purchase-button {
  display: flex;
  width: calc(100% - 2.2rem);
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 1.1rem 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  padding: 0.75rem 1.05rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: left;
}

.purchase-button strong {
  color: #fff;
  font-size: 0.68rem;
  opacity: 0.9;
}

.purchase-button:hover:not(:disabled) {
  background: #ff5470;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 46, 77, 0.3);
}

.purchase-button:disabled {
  background: var(--line);
  color: var(--dim);
  opacity: 0.9;
  box-shadow: none;
  transform: none;
}

.purchase-button:disabled strong {
  color: var(--dim);
}

.wallet-card.needs-action {
  border-color: var(--accent);
  animation: needs-action 900ms var(--ease) 2;
}

.wallet-card.needs-action .wallet-balance strong {
  color: var(--accent);
}

@keyframes needs-action {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: var(--shadow), 0 0 0 2px rgba(255, 46, 77, 0.5);
  }
}

/* ---------- how strip ---------- */

.how-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.how-strip span {
  background: var(--bg-soft);
  padding: 0.75rem 0.95rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.how-strip b {
  color: var(--accent);
}

/* ---------- board: top 5 + recent ---------- */

.board-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.leaderboard-panel,
.recent-panel {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 1.1rem;
}

.section-heading h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.2rem, 5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-status {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.leaderboard-table th,
.leaderboard-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.65rem;
  text-align: left;
  vertical-align: middle;
}

.leaderboard-table tr:last-child td {
  border-bottom: 0;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  padding-left: 1.1rem;
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
  padding-right: 1.1rem;
}

.leaderboard-table th {
  color: var(--dim);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.leaderboard-table th:nth-child(1) {
  width: 15%;
}

.leaderboard-table th:nth-child(2) {
  width: 42%;
}

.leaderboard-table th:nth-child(3) {
  width: 24%;
}

.leaderboard-table th:nth-child(4) {
  width: 19%;
}

.leaderboard-table td {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.leaderboard-table td:first-child {
  color: var(--dim);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.leaderboard-table tbody tr {
  transition: background 140ms var(--ease);
}

.leaderboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.leaderboard-table tbody tr.is-current {
  background: var(--accent-soft);
}

.leaderboard-table tbody tr.is-current td {
  color: var(--ink);
}

.leaderboard-table tbody tr.is-current td:first-child {
  color: var(--accent);
}

.player-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.player-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.player-cell strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-cell span {
  overflow: hidden;
  color: var(--dim);
  font-size: 0.56rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reign-cell {
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
}

.status-cell {
  color: var(--accent) !important;
  font-size: 0.53rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
}

.status-cell--past {
  color: var(--dim) !important;
}

.table-message-row td,
.table-empty {
  color: var(--dim) !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-align: center !important;
}

.table-message-row td {
  height: 7rem;
}

.table-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.2rem;
}

.recent-list {
  margin: 0;
  padding: 0 1.1rem;
  list-style: none;
}

.recent-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.recent-item:last-child {
  border-bottom: 0;
}

.recent-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.recent-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-copy span {
  color: var(--dim);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.recent-duration {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.recent-empty {
  padding: 2.2rem 0;
  color: var(--dim);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 2.4rem 0 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--dim);
}

/* ---------- robbed alert ---------- */

.robbed-alert {
  position: fixed;
  z-index: 20;
  right: 0.65rem;
  bottom: 0.65rem;
  left: 0.65rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: 34rem;
  margin: 0 auto;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: #160d10;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 45px rgba(255, 46, 77, 0.16);
  padding: 1.05rem;
  animation: alert-in 360ms var(--ease) both;
}

.robbed-copy {
  grid-column: 1 / -1;
  min-width: 0;
  text-align: center;
}

.robbed-heading {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.1rem, 5vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.robbed-who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.robbed-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.5;
}

.robbed-copy p strong {
  color: var(--accent);
}

.robbed-reign {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.robbed-action {
  grid-column: 1 / -1;
  min-height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.robbed-action:hover {
  background: #ff5470;
  transform: translateY(-2px);
}

.dismiss-button {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}

.dismiss-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

/* ---------- dialog ---------- */

.username-dialog {
  width: min(31rem, calc(100% - 2rem));
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: var(--panel-raised);
  color: var(--ink);
  padding: 1.4rem;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.username-dialog::backdrop {
  background: rgba(3, 3, 4, 0.78);
  backdrop-filter: blur(5px);
}

.dialog-kicker {
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.username-dialog h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dialog-copy {
  margin: 0.8rem 0 1.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.username-dialog label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.username-dialog input {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--bg-soft);
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  font-size: 1rem;
}

.username-dialog input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-help {
  margin: 0.55rem 0 0;
  color: var(--dim);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.username-dialog .inline-error,
.payment-error {
  margin: 0.8rem 0 0;
}

.dialog-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.secondary-button {
  min-height: 3rem;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0.65rem 0.9rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
}

.dialog-actions .primary-button {
  width: 100%;
  margin: 0;
  justify-content: center;
}

.dialog-actions .primary-button::after {
  content: none;
}

/* ---------- toasts ---------- */

.toast-region {
  position: fixed;
  z-index: 30;
  top: 0.65rem;
  right: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  background: var(--panel-raised);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  padding: 0.8rem 0.85rem;
  color: var(--ink);
  font-size: 0.68rem;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-in 260ms var(--ease) both;
}

.toast--info {
  border-color: rgba(245, 196, 81, 0.5);
}

.toast--info .toast-mark {
  color: var(--yellow);
}

.toast--success {
  border-color: rgba(74, 222, 128, 0.5);
}

.toast--success .toast-mark {
  color: var(--ok);
}

.toast--error {
  border-color: rgba(255, 82, 82, 0.6);
}

.toast--error .toast-mark {
  color: var(--red);
}

.toast-copy {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.toast-mark {
  color: var(--yellow);
  font-weight: 900;
}

.toast-close {
  flex: 0 0 auto;
  background: transparent;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1;
}

/* ---------- payment ---------- */

.payment-body {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.payment-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.payment-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.simulator-banner {
  display: flex;
  width: min(100%, 38rem);
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(245, 196, 81, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(245, 196, 81, 0.07);
  padding: 0.8rem 0.9rem;
  color: var(--yellow);
}

.banner-mark {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.simulator-banner strong,
.simulator-banner span {
  display: block;
}

.simulator-banner strong {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.simulator-banner div > span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

.payment-card {
  width: min(100%, 38rem);
  padding-bottom: 1.35rem;
}

.payment-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.9rem 1.1rem;
}

.payment-card h1 {
  margin: 0;
  padding: 1.6rem 1.1rem 0;
  font-size: clamp(2.4rem, 11vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.payment-card h1 span {
  color: var(--accent);
}

.payment-lede {
  max-width: 45ch;
  margin: 1.1rem 1.1rem 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.package-ticket {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  margin: 1.5rem 1.1rem 1.1rem;
  border: 1px dashed var(--line-bright);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  padding: 1rem;
}

.ticket-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.ticket-value {
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ticket-value span {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.ticket-price {
  align-self: end;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.payment-confirm {
  width: calc(100% - 2.2rem);
  margin: 0 1.1rem;
  justify-content: center;
}

.payment-confirm::after {
  content: none;
}

.payment-status {
  min-height: 1.2rem;
  margin: 0.75rem 1.1rem 0;
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.payment-status[data-state="success"] {
  color: var(--ok);
}

.payment-status[data-state="error"] {
  color: var(--red);
}

.payment-footnote {
  max-width: 48ch;
  margin: 1.2rem auto 0;
  color: var(--dim);
  font-size: 0.6rem;
  line-height: 1.6;
  text-align: center;
}

.payment-error {
  border-left: 2px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.4rem 0 0.4rem 0.65rem;
  color: var(--red);
  font-size: 0.65rem;
  line-height: 1.5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.back-link:hover {
  color: var(--accent);
}

.payment-mode-label {
  border-color: rgba(255, 46, 77, 0.35);
  color: var(--accent);
}

.payment-shell > .site-footer {
  margin-top: 0;
}

/* ---------- keyframes ---------- */

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0.25;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes alert-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- tablet and up ---------- */

@media (min-width: 700px) {
  .app-shell,
  .payment-shell {
    width: min(100% - 2rem, 1200px);
  }

  .page-content {
    padding-top: 2.8rem;
  }

  .how-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .arena {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
  }

  .duration-panel {
    justify-content: space-between;
  }

  .panel-topline,
  .section-heading {
    padding-right: 1.3rem;
    padding-left: 1.3rem;
  }

  .current-main {
    padding: 2rem 1.5rem 1.5rem;
  }

  .takeover-card h2,
  .takeover-note {
    margin-right: 0;
  }

  .primary-button,
  .purchase-button {
    width: calc(100% - 2.6rem);
    margin-right: 1.3rem;
    margin-left: 1.3rem;
  }

  .button-meta,
  .inline-error,
  .queue-panel {
    margin-right: 1.3rem;
    margin-left: 1.3rem;
  }

  .takeover-card h2 {
    padding-right: 0;
    padding-left: 0;
    margin-right: 1.3rem;
    margin-left: 1.3rem;
  }

  .wallet-balance,
  .wallet-spent-row {
    margin-right: 1.3rem;
    margin-left: 1.3rem;
  }

  .wallet-balance {
    padding-right: 0;
    padding-left: 0;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 1rem 0.9rem;
  }

  .leaderboard-table th:first-child,
  .leaderboard-table td:first-child {
    padding-left: 1.3rem;
  }

  .leaderboard-table th:last-child,
  .leaderboard-table td:last-child {
    padding-right: 1.3rem;
  }

  .recent-list {
    padding-right: 1.3rem;
    padding-left: 1.3rem;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .robbed-alert {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
  }

  .robbed-copy {
    grid-column: auto;
    text-align: left;
  }

  .robbed-action {
    grid-column: auto;
  }

  .robbed-who {
    justify-content: flex-start;
  }

  .robbed-heading {
    font-size: 1.15rem;
  }

  .robbed-alert .dismiss-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }

  .toast-region {
    top: 1rem;
    right: 1rem;
    left: auto;
    width: min(24rem, calc(100% - 2rem));
  }

  .dialog-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .dialog-actions .primary-button {
    width: auto;
    min-width: 10rem;
    justify-content: space-between;
  }

  .dialog-actions .primary-button::after {
    content: "→";
  }
}

@media (min-width: 1040px) {
  .board-section {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  }

  .current-card {
    min-height: 100%;
  }
}

@media (max-width: 560px) {
  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) {
    display: none;
  }

  .leaderboard-table th:nth-child(1) {
    width: 18%;
  }

  .leaderboard-table th:nth-child(2) {
    width: 52%;
  }

  .leaderboard-table th:nth-child(3) {
    width: 30%;
  }
}

@media (max-width: 380px) {
  .connection-status {
    padding: 0.3rem 0.45rem;
    font-size: 0.52rem;
  }

  .wordmark {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  .identity-button {
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .robbed-action {
    font-size: 0.56rem;
  }
}

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

/* Last Penny — midnight arcade visual system */
:root {
  --bg: #050d10; --bg-soft: #071114; --panel: #081215; --panel-raised: #101c21;
  --ink: #f4f5f3; --muted: #91a8b4; --dim: #657e8a; --line: #203037;
  --line-bright: #39505b; --accent: #ff315d; --accent-soft: #ff315d12;
  --yellow: #ffe65b; --radius: 5px; --radius-sm: 4px; --shadow: none;
}
html { background: #152126; scroll-padding-top: 24px; }
body { background: radial-gradient(ellipse at 50% 0, #1b2a30, #111c21 75%); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; }
body::before { display: none; }
.app-shell { width: min(1280px, calc(100% - 64px)); margin: 24px auto; padding: 0 34px; border: 1px solid #314148; border-radius: 6px; background: var(--bg); box-shadow: 0 20px 100px #0004; }
.topbar { min-height: 86px; border-bottom-color: #17262d; gap: 24px; }
.wordmark { font-size: 19px; letter-spacing: -1px; white-space: nowrap; }
.wordmark-symbol { display: none; }
.main-nav { display: flex; gap: 28px; margin-right: auto; margin-left: 32px; font-size: 11px; color: #b1c3cd; }
.main-nav a:hover { color: var(--accent); }
.connection-status, .identity-button { border-radius: 4px; letter-spacing: .03em; }
.connection-status { border: 0; background: transparent; }
.identity-button { background: transparent; }
.page-content { padding: 0; }
.intro { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; overflow: hidden; border-bottom: 1px solid var(--line); }
.intro-copy { position: relative; z-index: 1; padding: 42px 0 35px; }
.intro-kicker { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; letter-spacing: 1.4px; }
.intro-kicker span, .game-heading i { display: inline-block; width: 5px; height: 5px; background: var(--accent); box-shadow: 0 0 10px #ff315d60; }
.tagline { margin: 22px 0 16px; font-size: clamp(52px, 6.5vw, 84px); line-height: .99; letter-spacing: -5px; font-weight: 800; }
.intro-lede { margin: 0 0 18px; font-size: 19px; line-height: 1.5; letter-spacing: -.5px; }
.intro-description { color: var(--muted); font-size: 11px; line-height: 1.8; }
.intro-cta { display: inline-flex; align-items: center; gap: 45px; padding: 14px 20px; margin-top: 12px; border-radius: 3px; background: var(--accent); color: #070d10; font-size: 11px; font-weight: 700; transition: background .2s; }
.intro-cta:hover { background: #ff6182; }
.intro-caption { display: block; color: var(--dim); font-size: 9px; margin-top: 10px; }
.globe-scene { position: relative; align-self: stretch; }
.globe-scene img { position: absolute; width: 610px; max-width: none; top: -8px; left: -45px; opacity: .85; mask-image: linear-gradient(#000 45%, transparent 96%); }
.globe-label { position: absolute; top: 49%; left: 8%; right: 0; text-align: center; font-size: 12px; letter-spacing: 2px; color: #eef4f5; text-shadow: 0 2px 12px #000; }
.globe-label span { display: block; margin-top: 12px; font-size: 9px; color: var(--yellow); letter-spacing: 2px; }
.intro-coordinate { position: absolute; right: 0; bottom: 23px; color: var(--dim); font-size: 9px; letter-spacing: 2px; }
.game-heading { display: flex; justify-content: space-between; margin: 26px 0 16px; color: var(--dim); font-size: 9px; letter-spacing: 1.1px; }
.game-heading span:first-child { color: var(--ink); }
.game-heading i { margin-right: 8px; background: #7bed98; }
.panel { background: linear-gradient(125deg, #0a1519, #050c0f); border-color: var(--line); box-shadow: none; }
.arena { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.9fr); gap: 16px; }
.action-stack { grid-template-columns: 1fr 1fr; gap: 16px; }
.panel-topline { padding: 15px 17px; font-size: 9px; letter-spacing: .5px; }
.current-card { min-height: 300px; }
.current-main { position: relative; padding: 16px 16px 10px; gap: 8px; }
.leader-crown { color: var(--yellow); font-size: 35px; line-height: 1; text-shadow: 0 0 22px #ffe65b35; }
.current-main > .avatar { position: absolute; top: 18px; left: 18px; width: 28px; height: 28px; font-size: 10px; }
.rank-lockup { display: none; }
.leader-identity h1 { font-size: 19px; letter-spacing: -.5px; }
.leader-identity p { font-size: 9px; }
.duration-panel { border-top: 0; padding: 10px 15px 20px; gap: 15px; }
.hero-timer { color: var(--yellow); font-size: clamp(28px, 3vw, 43px); letter-spacing: -2px; }
.duration-panel .metric-label { font-size: 8px; letter-spacing: .6px; }
.duration-side { max-width: 56px; }
.empty-leader-message { font-size: 8px; padding: 12px; }
.takeover-card h2 { padding: 25px 18px 0; font-size: 27px; }
.takeover-note { font-size: 10px; margin: 13px 18px 22px; }
.primary-button, .robbed-action { color: #070d10; font-weight: 800; }
.primary-button--xl { min-height: 49px; font-size: 12px; }
.button-meta { font-size: 8px; }
.wallet-balance { padding: 20px 18px 8px; }
.wallet-balance strong { color: var(--yellow); font-size: 37px; }
.wallet-balance span { font-size: 9px; }
.wallet-spent-row { margin: 0 18px 12px; padding-bottom: 12px; }
.token-package { display: flex; gap: 10px; align-items: center; margin: 10px 16px; padding: 11px; border: 1px solid #ff315d80; border-radius: 4px; }
.token-package strong, .token-package div > span { display: block; font-size: 10px; }
.token-package div > span { color: var(--muted); margin-top: 3px; }
.package-radio { width: 14px; height: 14px; border: 1px solid var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--bg); background: var(--accent); }
.package-badge { color: var(--accent); font-size: 7px; margin-left: auto; }
.purchase-button { margin: 0 16px; width: calc(100% - 32px); min-height: 40px; background: var(--accent); border: 0; color: #070d10; font-size: 9px; }
.purchase-button strong { color: inherit; font-size: 9px; }
.purchase-caption { color: var(--dim); text-align: center; font-size: 8px; margin: 10px 0 14px; }
.how-strip { margin: 14px 0 24px; border: 0; padding: 0 5px; background: none; justify-content: space-between; }
.how-strip span { font-size: 8px; color: var(--dim); }
.how-strip b { color: var(--muted); }
.board-section { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 16px; }
.section-heading { padding: 18px; }
.section-heading h2 { font-size: 17px; letter-spacing: -.6px; }
.eyebrow { font-size: 8px; letter-spacing: .8px; color: var(--dim); }
.leaderboard-table th { font-size: 9px; color: var(--muted); }
.leaderboard-table td { font-size: 11px; }
.leaderboard-table th, .leaderboard-table td { padding-top: 14px; padding-bottom: 14px; border-color: #14252c; }
.recent-list { padding: 0 18px 16px; }
.how-section { margin-top: 32px; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.how-heading { display: flex; align-items: center; justify-content: space-between; }
.how-heading h2 { font-size: 18px; margin: 0 0 24px; }
.how-heading > span { font-size: 8px; color: var(--dim); letter-spacing: 1px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.how-grid article { position: relative; padding: 0 24px; border-left: 1px solid #17272d; }
.how-grid article:first-child { padding-left: 0; border: 0; }
.step-icon { font-size: 30px; line-height: 1; color: #d3e0e6; }
.step-number { float: right; color: #354c57; font-size: 10px; }
.how-grid h3 { font-size: 12px; margin: 18px 0 8px; }
.how-grid p { font-size: 10px; color: var(--muted); line-height: 1.7; margin: 0; }
.site-footer { padding: 20px 0; margin-top: 0; font-size: 8px; letter-spacing: .8px; }
.payment-shell { font-family: inherit; }
@media (max-width: 1050px) {
  .app-shell { width: calc(100% - 32px); padding: 0 24px; }
  .main-nav { gap: 16px; margin-left: 8px; }
  .arena { grid-template-columns: 1fr 1.6fr; }
  .action-stack { grid-template-columns: 1fr; }
  .wallet-card { display: grid; grid-template-columns: 1fr 1fr; }
  .wallet-card .panel-topline { grid-column: 1 / -1; }
  .wallet-spent-row { align-self: center; margin: 0 16px; }
  .wallet-balance { padding: 14px 16px; }
  .wallet-card .token-package { grid-column: 1 / -1; }
  .purchase-caption { align-self: center; }
  .current-main { justify-content: center; }
  .duration-panel { flex-direction: column; }
  .duration-side { max-width: none; text-align: center; }
  .globe-scene img { left: -100px; }
}
@media (max-width: 720px) {
  .app-shell { width: calc(100% - 20px); margin: 10px auto; padding: 0 18px; }
  .topbar { min-height: 70px; flex-wrap: wrap; gap: 12px; padding: 18px 0 12px; }
  .wordmark { font-size: 17px; }
  .topbar-actions { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; font-size: 10px; padding-top: 8px; }
  .identity-button { max-width: 130px; overflow: hidden; }
  .intro { min-height: 450px; grid-template-columns: 1fr; }
  .intro-copy { padding-top: 30px; }
  .tagline { font-size: 64px; letter-spacing: -4px; }
  .intro-kicker { font-size: 7px; }
  .intro-lede { font-size: 17px; }
  .globe-scene { position: absolute; inset: 110px -220px 0 110px; opacity: .35; }
  .globe-scene img { width: 460px; top: 0; left: 0; }
  .globe-label, .intro-coordinate { display: none; }
  .arena, .board-section { grid-template-columns: 1fr; }
  .action-stack { grid-template-columns: 1fr; }
  .current-card { min-height: 285px; }
  .current-main { padding: 20px; }
  .hero-timer { font-size: 45px; }
  .duration-panel { flex-direction: row; }
  .game-heading { font-size: 8px; }
  .game-heading > span:last-child { display: none; }
  .how-strip { gap: 8px; flex-wrap: wrap; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .how-grid article:nth-child(3) { border: 0; padding-left: 0; }
  .how-grid article { padding-right: 8px; }
  .how-heading > span { display: none; }
  .site-footer { gap: 8px; }
}

/* Put the live leader at the center of the first screen. */
.intro { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 36px; padding: 32px 0; }
.intro-copy { padding: 12px 0; }
.intro .globe-scene { position: absolute; inset: 0 0 0 45%; pointer-events: none; opacity: .3; }
.intro .globe-scene img { top: -40px; left: -40px; }
.intro .globe-label, .intro-coordinate { display: none; }
.intro .current-card { z-index: 1; width: 100%; min-width: 0; min-height: 420px; border-color: #ffe65b66; background: radial-gradient(ellipse at 50% 35%, #29432a40, transparent 70%), #061013e8; box-shadow: 0 0 40px #ffe65b09; }
.intro .current-card .panel-topline { color: var(--yellow); padding: 18px 22px; font-size: 11px; }
.intro .current-main { flex: none; justify-content: center; gap: 12px; padding: 22px 20px 16px; }
.intro .leader-crown { font-size: 48px; }
.intro .current-main > .avatar { position: static; width: 48px; height: 48px; font-size: 16px; }
.leader-identity h2 { margin: 0; font-size: clamp(23px, 2.5vw, 34px); line-height: 1.2; letter-spacing: -1px; overflow-wrap: anywhere; }
.intro .duration-panel { flex-direction: column; gap: 12px; padding: 6px 20px 22px; text-align: center; }
.intro .hero-timer { font-size: clamp(44px, 5.6vw, 76px); letter-spacing: -3px; margin-top: 10px; text-shadow: 0 0 25px #ffe65b20; }
.intro .duration-side { flex-direction: row; align-items: center; max-width: none; gap: 8px; }
.leader-challenge { display: flex; justify-content: center; gap: 24px; padding: 16px; border-top: 1px solid #ffe65b30; color: var(--yellow); font-size: 11px; font-weight: 700; margin-top: auto; }
.leader-challenge:hover { background: #ffe65b0c; }
.arena { grid-template-columns: 1fr; }
.arena .action-stack { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) {
  .intro { grid-template-columns: 1fr; gap: 22px; padding: 22px 0; }
  .intro .current-card { order: -1; min-height: 365px; }
  .intro .current-main { padding: 16px; gap: 8px; }
  .intro .leader-crown { font-size: 38px; }
  .intro .hero-timer { font-size: clamp(36px, 11vw, 60px); letter-spacing: -2px; }
  .intro-copy { padding: 4px 0 12px; }
  .intro .globe-scene { inset: 300px -180px 0 60px; }
  .arena .action-stack { grid-template-columns: 1fr; }
}

/* The reigning player is the primary content; the pitch is supporting copy. */
.intro { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 38px; }
.intro .current-card { order: -1; min-height: 460px; }
.intro .current-main { padding-top: 26px; }
.intro .leader-identity h2 { font-size: clamp(28px, 3.3vw, 44px); }
.intro .hero-timer { font-size: clamp(48px, 6.5vw, 88px); }
.intro .tagline { font-size: clamp(42px, 4.5vw, 62px); letter-spacing: -3px; }
.intro .intro-kicker { font-size: 8px; letter-spacing: .6px; }
.intro .intro-lede { font-size: 16px; color: var(--muted); }
.intro .globe-scene { inset: 0 0 0 55%; }
@media (max-width: 720px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .intro .current-card { min-height: 380px; }
  .intro .hero-timer { font-size: clamp(36px, 11vw, 66px); }
  .intro .tagline { font-size: 42px; }
  .intro .intro-description, .intro .intro-caption { display: none; }
  .intro .globe-scene { inset: 380px -180px 0 80px; }
}

/* Compact supporting pitch on phones, below the live leader. */
@media (max-width: 720px) {
  .intro .globe-scene { display: none; }
  .intro .intro-copy { padding: 4px 0 0; text-align: center; }
  .intro .intro-kicker { justify-content: center; font-size: 8px; letter-spacing: .3px; }
  .intro .tagline { margin: 16px 0 10px; font-size: clamp(26px, 7vw, 42px); line-height: 1.2; letter-spacing: -1.6px; }
  .intro .tagline br { display: none; }
  .intro .tagline span::before { content: " "; white-space: pre; }
  .intro .intro-lede { max-width: 290px; margin: 0 auto 18px; font-size: 13px; line-height: 1.6; }
  .intro .intro-lede br { display: none; }
  .intro .intro-cta { display: flex; justify-content: center; width: 100%; gap: 20px; min-height: 46px; margin-top: 0; }
}
@media (max-width: 720px) {
  .intro .intro-lede br { display: inline; }
  .intro .intro-lede br::after { content: " "; }
}
