:root {
  color-scheme: dark;

  /* Backgrounds — near-black navy night sky, lit at top, deepening downward */
  --space-900: #04060e;
  --space-850: #070b16;
  --space-800: #0a0f1e;
  --space-700: #0e1730;
  --void: #04060e;

  /* Surfaces — frosted glass panes (used with backdrop-filter) */
  --glass: rgba(17, 24, 43, 0.72);
  --glass-2: rgba(22, 31, 56, 0.78);
  --glass-inset: rgba(9, 14, 28, 0.92);
  --surface-solid: #111728;

  /* Borders / edges */
  --line: rgba(150, 180, 222, 0.14);
  --line-strong: rgba(150, 180, 222, 0.24);
  --rim: rgba(96, 205, 255, 0.42);
  --bevel: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #eaf1ff;
  --muted: #a6b6d6;
  --soft: #6e7fa3;

  /* Accents */
  --cyan: #5cc8ff;
  --cyan-bright: #8fe0ff;
  --cyan-deep: #2e8bd8;
  --azure: #3d7bff;
  --silver-1: #f4f8ff;
  --silver-2: #c7d4e8;
  --silver-3: #8a97b5;

  /* Aurora — decorative only */
  --aurora-teal: #3fe0c8;
  --aurora-violet: #7c6bff;

  /* Gold — rare: CTA, prices, premium only */
  --gold: #ffc85c;
  --gold-2: #ffb23e;
  --line-gold: rgba(255, 200, 92, 0.4);

  /* Status */
  --online: #5cffc2;
  --warn: #ffc24b;
  --danger: #ff6b7a;

  /* Glow + shadow */
  --glow-cyan: 0 0 28px rgba(92, 200, 255, 0.28);
  --glow-gold: 0 0 22px rgba(255, 200, 92, 0.3);
  --shadow: 0 24px 60px rgba(2, 4, 10, 0.62);
  --shadow-soft: 0 14px 34px rgba(2, 4, 10, 0.4);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--space-850);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
}

::selection {
  color: #04060e;
  background: var(--cyan);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

#app:focus {
  outline: none;
}

/* ---------- Cosmic backdrop ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.sky-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--space-700) 0%, var(--space-800) 46%, var(--space-900) 100%);
}

.sky-aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 78% at 50% -8%,
    rgba(92, 200, 255, 0.12),
    rgba(92, 200, 255, 0.04) 32%,
    transparent 58%
  );
  animation: aura-pulse 9s ease-in-out infinite;
}

.sky-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
}

.aurora-a {
  top: -10%;
  right: -6%;
  width: 52vw;
  height: 46vw;
  background: radial-gradient(circle at 50% 50%, rgba(61, 123, 255, 0.16), rgba(63, 224, 200, 0.08) 45%, transparent 70%);
  animation: drift-a 38s ease-in-out infinite;
}

.aurora-b {
  bottom: -12%;
  left: -10%;
  width: 48vw;
  height: 44vw;
  background: radial-gradient(circle at 50% 50%, rgba(124, 107, 255, 0.12), transparent 68%);
  animation: drift-b 34s ease-in-out infinite;
}

.sky-stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-image:
    radial-gradient(1px 1px at 40px 60px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 130px 170px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 220px 50px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 300px 240px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 80px 300px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 360px 130px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 180px 360px, rgba(255, 255, 255, 0.3), transparent);
  background-size: 420px 420px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 88%);
}

.sky-stars--bright {
  background-image:
    radial-gradient(1.6px 1.6px at 90px 110px, rgba(143, 224, 255, 0.95), transparent),
    radial-gradient(1.6px 1.6px at 280px 200px, rgba(143, 224, 255, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 200px 330px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.6px 1.6px at 420px 70px, rgba(143, 224, 255, 0.7), transparent);
  background-size: 560px 560px;
  animation: twinkle 5s ease-in-out infinite;
}

/* ---------- Shell ---------- */
.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(16px, 6vw, 78px);
  border-bottom: 1px solid rgba(96, 205, 255, 0.16);
  background: rgba(8, 12, 24, 0.72);
  box-shadow: 0 10px 30px rgba(2, 4, 10, 0.3);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

