/* Premium Minecraft network theme */
:root {
  color-scheme: dark;
  --bg: #090909;
  --bg-soft: #111111;
  --surface: rgba(21, 21, 21, 0.82);
  --surface-strong: rgba(25, 25, 25, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #b6b6b6;
  --purple: #11b7da;
  --purple-2: #63e7ff;
  --gold: #8aa4bf;
  --success: #34d399;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(17, 183, 218, 0.16), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(99, 231, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #090909 0%, #0d1116 45%, #090909 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(17, 183, 218, 0.35);
  color: #fff;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section--store-top {
  padding-top: 44px;
}

.section--store-top+.section {
  padding-top: 28px;
}

.panel--padded {
  padding: 28px;
  border-radius: 28px;
}

.section-header--flush {
  margin-bottom: 0;
}

.hero-actions--compact {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--purple);
  border-radius: 999px;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(9, 9, 9, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(17, 183, 218, 0.95), rgba(99, 231, 255, 0.9));
  box-shadow: 0 0 34px rgba(17, 183, 218, 0.38);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 30px;
  height: 30px;
}

.brand-copy span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-bottom: 3px;
}

.brand-copy strong {
  font-size: 1rem;
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(17, 183, 218, 0.14);
  border-radius: 14px;
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 12px rgba(99, 231, 255, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding: 12px 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(17, 183, 218, 0.12);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

.badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px var(--success);
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  will-change: transform;
}

.btn:hover,
.button:hover,
.btn:focus-visible,
.button:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 16px 34px rgba(17, 183, 218, 0.28);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.btn-gold {
  color: #07131a;
  background: linear-gradient(135deg, #dcf8ff, var(--gold));
  box-shadow: 0 16px 34px rgba(138, 164, 191, 0.2);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 70px 0 40px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  padding: 20px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.title {
  margin: 20px 0 14px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

.title span {
  background: linear-gradient(120deg, #083047 0%, #e6f7fb 45%, #083047 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6.5s linear infinite;
}

.subtitle {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.75;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.stat-card,
.feature-card,
.panel,
.store-card,
.vote-card,
.rule-card,
.support-card,
.glass-card,
.gallery-card,
.counter-card,
.leaderboard-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.stat-card {
  border-radius: 22px;
  padding: 18px;
}

.stat-card::after,
.feature-card::after,
.store-card::after,
.vote-card::after,
.rule-card::after,
.support-card::after,
.gallery-card::after,
.counter-card::after,
.leaderboard-card::after {
  content: "";
  position: absolute;
  inset: auto -22% -70% -22%;
  height: 120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 68%);
  opacity: 0;
  transition: 220ms ease;
  pointer-events: none;
}

.stat-card:hover::after,
.feature-card:hover::after,
.store-card:hover::after,
.vote-card:hover::after,
.rule-card:hover::after,
.support-card:hover::after,
.gallery-card:hover::after,
.counter-card:hover::after,
.leaderboard-card:hover::after {
  opacity: 1;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-value {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 800;
}

.stat-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.28), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.2), transparent 28%),
    rgba(10, 10, 10, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  pointer-events: none;
}

.hero-figure {
  position: absolute;
  inset: 50px 26px 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 18%, rgba(124, 58, 237, 0.35), transparent 28%),
    radial-gradient(circle at 65% 55%, rgba(245, 158, 11, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.92), rgba(9, 9, 9, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero-figure svg,
.hero-figure .bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure .floating-logo {
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(62vw, 360px);
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

.floating-note {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.note {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
}

.note span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
}

.section {
  padding: 88px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.section-lead {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.75;
}

.grid {
  display: grid;
  gap: 18px;
}

.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.store-card,
.vote-card,
.rule-card,
.support-card,
.gallery-card,
.counter-card,
.leaderboard-card {
  border-radius: 24px;
}

.feature-card {
  padding: 22px;
  min-height: 180px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-8px) rotateX(4deg);
  border-color: rgba(124, 58, 237, 0.34);
  box-shadow: 0 24px 64px rgba(124, 58, 237, 0.14), var(--shadow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(245, 158, 11, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  color: #ffffff;
}

.feature-card:hover .feature-icon {
  color: var(--purple-2);
}

.feature-card:hover .feature-icon svg {
  animation: tilt 0.8s ease;
}

.feature-card h3,
.store-card h3,
.vote-card h3,
.rule-card h3,
.support-card h3,
.gallery-card h3,
.counter-card h3,
.leaderboard-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.feature-card p,
.store-card p,
.vote-card p,
.rule-card p,
.support-card p,
.gallery-card p,
.counter-card p,
.leaderboard-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

/* ── Features Mega Card ────────────────────────────────── */
.features-mega-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 183, 218, 0.16);
  box-shadow: 0 20px 54px rgba(70, 110, 128, 0.10);
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.features-mega-card:hover {
  border-color: rgba(17, 183, 218, 0.28);
  box-shadow: 0 28px 72px rgba(17, 183, 218, 0.13);
}

.features-mega-card.is-open {
  border-color: rgba(17, 183, 218, 0.32);
  box-shadow: 0 32px 80px rgba(17, 183, 218, 0.15);
}

/* Header (the clickable strip) */
.features-mega-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  cursor: pointer;
  user-select: none;
  transition: background 180ms ease;
}

.features-mega-header:hover {
  background: rgba(17, 183, 218, 0.04);
}

.features-mega-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.features-mega-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(17, 183, 218, 0.18), rgba(99, 231, 255, 0.12));
  border: 1px solid rgba(17, 183, 218, 0.14);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.features-mega-card:hover .features-mega-icon {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(17, 183, 218, 0.18);
}

.features-mega-icon svg {
  width: 30px;
  height: 30px;
  stroke: #11b7da;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.features-mega-header h3 {
  margin: 0 0 4px;
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f1b22;
  letter-spacing: -0.02em;
}

.features-mega-header p {
  margin: 0;
  color: #5d7380;
  font-size: 0.92rem;
  line-height: 1.4;
}

.features-mega-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.features-count-badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #11b7da, #63e7ff);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(17, 183, 218, 0.22);
  white-space: nowrap;
}

.features-chevron {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 183, 218, 0.08);
  border: 1px solid rgba(17, 183, 218, 0.12);
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1), background 220ms ease;
}

.features-chevron svg {
  width: 18px;
  height: 18px;
  stroke: #11b7da;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.features-mega-card.is-open .features-chevron {
  transform: rotate(180deg);
  background: rgba(17, 183, 218, 0.16);
}

/* Expandable panel */
.features-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 480ms cubic-bezier(0.4, 0, 0.2, 1), opacity 320ms ease;
  opacity: 0;
}

.features-mega-card.is-open .features-panel {
  max-height: 1200px;
  opacity: 1;
}

.features-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 0 2px 2px;
  background: rgba(17, 183, 218, 0.06);
}

