:root {
  /* HepBet UI (Figma) */
  --color-page: #19222c;
  --color-well: #070a0d;
  --color-surface: #0e141b;
  --color-card: #233243;
  --color-card-deep: #1c2835;
  --color-border: #2a3c50;
  --color-border-strong: #31465e;
  --color-icon-from: #3f5a78;
  --color-icon-to: #31465e;
  --color-accent: #197cff;
  --color-info: #0febff;
  --color-success: #25d366;
  --color-text: #ffffff;
  --color-text-primary: #d7e0ea;
  --color-text-secondary: #bccbdc;
  --overlay: rgba(28, 40, 53, 0.72);

  /* VIP katmanı — varsayılan cyan; html[data-accent] ile değişir */
  --accent: #03b7c4;
  --accent-light: #7aeff5;
  --accent-dark: #027f88;
  --accent-ink: #032022;
  --accent-rgb: 3, 183, 196;
  --accent-gradient: linear-gradient(120deg, #7aeff5 0%, #03b7c4 50%, #027f88 100%);
  --accent-line: rgba(var(--accent-rgb), 0.22);
  --accent-line-strong: rgba(var(--accent-rgb), 0.55);
  --glass-bg: linear-gradient(160deg, rgba(28, 38, 51, 0.82), rgba(14, 20, 28, 0.78));
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-glow: inset 0 0 12px rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.85);
  --hairline: rgba(255, 255, 255, 0.07);
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.42);

  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;
  --blur: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Bricolage Grotesque", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-h1: "Geist", var(--font-display), sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --space-8: 40px;
  --nav-w: 272px;
  --content-w: 1240px;
}

html[data-accent="green"] {
  --accent: #9fdc3c;
  --accent-light: #d4f58a;
  --accent-dark: #6aa31e;
  --accent-ink: #142307;
  --accent-rgb: 159, 220, 60;
  --accent-gradient: linear-gradient(120deg, #d4f58a 0%, #9fdc3c 50%, #6aa31e 100%);
}

html[data-accent="cyan"] {
  --accent: #03b7c4;
  --accent-light: #7aeff5;
  --accent-dark: #027f88;
  --accent-ink: #032022;
  --accent-rgb: 3, 183, 196;
  --accent-gradient: linear-gradient(120deg, #7aeff5 0%, #03b7c4 50%, #027f88 100%);
}

html[data-accent="blue"] {
  --accent: #197cff;
  --accent-light: #0febff;
  --accent-dark: #0d5bd1;
  --accent-ink: #061428;
  --accent-rgb: 25, 124, 255;
  --accent-gradient: linear-gradient(120deg, #0febff 0%, #197cff 50%, #0d5bd1 100%);
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--color-page);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-page);
  background-image:
    linear-gradient(var(--overlay), var(--overlay)),
    url("../images/bg.jpg"),
    linear-gradient(180deg, var(--color-page) 0%, var(--color-well) 42%, var(--color-card-deep) 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  body {
    background-image:
      linear-gradient(var(--overlay), var(--overlay)),
      url("../images/bg-mobile.jpg"),
      linear-gradient(180deg, var(--color-page) 0%, var(--color-well) 42%, var(--color-card-deep) 100%);
    background-attachment: scroll, scroll, scroll;
  }
}

/* yumuşak altın ışık (CallCenter "shine" dili) */
.shine {
  position: fixed;
  top: -18%;
  left: -8%;
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0) 68%);
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}

.shine--blue {
  top: auto;
  left: auto;
  right: -12%;
  bottom: -26%;
  background: radial-gradient(circle, rgba(0, 162, 255, 0.2), rgba(0, 162, 255, 0) 68%);
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

h1 { font-family: var(--font-h1); }
h2 { font-family: var(--font-h1); }

.page {
  position: relative;
  z-index: 1;
  width: min(var(--content-w), calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.layout {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

/* ---------- rafine cam kart ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-glow), var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line-strong), transparent);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 140px;
  color: var(--accent);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line-strong));
}

.divider::after { transform: scaleX(-1); }

.divider i {
  width: 6px;
  height: 6px;
  background: var(--accent-gradient);
  transform: rotate(45deg);
}

/* ---------- menü ---------- */
.nav-card {
  position: sticky;
  top: var(--space-5);
  padding: var(--space-3);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 10px var(--space-3);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  transform: translateX(2px);
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.02));
  color: var(--color-text);
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: var(--accent-gradient);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--color-icon-from), var(--color-icon-to));
  color: var(--color-text-secondary);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.icon-box svg { width: 18px; height: 18px; }

.nav-item.is-active .icon-box {
  border-color: var(--accent-line-strong);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.32), rgba(var(--accent-rgb), 0.08));
  color: var(--accent-light);
}

