:root {
  --bg: #050505;
  --panel: #101010;
  --panel-2: #171717;
  --text: #f6f0e8;
  --muted: #9c9690;
  --red: #ff0012;
  --red-dark: #99000b;
  --green: #00e676;
  --green-dark: #008f48;
  --white: #fff8ef;
  --line: #2a2a2a;
  --shadow: 10px 10px 0 #ff0012;
  --font-sans: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-mono: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-code: "JetBrains Mono", "Space Grotesk", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scrollbar-gutter: stable;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(135deg, rgba(255, 0, 18, 0.16), transparent 26rem),
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 255, 255, 0.035) 20px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.mobile-desktop-wall {
  display: none;
}

@media (max-width: 860px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    position: fixed;
    inset: 0;
  }

  html.mobile-block-off,
  html.mobile-block-off body {
    width: auto;
    min-height: 100%;
    height: auto;
    overflow: auto;
    overscroll-behavior: auto;
  }

  html.mobile-block-off body {
    position: static;
    inset: auto;
  }

  html.mobile-block-off .mobile-desktop-wall {
    display: none;
  }

  .mobile-desktop-wall {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
      radial-gradient(circle at 50% 8%, rgba(74, 144, 255, 0.22), transparent 18rem),
      linear-gradient(180deg, rgba(5, 18, 38, 0.98), rgba(2, 6, 18, 0.99));
    color: #ffffff;
    text-align: center;
    pointer-events: all;
    touch-action: none;
    overscroll-behavior: none;
  }

  .mobile-desktop-card {
    width: min(100%, 24rem);
    padding: 2rem 1.25rem;
    border: 1px solid rgba(180, 210, 255, 0.18);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(14, 32, 61, 0.82), rgba(7, 16, 34, 0.9));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
  }

  .mobile-desktop-card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 0.85rem;
  }

  .mobile-desktop-card h1 {
    margin: 0 0 0.85rem;
    color: #ffffff;
    font-size: clamp(2rem, 11vw, 3.6rem);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
  }

  .mobile-desktop-card p:last-child {
    margin: 0;
    color: rgba(231, 240, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.45;
  }
}

a {
  color: var(--white);
  text-decoration-thickness: 3px;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
  color: var(--white);
}

button,
input {
  font: inherit;
}

code,
pre {
  font-family: var(--font-code);
}

code {
  color: var(--white);
  overflow-wrap: anywhere;
}