.features-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.92);
  transition: background 180ms ease, transform 180ms ease;
  cursor: default;
}

.features-panel-item:hover {
  background: rgba(17, 183, 218, 0.06);
}

.features-panel-item:hover .fp-icon {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 6px 16px rgba(17, 183, 218, 0.18);
}

.fp-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(17, 183, 218, 0.14), rgba(99, 231, 255, 0.08));
  border: 1px solid rgba(17, 183, 218, 0.10);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.fp-icon svg {
  width: 20px;
  height: 20px;
  stroke: #11b7da;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.features-panel-item h4 {
  margin: 0 0 3px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f1b22;
}

.features-panel-item p {
  margin: 0;
  font-size: 0.82rem;
  color: #5d7380;
  line-height: 1.55;
}

/* Responsive: panel grid */
@media (max-width: 1180px) {
  .features-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features-panel-grid {
    grid-template-columns: 1fr;
  }

  .features-mega-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
  }

  .features-mega-right {
    align-self: flex-end;
  }

  .features-mega-card.is-open .features-panel {
    max-height: 3000px;
  }
}

/* ── PvP Mega Card Variant (warm accent) ───────────────── */
.features-mega-card--pvp {
  margin-top: 18px;
}

.features-mega-card--pvp:hover {
  border-color: rgba(239, 68, 68, 0.24);
  box-shadow: 0 28px 72px rgba(239, 68, 68, 0.08);
}

.features-mega-card--pvp.is-open {
  border-color: rgba(239, 68, 68, 0.30);
  box-shadow: 0 32px 80px rgba(239, 68, 68, 0.10);
}

.features-mega-icon--pvp {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(251, 146, 60, 0.12));
  border-color: rgba(239, 68, 68, 0.14);
}

.features-mega-icon--pvp svg {
  stroke: #ef4444;
}

