/* BePOP web — shared styles (public pages and admin). Dark, premium, mobile-first. */

:root {
  color-scheme: dark;
  --bg: #07070B;
  --surface: #111118;
  --surface-2: #191922;
  --surface-3: #22222D;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #F5F5FA;
  --muted: #9A9AAD;
  --faint: #5E5E70;
  --pink: #FF3D8B;
  --violet: #8B5CFF;
  --cyan: #2EE6FF;
  --gold: #FFD66B;
  --success: #3BE38B;
  --danger: #FF4D5E;
  --warn: #FFB547;
  --brand: linear-gradient(120deg, #FF3D8B 0%, #8B5CFF 52%, #2EE6FF 100%);
  --brand-soft: linear-gradient(120deg, rgba(255, 61, 139, 0.18), rgba(139, 92, 255, 0.18) 52%, rgba(46, 230, 255, 0.18));
  --glass: rgba(17, 17, 24, 0.66);
  --glass-strong: rgba(20, 20, 28, 0.86);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --gutter: 16px;
  --maxw: 1140px;
  --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Ambient brand glow behind everything */
body::before {
  content: '';
  position: fixed;
  inset: -20vh -20vw auto;
  height: 90vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vw 40vh at 15% 20%, rgba(255, 61, 139, 0.16), transparent 70%),
    radial-gradient(45vw 45vh at 55% 0%, rgba(139, 92, 255, 0.18), transparent 70%),
    radial-gradient(40vw 40vh at 90% 25%, rgba(46, 230, 255, 0.12), transparent 70%);
  filter: blur(10px);
}

main { flex: 1 0 auto; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
::selection { background: rgba(139, 92, 255, 0.45); }

.ico { display: inline-block; flex: none; vertical-align: middle; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hidden, [hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.grad-text {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }

/* i18n: avoid a flash of English before the Russian strings are applied */
/* (revealed after 1.5 s anyway, so a failed script never leaves the page blank) */
html[lang='ru']:not(.i18n-ready) [data-i18n] { visibility: hidden; animation: i18n-reveal 0s linear 1.5s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }
html[lang='ru'] [data-lang='en'],
html:not([lang='ru']) [data-lang='ru'] { display: none !important; }

/* ---------------------------------------------------------------------------------------------
   Header & footer
   --------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font-display); letter-spacing: -0.02em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 24px rgba(139, 92, 255, 0.45); }
.logo b { font-weight: 800; }
.logo span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover, .nav__link[aria-current='page'] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  font: 700 11px/1 var(--font-display);
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-switch button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.12); color: var(--text); }
@media (max-width: 559px) {
  .hide-sm { display: none !important; }
  .logo { font-size: 18px; }
  .logo img { width: 30px; height: 30px; }
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 17, 24, 0.4), rgba(7, 7, 11, 0));
  padding: 40px 0 32px;
  font-size: 14px;
}
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 2fr; align-items: start; } }
.footer-brand p { color: var(--muted); margin: 10px 0 0; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 768px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
}
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 8px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--muted);
  font: 700 11px/1.4 var(--font-display);
}

/* ---------------------------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------------------------- */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font: 600 15px/1.2 var(--font-text);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: rgba(255, 255, 255, 0.11); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled], .btn.is-busy { opacity: 0.5; cursor: not-allowed; }
.btn--primary {
  border: 0;
  background: var(--brand);
  background-size: 140% 140%;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { background: var(--brand); background-position: 100% 0; box-shadow: 0 14px 36px -10px rgba(255, 61, 139, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn--xs { min-height: 30px; padding: 5px 11px; font-size: 13px; }
.btn--danger { border-color: rgba(255, 77, 94, 0.55); background: rgba(255, 77, 94, 0.16); color: #FFB1B8; }
.btn--danger:hover { background: rgba(255, 77, 94, 0.2); }
.btn--success { border-color: rgba(59, 227, 139, 0.4); background: rgba(59, 227, 139, 0.1); color: #8FF3BD; }
.btn--ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.btn--block { width: 100%; }

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 16px;
  min-height: 58px;
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 16px 40px -18px rgba(46, 230, 255, 0.55);
  transition: transform 0.15s ease, border-color 0.2s, box-shadow 0.2s;
}
.play-btn:hover { border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 18px 44px -16px rgba(139, 92, 255, 0.7); }
.play-btn:active { transform: translateY(1px); }
.play-btn__text { display: grid; line-height: 1.1; text-align: left; }
.play-btn__text small { font: 600 10px/1.2 var(--font-text); letter-spacing: 0.08em; opacity: 0.85; }
.play-btn__text strong { font: 600 21px/1.1 var(--font-text); letter-spacing: -0.01em; }

/* ---------------------------------------------------------------------------------------------
   Surfaces & type
   --------------------------------------------------------------------------------------------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}
.card { padding: 20px; }
@media (min-width: 768px) { .card { padding: 26px; } }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E9E4FF;
  font: 600 12px/1.3 var(--font-text);
  letter-spacing: 0.02em;
}
.section { padding: 56px 0 0; }
@media (min-width: 768px) { .section { padding-top: 96px; } }
.section__head { max-width: 720px; margin-bottom: 28px; }
.section__head h2 { font-size: clamp(26px, 5vw, 40px); margin: 14px 0 12px; }
.section__head p { color: var(--muted); font-size: 17px; margin: 0; }
.page-head { padding: 28px 0 8px; }
@media (min-width: 768px) { .page-head { padding: 48px 0 12px; } }
.page-head h1 { font-size: clamp(30px, 7vw, 52px); }
.page-head p { color: var(--muted); margin: 10px 0 0; font-size: 17px; }

/* ---------------------------------------------------------------------------------------------
   Tier visuals: chip, avatar ring, aura bar (colours come from tiers.js applyTier → --t-*)
   --------------------------------------------------------------------------------------------- */
.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-pill);
  background: var(--t-grad);
  background-size: 160% 160%;
  color: var(--t-ink);
  font: 600 12px/1 var(--font-display);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tier-chip.t-glowing { box-shadow: 0 0 16px -2px var(--t-glow); }
.tier-chip.t-animated { animation: sheen 5s ease-in-out infinite; }
.tier-chip--sm { padding: 3px 8px 3px 6px; font-size: 9.5px; gap: 3px; }

.avatar {
  --size: 48px;
  position: relative;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: inline-block;
}
.avatar.t-glowing { box-shadow: 0 0 calc(var(--size) / 3) calc(var(--size) / -14) var(--t-glow); }
.avatar__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--t-conic);
}
.avatar.t-animated .avatar__ring { animation: spin 4s linear infinite; }
.avatar__img {
  position: absolute;
  inset: max(2px, calc(var(--size) * 0.06));
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2A2A38, var(--surface-2));
  border: max(2px, calc(var(--size) * 0.03)) solid var(--bg);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.avatar__img img { width: 100%; height: 100%; object-fit: cover; }
.avatar__initial { font: 800 calc(var(--size) * 0.36) / 1 var(--font-display); color: var(--text); }
.avatar__crown {
  position: absolute;
  left: 50%;
  top: calc(var(--size) * -0.26);
  transform: translateX(-50%) rotate(-10deg);
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(255, 214, 107, 0.75));
}

.aura-bar { padding: 18px; display: grid; gap: 14px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .aura-bar { padding: 22px 24px; } }
.aura-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--t-mid) 14%, transparent), transparent 60%);
  pointer-events: none;
}
.aura-bar.t-glowing { box-shadow: 0 0 48px -10px var(--t-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.aura-bar__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: relative; }
.aura-bar__total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.aura-bar__value { font: 800 clamp(26px, 7vw, 38px) / 1 var(--font-display); letter-spacing: -0.02em; }
.aura-bar__unit { color: var(--muted); font-size: 13px; font-weight: 500; }
.aura-bar__track { position: relative; height: 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); }
.aura-bar__fill {
  position: relative;
  height: 100%;
  min-width: 16px;
  border-radius: var(--r-pill);
  background: var(--t-bar);
  overflow: hidden;
  box-shadow: 0 0 16px -2px var(--t-glow);
  animation: grow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: left center;
}
.aura-bar__fill::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: shimmer 2.6s ease-in-out infinite;
}
.aura-bar.t-animated .aura-bar__fill::after { animation-duration: 1.5s; }
.aura-bar__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 500; position: relative; }
.aura-bar__next { display: inline-flex; align-items: center; gap: 7px; }
.aura-bar__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.aura-bar__pct { font-size: 12px; color: var(--text); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { transform: translateX(-80px); } 100% { transform: translateX(calc(100vw)); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------------------------------
   Landing
   --------------------------------------------------------------------------------------------- */
.hero { padding: 24px 0 0; }
@media (min-width: 768px) { .hero { padding-top: 56px; } }
.hero__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.hero h1 { font-size: clamp(36px, 9vw, 72px); font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 18px; line-height: 1.04; }
.hero h1 span { display: block; }
.hero__lead { font-size: clamp(16px, 2.4vw, 19px); color: #C9C9D8; max-width: 56ch; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { margin-top: 18px; color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.ladder { position: relative; padding: 18px; }
@media (min-width: 768px) { .ladder { padding: 24px; } }
.ladder::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 61, 139, 0.6), rgba(139, 92, 255, 0.25) 40%, rgba(46, 230, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.ladder__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ladder__head h2 { font-size: 16px; }
.ladder__head span { color: var(--muted); font-size: 12px; }
.ladder__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ladder__row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: rise 0.6s ease both;
}
.ladder__orb { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--t-conic); position: relative; }
.ladder__orb::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg); }
.ladder__row.t-glowing .ladder__orb { box-shadow: 0 0 14px -1px var(--t-glow); }
.ladder__row.t-animated .ladder__orb { animation: spin 4s linear infinite; }
.ladder__name { font: 600 13px/1.2 var(--font-display); }
.ladder__min { font: 700 12px/1 var(--font-display); color: var(--muted); text-align: right; }
.ladder__bar { grid-column: 2 / span 2; height: 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.ladder__bar i { display: block; height: 100%; border-radius: inherit; background: var(--t-bar); box-shadow: 0 0 10px var(--t-glow); animation: grow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: left; }
.ladder__row--top { background: linear-gradient(90deg, color-mix(in srgb, var(--t-mid) 14%, transparent), rgba(255, 255, 255, 0.02)); border-color: color-mix(in srgb, var(--t-mid) 30%, transparent); }

.features { display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 22px; display: grid; gap: 10px; align-content: start; }
.feature__icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.feature__icon--gold { background: rgba(255, 214, 107, 0.12); color: var(--gold); border-color: rgba(255, 214, 107, 0.3); }
.feature h3 { font-size: 16px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.honest { display: grid; gap: 14px; }
@media (min-width: 900px) { .honest { grid-template-columns: repeat(2, 1fr); } }
.honest__item { padding: 22px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.honest__num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 15px/1 var(--font-display); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.honest__item h3 { font-size: 17px; margin-bottom: 6px; }
.honest__item p { margin: 0; color: var(--muted); font-size: 15px; }
.honest__item--buy { border-color: rgba(255, 214, 107, 0.35); background: linear-gradient(140deg, rgba(255, 214, 107, 0.09), rgba(17, 17, 24, 0.7) 60%); }
.honest__item--buy .honest__num { background: rgba(255, 214, 107, 0.16); color: var(--gold); border-color: rgba(255, 214, 107, 0.4); }
.callout {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  color: #C9C9D8;
  font-size: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout .ico { color: var(--gold); margin-top: 3px; }

.split { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.rules { padding: 22px; }
.rules h3 { font-size: 16px; margin-bottom: 12px; }
.rules dl { margin: 0; display: grid; gap: 0; }
.rules dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rules dl > div:first-child { border-top: 0; }
.rules dt { color: var(--text); font-weight: 600; }
.rules dd { margin: 0; color: var(--muted); text-align: right; }
.rules--list dl > div { justify-content: flex-start; align-items: flex-start; }
.rules--list dt { color: var(--gold); padding-top: 3px; flex: none; width: 18px; }
.rules--list dd { text-align: left; color: #D3D3DF; }
.rules small { display: block; margin-top: 10px; color: var(--faint); font-size: 12px; }

.cta-band { margin-top: 64px; padding: 32px 22px; text-align: center; position: relative; overflow: hidden; }
@media (min-width: 768px) { .cta-band { padding: 56px; margin-top: 96px; } }
.cta-band::before { content: ''; position: absolute; inset: 0; background: var(--brand); opacity: 0.12; pointer-events: none; }
.cta-band h2 { font-size: clamp(24px, 5vw, 40px); margin-bottom: 10px; position: relative; }
.cta-band p { color: var(--muted); position: relative; }
.cta-band .hero__ctas { justify-content: center; position: relative; }

/* ---------------------------------------------------------------------------------------------
   Leaderboard
   --------------------------------------------------------------------------------------------- */
.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  gap: 2px;
}
.segmented button {
  border: 0;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font: 600 14px/1 var(--font-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.segmented button[aria-pressed='true'] { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(139, 92, 255, 0.8); }
.lb-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin: 22px 0 8px; }
.lb-hint { color: var(--muted); font-size: 13px; margin: 0; }

.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 8px; margin: 40px 0 18px; }
@media (min-width: 768px) { .podium { gap: 18px; max-width: 760px; margin-inline: auto; } }
.podium__place { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0; animation: rise 0.6s ease both; }
.podium__place--1 { animation-delay: 0.05s; }
.podium__place--3 { animation-delay: 0.15s; }
.podium__who { display: grid; gap: 2px; min-width: 0; width: 100%; }
.podium__name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__user { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__aura { font: 800 15px/1.1 var(--font-display); display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.podium__aura .ico { color: var(--gold); }
.podium__step {
  width: 100%;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--t-mid) 22%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-top: 2px solid color-mix(in srgb, var(--t-mid) 70%, transparent);
  display: grid;
  place-items: center;
  font: 800 26px/1 var(--font-display);
  color: rgba(255, 255, 255, 0.85);
}
.podium__place--1 .podium__step { height: 108px; font-size: 34px; box-shadow: 0 -20px 50px -24px var(--t-glow); }
.podium__place--2 .podium__step { height: 78px; }
.podium__place--3 .podium__step { height: 60px; }
@media (min-width: 768px) {
  .podium__name { font-size: 16px; }
  .podium__aura { font-size: 18px; }
  .podium__place--1 .podium__step { height: 140px; }
  .podium__place--2 .podium__step { height: 100px; }
  .podium__place--3 .podium__step { height: 76px; }
}
.podium__place:hover .podium__name { text-decoration: underline; text-underline-offset: 3px; }

.lb-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
@media (min-width: 768px) { .lb-list { padding: 10px; max-width: 860px; margin-inline: auto; } }
.lb-row {
  display: grid;
  grid-template-columns: 30px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 14px;
  transition: background 0.15s;
}
.lb-row:hover { background: rgba(255, 255, 255, 0.045); }
.lb-rank { font: 700 13px/1 var(--font-display); color: var(--muted); text-align: center; }
.lb-who { min-width: 0; display: grid; gap: 3px; }
.lb-who strong { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
.lb-meta > span:not(.tier-chip) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb-meta .tier-chip { flex: none; }
.lb-aura { font: 700 15px/1 var(--font-display); text-align: right; white-space: nowrap; }
.lb-aura small { display: block; margin-top: 4px; font: 500 11px/1 var(--font-text); color: var(--muted); }
.lb-disclaimer { text-align: center; color: var(--muted); font-size: 13px; margin: 20px auto 0; max-width: 64ch; text-wrap: balance; }
.lb-disclaimer .ico { display: inline-block; vertical-align: -2px; margin-right: 6px; color: var(--gold); }

/* ---------------------------------------------------------------------------------------------
   Profile
   --------------------------------------------------------------------------------------------- */
.profile { padding-top: 28px; display: grid; gap: 16px; }
@media (min-width: 768px) { .profile { padding-top: 44px; gap: 20px; } }
.profile-card { padding: 28px 20px 22px; text-align: center; display: grid; justify-items: center; gap: 6px; position: relative; overflow: hidden; }
.profile-card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -120px;
  width: 420px;
  height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--t-glow, rgba(139, 92, 255, 0.4)), transparent);
  opacity: 0.6;
  pointer-events: none;
}
.profile-card .avatar { margin-bottom: 12px; }
.profile-card h1 { font-size: clamp(24px, 6vw, 34px); position: relative; overflow-wrap: anywhere; }
.profile-handle { color: var(--muted); font-weight: 500; position: relative; }
.profile-place { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; position: relative; }
.crown-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(255, 214, 107, 0.12); border: 1px solid rgba(255, 214, 107, 0.4);
  color: var(--gold); font: 700 12px/1.2 var(--font-display);
  position: relative;
}
.profile-bio { max-width: 52ch; margin: 8px auto 0; color: #D6D6E2; white-space: pre-line; overflow-wrap: anywhere; position: relative; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; position: relative; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 14px 10px; text-align: center; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.stat b { display: block; font: 800 18px/1.1 var(--font-display); }
.stat span { color: var(--muted); font-size: 12px; }
.stat--wide { grid-column: span 2; }
@media (min-width: 560px) { .stat--wide { grid-column: auto; } }
.block { padding: 20px; }
.block h2 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.supporters { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.supporter { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 12px; }
.supporter:hover { background: rgba(255, 255, 255, 0.04); }
.supporter__rank { font: 700 12px/1 var(--font-display); color: var(--muted); text-align: center; }
.supporter__name { min-width: 0; }
.supporter__name strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supporter__name span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supporter__total { font: 700 13px/1 var(--font-display); display: inline-flex; align-items: center; gap: 4px; }
.supporter__total .ico { color: var(--gold); }

.grid-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 768px) { .grid-posts { gap: 8px; border-radius: 0; overflow: visible; } }
.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
}
@media (min-width: 768px) { .tile { border-radius: 14px; } }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6)); pointer-events: none; }
.tile__video { position: absolute; top: 8px; right: 8px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; backdrop-filter: blur(6px); }
.tile__likes { position: absolute; left: 8px; bottom: 7px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 var(--font-text); color: #fff; }

.viewer {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.viewer::backdrop { background: rgba(4, 4, 8, 0.78); backdrop-filter: blur(6px); }
.viewer__media { background: #000; display: grid; place-items: center; max-height: 70dvh; }
.viewer__media img, .viewer__media video { max-height: 70dvh; width: 100%; object-fit: contain; }
.viewer__body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.viewer__caption { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.viewer__meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; align-items: center; flex-wrap: wrap; }
.viewer__meta span { display: inline-flex; gap: 5px; align-items: center; }
.viewer__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* ---------------------------------------------------------------------------------------------
   States
   --------------------------------------------------------------------------------------------- */
.state { padding: 48px 20px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 12px; }
.state h1, .state h2 { color: var(--text); font-size: clamp(20px, 5vw, 28px); }
.state p { margin: 0; max-width: 46ch; }
.state__orb { width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(from 0deg, var(--pink), var(--violet), var(--cyan), var(--pink)); position: relative; animation: spin 6s linear infinite; opacity: 0.85; }
.state__orb::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: sheen 1.6s ease-in-out infinite; border-radius: 12px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.15); border-top-color: var(--violet); animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
.empty-note { color: var(--muted); font-size: 14px; margin: 0; padding: 6px 0; }

/* ---------------------------------------------------------------------------------------------
   Legal documents
   --------------------------------------------------------------------------------------------- */
.doc { padding: 24px 0 0; }
@media (min-width: 768px) { .doc { padding-top: 44px; } }
.doc__top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.doc h1 { font-size: clamp(24px, 6.4vw, 46px); margin: 12px 0 10px; }
.doc__meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.doc__body { padding: 22px; }
@media (min-width: 768px) { .doc__body { padding: 36px 40px; } }
.doc__body h2 { font-size: 18px; margin: 34px 0 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc__body h2:first-child, .doc__body > :first-child, .doc__body > [data-lang] > :first-child { margin-top: 0; }
.doc__body h3 { font-size: 15px; margin: 22px 0 8px; }
.doc__body p, .doc__body li { color: #D3D3DF; font-size: 15.5px; }
.doc__body ul, .doc__body ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc__body li { margin: 0.35em 0; }
.doc__body li::marker { color: var(--violet); }
.doc__body a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(46, 230, 255, 0.4); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc__body strong { color: var(--text); }
.doc__lead { font-size: 16.5px; color: var(--text) !important; }
.doc__box { margin: 18px 0; padding: 16px 18px; border-radius: var(--r-md); background: var(--brand-soft); border: 1px solid rgba(255, 255, 255, 0.1); }
.doc__box p:last-child { margin-bottom: 0; }
.doc__box--warn { background: rgba(255, 214, 107, 0.08); border-color: rgba(255, 214, 107, 0.35); }
.doc__box--danger { background: rgba(255, 77, 94, 0.08); border-color: rgba(255, 77, 94, 0.35); }
.toc { margin: 0 0 26px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.toc strong { display: block; font: 700 12px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 28px; } }
.toc li { margin: 0; padding: 3px 0; break-inside: avoid; font-size: 14px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--cyan); }
.contact-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); margin: 12px 0 0; }
.contact-card span { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 400 16px/1.3 var(--font-text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.18);
}
.field textarea { min-height: 84px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.form-msg--error { background: rgba(255, 77, 94, 0.1); border: 1px solid rgba(255, 77, 94, 0.35); color: #FFB1B8; }
.form-msg--ok { background: rgba(59, 227, 139, 0.1); border: 1px solid rgba(59, 227, 139, 0.35); color: #A6F5CB; }
.form-msg--info { background: rgba(46, 230, 255, 0.08); border: 1px solid rgba(46, 230, 255, 0.3); color: #B5F6FF; }
.link-btn { border: 0; background: none; padding: 0; color: var(--cyan); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }

/* ---------------------------------------------------------------------------------------------
   Toast
   --------------------------------------------------------------------------------------------- */
.toast-host { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: blur(16px); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; animation: rise 0.25s ease both; transition: opacity 0.4s, transform 0.4s; }
.toast--ok { border-color: rgba(59, 227, 139, 0.45); }
.toast--error { border-color: rgba(255, 77, 94, 0.55); color: #FFC2C7; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .aura-bar__fill::after { display: none; }
}
