/* ═══════════════════════════════════════════════════════════════
   Heatline — components on top of style.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Brand logo ── */
.logo__img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.footer .logo__img {
  height: 40px;
}

@media (max-width: 768px) {
  .logo__img { height: 24px; max-width: 160px; }
  .footer .logo__img { height: 36px; }

  /* Compact the Discord nav button so logo + button + burger fit on narrow screens */
  .nav .btn-discord {
    padding: 6px 12px;
    font-size: 11px;
    gap: 6px;
    margin-left: auto;
  }
  .nav .btn-discord svg { width: 12px; height: 12px; }

  /* Mobile menu CTAs (Steam + Discord) styled like normal nav links width-wise.
     Override color back to white — `.nav__mobile-panel a` (style.css) sets
     text-secondary on every link, which would otherwise fade the button text. */
  .nav__mobile-panel .nav__mobile-cta {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
    border-bottom: none;
    padding: 11px 18px;
    color: #fff;
  }
  .nav__mobile-panel .nav__mobile-cta:hover { color: #fff; }
  .nav__mobile-panel .nav__mobile-cta + .nav__mobile-cta { margin-top: 8px; }

  /* Play-on-Steam button is desktop-only — mobile users can't launch a game
     from the browser anyway, and the button just adds clutter. Copy connect
     stays available so they can grab the address for later. */
  .btn-play-steam { display: none; }
}

/* ── Player username gradients (per role) ──
   Mirrors ROLE_GRADIENTS in js/gradient.js. Apply with class
   .uname uname--{role} on any inline element holding a player name. */
/* Line-height + a tiny vertical padding give descenders ('g', 'y', 'p') room
   so background-clip:text gradients don't clip the bottoms of letters. */
.uname { font-weight: 700; line-height: 1.25; padding-bottom: 0.08em; display: inline-block; }
.uname--default { color: #55aaff; }
.uname--linked,
.uname--nitro,
.uname--vip,
.uname--creator,
.uname--moderator,
.uname--admin {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.uname--linked    { background-image: linear-gradient(90deg, #55aaff, #0066ff); }
.uname--nitro     { background-image: linear-gradient(90deg, #a78bfa, #d8b4fe, #f0abfc); }
.uname--vip       { background-image: linear-gradient(90deg, #03D4D1, #5452FA, #C422D1, #D96490, #EDB940); }
.uname--creator   { background-image: linear-gradient(90deg, #fffdb8, #fdf68c, #f4cd2a, #eda323, #d28d0d); }
.uname--moderator { background-image: linear-gradient(90deg, #00d4aa, #00ffaa, #00ff77, #00ffaa, #00d4aa); }
.uname--admin     { background-image: linear-gradient(90deg, #B00020, #D50000, #FF1744, #FF5252); }

/* ── Role chips ──
   Small inline pills that flag a player's role(s). */
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  white-space: nowrap;
}
.role-chip--default   { color: #55aaff;  border-color: rgba(85, 170, 255, 0.3); }
.role-chip--linked    { color: #55aaff;  border-color: rgba(85, 170, 255, 0.4); }
.role-chip--nitro     { color: #d8b4fe;  border-color: rgba(216, 180, 254, 0.4); }
.role-chip--vip       { color: #C422D1;  border-color: rgba(196, 34, 209, 0.45); background: rgba(196, 34, 209, 0.06); }
.role-chip--creator   { color: #f4cd2a;  border-color: rgba(244, 205, 42, 0.45); }
.role-chip--moderator { color: #00ffaa;  border-color: rgba(0, 255, 170, 0.4); }
.role-chip--admin     { color: #FF5252;  border-color: rgba(255, 82, 82, 0.45); background: rgba(255, 82, 82, 0.06); }
.role-chip--banned    { color: var(--danger); border-color: rgba(224, 90, 89, 0.5); background: var(--danger-muted); }

/* ── Avatar banner pattern ──
   Tiles a player's avatar (or any image) as a rotated low-opacity
   backdrop behind a row, card, or hero. Set `--banner-img` to a url(),
   then add the .banner-pattern element inside a position:relative parent.

   Example:
     <div class="lb-row" style="--banner-img: url(...)">
       <div class="banner-pattern"><div class="banner-pattern__tile"></div></div>
       ...row content...
     </div>
*/
.banner-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.banner-pattern__tile {
  position: absolute;
  inset: -50%;
  background-image: var(--banner-img, none);
  background-repeat: repeat;
  background-size: 36px 36px;
  transform: rotate(-6deg) scale(2.6);
  opacity: 0.13;
  transition: opacity var(--transition-normal);
  filter: saturate(0.6);
}
.banner-pattern__tile--md { background-size: 56px 56px; opacity: 0.16; }
.banner-pattern__tile--lg { background-size: 80px 80px; opacity: 0.18; }
.banner-pattern__tile--hero {
  background-size: 72px 72px;
  opacity: 0.12;
  transform: rotate(-6deg) scale(1.6);
  inset: -50%;
}
[data-banner-host]:hover .banner-pattern__tile { opacity: 0.20; }

/* ── VIP gradient utilities ──
   Pattern: cyan → blue-purple → magenta → pink → gold.
   Single clean variant — no drop-shadow, no animation, no blur. */
:root {
  --vip-gradient: linear-gradient(90deg, #03D4D1 0%, #5452FA 25%, #C422D1 50%, #D96490 75%, #EDB940 100%);
}

.text-vip {
  background: var(--vip-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 900;
}

.vip-border {
  background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
              var(--vip-gradient) border-box;
  border: 2px solid transparent;
}

/* ── Brand buttons (Discord, Steam) ──
   Same size grid as .btn / .btn-sm / .btn-lg so they line up next to each
   other in the navbar. Only the colors and inner SVG differ between brands. */
.btn-discord, .btn-steam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.btn-discord-sm, .btn-steam-sm { padding: 8px 18px; font-size: 12px; }
.btn-discord-sm svg, .btn-steam-sm svg { width: 14px; height: 14px; }

.btn-discord-lg, .btn-steam-lg { padding: 16px 40px; font-size: 15px; }
.btn-discord-lg svg, .btn-steam-lg svg { width: 22px; height: 22px; }

.btn-discord svg, .btn-steam svg { fill: currentColor; flex-shrink: 0; }

/* Discord brand */
.btn-discord {
  background: #5865F2;
  color: #ffffff;
}
.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}
.btn-discord:active { transform: translateY(0); }

/* Steam brand — colors from Steam's storefront UI */
.btn-steam {
  background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 2px 8px rgba(0, 0, 0, 0.3);
}
.btn-steam:hover {
  background: linear-gradient(180deg, #67c1f5 0%, #417a9b 100%);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 4px 16px rgba(103, 193, 245, 0.25);
  transform: translateY(-1px);
}
.btn-steam:active { transform: translateY(0); }

.btn-steam__label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn-steam__label small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.6px;
}

/* ── Shop tier cards ── */
.shop-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
  max-width: 1100px;
  margin: 0 auto;
}

.shop-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 28px 28px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg) 100%);
  border: 2px solid var(--border-default);
  text-align: center;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.shop-tier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tier-color, var(--accent));
  z-index: 1;
}

.shop-tier::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--tier-glow, transparent) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

.shop-tier > * { position: relative; z-index: 1; }

.shop-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              0 0 30px var(--tier-glow, transparent);
}

.shop-tier--weekly   { --tier-color: #34d399; --tier-glow: rgba(52, 211, 153, 0.22); border-color: rgba(52, 211, 153, 0.4); }
.shop-tier--monthly  { --tier-color: #f97316; --tier-glow: rgba(249, 115, 22, 0.22); border-color: rgba(249, 115, 22, 0.4); }
.shop-tier--lifetime { --tier-color: #fbbf24; --tier-glow: rgba(251, 191, 36, 0.22); border-color: rgba(251, 191, 36, 0.4); }

.shop-tier__highlight {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--tier-color);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 11px;
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.shop-tier__image-wrap {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.shop-tier__image {
  max-width: 280px;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px var(--tier-glow, rgba(0, 0, 0, 0.4)));
  transition: transform 0.3s var(--ease);
}

.shop-tier:hover .shop-tier__image { transform: scale(1.05); }

.shop-tier__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.shop-tier__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.shop-tier__price-currency {
  font-size: 1.4rem;
  color: var(--text-secondary);
  font-weight: 600;
  align-self: flex-start;
  margin-top: 6px;
}

.shop-tier__price-amount {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.shop-tier__duration {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-tertiary);
}

.shop-tier__buy {
  width: 100%;
  border: none;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  color: #fff;
}

.shop-tier__buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--tier-glow);
}

.shop-tier--weekly .shop-tier__buy   { background: #34d399; }
.shop-tier--weekly .shop-tier__buy:hover:not(:disabled)   { background: #4ade80; }
.shop-tier--monthly .shop-tier__buy  { background: var(--accent); }
.shop-tier--monthly .shop-tier__buy:hover:not(:disabled)  { background: var(--accent-hover); }
.shop-tier--lifetime .shop-tier__buy { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.shop-tier--lifetime .shop-tier__buy:hover:not(:disabled) { background: linear-gradient(90deg, #fcd34d, #f59e0b); }

/* Disabled state — covers both initial loading and pricing-unavailable.
   Strips the tier color so users don't read it as "ready to buy". */
.shop-tier__buy:disabled {
  background: var(--bg-input) !important;
  color: var(--text-tertiary) !important;
  cursor: not-allowed;
  filter: grayscale(0.6);
  animation: none;
  box-shadow: none;
}
.shop-tier__buy:disabled:hover {
  transform: none;
  box-shadow: none;
}
.shop-tier__buy:disabled .skel-spinner {
  border-top-color: var(--text-secondary);
}

/* When pricing fails to load — replaces the price area entirely */
.shop-tier__price-error {
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .shop-tier__image-wrap { height: 140px; }
  .shop-tier__price-amount { font-size: 2.6rem; }
}

/* ── Hero (carousel-backed) ── */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero__inner h1 {
  margin-top: 20px;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 20px 0 36px;
  line-height: 1.7;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero--compact {
  padding: 80px 0 60px;
}

.hero--center {
  text-align: center;
}

.hero--center .hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero--center .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero--center .hero__actions {
  justify-content: center;
}

/* ── Server card grid ── */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.servers-grid--hub {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 22px;
}

@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .servers-grid,
  .servers-grid--hub { grid-template-columns: 1fr; gap: 14px; }
}


/* ── Server card (banner-led) ──────────────────────────────────────
   2:1 banner image → overlay (status + BM rank) → body (name, count,
   tagline, feature chips, CTA + Connect copy). The whole card is
   clickable via the stretched .server-card__link in the title; the
   Connect button overrides via z-index so its click is captured. */
.server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.server-card:hover {
  border-color: var(--accent-subtle, rgba(249, 115, 22, 0.4));
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(249, 115, 22, 0.18);
}

.server-card__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--bg);
  overflow: hidden;
}

.server-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.server-card:hover .server-card__banner img { transform: scale(1.045); }

.server-card__banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 75%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.server-card__banner-overlay {
  position: absolute;
  inset: 12px 14px auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.server-card__rank {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-family: var(--font-mono);
}

.server-card__rank[hidden] { display: none; }

.server-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 22px;
  flex: 1;
}

.server-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0;
}

/* Stretched-link pattern: the title's anchor covers the whole card so the
   card is clickable, while leaving the Connect button (z-index: 2) to
   intercept its own clicks. */
.server-card__link {
  color: var(--text);
  text-decoration: none;
}
.server-card__link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.server-card__link:hover { color: var(--accent); }

.server-card__status {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.server-card__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.server-card__status--online .server-card__status-dot {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.server-card__status--offline .server-card__status-dot { background: var(--danger); }
.server-card__status--offline { color: rgba(255, 255, 255, 0.7); }

.server-card__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.server-card__count-sep { color: var(--text-tertiary); margin: 0 1px; }
.server-card__count strong { color: var(--text); font-weight: 600; }

.server-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.server-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.server-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border-default);
  border-radius: 4px;
}

.server-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.server-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.server-card:hover .server-card__cta { color: var(--accent-hover, var(--accent)); }

.server-card__copy {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: color var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.server-card__copy:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-surface);
}

.server-card__copy.copied {
  color: var(--success);
  border-color: var(--success);
}

/* Hub variant: bigger banner area on the dedicated /servers/ page. */
.server-card--hub .server-card__body { padding: 22px 24px 24px; gap: 14px; }
.server-card--hub .server-card__name { font-size: 1.2rem; }


/* ── Server compare table (servers/index.njk) ── */
.server-compare {
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
}

.server-compare__row {
  display: grid;
  grid-template-columns: 160px repeat(var(--server-count, 3), 1fr);
  align-items: center;
  border-bottom: 1px solid var(--border-default);
}
.server-compare__row:last-child { border-bottom: none; }

.server-compare__row--head {
  background: var(--bg);
  font-weight: 700;
}

.server-compare__label {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-right: 1px solid var(--border-default);
}

.server-compare__col {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-default);
}
.server-compare__col:last-child { border-right: none; }

.server-compare__name {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  text-decoration: none;
}
.server-compare__name:hover { color: var(--accent); }

.server-compare .copy-btn {
  font-size: 12px;
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .server-compare__row {
    grid-template-columns: 1fr;
  }
  .server-compare__label {
    border-right: none;
    border-bottom: 1px solid var(--border-default);
    padding: 10px 16px 6px;
  }
  .server-compare__col {
    border-right: none;
    border-bottom: 1px solid var(--border-default);
    padding: 6px 16px;
  }
  .server-compare__col:last-child {
    border-bottom: 1px solid var(--border-default);
  }
  .server-compare__row:last-child .server-compare__col:last-child { border-bottom: none; }
  .server-compare__row--head { display: none; }
}


/* ── Server detail hero ──
   Reuses the global .hero + .hero--compact base for padding/overflow and the
   .hero__bg / .hero__bg-img / .hero__bg-overlay carousel that powers the
   homepage hero. Per-server slideshow images live under src/img/bg/{slug}/
   (see src/_data/serverHeroBgs.js). The pieces below are server-specific
   embellishments on top of that base. */
.server-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.server-hero__crumbs {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}
.server-hero__crumbs a {
  color: var(--text-tertiary);
  text-decoration: none;
}
.server-hero__crumbs a:hover { color: var(--accent); }

.server-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.server-hero__tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.server-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.server-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.server-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.server-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.server-stat__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}

.server-stat__sep { color: var(--text-tertiary); margin: 0 1px; }


/* ── Server intro lead paragraph ── */
.server-intro {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}


/* ── Server features chip cloud ── */
.server-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}

.server-feature {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  letter-spacing: 0.3px;
}


/* ── Markdown prose container (seoBody) ── */
.prose {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}
.prose h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.35rem;
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.2px;
}
.prose p { margin: 12px 0; }
.prose strong { color: var(--text); }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(249, 115, 22, 0.35);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--accent); }
.prose code {
  padding: 2px 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 4px;
}
.prose ul {
  padding-left: 20px;
  margin: 12px 0;
  list-style: disc;
}
.prose ul li { margin: 6px 0; }


/* Section variant with tighter top/bottom rhythm. */
.section--narrow { padding: 28px 0; }

/* ─────────────────────────────────────────────────────────────────
   Shine-sweep hover effect

   A pane of light rides from off-screen-left to off-screen-right when the
   user hovers any clickable card/row. On mouse-leave the pane snaps back
   instantly (transition: 0s) so the next hover restarts cleanly.
   ───────────────────────────────────────────────────────────────── */
/* Square-ish cards (highlights, profile matches, deathrun cards):
   focused beam that traverses left-to-right on hover. */
a.lb-highlight::after,
a.profile-match::after,
a.match-deathrun__card::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -52%;              /* leading edge starts at the container's left edge → no lag */
  width: 50%;              /* focused beam */
  min-width: 240px;
  max-width: 520px;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.04) 75%,
    transparent 100%);
  transition: left 0s linear;
  pointer-events: none;
  z-index: 0;
  will-change: left;
}
a.lb-highlight:hover::after,
a.profile-match:hover::after,
a.match-deathrun__card:hover::after {
  left: 102%;
  transition: left 0.6s cubic-bezier(0.45, 0.05, 0.4, 1);
}

/* Wide leaderboard rows: right-edge glow that fades in from the centre and
   settles. Stays while hovered; fades back out on mouse-leave. No traversal,
   so the speed/visibility is independent of how wide the row is. */
a.lb-row::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0.10) 70%,
    rgba(255, 255, 255, 0.22) 95%,
    rgba(255, 255, 255, 0.12) 100%);
  opacity: 0;
  transform: translateX(-30%);
  transition:
    opacity 0.35s ease-out,
    transform 0.45s cubic-bezier(0.32, 1.05, 0.6, 1);
  pointer-events: none;
  z-index: 0;
  will-change: opacity, transform;
}
a.lb-row:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Subtle ambient cue alongside the shine — border + bg lift on hover.
   Visible even on wide rows where the beam crosses fast. */
a.lb-row:hover         { border-color: rgba(255, 255, 255, 0.08); }
a.lb-highlight:hover   { border-color: rgba(255, 255, 255, 0.10); }
a.profile-match:hover  { border-color: rgba(255, 255, 255, 0.10); }
a.match-deathrun__card:hover { border-color: rgba(255, 255, 255, 0.10); }

/* Clickable scoreboard rows (`<tr>` can't be an <a>; we use JS for nav). */
.match-sb-row--clickable {
  cursor: pointer;
  transition: background var(--transition-normal);
}
.match-sb-row--clickable:hover td {
  background: var(--bg-surface-hover);
  color: var(--text);
}

/* ─────────────────────────────────────────────────────────────────
   Skeleton loading shimmer
   Use .skel for inline placeholders, .skel-spinner for status text.
   ───────────────────────────────────────────────────────────────── */
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes skel-spin { to { transform: rotate(360deg); } }

.skel {
  display: inline-block;
  background:
    linear-gradient(90deg,
      var(--bg-input) 0%,
      var(--bg-surface-hover) 50%,
      var(--bg-input) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
  color: transparent !important;
  user-select: none;
  vertical-align: middle;
}
.skel--text     { width: 100px; height: 14px; }
.skel--text-sm  { width: 60px;  height: 11px; }
.skel--text-lg  { width: 140px; height: 22px; }
.skel--block    { display: block; width: 100%; }
.skel--avatar   { width: 40px; height: 40px; border-radius: 50%; }
.skel--avatar-sm{ width: 28px; height: 28px; border-radius: 50%; }
.skel--avatar-lg{ width: 88px; height: 88px; border-radius: 50%; }
.skel--rank     { width: 38px; height: 22px; border-radius: 3px; }

.skel-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid var(--border-input);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: skel-spin 0.8s linear infinite;
  vertical-align: middle;
}

/* Skeleton variants of leaderboard rows + highlight cards.
   They pose as the real elements so the layout doesn't shift. */
.lb-row--skel { background: var(--bg-surface); }
.lb-row--skel .skel--avatar { width: 40px; height: 40px; }
.lb-highlight--skel { min-height: 130px; }
.lb-highlight--skel .lb-highlight__inner { gap: 0; }

/* ─────────────────────────────────────────────────────────────────
   Leaderboard mode tabs
   ───────────────────────────────────────────────────────────────── */
.lb-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  padding-top: 6px;          /* room for the active dot's box-shadow */
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  overflow-y: hidden;        /* prevent stray vertical scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--border-input) transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.lb-tabs::-webkit-scrollbar { height: 4px; }
.lb-tabs::-webkit-scrollbar-track { background: transparent; }
.lb-tabs::-webkit-scrollbar-thumb { background: var(--border-input); border-radius: 2px; }

.lb-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  margin-bottom: -1px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-normal), border-color var(--transition-normal);
}
.lb-tab:hover { color: var(--text); }
.lb-tab:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.lb-tab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mode-color, var(--text-tertiary));
  opacity: 0.4;
  transition: opacity var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}
.lb-tab:hover .lb-tab__dot { opacity: 0.8; }
.lb-tab--active {
  color: var(--text);
  border-bottom-color: var(--mode-color, var(--accent));
}
.lb-tab--active .lb-tab__dot {
  opacity: 1;
  transform: scale(1.4);
  box-shadow: 0 0 10px var(--mode-color, var(--accent));
}

@media (max-width: 768px) {
  .lb-tab { padding: 12px 14px; letter-spacing: 1.1px; font-size: 11px; }
  .lb-tab__dot { width: 6px; height: 6px; }
}

/* ── Leaderboard: highlights row ── */
.lb-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px;
  margin-bottom: 28px;
}
.lb-highlight {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  padding: 22px 22px 18px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
  text-decoration: none;
  color: inherit;
}
a.lb-highlight { cursor: pointer; }
.lb-highlight:hover { background: var(--bg-surface-hover); }
a.lb-highlight:hover { transform: translateY(-2px); }
.lb-highlight:hover .banner-pattern__tile { opacity: 0.18; }
.lb-highlight__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lb-highlight__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
  align-self: flex-start;
}
.lb-highlight__value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-top: 2px;
}
.lb-highlight__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 10px;
}
.lb-highlight--empty .lb-highlight__value { color: var(--text-tertiary); }

/* ── Leaderboard: toolbar (period / map / search) ── */
.lb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  margin-bottom: 2px;
}
.lb-toolbar__left,
.lb-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}
.lb-toolbar__right { flex: 1; justify-content: flex-end; min-width: 240px; }