.features-mega-card--pvp:hover .features-mega-icon {
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.16);
}

.features-count-badge--pvp {
  background: linear-gradient(135deg, #ef4444, #fb923c);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.20);
}

.features-mega-card--pvp .features-chevron {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.12);
}

.features-mega-card--pvp .features-chevron svg {
  stroke: #ef4444;
}

.features-mega-card--pvp.is-open .features-chevron {
  background: rgba(239, 68, 68, 0.14);
}

.features-mega-card--pvp .features-panel-grid {
  background: rgba(239, 68, 68, 0.04);
}

.features-mega-card--pvp .features-panel-item:hover {
  background: rgba(239, 68, 68, 0.05);
}

.fp-icon--pvp {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(251, 146, 60, 0.08));
  border-color: rgba(239, 68, 68, 0.10);
}

.fp-icon--pvp svg {
  stroke: #ef4444;
}

.features-mega-card--pvp .features-panel-item:hover .fp-icon {
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.16);
}

/* ── Rank Perks Inline Panel ────────────────────────────── */

/* Expo-out easing — feels natural and springy without a spring library */
:root {
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card--rank {
  transition:
    border-color 400ms var(--ease-expo-out),
    box-shadow 400ms var(--ease-expo-out),
    transform 400ms var(--ease-expo-out);
}

.store-card--rank.perks-open {
  border-color: rgba(17, 183, 218, 0.32);
  box-shadow: 0 32px 72px rgba(17, 183, 218, 0.13);
}

/* ── Toggle button ── */
.rank-perks-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  /* clips the label crossfade */
}

/* Label text fades between states */
.rank-perks-toggle-text {
  display: inline-block;
  transition: opacity 200ms var(--ease-smooth), transform 200ms var(--ease-smooth);
}

.rank-perks-toggle[aria-expanded="true"] .rank-perks-toggle-text {
  opacity: 1;
  transform: none;
}

/* Chevron — spring overshoot via expo-out, slightly larger hit area */
.rank-perks-chevron {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 500ms var(--ease-expo-out);
  will-change: transform;
}

.rank-perks-chevron svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.store-card--rank.perks-open .rank-perks-chevron {
  transform: rotate(180deg);
}

/* ── Panel reveal ── */
@keyframes perk-item-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes perk-kit-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rank-perks-panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
  transform-origin: top center;
  transition:
    height 460ms var(--ease-expo-out),
    opacity 320ms var(--ease-smooth),
    transform 400ms var(--ease-expo-out),
    margin-top 460ms var(--ease-expo-out);
  margin-top: 0;
  will-change: height, opacity, transform;
}

.store-card--rank.perks-open .rank-perks-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  margin-top: 20px;
}

/* Staggered list items — tighter delay spacing for a snappier waterfall */
.store-card--rank.perks-open .rank-perks-list li {
  animation: perk-item-in 400ms var(--ease-expo-out) both;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(1) {
  animation-delay: 30ms;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(2) {
  animation-delay: 65ms;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(3) {
  animation-delay: 100ms;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(4) {
  animation-delay: 135ms;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(5) {
  animation-delay: 170ms;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(6) {
  animation-delay: 205ms;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(7) {
  animation-delay: 240ms;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(8) {
  animation-delay: 275ms;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(9) {
  animation-delay: 310ms;
}

.store-card--rank.perks-open .rank-perks-list li:nth-child(10) {
  animation-delay: 345ms;
}

/* Kit image slides in after the list settles */
.store-card--rank.perks-open .rank-perks-kit {
  animation: perk-kit-in 500ms var(--ease-expo-out) 220ms both;
}

/* ── Perks list ── */
.rank-perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rank-perks-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  color: #0f1b22;
  line-height: 1.6;
}

.rank-perks-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(17, 183, 218, 0.16), rgba(99, 231, 255, 0.10));
  color: #11b7da;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.rank-perks-kit {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 183, 218, 0.06), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(17, 183, 218, 0.10);
  padding: 12px;
  text-align: center;
}

.rank-perks-kit img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.10));
  transition: filter 300ms var(--ease-smooth), transform 300ms var(--ease-smooth);
}

.rank-perks-kit:hover img {
  filter: drop-shadow(0 12px 32px rgba(17, 183, 218, 0.20));
  transform: scale(1.03);
}

.counter-card {
  padding: 22px;
  text-align: left;
}

.counter-value {
  margin-top: 12px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 800;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: pointer;
  transition: 180ms ease;
}

.filter-chip[aria-pressed="true"],
.filter-chip:hover {
  color: #fff;
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.35);
}

.gallery-grid {
  columns: 3 280px;
  column-gap: 18px;
}

.gallery-card {
  break-inside: avoid;
  margin-bottom: 18px;
  padding: 0;
  cursor: zoom-in;
  transition: transform 180ms ease, border-color 180ms ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.28);
}

.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery-copy {
  padding: 16px 18px 18px;
}

.store-grid,
.vote-grid,
.rules-grid,
.support-grid,
.leaderboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.store-card,
.vote-card,
.rule-card,
.support-card,
.leaderboard-card {
  padding: 28px;
}

.item-top,
.vote-top,
.rule-top,
.support-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.price {
  color: #08141a;
  background: linear-gradient(135deg, #edfaff, #bfe9f5);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.25rem;
}

.item-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 18px;
}

/* Icons for rank items: preserve the image background, don't crop, use a square icon */
.item-image.item-icon {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  margin-bottom: 0;
  display: inline-block;
}

.store-card[data-category="crystals"] .item-image,
.store-card[data-category="crates"] .item-image {
  object-fit: contain;
}

/* ── Interactive Crate Quantity Stepper Controls ── */
.crate-qty-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 14px;
  margin: 14px 0 18px;
}

