* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg: #05060a;
  --panel: rgba(8, 11, 20, 0.96);
  --panel-strong: rgba(6, 9, 16, 0.98);
  --text: #e6f6ff;
  --muted: #8aa0c6;
  --lime: #7cff6b;
  --magenta: #ff3fd1;
  --cyan: #45d9ff;
  --glow: 0 0 25px rgba(124, 255, 107, 0.5);
}

body {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

.neon-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(5, 6, 10, 0.82), rgba(5, 6, 10, 0.88)),
    url("images/bg-reward.png"),
    linear-gradient(transparent 0 96%, rgba(69, 217, 255, 0.12) 96%),
    linear-gradient(90deg, transparent 0 96%, rgba(255, 63, 209, 0.12) 96%);
  background-size: cover, cover, 60px 60px, 60px 60px;
  background-position: center, center, center, center;
  background-blend-mode: normal, normal, normal, normal;
  opacity: 0.95;
  z-index: -1;
}

/* Header: logo + hamburger + 18+ & 2 regulators */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6vw;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  display: block;
  line-height: 0;
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: block;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(124, 255, 107, 0.2);
}
.regulator-wrap {
  padding: 6px 10px;
}
.regulator-wrap img {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(69, 217, 255, 0.4));
}
.rank-logo-wrap {
  width: 72px;
  height: 44px;
  flex-shrink: 0;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(124, 255, 107, 0.15);
}
.rank-logo-wrap .rank-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.header-right img {
  height: 26px;
  filter: drop-shadow(0 0 6px rgba(69, 217, 255, 0.4));
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.header-nav a:hover {
  color: var(--lime);
}

.age {
  border: 1px solid var(--lime);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--lime);
  font-size: 0.85rem;
}

/* Hero full-width */
.hero-full {
  padding: 48px 6vw 36px;
  text-align: center;
  position: relative;
}
.hero-full::before {
  content: "";
  position: absolute;
  inset: 20px 10%;
  background: radial-gradient(ellipse at center, var(--panel) 0%, transparent 75%);
  border-radius: 24px;
  z-index: -1;
  pointer-events: none;
}
.hero-full h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.hero-full p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

button {
  font: inherit;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  border: none;
}

.btn-glow {
  background: var(--magenta);
  color: #0a0310;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(255, 63, 209, 0.5);
  border-radius: 999px;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.btn-link {
  padding: 12px 22px;
  border-radius: 999px;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-overlay[hidden] {
  display: none;
  pointer-events: none;
}
.modal-box {
  background: var(--panel-strong);
  border: 1px solid rgba(255, 63, 209, 0.35);
  border-radius: 18px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 63, 209, 0.15);
}
.modal-box h2 { margin-bottom: 12px; font-size: 1.25rem; }
.modal-box p { color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.modal-box a { color: var(--cyan); text-decoration: none; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-content {
  padding: 40px 6vw 60px;
  max-width: 900px;
}
.page-content h1 { margin-bottom: 16px; }
.page-content h2 { margin: 24px 0 12px; font-size: 1.1rem; }
.page-content p { color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.page-content a { color: var(--cyan); text-decoration: none; }
.content-narrow { max-width: 680px; }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 6vw 32px;
  text-align: center;
}
.stats-bar .stat {
  padding: 20px 16px;
  border: 1px solid rgba(69, 217, 255, 0.2);
  border-left: none;
  background: var(--panel-strong);
  font-size: 0.9rem;
  color: var(--muted);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.stats-bar .stat:first-child {
  border-left: 1px solid rgba(69, 217, 255, 0.2);
  border-radius: 12px 0 0 12px;
}
.stats-bar .stat:last-child {
  border-radius: 0 12px 12px 0;
}
.stat-num {
  display: block;
  color: var(--lime);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Ranking: horizontal rows */
.ranking {
  padding: 0 6vw 40px;
}
.ranking h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.rank-list-h {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 64px 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: var(--panel-strong);
  border-radius: 16px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 63, 209, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.rank-row:hover {
  box-shadow: 0 0 20px rgba(255, 63, 209, 0.2);
}

.rank-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--magenta);
  line-height: 1;
}

.rank-logo {
  height: 36px;
  width: auto;
  max-width: 100%;
}
a.btn-glow {
  display: inline-block;
  text-decoration: none;
  color: #0a0310;
  text-align: center;
  padding: 12px 22px;
}

.rank-info h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.rank-info p {
  font-size: 0.85rem;
  color: var(--muted);
}
.rank-info .card-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.9;
}

.rank-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.score {
  font-size: 1.1rem;
  color: var(--lime);
}
.dots {
  display: flex;
  gap: 3px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(138, 160, 198, 0.4);
}
.dot.on {
  background: var(--magenta);
  box-shadow: 0 0 8px rgba(255, 63, 209, 0.6);
}

/* Bonus lab */
.bonus-lab {
  padding: 32px 6vw;
}
.bonus-lab h2 {
  margin-bottom: 18px;
}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.bonus-card {
  border: 1px dashed rgba(124, 255, 107, 0.4);
  padding: 18px;
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Responsible */
.responsible {
  padding: 32px 6vw 40px;
  border-top: 1px solid rgba(69, 217, 255, 0.2);
}
.responsible h2 {
  margin-bottom: 12px;
}
.responsible p {
  color: var(--muted);
  margin-bottom: 16px;
}
.responsible-links {
  display: flex;
  gap: 16px;
}
.responsible-links a {
  color: var(--cyan);
  text-decoration: none;
}

/* Minimal footer: one line */
.footer-min {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 6vw;
  border-top: 1px solid rgba(255, 63, 209, 0.2);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-min a {
  color: var(--cyan);
  text-decoration: none;
}
.footer-min .copy {
  margin-left: 8px;
}

@media (max-width: 900px) {
  .rank-row {
    grid-template-columns: 40px 56px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }
  .rank-row .rank-score {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
  }
  .rank-row .btn-glow {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: start;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .stats-bar .stat:first-child {
    border-radius: 12px 12px 0 0;
    border-left: 1px solid rgba(69, 217, 255, 0.2);
  }
  .stats-bar .stat:last-child {
    border-radius: 0 0 12px 12px;
    border-left: 1px solid rgba(69, 217, 255, 0.2);
  }
}

@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-nav {
    width: 100%;
    order: 3;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .header-right img {
    display: none;
  }
  .header-right .regulator-wrap {
    display: none;
  }
  .rank-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
  }
  .rank-row .rank-logo {
    grid-column: 1;
    grid-row: 1;
  }
  .rank-row .rank-info {
    grid-column: 2;
    grid-row: 1;
  }
  .rank-row .rank-score {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .rank-row .btn-glow {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}
