/* ============================================================
   INDEX PAGE
   ============================================================ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Theme artwork in hero (when not using full-page body bg — see body.page-home below) */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--theme-hero-bg-image);
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  background-color: var(--bg-void);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, var(--accent-glow) 0%, transparent 58%),
    radial-gradient(ellipse 40% 40% at 10% 80%, var(--accent-dim) 0%, transparent 50%),
    linear-gradient(180deg, rgba(8, 6, 8, 0.45) 0%, rgba(13, 11, 14, 0.88) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: floatUp var(--dur, 8s) linear var(--delay, 0s) infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: var(--op, .6); }
  90%  { opacity: var(--op, .6); }
  100% { transform: translateY(-100vh) scale(.3); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: clamp(48px, 8vh, 72px);
  padding-bottom: 96px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Theme MuAlein logo — centered above “Enter the / Forgotten World” */
.hero-brand-mark-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(24px, 4.5vw, 44px);
}

.hero-brand-mark.theme-brand-logo {
  width: min(560px, 94vw);
  height: clamp(160px, 38vw, 280px);
  background-image: var(--theme-brand-logo-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  filter:
    drop-shadow(0 20px 50px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 48px color-mix(in srgb, var(--accent) 50%, transparent));
  transition: filter 0.35s ease;
}

.hero-brand-mark:not(.theme-brand-logo) {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--text-primary);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
}

.hero-brand-mark:not(.theme-brand-logo) span {
  color: var(--accent);
  text-shadow: 0 0 32px var(--accent-glow);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-brand-mark.theme-brand-logo {
    animation: heroBrandMarkFloat 6s ease-in-out infinite;
  }
}

@keyframes heroBrandMarkFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-mark.theme-brand-logo {
    animation: none;
  }
}

.hero-badge {
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
}

.hero-badge--status {
  gap: 12px;
  padding: 7px 16px 7px 14px;
  align-items: center;
}

.hero-badge-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-badge-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
  opacity: 0.9;
}

.hero-badge-season {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .04em;
  max-width: min(220px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.4vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.04em;
  margin-top: 0;
  margin-bottom: 26px;
  color: var(--text-primary);
}

.hero-title span {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.78;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

/* Grand opening card (grandOpeningDate) — dark panel + neon accent */
.hero-countdown {
  position: relative;
  width: min(540px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(22px, 4vw, 32px);
  padding: clamp(24px, 4.5vw, 36px) clamp(18px, 4vw, 32px) clamp(22px, 4vw, 30px);
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  background:
    radial-gradient(ellipse 130% 90% at 50% -20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 58%),
    radial-gradient(ellipse 80% 60% at 80% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 45%),
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--bg-void, #050807) 92%, var(--accent)) 0%,
      color-mix(in srgb, var(--bg-card) 88%, #061510) 52%,
      rgba(4, 10, 8, 0.97) 100%
    );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent) inset,
    0 22px 56px rgba(0, 0, 0, 0.5),
    0 0 80px color-mix(in srgb, var(--accent-glow) 22%, transparent);
  overflow: hidden;
}

.hero-countdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  width: min(220px, 55%);
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 24px var(--accent-glow);
  opacity: 0.9;
  pointer-events: none;
}

.hero-countdown::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 120%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 55%);
  pointer-events: none;
  opacity: 0.5;
}

/* Status strip + stats = one card */
.hero-live-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-live-card__head {
  margin: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 12px 18px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 88%, var(--accent) 6%);
}

.hero-live-card__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-status-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-dim);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text-primary) 12%, transparent);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.hero-live-card__status-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hero-live-status-icon {
  font-size: 0.95rem;
  opacity: 0.95;
  color: var(--accent);
}

.hero-live-card__sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
  opacity: 0.85;
}