.crate-qty-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #2aa8f1 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 1 !important;
}

.crate-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crate-qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(17, 183, 218, 0.45);
  background: rgba(17, 183, 218, 0.18);
  color: #63e7ff;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  user-select: none;
}

.crate-qty-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  border-color: transparent;
  color: #07131a;
  box-shadow: 0 0 16px rgba(17, 183, 218, 0.6);
  transform: scale(1.08);
}

.crate-qty-btn:disabled {
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.crate-qty-input {
  width: 56px !important;
  height: 36px !important;
  line-height: 36px !important;
  background: #0d131d !important;
  border: 1.5px solid #11b7da !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  outline: none !important;
  font-family: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 0 10px rgba(17, 183, 218, 0.25) !important;
  -moz-appearance: textfield !important;
  opacity: 1 !important;
}

.crate-qty-input:focus {
  border-color: #63e7ff !important;
  box-shadow: 0 0 0 3px rgba(17, 183, 218, 0.4) !important;
  background: #111d2d !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.crate-qty-input::-webkit-outer-spin-button,
.crate-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Most Popular Badge ── */
.store-card {
  position: relative;
}

.popular-badge {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 10 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #11b7da, #63e7ff);
  color: #07131a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(17, 183, 218, 0.45);
  animation: popular-glow 2.5s ease-in-out infinite;
}

.popular-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

@keyframes popular-glow {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(17, 183, 218, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 24px rgba(99, 231, 255, 0.75);
    transform: scale(1.04);
  }
}



/* Ensure card children render above the background */
.store-card[data-category="ranks"]>* {
  position: relative;
  z-index: 1;
}

.store-card[data-category="ranks"] .item-top {
  align-items: center;
}

.store-card[data-category="ranks"] .item-image.item-icon {
  margin-right: 14px;
}

.store-actions,
.vote-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 14px;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress>span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--gold));
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
  padding: 0 18px;
  color: var(--muted);
}

.accordion-item[data-open="true"] .accordion-panel {
  max-height: 240px;
  padding-bottom: 18px;
}

