:root {
  --bg: #0b0b14;
  --bg-elevated: #14141f;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f7;
  --text-muted: #a1a1b2;
  --pink: #ff2e8f;
  --purple: #7b2ff7;
  --cyan: #00c2ff;
  --gradient: linear-gradient(135deg, var(--pink), var(--purple));
  --max-width: 1080px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .logo {
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--card-border);
  background: rgba(11, 11, 20, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero / Counter ---------- */

.hero {
  padding: 56px 0 32px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(123, 47, 247, 0.18), transparent 60%);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 8px;
  font-weight: 700;
}

.hero__sub {
  color: var(--text-muted);
  margin: 0 0 32px;
}

.counter-card {
  max-width: 480px;
  margin: 0 auto 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px 20px;
}

.counter-card__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #27e07c;
  box-shadow: 0 0 0 0 rgba(39, 224, 124, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 224, 124, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(39, 224, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 224, 124, 0); }
}

.counter-card__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.counter-value {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.counter-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sparkline {
  width: 100%;
  height: 60px;
  display: block;
}

.sparkline polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.counter-disclaimer {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.platform-grid {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.platform-card {
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
}

.platform-card__name {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.platform-card__count {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.platform-card__bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.platform-card__bar span {
  display: block;
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 0.6s ease;
}

.platform-note {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Generic sections ---------- */

.section {
  padding: 48px 0;
  border-top: 1px solid var(--card-border);
}

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 20px;
  text-align: center;
}

.stats-section .container {
  text-align: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

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

.stat-box span {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
}

.stat-box label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-section p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  text-align: center;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 28px 0 40px;
  text-align: center;
}

.footer-disclaimer {
  max-width: 640px;
  margin: 0 auto 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Activity map ---------- */

.map-section .container {
  text-align: center;
}

.map-disclaimer {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.map-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
}

#activity-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-dot {
  fill: rgba(180, 150, 255, 0.28);
}

.map-marker-core {
  fill: #ffffff;
}

.map-marker-ping {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2;
}

.map-legend {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: left;
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.map-legend__swatch {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
}

.map-legend__name {
  flex: 1;
  color: var(--text);
}

.map-legend__share {
  color: var(--cyan);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

.map-legend li.map-legend__rest {
  opacity: 0.7;
}

.map-legend li.map-legend__rest .map-legend__swatch {
  background: var(--text-muted);
}

@media (max-width: 640px) {
  .map-legend {
    grid-template-columns: 1fr;
  }
}

/* ---------- Notice banner (cookies / fan disclaimer) ---------- */

body.has-notice {
  padding-bottom: 96px;
}

.notice-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-elevated);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  padding: 14px 20px;
}

.notice-banner[hidden] {
  display: none;
}

.notice-banner p {
  margin: 0;
  max-width: 760px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.notice-banner strong {
  color: var(--text);
}

.notice-banner__btn {
  flex-shrink: 0;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- Ad component ---------- */

.ad-slot {
  display: flex;
  justify-content: center;
  padding: 20px 20px;
}

.ad-slot[hidden] {
  display: none;
}

.ad-card {
  --ad-ratio: 600 / 150;
  width: 100%;
  max-width: 600px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-card--top,
.ad-card--bottom {
  max-width: 600px;
  flex-direction: row;
  align-items: center;
}

.ad-card--middle {
  max-width: 420px;
}

.ad-card__label {
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

.ad-card__media {
  display: block;
  flex: 0 0 140px;
  width: 140px;
  aspect-ratio: var(--ad-ratio);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.ad-card--middle .ad-card__media {
  flex-basis: auto;
  width: 100%;
  margin-top: 10px;
}

.ad-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ad-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-card--middle .ad-card__body {
  text-align: center;
  align-items: center;
}

.ad-card__title {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}

.ad-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.ad-card__cta {
  margin-top: 6px;
  align-self: flex-start;
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.ad-card--middle .ad-card__cta {
  align-self: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    padding: 12px 20px;
    gap: 14px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

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

  .stat-row {
    grid-template-columns: 1fr;
  }

  .ad-card--top,
  .ad-card--bottom {
    flex-direction: column;
    text-align: center;
  }

  .ad-card--top .ad-card__media,
  .ad-card--bottom .ad-card__media {
    width: 100%;
    flex-basis: auto;
  }

  .ad-card--top .ad-card__body,
  .ad-card--bottom .ad-card__body {
    align-items: center;
    text-align: center;
  }

  .ad-card--top .ad-card__cta,
  .ad-card--bottom .ad-card__cta {
    align-self: center;
  }
}