.lb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}
.lb-field--search { flex: 1; max-width: 360px; }
.lb-field__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.lb-field select,
.lb-field input {
  background: var(--bg);
  border: 1px solid var(--border-input);
  color: var(--text);
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-normal);
}
.lb-field select:focus,
.lb-field input:focus { border-color: var(--accent); }
.lb-field input::placeholder { color: var(--text-tertiary); }

/* ── Leaderboard: user rank line ── */
.lb-userline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  border-top: none;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.lb-userline--user .lb-player__avatar { width: 28px; height: 28px; }
.lb-userline__rank { color: var(--accent); font-weight: 700; }
.lb-userline__sep { color: var(--border-input); }

/* ── Leaderboard: table (grid-based) ── */
.lb-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  --lb-cols: 64px minmax(220px, 2fr) repeat(4, minmax(70px, 1fr)) 80px;
}
.lb-row {
  display: grid;
  grid-template-columns: var(--lb-cols);
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  position: relative;
  overflow: hidden;
  font-size: 13px;
  transition: background var(--transition-normal), border-color var(--transition-normal);
  isolation: isolate;
  text-decoration: none;
  color: inherit;
}
a.lb-row { cursor: pointer; }
.lb-row:not(.lb-row--header):hover { background: var(--bg-surface-hover); }
.lb-row--header {
  background: transparent;
  border-color: transparent;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 20px;
  color: var(--text-tertiary);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
/* Class-targeted (NOT universal) so .banner-pattern keeps its position:absolute. */
.lb-row > .lb-cell { position: relative; z-index: 1; }

/* Top-3 rank emphasis on the row itself */
.lb-row[data-rank="1"] { border-left: 3px solid #fbbf24; }
.lb-row[data-rank="2"] { border-left: 3px solid #d1d5db; }
.lb-row[data-rank="3"] { border-left: 3px solid #b45309; }

.lb-cell { display: flex; align-items: center; }
.lb-cell--rank { justify-content: flex-start; }
.lb-cell--rating {
  justify-content: flex-end;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}
.lb-row--header .lb-cell--rating { white-space: nowrap; }
/* Stat numbers sit on top of the avatar banner pattern, which means they
   need to stay legible against a busy backdrop. White text + a soft drop
   shadow gives them weight without drowning the banner. */
.lb-cell--stat {
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.lb-rank--1 { background: rgba(251, 191, 36, 0.15); color: #fbbf24; box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.4); }
.lb-rank--2 { background: rgba(209, 213, 219, 0.12); color: #d1d5db; box-shadow: 0 0 0 1px rgba(209, 213, 219, 0.3); }
.lb-rank--3 { background: rgba(180, 83, 9, 0.18);  color: #fbbf24; box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.4); }

.lb-cell--player {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  color: inherit;
}
.lb-player__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-input);
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border-default);
}
.lb-player__avatar--fallback {
  background: var(--bg-input);
  border: 1px dashed var(--border-input);
}
.lb-player__name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-empty {
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  padding: 32px 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ── Leaderboard: pagination ── */
.lb-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
}
.lb-page-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  min-width: 36px;
}
.lb-page-btn:hover:not(:disabled) {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  color: var(--text);
}
.lb-page-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.lb-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.lb-page-gap {
  color: var(--text-tertiary);
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ── Mobile collapsing for leaderboard ── */
@media (max-width: 768px) {
  .lb-row { padding: 10px 14px; gap: 10px; font-size: 12px; }
  .lb-row--header { padding: 6px 14px; font-size: 9.5px; letter-spacing: 1.1px; }
  .lb-player__avatar { width: 28px; height: 28px; }
  .lb-cell--player { gap: 8px; }
  .lb-cell--rating { font-size: 13px; }
  .lb-toolbar { padding: 12px; }
  .lb-field { min-width: 0; flex: 1; }
}

/* ─────────────────────────────────────────────────────────────────
   Player profile
   ───────────────────────────────────────────────────────────────── */

.profile-hero { padding: 60px 0 50px; }
.profile-hero__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.profile-hero__main {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
}
.profile-hero__avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-input);
  border: 2px solid var(--border-default);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.profile-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-hero__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.profile-hero__name {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  padding-bottom: 0.08em;
  margin: 0;
}
.profile-hero__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.profile-hero__meta strong { color: var(--text); font-weight: 700; }
.profile-hero__sep { color: var(--border-input); }

.profile-hero__quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 2px;
  background: var(--bg);
  padding: 2px;
  border: 2px solid var(--border-default);
}
.profile-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  padding: 14px 10px;
  text-align: center;
  min-width: 72px;
}
.profile-quick__value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.profile-quick__label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ── Mode picker row ── */
.profile-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.profile-mode {
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.profile-mode:hover {
  background: var(--bg-surface-hover);
  color: var(--text);
}
.profile-mode--active {
  border-color: var(--tier-color, var(--accent));
  color: var(--text);
  background: var(--bg-surface-hover);
}
.profile-mode--active::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tier-color, var(--accent));
  margin-right: 8px;
  vertical-align: middle;
}

/* ── Tabs ── */
.profile-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.profile-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-tertiary);
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-bottom: -1px;
}
.profile-tab:hover { color: var(--text); }
.profile-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.profile-panels { position: relative; }
.profile-panel { display: none; }
.profile-panel--active { display: block; }