.hero-live-card__season {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  text-transform: uppercase;
  max-width: min(240px, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-live-card__version-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-live-card__version-wrap .ic-version-sep {
  margin: 0 2px;
}

.hero-live-card__version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text-dim) 35%, var(--border));
  background: color-mix(in srgb, var(--bg-card) 70%, var(--text-dim) 8%);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  text-transform: uppercase;
  max-width: min(200px, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-live-card__exp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-live-card__exp-chip > .fa-bolt {
  color: var(--accent);
  font-size: 0.85rem;
}

.hero-live-card__exp-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-live-card__exp-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Status LED + ambient tint */
.hero-live-card__head--online .hero-status-led {
  background: #22c55e;
  box-shadow:
    0 0 0 2px color-mix(in srgb, #22c55e 35%, transparent),
    0 0 14px rgba(34, 197, 94, 0.65);
}

.hero-live-card__head--online {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #22c55e 10%, var(--bg-card)) 0%,
    color-mix(in srgb, var(--bg-card) 92%, var(--accent) 5%) 100%
  );
}

.hero-live-card__head--online .hero-live-status-icon {
  color: #4ade80;
}

.hero-live-card__head--offline .hero-status-led {
  background: #ef4444;
  box-shadow:
    0 0 0 2px color-mix(in srgb, #ef4444 35%, transparent),
    0 0 14px rgba(239, 68, 68, 0.55);
}

.hero-live-card__head--offline {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #ef4444 9%, var(--bg-card)) 0%,
    color-mix(in srgb, var(--bg-card) 94%, #450a0a 6%) 100%
  );
}

.hero-live-card__head--offline .hero-live-status-icon {
  color: #f87171;
}

.hero-live-card__head--opening .hero-status-led {
  background: #f59e0b;
  box-shadow:
    0 0 0 2px color-mix(in srgb, #f59e0b 40%, transparent),
    0 0 14px rgba(245, 158, 11, 0.55);
}

.hero-live-card__head--opening {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #f59e0b 12%, var(--bg-card)) 0%,
    color-mix(in srgb, var(--bg-card) 90%, var(--accent) 8%) 100%
  );
}

.hero-live-card__head--opening .hero-live-status-icon {
  color: #fbbf24;
}

.hero-live-card__head--neutral .hero-status-led {
  background: var(--text-dim);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text-primary) 10%, transparent);
}

.hero-live-card__head--neutral .hero-live-status-icon {
  color: var(--text-muted);
}

.hero-live-card__head--loading .hero-status-led {
  opacity: 0.5;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  box-shadow: none;
}

.hero-stat {
  padding: 18px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-stat-sep {
  width: 1px;
  align-self: stretch;
  min-height: 52px;
  margin: 10px 0;
  background: var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
  justify-content: center;
}

/* Fixed bottom-left, aligned to .container gutter; shown after scroll (index.js .is-visible) */
.hero-scroll-hint {
  position: fixed;
  left: 24px;
  right: auto;
  bottom: max(24px, env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
}

.hero-scroll-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (min-width: 1241px) {
  .hero-scroll-hint {
    left: calc((100vw - 1240px) / 2 + 24px);
  }
}

.hero-scroll-hint__glass {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-card) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-scroll-hint.is-visible .hero-scroll-hint__glass {
    animation: heroScrollBobble 2.4s ease-in-out infinite;
  }
}

.hero-scroll-hint__rail {
  width: 3px;
  align-self: stretch;
  min-height: 44px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 75%, transparent) 35%,
    var(--accent) 50%,
    color-mix(in srgb, var(--accent) 75%, transparent) 65%,
    transparent 100%
  );
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 35%, transparent);
  opacity: 0.9;
}

.hero-scroll-hint__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-scroll-hint__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
  max-width: 9em;
  text-align: left;
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid color-mix(in srgb, var(--text-dim) 85%, var(--accent));
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 15%, transparent);
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.35; }
}

@keyframes heroScrollBobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint {
    transition: none;
  }
  .hero-scroll-hint__glass,
  .scroll-wheel {
    animation: none !important;
  }
}

/* ── HOME HERO — visual polish (glass, depth, motion) ── */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFirePulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px var(--accent-glow)); }
  50%      { opacity: 0.88; filter: drop-shadow(0 0 14px var(--accent-glow)); }
}

body.page-home .hero {
  isolation: isolate;
}

/* Vignette above artwork + particles, still under .hero-content (z-index on section) */
body.page-home .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 55% at 50% 38%, transparent 0%, transparent 52%, rgba(0, 0, 0, 0.42) 100%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
}