.demo-mode-banner {
  width: 100%;
  padding: 0.55rem max(1rem, calc((100% - 1180px) / 2));
  background: #000;
  color: var(--white);
  border-bottom: 2px solid var(--line);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem max(1rem, calc((100% - 1180px) / 2));
  border-bottom: 4px solid var(--white);
  background: #000;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.brand h1 {
  margin: 0;
  color: var(--white);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.nav a,
.text-button {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  line-height: 1;
}

.nav-cta,
.credit-pill {
  padding: 0.55rem 0.8rem;
  border: 3px solid var(--white);
  background: var(--red);
  color: var(--white) !important;
  text-decoration: none;
}

.credit-pill {
  background: var(--white);
  color: #000 !important;
}

.account-icon-link {
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  color: var(--white);
  text-decoration: none;
  flex: 0 0 auto;
}

.account-icon-link:hover {
  color: var(--white);
}

.account-icon-link:focus-visible {
  color: var(--white);
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.account-icon {
  display: block;
  width: 2.45rem;
  height: 2.45rem;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.table-action-form {
  margin: 0;
}

.text-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.text-button-danger {
  color: var(--red);
}

.nav-create {
  padding: 0.55rem 0.8rem;
  border: 3px solid var(--white);
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  flex: 1 0 auto;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

body.home-logged-in .shell {
  padding: 0 0 4rem;
}

.site-footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--white);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.footer-mainline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-disclaimer {
  max-width: 52rem;
  text-align: center;
}

.panel {
  min-width: 0;
  background: var(--panel);
  border: 4px solid var(--white);
  border-radius: 0;
}

.brutal-panel {
  box-shadow: var(--shadow);
}

.hero-grid,
.game-layout,
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

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

.hero-copy,
.landing-chart-panel,
.auth-card,
.account-card,
.rounds-panel,
.crash-stage,
.bet-panel,
.competition-summary-panel,
.reveal-panel,
.history-panel,
.legal-page,
.empty-state {
  padding: 1.5rem;
}

.hero-copy {
  padding: 4.25rem 1.5rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.65) 100%),
    url("../assets/gameplay.gif") center / cover no-repeat;
  background-color: #000;
  overflow: hidden;
}

.hero-copy h1,
.auth-card h1,
.account-card h1,
.legal-page h1,
.reveal-panel h1 {
  margin: 0;
  color: var(--white);
  font-weight: 900;
  font-size: 4.75rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-wrap {
  display: grid;
  place-items: center;
  gap: 1.25rem;
}

.auth-card {
  width: min(100%, 520px);
}

.account-card h1 {
  font-size: 3.4rem;
  overflow-wrap: anywhere;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.account-grid div,
.winner-grid div,
.reveal-grid div {
  min-width: 0;
  padding: 1rem;
  border: 3px solid var(--line);
  background: #000;
}

.account-grid strong,
.winner-grid strong,
.reveal-grid strong {
  display: block;
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.winner-grid,
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.reveal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(22rem, 1.6fr);
}

.reveal-date-range {
  white-space: nowrap;
  overflow-wrap: normal;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
}

.account-form label {
  margin: 0;
}

.account-form .button {
  min-height: 3.45rem;
}

.api-panel {
  display: grid;
  gap: 0.9rem;
}

.api-key-label {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.api-key-input {
  width: 100%;
  font-family: var(--font-code);
}

.api-example {
  margin: 0;
  padding: 1rem;
  border: 2px solid var(--line);
  background: #000;
  color: var(--white);
  white-space: pre-wrap;
}

.duration-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.duration-controls label {
  margin-top: 0;
}

label {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  border: 3px solid var(--white);
  border-radius: 0;
  padding: 0.8rem;
  background: #000;
  color: var(--white);
  font-family: var(--font-mono);
  outline: none;
}

.signup-disabled-form input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}

input:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 0, 18, 0.35);
}

.signup-disabled-message {
  margin: 1rem 0;
}

.form-note {
  margin: 1rem 0 0;
  color: var(--muted);
}

h2 {
  margin: 0 0 0.75rem;
  color: var(--white);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  color: var(--white);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.45;
}

.eyebrow,
.mini-label {
  display: block;
  margin: 0 0 0.65rem;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-left: 5px;
}

.hero-copy .hero-eyebrow {
  display: inline-block;
  margin: 0 0 0.28rem;
  padding: 0.1rem 0.35rem;
  background: #000;
}

.hero-copy .hero-lede {
  padding-top: 0.85rem;
}

.hero-copy .hero-lede strong {
  color: var(--white);
  font-weight: 900;
}

.glitch-word {
  display: inline-block;
  color: var(--white);
  animation: glitchShift 3s steps(1, end) infinite;
  transform-origin: center;
}

@keyframes glitchShift {
  0%, 70%, 100% {
    transform: translate(0, 0) skew(0deg);
  }

  71% {
    transform: translate(-0.035em, 0.01em) skew(-3deg);
  }

  72% {
    transform: translate(0.03em, -0.012em) skew(2deg);
  }

  73% {
    transform: translate(-0.018em, -0.006em) skew(4deg) scaleX(1.015);
  }

  74% {
    transform: translate(0.04em, 0.012em) skew(-4deg) scaleY(0.99);
  }

  75% {
    transform: translate(-0.025em, 0) skew(2deg);
  }

  76% {
    transform: translate(0.014em, -0.008em) skew(-2deg);
  }
}

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border: 4px solid var(--white);
  border-radius: 0;
  color: #000;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 6px 6px 0 #000;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible,
.btn:hover,
.btn:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #000;
}

.button-primary,
.btn-primary {
  background: var(--red);
  color: var(--white);
}

.button-ghost,
.btn-outline-secondary {
  background: var(--white);
  color: #000;
}

.button-ghost:hover,
.button-ghost:focus-visible,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
  color: #000;
}

.button-compact {
  min-height: 2.85rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.button:disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button:disabled:hover,
.btn:disabled:hover {
  transform: none;
  box-shadow: 6px 6px 0 #000;
}

.full-width {
  width: 100%;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.landing-side,
.game-side {
  display: grid;
  gap: 1.25rem;
}

.landing-chart-panel,
.crash-stage {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 0, 18, 0.16), transparent),
    #070707;
}

.landing-chart-head,
.section-heading,
.competition-head,
.stage-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.history-heading {
  justify-content: center;
  text-align: center;
}

.history-heading > div {
  width: 100%;
}

.history-heading .eyebrow {
  margin-left: 0;
}

.history-total-heading {
  text-transform: none;
}

.history-total-value {
  display: inline-block;
  padding-bottom: 0.08em;
  border-bottom: 4px solid #2f7cff;
}

