:root {
  --bg: #111822;
  --bg-elevated: #18212f;
  --bg-card: #1e2b3e;
  --border: #2c3e58;
  --text: #eceff3;
  --text-dim: #a0afc5;
  --accent: #84eb84;
  --accent-dim: #5fcf5f;
  --gold: #ffb020;
  --danger: #f2545b;
  --radius: 14px;
  --max-width: 1180px;
}

/* Metric-matched fallback so the local font swap doesn't shift layout once
   Supreme loads — same ascent/descent/size-adjust values Supreme's own
   published metrics use against Arial. */
@font-face {
  font-family: "Supreme Fallback";
  src: local("Arial");
  font-display: swap;
  ascent-override: 90.0793%;
  descent-override: 25.737%;
  line-gap-override: 8.2726%;
  size-adjust: 108.793%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Supreme", "Supreme Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #1e2b3e;
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-brand .logo-img {
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 12px;
  flex: 1;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #06231a;
}
.btn-primary:hover { background: var(--accent-dim); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elevated); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}
.btn-outline:hover { background: rgba(62, 224, 143, 0.08); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px 60px;
  text-align: center;
}

.hero-inner { max-width: 720px; margin: 0 auto; }

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 32px;
}

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

.hero-disclosure {
  color: var(--text-dim);
  font-size: 0.8rem;
  max-width: 480px;
  margin: 0 auto;
}

.hero-image {
  max-width: 640px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

/* Simulated activity feed */
.activity-section { padding-top: 0; padding-bottom: 24px; }

.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.activity-header h2 { margin: 0; font-size: 1.2rem; }

.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}

.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: activity-pulse 1.6s ease-in-out infinite;
}

@keyframes activity-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.activity-note {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin: 0 0 18px;
  max-width: 640px;
}