/* ── Period switcher ── */
.profile-period {
  display: inline-flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.profile-period__btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.profile-period__btn:hover { color: var(--text); }
.profile-period__btn--active {
  background: var(--accent);
  color: #fff;
}

/* ── Stats grid ── */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2px;
}
.profile-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.profile-stat__value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.profile-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.profile-stat--accent .profile-stat__value { color: var(--accent); }
.profile-stat--rank {
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.04));
  border-color: rgba(249,115,22,0.4);
}
.profile-stat--rank .profile-stat__value { color: var(--accent); font-size: 26px; }

/* ── Deathrun per-map breakdown ── */
.profile-dr-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  font-size: 13px;
}
.profile-dr-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}
.profile-dr-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.profile-dr-table tr:last-child td { border-bottom: none; }
.profile-dr-table tr:hover td { background: var(--bg-surface-hover); }
.profile-dr-best { color: var(--accent); font-weight: 700; }

/* ── Match history cards ── */
.profile-matches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
}
.profile-match {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--border-default);
  border-left-width: 3px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  text-decoration: none;
  color: inherit;
}
.profile-match:hover { transform: translateY(-2px); }
.profile-match:hover.profile-match--win  { border-color: var(--success); }
.profile-match:hover.profile-match--loss { border-color: var(--danger);  }
.profile-match--win  { border-left-color: var(--success); }
.profile-match--loss { border-left-color: var(--danger); }
.profile-match__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.profile-match__mode { color: var(--text-tertiary); }
.profile-match--win  .profile-match__result { color: var(--success); }
.profile-match--loss .profile-match__result { color: var(--danger); }
.profile-match__map {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.profile-match__stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 12px;
  color: var(--text-secondary);
}
.profile-match__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-right: 6px;
}
.profile-match__badge--accent { background: rgba(249,115,22,0.85); color: #000; }
/* Match the K/D badge so the timestamp stays readable on any map background. */
.profile-match__time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* ── Kill feed rows ──
   Fixed-column grid so every row aligns:
     [icon] [opponent name → flex] [weapon] [tags] [dist] [time]
   The icon is colour-coded — green crosshair for outgoing kills,
   red skull for deaths. */
.profile-kills {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-kill {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 160px 90px 56px 80px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  font-size: 13px;
}

.profile-kill__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-kill--out .profile-kill__icon {
  color: var(--success);
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.18);
}
.profile-kill--in .profile-kill__icon {
  color: var(--danger);
  background: rgba(224, 90, 89, 0.14);
  border: 1px solid rgba(224, 90, 89, 0.45);
  box-shadow: 0 0 12px rgba(224, 90, 89, 0.18);
}

.profile-kill__player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.profile-kill__player a { font-weight: 700; }

.profile-kill__weapon {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-kill__tags {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.profile-kill__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.profile-kill__tag--hs    { background: rgba(249, 115, 22, 0.18); color: var(--accent); }
.profile-kill__tag--melee { background: rgba(224, 90, 89, 0.18); color: var(--danger); }

.profile-kill__dist {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: right;
}

.profile-kill__time {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .profile-hero__container { flex-direction: column; align-items: stretch; }
  .profile-hero__quick { grid-template-columns: repeat(3, 1fr); }
  .profile-hero__avatar { width: 64px; height: 64px; }
  .profile-matches { grid-template-columns: 1fr; }
  .profile-kill {
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 10px 14px;
  }
  .profile-kill__weapon,
  .profile-kill__dist { display: none; }
}

/* ─────────────────────────────────────────────────────────────────
   Match detail page
   ───────────────────────────────────────────────────────────────── */

.match-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.match-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: -2;
  filter: saturate(0.8) blur(0px);
}
.match-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29,32,33,0.55) 0%, rgba(29,32,33,0.85) 70%, rgba(29,32,33,1) 100%);
  z-index: -1;
}
.match-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.match-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.match-hero__id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}
.match-hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}
.match-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.match-hero__meta strong { color: var(--text); font-weight: 700; }
.match-hero__sep { color: var(--border-input); }