.nav-item__ext {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-item:hover .nav-item__ext {
  color: var(--accent-light);
  transform: translate(2px, -2px);
}

.panels { min-width: 0; }
.panel { display: none; }

.panel.is-active {
  display: block;
  animation: rise 0.5s var(--ease) both;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.95fr);
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.hero--solo { grid-template-columns: 1fr; }

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8);
}

.hero-copy__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  user-select: none;
}

.hero-art img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), 0.22));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    animation: hero-art-breathe 7s var(--ease) infinite;
  }
}

@keyframes hero-art-breathe {
  0%, 100% { opacity: 0.88; filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.16)); }
  50% { opacity: 1; filter: drop-shadow(0 0 28px rgba(var(--accent-rgb), 0.3)); }
}

.hero-copy h1 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-h1);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.05;
}

.hero-copy h1 span {
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lead {
  margin: var(--space-5) 0 var(--space-6);
  max-width: 34rem;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 500;
}

/* ---------- puan / seviye ---------- */
.member {
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-color: var(--accent-line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0) 60%),
    var(--glass-bg);
}

.member-top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.member-name {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.member-tag {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.member-xp {
  margin: var(--space-6) 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.member-xp small {
  margin-left: 6px;
  color: var(--muted-2);
  -webkit-text-fill-color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.35);
}

.progress__fill {
  position: relative;
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-dark), var(--accent) 55%, var(--accent-light));
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.55);
  transition: width 1.2s var(--ease);
  overflow: hidden;
}

.progress__fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: sweep 2.8s ease-in-out infinite;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.progress-meta b { color: var(--color-text-primary); font-weight: 700; }

.member-hint {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.member-hint b { color: var(--accent-light); font-weight: 700; }

/* Puan kartı gizli. Geri açmak için bu kuralı sil. */
.member { display: none; }

/* ---------- değerli taş rozetler ---------- */
.gem {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, var(--gem-a), var(--gem-b));
  box-shadow:
    inset 0 -4px 8px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 18px -8px var(--gem-b);
  color: var(--gem-ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.gem::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gem--lg { width: 64px; height: 64px; font-size: 24px; }
.gem--lg::after { opacity: 1; inset: -6px; }

.level-art-wrap {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.level-art-wrap--lg { width: 64px; height: 64px; }

.level-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.level-art-wrap .gem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.level-art-wrap.is-fallback .level-art { display: none; }
.level-art-wrap:not(.is-fallback) .gem { visibility: hidden; }

/* ---------- seviye listesi ---------- */
.levels-card { padding: 0; }

.level + .level { border-top: 1px solid var(--hairline); }

.level-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: 18px var(--space-6);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: default;
  transition: background 0.25s var(--ease);
}

.level-head:hover { background: rgba(255, 255, 255, 0.03); }
.level.is-open .level-head,
.level.is-current .level-head { background: rgba(var(--accent-rgb), 0.05); }
.level-head:hover .gem::after,
.level.is-open .gem::after { opacity: 1; }

.level-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.level-tag {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.chip {
  padding: 2px 8px;
  border: 1px solid var(--accent-line-strong);
  border-radius: var(--radius-full);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.level-xp {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.level-xp strong {
  display: block;
  margin-top: 2px;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.level-range {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: right;
  text-transform: none;
}

.level-reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 6px 12px;
  border: 1px solid var(--accent-line-strong);
  border-radius: var(--radius-full);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.14);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.chevron svg { width: 10px; height: 6px; }

.level.is-open .chevron {
  transform: rotate(180deg);
  border-color: var(--accent-line-strong);
  color: var(--accent-light);
}

.level-body { display: none; padding: 0 var(--space-6) 22px 84px; }
.level.is-open .level-body { display: block; animation: rise 0.35s var(--ease) both; }

.level-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.level-body li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.level-body li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent-gradient);
  transform: rotate(45deg);
}

/* ---------- xp nasıl kazanılır ---------- */
.earn-card { margin-top: var(--space-5); padding: var(--space-8) var(--space-6); }

.section-title {
  margin: 0 0 var(--space-6);
  color: var(--color-text);
  font-family: var(--font-h1);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.earn-head { margin-bottom: var(--space-6); text-align: center; }

.earn-card h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-h1);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.earn-q {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.earn-rules {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.earn-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: 16px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(35, 50, 67, 0.55), rgba(14, 20, 28, 0.35));
  box-shadow: var(--glass-glow);
}

.earn-rule-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-line-strong);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.04));
  color: var(--accent-light);
}

.earn-rule-icon svg { width: 22px; height: 22px; }