.history-heading + .table-wrap {
  margin-top: 1.8rem;
}

.landing-chart-viewport {
  position: relative;
  min-height: 310px;
  border: 3px solid var(--line);
  background: #000;
}

.landing-chart-canvas {
  width: 100%;
  height: 310px;
  display: block;
  background: #000;
}

.landing-chart-subhead,
.competition-meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-history,
.history-count {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
}

.asset-history {
  margin: 1.35rem 0 0.65rem;
}

.scramble-text {
  color: var(--white);
}

.result-win-text,
.results-data-card strong.result-win-text {
  color: var(--green);
}

.result-win-payout {
  animation: resultWinPayoutPulse 1.45s ease-in-out infinite;
}

.ledger-status-won {
  color: var(--green);
  font-weight: 900;
}

.account-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
}

.account-page-link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

.account-page-link-disabled {
  color: var(--muted);
  text-decoration: none;
}

.account-page-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.account-table-loading {
  opacity: 0.62;
  pointer-events: none;
  transition: opacity 140ms ease;
}

@keyframes resultWinPayoutPulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(0, 230, 118, 0);
    transform: scale(1);
  }

  50% {
    text-shadow: 0 0 18px rgba(0, 230, 118, 0.7);
    transform: scale(1.035);
  }
}

.reveal-date-range {
  line-height: 0.95;
}