.match-outcome {
  text-align: center;
  padding: 22px 18px;
  margin-bottom: 18px;
}
.match-outcome__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.match-outcome__title a { text-decoration: none; }

.match-scoreboard { margin-bottom: 18px; }

/* Team scoreboard variant — always 2-up so columns stay wide enough for the
   "Score" / "Beds" headers to fit without clipping; collapses to 1-up on mobile. */
.match-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.match-team {
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  border-top: 3px solid var(--team-color, var(--accent));
  padding: 0;
  position: relative;
  transition: transform var(--transition-normal);
}
.match-team--winner {
  border-color: rgba(52, 211, 153, 0.55);
  border-top-width: 4px;
  border-top-color: var(--success);
  background:
    linear-gradient(180deg, rgba(52, 211, 153, 0.08) 0%, transparent 80px),
    var(--bg-surface);
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.35),
    0 0 32px rgba(52, 211, 153, 0.18),
    0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.match-team--eliminated { opacity: 0.55; }
.match-team__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}
.match-team__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--team-color, var(--accent));
}
.match-team__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
  flex-shrink: 0;
}
.match-team__badge--win {
  background: var(--success);
  color: #062b1b;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.45);
}
.match-team__badge--win::before {
  content: '★';
  font-size: 10px;
  line-height: 1;
}
.match-team__badge--out { background: rgba(224, 90, 89, 0.15); color: var(--danger); }