/* Pure-CSS zenith star glyph (brand + footer + corners) */
.brand-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.brand-glyph::before,
.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, #fff 0%, var(--cyan) 24%, transparent 62%);
  border-radius: 50%;
}

.brand-glyph::after {
  background:
    linear-gradient(0deg, transparent 44%, var(--cyan-bright) 50%, transparent 56%),
    linear-gradient(90deg, transparent 44%, var(--cyan-bright) 50%, transparent 56%);
  filter: drop-shadow(0 0 4px rgba(92, 200, 255, 0.7));
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--silver-1) 0%, var(--silver-2) 52%, var(--silver-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  color: var(--soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

nav a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(92, 200, 255, 0.6);
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 160ms ease, transform 160ms ease;
}

nav a:hover {
  color: var(--text);
}

nav a.active {
  color: var(--text);
}

nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-button {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--glass-2);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

/* ---------- Main layout ---------- */
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 64px;
  flex: 1 0 auto;
}

/* ---------- Section header pattern ---------- */
.section-head {
  margin-bottom: 22px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.kicker::before {
  content: "✦";
  color: var(--cyan);
  font-size: 12px;
  text-shadow: 0 0 8px rgba(92, 200, 255, 0.6);
}

.kicker .lead {
  color: var(--cyan);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--text);
}

h1 {
  max-width: 14ch;
  font-size: clamp(44px, 6.8vw, 76px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

.chrome {
  background: linear-gradient(180deg, var(--silver-1) 0%, var(--silver-2) 52%, var(--silver-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1.chrome {
  text-shadow: 0 0 40px rgba(92, 200, 255, 0.14);
}

h2 {
  font-size: clamp(26px, 3.5vw, 31px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.62;
}

.muted {
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 520px;
  padding-top: clamp(40px, 7vw, 96px);
  margin-bottom: clamp(28px, 5vw, 48px);
}

.zenith {
  position: absolute;
  top: -8px;
  left: clamp(40px, 14vw, 220px);
  width: 6px;
  height: 6px;
  pointer-events: none;
}

.zenith::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(92, 200, 255, 0.45) 16%, transparent 68%);
  opacity: 0.5;
}

.zenith-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px #fff, 0 0 22px 6px rgba(143, 224, 255, 0.9);
  animation: twinkle-core 6s ease-in-out infinite;
}

.zenith-core::before,
.zenith-core::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(var(--ang, 0deg), transparent, rgba(143, 224, 255, 0.9) 48%, rgba(143, 224, 255, 0.9) 52%, transparent);
}

.zenith-core::before {
  width: 2px;
  height: 200px;
  background: linear-gradient(180deg, transparent, rgba(143, 224, 255, 0.85) 50%, transparent);
}

.zenith-core::after {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(143, 224, 255, 0.85) 50%, transparent);
}

.zenith-meridian {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 1px;
  height: 280px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(143, 224, 255, 0.7), transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy .lede {
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.telemetry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--soft);
}

.telemetry .tm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telemetry .tm + .tm {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.telemetry strong {
  color: var(--muted);
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(92, 255, 194, 0.5);
  animation: pulse-dot 2.4s ease-out infinite;
}

/* Hero side card — a clean framed emblem with a single live-status line */
.hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 var(--bevel);
  pointer-events: none;
}

.hero-card:hover {
  transform: translateY(-3px);
  border-color: var(--rim);
  box-shadow: var(--shadow), var(--glow-cyan);
}

.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(240px, 78%);
  aspect-ratio: 1;
}

.hero-emblem::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 200, 255, 0.22), transparent 66%);
  filter: blur(22px);
}

