:root {
  --ink: #0a0a0b;
  --ink-soft: #141416;
  --paper: #f4f4f2;
  --muted: rgba(244, 244, 242, 0.72);
  --gold: #c9a227;
  --gold-bright: #e6c14a;
  --crimson: #c62828;
  --crimson-hot: #e53935;
  --discord: #5865f2;
  --line: rgba(244, 244, 242, 0.14);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.88) 0%, rgba(10, 10, 11, 0.35) 70%, transparent 100%);
  backdrop-filter: blur(6px);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.18em;
  color: var(--paper);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 5px auto;
  background: var(--paper);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: block;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.55) 42%, rgba(10, 10, 11, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.45) 0%, rgba(10, 10, 11, 0.15) 35%, rgba(10, 10, 11, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5.5rem);
  animation: rise-in 0.9s var(--ease) both;
}

/* Anchored to the right of the hero (open casino / car side) */
.hero-changelog {
  position: absolute;
  z-index: 2;
  top: 42%;
  right: clamp(1.25rem, 5vw, 3.5rem);
  transform: translateY(-50%);
  width: min(27.5rem, calc(100vw - 2.5rem));
  max-width: 27.5rem;
  padding: 1.7rem 1.8rem 1.85rem;
  border: 1px solid rgba(244, 244, 242, 0.12);
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  animation: rise-in 1.05s var(--ease) 0.12s both;
}

.hero-changelog[hidden] {
  display: none !important;
}

.changelog-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.changelog-version {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.changelog-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1.25;
}

.changelog-body {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.changelog-link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(230, 193, 74, 0.35);
}

.changelog-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.brand-hero {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.55);
  font-size: 0.95rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #6b6b6b;
  flex-shrink: 0;
}

.status-dot[data-state="online"] {
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55);
  animation: pulse-live 1.8s ease-out infinite;
}

.status-dot-discord[data-state="online"] {
  background: #5865f2;
  box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.45);
  animation: pulse-discord 1.8s ease-out infinite;
}

.status-dot[data-state="offline"],
.status-dot[data-state="error"] {
  background: #e74c3c;
}

.status-text strong {
  font-weight: 700;
  margin-right: 0.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.15rem;
  padding: 0 1.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-play {
  background: var(--crimson);
  color: #fff;
}

.btn-play:hover,
.btn-play:focus-visible {
  background: var(--crimson-hot);
}

.btn-discord {
  background: transparent;
  border-color: rgba(244, 244, 242, 0.35);
  color: var(--paper);
}

.btn-discord:hover,
.btn-discord:focus-visible {
  border-color: var(--discord);
  color: #fff;
  background: rgba(88, 101, 242, 0.18);
}

/* —— About —— */
.about {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(201, 162, 39, 0.08), transparent 55%),
    var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.about-inner {
  max-width: 38rem;
}

.about h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.about p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.about a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.about a:hover {
  color: #fff;
}

/* —— Store supporters —— */
.supporters {
  border-top: 1px solid var(--line);
  background: var(--ink);
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.supporters[hidden] {
  display: none !important;
}

.supporters-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.supporters-eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.top-supporter {
  margin-bottom: 2.5rem;
}

.top-supporter-label {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.top-supporter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-supporter-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 162, 39, 0.55);
}

.top-supporter-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--paper);
  text-transform: uppercase;
}

.top-supporter-thanks {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.supporters-heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.supporters-count {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.recent-supporters,
.all-supporters {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.all-supporters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.supporter-chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  color: var(--paper);
  line-height: 1.3;
}

.supporter-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.supporter-row:last-child {
  border-bottom: none;
}

.supporter-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1c;
}

.supporter-avatar--empty {
  display: inline-block;
  border: 1px solid var(--line);
}

.supporter-text {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
}

.supporter-text strong {
  color: var(--paper);
  font-weight: 600;
}

.supporter-text em {
  font-style: normal;
  color: var(--gold-bright);
}

.supporters-cta {
  margin: 1.75rem 0 0;
}

.supporters-cta a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(230, 193, 74, 0.35);
}

.supporters-cta a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.35rem;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 1.2rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: rgba(244, 244, 242, 0.5);
}

.footer-meta {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.footer-meta a:hover {
  color: var(--paper);
}

/* —— Motion —— */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

@keyframes pulse-discord {
  0% {
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(88, 101, 242, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-content,
  .status-dot[data-state="online"] {
    animation: none;
  }
}

/* —— Mobile —— */
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    z-index: 50;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 0.5rem) 1.25rem 1.25rem;
    background: rgba(10, 10, 11, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-content {
    align-self: stretch;
  }

  .hero-changelog {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: auto;
    max-width: none;
    margin: 0 clamp(1.25rem, 4vw, 3rem) 1.75rem;
  }

  .brand-hero {
    letter-spacing: 0.06em;
  }

  .btn {
    width: 100%;
  }
}