.match-sb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.match-sb-table th {
  text-align: left;
  padding: 12px 22px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}
.match-sb-table td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.match-sb-table tr:last-child td { border-bottom: none; }
.match-sb-table tr:hover td { background: var(--bg-surface-hover); }
.match-sb-table th:first-child,
.match-sb-table td:first-child { font-family: var(--font-ui); }
.match-sb-row--winner td {
  background: rgba(52,211,153,0.06);
  color: var(--text);
}

.match-sb-table--solo,
.match-sb-table--zombies {
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
}

.match-sb-place {
  font-family: var(--font-mono) !important;
  font-weight: 800;
  color: var(--text-tertiary);
  width: 60px;
}
.match-sb-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.match-sb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-input);
  flex-shrink: 0;
  object-fit: cover;
}
.match-sb-avatar--fallback {
  background: var(--bg-input);
  border: 1px dashed var(--border-input);
}

/* Deathrun variant */
.match-deathrun {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
}
.match-deathrun__card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "rank player" "rank time" "rank cp" "rank deaths";
  gap: 6px 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
a.match-deathrun__card { cursor: pointer; }
a.match-deathrun__card:hover { transform: translateY(-2px); }
.match-deathrun__card--completed { border-left: 3px solid var(--accent); }
.match-deathrun__rank {
  grid-area: rank;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-tertiary);
  align-self: center;
  width: 60px;
  text-align: center;
}
.match-deathrun__card--completed .match-deathrun__rank { color: var(--accent); }
.match-deathrun__player { grid-area: player; }
.match-deathrun__time {
  grid-area: time;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.match-deathrun__cp {
  grid-area: cp;
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.1px;
}
.match-deathrun__deaths {
  grid-area: deaths;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Kill feed */
.match-killfeed {
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  margin-top: 12px;
}
.match-killfeed__summary {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.match-killfeed__summary::-webkit-details-marker { display: none; }
.match-killfeed__summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  transition: transform var(--transition-normal);
}
.match-killfeed[open] .match-killfeed__summary::before { transform: rotate(90deg); }
/* Match kill feed — same visual language as the profile kill feed:
   fixed-column grid, green crosshair icon as direction indicator. */
.match-kill-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)        /* killer (right-aligned)  */
    32px                  /* arrow icon              */
    minmax(0, 1fr)        /* victim                  */
    180px                 /* weapon                  */
    90px                  /* tags                    */
    56px                  /* distance                */
    80px;                 /* time                    */
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
}
.match-kill-row:first-child { border-top: none; }

