/* =========================================================
   QuickClash — quickclash.in
   Minimal / flat design system
   ========================================================= */

:root {
  --bg: #050A14;
  --bg-deep: #080F1D;
  --surface: #0C1526;
  --surface-2: #111C31;
  --surface-3: #182A45;
  --line: #1F2C48;
  --line-soft: #141F36;
  --text: #EDF2F9;
  --muted: #9AA9C0;
  --muted-2: #6E7D96;
  --gold: #F0B429;
  --gold-soft: #F7C95C;
  --gold-text: #FFC94D;
  --gold-wash: rgba(255, 201, 77, 0.10);
  --violet: #5B7CFF;
  --violet-wash: rgba(91, 124, 255, 0.12);
  --violet-deep: #1D2B5E;
  --green: #3DD68C;
  --green-wash: rgba(61, 214, 140, 0.10);
  --red: #FF6B81;
  --red-wash: rgba(255, 107, 129, 0.10);
  --blue: #5B9DFF;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1180px;
  --header-h: 72px;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
strong { font-weight: 600; }

::selection { background: var(--gold); color: #07101F; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 300;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--gold);
  color: #07101F;
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: -0.18em;
  flex: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Shared type & layout ---------- */

.section { padding: clamp(72px, 8vw, 120px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.eyebrow--center::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.section-head > div { max-width: 660px; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  letter-spacing: -0.04em;
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.7;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head--center > div { max-width: 620px; }
.section-head--center p { margin-inline: auto; }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.section-link:hover { color: var(--gold-text); border-color: var(--gold-text); }
.section-link .icon { width: 15px; height: 15px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--gold); color: #07101F; }
.btn-primary:hover { background: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: #3A4F75; background: var(--surface); }

.btn-soft {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.btn-soft:hover { border-color: var(--gold-text); color: var(--gold-text); }

.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 0.84rem; }
.btn-lg { min-height: 54px; padding: 0 26px; border-radius: 14px; font-size: 0.98rem; }
.btn-block { width: 100%; }

.btn-tag {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.primary-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.primary-nav a:hover,
.primary-nav a.active { color: var(--text); }
.primary-nav a:hover::after,
.primary-nav a.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-lines { display: grid; gap: 5px; width: 18px; }
.nav-toggle-lines span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: max-height 0.3s ease, border-color 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.is-open {
  max-height: 460px;
  visibility: visible;
  border-bottom-color: var(--line);
}
.mobile-nav-inner {
  display: grid;
  gap: 2px;
  padding: 14px 24px 24px;
}
.mobile-nav-inner > a:not(.btn) {
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-inner > a:not(.btn):hover { color: var(--text); }
.mobile-nav-inner .btn { margin-top: 14px; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 76px) 0 clamp(64px, 7vw, 100px);
}
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-deco .dot-grid {
  position: absolute;
  top: 18px;
  right: -30px;
  width: 430px;
  height: 430px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23243A5C'/%3E%3C/svg%3E");
  opacity: 0.65;
}
.hero-deco .ring {
  position: absolute;
  top: -170px;
  right: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-deco .ring-sm {
  top: auto;
  right: auto;
  left: -220px;
  bottom: -280px;
  width: 460px;
  height: 460px;
  border-color: var(--line-soft);
}
.hero-deco .square {
  position: absolute;
  left: -36px;
  bottom: 12%;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 200, 61, 0.22);
  border-radius: 14px;
  transform: rotate(18deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-copy { max-width: 620px; }

.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(3rem, 6.3vw, 5rem);
  line-height: 0.99;
  letter-spacing: -0.05em;
}
.hero h1 .accent {
  display: inline-block;
  margin-top: 0.08em;
  padding: 0 0.14em 0.05em;
  border-radius: 0.1em;
  background: var(--gold);
  color: #07101F;
  letter-spacing: -0.04em;
}
.hero .lead {
  max-width: 545px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  color: var(--muted-2);
  font-size: 0.78rem;
}
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta .icon { width: 14px; height: 14px; color: var(--green); }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.hero-proof .stars {
  color: var(--gold-text);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.hero-proof p { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.hero-proof strong { color: var(--text); font-weight: 600; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 94%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 200, 61, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero-visual::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 30px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(91, 124, 255, 0.35);
  border-radius: 26px;
  transform: rotate(14deg);
}

.phone {
  position: relative;
  z-index: 2;
  width: min(322px, 78vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface-2);
}
.phone::after {
  content: "";
  position: absolute;
  top: 118px;
  right: -3px;
  width: 3px;
  height: 54px;
  border-radius: 2px;
  background: var(--line);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}
.float-card strong {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}
.fc-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}
.fc-icon .icon { width: 17px; height: 17px; }
.fc-green { background: rgba(61, 214, 140, 0.14); color: var(--green); }
.fc-gold { background: rgba(255, 201, 77, 0.14); color: var(--gold-text); }
.fc-violet { background: var(--violet-wash); color: var(--violet); }

.float-match { top: 13%; left: -120px; }
.float-payout { bottom: 12%; left: -135px; }
.float-fair { top: 47%; right: -110px; }

.float-crown {
  position: absolute;
  top: -26px;
  right: -34px;
  z-index: 5;
  width: 104px;
  height: auto;
  transform: rotate(6deg);
  will-change: transform;
  animation: crown-float 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes crown-float {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-10px); }
}

.meta-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex: none;
}

.feature-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ---------- Stats ---------- */

.stats {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 30px 24px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat strong {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .star { margin-left: 2px; color: var(--gold-text); font-size: 0.68em; }
.stat > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Games ---------- */

.games {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.games-viewport {
  overflow: hidden;
  padding: 8px 0 12px;
}
.games-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.js .games-track { animation: games-marquee 36s linear infinite; }
.games-viewport:hover .games-track,
.games-viewport:focus-within .games-track { animation-play-state: paused; }
.games-group {
  display: flex;
  flex: none;
  gap: 14px;
  padding-right: 14px;
}
.game-tile {
  flex: 0 0 auto;
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
}
.game-tile:hover { transform: translateY(-3px); }
.game-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.game-tile:hover .game-logo {
  border-color: rgba(255, 201, 77, 0.4);
  transform: scale(1.04);
}
.game-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.game-tile h3 {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.game-tile:hover h3,
.game-tile:focus-visible h3 { color: var(--text); }
.games-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.78rem;
}
.games-note .icon { width: 15px; height: 15px; color: var(--green); }
@keyframes games-marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.tag-live {
  color: var(--green);
  border-color: rgba(61, 214, 140, 0.35);
  background: var(--green-wash);
}
.tag-red {
  color: var(--red);
  border-color: rgba(255, 107, 129, 0.35);
  background: var(--red-wash);
}
.tag-gold {
  color: var(--gold-text);
  border-color: rgba(255, 201, 77, 0.35);
  background: var(--gold-wash);
}
.tag-violet {
  color: var(--violet);
  border-color: rgba(91, 124, 255, 0.4);
  background: var(--violet-wash);
}

/* ---------- Earn daily ---------- */

.earn-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.earn-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-radius: var(--radius);
  background: var(--gold-wash);
  overflow: hidden;
}
.earn-art img.earn-bag {
  width: min(250px, 80%);
  height: auto;
}
.earn-stick {
  position: absolute;
  right: 16px;
  bottom: 8px;
  width: 104px;
  height: auto;
  opacity: 0.95;
  pointer-events: none;
}
.earn-copy h2,
.earn-copy h3 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.04em;
}
.earn-copy > p:not(.eyebrow):not(.coin-rate) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
}
.coin-rate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 201, 77, 0.35);
  border-radius: 10px;
  background: var(--gold-wash);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}
.coin-rate .icon { width: 18px; height: 18px; color: var(--gold-text); }
.earn-list {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}
.earn-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.earn-list .icon {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: var(--green);
}
.earn-list strong { color: var(--text); }
.earn-copy .btn { margin-top: 28px; }

/* ---------- Features ---------- */

.features {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: #2E3F60; transform: translateY(-3px); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--violet-wash);
  color: var(--violet);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature-card:nth-child(2) .feature-icon { background: rgba(61, 214, 140, 0.1); color: var(--green); }
.feature-card:nth-child(3) .feature-icon { background: rgba(255, 201, 77, 0.1); color: var(--gold-text); }
.feature-card:nth-child(4) .feature-icon { background: rgba(255, 107, 129, 0.1); color: var(--red); }
.feature-card:nth-child(5) .feature-icon { background: rgba(91, 157, 255, 0.1); color: var(--blue); }
.feature-card:nth-child(6) .feature-icon { background: rgba(255, 201, 77, 0.1); color: var(--gold-text); }
.feature-card h3 { margin-top: 20px; font-size: 1.12rem; letter-spacing: -0.02em; }
.feature-card p { margin-top: 10px; color: var(--muted); font-size: 0.88rem; line-height: 1.68; }

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 200, 61, 0.3);
  border-radius: 10px;
  color: var(--gold-text);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 45px;
  right: -20px;
  width: 20px;
  height: 1px;
  background: var(--line);
}
.step h3 { font-size: 1.06rem; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }

.how-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 22px 26px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.how-cta p { color: var(--muted); font-size: 0.86rem; }
.how-cta strong { color: var(--text); }

/* ---------- Payouts ---------- */

.payouts {
  overflow-x: clip;
}
.payouts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.payout-copy h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  letter-spacing: -0.04em;
}
.payout-copy > p:not(.eyebrow):not(.payout-note) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  max-width: 540px;
}

.payout-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.payout-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.pfc-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--gold);
  flex: none;
}
.pfc-icon .icon { width: 17px; height: 17px; }
.payout-feature-card div { min-width: 0; }
.payout-feature-card strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
}
.payout-feature-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.payout-flow {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.payout-flow-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-text);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.payout-flow-title .icon { width: 14px; height: 14px; }
.payout-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.payout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.payout-step-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #07101F;
  font-size: 0.7rem;
  font-weight: 700;
  flex: none;
}
.payout-step-text strong {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.25;
}
.payout-step-text span {
  display: block;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.3;
}
.payout-step-arrow {
  color: var(--muted-2);
  font-size: 0.84rem;
  flex: none;
}