.table-shell {
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table th,
.table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.table th:nth-child(2),
.table td:nth-child(2) {
  padding-right: 16px;
}

.table th:nth-child(3),
.table td:nth-child(3) {
  padding-left: 16px;
}

.table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.search-input,
.select,
.input,
.textarea {
  width: 100%;
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-input:focus,
.select:focus,
.input:focus,
.textarea:focus {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.search-input {
  max-width: 340px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.pagination .page-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
}

.page-button[aria-current="page"] {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.35);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.textarea {
  min-height: 160px;
  resize: vertical;
}

.helper {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer {
  padding: 28px 0 56px;
  color: #725f50;
  text-align: center;
}

.footer-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.footer-promo-card {
  position: relative;
  min-height: 146px;
  padding: 20px 22px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  color: #fff;
  background-color: #1a2340;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 44px rgba(55, 64, 106, 0.18);
}

.footer-promo-card:nth-child(1) {
  background-image:
    linear-gradient(135deg, rgba(13, 22, 47, 0.22), rgba(13, 22, 47, 0.82)),
    url("../assets/gallery/scene-1.svg");
}

.footer-promo-card:nth-child(2) {
  background-image:
    linear-gradient(135deg, rgba(13, 22, 47, 0.18), rgba(13, 22, 47, 0.84)),
    url("../assets/gallery/scene-2.svg");
}

.footer-promo-card:nth-child(3) {
  background-image:
    linear-gradient(135deg, rgba(13, 22, 47, 0.18), rgba(13, 22, 47, 0.84)),
    url("../assets/gallery/scene-3.svg");
}

.footer-promo-card:nth-child(4) {
  background-image:
    linear-gradient(135deg, rgba(13, 22, 47, 0.18), rgba(13, 22, 47, 0.84)),
    url("../assets/gallery/scene-4.svg");
}

.footer-promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.12), transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.07) 50%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

.footer-promo-card>* {
  position: relative;
  z-index: 1;
}

.footer-promo-mark {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--accent, #5b86ff);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
}

.footer-promo-mark svg {
  width: 34px;
  height: 34px;
  stroke: #fff;
  fill: currentColor;
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-promo-copy {
  margin-bottom: 2px;
}

.footer-promo-copy strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1.1;
}

.footer-promo-copy span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.95fr 0.75fr;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(231, 168, 88, 0.18);
}

.footer-brand-block {
  display: grid;
  gap: 14px;
}

.footer-brand-block p {
  margin: 0;
  max-width: 38ch;
  line-height: 1.7;
}

.footer-legal {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-legal strong {
  color: #201711;
}

.footer-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-column h4 {
  margin: 0 0 4px;
  color: #201711;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer-list {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.footer-list a {
  width: fit-content;
  color: #725f50;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #201711;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.footer-socials a[data-network="community"] {
  background: linear-gradient(135deg, #5b86ff, #7e92ff);
}

.footer-socials a[data-network="forum"] {
  background: linear-gradient(135deg, #ff5454, #ff7d54);
}

.footer-socials a[data-network="youtube"] {
  background: linear-gradient(135deg, #ff3e3e, #ff6b6b);
}

.footer-socials a[data-network="discord"] {
  background: linear-gradient(135deg, #8a5cff, #b05cff);
}

.footer-inner {
  display: grid;
  gap: 0;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #201711;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(124, 58, 237, 0.2), transparent 24%),
    linear-gradient(180deg, #090909, #050505);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--purple);
  border-right-color: var(--gold);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.22);
}

.particles,
.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.45);
  animation: drift linear infinite;
}

.parallax-layer .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.9;
}

.orb.one {
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.22);
  top: 4%;
  left: -8%;
  animation: float 12s ease-in-out infinite;
}

.orb.two {
  width: 250px;
  height: 250px;
  background: rgba(245, 158, 11, 0.16);
  bottom: 10%;
  right: -4%;
  animation: float 16s ease-in-out infinite reverse;
}

.orb.three {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  top: 30%;
  right: 18%;
  animation: float 14s ease-in-out infinite;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 6000;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
}

.modal.is-open {
  display: grid;
}

.modal-dialog {
  width: min(100%, 1100px);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(14, 14, 14, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.6);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.modal-body img {
  width: 100%;
  height: min(70svh, 760px);
  object-fit: cover;
}

.modal-close {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.hero-fade,
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -100vh, 0) scale(0.65);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tilt {
  0% {
    transform: rotate(0deg) scale(1);
  }

  40% {
    transform: rotate(10deg) scale(1.08);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

@media (max-width: 1180px) {

  .hero-grid,
  .store-grid,
  .vote-grid,
  .rules-grid,
  .support-grid,
  .leaderboard-grid,
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats,
  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-header,
  .navbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  body.nav-open {
    overflow: hidden;
  }

  .navbar {
    position: relative;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    color: #11b7da;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(17, 183, 218, 0.2);
    box-shadow: 0 10px 24px rgba(70, 110, 128, 0.12);
  }

  .nav-links {
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    display: grid;
    gap: 8px;
    max-height: min(70svh, 560px);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    z-index: 1200;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .store-grid,
  .vote-grid,
  .rules-grid,
  .support-grid,
  .leaderboard-grid,
  .features-grid,
  .hero-stats,
  .stats-strip,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-panel {
    min-height: 420px;
  }

  .floating-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, var(--max));
  }

  .section--store-top+.section {
    padding-top: 10px;
  }

  .title {
    font-size: clamp(2.55rem, 14vw, 4.4rem);
  }

  .section {
    padding: 72px 0;
  }

  .hero-actions,
  .store-actions,
  .vote-actions,
  .support-actions,
  .toolbar,
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 6px;
  }

  .toolbar>* {
    flex: 0 0 auto;
  }

  .toolbar .filter-chip {
    white-space: nowrap;
  }

  .search-input {
    max-width: none;
    min-width: 180px;
  }

  .table th,
  .table td {
    padding: 12px 10px;
  }

  .table th:nth-child(2),
  .table td:nth-child(2) {
    padding-right: 6px;
  }

  .table th:nth-child(3),
  .table td:nth-child(3) {
    padding-left: 6px;
  }

  .modal-body img {
    height: 54svh;
  }
}

/* Cyan network theme override */
:root {
  color-scheme: dark;
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(17, 183, 218, 0.16), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(99, 231, 255, 0.11), transparent 20%),
    linear-gradient(180deg, #f3fbfd 0%, #dfeef3 46%, #cfe2e8 100%);
  color: #0f1b22;
}

.site-header {
  background: rgba(246, 252, 254, 0.84);
  border-bottom: 1px solid rgba(17, 183, 218, 0.16);
}

.nav-links a,
.brand-copy span,
.badge,
.section-lead,
.feature-card p,
.store-card p,
.vote-card p,
.rule-card p,
.support-card p,
.gallery-card p,
.counter-card p,
.leaderboard-card p,
.helper,
.footer,
.accordion-panel,
.label-row,
.stat-meta,
.table th,
.table td {
  color: #5d7380;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: #0f1b22;
  background: rgba(17, 183, 218, 0.16);
}

.brand-copy strong,
.section-title,
.title,
.kicker,
.feature-card h3,
.store-card h3,
.vote-card h3,
.rule-card h3,
.support-card h3,
.gallery-card h3,
.counter-card h3,
.leaderboard-card h3,
.accordion-trigger,
.table th,
.page-button,
.modal-close {
  color: #0f1b22;
}

.badge,
.btn-secondary,
.btn-ghost,
.nav-toggle,
.search-input,
.select,
.input,
.textarea,
.table-shell,
.accordion-item,
.feature-card,
.store-card,
.vote-card,
.rule-card,
.support-card,
.gallery-card,
.counter-card,
.leaderboard-card,
.stat-card,
.panel {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(17, 183, 218, 0.14);
  box-shadow: 0 18px 40px rgba(70, 110, 128, 0.08);
}

.btn-secondary {
  color: #0f1b22;
}

.btn-primary {
  background: linear-gradient(135deg, #11b7da, #63e7ff);
  box-shadow: 0 16px 32px rgba(17, 183, 218, 0.24);
}

.btn-gold {
  background: linear-gradient(135deg, #eefcff, #bfe9f5);
  color: #0f1b22;
}

.hero {
  padding-top: 42px;
}

.hero-grid {
  gap: 24px;
}

.hero-copy {
  padding: 26px 8px 26px 0;
}

.kicker {
  border: 1px solid rgba(17, 183, 218, 0.2);
  background: rgba(255, 255, 255, 0.74);
}

.title span {
  background: linear-gradient(120deg, #083047 0%, #e6f7fb 45%, #083047 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6.5s linear infinite;
}

.hero-panel {
  min-height: 560px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 12%, rgba(17, 183, 218, 0.38), transparent 30%),
    radial-gradient(circle at 76% 28%, rgba(99, 231, 255, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(235, 249, 253, 0.88), rgba(205, 229, 237, 0.72));
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  opacity: 0.24;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  pointer-events: none;
}

.hero-figure {
  inset: 32px 24px 32px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.55), transparent 26%),
    radial-gradient(circle at 56% 46%, rgba(17, 183, 218, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(227, 246, 251, 0.52), rgba(175, 214, 226, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-figure .floating-logo {
  width: min(70vw, 430px);
  opacity: 0.92;
}

.floating-note {
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.note {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 183, 218, 0.15);
}

.orb.one {
  background: rgba(17, 183, 218, 0.18);
}

.orb.two {
  background: rgba(99, 231, 255, 0.18);
}

.orb.three {
  background: rgba(255, 255, 255, 0.22);
}

.filter-chip,
.page-button {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 183, 218, 0.14);
  color: #5d7380;
}

.filter-chip[aria-pressed="true"],
.filter-chip:hover,
.page-button[aria-current="page"] {
  color: #0f1b22;
  background: rgba(17, 183, 218, 0.18);
  border-color: rgba(17, 183, 218, 0.24);
}

.price {
  color: #0f1b22;
  background: linear-gradient(135deg, #edfaff, #bfe9f5);
}

.progress {
  background: rgba(17, 183, 218, 0.14);
}

.progress>span {
  background: linear-gradient(90deg, #11b7da, #63e7ff);
}

.accordion-trigger,
.modal-close {
  color: #0f1b22;
}

.table tr:hover td {
  background: rgba(17, 183, 218, 0.06);
}

.loading-screen {
  background:
    radial-gradient(circle at 50% 25%, rgba(17, 183, 218, 0.2), transparent 24%),
    linear-gradient(180deg, #f4fbfd, #dfeef3);
}

.loader {
  border-color: rgba(17, 183, 218, 0.14);
  border-top-color: #11b7da;
  border-right-color: #63e7ff;
}

.modal {
  background: rgba(11, 19, 24, 0.66);
}

.modal-dialog {
  background: rgba(247, 252, 254, 0.98);
  border-color: rgba(17, 183, 218, 0.14);
}

.nav-links {
  gap: 10px;
}

@media (max-width: 820px) {
  .site-header {
    z-index: 1100;
  }

  .navbar {
    flex-wrap: nowrap;
  }

  .nav-links {
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 14px;
    background: rgba(247, 252, 254, 0.98);
    border: 1px solid rgba(17, 183, 218, 0.14);
    border-radius: 22px;
    box-shadow: 0 20px 44px rgba(70, 110, 128, 0.14);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    display: grid;
    gap: 8px;
    max-height: min(70svh, 560px);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    z-index: 1200;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 183, 218, 0.1);
  }

  .nav-cta {
    display: none;
  }

  .hero-panel {
    min-height: 440px;
  }
}

/* Reference-style hero composition */
.hero {
  padding: 26px 0 18px;
}

.hero-shell {
  position: relative;
  display: grid;
  gap: 20px;
}

.hero-banner {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #d9f4fb 0%, #8fd6e8 50%, #5cb8cf 100%);
  box-shadow: 0 28px 80px rgba(72, 135, 153, 0.22);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 90px 100%, 100% 100px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 34%, transparent 70%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.hero-banner__content {
  position: absolute;
  z-index: 2;
  left: 48px;
  top: 104px;
  width: min(52%, 560px);
  color: #08141a;
}

.hero-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-mini-mark {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(72, 135, 153, 0.22);
}

.hero-mini-mark img {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  margin: 10;
  transform: translateY(19%);
}

@media (max-width: 820px) {
  .hero-mini-mark img {
    transform: translateX(4%);
  }
}

.hero-brand-row strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.hero-brand-row span {
  display: block;
  font-size: 0.76rem;
  opacity: 0.86;
}

.hero-banner .kicker {
  color: #0f1b22;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  margin-bottom: 16px;
}

.hero-banner .title {
  margin-top: 0;
  margin-bottom: 14px;
  color: #08141a;
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 0.95;
}

.hero-banner .subtitle {
  max-width: 34ch;
  color: rgba(8, 20, 26, 0.92);
  margin-bottom: 24px;
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  line-height: 1.42;
}

.hero-banner .hero-actions {
  margin: 0;
}

.hero-banner .btn-secondary,
.hero-banner .btn-ghost {
  color: #08141a;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-banner .btn-gold {
  color: #08141a;
}

.hero-banner__art {
  position: absolute;
  inset: 0;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-status-card {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 28px;
  /* raise the inner frame up */
  width: min(420px, calc(100% - 48px));
  padding: 22px 22px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 183, 218, 0.18);
  box-shadow: 0 30px 60px rgba(17, 183, 218, 0.12);
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px 16px;
  align-items: center;
}

.hero-status-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-status-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 48px 90px rgba(17, 183, 218, 0.14);
}

.status-icon {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #11b7da;
  box-shadow: 0 14px 30px rgba(17, 183, 218, 0.24);
}

.status-icon img {
  width: 34px;
  height: 34px;
}

.status-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.status-copy span {
  display: block;
  margin-top: 4px;
  color: #5d7380;
  font-size: 0.82rem;
}

.status-copy span b {
  color: #0f1b22;
}

.status-ip {
  justify-self: end;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 183, 218, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status-bar {
  grid-column: 2 / 4;
  height: 4px;
  border-radius: 999px;
  background: rgba(17, 183, 218, 0.14);
  overflow: hidden;
}

.status-bar span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #11b7da, #63e7ff);
}

.hero-join-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 183, 218, 0.14);
  box-shadow: 0 10px 28px rgba(72, 135, 153, 0.08);
}

.join-strip__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.join-strip__avatar {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.12));
}

.join-strip__left h2 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.join-strip__left p {
  margin: 0;
  color: #5d7380;
  max-width: 42ch;
  line-height: 1.45;
}

.join-strip__right {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.join-version {
  color: #5d7380;
  font-size: 0.9rem;
  font-weight: 700;
}

.join-server-btn {
  min-width: 200px;
  padding-inline: 24px;
}

/* Bedrock button styling: make the text visible with site blue */
.bedrock-btn {
  color: var(--purple);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 183, 218, 0.12);
  box-shadow: 0 8px 24px rgba(17, 183, 218, 0.06);
  font-weight: 800;
}

.bedrock-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
}

.hero-live-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-live-row .stat-card {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .hero-banner__content {
    width: min(58%, 520px);
  }

  .hero-status-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 18px 18px;
  }

  .hero-live-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-banner__content {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    padding: 28px 20px 0;
  }

  .hero-banner__art {
    display: none;
  }

  .hero-art {
    object-position: center center;
  }

  .hero-status-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    right: auto;
    width: min(420px, calc(100% - 48px));
    margin: 0;
    grid-template-columns: 70px 1fr;
  }

  .status-bar,
  .status-ip {
    grid-column: auto;
    justify-self: start;
  }

  .hero-join-strip {
    grid-template-columns: 1fr;
  }

  .join-strip__left {
    align-items: flex-start;
  }

  .join-strip__avatar {
    width: 108px;
    height: 108px;
  }

  .join-strip__right {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .hero-live-row {
    grid-template-columns: 1fr;
  }

  /* On small phones place the status card below the hero content
     so it doesn't overlap the action buttons. */
  .hero-status-card {
    position: relative;
    left: auto;
    transform: none;
    bottom: auto;
    width: calc(100% - 32px);
    margin: 14px 16px 0;
    grid-template-columns: 64px 1fr;
  }

  .hero-banner {
    min-height: 0;
  }

  .join-server-btn {
    min-width: 0;
    width: 100%;
  }

  .hero-banner__content {
    padding-inline: 18px;
  }

  .hero-status-card {
    grid-template-columns: 64px 1fr;
  }

  .status-icon {
    width: 64px;
    height: 64px;
  }

  .hero-join-strip {
    padding: 16px;
  }
}

/* Footer — mobile responsiveness tweaks */
@media (max-width: 820px) {
  .footer {
    padding: 20px 0 32px;
  }

  .footer-promo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-promo-card {
    min-height: 120px;
    padding: 16px;
    border-radius: 18px;
    align-items: center;
  }

  .footer-promo-mark {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    font-size: 0.86rem;
  }

  .footer-promo-copy strong {
    font-size: 1.03rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 18px;
  }

  .footer-brand-block p {
    max-width: 100%;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-list a {
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 16px 0 24px;
  }

  .footer-promo-card {
    min-height: 100px;
    padding: 12px;
  }

  .footer-promo-mark {
    width: 56px;
    height: 56px;
    font-size: 0.78rem;
  }

  .footer-main {
    gap: 12px;
  }

  .footer-column h4 {
    font-size: 0.86rem;
  }

  .footer-list a {
    font-size: 0.92rem;
  }
}

/* Mobile: unify hero action buttons color (Join/Store/Discord/Copy IP) */
@media (max-width: 560px) {
  .hero-actions .btn {
    background: #ffffff !important;
    color: var(--purple) !important;
    border: 1px solid rgba(17, 183, 218, 0.12) !important;
    box-shadow: none !important;
    padding: 12px 16px;
    border-radius: 999px;
  }

  .hero-actions .btn.btn-ghost {
    background: #ffffff !important;
    color: var(--purple) !important;
    border: 1px solid rgba(17, 183, 218, 0.12) !important;
  }
}