.hero-emblem img {
  position: relative;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--soft);
}

.hero-card-status strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--glass-2);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.button:hover {
  border-color: var(--rim);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.button.primary {
  border-color: transparent;
  color: #0a0f1e;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
}

.button.primary:hover {
  box-shadow: var(--glow-gold);
  background: linear-gradient(180deg, #ffd680, var(--gold));
}

.button.ghost {
  background: transparent;
  color: var(--silver-2);
}

.button.ghost:hover {
  color: var(--text);
  box-shadow: none;
  border-color: var(--line-strong);
}

.button.danger {
  border-color: rgba(255, 107, 122, 0.4);
  color: #ffd6da;
  background: transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Status strip ---------- */
.server-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.stat {
  position: relative;
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  color: inherit;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stat::after {
  content: "✦";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  color: var(--soft);
  transition: color 180ms ease;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--rim);
  box-shadow: var(--shadow-soft), var(--glow-cyan);
}

.stat:hover::after {
  color: var(--cyan);
}

.stat .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.stat .value {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
}

.stat .value.chrome {
  background: linear-gradient(180deg, var(--silver-1), var(--silver-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The IP is long text, not a stat number — size it to fit the tile on one line */
.stat .value.ip {
  font-size: clamp(15px, 1.7vw, 20px);
  letter-spacing: 0;
  word-break: break-word;
}

.stat small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.stat.copyable {
  cursor: pointer;
}

.stat .copy-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat.copied {
  border-color: var(--rim);
  box-shadow: var(--glow-cyan);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.feature-card {
  min-height: 160px;
  padding: 22px;
}

.feature-card .kicker {
  margin-bottom: 14px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

/* ---------- Generic card / panel system ---------- */
.panel,
.card,
.notice,
.feature-card,
.mode-card,
.package,
.vote-card,
.form-panel,
.faq-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .panel,
  .card,
  .notice,
  .feature-card,
  .mode-card,
  .package,
  .vote-card,
  .form-panel,
  .faq-item,
  .stat,
  .hero-card,
  .topbar,
  .tab,
  .tab.active {
    background: var(--surface-solid);
  }
}

.panel,
.card,
.notice,
.feature-card,
.mode-card,
.package,
.vote-card,
.form-panel {
  /* frosted top bevel */
}

.panel::before,
.card::before,
.feature-card::before,
.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 var(--bevel);
  pointer-events: none;
}

.panel {
  padding: clamp(20px, 3vw, 26px);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header p {
  margin-top: 7px;
  color: var(--muted);
}

.card {
  padding: 20px;
}

.card p,
.notice p,
.rule-card p,
.faq-item p,
.feature-card p,
.vote-card p {
  color: var(--muted);
}

.card.interactive:hover,
.feature-card.interactive:hover {
  transform: translateY(-2px);
  border-color: var(--rim);
  box-shadow: var(--shadow-soft), var(--glow-cyan);
}

/* ---------- Mode cards ---------- */
.mode-card {
  overflow: hidden;
  padding: 20px;
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
}

.mode-card.sky::after {
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
}

.mode-card.chunk::after {
  background: linear-gradient(180deg, var(--azure), #2a5bd0);
}

.mode-card .panel-header {
  margin-bottom: 12px;
}

.source-note {
  margin-top: 16px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ---------- Announcements / notices ---------- */
.notice {
  display: grid;
  gap: 14px;
  align-items: start;
  padding: 20px;
}

.notice + .notice {
  margin-top: 14px;
}

.notice-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.notice-content {
  margin-top: 10px;
  color: var(--text);
}

.notice-content p,
.notice-content ul,
.notice-content ol,
.notice-content blockquote,
.notice-content pre {
  margin: 10px 0;
}

.notice-content h2,
.notice-content h3 {
  margin: 16px 0 8px;
}

.notice-content a {
  color: var(--cyan);
}

.notice-content img {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.notice-content blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 12px;
  color: var(--muted);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-inset);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge.plain::before {
  display: none;
}

.badge.green {
  color: var(--online);
  border-color: rgba(92, 255, 194, 0.3);
}

.badge.teal {
  color: var(--cyan);
  border-color: rgba(92, 200, 255, 0.3);
}

.badge.azure {
  color: var(--azure);
  border-color: rgba(61, 123, 255, 0.35);
}

.badge.rose {
  color: var(--danger);
  border-color: rgba(255, 107, 122, 0.35);
}

.badge.gold {
  color: #0a0f1e;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-color: transparent;
}

.badge.gold::before {
  display: none;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Empty / error ---------- */
.empty,
.error {
  padding: 18px;
  border: 1px dashed rgba(150, 180, 222, 0.28);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}

.error {
  border-color: rgba(255, 107, 122, 0.42);
  color: #ffd6da;
}

/* ---------- Disclaimers ---------- */
.disclaimer {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  background: var(--glass-inset);
}

.disclaimer li {
  list-style: none;
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
}

.disclaimer li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--cyan);
  font-size: 11px;
}

.disclaimer ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.tab.active {
  color: var(--text);
  border-color: var(--rim);
  background: rgba(92, 200, 255, 0.1);
}

/* ---------- Rules ---------- */
.rule-list {
  display: grid;
  gap: 14px;
}

.rule-card {
  position: relative;
  padding: 20px 20px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass-inset);
}

.rule-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
}

.rule-card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.rule-card h3 .rule-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.rule-card p {
  line-height: 1.62;
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 13px;
  transition: transform 200ms ease;
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.62;
}

/* ---------- Punishments table ---------- */
.table-wrap {
  overflow-x: auto;
}

.punishment-table {
  width: 100%;
  border-collapse: collapse;
}

.punishment-table th,
.punishment-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.punishment-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.punishment-table td {
  color: var(--muted);
  font-size: 14px;
}

.punishment-table td.player {
  color: var(--text);
  font-weight: 500;
}

.punishment-table .type {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---------- Store ---------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.package {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 20px;
}

.package img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

.package h3 {
  margin-bottom: 6px;
}

.package .price {
  margin: 8px 0 10px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--cyan);
}

.package p {
  color: var(--muted);
  font-size: 14px;
}

.package .button {
  margin-top: auto;
}

.package.premium {
  border-color: var(--line-gold);
}

.package.premium .price {
  color: var(--gold);
}

.package.premium:hover {
  box-shadow: var(--shadow-soft), var(--glow-gold);
}

/* ---------- Vote ---------- */
.vote-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.vote-card {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vote-card .button {
  margin-top: auto;
}

/* ---------- Forms ---------- */
.form-panel {
  padding: 20px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--glass-inset);
}

.field input::placeholder {
  color: var(--soft);
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

/* ---------- Footer ---------- */
.site-footer {
  flex: 0 0 auto;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(4, 6, 14, 0.6));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-ip {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-ip:hover {
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.footer-links a {
  color: var(--silver-3);
  font-size: 13px;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--soft);
}

.footer-space {
  height: 28px;
}

/* ---------- Entrance animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 360ms ease-out forwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}

/* ---------- Keyframes ---------- */
@keyframes aura-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 5%) scale(1.06); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, -4%) scale(1.08); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes twinkle-core {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(92, 255, 194, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(92, 255, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 255, 194, 0); }
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .server-strip,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto auto;
    padding: 0 18px;
  }

  .menu-button {
    display: grid;
  }

  nav {
    grid-column: 1 / -1;
    display: none;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 0 14px;
  }

  nav.open {
    display: flex;
  }

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

  .hero {
    padding-top: clamp(56px, 16vw, 96px);
  }

  .hero-card {
    transform: none;
  }

  .zenith {
    left: 50%;
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1180px);
  }

  .brand-word {
    display: none;
  }

  .server-strip,
  .feature-grid,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