.payout-supported-apps {
  margin-top: 20px;
}
.psa-label {
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.psa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.psa-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
}
.psa-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot-gpay { background: #4285F4; }
.dot-phonepe { background: #5F259F; }
.dot-paytm { background: #00BAF2; }
.dot-bhim { background: #008444; }
.dot-bank { background: var(--gold); }

.wallet-wrap {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}
.payout-banner {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.wallet {
  position: relative;
  z-index: 2;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5);
}
.wallet-coin {
  position: absolute;
  top: -46px;
  right: -10px;
  z-index: 2;
  width: 104px;
  height: auto;
  transform: rotate(8deg);
}
.wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wallet-label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wallet-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.35);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 600;
}
.wallet-live-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: live-pulse 2s ease-in-out infinite;
}
.wallet-balance-box {
  margin-top: 14px;
}
.wallet-balance {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.wallet-balance small {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
}
.wallet-balance-sub {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
}
.payout-amount-selector {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.amount-pill {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.amount-pill.is-active,
.amount-pill:hover {
  border-color: var(--gold);
  color: var(--gold-text);
  background: rgba(255, 201, 77, 0.08);
}
.payout-recipient-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.recipient-label {
  display: block;
  color: var(--muted-2);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.recipient-vpa {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  font-family: monospace;
  margin-top: 2px;
}
.recipient-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}
.recipient-verified .icon { width: 13px; height: 13px; }
.wallet-btn {
  margin-top: 16px !important;
}

.wallet-tx {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.tx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.live-pulse {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(61, 214, 140, 0.15);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tx {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tx:last-child { border-bottom: 0; }
.tx-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--green);
  flex: none;
}
.tx-icon .icon { width: 14px; height: 14px; }
.tx div { flex: 1; min-width: 0; }
.tx div strong { display: block; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx div > span { color: var(--muted-2); font-size: 0.66rem; }
.tx .paid {
  padding: 3px 8px;
  border: 1px solid rgba(61, 214, 140, 0.3);
  border-radius: 999px;
  background: rgba(61, 214, 140, 0.08);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Tournaments ---------- */

.tournaments {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.matches-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.matches-toolbar p {
  color: var(--muted);
  font-size: 0.84rem;
}
.match-list {
  display: grid;
  border-top: 1px solid var(--line-soft);
}
.match-row {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1.1fr) minmax(110px, 0.8fr) 96px 84px auto;
  align-items: center;
  gap: 16px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.2s ease;
}
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: rgba(255, 255, 255, 0.02); }
.match-row.is-new { animation: row-in 0.28s ease both; }
.match-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.match-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.match-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.match-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.7rem;
}
.match-type {
  color: var(--muted);
  font-size: 0.82rem;
}
.match-prize span {
  display: block;
  color: var(--muted-2);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.match-prize strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.match-entry {
  justify-self: start;
  padding: 4px 9px;
  border: 1px solid rgba(61, 214, 140, 0.35);
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.match-row .btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 0.78rem;
}
.match-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.match-share {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.match-share:hover {
  color: var(--gold-text);
  border-color: var(--gold-text);
  background: var(--surface-2);
}
.match-share .icon { width: 16px; height: 16px; }
.matches-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.matches-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 0.76rem;
  text-align: center;
}
.matches-note .icon { width: 15px; height: 15px; flex: none; color: var(--green); }
@keyframes row-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Community ---------- */

.community-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.community-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 440px;
  overflow: hidden;
  background: var(--surface-2);
}
.community-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23243A5C'/%3E%3C/svg%3E");
  opacity: 0.55;
}
.community-art::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(91, 124, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.community-art img.community-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-bottom: -2px;
  object-fit: contain;
}
.community-art .stickman {
  position: absolute;
  right: 5%;
  bottom: 0;
  z-index: 2;
  width: 118px;
  height: auto;
  pointer-events: none;
}
.community-copy { padding: clamp(32px, 5vw, 64px); }
.community-copy h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  letter-spacing: -0.04em;
}
.community-copy > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
  max-width: 480px;
}
.community-copy .check-list { margin-top: 24px; }
.community-copy .btn { margin-top: 30px; }

/* ---------- Comparison teaser ---------- */

.compare-teaser {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.compare-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.compare-teaser-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.compare-teaser-card .eyebrow::before { display: none; }
.compare-teaser-card h3 {
  margin-top: 14px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.compare-teaser-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.compare-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.compare-teaser-link:hover { color: var(--gold-text); border-color: var(--gold-text); }

/* ---------- Testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.testimonial:hover { border-color: #2E3F60; transform: translateY(-3px); }
.testimonial .stars {
  color: var(--gold-text);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.testimonial blockquote {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.72;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #07101F;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  flex: none;
}
.avatar--violet { background: #A08BFF; }
.avatar--green { background: #55E2A4; }
.testimonial-author div strong { display: block; font-size: 0.82rem; }
.testimonial-author div span { color: var(--muted); font-size: 0.7rem; }

/* ---------- FAQ ---------- */

.faq {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: #2E3F60; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  flex: none;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.faq-icon .icon { width: 13px; height: 13px; }
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--gold-text);
  border-color: rgba(255, 200, 61, 0.4);
}
.faq-answer {
  max-width: 690px;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
}
.faq-answer strong { color: var(--text); }
.faq-cta {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}
.faq-cta a {
  color: var(--gold-text);
  border-bottom: 1px solid rgba(255, 200, 61, 0.4);
}

/* ---------- Final CTA ---------- */

.final-cta { padding: clamp(64px, 7vw, 100px) 0; }
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--violet-deep);
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -100px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}
.cta-panel::after {
  content: "";
  position: absolute;
  bottom: -44px;
  left: -50px;
  width: 140px;
  height: 140px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(18deg);
}
.cta-copy {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 60px);
}
.cta-copy .eyebrow { color: #E9E2FF; }
.cta-copy .eyebrow::before { background: #E9E2FF; }
.cta-copy h2 {
  margin-top: 14px;
  color: #fff;
  font-size: clamp(2.2rem, 4.1vw, 3.35rem);
  letter-spacing: -0.045em;
}
.cta-copy > p:not(.eyebrow):not(.cta-meta) {
  max-width: 460px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.cta-meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}
.cta-art {
  position: relative;
  z-index: 1;
  align-self: end;
  display: flex;
  justify-content: center;
}
.cta-art img {
  width: min(420px, 100%);
  height: auto;
  margin-bottom: -10px;
}

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

.site-footer {
  padding: 64px 0 30px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand img { height: 34px; width: auto; }
.footer-brand p {
  max-width: 310px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}
.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-contact a { transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--gold-text); }
.footer-col h4 {
  margin-bottom: 18px;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a {
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-disclaimer {
  max-width: 1010px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.7;
}
.footer-disclaimer strong { color: var(--muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.72rem;
}
.badge-18 { display: inline-flex; align-items: center; gap: 8px; }
.badge-18 span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
}

/* ---------- Mobile download bar ---------- */

.mobile-download {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-download img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex: none;
}
.mobile-download div { flex: 1; min-width: 0; }
.mobile-download strong { display: block; font-size: 0.78rem; font-weight: 600; }
.mobile-download span { color: var(--muted); font-size: 0.64rem; }
.mobile-download .btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.78rem;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 18px; height: 18px; color: var(--green); }

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

@media (max-width: 1120px) {
  .primary-nav { gap: 22px; }
  .hero-grid { gap: 36px; }
  .float-card,
  .float-crown { display: none; }
}

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { display: block; }

  .features-grid,
  .compare-teaser-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .earn-panel { grid-template-columns: 1fr; }
  .earn-art { min-height: 230px; }

  .match-row {
    grid-template-columns: 46px minmax(130px, 1fr) 90px 80px auto;
  }
  .match-type { display: none; }

  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }

  .payouts-grid { grid-template-columns: 1fr; gap: 56px; }
  .wallet-wrap { justify-self: start; }

  .community-panel { grid-template-columns: 1fr; }
  .community-copy { order: 1; }
  .community-art { order: 2; min-height: 380px; }

  .cta-panel { grid-template-columns: 1fr; }
  .cta-copy { order: 1; }
  .cta-art { order: 2; margin-top: -24px; }
  .cta-art img { width: min(360px, 82%); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .mobile-download { display: flex; }
  body.home,
  body.invite-page { padding-bottom: 72px; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: none; }
  .hero-visual { order: 2; }
  .hero h1 { font-size: clamp(2.9rem, 10vw, 4.2rem); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head--center { align-items: center; }

  .hero-proof { margin-top: 28px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
  .features-grid,
  .compare-teaser-grid,
  .testimonials-grid,
  .how-grid { grid-template-columns: 1fr; }

  .payout-feature-grid { grid-template-columns: 1fr; }
  .payout-steps { flex-direction: column; align-items: stretch; gap: 8px; }
  .payout-step-arrow { display: none; }

  .match-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
  }
  .match-prize { grid-column: 2; }
  .match-entry { grid-column: 2; justify-self: start; }
  .match-row .btn { grid-column: auto; grid-row: auto; }
  .match-actions {
    grid-column: 3;
    grid-row: 1 / span 3;
    flex-direction: column;
    align-self: center;
  }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .how-cta { flex-direction: column; align-items: flex-start; }
  .how-cta .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .float-card,
  .float-crown { display: none; }
  .wallet-coin { top: -36px; right: 8px; width: 86px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }

  .header-actions .btn-primary { display: none; }
  .brand img { height: 26px; }

  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.4rem); }
  .hero-meta { gap: 10px 18px; }
  .hero-proof { flex-wrap: wrap; }
  .phone { width: min(300px, 84vw); }

  .section { padding: 64px 0; }
  .stat { padding: 20px 16px; }
  .stat strong { font-size: 1.7rem; }

  .feature-card,
  .testimonial,
  .compare-teaser-card { padding: 22px; }

  .game-tile { width: 124px; padding: 14px 10px; }
  .game-logo { width: 58px; height: 58px; }
  .game-logo img { width: 48px; height: 48px; }

  .community-copy { padding: 28px 22px 34px; }
  .community-art { min-height: 310px; }

  .cta-copy { padding: 32px 24px; }
  .cta-actions .btn { width: 100%; }
  .cta-meta { font-size: 0.68rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .wallet { padding: 22px; }
  .wallet-balance { font-size: 2.2rem; }
  .match-row .btn { padding: 0 10px; font-size: 0.72rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 2.42rem; }
  .phone { width: min(300px, 100%); }
  .btn { padding-inline: 16px; }
}

/* ---------- Comparison page ---------- */

.compare-hero {
  padding: clamp(52px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.compare-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: end;
  gap: clamp(28px, 5vw, 64px);
}
.compare-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.7rem, 5.4vw, 4.3rem);
  letter-spacing: -0.05em;
}
.compare-hero .lead {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}
.compare-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.compare-highlights { display: grid; gap: 10px; }
.compare-highlights div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.86rem;
  line-height: 1.55;
}
.compare-highlights .icon {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  flex: none;
  color: var(--green);
}
.compare-highlights strong { color: var(--text); }
.compare-highlights span { color: var(--muted); }