@media (prefers-reduced-motion: no-preference) {
  body.page-home .hero-content > * {
    animation: heroReveal 0.88s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  body.page-home .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
  body.page-home .hero-content > *:nth-child(2) { animation-delay: 0.12s; }
  body.page-home .hero-content > *:nth-child(3) { animation-delay: 0.18s; }
  body.page-home .hero-content > *:nth-child(4) { animation-delay: 0.26s; }
  body.page-home .hero-content > *:nth-child(5) { animation-delay: 0.34s; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-content > * {
    animation: none !important;
  }
}

body.page-home .hero-live-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg-card) 52%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-primary) 9%, transparent);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 color-mix(in srgb, var(--text-primary) 7%, transparent);
}

body.page-home .hero-live-card__head {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--text-primary) 8%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 6%, transparent);
}

body.page-home .hero-live-card__status-text {
  font-size: 0.8rem;
}

body.page-home .hero-live-card__season {
  font-size: 0.84rem;
}

body.page-home .hero-live-card__version {
  font-size: 0.78rem;
}

body.page-home .hero-live-card__exp-label {
  font-size: 0.68rem;
}

body.page-home .hero-live-card__exp-val {
  font-size: 1.05rem;
}

@media (prefers-reduced-motion: no-preference) {
  body.page-home .hero-live-card__head--online .hero-live-status-icon,
  body.page-home .hero-live-card__head--opening .hero-live-status-icon {
    animation: heroFirePulse 2.8s ease-in-out infinite;
  }
}

body.page-home .hero-title {
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

body.page-home .hero-title span {
  background: linear-gradient(
    118deg,
    #fff9f2 0%,
    var(--accent) 38%,
    color-mix(in srgb, var(--accent) 72%, #ffd9a8) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 32px color-mix(in srgb, var(--accent) 45%, transparent));
}

/* theme variants removed (single orange theme) */

body.page-home .hero-desc {
  text-wrap: pretty;
  font-size: 1.14rem;
  line-height: 1.82;
  max-width: 600px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

body.page-home .hero-live-card .hero-stats {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.page-home .stat-num {
  font-size: 1.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

body.page-home .stat-label {
  font-size: 0.82rem;
}

body.page-home .hero-actions .btn {
  min-height: 52px;
  padding-left: 28px;
  padding-right: 28px;
  font-size: clamp(0.82rem, 1.05vw, 0.92rem);
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  body.page-home .hero-actions .btn-primary:hover {
    transform: translateY(-2px);
  }
  body.page-home .hero-actions .btn-outline:hover {
    transform: translateY(-2px);
  }
}

body.page-home .hero-actions .btn-primary {
  box-shadow: 0 6px 28px color-mix(in srgb, var(--accent) 32%, transparent);
}

body.page-home .hero-actions .btn-primary:hover {
  box-shadow: 0 10px 36px color-mix(in srgb, var(--accent) 42%, transparent);
}

body.page-home .hero-scroll-hint__glass {
  background: color-mix(in srgb, var(--bg-card) 48%, transparent);
  border-color: color-mix(in srgb, var(--text-primary) 11%, transparent);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.5),
    0 0 48px color-mix(in srgb, var(--accent) 12%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--text-primary) 9%, transparent);
}

body.page-home .hero-scroll-hint__label {
  color: color-mix(in srgb, var(--text-primary) 72%, transparent);
}

body.page-home .scroll-mouse {
  border-color: color-mix(in srgb, var(--text-dim) 70%, var(--accent));
}

/* Home: intro lines above grids (badge + title + subtitle), no wrapper */
.features-section .container > .badge,
.ranking-preview-section .container > .badge {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
}

.features-section .container > .section-title,
.ranking-preview-section .container > .section-title {
  text-align: center;
}

.features-section .container > .section-subtitle,
.ranking-preview-section .container > .section-subtitle {
  text-align: center;
  margin-bottom: 56px;
}

/* ── FEATURES ── */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.feature-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* ── EVENT WINNERS PREVIEW ── */
.event-winners-section {
  padding: 92px 0 54px;
}

.event-winners-section .container > .badge,
.event-winners-section .container > .section-title,
.event-winners-section .container > .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.event-winners-section .container > .badge {
  display: flex;
  width: fit-content;
  margin-bottom: 16px;
}

.event-winners-section .container > .section-subtitle {
  margin-bottom: 36px;
}

.event-winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  gap: 18px;
  align-items: stretch;
  justify-content: center;
}

.event-win-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.event-win-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-card));
}