.verify-block {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.verify-link {
  justify-self: start;
}

.verify-note {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.audit-json-link {
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
}

.history-count {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.rounds-panel,
.history-panel {
  margin-top: 3rem;
}

.reveal-panel + .history-panel {
  margin-top: 1.5rem;
}

.rounds-panel-compact {
  margin-top: 0;
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.competition-card {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem;
  border: 3px solid var(--line);
  background: #000;
}

.competition-card-ending {
  animation: round-edge-pulse 1.05s ease-in-out infinite;
  border-color: rgba(255, 255, 255, 0.96);
}

.payout-value-updated {
  animation: payout-value-pop 620ms ease-out;
}

@keyframes round-edge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 0 26px rgba(255, 255, 255, 0.22);
  }
}

@keyframes payout-value-pop {
  0% {
    color: var(--white);
    transform: translateY(0);
  }

  40% {
    color: #9affd2;
    transform: translateY(-1px);
  }

  100% {
    color: var(--white);
    transform: translateY(0);
  }
}

.competition-summary-panel {
  display: grid;
  gap: 0.9rem;
  background: #000;
}

.compete-play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1rem;
  align-items: start;
}

.compete-side-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.compete-side-stats {
  width: 100%;
}

.competition-summary-wide {
  margin-bottom: 1.25rem;
}

.competition-summary-panel .countdown {
  flex-wrap: nowrap;
  column-gap: 0.22rem;
  row-gap: 0;
  white-space: nowrap;
  font-size: 0.82rem;
}

.competition-summary-panel .countdown-part {
  flex: 0 0 auto;
}

.competition-summary-panel .countdown-value {
  font-size: 1.16rem;
}

.competition-summary-wide .countdown,
.competition-summary-wide .countdown-value,
.competition-summary-wide .countdown-unit {
  font-size: 1.08rem;
}

.competition-summary-panel h3 {
  white-space: nowrap;
  font-size: 1.55rem;
  line-height: 0.95;
}

.competition-summary-wide {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.4rem;
}

.competition-summary-main,
.competition-summary-wide .competition-meta-list {
  min-width: 0;
}

.competition-summary-main {
  display: grid;
  gap: 0.55rem;
}

.competition-summary-main .mini-label,
.competition-summary-main .countdown,
.competition-summary-wide h3 {
  justify-self: start;
  margin: 0;
}

.competition-summary-wide h3 {
  font-size: 1.9rem;
  padding-top: 0.25rem;
}

.competition-summary-actions {
  justify-self: end;
  text-align: right;
}

.competition-summary-actions .competition-free-entry-link {
  justify-self: end;
}

.competition-free-entry-link {
  margin-top: 0.32rem;
  width: fit-content;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.competition-preview {
  min-width: 0;
  border: 3px solid var(--line);
  background: #000;
}

.competition-preview-canvas {
  display: block;
  width: 100%;
  height: 180px;
  background: #000;
}

.competition-meta-list {
  display: grid;
  gap: 0.18rem;
}

.competition-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.compete-round-title .competition-stat-grid {
  width: min(100%, 520px);
}

.competition-stat {
  display: grid;
  align-content: center;
  gap: 0.28rem;
  min-width: 0;
  min-height: 5.1rem;
  padding: 0.72rem;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.competition-stat span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.competition-stat strong {
  overflow-wrap: anywhere;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.competition-stat .countdown {
  column-gap: 0.34rem;
  row-gap: 0;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1;
}

.compete-round-title .competition-stat .countdown {
  justify-content: center;
  width: 100%;
}

.competition-stat .countdown-value {
  font-size: 2.05rem;
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.portal-rake-panel {
  margin-bottom: 1.5rem;
}

.portal-rake-panel .competition-stat {
  min-height: 6.25rem;
  border-width: 3px;
  background: #000;
}

.portal-rake-panel .competition-stat strong {
  font-size: 2.25rem;
}

.portal-stat-note {
  margin: 1rem 0 0;
}

.portal-live-updated {
  animation: portalLivePulse 650ms ease;
}

@keyframes portalLivePulse {
  0% {
    color: var(--green);
  }

  100% {
    color: var(--white);
  }
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.38rem;
  row-gap: 0.08rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.competition-card > .countdown {
  margin: 0 0 -0.2rem;
}

.countdown-part {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04rem;
}

.countdown-value {
  font-size: 1.6rem;
  line-height: 0.9;
}

.countdown-unit {
  color: var(--muted);
}

.competition-head .mini-label {
  margin-bottom: 0;
}

.competition-head {
  align-items: center;
}

.status-chip {
  display: inline-flex;
  padding: 0.25rem 0.45rem;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
}

.status-open {
  background: var(--white);
  color: #000;
}

.status-entered {
  border-color: var(--green);
  background: var(--green);
  color: #000;
}

.stage-topline,
.stage-footer {
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.stage-topline {
  flex-direction: row;
  padding-bottom: 0.75rem;
}

.stage-footer {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

.results-stage .stage-footer {
  font-family: var(--font-sans);
}

.results-chart-key {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.15rem;
  padding-top: 0.9rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.chart-key-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.chart-key-line {
  display: inline-block;
  flex: 0 0 auto;
  width: 3rem;
  height: 0;
  border-top: 3px solid currentColor;
}

.chart-key-line-final {
  color: var(--white);
}

.chart-key-line-winner,
.chart-key-line-user {
  color: var(--green);
}

.chart-key-line-user {
  border-top-style: dashed;
}

.status-light {
  color: var(--red);
}

.seed-commitment {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 100%;
  padding-top: 0.75rem;
  border-top: 2px solid rgba(255, 248, 239, 0.18);
  color: var(--white);
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.seed-commitment code {
  max-width: min(100%, 42rem);
  color: var(--muted);
}

.chart-viewport {
  position: relative;
}

.chart-canvas {
  width: 100%;
  height: min(600px, 66vh);
  min-height: 460px;
  display: block;
  background: #000;
  border: 3px solid var(--line);
  border-radius: 0;
  touch-action: pan-y;
}

.results-stage {
  margin-top: 2rem;
}

.prediction-value {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 3px solid var(--line);
  background: #000;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.ticket-current {
  margin: 0.95rem 0 0.65rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-current-value {
  text-decoration-line: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

.trade-ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.78rem 0.85rem;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--font-sans);
  text-align: left;
  text-transform: uppercase;
}

.trade-ticket-meta span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.trade-ticket-meta strong {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.entry-instructions {
  display: grid;
  gap: 0.65rem;
}

.entry-instructions .account-note {
  margin: 0;
}

.prediction-panel .start-round-button {
  margin-top: 0.8rem;
}

.entry-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.7rem;
  min-width: 0;
  padding: 0.82rem 0;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: transparent;
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.entry-row:hover,
.entry-row:focus-visible {
  color: var(--green);
  outline: none;
}

.entry-row::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.14);
}

.entry-row span,
.entry-row strong {
  min-width: 0;
}

.entry-row-id {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: left;
}

.entry-row strong {
  color: var(--white);
  font-size: 0.9rem;
  text-align: right;
}

.start-round-button {
  font-size: 1.35rem;
}

.prediction-panel .start-round-button + .button {
  margin-top: 0.85rem;
}

.account-note,
.legal-section p,
.empty-state p {
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-family: var(--font-mono);
}

th,
td {
  padding: 0.8rem;
  border: 3px solid var(--line);
  color: var(--white);
  text-align: left;
}

th {
  background: #000;
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
}

.is-user-row td {
  background: var(--white);
  color: #000;
  font-weight: 900;
}

.empty-state {
  color: var(--muted);
}

.legal-page {
  display: grid;
  gap: 1.15rem;
}

.legal-updated {
  margin: -0.75rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 900;
  text-transform: uppercase;
}

.legal-notice {
  padding: 1rem;
  border: 3px solid var(--red);
  background: #000;
  color: var(--white);
  line-height: 1.5;
}

.legal-notice strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--red);
  text-transform: uppercase;
}

.legal-section {
  padding-top: 1.05rem;
  border-top: 3px solid var(--line);
}

.flash-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.flash {
  border: 3px solid var(--white);
  padding: 0.8rem 1rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 #000;
}

.flash-error,
.flash-danger,
.flash-warning {
  background: var(--red);
  color: var(--white);
}

.flash-success {
  border-color: var(--green-dark);
  background: var(--green);
  color: #000;
}

.flash-info {
  background: #000;
  color: var(--white);
}

.flash-sticky {
  margin: 1rem 0 0;
}

.modal-content {
  background: var(--panel);
  color: var(--text);
  border-radius: 0;
}

#ageGateModal .modal-header,
#ageGateModal .modal-body,
#ageGateModal .modal-footer,
#confirmEntryModal .modal-header,
#confirmEntryModal .modal-body,
#confirmEntryModal .modal-footer {
  padding-left: 2rem;
  padding-right: 2rem;
}

#ageGateModal .modal-header,
#confirmEntryModal .modal-header {
  padding-top: 2rem;
}

#ageGateModal .modal-footer,
#confirmEntryModal .modal-footer {
  padding-bottom: 2rem;
}

.modal-backdrop.show {
  background: #000;
  opacity: 0.92;
}

.modal-header,
.modal-footer {
  border-color: var(--line);
}

.modal-title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.entry-confirm-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0;
  color: var(--white);
  font-weight: 900;
  line-height: 1.2;
  text-transform: none;
}

.entry-confirm-check input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  padding: 0;
  accent-color: var(--green);
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    padding: 0.75rem 1rem;
  }

  .brand h1 {
    font-size: 1.4rem;
  }

  .brand-logo {
    width: 2.35rem;
    height: 2.35rem;
  }

  .nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    white-space: nowrap;
  }

  .nav a,
  .text-button {
    flex: 0 0 auto;
    font-size: 0.8rem;
  }

  .account-icon-link {
    width: 2.25rem;
    height: 2.25rem;
  }

  .account-icon {
    width: 2.05rem;
    height: 2.05rem;
  }

  .nav-create {
    padding: 0.42rem 0.55rem;
    border-width: 2px;
  }

  .shell {
    width: calc(100% - 1rem);
    padding-top: 1rem;
  }

  .hero-grid,
  .game-layout,
  .account-layout,
  .reveal-grid,
  .competition-summary-wide,
  .competition-grid,
  .portal-stat-grid,
  .compete-play-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .competition-summary-wide .countdown,
  .competition-summary-wide h3 {
    justify-self: start;
  }

  .competition-summary-actions,
  .competition-summary-actions .competition-free-entry-link {
    justify-self: start;
    text-align: left;
  }

  .reveal-date-range {
    white-space: normal;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy,
  .landing-chart-panel,
  .auth-card,
  .account-card,
  .rounds-panel,
  .crash-stage,
  .bet-panel,
  .reveal-panel,
  .history-panel,
  .legal-page,
  .empty-state {
    padding: 1rem;
  }

  .hero-copy {
    padding: 3rem 1rem;
  }

  .hero-copy h1,
  .auth-card h1,
  .account-card h1,
  .legal-page h1,
  .reveal-panel h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .brutal-panel {
    box-shadow: 6px 6px 0 var(--red);
  }

  .chart-canvas {
    height: 470px;
    min-height: 360px;
  }

  .countdown {
    font-size: 1.75rem;
  }

  .countdown-value {
    font-size: 2.35rem;
  }
}

@media (max-width: 430px) {
  .hero-copy h1,
  .auth-card h1,
  .account-card h1,
  .legal-page h1,
  .reveal-panel h1 {
    font-size: 2.35rem;
  }

  .landing-chart-viewport,
  .landing-chart-canvas {
    min-height: 260px;
    height: 260px;
  }

  .button {
    border-width: 3px;
  }
}

.copy-mobile {
  display: none;
}

@media (max-width: 860px) {
  .copy-desktop {
    display: none;
  }

  .copy-mobile {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glitch-word {
    animation: none;
  }

  .competition-card-ending,
  .theme-two .competition-card-ending,
  .payout-value-updated,
  .theme-two .payout-value-updated {
    animation: none;
  }

  .button,
  .btn {
    transition: none;
  }
}