.compare-table-section {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.compare-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.compare-table th,
.compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.compare-table thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}
.compare-table tbody th {
  width: 150px;
  background: var(--surface);
  font-weight: 600;
  color: var(--text);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .qc-col { background: var(--gold-wash); }
.compare-table thead .qc-col { background: rgba(255, 201, 77, 0.14); }
.compare-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.72rem;
}
.compare-legend {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.7;
}
.compare-legend a { color: var(--violet); border-bottom: 1px solid rgba(91, 124, 255, 0.4); }

.reason-grid,
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.reason-card,
.pick-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.reason-card .eyebrow::before { display: none; }
.reason-card h3,
.pick-card h3 {
  margin-top: 12px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.reason-card p,
.pick-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}
.pick-card .tag { margin-bottom: 14px; }

.compare-sources {
  padding-bottom: clamp(56px, 6vw, 88px);
}
.source-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.source-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
}
.source-list a:hover { border-color: var(--gold-text); }
.source-list .icon { width: 16px; height: 16px; color: var(--muted-2); }

@media (max-width: 980px) {
  .compare-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .reason-grid,
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .reason-grid,
  .pick-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */

.legal-main { padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 8vw, 110px); }
.legal-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.legal-head h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.045em;
}
.legal-head p { color: var(--muted); font-size: 1rem; line-height: 1.72; }
.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 2px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.legal-toc p {
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.legal-toc a {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}
.legal-toc a:last-child { margin-top: 6px; border-bottom: 0; color: var(--gold-text); }
.legal-toc a:hover { color: var(--text); }
.legal-content { max-width: 760px; }
.legal-content section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-content section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.legal-content h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
}
.legal-content h3 {
  margin: 26px 0 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal-content p,
.legal-content li { color: var(--muted); font-size: 0.88rem; line-height: 1.75; }
.legal-content p + p { margin-top: 12px; }
.legal-content ul {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-left: 18px;
  list-style: disc;
}
.legal-content a {
  color: var(--gold-text);
  border-bottom: 1px solid rgba(255, 200, 61, 0.35);
}
.legal-callout {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(255, 200, 61, 0.25);
  border-radius: 14px;
  background: rgba(255, 200, 61, 0.05);
}
.legal-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
}
.legal-callout p { font-size: 0.78rem; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; grid-template-columns: 1fr 1fr; }
  .legal-toc p { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .legal-toc { grid-template-columns: 1fr; }
  .legal-head h1 { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}



/* ==============================================================================
   Host Page, Game Pages, Social Components & 404 Styles
   ============================================================================== */

/* ---------- Social Components ---------- */
.footer-social-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.footer-social-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.footer-social-pill .icon { width: 16px; height: 16px; flex: none; }
.footer-social-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold-text);
}
.pill-telegram:hover { border-color: #2AABEE; color: #2AABEE; }
.pill-youtube:hover { border-color: #FF0000; color: #FF0000; }
.pill-instagram:hover { border-color: #E1306C; color: #E1306C; }
.pill-support:hover { border-color: var(--green); color: var(--green); }

/* ---------- Contact & Social Page Grid ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.social-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.social-card:hover {
  border-color: rgba(255, 201, 77, 0.4);
  transform: translateY(-3px);
}
.social-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.social-icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}
.social-icon-box .icon { width: 24px; height: 24px; }
.box-telegram { background: rgba(42, 171, 238, 0.12); color: #2AABEE; }
.box-support { background: rgba(61, 214, 140, 0.12); color: var(--green); }
.box-youtube { background: rgba(255, 0, 0, 0.12); color: #FF4E4E; }
.box-instagram { background: rgba(225, 48, 108, 0.12); color: #E1306C; }

.social-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-live { background: rgba(61, 214, 140, 0.12); border: 1px solid rgba(61, 214, 140, 0.3); color: var(--green); }
.badge-updates { background: rgba(42, 171, 238, 0.12); border: 1px solid rgba(42, 171, 238, 0.3); color: #2AABEE; }
.badge-video { background: rgba(255, 0, 0, 0.12); border: 1px solid rgba(255, 0, 0, 0.3); color: #FF4E4E; }
.badge-photo { background: rgba(225, 48, 108, 0.12); border: 1px solid rgba(225, 48, 108, 0.3); color: #E1306C; }

.social-card h3 {
  margin-top: 18px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.social-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.social-handle-text {
  display: block;
  margin-top: 14px;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.social-card .btn { margin-top: 22px; width: 100%; }

/* ---------- Host Page ---------- */
.host-hero {
  padding: clamp(52px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.host-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.host-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.host-perk-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.host-perk-card .icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  margin-bottom: 14px;
}
.host-perk-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.host-perk-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.host-form-wrap {
  margin-top: 48px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 840px;
  margin-inline: auto;
}
.host-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.form-group-full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}
.form-control,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.15);
}
.form-textarea { min-height: 100px; resize: vertical; }

/* ---------- Game Landing Pages (Free Fire & BGMI) ---------- */
.game-hero {
  padding: clamp(52px, 6vw, 84px) 0 clamp(40px, 5vw, 60px);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.game-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.game-hero-art {
  display: flex;
  justify-content: center;
}
.game-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mode-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.mode-card-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--gold-text);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}
.mode-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.mode-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ---------- 404 Page ---------- */
.error-hero {
  padding: clamp(72px, 10vw, 130px) 0;
  text-align: center;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--gold);
}
.error-hero h1 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}
.error-hero p {
  margin: 16px auto 32px;
  max-width: 480px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 980px) {
  .host-hero-grid,
  .game-hero-grid { grid-template-columns: 1fr; }
  .host-perks-grid,
  .game-modes-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .host-perks-grid,
  .game-modes-grid { grid-template-columns: 1fr; }
  .host-form-grid { grid-template-columns: 1fr; }
  .footer-social-row { flex-direction: column; align-items: stretch; }
  .footer-social-pill { justify-content: center; }
}