.earn-rule-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.earn-rule-copy strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.earn-rule-copy span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.earn-rule-xp {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.earn-rule-xp b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.earn-note {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}

/* ---------- liderlik ---------- */
.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.board-head .section-title { margin: 0; font-size: 28px; }

.pills {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(8, 14, 20, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 2px 8px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}

.pills__thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(var(--accent-rgb), 0.12) 100%),
    rgba(8, 16, 24, 0.62);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  box-shadow:
    0 0 18px -4px rgba(var(--accent-rgb), 0.55),
    0 4px 12px -6px rgba(var(--accent-rgb), 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pills__thumb::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 10px;
  right: 10px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.pill {
  position: relative;
  z-index: 1;
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

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

.pill.is-active,
.pill[aria-selected="true"] { color: var(--accent-light); }

.pill:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.7);
  outline-offset: 2px;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding: 56px var(--space-6) 0;
}

.podium-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.podium-item--1::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0) 66%);
  pointer-events: none;
}

.crown {
  position: relative;
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  color: var(--accent-light);
  filter: drop-shadow(0 4px 10px rgba(var(--accent-rgb), 0.6));
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--color-border), var(--color-card));
  color: var(--color-text-primary);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.avatar--podium {
  width: 60px;
  height: 60px;
  border: 2px solid var(--ring);
  background: linear-gradient(160deg, var(--color-icon-from), var(--color-card-deep));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ring) 16%, transparent), 0 12px 24px -12px var(--ring);
  font-size: 15px;
}

.podium-item--1 .avatar--podium { width: 76px; height: 76px; font-size: 19px; }

.podium-name {
  max-width: 100%;
  margin: var(--space-4) 0 2px;
  overflow: hidden;
  color: var(--color-text);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 1.2em;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-points {
  margin: 0 0 var(--space-4);
  overflow: hidden;
  max-width: 100%;
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 1.2em;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-item--1 .podium-points {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 22px;
}

.stand {
  position: relative;
  display: grid;
  place-items: start center;
  width: 100%;
  padding-top: 14px;
  border: 1px solid color-mix(in srgb, var(--ring) 40%, transparent);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ring) 30%, transparent), color-mix(in srgb, var(--ring) 2%, transparent));
  color: var(--ring);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.stand--1 { height: 124px; }
.stand--2 { height: 92px; }
.stand--3 { height: 70px; }

.rows-head,
.row {
  display: grid;
  grid-template-columns: 44px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-6);
}

.rows-head {
  padding-top: var(--space-5);
  padding-bottom: var(--space-3);
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.rows-head span:last-child { text-align: right; }

.rows { margin: 0; padding: 0 0 var(--space-2); list-style: none; }

.row {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--hairline);
  transition: background 0.25s var(--ease);
}

.row:hover { background: rgba(255, 255, 255, 0.03); }

.row-rank {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.row-name {
  overflow: hidden;
  color: var(--color-text-primary);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 1.3em;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-points {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 1.3em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- liderlik: yüklenme / boş / hata ---------- */
.board-body { position: relative; }

.podium-name,
.podium-points,
.row-name,
.row-points,
.avatar { transition: opacity 0.2s var(--ease); }

.board-body.is-pending .podium-name,
.board-body.is-pending .podium-points,
.board-body.is-pending .row-name,
.board-body.is-pending .row-points,
.board-body.is-pending .avatar { opacity: 0.45; }

.board-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  box-shadow: var(--glass-glow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  text-align: center;
}

.board-state[hidden] { display: none; }

.board-state__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-5);
  border: 1px solid var(--accent-line-strong);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.04));
  box-shadow: 0 0 28px -8px rgba(var(--accent-rgb), 0.6);
  color: var(--accent-light);
}

.board-state__icon svg { width: 28px; height: 28px; }

.board-state__title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.board-state__text { margin: var(--space-2) 0 0; color: var(--muted); font-size: 14.5px; font-weight: 500; }

.board-state__btn {
  margin-top: var(--space-5);
  height: 38px;
  padding: 0 22px;
  border: 1px solid var(--accent-line-strong);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.board-state__btn:hover { background: rgba(var(--accent-rgb), 0.18); box-shadow: 0 0 20px -6px rgba(var(--accent-rgb), 0.7); }
.board-state__btn:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.7); outline-offset: 2px; }


/* ---------- turnuva ---------- */
.coming-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 72px var(--space-8);
  text-align: center;
}

.coming-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: var(--space-6);
  border: 1px solid var(--accent-line-strong);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.04));
  color: var(--accent-light);
}

.coming-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  animation: halo 3s ease-out infinite;
}

.coming-icon svg { width: 36px; height: 36px; }