.match-kill-row__killer,
.match-kill-row__victim {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.match-kill-row__killer { text-align: right; }

.match-kill-row__arrow {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--success);
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.18);
  margin: 0 auto;
}

.match-kill-row__weapon {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-kill-row__tags {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.match-kill-row__dist {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: right;
}

.match-kill-row__time {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .match-teams { grid-template-columns: 1fr; }
  .match-deathrun { grid-template-columns: 1fr; }
  .match-sb-table th,
  .match-sb-table td { padding: 8px 10px; font-size: 12px; }
  .match-kill-row {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
    font-size: 12px;
  }
  .match-kill-row__weapon,
  .match-kill-row__dist { display: none; }
}

/* ── Existing mode-picker grid (unchanged) ── */
.lb-modes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
}

.lb-mode-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  padding: 24px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.lb-mode-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.lb-mode-card__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.lb-mode-card__desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  font-size: 14px;
}

.lb-table thead th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

.lb-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.lb-table tbody tr:last-child td {
  border-bottom: none;
}

.lb-table tbody tr:hover {
  background: var(--bg-surface-hover);
}

.lb-table .rank {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  width: 60px;
}

.lb-table .rank--1 { color: #fbbf24; }
.lb-table .rank--2 { color: #d1d5db; }
.lb-table .rank--3 { color: #b45309; }

.lb-player {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.lb-player__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  flex-shrink: 0;
}

/* ── Role badge ── */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 3px;
  background: var(--accent-subtle);
  color: var(--accent);
}

/* ── Wipe countdown ── */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  max-width: 720px;
  margin: 0 auto;
}

.countdown__cell {
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  padding: 28px 12px;
  text-align: center;
}

.countdown__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.countdown__label {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ── Prose pages (terms, privacy, imprint) ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.prose h2 {
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.prose h3 {
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.prose p, .prose ul {
  margin-bottom: 16px;
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
}

.prose ul li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .lb-table { font-size: 13px; }
  .lb-table thead th, .lb-table tbody td { padding: 10px 12px; }
}


/* ─────────────────────────────────────────────────────────────────
   Account page: summary cards + purchase history
   ───────────────────────────────────────────────────────────────── */

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 6px;
}

.summary-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.summary-card__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.summary-card__value--mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.summary-card__value--accent { color: var(--accent); }

/* Purchase rows */
.purchases-card { /* extends .card-static */ }

.purchase-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg);
  margin-bottom: 8px;
}
.purchase-row:last-child { margin-bottom: 0; }