/* ---------- Deep link landing page ---------- */

.deeplink-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 50% 0%, #0E1B33 0%, var(--bg) 52%, #03060C 100%);
  overflow-x: hidden;
}
.dl-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.dl-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.dl-orb-a {
  width: 420px; height: 420px;
  top: -120px; left: -120px;
  background: rgba(240, 180, 41, 0.16);
}
.dl-orb-b {
  width: 480px; height: 480px;
  bottom: -170px; right: -150px;
  background: rgba(91, 124, 255, 0.18);
}
.dl-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0, transparent 72%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0, transparent 72%);
}
.dl-main {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin: auto;
  padding: 32px 18px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dl-card {
  width: 100%;
  padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(17, 28, 49, 0.97), rgba(9, 16, 30, 0.99));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.dl-brand { display: inline-flex; align-items: center; justify-content: center; }
.dl-brand img { height: 32px; width: auto; }
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 6px 12px;
  border: 1px solid rgba(61, 214, 140, 0.3);
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.dl-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.5);
  animation: dl-pulse 1.8s ease-out infinite;
}
.dl-spinner {
  width: 46px; height: 46px;
  margin: 26px auto 4px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: dl-spin 0.9s linear infinite;
}
.dl-card h1 {
  margin-top: 16px;
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  letter-spacing: -0.03em;
}
.dl-sub {
  margin: 10px auto 0;
  max-width: 340px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}