.coming-card h1 {
  margin: 0 0 var(--space-5);
  color: var(--color-text);
  font-family: var(--font-h1);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.1;
}

.coming-card h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.coming-card .note { margin: var(--space-5) 0 0; color: var(--muted); font-size: 15.5px; font-weight: 500; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, 4vh) scale(1.12); }
}

@keyframes sweep {
  0% { left: -45%; }
  60%, 100% { left: 115%; }
}

@keyframes halo {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shine, .progress__fill::after, .coming-icon::after, .hero-art img { animation: none; }
  .panel.is-active, .level.is-open .level-body { animation: none; }
  .progress__fill, .pills__thumb { transition: none; }
  .podium-name, .podium-points, .row-name, .row-points, .avatar { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .page { width: min(1080px, calc(100% - 40px)); padding-top: 40px; }
}

@media (max-width: 1024px) {
  :root { --nav-w: 236px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: var(--space-6); }
  .hero-art img { width: min(100%, 220px); }
  .level-head { padding: 16px var(--space-5); }
  .level-body { padding: 0 var(--space-5) 20px 76px; }
  .earn-card { padding: var(--space-6) var(--space-5); }
}

@media (max-width: 768px) {
  .page { width: calc(100% - 32px); padding: var(--space-4) 0 56px; }
  .layout { grid-template-columns: 1fr; gap: var(--space-4); }
  .nav-card {
    position: sticky;
    top: var(--space-2);
    z-index: 10;
    padding: 6px;
    border-radius: var(--radius-full);
  }
  .nav-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 auto; width: auto; padding: 6px 14px 6px 6px; border-radius: var(--radius-full); white-space: nowrap; }
  .nav-item:hover { transform: none; }
  .nav-item.is-active::before { display: none; }
  .nav-item.is-active { background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.05)); }
  .icon-box { width: 30px; height: 30px; border-radius: 50%; }
  .icon-box svg { width: 16px; height: 16px; }
  .nav-item__ext { margin-left: 2px; }
  .hero-copy {
    grid-template-columns: 1fr;
    padding: var(--space-6) var(--space-5);
  }
  .hero-art { display: none; }
  .member { padding: var(--space-6) var(--space-5) var(--space-5); }
  .level-body ul { grid-template-columns: 1fr; }
  .podium { padding: 48px var(--space-4) 0; gap: var(--space-2); }
  .coming-card { min-height: 360px; padding: var(--space-8) var(--space-5); }
  .board-head { flex-direction: column; align-items: stretch; }
  .pills { width: 100%; display: flex; }
  .pill { flex: 1 1 0; padding: 0 8px; text-align: center; }
}

@media (max-width: 480px) {
  .page { width: calc(100% - 24px); }
  .level-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "gem info reward";
    gap: var(--space-3);
    padding: 14px var(--space-4);
  }
  .level-head .level-art-wrap { grid-area: gem; }
  .level-info { grid-area: info; }
  .level-reward { grid-area: reward; justify-self: end; align-self: center; min-width: 0; }
  .section-title { font-size: 21px; }
  .earn-card h2 { font-size: 22px; }
  .earn-rule {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-3);
  }
  .earn-rule-xp { grid-column: 2; }
  .board-head .section-title { font-size: 23px; }
  .pill { padding: 0 6px; height: 32px; letter-spacing: 1px; }
  .avatar--podium { width: 46px; height: 46px; font-size: 12px; }
  .podium-item--1 .avatar--podium { width: 58px; height: 58px; font-size: 15px; }
  .podium-name { font-size: 12px; }
  .podium-points { font-size: 13px; }
  .podium-item--1 .podium-points { font-size: 16px; }
  .stand { font-size: 26px; }
  .stand--1 { height: 100px; }
  .stand--2 { height: 76px; }
  .stand--3 { height: 58px; }
  .rows-head, .row { padding-left: var(--space-4); padding-right: var(--space-4); gap: var(--space-2); grid-template-columns: 32px 32px minmax(0, 1fr) auto; }
}
/* TEMP: accent switcher */
.accent-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
}

.accent-switcher__label {
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.accent-switcher__dots {
  display: flex;
  gap: 8px;
}

.accent-switcher.glass { overflow: visible; }

.accent-switcher__dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--dot);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s var(--ease), outline-color 0.2s var(--ease);
}

.accent-switcher__dot:hover { transform: scale(1.08); }

.accent-switcher__dot.is-active,
.accent-switcher__dot[aria-pressed="true"] {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .accent-switcher {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px 6px 12px;
  }
  .page { padding-bottom: 100px; }
}

/* Seçici gizli. Geri açmak için bu kuralı sil. */
.accent-switcher { display: none; }
/* TEMP: accent switcher */