.activity-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.activity-tab {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.activity-tab:hover { color: var(--text); }

.activity-tab.active {
  background: rgba(62, 224, 143, 0.1);
  border-color: var(--accent-dim);
  color: var(--accent);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Fixed, not min — exactly 10 rows (see MAX_VISIBLE in script.js) at their
     fixed per-row height, so the container never grows/shrinks as rows are
     added, tabs are switched, or the list goes from empty to populated.
     overflow: hidden is a safety net, not load-bearing: the JS already caps
     the list at 10 items. */
  height: 460px;
  overflow: hidden;
}

.activity-empty {
  color: var(--text-dim);
  font-size: 0.88rem;
  text-align: center;
  padding: 40px 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 0.88rem;
  /* Fixed height per row (not just min-height) — .activity-main below is
     capped to a consistent 2-line box regardless of actual text length, so
     every row is identically tall whether the username/game name is short
     or long. That's what keeps .activity-list's total height exactly
     constant instead of drifting row to row. */
  height: 42.4px;
  box-sizing: border-box;
  animation: activity-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.activity-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.activity-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@keyframes activity-in {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
    background-color: rgba(62, 224, 143, 0.16);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    background-color: var(--bg-elevated);
  }
}

.activity-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.activity-icon-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.activity-text {
  flex: 1;
  color: var(--text-dim);
  min-width: 0;
}

.activity-text strong { color: var(--text); font-weight: 600; }

.activity-amount {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  min-width: 72px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.activity-amount--loss {
  color: var(--danger);
}

.activity-col {
  min-width: 64px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.activity-bet {
  color: var(--text-dim);
}

.activity-multiplier {
  color: var(--text-dim);
  font-weight: 700;
}

.activity-multiplier--lucky {
  color: var(--gold);
}

.activity-game-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(132, 235, 132, 0.35);
  text-underline-offset: 2px;
}

.activity-game-link:hover {
  text-decoration-color: currentColor;
}

/* Quick facts */
.quick-facts-section { padding-top: 0; padding-bottom: 24px; }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.quick-fact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-fact strong {
  font-size: 1.6rem;
  color: var(--accent);
}

.quick-fact strong span {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}

.quick-fact > span {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.quick-facts-note {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin: 14px 0 0;
  max-width: 640px;
}

/* Table of contents */
.toc-section { padding-top: 0; padding-bottom: 24px; }

.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  margin: 10px 0 0;
  padding: 0;
  counter-reset: toc;
}

.toc-list li {
  list-style: none;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.toc-list a {
  color: var(--text);
  transition: color 0.15s ease;
}

.toc-list a:hover { color: var(--accent); }

/* Step list */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.step-list li {
  list-style: none;
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px 20px 60px;
  position: relative;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #06231a;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list h3 { margin: 0 0 6px; font-size: 1rem; }
.step-list p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* Long-form review copy */
.review-copy {
  margin-top: 36px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-copy h3 {
  margin: 18px 0 2px;
  font-size: 1.05rem;
}

.review-copy h3:first-child { margin-top: 0; }

.review-copy p {
  color: var(--text-dim);
  margin: 0 0 4px;
  font-size: 0.95rem;
}

/* Verdict */
.verdict-card {
  background: linear-gradient(135deg, rgba(62,224,143,0.12), rgba(255,176,32,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: center;
}

.verdict-score {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.verdict-score strong {
  font-size: 3.2rem;
  color: var(--accent);
  line-height: 1;
}

.verdict-score span {
  color: var(--text-dim);
  font-size: 1.1rem;
}

.verdict-copy h2 { margin: 4px 0 10px; font-size: 1.4rem; }
.verdict-copy p { color: var(--text-dim); margin: 0; }

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 1.8rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0;
}

.section-cta {
  margin-top: 32px;
  text-align: center;
}

/* Bonus strip */
.bonus-strip { padding-top: 0; }

.bonus-card {
  background: linear-gradient(135deg, rgba(62,224,143,0.12), rgba(255,176,32,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bonus-card h2 { margin: 4px 0 6px; font-size: 1.5rem; }
.bonus-card p { color: var(--text-dim); margin: 0; }

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.game-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-thumb {
  height: 160px;
  position: relative;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, var(--bg-card)), var(--bg-card));
  overflow: hidden;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  display: block;
}

.game-thumb .tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.45);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.game-card h3 {
  font-size: 0.95rem;
  margin: 14px 14px 2px;
}

.game-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 14px 14px;
}

/* Review */
.fair-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.fair-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.fair-list li {
  padding-left: 22px;
  position: relative;
  color: var(--text-dim);
}

.fair-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.fair-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.fair-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.fair-row:last-child { border-bottom: none; }
.fair-row span { color: var(--text-dim); }
.fair-row code {
  background: var(--bg-elevated);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.fair-row.result code { color: var(--accent); }

/* Pros & cons */
.pros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pros-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.pros-card h3 { margin: 0 0 14px; font-size: 1.05rem; }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  padding-left: 22px;
  position: relative;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.check-list.good li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.check-list.bad li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}

.faq-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  color: var(--text-dim);
  margin: 0 0 18px;
  font-size: 0.92rem;
}

/* Responsible gambling */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.help-card h3 { font-size: 0.95rem; margin: 0 0 8px; }
.help-card p { color: var(--text-dim); font-size: 0.85rem; margin: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 24px 24px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-brand p {
  flex-basis: 100%;
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.footer-grid h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--text); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }

.footer-legal-notice {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-legal-notice h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.footer-legal-notice p {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 0 8px;
}

.footer-legal-notice p:last-child { margin-bottom: 0; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

.footer-lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.78rem;
}

.footer-lang-switch span {
  color: var(--text-dim);
}

.footer-lang-switch a {
  color: var(--text-dim);
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

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

.footer-lang-switch a.active {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .fair-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .verdict-card { flex-direction: column; text-align: center; }
  .step-list li { padding-left: 24px; padding-top: 56px; }
  .step-list li::before { left: 24px; top: 20px; }

  /* Below this width there isn't room for icon + text + 3 numeric columns
     on one line (confirmed by testing — they overlapped). Stack .activity-main
     (icon + text, which can itself wrap to 2 lines) above .activity-stats
     (bet/multiplier/amount, spread across the row) instead. Both
     .activity-item and .activity-list get taller fixed heights to match, so
     the "never changes size" behavior holds at this breakpoint too. */
  .activity-item {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    height: 84px;
    padding: 8px 12px;
  }
  .activity-main {
    height: 42px;
  }
  .activity-stats {
    justify-content: space-between;
    width: 100%;
  }
  .activity-list {
    height: 876px;
  }
}

@media (max-width: 860px) {
  .navbar.open .nav-links,
  .navbar.open .nav-actions {
    display: flex;
  }
  .navbar.open {
    flex-wrap: wrap;
  }
  .navbar.open .nav-links {
    flex-direction: column;
    /* flex-basis 100% + shrink:0, not just `width: 100%` — with only `width`,
       there was still ~118px free on the logo/toggle row, and instead of
       wrapping to its own line the browser shrank this into that leftover
       space, squeezing all 5 links into a narrow column overlapping the
       header row (confirmed via computed layout: nav-links ended up
       118px wide, 176px tall, top-aligned with the header instead of below
       it). flex-shrink: 0 makes it refuse to shrink, forcing the wrap. */
    flex: 1 0 100%;
    order: 3;
    margin: 4px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    gap: 2px;
  }
  .navbar.open .nav-links a {
    display: block;
    padding: 10px 4px;
  }
  .navbar.open .nav-actions {
    order: 4;
    flex: 1 0 100%;
    margin-top: 4px;
    padding-bottom: 4px;
  }
  .navbar.open .nav-actions .btn {
    width: 100%;
    text-align: center;
  }
}