.dl-context {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.dl-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--gold-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
}
.dl-actions { display: grid; gap: 10px; margin-top: 26px; }
.dl-actions .btn { width: 100%; }
.dl-hint {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.55;
}
.dl-share {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.dl-share-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dl-share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dl-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.dl-share-btn:hover { color: var(--gold-text); border-color: var(--gold-text); }
.dl-share-btn .icon { width: 14px; height: 14px; }
.dl-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 0.74rem;
}
.dl-foot a { color: var(--muted); }
.dl-foot a:hover { color: var(--gold-text); }

@keyframes dl-spin { to { transform: rotate(360deg); } }
@keyframes dl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

/* ---------- Invite page ---------- */

.invite-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 clamp(48px, 6vw, 76px);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.invite-hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.14), transparent 65%);
  pointer-events: none;
}
.invite-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.invite-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.7rem, 5.6vw, 4.5rem);
  letter-spacing: -0.05em;
}
.invite-hero h1 .accent {
  display: inline-block;
  margin-top: 0.08em;
  padding: 0 0.14em 0.05em;
  border-radius: 0.1em;
  background: var(--gold);
  color: #07101F;
  letter-spacing: -0.04em;
}
.invite-hero .lead {
  margin-top: 20px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}
.invite-hero .hero-cta { margin-top: 28px; }
.invite-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
}
.invite-art-glow {
  position: absolute;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 124, 255, 0.22), transparent 68%);
  filter: blur(18px);
}
.invite-art-img {
  position: relative;
  z-index: 1;
  width: min(370px, 82%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.invite-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 21, 38, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: left;
}
.invite-float-a { top: 8%; left: -4%; }
.invite-float-b { right: -4%; bottom: 9%; }
.invite-float-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--violet-wash);
  color: var(--violet);
  flex: none;
}
.invite-float-icon.is-gold { background: var(--gold-wash); color: var(--gold-text); }
.invite-float-icon .icon { width: 17px; height: 17px; }
.invite-float strong { display: block; font-size: 0.76rem; font-weight: 600; }
.invite-float small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.65rem;
  white-space: nowrap;
}

