:root {
  color-scheme: dark;
  --bg: #060304;
  --surface: rgba(18, 15, 16, 0.84);
  --surface-strong: rgba(28, 23, 24, 0.94);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #fff8ef;
  --muted: #b9aaa1;
  --dim: #756866;
  --red: #e42323;
  --green: #20c86b;
  --gold: #ffd36a;
  --accent: #e42323;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(228, 35, 35, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(32, 200, 107, 0.14), transparent 18rem),
    linear-gradient(180deg, #060304, #100708 48%, #070404);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 1rem;
  padding: 0 max(1rem, calc((100% - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(6, 3, 4, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.header-actions,
.hero-actions,
.status-row,
.toolbar,
.panel-header,
.rules-head,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  width: max-content;
  text-decoration: none;
  font-weight: 950;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(228, 35, 35, 0.55);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(228, 35, 35, 0.2);
}

.main-nav {
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.main-nav a {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.header-actions {
  justify-content: flex-end;
  gap: 0.65rem;
}

.button,
.icon-button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--red), #ff4338 45%, var(--gold));
  color: #140303;
  box-shadow: 0 14px 42px rgba(228, 35, 35, 0.25);
}

.button-primary span {
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.button-soft,
.button-ghost,
.icon-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.button-live {
  border: 1px solid rgba(32, 200, 107, 0.38);
  background: rgba(32, 200, 107, 0.12);
  color: #eafff0;
}

.button-large {
  min-height: 52px;
  padding: 0 1.35rem;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  min-height: calc(100vh - 78px);
  padding: clamp(3rem, 6vw, 5rem) max(1.25rem, calc((100% - 1240px) / 2));
}

.hero-background,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 3, 4, 0.94) 0%, rgba(6, 3, 4, 0.75) 36%, rgba(6, 3, 4, 0.28) 72%, rgba(6, 3, 4, 0.54) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 36%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(0deg, var(--bg), transparent);
  pointer-events: none;
}

.hero-copy,
.hero-media,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 650px;
}

.status-row {
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
  margin-bottom: 1rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(228, 35, 35, 0.34);
  border-radius: 999px;
  background: rgba(228, 35, 35, 0.12);
  color: #ffd9d6;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(32, 200, 107, 0.13);
}

.live-icon {
  position: relative;
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(32, 200, 107, 0.13);
}

.live-icon::after {
  position: absolute;
  inset: -0.32rem;
  border: 1px solid rgba(32, 200, 107, 0.42);
  border-radius: inherit;
  content: "";
  animation: live-pulse 1.65s ease-out infinite;
}

@keyframes live-pulse {
  from {
    opacity: 0.9;
    transform: scale(0.66);
  }

  to {
    opacity: 0;
    transform: scale(1.55);
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(5rem, 12vw, 13rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0;
  text-shadow: 0 16px 60px rgba(228, 35, 35, 0.32);
}

.hero-copy p:not(.eyebrow) {
  max-width: 520px;
  color: #eadbd3;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 650;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-media {
  display: none;
  align-self: stretch;
  min-height: 520px;
  place-items: end center;
}

.hero-media::before {
  position: absolute;
  inset: 10% 2% 4%;
  border: 1px solid rgba(228, 35, 35, 0.28);
  border-radius: 16px;
  content: "";
  background:
    linear-gradient(180deg, rgba(228, 35, 35, 0.12), rgba(0, 0, 0, 0.18)),
    url("../public/brand/king-ping-smoke.png") center / cover;
  filter: saturate(1.08) contrast(1.08);
  opacity: 0.78;
  box-shadow: var(--shadow);
}

.hero-media img {
  position: relative;
  width: min(96%, 520px);
  max-height: 78vh;
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.7));
}

.hero-panel,
.quick-stats article,
.board-card,
.race-snapshot,
.casino-card,
.feature-list article,
.rules-card,
.claim-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 1.25rem;
  border-radius: 14px;
}

.hero-panel[data-casino] {
  border-color: color-mix(in srgb, var(--casino-accent) 42%, white);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--casino-accent) 16%, transparent), rgba(18, 15, 15, 0.82)),
    var(--surface);
}

.panel-header,
.toolbar,
.rules-head {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-header strong {
  display: block;
  margin-top: 0.3rem;
}

.casino-brand-hero {
  font-size: 1.1rem;
}

.casino-brand-hero img {
  width: 34px;
  height: 34px;
  border-color: color-mix(in srgb, var(--casino-accent) 45%, white);
}

.hero-carousel-controls {
  display: inline-flex;
  gap: 0.45rem;
}

.hero-carousel-controls button,
.hero-race-dots button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
}

