/* =========================================================
   VoltUHC website — main stylesheet
   Change the colors here and the whole site updates.
   ========================================================= */
:root {
  --bg: hsl(270 60% 4%);
  --fg: hsl(270 40% 92%);
  --card: hsl(270 30% 9%);
  --secondary: hsl(270 30% 14%);
  --muted: hsl(270 25% 65%);
  --border: hsl(270 30% 18%);
  --primary: hsl(271 91% 65%);
  --primary-rgb: 168, 85, 247;
  --on-primary: #fff;
  --green: #34d399;

  --font-heading: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg.icon { width: 1em; height: 1em; flex-shrink: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.font-heading { font-family: var(--font-heading); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.primary { color: var(--primary); }

/* ---------- Small labels & headings ---------- */
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 .75rem;
}
.h2 {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; margin: 0;
}
.lead { color: var(--muted); margin: 1rem 0 0; max-width: 36rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border-radius: 999px; font-weight: 700; transition: transform .3s, background .3s, color .2s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); padding: .8rem 1.75rem; font-size: .9rem; }
.btn-primary:hover { transform: scale(1.03); }
.btn-outline {
  border: 1px solid rgba(var(--primary-rgb), .3); background: rgba(46, 33, 61, .4);
  padding: .6rem 1.25rem; font-size: .875rem; font-weight: 600;
}
.btn-outline:hover { background: rgba(46, 33, 61, .9); }
.btn-dot {
  display: inline-flex; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--primary); color: #fff; align-items: center; justify-content: center; font-size: .7rem;
}
.pulse-glow { animation: pulse-glow 2.6s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .45), 0 0 24px rgba(var(--primary-rgb), .35); }
  50% { box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0), 0 0 40px rgba(var(--primary-rgb), .55); }
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid rgba(var(--primary-rgb), .18); border-radius: 1.5rem;
  background: rgba(20, 15, 30, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: background .4s, border-color .4s;
}
.site-header.scrolled { background: rgba(10, 4, 16, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(var(--primary-rgb), .15); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { position: relative; display: flex; align-items: center; }
.logo::before {
  content: ""; position: absolute; inset: -.75rem; z-index: -1; border-radius: 999px;
  background: rgba(var(--primary-rgb), .2); filter: blur(20px);
}
.logo img { height: 3rem; width: auto; filter: drop-shadow(0 0 14px rgba(var(--primary-rgb), .6)); transition: transform .3s; }
.logo:hover img { transform: scale(1.05); }
.nav-links { display: none; gap: .25rem; }
.nav-links a {
  padding: .5rem .9rem; font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.nav-store { padding: .6rem 1.25rem; font-size: .875rem; }
.menu-btn {
  display: flex; width: 2.5rem; height: 2.5rem; border-radius: 50%; align-items: center; justify-content: center;
  border: 1px solid rgba(var(--primary-rgb), .3); color: var(--primary); font-size: 1.25rem;
}
.mobile-menu {
  display: none; flex-direction: column; padding: .5rem 1.5rem 1.25rem;
  background: rgba(10, 4, 16, .96); border-bottom: 1px solid rgba(var(--primary-rgb), .15);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: .8rem 0; font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (min-width: 640px) { .logo img { height: 3.5rem; } }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: blur(40px); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--primary-rgb), .22), transparent 62%), rgba(10, 4, 16, .65);
}
.hero-inner { position: relative; padding: 7rem 1.5rem 5rem; text-align: center; width: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  border: 1px solid rgba(var(--primary-rgb), .3); background: rgba(var(--primary-rgb), .1);
  padding: .375rem 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--primary);
}
.hero h1 {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -.025em; line-height: .95;
  font-size: clamp(3rem, 11vw, 6rem); margin: 1.5rem 0 0;
  text-shadow: 0 0 40px rgba(var(--primary-rgb), .45);
}
.hero h1 span { color: var(--primary); }
.hero p.lead { margin: 1.5rem auto 0; max-width: 36rem; font-size: 1.05rem; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero-actions .btn-primary { padding: .9rem 2.25rem; font-size: 1rem; }
.copy-ip { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .875rem; font-weight: 600; letter-spacing: .05em; color: rgba(235, 226, 243, .8); transition: color .2s; }
.copy-ip:hover { color: var(--primary); }
.copy-ip .icon { color: var(--muted); }

.countdown { margin: 3rem auto 0; max-width: 28rem; }
.countdown .eyebrow { text-align: center; color: rgba(var(--primary-rgb), .8); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.countdown-box { border: 1px solid rgba(var(--primary-rgb), .2); border-radius: 1rem; background: rgba(20, 15, 30, .5); backdrop-filter: blur(12px); padding: .75rem .5rem; }
.countdown-box .num { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown-box .unit { margin-top: .25rem; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 640px) { .countdown-grid { gap: .75rem; } .countdown-box .num { font-size: 1.9rem; } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-sm { padding: 5rem 0; }
.section-head { margin-bottom: 4rem; max-width: 42rem; }

.features { display: flex; flex-direction: column; gap: 5rem; }
.feature { display: grid; gap: 2rem; align-items: center; }
.feature-media {
  position: relative; height: 16rem; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), .2);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  border-style: dashed; background: rgba(20, 15, 30, .3);
}
.placeholder-icon { display: flex; width: 3.5rem; height: 3.5rem; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid rgba(var(--primary-rgb), .3); background: rgba(var(--primary-rgb), .1); color: rgba(var(--primary-rgb), .7); font-size: 1.75rem; }
.placeholder-text { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.feature-num { font-family: var(--font-mono); font-size: .875rem; font-weight: 700; color: rgba(var(--primary-rgb), .6); }
.feature-tag { margin: .5rem 0 0; font-size: .75rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: rgba(var(--primary-rgb), .8); }
.feature h3 { margin: .5rem 0 0; font-family: var(--font-heading); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.feature p.desc { margin: .75rem 0 0; max-width: 28rem; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.feature .btn-outline { margin-top: 1.5rem; }
@media (min-width: 640px) { .feature-media { height: 20rem; } .features { gap: 7rem; } .section { padding: 8rem 0; } }
@media (min-width: 1024px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature.flip .feature-media { order: 2; }
}

.steps-card { padding: 2rem; }
.steps { display: grid; gap: 2rem; }
.step-top { display: flex; align-items: center; gap: .75rem; }
.step-icon { display: flex; width: 2.75rem; height: 2.75rem; border-radius: .75rem; background: var(--primary); color: #fff; align-items: center; justify-content: center; font-size: 1.25rem; }
.step h3 { margin: 1rem 0 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.step p { margin: .5rem 0 0; font-size: .875rem; line-height: 1.65; color: var(--muted); }
@media (min-width: 640px) { .steps-card { padding: 3rem; } }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Server status */
.status-card { padding: 2rem; }
.status-row { display: flex; flex-direction: column; gap: 2rem; }
.status-left { display: flex; align-items: flex-start; gap: 1rem; }
.status-icon { display: flex; width: 3.5rem; height: 3.5rem; flex-shrink: 0; border-radius: 1rem; align-items: center; justify-content: center; font-size: 1.75rem; background: rgba(16, 185, 129, .15); color: var(--green); }
.status-card.offline .status-icon { background: rgba(239, 68, 68, .15); color: #f87171; }
.status-card h2 { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.status-addr { display: flex; align-items: center; gap: .5rem; margin: .375rem 0 0; font-family: var(--font-mono); font-size: .875rem; color: var(--muted); flex-wrap: wrap; }
.status-addr .ver { color: rgba(var(--primary-rgb), .7); }
.status-right { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.players { display: flex; align-items: baseline; gap: .5rem; }
.players .count { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.players .max { font-family: var(--font-mono); font-size: 1.1rem; color: var(--muted); }
.players .icon { color: var(--primary); font-size: 1.25rem; align-self: center; }
.live { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 500; color: var(--muted); }
.live-dot { position: relative; width: .5rem; height: .5rem; }
.live-dot::before, .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.live-dot::before { animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; opacity: .7; }
.status-card.offline .live-dot::before, .status-card.offline .live-dot::after { background: #f87171; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.status-note { margin: 2rem 0 0; font-size: .75rem; color: var(--muted); }
@media (min-width: 640px) { .status-card { padding: 2.5rem; } }
@media (min-width: 1024px) {
  .status-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .status-right { align-items: flex-end; }
}

/* Staff application */
.staff-grid { display: grid; gap: 3rem; align-items: center; }
.icon-badge { display: flex; width: 3rem; height: 3rem; border-radius: .75rem; align-items: center; justify-content: center; border: 1px solid rgba(var(--primary-rgb), .3); background: rgba(var(--primary-rgb), .1); color: var(--primary); font-size: 1.5rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .75rem; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: var(--muted); }
.checklist .icon { color: var(--primary); margin-top: .2rem; }
.form-card { padding: 1.5rem; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: .4rem; border: 1px solid var(--border); background: transparent;
  color: var(--fg); padding: .5rem .75rem; font: inherit; font-size: .9rem;
}
.field select option { background: var(--card); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--primary); }
.form button[type="submit"] {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--primary); color: #fff; border-radius: .4rem; padding: .6rem 1rem; font-size: .875rem; font-weight: 600;
}
.form button[type="submit"]:hover { background: rgba(var(--primary-rgb), .9); }
.form-msg { font-size: .875rem; color: var(--green); margin: 0; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } .form-card { padding: 2rem; } }
@media (min-width: 1024px) { .staff-grid { grid-template-columns: 1fr 1fr; } }

/* Discord banner */
.discord-banner { position: relative; overflow: hidden; border-radius: 1.5rem; border: 1px solid rgba(var(--primary-rgb), .2); }
.discord-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discord-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--bg), rgba(10, 4, 16, .85), rgba(10, 4, 16, .3)); }
.discord-content { position: relative; z-index: 1; padding: 2rem; max-width: 36rem; }
.discord-content .icon-badge { border-radius: 50%; background: rgba(var(--primary-rgb), .15); }
.discord-content .btn-primary { margin-top: 2rem; }
@media (min-width: 640px) { .discord-content { padding: 3.5rem; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid rgba(var(--primary-rgb), .15); margin-top: 2rem; }
.footer-word {
  pointer-events: none; user-select: none; text-align: center; font-family: var(--font-heading);
  font-size: 22vw; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: rgba(var(--primary-rgb), .06);
}
.footer-inner { position: relative; margin-top: -8vw; padding: 0 1.5rem 3rem; }
.footer-top { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.footer-ip { margin-top: .5rem; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: clamp(1.4rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: .05em; }
.footer-ip .icon { color: var(--muted); font-size: 1.25rem; }
.footer-cols { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-cols h4 { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-cols a { font-size: .875rem; color: rgba(235, 226, 243, .8); transition: color .2s; }
.footer-cols a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--max); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(var(--primary-rgb), .1);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem; font-size: .75rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
@media (min-width: 640px) { .footer-cols { flex-direction: row; gap: 4rem; } .footer-bottom { flex-direction: row; } }
@media (min-width: 1024px) { .footer-top { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* ---------- Inner pages ---------- */
.page-top { padding-top: 8rem; }
.page-head { margin-bottom: 3rem; }

/* Leaderboard */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-wrap { overflow: hidden; }
.lb-table th { text-align: left; padding: 1rem 1.25rem; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.lb-table td { padding: 1rem 1.25rem; border-bottom: 1px solid rgba(var(--primary-rgb), .08); }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table tbody tr { cursor: pointer; transition: background .2s; }
.lb-table tbody tr:hover { background: rgba(var(--primary-rgb), .06); }
.lb-table .num { text-align: right; font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-table th.num { text-align: right; }
.rank { display: inline-flex; width: 2rem; height: 2rem; border-radius: .6rem; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: .85rem; background: var(--secondary); color: var(--muted); }
.rank.r1 { background: linear-gradient(135deg, #fbbf24, #eab308); color: #1a1205; }
.rank.r2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #111; }
.rank.r3 { background: linear-gradient(135deg, #f59e0b, #b45309); color: #1a1205; }
.lb-table th.sorted, .lb-table td.sorted { color: var(--primary); }
.lb-scroll { overflow-x: auto; }
.lb-search { display: flex; gap: .5rem; margin: 0 0 1.25rem; max-width: 26rem; }
.lb-search input { flex: 1; min-width: 0; border-radius: 999px; border: 1px solid var(--border); background: rgba(20, 15, 30, .5); color: var(--fg); padding: .55rem 1rem; font: inherit; font-size: .9rem; }
.lb-search input:focus { outline: none; box-shadow: 0 0 0 1px var(--primary); }
.lb-search .btn { padding: .55rem 1.25rem; font-size: .875rem; }
.lb-note { font-size: .8rem; margin: 1rem 0 0; }
@media (max-width: 639px) {
  .hide-sm { display: none; }
  .lb-table th, .lb-table td { padding: .85rem .6rem; }
}
.player-cell { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.player-cell img { width: 2rem; height: 2rem; border-radius: .4rem; image-rendering: pixelated; }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }

/* Player profile */
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.back-link:hover { color: var(--primary); }
.profile { padding: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.profile-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.profile-head img { width: 6rem; height: 6rem; border-radius: 1rem; image-rendering: pixelated; border: 1px solid rgba(var(--primary-rgb), .3); }
.profile-head h1 { margin: 0; font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.tier { display: inline-block; margin-top: .5rem; padding: .25rem .75rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.stat { padding: 1.25rem; border-radius: 1rem; background: rgba(46, 33, 61, .4); border: 1px solid var(--border); }
.stat .label { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat .value { margin-top: .5rem; font-family: var(--font-mono); font-size: 2rem; font-weight: 700; }

/* News */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter { border-radius: 999px; padding: .375rem 1rem; font-size: .875rem; font-weight: 600; border: 1px solid rgba(var(--primary-rgb), .2); color: var(--muted); transition: color .2s, background .2s; }
.filter:hover { color: var(--fg); }
.filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-grid { display: grid; gap: 1.25rem; }
.news-card { display: flex; flex-direction: column; padding: 1.5rem; transition: border-color .3s, transform .3s; }
.news-card:hover { border-color: rgba(var(--primary-rgb), .45); transform: translateY(-2px); }
.news-meta { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--muted); }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 600; background: rgba(var(--primary-rgb), .15); color: var(--primary); border: 1px solid rgba(var(--primary-rgb), .25); }
.badge.news { background: rgba(56, 189, 248, .12); color: #7dd3fc; border-color: rgba(56, 189, 248, .25); }
.news-card h2 { margin: 1rem 0 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.news-card p { margin: .75rem 0 0; font-size: .875rem; color: var(--muted); line-height: 1.6; flex: 1; }
.read-more { margin-top: 1.25rem; font-size: .875rem; font-weight: 600; color: var(--primary); }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.article { max-width: 46rem; margin: 0 auto; }
.article h1 { margin: 1rem 0 0; font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.article-body { margin-top: 2.5rem; line-height: 1.75; color: rgba(235, 226, 243, .88); }
.article-body h2 { margin: 2.25rem 0 .75rem; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--fg); }
.article-body ul { padding-left: 1.25rem; }
.article-body li { margin: .5rem 0; }
.article-body li::marker { color: var(--primary); }
.article-body strong { color: var(--fg); }

/* Store */
.ranks { display: grid; gap: 1.5rem; align-items: stretch; }
.rank-card { position: relative; padding: 2rem; display: flex; flex-direction: column; }
.rank-card.popular { border-color: rgba(var(--primary-rgb), .6); box-shadow: 0 0 40px rgba(var(--primary-rgb), .2); }
.popular-tag { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: .25rem .9rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .2em; }
.rank-card h3 { margin: 0; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; }
.price { margin: 1rem 0 0; font-family: var(--font-mono); font-size: 2.25rem; font-weight: 700; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.rank-card ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.rank-card li { display: flex; gap: .6rem; font-size: .9rem; color: var(--muted); }
.rank-card li .icon { color: var(--primary); margin-top: .25rem; }
.rank-card .btn { width: 100%; }
@media (min-width: 768px) { .ranks { grid-template-columns: repeat(3, 1fr); } }

/* 404 */
.notfound { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding: 6rem 1.5rem; }
.notfound .big { font-family: var(--font-heading); font-size: 7rem; font-weight: 800; color: var(--primary); line-height: 1; text-shadow: 0 0 40px rgba(var(--primary-rgb), .45); }

/* ---------- Toast & reveal animations ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; z-index: 100;
  background: var(--card); border: 1px solid rgba(var(--primary-rgb), .4); padding: .75rem 1.25rem; border-radius: .75rem;
  font-size: .875rem; transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-glow, .live-dot::before { animation: none; }
  html { scroll-behavior: auto; }
}