.builder-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.builder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.builder-tab {
  flex: 1 1 120px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.builder-tab:hover { color: var(--text); }
.builder-tab.is-active { background: var(--gold); color: #07101F; }
.builder-fields { display: grid; gap: 18px; margin-top: 24px; }
.builder-field { display: grid; gap: 8px; }
.builder-field label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}
.builder-optional {
  margin-left: 6px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.builder-help {
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.5;
}
.builder-error {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 129, 0.35);
  border-radius: 9px;
  background: var(--red-wash);
  color: var(--red);
  font-size: 0.76rem;
}
.builder-output {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg-deep);
}
.builder-output-label {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.builder-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.builder-link-icon { display: inline-flex; color: var(--gold-text); flex: none; }
.builder-link-icon .icon { width: 17px; height: 17px; }
.builder-link-box code {
  min-width: 0;
  color: var(--gold-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.builder-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.builder-actions .btn { flex: 1 1 110px; }
.builder-open { margin-top: 2px; }
.builder-note {
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.55;
}

.link-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.link-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.link-table th,
.link-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-size: 0.84rem;
}
.link-table th {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.link-table td { color: var(--muted); }
.link-table tr:last-child td { border-bottom: 0; }
.link-table code {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--gold-text);
  font-size: 0.76rem;
}

/* ---------- Invite teaser (home) ---------- */

.invite-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(240, 180, 41, 0.08), transparent 58%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  overflow: hidden;
}
.invite-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.04em;
}
.invite-copy > p {
  margin-top: 16px;
  max-width: 480px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
.invite-copy .check-list { margin-top: 20px; display: grid; gap: 12px; }
.invite-copy .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}
.invite-copy .check-list .icon { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.invite-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.invite-card {
  align-self: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-deep);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.invite-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.invite-code {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-text);
}
.invite-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 8px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.invite-link-box .icon { width: 15px; height: 15px; color: var(--muted-2); flex: none; }
.invite-link-box code {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}
.invite-link-box button {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.invite-link-box button:hover { color: var(--gold-text); border-color: var(--gold-text); }
.invite-link-box button .icon { width: 15px; height: 15px; }
.invite-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.invite-share-row .btn { flex: 1 1 120px; }
.invite-note {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.55;
}

/* ---------- Share sheet ---------- */

.qc-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.qc-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.qc-sheet-panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: qc-sheet-in 0.22s ease both;
}
.qc-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.qc-sheet-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-text);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.qc-sheet-head h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.qc-sheet-close {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.qc-sheet-close:hover { color: var(--text); border-color: #3A4F75; }
.qc-sheet-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.qc-sheet-link-icon { display: inline-flex; color: var(--gold-text); flex: none; }
.qc-sheet-link-icon svg { width: 16px; height: 16px; }
.qc-sheet-link code {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.qc-sheet-copy {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex: none;
}
.qc-sheet-copy:hover { color: var(--gold-text); border-color: var(--gold-text); }
.qc-sheet-copy svg { width: 15px; height: 15px; }
.qc-sheet-copy-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}
.qc-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.qc-share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.qc-share-option:hover { border-color: var(--gold-text); transform: translateY(-2px); }
.qc-share-ic {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
}
.qc-share-ic.is-whatsapp { background: rgba(37, 211, 102, 0.12); color: #25D366; }
.qc-share-ic.is-telegram { background: rgba(42, 171, 238, 0.12); color: #2AABEE; }
.qc-share-ic svg { width: 16px; height: 16px; }
.qc-sheet-open { margin-top: 14px; }
.qc-sheet-note {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}
body.qc-sheet-open { overflow: hidden; }
.qc-toast { z-index: 420; }
.qc-toast-icon { display: inline-flex; color: var(--green); }
.qc-toast-icon svg { width: 18px; height: 18px; }

@keyframes qc-sheet-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Deep link / invite responsive ---------- */

@media (max-width: 980px) {
  .invite-hero-grid,
  .builder-panel,
  .invite-panel { grid-template-columns: 1fr; }
  .invite-hero-art { order: 2; min-height: 330px; }
  .invite-float-a { left: 0; }
  .invite-float-b { right: 0; }
  .builder-output { order: 2; }
}

@media (min-width: 700px) {
  .qc-sheet { align-items: center; }
}

@media (max-width: 700px) {
  .invite-float { display: none; }
  .invite-art-img { width: min(320px, 88%); }
  .builder-actions .btn { flex: 1 1 calc(50% - 8px); }
  .qc-sheet-grid { grid-template-columns: repeat(2, 1fr); }
  .invite-panel { padding: 26px 20px; }
  .legal-body .header-actions .btn {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.68rem;
  }
}

@media (max-width: 560px) {
  .invite-hero h1 { font-size: clamp(2.4rem, 12vw, 3.1rem); }
  .invite-hero-art { min-height: 280px; }
  .invite-code { font-size: 1.9rem; }
  .builder-panel { padding: 20px; }
  .builder-output { padding: 18px; }
  .builder-tabs { flex-direction: column; }
  .dl-main { padding: 20px 12px 32px; }
  .dl-card { border-radius: 20px; }
  .dl-share-row { flex-direction: column; }
  .dl-share-btn { justify-content: center; }
  .legal-body .header-actions { display: none; }
}

/* ---------- Performance & Rendering Optimizations ---------- */
.community-section,
.faq-section,
.site-footer,
.host-perks-section,
.game-modes-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}