.event-win-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.event-win-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-win-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.event-win-card__body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 9px;
}

.event-win-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card2);
}

.event-win-row > span {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-win-row > strong {
  color: var(--text-primary);
  font-size: 0.82rem;
  text-align: right;
  font-weight: 800;
}

.event-win-row > strong.is-status-occupied { color: #34d399; }
.event-win-row > strong.is-status-free { color: #f59e0b; }
.event-win-row > strong.is-status-unavailable { color: #f87171; }

/* ── RANKING PREVIEW (Hall of Fame) — two ladders + table-style headers ── */
.ranking-preview-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Two columns; each card is a flex column (title → header row → list). Avoid subgrid here:
   3 children vs 2 parent rows stacked the table head on top of the first data row (double RR/PTS). */
.ranking-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-bottom: 40px;
  align-items: stretch;
}

.rank-preview-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.rank-preview-col--characters {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  box-shadow:
    var(--shadow-card),
    0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent);
}

.rank-preview-col--guilds {
  border-color: color-mix(in srgb, var(--silver) 35%, var(--border));
  box-shadow:
    var(--shadow-card),
    0 0 0 1px color-mix(in srgb, var(--silver) 10%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--silver) 8%, transparent);
}

.rank-preview-col--characters .rank-col-title {
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

.rank-preview-col--guilds .rank-col-title {
  border-left: 3px solid color-mix(in srgb, var(--silver) 75%, var(--text-dim));
  padding-left: 13px;
}

.ranking-preview-grid > .rank-preview-col:nth-child(1) {
  grid-column: 1;
}

.ranking-preview-grid > .rank-preview-col:nth-child(2) {
  grid-column: 2;
}

.rank-col-title {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank-col-title i {
  color: var(--accent);
  font-size: .85rem;
  opacity: 0.95;
}

.rank-preview-col--guilds .rank-col-title i {
  color: color-mix(in srgb, var(--silver) 85%, var(--accent));
}

/* Column headers — same grid as .rank-item rows */
.rank-table-head {
  display: grid;
  align-items: center;
  gap: 0 12px;
  padding: 9px 14px 10px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-void) 40%, var(--bg-card)) 0%,
    var(--bg-card2) 100%
  );
  border-bottom: 1px solid var(--border);
}

.rank-table-head--char,
.rank-table-head--guild {
  grid-template-columns: 32px 40px minmax(0, 1fr) clamp(168px, 28vw, 220px);
}

.rth-cell {
  min-width: 0;
  line-height: 1.25;
}

.rth-rank {
  text-align: center;
}

.rth-avatar {
  text-align: center;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.rank-table-head--char .rth-avatar {
  visibility: hidden;
}

.rth-name {
  padding-right: 4px;
}

.rth-power {
  text-align: right;
  justify-self: end;
  width: 100%;
  max-width: clamp(168px, 28vw, 220px);
}

.rank-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
}

.rank-item {
  border-radius: 0;
  transition: background 0.15s ease;
  flex: 0 0 auto;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}
.rank-item:last-child {
  border-bottom: none;
}
.rank-item:hover {
  background: color-mix(in srgb, var(--bg-card2) 80%, var(--accent-dim));
}

/* Same row geometry as guild rows */
.rank-item--char,
.rank-item--guild {
  min-height: 50px;
  box-sizing: border-box;
}

/* Characters: pos | avatar | name | pills — col 4 fixed so both cards line up */
.rank-item--char {
  display: grid;
  grid-template-columns: 32px 40px minmax(0, 1fr) clamp(168px, 28vw, 220px);
  align-items: center;
  gap: 0 12px;
  padding: 10px 14px;
}

.rank-char-main {
  min-width: 0;
}
.rank-item--char .rank-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-pills--char,
.rank-pills--guild {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  align-content: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
}