.purchase-row--skeleton {
  min-height: 44px;
  border-color: var(--border-default);
  background: var(--bg-surface);
}

.purchase-row__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle, rgba(249, 115, 22, 0.15));
  color: var(--accent);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
}

.purchase-row__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.purchase-row__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.purchase-row__meta {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.purchase-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
}

.purchase-status--active {
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}

.purchase-status--expired {
  color: var(--text-tertiary);
  background: var(--bg-surface);
  border-color: var(--border-default);
}

.purchase-status--failed {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.purchase-status--pending {
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.3);
}

.purchase-status--unknown {
  color: var(--text-tertiary);
  background: var(--bg-surface);
  border-color: var(--border-default);
}

.purchase-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-secondary);
}

.purchase-empty__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.purchase-empty__body {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.purchase-error {
  padding: 16px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.06);
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .purchase-row { flex-wrap: wrap; }
  .purchase-status { margin-left: 50px; }
}


/* ─────────────────────────────────────────────────────────────────
   Shop tier-conflict modal (Lifetime block / upgrade / extend)
   ───────────────────────────────────────────────────────────────── */

.vip-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vip-modal[hidden] { display: none; }

.vip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.vip-modal__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.vip-modal__title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--text);
}

.vip-modal__body {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.vip-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}


/* ─────────────────────────────────────────────────────────────────
   Success page: VIP status card
   ───────────────────────────────────────────────────────────────── */