.hero-carousel-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-carousel-controls button:hover,
.hero-race-dots button:hover {
  border-color: color-mix(in srgb, var(--casino-accent) 55%, white);
}

.panel-header span,
.race-pot span,
.mini-rule span,
.toolbar > div > span,
th,
.casino-card > div > span,
.feature-list span,
.site-footer span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.race-pot {
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--casino-accent) 32%, rgba(255, 211, 106, 0.26));
  border-radius: 10px;
  background: color-mix(in srgb, var(--casino-accent) 12%, rgba(255, 211, 106, 0.08));
}

.race-pot strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 2.1rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.countdown div {
  padding: 0.75rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.countdown strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.08rem;
}

.countdown span {
  color: var(--muted);
  font-size: 0.68rem;
}

.mini-rule {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--casino-accent) 18%, transparent), rgba(32, 200, 107, 0.09));
}

.mini-rule strong {
  display: block;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.4rem;
}

.hero-race-dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.hero-race-dots button {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 8px;
}

.hero-race-dots button.active {
  border-color: color-mix(in srgb, var(--casino-accent) 70%, white);
  background: color-mix(in srgb, var(--casino-accent) 18%, transparent);
}

.hero-race-dots img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.65;
}

h2,
h3 {
  margin-top: 0;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 5vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.quick-stats,
.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.quick-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  transform: translateY(-1.5rem);
}

.quick-stats article {
  min-height: 96px;
  padding: 1rem;
  border-radius: 12px;
}

.quick-stats span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
}

.quick-stats strong {
  font-size: 0.94rem;
}

.section {
  padding: 4.25rem 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.casino-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.casino-tabs button {
  min-height: 76px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.casino-tabs button.active {
  border-color: color-mix(in srgb, var(--accent) 72%, white);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, transparent), rgba(255, 255, 255, 0.05));
}

.casino-tabs strong {
  display: block;
}

.casino-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--text);
  font-weight: 900;
}

.casino-brand img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: contain;
  padding: 0.18rem;
}

.casino-brand span {
  min-width: 0;
}

.casino-brand-card {
  gap: 0.65rem;
}

.casino-brand-card img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.casino-tabs strong {
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.board-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
}

.race-snapshot {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 1rem;
  border-radius: 14px;
}

.snapshot-head,
.snapshot-code,
.snapshot-note {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 1rem;
}

.snapshot-head {
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(255, 255, 255, 0.045));
}

.snapshot-head > span,
.snapshot-code span,
.snapshot-grid span,
.snapshot-note span {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.snapshot-head strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
}

.snapshot-code {
  margin-bottom: 0.8rem;
}

.snapshot-code strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.7rem;
}

.snapshot-grid {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.snapshot-grid div {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
}

.snapshot-grid strong {
  display: block;
  margin-top: 0.3rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
}

.snapshot-note p {
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

.board-card {
  overflow: hidden;
  border-radius: 14px;
}

.toolbar {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-pill.is-live {
  border-color: rgba(32, 200, 107, 0.42);
  background: rgba(32, 200, 107, 0.1);
  color: #eafff0;
}

.toolbar strong {
  display: block;
  margin-top: 0.2rem;
}

#tableLabel {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

#tableLabel .casino-brand {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

#tableLabel > span:last-child {
  color: var(--muted);
}

.snapshot-head strong .casino-brand {
  margin-top: 0.15rem;
}

.snapshot-head strong .casino-brand img {
  width: 34px;
  height: 34px;
}

.toolbar input {
  width: min(240px, 45vw);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 0.85rem;
  outline: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

td {
  color: var(--text);
  font-weight: 800;
}

td:nth-child(3),
td:nth-child(5),
td:nth-child(6) {
  font-family: "JetBrains Mono", monospace;
}

td:first-child {
  color: var(--gold);
}

.casino-section {
  width: 100%;
  padding-inline: max(1rem, calc((100% - 1180px) / 2));
  background:
    linear-gradient(180deg, transparent, rgba(228, 35, 35, 0.07), transparent),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent);
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.casino-card {
  min-height: 205px;
  padding: 1.2rem;
  border-radius: 12px;
  border-top: 4px solid var(--casino-accent);
}

.casino-card strong {
  display: block;
  margin: 1.1rem 0 0.8rem;
  color: var(--casino-accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
}

.casino-card b {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
}

.copy-casino-code {
  width: 100%;
  min-height: 42px;
  margin-top: 1rem;
  border: 1px solid color-mix(in srgb, var(--casino-accent) 48%, white);
  border-radius: 8px;
  background: color-mix(in srgb, var(--casino-accent) 16%, transparent);
  color: var(--text);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 950;
}

.copy-casino-code:hover {
  background: color-mix(in srgb, var(--casino-accent) 24%, transparent);
}

.giveaway-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 2rem;
  align-items: center;
}

.giveaway-art {
  overflow: hidden;
  border: 1px solid rgba(228, 35, 35, 0.34);
  border-radius: 14px;
  background: #070404;
  box-shadow: var(--shadow);
}

.giveaway-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

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

.feature-list article {
  min-height: 118px;
  padding: 1.2rem;
  border-radius: 12px;
}

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

.compact-features article {
  min-height: 160px;
}

.feature-list span {
  color: var(--red);
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 1rem;
  align-items: start;
}

.rules-panel,
.claim-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.rules-panel {
  overflow: hidden;
}

.rule-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.rule-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.rule-tabs button.active {
  border-color: color-mix(in srgb, var(--accent) 72%, white);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, transparent), rgba(255, 255, 255, 0.05));
  color: var(--text);
}

.rules-card {
  padding: 1.1rem;
}

.claim-card {
  padding: 1.3rem;
}

.rules-list-card {
  border-top: 3px solid var(--casino-accent);
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--casino-accent) 10%, transparent), rgba(255, 255, 255, 0.035));
  padding: 1.1rem;
}