.rank-meta {
  font-size: .7rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Guilds: identical grid to characters */
.rank-item--guild {
  display: grid;
  grid-template-columns: 32px 40px minmax(0, 1fr) clamp(168px, 28vw, 220px);
  align-items: center;
  gap: 0 12px;
  padding: 10px 14px;
}
.rank-guild-info {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.rank-item--guild .rank-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}
.rank-guild-sep {
  color: var(--text-dim);
  font-size: .75rem;
  flex-shrink: 0;
  opacity: 0.65;
}
.rank-guild-master {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.rank-master {
  font-size: .7rem;
  color: var(--text-dim);
}
.rank-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-mark--empty {
  width: 40px;
  height: 40px;
}

.rank-pos {
  text-align: center;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 800;
  color: var(--text-dim);
  line-height: 1.2;
}

.rank-pos.pos-1 { color: var(--gold-1); }
.rank-pos.pos-2 { color: var(--silver); }
.rank-pos.pos-3 { color: var(--bronze); }

.rank-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-primary);
}

.rank-class, .rank-guild-score {
  font-size: .78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.rank-score {
  font-size: .8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  text-align: right;
  justify-self: end;
  letter-spacing: 0.02em;
}

.hof-pill--guild-score {
  margin-left: auto;
}
.hof-pill--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.rank-skeleton {
  height: 40px;
  background: linear-gradient(90deg, var(--bg-card2) 25%, var(--bg-surface) 50%, var(--bg-card2) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  margin: 6px 4px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ranking-preview-footer {
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .event-winners-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 720px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hero-content { padding-top: 40px; }
  .hero-scroll-hint {
    left: max(16px, env(safe-area-inset-left, 0px) + 12px);
    right: auto;
    bottom: max(18px, env(safe-area-inset-bottom, 0px) + 14px);
  }
  .hero-scroll-hint__glass {
    padding: 10px 14px 10px 11px;
    gap: 11px;
  }
  .hero-scroll-hint__rail { min-height: 40px; }
  .hero-live-card__head {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }
  .hero-live-card__sep {
    display: none;
  }
  .hero-live-card__exp-chip {
    width: 100%;
    justify-content: center;
  }
  .hero-live-card__season {
    width: 100%;
  }
  .hero-live-card__version-wrap {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .hero-live-card__version-wrap .ic-version-sep {
    display: none;
  }
  .hero-live-card__version {
    width: 100%;
    max-width: none;
  }
  .hero-stats { flex-wrap: wrap; width: 100%; }
  .hero-stat { flex: 1; min-width: 100px; }
  .features-grid { grid-template-columns: 1fr; }
  .ranking-preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
  }
  .ranking-preview-grid > .rank-preview-col:nth-child(1),
  .ranking-preview-grid > .rank-preview-col:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }
  .rank-preview-col {
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
  }
  .rank-table-head--char,
  .rank-table-head--guild {
    grid-template-columns: 28px 36px minmax(0, 1fr) minmax(92px, 34vw);
    gap: 0 8px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.52rem;
  }
  .rank-item--char,
  .rank-item--guild {
    grid-template-columns: 28px 36px minmax(0, 1fr) minmax(92px, 34vw);
    gap: 0 8px;
    padding: 10px 10px;
  }
  .rank-list {
    flex: 1 1 auto;
    height: auto;
  }
}

.rank-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-dim);
  font-size: .88rem;
}

/* ── HOF avatars, marks, pills ── */
.rank-avatar-wrap {
  width: 40px;
  height: 40px;
}
.rank-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  image-rendering: pixelated;
}
.rank-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.hof-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 800;
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-border);
  white-space: nowrap;
}
.hof-pill__v {
  font-variant-numeric: tabular-nums;
  font-size: .76rem;
  letter-spacing: 0;
  line-height: 1.2;
}
.hof-pill__l {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.88;
  line-height: 1.2;
}
.hof-pill--total {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border);
}
.hof-pill--total .hof-pill__l {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: .62rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 1;
}
.hof-pill--total .hof-pill__v {
  color: var(--text-primary);
  font-weight: 800;
}
.hof-pill--gr {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-1);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.28);
}
.hof-pill--muted {
  background: var(--bg-surface);
  color: var(--text-muted);
  box-shadow: inset 0 0 0 1px var(--border);
}
.rank-ml {
  font-size: .72rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.rank-sub {
  font-size: .72rem;
  color: var(--text-dim);
}
.guild-mark-sm {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
.rank-locked {
  color: var(--text-dim) !important;
  font-size: .85rem;
  justify-content: center;
}

/* ── COUNTDOWN UNITS (Grand Opening — scoped la .hero-countdown) ── */
.hero-countdown .countdown-units {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(10px, 2.8vw, 22px);
}

.hero-countdown .cu {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 120px;
  padding: clamp(12px, 2.5vw, 18px) clamp(6px, 1.5vw, 10px);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--bg-surface) 55%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text-primary) 4%, transparent) inset,
    0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Cifre: culoare solidă + glow — evită background-clip:text care poate dispărea în Chrome/Edge cu filter */