.vip-status-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 22px 26px;
}

.vip-status-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-default);
}
.vip-status-card__row:last-of-type { border-bottom: none; }

.vip-status-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.vip-status-card__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.vip-status-card__value--active {
  color: var(--success);
}

.vip-status-card__order {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}


/* ─────────────────────────────────────────────────────────────────
   Session-expired banner (top of every page, hidden by default)
   ───────────────────────────────────────────────────────────────── */

.session-expired {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(234, 179, 8, 0.18);
  border-bottom: 1px solid rgba(234, 179, 8, 0.45);
  color: #fef3c7;
}

.session-expired[hidden] { display: none; }

.session-expired__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
}

.session-expired__text a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

.session-expired__close {
  background: transparent;
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fef3c7;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.session-expired__close:hover {
  background: rgba(234, 179, 8, 0.18);
  color: #fff;
}


/* ─────────────────────────────────────────────────────────────────
   Play-on-Steam button (server detail hero primary CTA)

   Steam-themed: dark slate body with green accent icon, becomes a
   green gradient on hover. Quiet attention pulse at rest, disabled
   on hover and for prefers-reduced-motion.
   ───────────────────────────────────────────────────────────────── */

.btn-play-steam {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  color: #c5d3e0;
  background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
  border: 1px solid rgba(140, 197, 31, 0.35);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
  cursor: pointer;
}

.btn-play-steam:hover {
  background: linear-gradient(180deg, #6b9415 0%, #4d6b0e 100%);
  border-color: #95c11f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(140, 197, 31, 0.55);
}

.btn-play-steam:active {
  transform: translateY(0);
  transition-duration: 0.06s;
}

.btn-play-steam__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(140, 197, 31, 0.18);
  color: #95c11f;
  border-radius: 4px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.btn-play-steam:hover .btn-play-steam__icon {
  background: #fff;
  color: #1b2838;
  transform: scale(1.06);
}

.btn-play-steam__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

/* Quiet rest pulse — draws the eye but doesn't nag. Disabled on hover
   and for users who prefer reduced motion. */
@keyframes play-steam-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(140, 197, 31, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(140, 197, 31, 0.12); }
}

.btn-play-steam {
  animation: play-steam-pulse 2.6s ease-in-out infinite;
}

.btn-play-steam:hover { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-play-steam { animation: none; }
  .btn-play-steam:hover { transform: none; }
}


/* ─────────────────────────────────────────────────────────────────
   Copy button "copied" state — site-wide for any [data-copy].
   The button's width is JS-locked during the swap so it never
   reflows; the .copied class handles green tint + icon coloring.
   ───────────────────────────────────────────────────────────────── */

[data-copy] {
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

[data-copy].copied {
  background: rgba(34, 197, 94, 0.14) !important;
  color: var(--success) !important;
  border-color: rgba(34, 197, 94, 0.45) !important;
}

[data-copy].copied svg { color: var(--success); }


/* ─────────────────────────────────────────────────────────────────
   Footer signature: "Made by insprd. with ♥ for the Rust community"
   The signature link inherits the surrounding footer text colour and
   has no underline at rest — only revealed on hover/focus.
   ───────────────────────────────────────────────────────────────── */

.footer__signature {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.footer__signature:hover,
.footer__signature:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.footer__heart {
  display: inline-block;
  vertical-align: -2px;
  margin: 0 2px;
  color: var(--accent);
}


/* ─────────────────────────────────────────────────────────────────
   Shop secure-checkout note (lock icon + reassurance line)
   ───────────────────────────────────────────────────────────────── */

.shop-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 999px;
}

.shop-secure-note__icon {
  flex-shrink: 0;
  color: var(--accent);
}