.rule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.rule-summary span {
  padding: 0.45rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--casino-accent) 36%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--casino-accent) 10%, transparent);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rules-card ol {
  counter-reset: rule;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-card li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.68rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.rules-card li::before {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  content: counter(rule, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.rules-head strong {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
}

.claim-card label {
  display: block;
  margin: 1rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.join-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: join;
}

.join-steps li {
  counter-increment: join;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.join-steps li::before {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 211, 106, 0.12);
  color: var(--gold);
  content: counter(join, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.claim-card input {
  width: 100%;
  accent-color: var(--accent);
}

.calc-output {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.calc-output span,
.calc-output strong {
  font-family: "JetBrains Mono", monospace;
}

.calc-output strong {
  color: var(--gold);
}

.site-footer {
  padding: 0 max(1rem, calc((100% - 1180px) / 2)) 1.6rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 0% 0%, rgba(228, 35, 35, 0.16), transparent 28rem);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  padding: 2.5rem 0 1.7rem;
}

.footer-brand p {
  max-width: 430px;
  margin: 1rem 0 1.15rem;
}

.footer-links {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-links div {
  min-height: 190px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-links h3 {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 0.72rem;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.responsible-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 211, 106, 0.25);
  border-radius: 10px;
  background: rgba(255, 211, 106, 0.07);
  padding: 1rem;
}

.responsible-note strong {
  color: var(--gold);
  white-space: nowrap;
}

.responsible-note span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  max-width: 560px;
  margin: 0;
  font-size: 0.86rem;
}

.footer-bottom span {
  white-space: nowrap;
}

.builder-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(32, 200, 107, 0.22);
  border-radius: 10px;
  background: rgba(32, 200, 107, 0.06);
}

.builder-credit span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.builder-credit img {
  width: 38px;
  height: 26px;
  border-radius: 5px;
  object-fit: cover;
}

.builder-credit a:hover strong {
  color: #b8ff4e;
}

.royal-mode {
  --red: #ff2525;
  --gold: #ffe08a;
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 1rem;
  }

  .brand,
  .main-nav,
  .header-actions {
    justify-content: center;
    width: 100%;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .board-shell,
  .giveaway-section,
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 460px;
    order: -1;
  }

  .quick-stats,
  .casino-tabs,
  .casino-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 0.8rem;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  .main-nav a {
    min-width: 0;
    padding: 0.55rem 0.25rem;
    font-size: 0.72rem;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 24vw, 6.2rem);
  }

  .hero-background {
    object-position: 66% center;
  }

  .hero-media {
    min-height: 330px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 42px 1fr 1fr;
  }

  .button {
    min-width: 0;
    padding-inline: 0.75rem;
  }

  .quick-stats,
  .casino-tabs,
  .casino-grid {
    grid-template-columns: 1fr;
  }

  .giveaway-section > *,
  .giveaway-art {
    min-width: 0;
    max-width: 100%;
  }

  .compact-features {
    grid-template-columns: 1fr;
  }

  .compact-features article {
    min-height: 0;
  }

  .toolbar,
  .calc-output {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar input {
    width: 100%;
  }

  th,
  td {
    padding: 0.85rem;
  }

  .table-wrap {
    overflow-x: visible;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 0.8rem;
  }

  tbody tr {
    display: grid;
    gap: 0;
    padding: 0.25rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: right;
    overflow-wrap: anywhere;
  }

  tbody td:last-child {
    border-bottom: 0;
  }

  tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-family: Inter, sans-serif;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}