.hero-countdown .cu span {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 2.65rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
  text-shadow:
    0 0 20px color-mix(in srgb, var(--accent-glow) 55%, transparent),
    0 0 40px color-mix(in srgb, var(--accent) 25%, transparent),
    0 1px 0 color-mix(in srgb, var(--accent) 80%, #fff);
}

.hero-countdown .cu small {
  font-family: var(--font-body);
  font-size: clamp(0.58rem, 1.8vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--text-muted) 92%, var(--text-primary));
  text-transform: uppercase;
  opacity: 0.92;
}

/* ── HOME: secțiuni semi‑transparente (fundalul global e în theme.css) ── */

/* Fără dublarea imaginii în hero — se vede stratul de pe body */
body.page-home .hero-bg::before {
  display: none;
}

body.page-home .hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, var(--accent-glow) 0%, transparent 58%),
    radial-gradient(ellipse 40% 40% at 10% 80%, var(--accent-dim) 0%, transparent 50%),
    linear-gradient(180deg, rgba(8, 6, 8, 0.28) 0%, rgba(13, 11, 14, 0.55) 100%);
}

body.page-home .features-section {
  background: transparent;
}

body.page-home .feature-card {
  background: rgba(24, 21, 29, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.page-home .ranking-preview-section {
  background: rgba(19, 17, 23, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-home .rank-preview-col {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.page-home .rank-preview-col--characters {
  background: color-mix(in srgb, rgba(24, 21, 29, 0.92) 92%, var(--accent));
  border-color: color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, 0.08));
}

body.page-home .rank-preview-col--guilds {
  background: color-mix(in srgb, rgba(24, 21, 29, 0.94) 94%, var(--silver));
  border-color: color-mix(in srgb, var(--silver) 22%, rgba(255, 255, 255, 0.08));
}

body.page-home .rank-col-title {
  background: linear-gradient(180deg, rgba(19, 17, 23, 0.95) 0%, rgba(24, 21, 29, 0.92) 100%);
}

body.page-home .rank-table-head {
  background: linear-gradient(
    180deg,
    rgba(12, 10, 14, 0.55) 0%,
    rgba(22, 19, 26, 0.92) 100%
  );
}

/* Grand opening: titlu + fus orar vizitator */
.hero-countdown__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0 0 clamp(16px, 3vw, 22px);
  text-transform: uppercase;
  color: var(--accent);
  text-shadow:
    0 0 28px color-mix(in srgb, var(--accent-glow) 50%, transparent),
    0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

.hero-countdown__your-time {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin-top: clamp(18px, 3.5vw, 24px);
  padding-top: clamp(16px, 3vw, 20px);
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, var(--accent) 12%);
  font-size: clamp(0.76rem, 2vw, 0.88rem);
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-countdown__globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  font-size: 1.05em;
  color: color-mix(in srgb, var(--accent) 85%, #6ab0ff);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 35%, transparent));
}

.hero-countdown__your-prefix {
  color: var(--text-muted);
  font-weight: 500;
}

.hero-countdown__your-time strong {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-countdown__server-time {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-size: clamp(0.72rem, 1.9vw, 0.84rem);
  line-height: 1.45;
  color: var(--text-muted);
}

.hero-countdown__server-time-label {
  font-weight: 500;
}

.hero-countdown__server-time strong {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-countdown__tz-id {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text-dim);
  opacity: 0.9;
}

.hero-countdown__live {
  position: relative;
  z-index: 2;
  padding: clamp(14px, 3vw, 20px);
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 900;
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent-glow) 45%, transparent);
}

@media (max-width: 380px) {
  .hero-countdown .countdown-units {
    gap: 8px;
  }
  .hero-countdown .cu {
    padding: 10px 4px;
  }
}

.btn-disabled-grand-open {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Promo popup (legacy main.js parity; uses theme accent) */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 4500;
  display: grid;
  place-items: center;
  padding: 20px 14px;
}
.promo-modal[hidden] {
  display: none;
}
.promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}
.promo-modal__panel {
  position: relative;
  width: min(860px, 94vw);
  max-height: min(86vh, 920px);
  border-radius: 22px;
  border: 1px solid var(--accent-border);
  background: color-mix(in srgb, var(--bg-card) 86%, transparent);
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.8),
    var(--shadow-glow);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}
.promo-modal__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 260px at 50% 0%, var(--accent-dim), transparent 60%);
  pointer-events: none;
}
.promo-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: radial-gradient(
    circle at 30% 30%,
    var(--accent-glow),
    var(--accent-dim) 42%,
    color-mix(in srgb, var(--bg-base) 70%, transparent) 72%
  );
  color: var(--text-primary);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  transition: 0.18s ease;
}
.promo-modal__close:hover {
  filter: brightness(1.08);
}
.promo-modal__art {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 420px;
  height: min(68vh, 760px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.promo-modal__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px 22px 70px;
  text-align: center;
}
.promo-modal__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 320px at 50% 70%, rgba(0, 0, 0, 0.4), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.promo-modal__overlay > * {
  position: relative;
  z-index: 1;
}
.promo-modal__overlay-box {
  width: min(640px, 92%);
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--accent-border);
  background: radial-gradient(
    120% 160% at 50% 0%,
    var(--accent-dim),
    color-mix(in srgb, var(--bg-card) 72%, transparent)
  );
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.promo-modal__badge {
  justify-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-surface) 65%, transparent);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 0.62rem;
  text-transform: uppercase;
}
.promo-modal__subtitle {
  text-align: center;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 0.88rem;
  text-transform: uppercase;
}
.promo-modal__title {
  text-align: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 2px;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  text-transform: uppercase;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}
.promo-modal__overlay-box .promo-modal__badge {
  margin: 0 auto 8px;
}
.promo-modal__overlay-box .promo-modal__title {
  margin-top: 2px;
}
.promo-modal__overlay-box .promo-modal__subtitle {
  margin-top: 6px;
  opacity: 0.95;
}
.promo-modal__lines ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 6px;
}
.promo-modal__lines li {
  text-align: center;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.82rem;
}
.promo-modal__overlay-box .promo-modal__lines li {
  color: var(--text-primary);
  font-weight: 900;
  letter-spacing: 0.4px;
}
.promo-modal__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--accent-border);
  background: color-mix(in srgb, var(--bg-surface) 58%, transparent);
}
@media (max-width: 520px) {
  .promo-modal__panel {
    width: min(94vw, 520px);
  }
  .promo-modal__art {
    height: min(62vh, 520px);
    min-height: 360px;
  }
  .promo-modal__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .promo-modal__cta {
    width: 100%;
  }
}
.promo-modal__dont {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.82rem;
  user-select: none;
  min-width: 0;
}
.promo-modal__dont input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.promo-modal__switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.promo-modal__switch-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--bg-input) 55%, transparent);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.45);
}
.promo-modal__switch-thumb {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, background 0.18s ease;
}
.promo-modal__dont input:checked + .promo-modal__switch .promo-modal__switch-track {
  border-color: var(--accent-border);
  background: var(--accent-dim);
}
.promo-modal__dont input:checked + .promo-modal__switch .promo-modal__switch-thumb {
  transform: translate(20px, -50%);
  background: color-mix(in srgb, var(--accent) 55%, white);
}
.promo-modal__dont-text {
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.promo-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 78%, black),
    var(--accent) 48%,
    color-mix(in srgb, var(--accent) 72%, white)
  );
  box-shadow: 0 4px 20px var(--accent-glow);
  color: rgba(0, 0, 0, 0.92);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.72rem;
  white-space: nowrap;
}
.promo-modal__cta:hover {
  filter: brightness(1.05);
}
