/* ═══════════════════════════════════════════════════
   NotGR4VE — site styles
   Dark navy command-console aesthetic.
   Rajdhani (UI) · DM Mono (data)
   ═══════════════════════════════════════════════════ */

:root {
  --bg:        #05070c;
  --bg-1:      #07090f;
  --bg-2:      #090c14;
  --bg-3:      #0d1120;
  --bg-raise:  #101630;

  --border:    #101830;
  --border-2:  #1c2c48;
  --border-hi: #2a4068;

  --accent:      #4da6ff;
  --accent-soft: rgba(77,166,255,.09);
  --accent-line: rgba(77,166,255,.22);
  --accent-glow: rgba(77,166,255,.35);

  --gold:   #e8b923;
  --silver: #aab8cc;
  --bronze: #c8804a;

  --kill:  #e0506a;
  --alive: #34c77b;

  --text-1: #d4e2f8;
  --text-2: #92aed2;
  --text-3: #5a7594;
  --text-4: #364c66;

  --mono: 'DM Mono', monospace;
  --ui:   'Rajdhani', sans-serif;

  --radius:    6px;
  --radius-lg: 10px;
  --nav-h:     60px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Always reserve the scrollbar's space, so short pages (no scrollbar) and long pages
   (scrollbar) have the same content width. Without this, navigating between them
   shifts the centred layout — including the sticky header — by ~5px, which reads as
   the header "jumping" when you click a tab. */
html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-y: scroll; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--ui);
  /* Rajdhani 400 is too thin for small body copy — 500 + a touch of tracking
     keeps the look but reads far better at 11–13px sizes. */
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
/* Form controls don't inherit fonts by default — without this, unstyled
   buttons/chips render in the system font and stick out of the theme. */
button, input, select, textarea { font-family: var(--ui); letter-spacing: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #04101e; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }

/* Focus visibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* Section label — the small uppercase eyebrow used everywhere */
.col-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.col-label::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--accent);
  opacity: .7;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ui); font-size: 14px; font-weight: 600;
  letter-spacing: .02em;
  padding: 10px 20px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #04101e;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #6ab5ff;
  box-shadow: 0 0 18px -4px var(--accent-glow);
}
.btn-secondary {
  background: transparent; color: var(--text-2);
  border-color: var(--border-2);
}
.btn-secondary:hover { color: var(--text-1); border-color: var(--border-hi); background: var(--bg-3); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(5,7,12,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform .3s ease;
}
/* Hidden when scrolling down (JS toggles it; skipped for reduced-motion users). */
.nav.nav--hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: .045em;
  color: #e9f2ff;
}
.nav-logo svg {
  width: 18px; height: 18px;
  color: var(--accent); flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nav-logo:hover svg { transform: rotate(90deg); }
.nav-logo-text { color: #e9f2ff; }
.nav-logo-text span { color: var(--accent); text-shadow: 0 0 14px var(--accent-glow); }
.nav-links {
  display: flex; justify-content: center;
  list-style: none; gap: 4px;
}
.nav-links a {
  display: block; padding: 7px 15px;
  font-size: 15px; font-weight: 600; letter-spacing: .03em;
  color: var(--text-2); border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text-1); background: var(--bg-3); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }

.nav-auth { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nav-signin { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 14px; }

/* Profile / signin dropdowns */
.nav-dropdown { position: relative; }
.nav-profile-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--border-2);
  color: var(--text-2); font-size: 14px; font-family: var(--ui); font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius);
  cursor: pointer; transition: all .15s;
}
.nav-profile-btn:hover { color: var(--text-1); background: var(--bg-3); border-color: var(--border-hi); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-2); }
.nav-profile-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); min-width: 170px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  z-index: 100; overflow: hidden;
  animation: dropIn .14s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--text-2); transition: background .12s, color .12s;
}
.nav-dropdown-item:hover { background: var(--bg-raise); color: var(--text-1); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.nav-dropdown-signout { color: var(--text-3); }
.nav-dropdown-signout:hover { color: var(--kill); }

.nav-signin-menu { min-width: 230px; }
.nav-signin-option { padding: 12px 14px; }
.nav-signin-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-1); }
.nav-signin-desc  { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; font-weight: 500; }

/* Hamburger */
.nav-hamburger {
  display: none; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border-2);
  border-radius: var(--radius); color: var(--text-2);
  padding: 6px 8px; cursor: pointer; margin-left: 8px;
  transition: color .15s, border-color .15s; flex-shrink: 0;
}
.nav-hamburger:hover { color: var(--text-1); border-color: var(--accent); }
.nav-mobile-menu { background: var(--bg-2); border-bottom: 1px solid var(--border); }
.nav-mobile-links { list-style: none; padding: 6px 0; }
.nav-mobile-links a {
  display: block; padding: 12px 24px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: color .12s, background .12s;
}
.nav-mobile-links a:hover, .nav-mobile-links a.active { color: var(--accent); background: var(--bg-3); }
.nav-mobile-divider { height: 1px; background: var(--border); margin: 6px 0; }
.nav-mobile-signout { color: var(--text-3) !important; }
.nav-mobile-signout:hover { color: var(--kill) !important; }

/* ═══════════════════════════════════════════════════
   HEROES — shared targeting-grid texture
   ═══════════════════════════════════════════════════ */
.hero, .aim-hero, .about-hero, .fk-hero {
  position: relative; overflow: hidden;
}
/* signature: faint targeting grid */
.hero::before, .aim-hero::before, .about-hero::before, .fk-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle, var(--border-2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}

/* Video heroes */
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,7,12,.35) 0%, rgba(5,7,12,.78) 100%);
}

/* ── Home hero ─────────────────────────────────── */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--border); }
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 700; letter-spacing: -.015em; line-height: 1.04;
  margin-bottom: 18px;
  text-shadow: 0 0 50px var(--accent-glow);
}
.hero-desc { font-size: 16px; color: var(--text-2); max-width: 520px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-val {
  font-size: 26px; font-weight: 700; color: var(--text-1);
  font-family: var(--mono); letter-spacing: -.01em;
}
.hero-stat-unit { color: var(--accent); }
.hero-stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }

/* ── Feature cards (home) ──────────────────────── */
.cards-section { padding: 56px 0 72px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .2s;
}
.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.6);
}
.card:hover::after { opacity: 1; }
.card-icon {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px;
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-bottom: 16px; }
.card-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text-2);
  /* Pin every badge to the bottom of its card so they line up regardless of how
     many lines the description runs to. align-self keeps the pill its own width. */
  margin-top: auto; align-self: flex-start;
}
.card-badge--live { color: var(--alive); border-color: rgba(52,199,123,.3); background: rgba(52,199,123,.08); }
.card-badge--soon { color: var(--gold); border-color: rgba(232,185,35,.25); background: rgba(232,185,35,.07); }

/* ═══════════════════════════════════════════════════
   AIM TRAINER PAGE
   ═══════════════════════════════════════════════════ */
.aim-hero { padding: 72px 0 48px; text-align: center; border-bottom: 1px solid var(--border); }
.aim-hero-label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
  position: relative; z-index: 1;
}
.aim-hero-value {
  font-size: clamp(56px, 10vw, 92px);
  font-weight: 500; color: var(--text-1); line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 0 60px var(--accent-glow);
  position: relative; z-index: 1;
}
.aim-hero-sub { font-size: 13px; color: var(--text-3); margin-top: 12px; position: relative; z-index: 1; }

.aim-secondary { padding: 36px 0; text-align: center; border-bottom: 1px solid var(--border); }
.aim-sec-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
}
.aim-sec-value { font-size: 40px; font-weight: 500; color: var(--text-1); line-height: 1; }
.aim-sec-sub { font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* Stat cards — 6 across */
.aim-stats-section { padding: 36px 0; border-bottom: 1px solid var(--border); }
.aim-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.aim-notice-section { padding: 28px 0 4px; }
.aim-notice { --aim-notice-color: var(--accent); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 15px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--aim-notice-color) 42%, var(--border)); border-radius: var(--radius-lg); background: linear-gradient(105deg, color-mix(in srgb, var(--aim-notice-color) 10%, var(--bg-2)), var(--bg-2) 52%); }
.aim-notice--warning { --aim-notice-color: #f4bd3c; }
.aim-notice--success { --aim-notice-color: #32d38b; }
.aim-notice--error { --aim-notice-color: #ff587f; }
.aim-notice--maintenance { --aim-notice-color: #b88cff; }
.aim-notice-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--aim-notice-color); border: 1px solid currentColor; background: color-mix(in srgb, var(--aim-notice-color) 12%, transparent); }
.aim-notice-icon svg { width: 23px; height: 23px; }
.aim-notice-label { margin: 0 0 3px; color: var(--aim-notice-color); font: 700 10px/1.2 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }
.aim-notice-title { margin: 0; color: var(--text-1); font-size: 20px; line-height: 1.1; }
.aim-notice-body { margin: 6px 0 0; max-width: 76ch; color: var(--text-2); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.aim-stat-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 12px 16px;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.aim-stat-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.aim-stat-icon {
  width: 20px; height: 20px; color: var(--text-3);
  margin-bottom: 12px; transition: color .2s;
}
.aim-stat-card:hover .aim-stat-icon { color: var(--accent); }
.aim-stat-val {
  font-size: 22px; font-weight: 500; color: var(--text-1);
  line-height: 1.1; letter-spacing: -.01em;
}
.aim-stat-live { color: var(--alive); }
.aim-stat-label {
  font-size: 10px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .07em; margin-top: 6px;
}
/* flash on live update */
@keyframes statFlash {
  0%   { background: var(--accent-soft); border-color: var(--accent-line); }
  100% { background: var(--bg-2); border-color: var(--border); }
}
@media (prefers-reduced-motion: no-preference) {
  .stat-updated { animation: statFlash .8s ease; }
}

/* ── Kill feed ─────────────────────────────────── */
.killfeed-section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.kf-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.kf-header .col-label { margin-bottom: 0; }
.kf-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 8px;
  border: 1px solid var(--border-2); border-radius: var(--radius); color: var(--text-3); background: var(--bg-3);
  font-family: var(--ui); font-size: 11px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s;
}
.kf-toggle:hover { border-color: var(--border-hi); color: var(--text-1); background: var(--bg-raise); }
.kf-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kf-toggle svg { transition: transform .18s ease; }
.kf-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.kf-live-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--alive);
}
.kf-live-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--alive);
  box-shadow: 0 0 6px var(--alive);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.kf-list { display: flex; flex-direction: column; gap: 6px; }
.kf-list[hidden] { display: none; }
.kf-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-left: 2px solid var(--kill);
  border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px;
}
.kf-card.kf-death { border-left-color: var(--text-4); }
.kf-killer { color: var(--text-1); font-weight: 600; }
.kf-arrow  { color: var(--kill); flex-shrink: 0; font-size: 12px; }
.kf-death .kf-arrow { color: var(--text-3); }
.kf-victim { color: var(--text-2); }
.kf-time   { margin-left: auto; font-size: 11px; color: var(--text-3); font-family: var(--mono); white-space: nowrap; }
.kf-empty  { font-size: 13px; color: var(--text-3); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .kf-card.kf-new { animation: slideIn .3s ease both; }
}

/* ── Leaderboard ───────────────────────────────── */
.lb-section { padding: 14px 0 56px; }
.lb-header { margin-bottom: 18px; }
.lb-title-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.lb-title-row .col-label { margin-bottom: 0; }
.reset-countdown { font-size: 11px; font-family: var(--mono); color: var(--text-3); }

.lb-controls-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.lb-controls-row .stat-select { height: 42px; }
.lb-controls-row .search-input { height: 42px; }
.lb-controls-row .lb-search-inline .btn { height: 42px; }
.lb-controls-row .period-toggle { margin-left: auto; height: 42px; }
.stat-select {
  background: var(--bg-3); color: var(--text-1);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  font-family: var(--ui); font-size: 14px; font-weight: 600;
  padding: 9px 36px 9px 14px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237e9cc0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  transition: border-color .15s;
}
.stat-select:hover { border-color: var(--border-hi); }

.lb-search-inline { display: flex; gap: 8px; flex: 1; min-width: 200px; }
.search-wrap { position: relative; flex: 1; }
.search-wrap .search-input { width: 100%; }
.search-input {
  background: var(--bg-3); color: var(--text-1);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  font-family: var(--ui); font-size: 14px;
  padding: 9px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lb-search-inline .btn { padding: 9px 16px; font-size: 13px; white-space: nowrap; }

.aim-tools-section { padding: 32px 0 8px; }
.aim-tools-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.aim-tools-head .col-label { margin: 0; }
.aim-tools-dots { display: flex; gap: 8px; }
.aim-tools-dot {
  width: 8px; height: 8px; padding: 0; appearance: none; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--border-hi);
  transition: background .18s, transform .18s;
}
.aim-tools-dot:hover { background: var(--text-3); }
.aim-tools-dot[aria-selected="true"] { background: var(--accent); transform: scale(1.25); }
.aim-tools-progress { height: 2px; margin-bottom: 12px; overflow: hidden; border-radius: 2px; background: var(--border); }
.aim-tools-progress-fill { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--accent); }
.aim-tools-panel {
  min-height: 184px; overflow: hidden; border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: linear-gradient(110deg, var(--bg-2), var(--bg-3));
}
.aim-tools-slide { position: relative; display: none; min-height: 182px; align-items: center; gap: 20px; overflow: hidden; padding: 20px 22px; isolation: isolate; }
.aim-tools-slide.is-active { display: flex; animation: aimToolsFade .45s ease both; }
.aim-tools-number { position: relative; z-index: 2; align-self: flex-start; flex: 0 0 auto; margin-top: 3px; color: var(--accent); font-size: 26px; font-weight: 700; line-height: 1; }
.aim-tools-copy { position: relative; z-index: 2; max-width: min(47%, 440px); min-width: 0; }
.aim-tools-kicker { margin-bottom: 4px; color: var(--text-3); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.aim-tools-copy h2 { margin: 0; color: var(--text-1); font-size: 17px; line-height: 1.25; }
.aim-tools-copy > p:not(.aim-tools-kicker) { margin-top: 6px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.aim-tools-link { display: inline-flex; margin-top: 13px; white-space: nowrap; }
.aim-tools-media {
  position: absolute; z-index: 0; inset: 0 -20px 0 25%; overflow: hidden;
  opacity: 1; transform: perspective(900px) rotateY(-6deg) rotateX(1deg) scale(1.02);
  transform-origin: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 8%, rgba(0,0,0,.62) 22%, #000 43%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 8%, rgba(0,0,0,.62) 22%, #000 43%);
}
.aim-tools-media::after {
  content: ''; position: absolute; z-index: 1; inset: -1px;
  background: linear-gradient(90deg, var(--bg-2) 0%, rgba(8,12,21,.72) 10%, rgba(8,12,21,.16) 29%, transparent 49%);
}
.aim-tools-media img { width: 100%; height: 100%; object-fit: cover; }
.aim-tools-media--killfeed img { transform: scale(1.1); transform-origin: left 58%; }
.aim-tools-media--pvp img { transform: scale(1.46); transform-origin: 38% 49%; }
.aim-tools-slide.is-active .aim-tools-media { animation: aimToolsMediaIn .72s cubic-bezier(.22,.61,.36,1) both; }
.aim-tools-bonus-art {
  position: absolute; z-index: 1; inset: 6px 2% 6px 47%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(12,20,35,.08) 28%, rgba(12,20,35,.28));
}
.aim-bonus-item {
  position: absolute; display: block; width: 62px; height: 62px; object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(0,0,0,.55)); transform-origin: center;
}
.aim-bonus-item--stim { --bonus-angle:-12deg; --bonus-scale:.92; top:18%; left:12%; }
.aim-bonus-item--medkit { --bonus-angle:8deg; --bonus-scale:1.08; top:9%; left:37%; }
.aim-bonus-item--barricade { --bonus-angle:11deg; --bonus-scale:1.1; right:6%; bottom:5%; }
.aim-bonus-item--berries { --bonus-angle:-5deg; --bonus-scale:.94; bottom:3%; left:28%; }
.aim-bonus-item--bandage { --bonus-angle:-11deg; --bonus-scale:.96; right:24%; bottom:19%; }
.aim-tools-slide.is-active .aim-bonus-item { animation: aimBonusFloat 4.6s ease-in-out infinite; }
.aim-tools-slide.is-active .aim-bonus-item--stim { animation-delay:-1.1s; }
.aim-tools-slide.is-active .aim-bonus-item--medkit { animation-delay:-2.3s; }
.aim-tools-slide.is-active .aim-bonus-item--barricade { animation-delay:-3.4s; }
.aim-tools-slide.is-active .aim-bonus-item--berries { animation-delay:-.4s; }
.aim-tools-slide.is-active .aim-bonus-item--bandage { animation-delay:-2.8s; }
@keyframes aimToolsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes aimToolsMediaIn {
  from { opacity: 0; clip-path: inset(0 0 0 18%); }
  to { opacity: 1; clip-path: inset(0); }
}
@keyframes aimBonusFloat {
  0%, 100% { transform: translateY(0) rotate(var(--bonus-angle)) scale(var(--bonus-scale)); }
  50% { transform: translateY(-6px) rotate(var(--bonus-angle)) scale(var(--bonus-scale)); }
}
@media (max-width: 640px) {
  .aim-tools-section { padding-top: 26px; }
  .aim-tools-panel { min-height: 224px; }
  .aim-tools-slide { min-height: 222px; align-items: flex-start; gap: 14px; padding: 17px; }
  .aim-tools-number { font-size: 22px; }
  .aim-tools-copy { max-width: min(65%, 280px); }
  .aim-tools-media { inset: 66px -24px 0 15%; opacity: 1; transform: perspective(700px) rotateY(-4deg) scale(1.03); }
  .aim-tools-media::after { background: linear-gradient(90deg, var(--bg-2) 0%, rgba(8,12,21,.72) 12%, rgba(8,12,21,.14) 37%, transparent 59%); }
  .aim-tools-bonus-art { inset: 78px -2% 2px 30%; opacity: .9; }
  .aim-bonus-item { width: 58px; height: 58px; }
}
@media (max-width: 480px) {
  .aim-tools-panel { min-height: 320px; }
  .aim-tools-slide { min-height: 318px; gap: 12px; padding: 17px; }
  .aim-tools-copy { max-width: calc(100% - 36px); }
  .aim-tools-media {
    inset: 144px 0 0; transform: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.28) 17%, #000 43%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.28) 17%, #000 43%);
  }
  .aim-tools-media::after {
    background: linear-gradient(180deg, var(--bg-2) 0%, rgba(8,12,21,.48) 21%, transparent 50%);
  }
  .aim-tools-media--killfeed img { transform: scale(1.05); transform-origin: left 56%; }
  .aim-tools-media--pvp img { transform: scale(1.54); transform-origin: 58% 50%; }
  .aim-tools-bonus-art { inset: 144px 8px 8px; opacity: 1; }
  .aim-bonus-item { width: 50px; height: 50px; }
  .aim-bonus-item--stim { top: 16%; left: 5%; }
  .aim-bonus-item--medkit { top: 22%; left: 44%; }
  .aim-bonus-item--barricade { right: 2%; bottom: 2%; }
  .aim-bonus-item--berries { bottom: 1%; left: 31%; }
  .aim-bonus-item--bandage { right: 24%; bottom: 19%; }
}

/* ── Admin: Skin catalogue ───────────────────────────────────────────────── */
.adm-skin-container { max-width: 1060px; }
.adm-skin-filters { display: grid; grid-template-columns: minmax(190px, 1.45fr) repeat(3, minmax(125px, .8fr)) auto auto; align-items: end; gap: 10px; padding: 14px; margin-bottom: 14px; border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: var(--bg-2); }
.adm-skin-filters label, .adm-skin-fields label, .adm-skin-wide, .adm-skin-add-date label, .adm-skin-upload { display: grid; gap: 5px; color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.adm-skin-filters input, .adm-skin-filters select, .adm-skin-fields input, .adm-skin-fields select, .adm-skin-fields textarea, .adm-skin-wide textarea, .adm-skin-add-date input { width: 100%; min-height: 38px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border-2); border-radius: 6px; outline: 0; color: var(--text-1); background: var(--bg-3); font: 600 13px var(--ui); letter-spacing: 0; text-transform: none; }
.adm-skin-fields textarea, .adm-skin-wide textarea { min-height: auto; resize: vertical; line-height: 1.45; }
.adm-skin-filters input:focus, .adm-skin-filters select:focus, .adm-skin-fields input:focus, .adm-skin-fields select:focus, .adm-skin-fields textarea:focus, .adm-skin-wide textarea:focus, .adm-skin-add-date input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-soft); }
.adm-skin-result { margin: 14px 0 9px; color: var(--text-3); font-size: 13px; }.adm-skin-result strong { color: var(--text-1); }
.adm-skin-list { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.adm-skin-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(140px, .48fr) auto; align-items: center; gap: 13px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--bg-2); }
.adm-skin-thumb { display: grid; width: 62px; height: 52px; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-3); }.adm-skin-thumb img { max-width: 54px; max-height: 44px; object-fit: contain; }
.adm-skin-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }.adm-skin-main strong { overflow: hidden; color: var(--text-1); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }.adm-skin-main span, .adm-skin-main small, .adm-skin-status small { color: var(--text-3); font-size: 12px; line-height: 1.35; }.adm-skin-main small { color: var(--text-4); }
.adm-skin-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }.adm-skin-status small { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.adm-skin-now { color: var(--alive) !important; font-family: var(--mono); font-size: 10px !important; font-weight: 700; text-transform: uppercase; }
.adm-store-return { display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 1.1fr); gap: 20px; align-items: end; padding: 17px; margin-bottom: 18px; border: 1px solid var(--accent-line); border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--accent-soft), transparent 58%), var(--bg-2); }.adm-store-return .adm-eyebrow { margin-bottom: 4px; }.adm-store-return h2 { color: var(--text-1); font-size: 16px; }.adm-store-return p:last-child { margin-top: 4px; color: var(--text-3); font-size: 12px; line-height: 1.45; }.adm-store-return form { display: grid; grid-template-columns: minmax(0, 1fr) 142px auto; align-items: end; gap: 9px; }.adm-store-return label { display: grid; gap: 5px; color: var(--text-3); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.adm-store-return select, .adm-store-return input { min-height: 38px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border-2); border-radius: 6px; outline: 0; color: var(--text-1); background: var(--bg-3); font: 600 13px var(--ui); }.adm-store-return select:focus, .adm-store-return input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-soft); }
.adm-store-return-select { display: block !important; grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--border-2); }.adm-store-return-select-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; }.adm-store-return-select-head > div { display: grid; gap: 2px; }.adm-store-return-select-head strong { color: var(--text-1); font-size: 14px; }.adm-store-return-select-head span { color: var(--text-3); font-size: 12px; }.adm-store-return-select-head label { width: 150px; flex-shrink: 0; }.adm-store-return-skins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }.adm-return-skin { display: grid !important; grid-template-columns: auto 34px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 52px; padding: 7px; border: 1px solid var(--border-2); border-radius: 6px; color: var(--text-3) !important; background: var(--bg-3); font-size: 11px !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }.adm-return-skin:has(input:checked) { border-color: rgba(52,199,123,.36); background: rgba(52,199,123,.07); }.adm-return-skin input { width: auto; min-height: 0; padding: 0; accent-color: var(--alive); }.adm-return-skin-image { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-2); }.adm-return-skin-image img { max-width: 30px; max-height: 30px; object-fit: contain; }.adm-return-skin > span:last-child { display: grid; min-width: 0; gap: 1px; }.adm-return-skin strong { overflow: hidden; color: var(--text-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.adm-return-skin small { overflow: hidden; color: var(--text-4); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.adm-store-return-actions { display: flex; justify-content: flex-end; margin-top: 11px; }
.adm-skin-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; }.adm-skin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.adm-skin-fields--four { grid-template-columns: repeat(3, minmax(0, 1fr)); }.adm-skin-wide { margin-top: 12px; }.adm-skin-preview { display: block; width: 100%; height: 150px; margin-bottom: 12px; object-fit: contain; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-3); }.adm-skin-upload small, .adm-skin-fields small { color: var(--text-4); font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.4; }.adm-store-status { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 6px; color: var(--text-3); background: var(--bg-3); font-size: 12px; line-height: 1.45; }.adm-store-status strong { color: var(--text-2); }.adm-store-status.is-current { border-color: rgba(52,199,123,.35); color: var(--alive); background: rgba(52,199,123,.07); }.adm-store-status.is-current strong { color: var(--alive); }
.adm-check { display: inline-flex !important; align-items: center; gap: 8px; min-height: 38px; padding: 9px 10px; border: 1px solid var(--border-2); border-radius: 6px; color: var(--text-2) !important; background: var(--bg-3); font-size: 12px !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }.adm-check input { width: auto !important; min-height: 0 !important; padding: 0 !important; accent-color: var(--accent); }.adm-check:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.adm-skin-collections { display: flex; flex-wrap: wrap; gap: 8px; }.adm-form-actions { display: flex; justify-content: flex-end; gap: 9px; }.adm-skin-history { margin-top: 24px; }.adm-skin-history .adm-head { margin-bottom: 12px; }.adm-skin-history-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.adm-skin-add-date { display: flex; align-items: end; gap: 10px; }.adm-skin-add-date label { flex: 1; max-width: 250px; }.adm-skin-return-one { padding-left: 10px; border-left: 1px solid var(--border-2); }.adm-skin-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }.adm-skin-dates li { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-3); }.adm-skin-dates time { color: var(--text-2); font-family: var(--mono); font-size: 11px; }
@media (max-width: 920px) { .adm-store-return { grid-template-columns: 1fr; }.adm-store-return form { max-width: 680px; } }
@media (max-width: 820px) { .adm-skin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }.adm-skin-filters > :first-child { grid-column: span 2; }.adm-skin-editor-grid { grid-template-columns: 1fr; }.adm-skin-preview { max-width: 230px; }.adm-skin-fields--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }.adm-skin-history-actions { grid-template-columns: 1fr; }.adm-skin-return-one { padding: 10px 0 0; border-top: 1px solid var(--border-2); border-left: 0; }.adm-store-return-skins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .adm-skin-filters, .adm-skin-fields, .adm-skin-fields--four, .adm-store-return form { grid-template-columns: 1fr; }.adm-skin-filters > :first-child { grid-column: auto; }.adm-skin-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }.adm-skin-thumb { width: 52px; height: 48px; }.adm-skin-status { display: none; }.adm-skin-add-date { align-items: stretch; flex-direction: column; }.adm-skin-add-date label { max-width: none; }.adm-form-actions { justify-content: stretch; }.adm-form-actions .btn { flex: 1; justify-content: center; }.adm-store-return-select-head { align-items: stretch; flex-direction: column; }.adm-store-return-select-head label { width: 100%; }.adm-store-return-skins { grid-template-columns: 1fr; }.adm-store-return-actions .btn { width: 100%; justify-content: center; } }

.period-toggle {
  display: inline-flex; align-items: stretch; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 4px;
}
.period-toggle .period-btn, .period-toggle .lb-refresh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.period-btn {
  background: none; border: none; color: var(--text-2);
  font-family: var(--ui); font-size: 13.5px; font-weight: 600;
  padding: 7px 18px; border-radius: var(--radius);
  cursor: pointer; transition: all .15s;
}
.period-btn:hover { color: var(--text-1); }
.period-btn.active { background: var(--accent); color: #04101e; }
.lb-refresh-btn {
  background: none; border: none; color: var(--text-3);
  padding: 7px 9px; border-radius: var(--radius);
  cursor: pointer; transition: color .15s;
  display: inline-flex; align-items: center;
}
.lb-refresh-btn:hover { color: var(--accent); }
.lb-refresh-btn svg { transition: transform .5s ease; }
.lb-refresh-btn.spinning svg { transform: rotate(360deg); }
@media (min-width: 960px) {
  .lb-header { display: grid; grid-template-columns: 178px minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 28px; }
  .lb-title-row { flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; }
  .lb-controls-row { flex-wrap: nowrap; min-width: 0; }
  .lb-controls-row .stat-select { width: 126px; padding-left: 12px; }
  .lb-controls-row .lb-search-inline { min-width: 0; }
  .lb-controls-row .period-toggle { margin-left: 0; }
  .period-btn { padding-left: 14px; padding-right: 14px; }
}

/* Top three use a compact podium; the standard table begins at rank 4. */
.lb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "second first third"; align-items: end; gap: 10px; margin-bottom: 14px; }
.lb-podium.podium-count-1 { grid-template-areas: ". first ."; }
.lb-podium-card { position: relative; min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; width: 100%; overflow: hidden; isolation: isolate; padding: 15px 92px 15px 16px; cursor: pointer; text-align: left; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s; }
.lb-podium-card::before { content: ""; position: absolute; z-index: 0; inset: -35% -55%; pointer-events: none; opacity: 0; background: linear-gradient(112deg, transparent 43%, rgba(255,255,255,.34) 49%, rgba(255,255,255,.10) 53%, transparent 59%); transform: translateX(-56%) skewX(-14deg); animation: podiumIdleShine 7.2s ease-in-out infinite; }
.lb-podium-card::after { content: ""; position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; height: 4px; background: var(--border-hi); }
.lb-podium-card > * { position: relative; z-index: 1; }
.lb-podium-card:hover { background: var(--bg-3); transform: translateY(-3px); }
.lb-podium-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.podium-rank-1 { grid-area: first; min-height: 158px; padding-right: 122px; border-color: rgba(232,185,35,.58); background: linear-gradient(160deg, rgba(232,185,35,.18), var(--bg-2) 62%); box-shadow: 0 12px 28px rgba(232,185,35,.14); transform: translateY(-8px); }
.podium-rank-1:hover { transform: translateY(-11px); box-shadow: 0 16px 34px rgba(232,185,35,.22); }
.podium-rank-1::after { background: var(--gold); }
.podium-rank-1::before { animation-delay: 2.4s; }
.podium-rank-2 { grid-area: second; border-color: rgba(170,184,204,.34); background: linear-gradient(160deg, rgba(170,184,204,.11), var(--bg-2) 62%); }
.podium-rank-2::after { background: var(--silver); }
.podium-rank-2::before { animation-delay: .2s; }
.podium-rank-3 { grid-area: third; border-color: rgba(200,128,74,.34); background: linear-gradient(160deg, rgba(200,128,74,.11), var(--bg-2) 62%); }
.podium-rank-3::after { background: var(--bronze); }
.podium-rank-3::before { animation-delay: 4.6s; }
.lb-podium-place { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text-3); }
.podium-rank-1 .lb-podium-place { color: var(--gold); }
.podium-rank-2 .lb-podium-place { color: var(--silver); }
.podium-rank-3 .lb-podium-place { color: var(--bronze); }
.lb-podium-name { width: 100%; overflow: hidden; margin-top: auto; color: var(--text-1); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lb-podium-stat { margin-top: 3px; color: var(--text-3); font-family: var(--mono); font-size: 10px; }
.lb-podium-value { margin-top: 10px; color: var(--text-1); font-size: 21px; line-height: 1; }
.podium-rank-1 .lb-podium-value { color: var(--gold); font-size: 25px; }
.podium-rank-1 .lb-podium-place { font-size: 18px; }
.lb-avatar, .lb-podium-avatar { position: relative; display: inline-grid; place-items: center; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--border-hi); border-radius: 50%; color: var(--text-2); background: var(--bg-raise); font-family: var(--mono); font-weight: 700; }
.lb-avatar { width: 30px; height: 30px; font-size: 12px; }
.lb-podium-avatar { position: absolute; top: 50%; right: 15px; bottom: auto; width: 62px; height: 62px; font-size: 22px; box-shadow: 0 7px 18px rgba(0,0,0,.32); transform: translateY(-50%); transition: transform .2s ease, box-shadow .2s ease; }
.lb-podium-card:hover .lb-podium-avatar { transform: translateY(-50%) scale(1.06); box-shadow: 0 10px 22px rgba(0,0,0,.42); }
.podium-rank-1 .lb-podium-avatar { top: 50%; right: 17px; bottom: auto; width: 88px; height: 88px; font-size: 30px; border-color: rgba(232,185,35,.72); box-shadow: 0 10px 24px rgba(232,185,35,.22); }
.podium-rank-2 .lb-podium-avatar { border-color: rgba(170,184,204,.6); }
.podium-rank-3 .lb-podium-avatar { border-color: rgba(200,128,74,.6); }
.lb-avatar img, .lb-podium-avatar img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.lb-avatar.is-photo .lb-avatar-letter, .lb-podium-avatar.is-photo .lb-avatar-letter { opacity: 0; }
.lb-player { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.lb-player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .lb-podium { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "first first" "second third"; gap: 8px; }
  .lb-podium.podium-count-1 { grid-template-areas: "first first"; }
  .lb-podium-card { min-height: 118px; padding: 13px 76px 13px 14px; }
  .podium-rank-1 { min-height: 126px; padding-right: 100px; transform: translateY(-5px); }
  .podium-rank-1:hover { transform: translateY(-7px); }
  .lb-podium-name { font-size: 14px; }
  .lb-podium-value, .podium-rank-1 .lb-podium-value { font-size: 20px; }
  .lb-podium-avatar { top: 50%; right: 12px; bottom: auto; width: 52px; height: 52px; font-size: 18px; }
  .podium-rank-1 .lb-podium-avatar { top: 50%; right: 14px; bottom: auto; width: 72px; height: 72px; font-size: 24px; }
}
@keyframes podiumIdleShine {
  0%, 68% { opacity: 0; transform: translateX(-56%) skewX(-14deg); }
  71% { opacity: .84; }
  80%, 100% { opacity: 0; transform: translateX(56%) skewX(-14deg); }
}

/* Table */
.lb-table-wrap {
  overflow-x: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.lb-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.lb-table thead th {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
  text-align: left; padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-2);
  background: var(--bg-3);
}
.lb-table th.col-score, .lb-table td.col-score { text-align: right; }
.lb-table th.col-score { color: var(--accent); }
.lb-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.lb-table tbody tr:last-child td { border-bottom: none; }
.lb-table tbody tr { transition: background-color .12s; }
.lb-table tbody tr:hover { background-color: var(--bg-3); }

/* Top 3 — colour fading in from the left (gold longest), plus a faint pulsing outline */
.col-rank { width: 60px; color: var(--text-3); font-size: 13px; }
/* podium colors — applied by actual rank, not row position */
.col-player { color: var(--text-1); font-weight: 600; }
.lb-clickable { cursor: pointer; transition: color .12s; }
.lb-clickable:hover { color: var(--accent); }
.col-score { color: var(--text-1); font-weight: 500; }

/* Pagination */
.lb-pagination {
  display: flex; align-items: center; gap: 14px;
  justify-content: center; padding: 18px 0 0;
}
.page-btn {
  background: var(--bg-2); border: 1px solid var(--border-2);
  color: var(--text-2); border-radius: var(--radius);
  padding: 7px 16px; font-family: var(--ui); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.page-btn:hover:not(:disabled) { background: var(--bg-3); color: var(--text-1); border-color: var(--border-hi); }
.page-btn:disabled { opacity: .3; cursor: default; }
.page-btn-sm { padding: 4px 11px; font-size: 14px; }
.page-indicator { font-size: 12px; color: var(--text-3); font-family: var(--mono); }

/* ── Recent searches dropdown ──────────────────── */
.recent-searches {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.recent-searches-header {
  font-size: 9.5px; font-weight: 700; color: var(--text-3);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 14px 5px; border-bottom: 1px solid var(--border);
}
.recent-search-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--border);
  color: var(--text-2); font-family: var(--ui); font-size: 13px; font-weight: 600;
  padding: 10px 14px; cursor: pointer; transition: background .12s, color .12s;
}
.recent-search-item:last-child { border-bottom: none; }
.recent-search-item:hover { background: var(--bg-raise); color: var(--text-1); }

/* ── Player popup ──────────────────────────────── */
.popup-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(2,4,8,.8);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.popup-box {
  background: var(--card-bg, var(--bg-2)); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 28px; position: relative;
  max-width: 600px; width: 92%; max-height: 86vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  animation: popIn .18s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}
.popup-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text-3); width: 30px; height: 30px;
  font-size: 14px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  z-index: 3; /* above the elevated header, which otherwise paints over it */
}
.popup-close:hover { color: var(--text-1); border-color: var(--border-hi); }

.popup-player-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.popup-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-3); border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.popup-avatar img { width: 100%; height: 100%; object-fit: cover; }
.popup-avatar-letter { font-size: 24px; font-weight: 700; color: var(--accent); }
.popup-player-info { flex: 1; min-width: 0; }
.popup-username { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.popup-discord-tag { font-size: 13px; color: var(--accent); margin-bottom: 2px; }
.popup-discord-tag.not-connected { color: var(--text-3); font-style: italic; }
.popup-connected-at { font-size: 11px; color: var(--text-3); }

/* Platform mark to the left of the in-game name (replaces the old text badge) */
.popup-plat-icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.popup-plat-icon svg { width: 18px; height: 18px; display: block; }
.popup-plat-icon.ps   { color: #3b9aff; }
.popup-plat-icon.xbox { color: #3fba3f; }

/* Popup sections (rankings / achievements / stats) — mirrors the profile page */
.popup-section { margin-bottom: 18px; }
.popup-league {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid; border-radius: 20px; padding: 2px 9px;
  margin-left: 8px; vertical-align: 2px;
}
/* Compact variants of the profile badges so they fit the 600px popup */
.popup-box .rank-badge { padding: 8px 12px; min-width: 64px; }
.popup-box .rank-num { font-size: 15px; }
.popup-box .achievement-card { min-width: 0; min-height: 46px; padding: 7px 8px; }
.popup-box .achievement-medal-stack { width: 31px; height: 32px; flex-basis: 31px; }
.popup-box .achievement-medal { width: 25px; height: 25px; }
.popup-box .achievement-count { font-size: 12px; }
.rank-badge.rank-top {
  border-color: rgba(232,192,106,.4);
  background: linear-gradient(180deg, rgba(232,192,106,.09), var(--bg-3));
}
.rank-badge.rank-top .rank-num { color: #e8c06a; }

.popup-timeline {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.popup-timeline-stat { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 120px; }
.popup-timeline-val   { font-size: 13px; font-family: var(--mono); color: var(--text-1); font-weight: 600; }
.popup-timeline-label { font-size: 11px; color: var(--text-3); }

/* Stats grid inside popups / profile / results */
.result-period-toggle {
  display: inline-flex; gap: 4px;
  background: var(--card-surface, var(--bg-3)); border: 1px solid var(--card-border, var(--border));
  border-radius: var(--radius-lg); padding: 4px;
}
.result-period-btn {
  background: none; border: none; color: var(--text-2);
  font-family: var(--ui); font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: var(--radius);
  cursor: pointer; transition: all .15s;
}
.result-period-btn:hover { color: var(--text-1); }
.result-period-btn.active { background: var(--accent); color: #04101e; }

.result-stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.result-stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card-surface, var(--bg-3)); border: 1px solid var(--card-border, var(--border));
  border-radius: var(--radius); padding: 12px 6px 10px;
  transition: border-color .15s;
}
.result-stat:hover { border-color: var(--border-2); }
.result-stat-val { font-size: 16px; font-weight: 600; color: var(--text-1); font-family: var(--mono); }
.result-stat-label { font-size: 9.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }

/* K/D stat box flips (hover on desktop, tap/focus on touch) to reveal the volume-weighted
   "Rated K/D", with a ? that explains it. CSS-only — no script on any surface. */
.result-stat--kd { position: relative; perspective: 700px; cursor: pointer; }
.result-stat--kd .rs-flip {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.4,.15,.2,1);
}
.result-stat--kd .rs-face { display: flex; flex-direction: column; align-items: center; width: 100%; backface-visibility: hidden; }
.result-stat--kd .rs-face--back { position: absolute; inset: 0; justify-content: center; transform: rotateY(180deg); }
.result-stat--kd .rs-face--back .result-stat-val,
.result-stat--kd .rs-face--back .result-stat-label { color: var(--accent); }
.result-stat--kd:hover .rs-flip,
.result-stat--kd:focus .rs-flip,
.result-stat--kd:focus-within .rs-flip { transform: rotateY(180deg); }
.result-stat--kd:focus { outline: none; }
.result-stat--kd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }

.rs-help {
  position: absolute; top: 5px; right: 5px; width: 15px; height: 15px; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border-2); background: var(--bg-raise, var(--bg-2)); color: var(--text-3);
  font-size: 10px; font-weight: 700; line-height: 1; cursor: help; z-index: 2;
}
.rs-help:hover, .rs-help:focus-visible { color: var(--accent); border-color: var(--accent-line); outline: none; }
.rs-help-tip {
  position: absolute; top: calc(100% + 8px); left: 50%;
  width: 210px; max-width: 62vw; padding: 9px 11px;
  background: var(--bg-raise, #101630); border: 1px solid var(--border-2); border-radius: 7px;
  color: var(--text-2); font: 400 11.5px/1.5 var(--ui); text-transform: none; letter-spacing: 0; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 30;
  transform: translateX(-50%) translateY(4px); transition: opacity .15s, transform .15s;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.rs-help:hover ~ .rs-help-tip,
.rs-help:focus ~ .rs-help-tip,
.rs-help:focus-visible ~ .rs-help-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.result-username { font-size: 19px; font-weight: 700; color: var(--text-1); }
.result-league {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid; border-radius: 4px; padding: 2px 9px; margin-top: 5px;
}
.result-lastseen { font-size: 11px; color: var(--text-3); text-align: right; }
.result-lastseen span { color: var(--text-2); font-family: var(--mono); }
.result-loading { color: var(--text-2); font-size: 14px; padding: 12px 0; }
.result-error   { color: var(--kill);  font-size: 14px; padding: 12px 0; }
.search-result { margin-top: 16px; }
.result-card {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 22px;
}

/* ═══════════════════════════════════════════════════
   ABOUT / NOTGR4VE PAGE
   ═══════════════════════════════════════════════════ */
.about-hero { padding: 72px 0 52px; text-align: center; border-bottom: 1px solid var(--border); }
.about-badges { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 20px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.about-title {
  font-size: clamp(40px, 7vw, 60px); font-weight: 700;
  margin-bottom: 14px; letter-spacing: -.01em;
  position: relative; z-index: 1;
  text-shadow: 0 0 50px var(--accent-glow);
}
.about-title span { color: var(--accent); }
.about-desc {
  font-size: 15.5px; color: var(--text-2); max-width: 560px;
  margin: 0 auto; position: relative; z-index: 1;
}

.about-two-col { padding: 44px 0; border-bottom: 1px solid var(--border); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.about-col { min-width: 0; }
.socials-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.social-link {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 16px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: border-color .15s, color .15s, transform .15s;
}
.social-link:hover { color: var(--text-1); border-color: var(--border-hi); transform: translateX(3px); }
.social-link > svg:first-child { flex-shrink: 0; color: var(--text-3); transition: color .15s; }
.social-link:hover > svg:first-child { color: var(--accent); }
.social-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.social-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.social-handle { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.social-arrow { margin-left: auto; flex-shrink: 0; color: var(--text-4); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s, color .15s; }
.social-link:hover .social-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }
/* per-brand icon hover tint */
.social-link--youtube:hover > svg:first-child { color: #ff0033; }
.social-link--twitch:hover  > svg:first-child { color: #9146ff; }
.social-link--discord:hover > svg:first-child { color: #5865f2; }

.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-stat {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.about-stat-val   { font-size: 22px; font-weight: 700; color: var(--accent); font-family: var(--mono); }
.about-stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* GPortal */
.gportal-section { padding: 32px 0; border-bottom: 1px solid var(--border); }
.gportal-card {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 22px 26px;
}
.gportal-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.gportal-info { flex: 1; }
.gportal-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); text-transform: uppercase;
}
.gportal-title { font-size: 17px; font-weight: 700; color: var(--text-1); margin: 3px 0 4px; }
.gportal-desc  { font-size: 12.5px; color: var(--text-2); }
.gportal-btn { flex-shrink: 0; }

/* YT + GPortal side-by-side */
.yt-gportal-section { padding: 32px 0; border-bottom: 1px solid var(--border); }
.yt-gportal-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.yt-side { flex: 1; min-width: 280px; }
.yt-stats-figures { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.yt-stat { display: flex; align-items: center; gap: 10px; }
.yt-stat svg { color: var(--accent); flex-shrink: 0; }
.yt-stat-val { font-size: 19px; font-weight: 700; color: var(--text-1); font-family: var(--mono); }
.yt-stat-label { font-size: 11px; color: var(--text-3); }
.gportal-side { flex-shrink: 0; }
.gportal-side .gportal-card { min-width: 340px; }
.yt-stats-section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.yt-stats-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Videos */
.videos-section { padding: 44px 0 64px; }
.videos-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.videos-header .col-label { margin-bottom: 0; }
.videos-page-controls { display: flex; align-items: center; gap: 8px; }
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.video-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2,4,8,.35); color: #fff;
  opacity: 0; transition: opacity .2s;
}
.video-card:hover .video-play { opacity: 1; }
.video-info { padding: 13px 15px 15px; }
.video-title {
  font-size: 13.5px; font-weight: 600; color: var(--text-1);
  line-height: 1.4; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-meta { font-size: 11.5px; color: var(--text-3); }
.videos-more {
  display: inline-block; margin-top: 22px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: color .15s;
}
.videos-more:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   FULLKIT PAGE
   ═══════════════════════════════════════════════════ */
.fk-hero { padding: 80px 0 56px; text-align: center; border-bottom: 1px solid var(--border); }
.fk-hero--standalone { min-height: calc(100vh - var(--nav-h) - 81px); box-sizing: border-box; display: flex; align-items: center; border-bottom: 0; }
.fk-hero > .container { position: relative; z-index: 1; }
.fk-hero .hero-desc { margin-left: auto; margin-right: auto; }
.fk-hero-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.fk-features { padding: 48px 0 72px; }
.fk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fk-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color .2s, transform .2s;
}
.fk-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.fk-card-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 14px;
}
.fk-card-title { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.fk-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* FullKit — logo mark, section heads, server types, CTA */
.fk-logo-mark {
  width: 104px; height: 104px; display: block; margin: 0 auto 20px;
  border-radius: 22px; object-fit: cover;
  border: 1px solid var(--border-2);
  box-shadow: 0 0 44px var(--accent-glow);
}
.fk-section-head { text-align: center; max-width: 560px; margin: 0 auto 30px; }
.fk-section-head .col-label { justify-content: center; }
.fk-section-title { font-size: 26px; font-weight: 800; color: var(--text-1); letter-spacing: -.01em; margin: 6px 0 10px; }
.fk-section-sub { font-size: 14px; color: var(--text-3); line-height: 1.6; }
.fk-types-section { padding: 56px 0 8px; }
.fk-types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fk-type {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 16px; transition: border-color .15s, transform .15s, background .15s;
}
.fk-type:hover { border-color: var(--border-hi); transform: translateY(-2px); background: var(--bg-3); }
.fk-type svg { width: 30px; height: 30px; color: var(--accent); }
.fk-type-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.fk-cta-section { padding: 56px 0 80px; }
.fk-cta {
  text-align: center; background: radial-gradient(ellipse 80% 140% at 50% 0%, var(--accent-soft), transparent 65%), var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 48px 28px;
}
.fk-cta-title { font-size: 28px; font-weight: 800; color: var(--text-1); letter-spacing: -.01em; margin-bottom: 10px; }
.fk-cta-sub { font-size: 14px; color: var(--text-3); line-height: 1.6; max-width: 460px; margin: 0 auto 22px; }
.fk-preview-bar { position: relative; z-index: 3; padding: 10px 0; color: var(--text-2); background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); border-bottom: 1px solid var(--accent-line); }
.fk-preview-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.fk-preview-bar strong { color: var(--accent); }
@media (max-width: 640px) {
  .fk-types-grid { grid-template-columns: repeat(2, 1fr); }
  .fk-preview-bar-inner { align-items: flex-start; flex-direction: column; }
  .fk-hero-actions { align-items: stretch; flex-direction: column; }
  .fk-hero-actions .btn { justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   STORE PAGE
   ═══════════════════════════════════════════════════ */
/* Full-page background video */
.store-page { position: relative; isolation: isolate; overflow: hidden; overflow: clip; min-height: calc(100vh - var(--nav-h)); }
.store-page .hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.store-page .hero-video-overlay {
  background: linear-gradient(to bottom, rgba(5,7,12,.55) 0%, rgba(5,7,12,.84) 50%, rgba(5,7,12,.95) 68%, #05070c 88%, #05070c 100%);
}
.store-page-inner { position: relative; z-index: 1; padding-bottom: 76px; }
.store-body .footer { position: relative; z-index: 2; background: #05070c; }

/* Store hero */
.store-hero-block { text-align: center; padding: 76px 0 10px; }
.store-hero-title {
  font-size: 60px; font-weight: 800; line-height: 1;
  color: var(--text-1); letter-spacing: -.02em; margin: 12px 0 14px;
}
.store-hero-desc { font-size: 15px; color: var(--text-2); line-height: 1.65; max-width: 520px; margin: 0 auto; }

/* Empty store state shown while every public offer is hidden. */
.store-empty-section { padding: 64px 0 120px; }
.store-empty-card {
  max-width: 520px; margin: 0 auto; padding: 44px 38px; text-align: center;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(77,166,255,.055), rgba(9,12,20,.9) 48%), rgba(9,12,20,.88);
  box-shadow: 0 22px 60px rgba(0,0,0,.26);
}
.store-empty-icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 18px;
  color: var(--accent); border: 1px solid var(--accent-line); border-radius: 50%; background: var(--accent-soft);
}
.store-empty-eyebrow { margin-bottom: 8px; color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.store-empty-card h2 { margin: 0; color: var(--text-1); font-size: 25px; line-height: 1.15; }
.store-empty-card > p:last-child { max-width: 390px; margin: 12px auto 0; color: var(--text-3); font-size: 13.5px; line-height: 1.6; }

/* VIP section */
.vip-section { padding: 44px 0 0; }
.vip-section-head { text-align: center; margin-bottom: 30px; }
.vip-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.vip-section-title { font-size: 34px; font-weight: 800; color: var(--text-1); letter-spacing: -.01em; margin-bottom: 8px; }
.vip-section-sub { font-size: 14px; color: var(--text-2); max-width: 460px; margin: 0 auto; line-height: 1.6; }

/* VIP plan card — animated gradient border + floating particles */
.vip-card-wrap {
  position: relative; max-width: 460px; margin: 0 auto;
  padding: 1.5px; border-radius: calc(var(--radius-lg) + 2px);
  background:
    conic-gradient(from var(--vip-angle),
      transparent 0deg, var(--accent) 60deg, #bfe0ff 100deg,
      transparent 165deg, transparent 235deg, var(--accent) 310deg, transparent 360deg),
    var(--border-2);
  box-shadow: 0 0 80px -34px var(--accent-glow);
  animation: vip-spin 7s linear infinite;
}
.vip-card {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}
/* Floating glow particles around the card */
.vip-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.vip-particle {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px 2px var(--accent-glow);
  opacity: 0; animation: vip-float 6s ease-in-out infinite;
}
.vip-particle:nth-child(1) { top: -4px;  left: 12%;  animation-delay: 0s;   }
.vip-particle:nth-child(2) { top: 22%;   right: -5px; animation-delay: 1.1s; }
.vip-particle:nth-child(3) { bottom: -4px; left: 28%;  animation-delay: 2.3s; }
.vip-particle:nth-child(4) { bottom: 18%; left: -5px;  animation-delay: 3.1s; }
.vip-particle:nth-child(5) { top: -4px;  right: 22%;  animation-delay: 1.7s; }
.vip-particle:nth-child(6) { bottom: -4px; right: 14%; animation-delay: 4s;   }
.vip-card-head {
  text-align: center; padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.vip-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 20px;
  padding: 5px 16px; margin-bottom: 20px;
}
.vip-price { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 3px; color: var(--text-1); }
.vip-price::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 220px; height: 120px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  opacity: .5; z-index: -1; animation: vip-glow-pulse 4s ease-in-out infinite;
}
.vip-price-cur { font-size: 20px; font-weight: 700; margin-top: 8px; color: var(--accent); }
.vip-price-amt {
  font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--accent), #bfe0ff, #ffffff, #bfe0ff, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: vip-price-shine 4.5s linear infinite;
}
.vip-price-per { font-size: 15px; font-weight: 600; color: var(--text-3); margin-top: 30px; }
.vip-price-note { font-size: 12px; color: var(--text-3); margin-top: 12px; letter-spacing: .02em; }

.vip-perks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.vip-perks li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-1); line-height: 1.45; }
.vip-perk-check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-top: 1px;
}

.vip-buy { width: 100%; justify-content: center; font-size: 15px; padding: 12px 20px; }
.vip-status {
  margin-top: 14px; padding: 10px 14px; text-align: center;
  font-size: 13px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius);
}
.vip-status a { color: inherit; text-decoration: underline; font-weight: 600; }
/* "You're already VIP" state on the store card */
.vip-owned { display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 12px 15px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--alive) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--alive) 30%, transparent);
  font-size: 13.5px; color: var(--text-1); }
.vip-owned strong { color: var(--alive); }
.vip-owned-check { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; color: var(--alive); background: color-mix(in srgb, var(--alive) 18%, transparent); }
.vip-fineprint { font-size: 11px; color: var(--text-3); line-height: 1.55; margin-top: 16px; text-align: center; }
.vip-fineprint strong { color: var(--text-2); font-weight: 700; }

/* ── Store: checkout confirmation slide-out ── */
.co-scrim { position: fixed; inset: 0; z-index: 490; background: rgba(3,5,10,.6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .28s ease; }
.co-scrim.is-open { opacity: 1; }
.co-panel { position: fixed; top: 0; right: 0; z-index: 500; height: 100%;
  width: min(410px, 100%); display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,.45);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); }
.co-panel.is-open { transform: translateX(0); }

.co-head { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.co-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.co-close { display: grid; place-items: center; width: 32px; height: 32px; cursor: pointer;
  background: none; border: 1px solid var(--border-2); border-radius: 8px; color: var(--text-3); transition: color .15s, border-color .15s; }
.co-close:hover { color: var(--text-1); border-color: var(--border-hi); }

.co-scroll { flex: 1; overflow-y: auto; padding: 20px 18px; }
.co-title { font-size: 20px; font-weight: 800; color: var(--text-1); margin-bottom: 16px; }

.co-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: var(--radius-lg); background: var(--bg-3); border: 1px solid var(--border-2); }
/* The shared .vip-badge carries margin-bottom for the main card; kill it here so the
   badge and price sit centred on one clean row (otherwise the row is ~78px tall and
   the price looks off). */
.co-plan .vip-badge { margin: 0; }
.co-price { display: inline-flex; align-items: baseline; gap: 4px; }
.co-price-main { font-size: 21px; font-weight: 800; color: var(--text-1); letter-spacing: -.01em; }
.co-price-per { font-size: 12px; font-weight: 600; color: var(--text-3); }
.co-plan-note { font-size: 11.5px; color: var(--text-4); margin: 8px 2px 0; }

/* For me / For someone else toggle */
.co-seg-group { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 18px 0 14px;
  padding: 4px; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; }
.co-seg { appearance: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 10px; border: none; border-radius: 7px; background: none; color: var(--text-3);
  transition: background .15s, color .15s; }
.co-seg:hover { color: var(--text-1); }
.co-seg.is-active { background: var(--accent); color: #05101f; }

.co-pane { margin-top: 2px; }

/* Gift: recipient input + live result */
.co-field { display: block; }
.co-input { width: 100%; box-sizing: border-box; margin-top: 7px; padding: 10px 12px;
  font: inherit; font-size: 14px; color: var(--text-1);
  background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; }
.co-input:focus { outline: none; border-color: var(--accent); }
.co-recipient-result { display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.co-recipient-result.is-checking { color: var(--text-3); background: var(--bg-3); border: 1px solid var(--border-2); }
.co-recipient-result.is-ok  { background: color-mix(in srgb, var(--alive) 9%, transparent); border: 1px solid color-mix(in srgb, var(--alive) 30%, transparent); }
.co-recipient-result.is-bad { color: var(--kill); background: rgba(224,80,106,.08); border: 1px solid rgba(224,80,106,.3); }
.co-rec-name { font-weight: 700; color: var(--text-1); word-break: break-word; }
.co-rec-tag { margin-left: auto; flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--alive); }
.co-hint { font-size: 11.5px; color: var(--text-4); margin-top: 10px; line-height: 1.5; }

.co-account-card { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 7%, transparent); border: 1px solid var(--accent-line); }
.co-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.co-account { display: flex; align-items: center; gap: 10px; }
.co-plat { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--bg-3); color: var(--text-2); }
.co-plat--ps { color: #4a7fff; } .co-plat--xbox { color: #5bc236; }
.co-username { font-size: 17px; font-weight: 700; color: var(--text-1); word-break: break-word; }
.co-account-sub { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.co-account-sub strong { color: var(--text-2); }
.co-verified { color: var(--alive); font-weight: 600; }
.co-check { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.co-check a { color: var(--accent); }

.co-warn { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-lg);
  background: rgba(232,185,35,.09); border: 1px solid rgba(232,185,35,.32); }
.co-warn-title { font-size: 13.5px; font-weight: 700; color: #e8b923; margin-bottom: 4px; }
.co-warn-sub { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

.co-fineprint { font-size: 11px; color: var(--text-4); line-height: 1.55; margin-top: 18px; }

.co-foot { padding: 16px 18px; border-top: 1px solid var(--border); flex-shrink: 0; }
.co-continue { width: 100%; justify-content: center; }
.co-status { margin-top: 12px; padding: 9px 12px; text-align: center; font-size: 12.5px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius); }
.co-status a { color: inherit; text-decoration: underline; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .co-panel { transition: none; } .co-scrim { transition: none; } }

.vip-legal {
  max-width: 460px; margin: 22px auto 0; text-align: center;
  font-size: 11px; color: var(--text-3); line-height: 1.6;
}
.vip-legal a { color: var(--text-2); text-decoration: underline; }
.vip-legal a:hover { color: var(--text-1); }

/* ═══════════════════════════════════════════════════
   LEGAL / CONTENT PAGES
   ═══════════════════════════════════════════════════ */
.legal { padding: 56px 0 72px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 34px; font-weight: 800; color: var(--text-1); letter-spacing: -.01em; margin-bottom: 6px; }
.legal-updated { font-size: 12px; color: var(--text-3); margin-bottom: 26px; }
.legal-note {
  font-size: 12.5px; color: var(--text-2); line-height: 1.6;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 34px;
}
.legal h2 { font-size: 18px; font-weight: 700; color: var(--text-1); margin: 32px 0 10px; }
.legal p { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 12px; }
.legal ul { list-style: none; margin: 0 0 14px; padding: 0; }
.legal li {
  position: relative; padding-left: 18px; margin-bottom: 8px;
  font-size: 14px; color: var(--text-2); line-height: 1.65;
}
.legal li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--text-1); font-weight: 700; }

/* ── Docs (documentation, sidebar + collapsible sections) ── */
.docs { padding: 48px 0 72px; }
.docs-layout { display: flex; gap: 44px; align-items: flex-start; }

.docs-side { width: 236px; flex: 0 0 236px; }
.docs-side-inner { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; }
.docs-side-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.docs-side-home { color: var(--text-3); text-decoration: none; }
.docs-side-home:hover { color: var(--text-1); }
.docs-side-empty { font-size: 13px; color: var(--text-3); }
.docs-sec { border-bottom: 1px solid var(--border); }
.docs-sec-title {
  list-style: none; cursor: pointer; padding: 10px 2px; font-size: 13px; font-weight: 700;
  color: var(--text-1); text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; justify-content: space-between;
}
.docs-sec-title::-webkit-details-marker { display: none; }
.docs-sec-title::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(-45deg); transition: transform .18s; }
.docs-sec[open] .docs-sec-title::after { transform: rotate(45deg); }
.docs-sec-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.docs-sec-link {
  display: block; padding: 7px 12px; border-radius: var(--radius); border-left: 2px solid transparent;
  font-size: 13.5px; color: var(--text-2); text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.docs-sec-link:hover { background: var(--accent-soft); color: var(--text-1); }
.docs-sec-link.is-active { background: var(--accent-soft); color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.docs-main { flex: 1; min-width: 0; max-width: 780px; }
.docs-eyebrow { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.docs-eyebrow a { color: var(--text-3); text-decoration: none; }
.docs-eyebrow a:hover { color: var(--accent); }
.docs-doc-title { font-size: 32px; font-weight: 800; color: var(--text-1); letter-spacing: -.01em; margin-bottom: 8px; }
.docs-doc-summary { font-size: 15px; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.docs-updated { font-size: 12px; color: var(--text-3); margin-bottom: 26px; }

/* Rendered doc body */
.docs-body { font-size: 14.5px; color: var(--text-2); line-height: 1.78; }
.docs-body p { margin-bottom: 14px; }
.docs-body h2 { font-size: 20px; font-weight: 800; color: var(--text-1); margin: 30px 0 10px; }
.docs-body h3 { font-size: 16px; font-weight: 700; color: var(--text-1); margin: 24px 0 8px; }
.docs-body ul { list-style: none; margin: 0 0 14px; padding: 0; }
.docs-body li { position: relative; padding-left: 18px; margin-bottom: 7px; line-height: 1.6; }
.docs-body li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.docs-body a { color: var(--accent); text-decoration: underline; }
.docs-body strong { color: var(--text-1); font-weight: 700; }
.docs-figure { margin: 18px 0; }
.docs-figure img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); display: block; }

/* In-body collapsible dropdown */
.doc-dropdown { border: 1px solid var(--border); border-radius: var(--radius); margin: 16px 0; background: var(--bg-2); overflow: hidden; }
.doc-dropdown > summary {
  list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--text-1);
  display: flex; align-items: center; gap: 10px;
}
.doc-dropdown > summary::-webkit-details-marker { display: none; }
.doc-dropdown > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transition: transform .18s; flex: none; }
.doc-dropdown[open] > summary::before { transform: rotate(45deg); }
.doc-dropdown-body { padding: 2px 16px 14px; border-top: 1px solid var(--border); }
.doc-dropdown-body > *:first-child { margin-top: 12px; }
.doc-dropdown-body > *:last-child { margin-bottom: 0; }

/* Docs landing index */
.docs-index { display: flex; flex-direction: column; gap: 28px; margin-top: 26px; }
.docs-index-title { font-size: 15px; font-weight: 800; color: var(--text-1); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.docs-index-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.docs-index-link { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); text-decoration: none; transition: border-color .15s, background .15s; }
.docs-index-link:hover { border-color: var(--border-hi); background: var(--bg-raise); }
.docs-index-name { display: block; font-size: 15px; font-weight: 700; color: var(--text-1); }
.docs-index-sub { display: block; font-size: 13px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }

.adm-tag--section { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 860px) {
  .docs-layout { flex-direction: column; gap: 8px; }
  .docs-side { width: 100%; flex: none; }
  .docs-side-inner { position: static; max-height: none; overflow: visible; }
  .docs-main { max-width: none; }
  .docs-doc-title { font-size: 27px; }
}

/* Store + legal responsive */
@media (max-width: 600px) {
  .store-hero-title { font-size: 44px; }
  .vip-section-title { font-size: 28px; }
  .vip-card { padding: 28px 22px; }
  .store-empty-section { padding: 44px 0 88px; }
  .store-empty-card { padding: 34px 22px; }
  .legal h1 { font-size: 28px; }
}

/* ── Store animations ── */
@property --vip-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

@keyframes vip-spin { to { --vip-angle: 360deg; } }
@keyframes vip-price-shine { to { background-position: 200% center; } }
@keyframes vip-glow-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }
@keyframes vip-float {
  0%, 100% { opacity: 0; transform: translateY(6px) scale(.6); }
  50%      { opacity: .9; transform: translateY(-10px) scale(1); }
}

/* Scroll-reveal: only hides content once JS confirms it can reveal (no-JS = visible) */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
.reveal-on .reveal[data-delay="1"] { transition-delay: .1s; }
.reveal-on .reveal[data-delay="2"] { transition-delay: .2s; }
.reveal-on .reveal[data-delay="3"] { transition-delay: .3s; }

/* Perk list cascades in top-to-bottom once the card is revealed */
.reveal-on .vip-perks li { opacity: 0; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li { animation: vip-perk-in .5s ease forwards; }
/* One delay per perk. A perk with no matching rule here still animates, but at 0s —
   so it flies in FIRST, before everything above it. Keep this list longer than the
   perk list; that's what broke when a 7th perk was added. */
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(1)  { animation-delay: .25s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(2)  { animation-delay: .37s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(3)  { animation-delay: .49s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(4)  { animation-delay: .61s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(5)  { animation-delay: .73s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(6)  { animation-delay: .85s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(7)  { animation-delay: .97s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(8)  { animation-delay: 1.09s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(9)  { animation-delay: 1.21s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(10) { animation-delay: 1.33s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(11) { animation-delay: 1.45s; }
.reveal-on .vip-card-wrap.is-visible .vip-perks li:nth-child(12) { animation-delay: 1.57s; }
@keyframes vip-perk-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}

/* Legal links on the support page */
.support-legal-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.support-legal-links a {
  font-size: 14px; font-weight: 600; color: var(--text-2);
  text-decoration: underline; transition: color .15s;
}
.support-legal-links a:hover { color: var(--text-1); }

/* Respect reduced-motion: no spin/shine/float/reveal/cascade */
@media (prefers-reduced-motion: reduce) {
  .vip-card-wrap, .vip-price-amt, .vip-price::before, .vip-particle { animation: none !important; }
  .lb-podium-card::before { animation: none !important; opacity: 0 !important; }
  .aim-tools-media, .aim-bonus-item { animation: none !important; }
  .vip-particle { opacity: .6; }
  .vip-price-amt { -webkit-text-fill-color: var(--accent); color: var(--accent); }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
  .reveal-on .vip-perks li { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ═══════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════ */
.auth-section { padding: 60px 0; display: flex; align-items: center; min-height: 62vh; }
.auth-card {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 42px; max-width: 440px; margin: 0 auto;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.auth-avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 18px; border: 2px solid var(--border-2);
}
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-title { font-size: 21px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.auth-sub { font-size: 13.5px; color: var(--text-2); margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form .search-input { text-align: center; }
.auth-error {
  background: rgba(224,80,106,.08); border: 1px solid rgba(224,80,106,.25);
  color: #f08098; border-radius: var(--radius); padding: 12px 16px;
  font-size: 13px; margin-bottom: 16px; line-height: 1.5; text-align: left;
}
.auth-error a { color: #f9b6c4; text-decoration: underline; }
.auth-notice {
  background: rgba(230,170,70,.08); border: 1px solid rgba(230,170,70,.28);
  color: #e7b466; border-radius: var(--radius); padding: 12px 16px;
  font-size: 13px; margin-bottom: 16px; line-height: 1.5; text-align: left;
}
.auth-cancel { display: block; margin-top: 16px; font-size: 12px; color: var(--text-3); transition: color .15s; }
.auth-cancel:hover { color: var(--text-2); }

/* ═══════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════ */
.profile-section { padding: 48px 0 64px; }
.profile-card {
  background: var(--card-bg, var(--bg-2)); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 34px; max-width: 720px; margin: 0 auto;
}
.profile-header { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.profile-avatar { width: 72px; height: 72px; flex-shrink: 0; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 180px; }
.profile-name { font-size: 21px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.profile-discord-tag { font-size: 13px; color: var(--accent); margin-bottom: 4px; }
.profile-linked-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.profile-linked { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.profile-unlinked { font-size: 12px; color: var(--text-3); }
.profile-unlinked a { color: var(--accent); }
.platform-icon { flex-shrink: 0; }
.platform-ps   { color: #3b9aff; }
.platform-xbox { color: #3fba3f; }

.profile-section-block { margin-bottom: 26px; }
.profile-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.profile-section-label::before {
  content: ''; width: 12px; height: 1px; background: var(--accent); opacity: .7;
}
.profile-flash-wrap { max-width: 720px; margin: 0 auto 16px; }
.profile-flash { border-radius: var(--radius); padding: 11px 15px; font-size: 13px; }
.profile-flash + .profile-flash { margin-top: 10px; }
.profile-flash--ok  { background: rgba(52,199,123,.08); border: 1px solid rgba(52,199,123,.25); color: var(--alive); }
.profile-flash--err { background: rgba(224,80,106,.08); border: 1px solid rgba(224,80,106,.25); color: #f08098; }
.profile-empty-note { font-size: 12.5px; color: var(--text-3); }
.kill-bonus-intro { margin: 0 0 12px; font-size: 12px; color: var(--text-3); }
.kill-bonus-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.kill-bonus-option { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 9px; text-align: left; color: var(--text-2); background: var(--bg-raise); border: 1px solid var(--border-2); border-radius: 6px; cursor: pointer; }
.kill-bonus-option:hover { border-color: var(--border-2); background: var(--bg-raise); }
.kill-bonus-option.is-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--text-1); }
.kill-bonus-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; background: var(--bg-raise); border-radius: 50%; overflow: hidden; }
.kill-bonus-icon img { width: 34px; height: 34px; object-fit: contain; }
.kill-bonus-copy { min-width: 0; flex: 1; }
.kill-bonus-copy strong, .kill-bonus-copy small { display: block; }
.kill-bonus-copy strong { font-size: 12.5px; color: inherit; }
.kill-bonus-copy small { margin-top: 2px; font-size: 11px; color: var(--text-3); }
.kill-bonus-check { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 18px; border: 1px solid var(--border-2); border-radius: 50%; color: transparent; font-size: 11px; }
.kill-bonus-option.is-selected .kill-bonus-check { color: var(--bg-1); background: var(--accent); border-color: var(--accent); }
.kill-bonus-footer { min-height: 34px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.kill-bonus-footer .profile-empty-note { margin: 0; }
.kill-bonus-default { font-size: 12px; color: var(--text-3); }
.kill-bonus-footer .btn { margin-left: auto; }
.profile-fresh { text-align: center; padding: 30px 20px; }
.profile-fresh svg { color: var(--accent); opacity: .9; margin-bottom: 12px; }
.profile-fresh-title { font-size: 17px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.profile-fresh-sub { font-size: 13px; color: var(--text-3); line-height: 1.55; max-width: 360px; margin: 0 auto; }
.profile-change-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.profile-change-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-unlink-btn:hover { color: #f08098; border-color: rgba(224,80,106,.35); background: rgba(224,80,106,.08); }

/* ── PVP performance tabs ───────────────────────────────────────── */
.pvp-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pvp-tabs { display: inline-flex; gap: 4px; padding: 3px; background: var(--card-surface, var(--bg-3)); border: 1px solid var(--card-border, var(--border-2)); border-radius: 9px; }
.pvp-tab { appearance: none; cursor: pointer; padding: 6px 16px; font-family: var(--ui); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-3); background: none; border: none; border-radius: 6px; transition: color .15s, background .15s; }
.pvp-tab:hover { color: var(--text-1); }
.pvp-tab.is-active { color: #04101e; background: var(--accent); }
.pvp-periods { display: inline-flex; gap: 3px; padding: 3px; background: var(--card-surface, var(--bg-3)); border: 1px solid var(--card-border, var(--border-2)); border-radius: 9px; }
.pvp-period-btn { appearance: none; cursor: pointer; padding: 6px 11px; font-family: var(--ui); font-size: 11.5px; font-weight: 700; color: var(--text-3); background: none; border: none; border-radius: 6px; transition: color .15s, background .15s, box-shadow .15s; }
.pvp-period-btn:hover { color: var(--text-1); }
.pvp-period-btn.is-active { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.pvp-weapon-table .pvp-t-name { font-family: var(--ui); }
.pvp-heading { position: relative; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.pvp-heading .profile-section-label { margin-bottom: 0; }
.pvp-help-btn { width: 18px; height: 18px; padding: 0; display: inline-grid; place-items: center; cursor: pointer; border: 1px solid var(--border-hi); border-radius: 50%; color: var(--text-3); background: var(--bg-3); font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1; }
.pvp-help-btn:hover, .pvp-help-btn[aria-expanded="true"] { color: #04101e; border-color: var(--accent); background: var(--accent); }
.pvp-help-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pvp-help-panel { position: absolute; z-index: 4; top: 24px; left: 0; width: min(340px, calc(100vw - 48px)); padding: 12px 14px; border: 1px solid var(--border-hi); border-radius: var(--radius); background: var(--bg-2); box-shadow: 0 10px 28px rgba(0,0,0,.32); color: var(--text-3); font-size: 11.5px; line-height: 1.5; }
.pvp-help-panel p { margin: 0; }
.pvp-help-panel p + p { margin-top: 8px; }
.pvp-help-panel strong { color: var(--text-1); }
/* Weapon tab: performance sort toggle + pager */
.pvp-wpn-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pvp-wpn-sort-label { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.pvp-wpn-sort { display: inline-flex; gap: 3px; padding: 3px; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; }
.pvp-wpn-sort-btn { appearance: none; cursor: pointer; padding: 5px 12px; font-family: var(--ui); font-size: 11.5px; font-weight: 700; color: var(--text-3); background: none; border: none; border-radius: 5px; transition: color .15s, background .15s; }
.pvp-wpn-sort-btn:hover { color: var(--text-1); }
.pvp-wpn-sort-btn.is-active { color: #04101e; background: var(--accent); }
.pvp-wpn-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.pvp-wpn-page-info { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); min-width: 84px; text-align: center; }
.pvp-wpn-page-btn { appearance: none; cursor: pointer; padding: 5px 13px; font-family: var(--ui); font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 7px; transition: color .15s, border-color .15s, opacity .15s; }
.pvp-wpn-page-btn:hover:not(:disabled) { color: var(--text-1); border-color: var(--border-hi); }
.pvp-wpn-page-btn:disabled { opacity: .4; cursor: default; }

/* ── PVP variants performance (score overview + radar + readout) ─ */
.pvp-perf { display: flex; flex-direction: column; gap: 22px; }
.pvp-visuals { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(225px, .85fr); align-items: center; gap: 28px; }
.pvp-score-overview { min-width: 0; }
.pvp-overview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.pvp-overview-label {
  margin: 0; color: var(--text-2); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.pvp-overview-label::before { content: ''; display: inline-block; width: 12px; height: 1px; margin: 0 8px 3px 0; background: var(--accent); opacity: .75; }
.pvp-overview-unit { color: var(--text-4); font-family: var(--mono); font-size: 9.5px; white-space: nowrap; }
.pvp-overview-rows { display: flex; flex-direction: column; gap: 12px; }
.pvp-overview-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 31px; align-items: center; gap: 9px; min-height: 28px; }
.pvp-overview-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pvp-overview-track {
  position: relative; height: 16px; overflow: hidden; border-radius: 3px; background-color: var(--bg-raise);
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(10% - 1px), rgba(126,156,192,.22) calc(10% - 1px), rgba(126,156,192,.22) 10%);
}
.pvp-overview-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #78c4df 54%, var(--gold)); box-shadow: 0 0 14px rgba(77,166,255,.24); }
.pvp-overview-median { position: absolute; z-index: 2; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(3,8,16,.45); opacity: .9; }
.pvp-overview-value { color: var(--text-1); font-size: 14px; text-align: right; }
.pvp-overview-row.is-nodata { grid-template-columns: 92px minmax(0, 1fr); }
.pvp-overview-empty { color: var(--text-4); font-family: var(--mono); font-size: 10.5px; font-style: italic; }
.pvp-overview-axis { display: flex; justify-content: space-between; margin: 7px 31px 0 101px; color: var(--text-4); font-family: var(--mono); font-size: 9.5px; }
.pvp-radar-wrap { display: flex; justify-content: center; padding: 3px 0; }
.pvp-radar { width: 100%; max-width: 270px; height: auto; overflow: visible; }
.pvp-ring { fill: none; stroke: var(--border-2); stroke-width: 1; }
.pvp-ring--outer { stroke: var(--border-hi); }
.pvp-axis { stroke: var(--border-2); stroke-width: 1; }
.pvp-data { fill: rgba(77,166,255,.18); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.pvp-dot { fill: var(--accent); stroke: var(--bg-2); stroke-width: 1.5; }
.pvp-dot.is-nodata { fill: var(--text-4); }
.pvp-axis-label { fill: var(--text-1); font-family: var(--ui); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.pvp-axis-sub { fill: var(--text-3); font-family: var(--mono); font-size: 9.5px; }
.pvp-origin-label { fill: var(--text-3); font-family: var(--mono); font-size: 10px; }

.pvp-readout { min-width: 0; }

.pvp-table-scroll { overflow-x: auto; }
.pvp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pvp-table th { text-align: right; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); padding: 0 0 9px 14px; white-space: nowrap; }
.pvp-table th:first-child { text-align: left; padding-left: 0; }
.pvp-table td { padding: 8px 0 8px 14px; border-top: 1px solid var(--border); text-align: right; color: var(--text-2); white-space: nowrap; }
.pvp-table td:first-child { text-align: left; padding-left: 0; }
.pvp-t-name { color: var(--text-1); font-weight: 600; }
.pvp-t-sub { color: var(--text-4); font-family: var(--mono); font-size: 10.5px; font-weight: 400; }
.pvp-table tr.is-nodata .pvp-t-name { color: var(--text-3); }
/* Legible score — a bold number with a thin fill bar under it (replaces the old
   gradient pill where the number was hard to read). */
.pvp-score { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 46px; }
.pvp-score-num { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--text-1); line-height: 1; }
.pvp-score-bar { position: relative; width: 46px; height: 4px; border-radius: 3px; background: var(--bg-raise); overflow: hidden; }
.pvp-score-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.pvp-score-median { position: absolute; z-index: 2; top: 0; bottom: 0; width: 1px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(3,8,16,.5); }
.pvp-pct-badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-family: var(--mono); font-weight: 700; font-size: 11.5px;
  color: var(--gold); background: rgba(232,185,35,.10); border: 1px solid rgba(232,185,35,.28);
}
/* Percentile tiers — colour scales with how good the placement is (smaller % = better) */
.pvp-pct-badge--elite { color: #f4c430; background: rgba(232,185,35,.12); border-color: rgba(232,185,35,.34); }
.pvp-pct-badge--great { color: #34c77b; background: rgba(52,199,123,.12);  border-color: rgba(52,199,123,.32); }
.pvp-pct-badge--good  { color: #4da6ff; background: rgba(77,166,255,.12);  border-color: rgba(77,166,255,.30); }
.pvp-pct-badge--mid   { color: var(--text-3); background: rgba(150,160,180,.08); border-color: rgba(150,160,180,.20); }
/* Weapon-tab icons (kit-builder item art at /images/items/<shortname>.png) */
.pvp-weapon-name { display: inline-flex; align-items: center; gap: 8px; }
.pvp-weapon-icon { width: 28px; height: 28px; object-fit: contain; flex: none; }
.pvp-pct-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pvp-pct-wrap small { color: var(--text-4); font-family: var(--mono); font-size: 9px; font-weight: 500; }
.pvp-reliability { display: inline-flex; align-items: center; width: fit-content; padding: 2px 7px; border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-3); background: var(--bg-3); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pvp-reliability.is-provisional { color: #d9a94b; border-color: rgba(217,169,75,.32); background: rgba(217,169,75,.07); }
.pvp-reliability.is-developing { color: #72b7ec; border-color: rgba(114,183,236,.32); background: rgba(114,183,236,.07); }
.pvp-reliability.is-reliable { color: var(--alive); border-color: rgba(52,199,123,.32); background: rgba(52,199,123,.07); }
.pvp-reliability-stack { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pvp-reliability-stack small { color: var(--text-4); font-family: var(--mono); font-size: 8.5px; font-weight: 500; }
.pvp-nodata-note { font-size: 11px; color: var(--text-4); font-style: italic; }
.pvp-note { margin-top: 12px; font-size: 11.5px; color: var(--text-4); line-height: 1.5; }

.pvp-empty { text-align: center; padding: 26px 20px; }
.pvp-empty svg { color: var(--accent); opacity: .85; margin-bottom: 10px; }
.pvp-empty-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 5px; }
.pvp-empty-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.55; max-width: 380px; margin: 0 auto; }

/* Furthest-kill best — a plain stat line under the range readout (own profile only) */
.pvp-furthest {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pvp-furthest-label {
  font-size: 12px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .05em;
}
.pvp-furthest-value {
  margin-left: auto; font-size: 15px; font-weight: 700; color: var(--text-1);
}

@media (max-width: 640px) {
  .pvp-nav-row { align-items: stretch; flex-direction: column; }
  .pvp-tabs, .pvp-periods { width: fit-content; max-width: 100%; }
  .pvp-visuals { grid-template-columns: 1fr; gap: 20px; }
  .pvp-radar { max-width: 250px; }
  .pvp-overview-row { grid-template-columns: 82px minmax(0, 1fr) 28px; }
  .pvp-overview-row.is-nodata { grid-template-columns: 82px minmax(0, 1fr); }
  .pvp-overview-axis { margin-left: 91px; margin-right: 28px; }
}

.profile-timeline {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.profile-timeline-stat { display: flex; align-items: center; gap: 9px; color: var(--text-3); }
.profile-timeline-stat svg { flex-shrink: 0; }
.profile-timeline-val   { display: block; font-size: 13px; font-family: var(--mono); color: var(--text-1); font-weight: 600; }
.profile-timeline-label { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }
.profile-lastseen { font-size: 11px; color: var(--text-3); margin-top: 16px; }
.profile-lastseen span { color: var(--text-2); }

/* Platform cards */
.platform-card {
  display: flex; align-items: center; gap: 16px;
  border-radius: var(--radius-lg); padding: 16px 20px;
  border: 1px solid var(--card-border, var(--border-2));
  background: var(--card-surface, var(--bg-3));
}
/* Keep a subtle brand tint layered over the card surface so it still reads as PS/Xbox. */
.platform-card--ps   { background: linear-gradient(135deg, rgba(0,112,209,.14), transparent 62%), var(--card-surface, var(--bg-3)); }
.platform-card--xbox { background: linear-gradient(135deg, rgba(16,124,16,.14), transparent 62%), var(--card-surface, var(--bg-3)); }
.platform-card-logo { flex-shrink: 0; }
.platform-card--ps   .platform-card-logo { color: #3b9aff; }
.platform-card--xbox .platform-card-logo { color: #3fba3f; }
.platform-card-info { display: flex; flex-direction: column; gap: 2px; }
.platform-card-network {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.platform-card--ps   .platform-card-network { color: #3b9aff; }
.platform-card--xbox .platform-card-network { color: #3fba3f; }
.platform-card-username { font-size: 17px; font-weight: 600; color: var(--text-1); font-family: var(--mono); }

/* Ranks */
.ranks-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.rank-badge {
  display: flex; flex-direction: column; align-items: center;
  background: var(--card-surface, var(--bg-3)); border: 1px solid var(--card-border, var(--border));
  border-radius: var(--radius); padding: 10px 16px; min-width: 76px;
  transition: border-color .15s, transform .15s;
}
.rank-badge:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.rank-num   { font-size: 17px; font-weight: 700; color: var(--accent); font-family: var(--mono); }
.rank-label { font-size: 9.5px; color: var(--text-3); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }

/* Achievements */
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 7px; }
.achievement-card {
  display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 52px; padding: 8px 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ach-color, var(--accent)) 7%, var(--card-surface, var(--bg-raise))), var(--card-surface, var(--bg-raise)));
  border-radius: var(--radius);
  border: 1px solid var(--card-border, var(--border-2)); border-left: 3px solid var(--ach-color, var(--accent));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.achievement-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ach-color, var(--accent)) 55%, var(--border-2));
  box-shadow: 0 7px 20px -9px color-mix(in srgb, var(--ach-color, var(--accent)) 60%, transparent);
}

.achievement-medal-stack { position: relative; display: block; width: 44px; height: 42px; flex: 0 0 44px; }
/* Ribbon the medallion hangs from — centred on the front medal, with a lighter centre
   fold. Lives on ::after so ::before is free for the legacy halo. */
.achievement-medal-stack::after {
  content: ''; position: absolute; z-index: 0; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 13px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ach-color, var(--accent)) 42%, #000) 0 40%,
    color-mix(in srgb, var(--ach-color, var(--accent)) 90%, #000) 40% 60%,
    color-mix(in srgb, var(--ach-color, var(--accent)) 42%, #000) 60%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 64%, 0 100%); opacity: .9;
}
/* Domed metallic medallion: radial sheen, bright rim, inset gloss + shadow. Centred by
   construction (left:50% + translateX) so the ribbon always lines up exactly. */
.achievement-medal {
  position: absolute; z-index: 1; box-sizing: border-box; display: grid; place-items: center;
  width: 28px; height: 28px; left: 50%; transform: translateX(-50%);
  border-radius: 50%; border: 2px solid var(--ach-color, var(--accent));
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--ach-color, var(--accent)) 40%, var(--bg-3)) 0%, var(--bg-3) 64%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--ach-color, var(--accent)) 14%, transparent),
    inset 0 1px 2px color-mix(in srgb, #fff 34%, transparent),
    inset 0 -2px 4px color-mix(in srgb, #000 20%, transparent);
}
/* Front medal centred (translateX is width-independent, so the smaller popup medals
   centre too); repeat placements fan out symmetrically behind it so the ribbon always
   sits over the middle. */
.achievement-medal--front { top: 8px; }
.achievement-medal--back { top: 8px; z-index: 0; opacity: .55; transform-origin: 50% 92%; transform: translateX(-50%) rotate(-15deg); }
.achievement-medal--back-two { top: 8px; z-index: 0; opacity: .3; transform-origin: 50% 92%; transform: translateX(-50%) rotate(15deg); }
.achievement-count {
  font-size: 12px; font-weight: 800; color: var(--ach-color, var(--accent));
  font-family: var(--mono); line-height: 1; text-shadow: 0 1px 1px color-mix(in srgb, #000 25%, transparent);
  /* Optical centring: DM Mono's numerals sit a touch left in their cell and, with
     line-height:1, a hair high in the medal — nudge back to the circle's true centre. */
  transform: translate(0.75px, 0.4px);
}

/* Legacy Weekly Placements — one collapsed archival honour rendered as a proper gold
   medal: a domed gold disc with a raised star at its centre, hanging from a gold ribbon
   over a soft halo, with a slow shimmer sweep. Richer than the category medals. The
   count moves to the copy (×N) so the star reads cleanly. Gold uses fixed tones (reads
   on both themes) rather than --ach-color. */
.achievement-card--legacy {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, #e9c25a 5%, var(--card-surface, var(--bg-raise))) 0%, var(--card-surface, var(--bg-raise)) 55%);
  border-color: color-mix(in srgb, #e9c25a 16%, var(--card-border, var(--border-2)));
  border-left-color: color-mix(in srgb, #c9a24b 82%, var(--border-2));
}
.achievement-card--legacy::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, #fff 9%, transparent) 50%, transparent 60%);
  transform: translateX(-130%); animation: legacyShimmer 7s ease-in-out infinite;
}
@keyframes legacyShimmer { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
/* Soft gold halo behind the disc. */
.achievement-card--legacy .achievement-medal-stack::before {
  content: ''; position: absolute; z-index: 0; left: 50%; transform: translateX(-50%); top: 3px; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, #e9c25a 52%, transparent) 0%, transparent 70%);
}
/* Brighter gold ribbon. */
.achievement-card--legacy .achievement-medal-stack::after {
  background: linear-gradient(90deg, #9a6a17 0 40%, #eecb62 40% 60%, #9a6a17 60%); opacity: 1;
}
.achievement-card--legacy .achievement-medal--back { display: none; }
.achievement-card--legacy .achievement-count { display: none; }
.achievement-card--legacy .achievement-medal--front {
  top: 8px; border: 2px solid #b8791b; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fff2c4 0%, #f0cf6b 46%, #d19b2c 100%);
  box-shadow: 0 0 10px color-mix(in srgb, #e9c25a 60%, transparent),
    inset 0 1px 2px rgba(255,255,255,.55), inset 0 -3px 5px rgba(120,80,10,.5);
}
/* Raised star at the centre of the medal. */
.achievement-card--legacy .achievement-medal--front::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 17px; height: 17px;
  clip-path: polygon(50% 3%, 61% 35%, 95% 35%, 67% 56%, 78% 90%, 50% 68%, 22% 90%, 33% 56%, 5% 35%, 39% 35%);
  background: linear-gradient(180deg, #fff7dc, #f0cd66);
  filter: drop-shadow(0 1px 0 rgba(120,80,10,.6));
}
.achievement-card--legacy .achievement-label { color: color-mix(in srgb, #e9c25a 72%, var(--text-1)); }
.achievement-card--legacy .achievement-sub { color: color-mix(in srgb, #e9c25a 62%, var(--text-3)); font-family: var(--mono); font-weight: 700; font-size: 11px; text-transform: none; letter-spacing: 0; }
.achievement-times { display: none; }
.achievement-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.achievement-label { font-size: 10.5px; font-weight: 700; color: var(--text-1); line-height: 1.1; }
.achievement-sub { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.achievement-badge {
  display: flex; align-items: center; gap: 5px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 20px; padding: 4px 12px; font-size: 12px;
}

/* ═══════════════════════════════════════════════════
   SUPPORT PAGE
   ═══════════════════════════════════════════════════ */
.support-section { padding: 52px 0 72px; }
.support-hero { margin-bottom: 38px; }
.support-title { font-size: 30px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.support-sub { font-size: 14.5px; color: var(--text-2); max-width: 520px; }
.support-group { margin-bottom: 34px; }
.support-cards { display: flex; flex-direction: column; gap: 8px; }
.support-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 17px 20px;
  transition: border-color .15s, transform .15s;
}
.support-card:hover { border-color: var(--border-hi); transform: translateX(3px); }
.support-card-icon {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.support-card-info { flex: 1; }
.support-card-title { font-size: 14.5px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.support-card-desc  { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.support-card-arrow { font-size: 16px; color: var(--text-3); flex-shrink: 0; transition: color .15s, transform .15s; }
.support-card:hover .support-card-arrow { color: var(--accent); transform: translateX(2px); }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: auto; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-logo { font-size: 15px; font-weight: 700; letter-spacing: .045em; color: var(--text-2); }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 13px; color: var(--text-3); transition: color .15s; }
.footer-links a:hover { color: var(--text-1); }
.footer-copy { font-size: 12px; color: var(--text-4); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .aim-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid, .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .result-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .gportal-side .gportal-card { min-width: 0; width: 100%; }
  .yt-gportal-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-profile-name { display: none; }

  .hero { padding: 64px 0 48px; }
  .hero-stats { gap: 24px; }
  .cards-grid, .videos-grid, .fk-grid { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 32px; }
  .aim-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .aim-notice { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 15px; }
  .aim-notice-icon { width: 38px; height: 38px; border-radius: 10px; }
  .aim-notice-icon svg { width: 20px; height: 20px; }
  .aim-notice-title { font-size: 18px; }
  .result-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .lb-controls-row { flex-direction: column; align-items: stretch; }
  .lb-header { flex-direction: column; }
  .period-toggle { align-self: flex-start; }
  .gportal-card { flex-direction: column; text-align: center; }
  .profile-card, .popup-box { padding: 22px; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-header .btn { margin-left: 0 !important; }
  .profile-linked-row { justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .result-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .aim-hero-value { font-size: 48px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ── Aim Trainer page title ───────────────────── */
.aim-title {
  font-size: clamp(30px, 5.5vw, 44px);
  font-weight: 700; letter-spacing: -.01em;
  color: var(--text-1); line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 0 40px var(--accent-glow);
  position: relative; z-index: 1;
}
.aim-title-sub {
  font-size: 14.5px; color: var(--text-2);
  margin-bottom: 40px; position: relative; z-index: 1;
}
.aim-title-sub strong { color: var(--accent); font-weight: 700; }

/* Page/tab/refresh swap: the whole tbody crossfades (dim out during the fetch, fade the
   new rows back in) instead of flashing a skeleton — no flicker on pagination. */
#lb-body { transition: opacity .18s ease; }
#lb-body.lb-swapping { opacity: 0; }

/* Row entrance — rows are visible by default (so they never vanish if JS doesn't run);
   revealLeaderboardRows() adds .lb-armed to hide them, then .revealed per-row as each
   scrolls into view, so the list cascades down instead of appearing all at once. */
@media (prefers-reduced-motion: no-preference) {
  .lb-row-in.lb-armed {
    opacity: 0; transform: translateY(16px);
    transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
  }
  .lb-row-in.lb-armed.revealed { opacity: 1; transform: translateY(0); }
}

/* ── Mobile menu: animated open AND close ─────── */
/* display:none on desktop — otherwise its collapsed row still adds ~12px below the
   header, pushing the nav content above the bar's vertical centre. It's re-enabled
   at mobile widths below (where the hamburger that opens it actually appears). */
.nav-mobile-menu {
  display: none;                 /* re-enabled at mobile widths below */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .24s ease;
  border-bottom-width: 0;
}
.nav-mobile-menu.open {
  max-height: 640px;             /* generous cap; content sizes below it */
  opacity: 1;
  border-bottom-width: 1px;
}
.nav-mobile-links li {
  opacity: 0; transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.nav-mobile-menu.open .nav-mobile-links li { opacity: 1; transform: translateY(0); }
.nav-mobile-menu.open .nav-mobile-links li:nth-child(1) { transition-delay: .05s; }
.nav-mobile-menu.open .nav-mobile-links li:nth-child(2) { transition-delay: .09s; }
.nav-mobile-menu.open .nav-mobile-links li:nth-child(3) { transition-delay: .13s; }
.nav-mobile-menu.open .nav-mobile-links li:nth-child(4) { transition-delay: .17s; }
.nav-mobile-menu.open .nav-mobile-links li:nth-child(5) { transition-delay: .21s; }
.nav-mobile-menu.open .nav-mobile-links li:nth-child(n+6) { transition-delay: .25s; }
.nav-hamburger svg { transition: transform .25s ease; }
.nav-hamburger.is-open svg { transform: rotate(90deg); }

/* Re-enable the mobile menu only where the hamburger exists. Placed after the base
   rule above so it wins on mobile; on desktop the base display:none keeps the header
   row exactly --nav-h tall and its content vertically centred. */
@media (max-width: 640px) {
  .nav-mobile-menu { display: block; }
}

/* ── Ambient dust canvas ──────────────────────── */
#dust-canvas {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}

/* ── Hero video perf hint for parallax ────────── */
.hero-video { will-change: transform, opacity; }

/* ── Popup & profile: elevated header treatment ─ */
.popup-player-header {
  position: relative;
  margin: -28px -28px 18px;
  /* extra right padding keeps header content clear of the close X */
  padding: 26px 62px 20px 28px;
  background:
    radial-gradient(ellipse 90% 120% at 20% 0%, var(--accent-soft), transparent 60%),
    var(--card-head, var(--bg-3));
  border-bottom: 1px solid var(--border-2);
  border-radius: 12px 12px 0 0;
}
.popup-avatar {
  box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 4px var(--accent-line);
  border-color: transparent;
}
.popup-username { font-size: 21px; letter-spacing: -.01em; }

.profile-header {
  position: relative;
  margin: -34px -34px 26px;
  padding: 32px 34px 24px;
  background:
    radial-gradient(ellipse 90% 130% at 15% 0%, var(--accent-soft), transparent 60%),
    var(--card-head, var(--bg-3));
  border-bottom: 1px solid var(--border-2);
  border-radius: 14px 14px 0 0;
}
.profile-avatar {
  box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--accent-line);
  border-color: transparent;
  border-radius: 50%;
}
.profile-name { font-size: 23px; letter-spacing: -.01em; }

/* result stats inside popup/profile: subtle hover lift */
.result-stat { transition: border-color .15s, transform .15s; }
.result-stat:hover { transform: translateY(-1px); border-color: var(--accent-line); }
.result-stat-val { font-size: 17px; }

@media (max-width: 640px) {
  /* top padding pushes ALL header content below the top-left close X */
  .popup-player-header { margin: -22px -22px 16px; padding: 50px 22px 16px; }
  .profile-header { margin: -22px -22px 22px; padding: 24px 22px 18px; }
  /* Close X sits top-left on mobile, bigger tap target */
  .popup-close { top: 10px; left: 10px; right: auto; width: 32px; height: 32px; }
}


/* ── Collapsing video header (hero-tall) ──────── */
.hero-tall {
  min-height: min(72vh, 640px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-tall .hero-video { opacity: .5; }
.hero-tall .hero-video-overlay {
  background: linear-gradient(to bottom,
    rgba(5,7,12,.15) 0%,
    rgba(5,7,12,.4) 60%,
    rgba(5,7,12,.92) 100%);
}
@media (max-width: 640px) {
  .hero-tall { min-height: min(62vh, 520px); }
}

/* Scroll hint chevron */
.scroll-hint {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 2; color: var(--text-2);
  opacity: 1; pointer-events: none;
  transition: opacity .2s linear;
}
@keyframes hintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint { animation: hintBob 1.8s ease-in-out infinite; }
}

/* ── Reveal on scroll ─────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-init {
    opacity: 0; transform: translateY(18px);
    transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
  }
  .reveal-init.revealed { opacity: 1; transform: translateY(0); }

  /* Hero content: staggered fade-up on page load (works over background video) */
  .hero-anim > * { opacity: 0; animation: heroRise .7s cubic-bezier(.22,.61,.36,1) both; }
  .hero-anim > *:nth-child(1) { animation-delay: .06s; }
  .hero-anim > *:nth-child(2) { animation-delay: .16s; }
  .hero-anim > *:nth-child(3) { animation-delay: .26s; }
  .hero-anim > *:nth-child(4) { animation-delay: .36s; }
  .hero-anim > *:nth-child(5) { animation-delay: .46s; }
  .hero-anim > *:nth-child(6) { animation-delay: .56s; }
  .hero-anim > *:nth-child(7) { animation-delay: .66s; }
}
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ── Community Tools hub ──────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tool-card {
  display: flex; align-items: flex-start; gap: 16px; position: relative;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; transition: border-color .15s, transform .15s;
}
a.tool-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.tool-card--soon { opacity: .6; }
.tool-card-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.tool-card-title { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 5px; }
.tool-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.tool-card-badge { position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 20px; padding: 3px 9px; }
.tool-card-badge--live { color: var(--alive); border-color: rgba(52,199,123,.3); background: rgba(52,199,123,.08); }

/* ── Message Generator ───────────────────────── */
.mg-section { padding: 40px 0 80px; }
.mg-editor { margin-bottom: 28px; }
.mg-editor, .mg-side { min-width: 0; }
.mg-mode { display: inline-flex; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; padding: 4px; gap: 4px; }
.mg-mode-btn {
  /* explicit reset — buttons otherwise render with the white UA default */
  appearance: none; background: none; border: none; cursor: pointer;
  position: relative; font-size: 13.5px; font-weight: 700; color: var(--text-2);
  padding: 9px 22px; border-radius: 7px; letter-spacing: .01em;
  transition: background .18s, color .18s, box-shadow .18s;
}
.mg-mode-btn:hover { color: var(--text-1); background: var(--bg-raise); }
.mg-mode-btn.is-active { background: linear-gradient(180deg, var(--accent), #3f97e8); color: #04101e; box-shadow: 0 3px 12px var(--accent-glow); }
.mg-mode-hint { font-size: 13px; color: var(--text-3); margin: 10px 0 12px; line-height: 1.5; }
.mg-input {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 200px;
  background: var(--bg-1); border: 1px solid var(--border-2); border-radius: var(--radius);
  color: var(--text-1); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; padding: 14px;
}
.mg-input:focus { outline: none; border-color: var(--accent-line); }
.mg-tools { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0; }
.mg-tool-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mg-tool-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-4); }
.mg-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mg-chip {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px;
  transition: border-color .15s, color .15s, background .15s;
}
.mg-chip:hover { border-color: var(--border-hi); color: var(--text-1); }
.mg-chip--ghost { color: var(--text-4); }
.mg-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.mg-swatch:hover { transform: scale(1.2); box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 3px rgba(255,255,255,.35); }
.mg-desktop-note {
  display: none; text-align: center; font-size: 12.5px; color: var(--text-2);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 8px;
  padding: 9px 14px; margin-bottom: 18px;
}
.mg-dd { position: relative; display: inline-block; }
.mg-dd-panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  min-width: 260px; max-width: 380px; max-height: 340px; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 12px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.mg-dd-group { margin-bottom: 10px; }
.mg-dd-group:last-child { margin-bottom: 0; }
.mg-dd-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); margin: 2px 0 7px; }
.mg-dd-group .mg-chip { margin: 0 5px 5px 0; }
.mg-dd-syms { display: flex; flex-wrap: wrap; gap: 5px; }
.mg-color-row { align-items: center; }
.mg-chip--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.mg-chip--accent:hover { color: var(--accent); border-color: var(--accent); }
.mg-symbols { display: flex; flex-wrap: wrap; gap: 5px; }
.mg-sym { width: 30px; height: 30px; display: grid; place-items: center; font-size: 15px; color: var(--text-1);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; transition: border-color .12s, background .12s; }
.mg-sym:hover { border-color: var(--border-hi); background: var(--bg-3); }
.mg-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mg-preview-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 20px; padding: 3px 10px; }
.mg-preview {
  position: relative; aspect-ratio: 16 / 9; min-height: 380px;
  border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden;
  background: #10141c url('/images/servermessage-preview.webp') center/cover no-repeat;
}
.mg-preview-text {
  position: absolute; left: 3%; bottom: 34%; max-width: 52%; box-sizing: border-box;
  font-family: 'Roboto Condensed','Arial Narrow',sans-serif; font-weight: 400;
  color: #fff; font-size: 15px; line-height: 1.2; text-align: left;
  text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.9);
  word-break: break-word;
}
.mg-prefix { color: #d6dbe2; font-weight: 700; }
.mg-color { width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.mg-color::-webkit-color-swatch-wrapper { padding: 2px; }
.mg-color::-webkit-color-swatch { border: none; border-radius: 6px; }
.mg-hex { width: 96px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 8px; color: var(--text-1); font-family: var(--mono); font-size: 12px; padding: 6px 8px; color-scheme: dark; }
.mg-hex option { background: #16181d; color: var(--text-1); }
.mg-hex:focus, .mg-color:focus { outline: none; border-color: var(--accent-line); }
.mg-count { font-size: 11.5px; color: var(--text-4); margin: 6px 2px 0; text-align: right; }
.mg-count.is-limit { color: #f08098; }
.mg-note { font-size: 11.5px; color: var(--text-4); margin: 8px 2px 0; line-height: 1.5; }
.mg-copy { margin-top: 20px; }
.mg-copy-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mg-copy-btns { display: inline-flex; align-items: center; gap: 8px; }
.mg-copy-out {
  background: var(--bg-1); border: 1px solid var(--border-2); border-radius: var(--radius);
  color: var(--text-2); font-family: var(--mono); font-size: 11.5px; line-height: 1.55;
  padding: 12px 14px; margin: 0; max-height: 150px; overflow: auto; white-space: pre-wrap; word-break: break-word;
}
/* ── Kit Builder ─────────────────────────────── */
.kb-wrap { max-width: 640px; margin: 0 auto; }
.kb-hint { font-size: 12px; color: var(--text-3); margin: 0 auto 14px; text-align: center; max-width: 400px; }
.kb-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 14px 16px; }
.kb-name-field { display: flex; flex-direction: column; gap: 5px; }
.kb-name-input { width: 220px; }
.kb-topbar-actions { display: flex; gap: 8px; }
.kb-topbar-right { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.kb-meta { display: flex; flex-direction: column; gap: 1px; text-align: right; padding-right: 16px; border-right: 1px solid var(--border); }
.kb-meta-val { font-size: 15px; font-weight: 700; color: var(--text-1); }
.kb-meta-val #kb-item-count { font-family: var(--mono); color: var(--accent); }
.kb-meta-sub { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.kb-import { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.kb-import-msg { font-size: 12px; margin-left: 10px; }
/* The kit panel is sized to the slot grid (7×56 + gaps + padding ≈ 468) and centred, so
   it reads clearly thinner than the full-width topbar/commands/manage around it. */
.kb-panel { background: #0d0d0e; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; width: 470px; max-width: 100%; margin: 0 auto; }
.kb-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(90deg, #b8432a, #9c3722); color: #e9e2df; font-size: 22px; font-weight: 800; letter-spacing: .01em; padding: 12px 20px; border-left: 6px solid #d7d2cf; }
.kb-names-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: #f4ece9; cursor: pointer; user-select: none; white-space: nowrap; }
.kb-names-toggle input { width: 15px; height: 15px; margin: 0; accent-color: #7a2c1b; cursor: pointer; }
/* When "Shortnames" is on, show each item's name as a caption strip over its icon. */
.kb-body.kb-show-names .kb-slot--filled .kb-slot-name,
.kb-body.kb-show-names .kb-icon-ok ~ .kb-slot-name {
  display: flex; inset: auto 0 0 0; height: auto; align-items: flex-end; justify-content: center;
  padding: 2px 2px 3px; font-size: 7.5px; line-height: 1.05; font-weight: 600; color: #eef2f6;
  background: linear-gradient(to top, rgba(6,8,12,.94), rgba(6,8,12,.55) 70%, transparent);
  word-break: break-all; pointer-events: none;
}
.kb-body { padding: 16px 18px 20px; }
/* Section labels — centered GEAR / INVENTORY / BELT dividers with a hairline each side. */
.kb-section-label { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #d6d2cd; margin: 16px 0 10px; }
.kb-section-label::before, .kb-section-label::after { content: ''; flex: 1; height: 1px; }
.kb-section-label::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.11)); }
.kb-section-label::after { background: linear-gradient(90deg, rgba(255,255,255,.11), transparent); }
.kb-grid { display: grid; gap: 6px; grid-template-columns: repeat(6, 56px); justify-content: center; }
#kb-Wear { grid-template-columns: repeat(7, 56px); }
.kb-slot {
  position: relative; width: 56px; height: 56px; border-radius: 4px;
  background: #211f1d; border: 1px solid #3a3734; cursor: pointer; padding: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), inset 0 0 14px rgba(0,0,0,.35);
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.kb-slot:hover { border-color: #6f6a63; background: #2a2724; }
/* Filled slots get the Rust green left rail. */
.kb-slot--filled { background: #2a2825; border-color: #4a4640; box-shadow: inset 3px 0 0 #79b23f, inset 0 0 14px rgba(0,0,0,.3); }
.kb-slot--filled:hover { border-color: #6f6a63; box-shadow: inset 3px 0 0 #8ac74a, inset 0 0 14px rgba(0,0,0,.25); }
.kb-slot-name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 8.5px; line-height: 1.1; color: #b9c2cc; padding: 3px; overflow: hidden; }
.kb-icon { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; z-index: 1; opacity: 0; transition: opacity .12s; }
.kb-icon-ok { opacity: 1; }
.kb-icon-ok ~ .kb-slot-name { display: none; }
.kb-amt { position: absolute; right: 3px; bottom: 2px; z-index: 2; font-family: var(--mono); font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.kb-id { position: absolute; left: 3px; top: 2px; z-index: 2; font-family: var(--mono); font-size: 8.5px; color: #ffd27f; text-shadow: 0 1px 2px #000; }
/* Drag to move/reorder */
.kb-slot[draggable="true"] { cursor: grab; }
.kb-slot--dragging { opacity: .4; cursor: grabbing; }
.kb-slot--drop { border-color: var(--accent) !important; box-shadow: 0 0 0 2px var(--accent) inset; }
/* Event-item marker on a filled slot — orange rail instead of the default green. */
.kb-slot--event { border-color: #6a4a34; box-shadow: inset 3px 0 0 #d08a3a, inset 0 0 14px rgba(0,0,0,.3); }
.kb-event-mark { position: absolute; left: 2px; bottom: 1px; z-index: 3; font-size: 11px; line-height: 1; filter: drop-shadow(0 1px 1px #000); pointer-events: none; }
/* Event warning banner under the belt */
.kb-event-warning { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: #f0d49a;
  background: rgba(232,185,35,.08); border: 1px solid rgba(232,185,35,.3); border-radius: 8px; padding: 10px 13px; }
.kb-event-warning strong { color: #f4c552; }
/* Rejected-drop toast */
.kb-drop-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px); z-index: 130;
  background: rgba(224,80,106,.95); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: 90vw; text-align: center; }
.kb-drop-toast.show { opacity: 1; transform: translate(-50%, 0); }

.kb-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(4,6,10,.72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.kb-picker { background: #141210; border: 1px solid #2c2824; border-radius: 12px; overflow: hidden; width: 100%; max-width: 620px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.55); }
.kb-picker-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(90deg, #b8432a, #9c3722); color: #f4ece9; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 10px 16px; border-left: 6px solid #d7d2cf; }
.kb-picker-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px 4px; }
.kb-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 19px; line-height: 1; color: var(--text-3); cursor: pointer; transition: color .12s, background .12s, border-color .12s; }
.kb-close:hover { color: var(--text-1); background: rgba(255,255,255,.07); }
.kb-close:focus { outline: none; }
.kb-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* On the red title bars, tint it to sit on the warm gradient. */
.kb-picker-titlebar .kb-close, .kb-editor-head .kb-close { color: #f2ddd6; }
.kb-picker-titlebar .kb-close:hover, .kb-editor-head .kb-close:hover { color: #fff; background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.22); }
.kb-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 4px; }
.kb-cat { font-size: 12px; font-weight: 600; color: #b7b0a8; background: #201e1b; border: 1px solid #3a3734; border-radius: 20px; padding: 5px 11px; cursor: pointer; transition: color .12s, background .12s, border-color .12s; }
.kb-cat:hover { color: #f0ebe4; border-color: #5a554e; }
.kb-cat.is-active { background: #79b23f; color: #10200a; border-color: #79b23f; }
.kb-items { display: grid; grid-template-columns: repeat(auto-fill, 72px); gap: 8px; padding: 12px 16px 18px; overflow-y: auto; justify-content: center; }
.kb-item { position: relative; width: 72px; height: 72px; border-radius: 6px; background: #211f1d; border: 1px solid #3a3734; cursor: pointer; padding: 0; overflow: hidden; box-shadow: inset 0 0 14px rgba(0,0,0,.3); transition: border-color .12s, background .12s; }
.kb-item:hover { border-color: #79b23f; background: #2a2724; }
/* Shortnames in the picker only when the toggle is on: taller tile, icon top, name below. */
.kb-overlay.kb-show-names .kb-item { height: 80px; }
/* Explicit box (not auto — an <img> with auto width/height renders at intrinsic size). */
.kb-overlay.kb-show-names .kb-item .kb-icon { inset: 5px 4px auto; width: calc(100% - 8px); height: 56px; }
.kb-overlay.kb-show-names .kb-item .kb-slot-name,
.kb-overlay.kb-show-names .kb-item .kb-icon-ok ~ .kb-slot-name {
  display: flex; inset: auto 0 0 0; height: 17px; align-items: center; justify-content: center;
  padding: 0 3px; font-size: 8px; line-height: 1.05; font-weight: 600; color: #c7cebf;
  background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.05);
  word-break: break-all; overflow: hidden; pointer-events: none;
}
.kb-subhead { grid-column: 1 / -1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 12px 2px 2px; padding-top: 8px; border-top: 1px solid var(--border); }
.kb-subhead:first-child { border-top: none; padding-top: 0; margin-top: 2px; }
.kb-noitems { grid-column: 1 / -1; color: var(--text-4); font-size: 13px; text-align: center; padding: 20px; }
.kb-item--blocked { opacity: .3; cursor: not-allowed; }
.kb-item--blocked:hover { border-color: #3a3a3a; background: #232323; }
.kb-picker-msg { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .2s, opacity .2s, padding .2s; font-size: 12.5px; color: #f2b3c0; padding: 0 16px; }
.kb-picker-msg.show { max-height: 44px; opacity: 1; padding: 10px 16px 0; }

/* ── Zone Builder ─────────────────────────────── */
.zb-layout { display: grid; grid-template-columns: minmax(320px, 380px) 1fr; gap: 28px; align-items: start; }
.zb-form, .zb-side { min-width: 0; }
.zb-field { margin-bottom: 14px; }
.zb-field .mg-tool-label { display: block; margin-bottom: 5px; }
.zb-wide { width: 100%; box-sizing: border-box; }
.zb-row { display: flex; gap: 8px; }
.zb-row .mg-hex { width: 100%; }
.zb-hint { display: block; font-size: 11.5px; color: var(--text-4); margin-top: 5px; line-height: 1.5; }
/* Muted grey section labels matching the Say/Zone "Format"/"Colour" look — no blue,
   no divider line; grouping comes from the whitespace above each. */
.zb-section { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-4); margin: 24px 0 10px; }
.zb-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); margin-bottom: 9px; cursor: pointer; }
.zb-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.zb-inline { display: flex; align-items: center; gap: 12px; }
.zb-inline .mg-tool-label { margin-bottom: 0; }
.zb-preview { position: relative; aspect-ratio: 16 / 9; min-height: 210px; display: flex; align-items: center; justify-content: center; background: #0a0c11 center/cover no-repeat; border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; }
.zb-optional { font-weight: 400; color: var(--text-4); font-size: 10px; text-transform: none; letter-spacing: 0; }
.zb-bigwarn { font-size: 12.5px; color: #e7b466; background: rgba(230,170,70,.1); border: 1px solid rgba(230,170,70,.3); border-radius: 8px; padding: 10px 13px; margin-top: 12px; line-height: 1.5; }
.zb-resetrow { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.zb-shape { border: 2px solid var(--border-hi); transition: width .15s, height .15s, background .15s, border-color .15s, transform .15s; }
.zb-preview-dims { position: absolute; bottom: 8px; right: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.zb-centre { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); z-index: 2; }
.zb-warn { font-size: 12.5px; color: #e7b466; background: rgba(230,170,70,.08); border: 1px solid rgba(230,170,70,.28); border-radius: 8px; padding: 9px 13px; margin-bottom: 18px; line-height: 1.5; }
.zb-count { display: block; font-size: 11px; color: var(--text-4); margin-top: 5px; font-variant-numeric: tabular-nums; }
.zb-count.over { color: #f08098; }
@media (max-width: 860px) { .zb-layout { grid-template-columns: 1fr; } }

/* ── Message Box builder ──────────────────────── */
/* Flat like the Say/Zone editor — no bordered card, fills the same width. */
.mgb-config { max-width: none; }
.mgb-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 0 0 14px; border-bottom: 1px solid var(--border); }
.mgb-kicker { margin: 0 0 8px; color: var(--text-3); font: 700 10px/1 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.mgb-sub { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.mgb-sub-btn.is-active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.mgb-wip { display: flex; gap: 9px; align-items: baseline; margin: 0 0 14px; padding: 0 0 11px; color: var(--text-2); font-size: 12px; line-height: 1.45; border-bottom: 1px solid var(--border); }
.mgb-wip strong { color: var(--accent); white-space: nowrap; font: 700 10px/1.2 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .1em; }
.mgb-line { display: flex; gap: 8px; align-items: center; }
.mgb-line .zb-wide { flex: 1; }
.mgb-placement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mgb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.mgb-row-text { flex: 1; min-width: 150px; }
.mgb-row-align { width: auto; padding-right: 4px; }
.mgb-row-del { padding: 6px 11px; }
.mgb-row-warn { flex-basis: 100%; font-size: 11px; color: #e7b466; margin: 0 0 2px 2px; }
#mgb-add { margin-top: 2px; }
/* Box builder stacks like the Say/Zone view: form on top, full-width preview
   below, then the copy commands — not a cramped side column. */
.mgb-build { display: block; }
.mgb-form { max-width: none; padding: 18px 0 0; }
.mgb-out { margin-top: 26px; }
.mgb-coords-field { margin-top: 16px; max-width: 420px; }
.mgb-preview {
  position: relative; aspect-ratio: 16 / 9; min-height: 380px; box-sizing: border-box; overflow: hidden;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: #10141c url('/images/servermessage-preview.webp') center/cover no-repeat;
}
.mgb-out .mg-copy-out { max-width: 100%; }
/* Same bottom-left anchor + game font as the Say/Zone preview. `bottom` is set
   from the top-spacer. Boxes are the real █ glyphs, so widths are exact. */
.mgb-pv-stage {
  position: absolute; left: 3%; bottom: 34%; max-width: 94%;
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: 'Roboto Condensed','Arial Narrow',sans-serif;
}
.mgb-pv-box {
  position: relative; font-weight: 400; font-size: 32px; line-height: 1;
  color: rgba(0,0,0,.62); white-space: nowrap;      /* the █ run = the box fill */
}
.mgb-pv-divider { margin-bottom: 4px; }             /* title → body divider gap */
.mgb-pv-txt {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 5px; box-sizing: border-box;
  font-weight: 700; font-size: 20px; line-height: 1; white-space: nowrap; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.9);
}
.mgb-pv-two { position: relative; }
.mgb-pv-txt--two { font-size: 24px; }               /* size-70 banner text */

.kb-editor { background: #141210; border: 1px solid #2c2824; border-radius: 12px; overflow: hidden; width: 100%; max-width: 340px; padding: 0 0 16px; box-shadow: 0 24px 64px rgba(0,0,0,.55); }
.kb-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 15px; padding: 9px 12px; background: linear-gradient(90deg, #b8432a, #9c3722); border-left: 6px solid #d7d2cf; }
.kb-editor > .kb-editor-event, .kb-editor > .kb-edit-field, .kb-editor > .kb-edit-actions { margin-left: 16px; margin-right: 16px; }
.kb-editor-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kb-editor-icon { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 2px; }
.kb-editor-name { font-family: var(--mono); font-size: 13.5px; color: #f6efeb; word-break: break-all; }
.kb-editor-event { font-size: 11.5px; line-height: 1.45; color: #f0d49a; background: rgba(232,185,35,.08); border: 1px solid rgba(232,185,35,.28); border-radius: 7px; padding: 8px 10px; margin-bottom: 14px; }
.kb-edit-field { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.kb-edit-field--col { flex-direction: column; align-items: stretch; gap: 8px; }
.kb-edit-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.kb-edit-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.kb-cond-val { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); }
/* amount stepper */
.kb-stepper { display: flex; align-items: center; gap: 5px; }
.kb-step { width: 30px; height: 36px; border-radius: 7px; background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text-1); font-size: 17px; line-height: 1; cursor: pointer; transition: border-color .12s, background .12s; }
.kb-step:hover { border-color: var(--accent); background: var(--bg-2); }
.kb-stepper input { width: 66px; text-align: center; }
/* condition slider */
.kb-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border-2); cursor: pointer; }
.kb-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-2); box-shadow: 0 1px 4px rgba(0,0,0,.5); cursor: grab; }
.kb-slider::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid var(--bg-2); border-radius: 50%; background: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.5); cursor: grab; }
.kb-slider:focus { outline: none; }
.kb-slider:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft); }
.kb-edit-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.kb-remove-btn { color: #f08098; }

/* ── Map Picker ── */
.mp-wrap { max-width: 1060px; margin: 0 auto; }
.mp-topline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mp-wip { font-size: 11.5px; font-weight: 600; color: var(--gold); background: rgba(232,185,35,.08); border: 1px solid rgba(232,185,35,.28); border-radius: 20px; padding: 5px 12px; }
.mp-desktop-note { font-size: 11.5px; color: var(--text-4); }
.mp-restart-note { font-size: 11.5px; color: var(--text-3); line-height: 1.5; margin-top: 8px; }
.mp-cmd-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.mp-dim { color: var(--text-4); font-weight: 400; }
.mp-hint { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.mp-warn { font-size: 12px; color: #f0d49a; background: rgba(232,185,35,.08); border: 1px solid rgba(232,185,35,.28); border-radius: 7px; padding: 8px 11px; margin-top: 8px; line-height: 1.45; }

.mp-info { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 14px 18px; }
.mp-info-title { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-4); margin-bottom: 10px; }
.mp-info ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.mp-info li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.mp-info li::before { content: '›'; position: absolute; left: 3px; color: var(--accent); font-weight: 700; }

/* Left column is one flowing block (controls → advanced → info) so its sections pack
   tight; the preview is an independent sticky column beside it. */
.mp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 24px; align-items: start; }
.mp-main-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mp-controls { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mp-field { display: flex; flex-direction: column; gap: 8px; }
.mp-seed-row { display: flex; gap: 8px; }
.mp-seed-row input { flex: 1; }
.mp-size-head { display: flex; justify-content: space-between; align-items: baseline; }
.mp-size-val { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--accent); }
.mp-paste-box { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.mp-paste-actions { display: flex; align-items: center; gap: 10px; }
.mp-paste-msg { font-size: 12px; }

/* ── Preview panel ── */
.mp-preview { align-self: start; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 16px; position: sticky; top: 16px; }
.mp-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.mp-preview-head .col-label { margin: 0; }
.mp-quota { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--text-3); background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.mp-quota.is-low { color: var(--gold); border-color: rgba(232,185,35,.32); background: rgba(232,185,35,.08); }

/* The map frame — a fixed-ratio stage that always holds its shape, so states swap
   in and out without any layout jump. */
.mp-frame { position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 10px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--border-2); }
.mp-frame-link { position: absolute; inset: 0; display: block; }
.mp-map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; animation: mp-fadein .5s ease; }
.mp-frame-link::after { content: '⤢ Open full map'; position: absolute; right: 8px; bottom: 8px; font-size: 10.5px; font-weight: 700; color: var(--text-1); background: rgba(5,7,12,.72); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; opacity: 0; transition: opacity .15s; backdrop-filter: blur(3px); }
.mp-frame-link:hover::after { opacity: 1; }

/* State overlay (skeleton / spinner / rendering / message) — centered on the stage. */
.mp-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.mp-skeleton { position: absolute; inset: 0; background:
    radial-gradient(120% 120% at 30% 20%, rgba(77,166,255,.05), transparent 60%),
    linear-gradient(100deg, var(--bg-3) 30%, var(--bg-raise) 50%, var(--bg-3) 70%);
  background-size: 100% 100%, 220% 100%; animation: mp-shimmer 1.4s ease-in-out infinite; }
/* Faint contour lines so the skeleton reads as "a map loading", not a blank box. */
.mp-skeleton::before { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(0deg, transparent 0 33px, rgba(255,255,255,.03) 33px 34px),
                    repeating-linear-gradient(90deg, transparent 0 33px, rgba(255,255,255,.03) 33px 34px); }
.mp-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border-hi); border-top-color: var(--accent); animation: mp-spin .8s linear infinite; position: relative; z-index: 1; }
.mp-state-text { position: relative; z-index: 1; font-size: 13px; color: var(--text-2); line-height: 1.5; max-width: 280px; }
.mp-state-text strong { color: var(--text-1); }
.mp-state-sub { position: relative; z-index: 1; font-size: 11.5px; color: var(--text-4); }
.mp-elapsed { font-family: var(--mono); color: var(--accent); }

/* Indeterminate rendering bar */
.mp-render-bar { position: relative; z-index: 1; width: 180px; max-width: 70%; height: 5px; border-radius: 4px; background: var(--bg-1); overflow: hidden; }
.mp-render-bar::after { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: mp-sweep 1.3s ease-in-out infinite; }

.mp-frame-btn { position: relative; z-index: 1; }

/* Below the frame: stats + biomes */
.mp-results { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.mp-actions-row { display: flex; gap: 8px; margin-top: 12px; }
.mp-actions-row .btn { flex: 1; }
.mp-notice { font-size: 11.5px; line-height: 1.45; color: var(--text-3); margin-top: 10px; }
.mp-notice summary { cursor: pointer; color: var(--text-2); font-weight: 600; list-style: none; }
.mp-notice summary::-webkit-details-marker { display: none; }
.mp-notice summary::before { content: 'ℹ '; }
.mp-notice[open] summary::before { content: '▾ '; }
.mp-notice p { margin-top: 6px; }
.mp-attrib { font-size: 10.5px; color: var(--text-4); text-align: center; margin-top: 10px; }
.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mp-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 7px; padding: 9px 4px; }
.mp-stat span { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-4); }
.mp-stat b { font-size: 15px; color: var(--text-1); font-family: var(--mono); }
.mp-biomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.mp-biome { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.mp-biome-name { width: 44px; color: var(--text-3); flex-shrink: 0; }
.mp-biome-track { flex: 1; height: 7px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.mp-biome-fill { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .7s cubic-bezier(.22,1,.36,1); }
.mp-biome-pct { width: 42px; text-align: right; font-family: var(--mono); color: var(--text-2); flex-shrink: 0; }

/* ── Advanced generation (collapsible) ── */
.mp-advanced { margin: 0; padding: 0; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; }
.mp-advanced > summary { display: flex; align-items: center; gap: 10px; padding: 15px 18px; cursor: pointer; list-style: none; font-weight: 700; color: var(--text-1); font-size: 14.5px; }
.mp-advanced > summary::-webkit-details-marker { display: none; }
.mp-advanced > summary::before { content: '▸'; color: var(--accent); font-size: 12px; transition: transform .18s; }
.mp-advanced[open] > summary::before { transform: rotate(90deg); }
.mp-adv-sub { font-size: 12px; font-weight: 400; color: var(--text-4); }
.mp-adv-inner { padding: 0 18px 18px; }
.mp-adv-head { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 10px 0 4px; flex-wrap: wrap; }
.mp-adv-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.mp-tab { font-size: 13px; font-weight: 600; color: var(--text-3); background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 20px; padding: 6px 13px; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.mp-tab:hover { color: var(--text-1); border-color: var(--border-hi); }
.mp-tab.is-active { background: var(--accent); color: #04101e; border-color: var(--accent); }
.mp-adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; }
.mp-adv-field { display: flex; flex-direction: column; gap: 9px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; transition: border-color .15s, background .15s; }
.mp-adv-field.is-changed { border-color: var(--accent-line); background: var(--accent-soft); }
.mp-adv-field.is-full { grid-column: 1 / -1; }
.mp-adv-field select.mg-hex { width: 100%; }
/* Row 1: label + reset. Label owns the whole row so it never collides with the value. */
.mp-adv-flabel { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.mp-adv-label { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.mp-adv-field.is-changed .mp-adv-label { color: var(--text-1); }
.mp-adv-reset { flex-shrink: 0; width: 20px; height: 20px; display: none; align-items: center; justify-content: center; padding: 0; font-size: 12px; line-height: 1; color: var(--text-3); background: var(--bg-1); border: 1px solid var(--border-2); border-radius: 5px; cursor: pointer; transition: color .15s, border-color .15s; }
.mp-adv-reset:hover { color: var(--accent); border-color: var(--accent-line); }
.mp-adv-field.is-changed .mp-adv-reset { display: inline-flex; }
/* Row 2: slider flexes, precise number box sits at a fixed width beside it. */
.mp-adv-fctrl { display: flex; align-items: center; gap: 10px; }
.mp-adv-slider { flex: 1; min-width: 0; }
.mp-adv-num { flex-shrink: 0; width: 62px; text-align: right; font-family: var(--mono); font-size: 12px; padding: 5px 7px; }
.mp-adv-hint { font-size: 11px; color: var(--text-4); line-height: 1.4; }
.mp-noise-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mp-noise-cell { display: flex; flex-direction: column; gap: 3px; }
.mp-noise-key { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-4); }
.mp-noise-cell .mg-hex { width: 100%; }
.mp-biome-sum { margin-top: 14px; font-size: 12.5px; font-family: var(--mono); }
.mp-biome-sum.is-ok { color: var(--alive); }
.mp-biome-sum.is-bad { color: var(--kill); }

@keyframes mp-shimmer { 0% { background-position: 0 0, 200% 0; } 100% { background-position: 0 0, -200% 0; } }
@keyframes mp-spin { to { transform: rotate(360deg); } }
@keyframes mp-fadein { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
@keyframes mp-sweep { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .mp-skeleton, .mp-spinner, .mp-render-bar::after, .mp-map-img { animation: none; }
  .mp-biome-fill { transition: none; }
}

@media (max-width: 820px) {
  .mp-grid { grid-template-columns: 1fr; }
  /* Dissolve the wrapper so the preview can slot in right after the controls. */
  .mp-main-col { display: contents; }
  .mp-controls { order: 1; }
  .mp-preview { order: 2; position: static; }
  .mp-advanced { order: 3; }
  .mp-info { order: 4; }
  .mp-frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 460px) {
  .mp-stats { grid-template-columns: repeat(2, 1fr); }
  .mp-noise-row { grid-template-columns: repeat(2, 1fr); }
}

.kb-manage { margin-top: 22px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 16px 18px; }
.kb-manage-grid { display: flex; flex-direction: column; gap: 11px; }
.kb-manage-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kb-manage-row .mg-tool-label { min-width: 92px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.kb-cmd { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--bg-1); border: 1px solid var(--border); border-radius: 6px; padding: 7px 11px; flex: 1; min-width: 200px; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.kb-cmd:hover { border-color: var(--border-hi); color: var(--text-1); background: var(--bg-3); }
.kb-cmd-copied { border-color: var(--alive); color: var(--alive); }

@media (max-width: 860px) {
  .mg-layout { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .kb-grid, #kb-Wear { grid-template-columns: repeat(6, 46px); }
  .kb-slot { width: 46px; height: 46px; }
  .mg-preview, .mgb-preview { min-height: 240px; }
  .mg-preview-text { max-width: 82%; font-size: 13px; bottom: 30%; }
  .mgb-form { max-width: none; }
  .mgb-pv-box { font-size: 22px; }
  .mgb-pv-txt { font-size: 14px; }
  .mgb-pv-txt--two { font-size: 16px; }
  .mg-desktop-note { display: block; }
  .mg-tools { gap: 12px; }
  .mg-color-row { flex-wrap: wrap; }
  .mgb-toolbar { align-items: flex-start; }
  .mgb-wip { align-items: flex-start; flex-direction: column; gap: 4px; }
  .mgb-placement-grid { grid-template-columns: 1fr; gap: 0; }
  .adm-notice-form-head, .adm-notice-actions { align-items: flex-start; flex-direction: column; }
  .adm-notice-fields { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   HOME — latest video + server insight charts
   ═══════════════════════════════════════════════════ */
.latest-section { padding: 48px 0; border-top: 1px solid var(--border); }
.latest-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px;
  align-items: center; margin-top: 18px;
}
.latest-embed {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  overflow: hidden; background: #000;
  box-shadow: 0 0 60px -34px var(--accent-glow);
}
.latest-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.latest-title { font-size: 19px; font-weight: 700; color: var(--text-1); line-height: 1.35; margin-bottom: 8px; }
.latest-meta { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }

.home-charts { padding: 48px 0; border-top: 1px solid var(--border); }
.charts-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.range-toggle { display: inline-flex; gap: 4px; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 20px; padding: 3px; }
.range-btn {
  appearance: none; cursor: pointer; border: 0; background: transparent;
  color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 16px; transition: background .15s, color .15s;
}
.range-btn:hover { color: var(--text-1); }
.range-btn.is-active { background: var(--accent); color: #fff; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.chart-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 20px 16px;
}
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chart-title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.chart-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.chart-badge {
  flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: 20px; padding: 4px 10px;
}
.chart-badge--live { color: var(--alive); border-color: rgba(52,199,123,.3); background: rgba(52,199,123,.08); }
.chart-metric { font-size: 26px; font-weight: 800; color: var(--text-1); margin: 14px 0 4px; }
.chart-metric-unit { font-size: 13px; font-weight: 600; color: var(--text-3); }
.chart-body { margin-top: 6px; position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-area { opacity: 0; }
.chart-guide { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.chart-cursor { pointer-events: none; }
#cmd-cursor { fill: var(--accent); }
#fps-cursor { fill: var(--alive); }
.chart-hit { cursor: crosshair; }
.chart-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, -120%);
  background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 6px;
  padding: 4px 8px; font-size: 11px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.45); z-index: 5;
  font-variant-numeric: tabular-nums;
}
.chart-xaxis {
  display: flex; justify-content: space-between; margin-top: 7px;
  font-size: 9.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
    /* Paths carry pathLength="1", so a dash of 1 always covers the whole line no
     matter how jagged it is. A fixed dash length silently clipped spiky charts:
     a busy week is ~2600 user units against the old hardcoded 1200. */
  .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: chartDraw 1.8s ease forwards .25s; }
  .chart-area { animation: chartFade 1.1s ease forwards .55s; }
}
@media (prefers-reduced-motion: reduce) {
  .chart-line { stroke-dashoffset: 0; }
  .chart-area { opacity: 1; }
}
@keyframes chartDraw { to { stroke-dashoffset: 0; } }
@keyframes chartFade { to { opacity: 1; } }

@media (max-width: 768px) {
  .latest-grid { grid-template-columns: 1fr; gap: 18px; }
  .charts-grid { grid-template-columns: 1fr; }
}

/* ── Community / Discord widget ──────────────── */
.community-section { padding: 18px 0 8px; }
.community-grid { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: center; }
.community-title { font-size: 26px; font-weight: 800; color: var(--text-1); margin: 6px 0 10px; letter-spacing: -.01em; }
.community-desc { font-size: 14px; color: var(--text-3); line-height: 1.6; max-width: 440px; margin-bottom: 20px; }
.community-widget iframe { border-radius: 12px; display: block; width: 100%; }
@media (max-width: 768px) {
  .community-grid { grid-template-columns: 1fr; gap: 22px; }
  .community-widget iframe { height: 380px; }
}

/* ── Live gamemodes + scrim slots (aim trainer) ── */
.gm-section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.kf-live-dot.is-offline { color: var(--text-3); }
.kf-live-dot.is-offline::before { background: var(--text-3); animation: none; }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.gm-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px 15px;
  transition: border-color .15s, transform .15s;
}
.gm-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.gm-card--off { opacity: .55; }
.gm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gm-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.gm-pill {
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; border: 1px solid; white-space: nowrap;
}
.gm-pill.gm-open { color: var(--alive); border-color: rgba(52,199,123,.35); background: rgba(52,199,123,.08); }
.gm-pill.gm-full { color: var(--gold);  border-color: rgba(232,185,35,.35); background: rgba(232,185,35,.08); }
.gm-pill.gm-off  { color: var(--kill);  border-color: rgba(224,80,106,.3);  background: rgba(224,80,106,.07); }
.gm-count { font-size: 20px; font-weight: 600; color: var(--text-1); line-height: 1; margin-bottom: 9px; }
.gm-count-max { font-size: 12px; color: var(--text-3); }
.gm-bar { height: 4px; border-radius: 3px; background: var(--bg-raise); overflow: hidden; }
.gm-bar-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width .6s cubic-bezier(.22,.61,.36,1); }
.gm-bar-fill.is-full { background: var(--gold); }
.gm-scrims-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 24px; }
.gm-scrims-count { font-size: 12px; color: var(--text-2); }
.gm-scrim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gm-slot {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px 8px;
  transition: border-color .15s;
}
.gm-slot:hover { border-color: var(--border-2); }
.gm-slot-id { font-size: 10.5px; font-weight: 700; color: var(--text-3); letter-spacing: .05em; text-transform: uppercase; }
.gm-slot-count { font-size: 17px; font-weight: 600; color: var(--text-1); }
.gm-slot-status { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.gm-slot--joinable .gm-slot-status { color: var(--alive); }
.gm-slot--empty .gm-slot-status { color: var(--text-3); }
.gm-slot--inprogress { border-color: var(--accent-line); }
.gm-slot--inprogress .gm-slot-status { color: var(--accent); }
.gm-slot--full .gm-slot-status { color: var(--gold); }
.gm-slot--private .gm-slot-status { color: #b06fd4; }
.gm-slot--disabled { opacity: .5; }
.gm-slot--disabled .gm-slot-status { color: var(--kill); }

/* ── Aim trainer server list ────────────────────── */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sv-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px; color: var(--text-1);
  transition: border-color .15s, transform .15s, background .15s;
}
button.sv-card { cursor: pointer; }
button.sv-card:hover { border-color: var(--accent-line); background: var(--bg-3); transform: translateY(-1px); }
.sv-card.is-open { border-color: var(--accent-line); }
.sv-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.sv-name { font-size: 15px; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-region {
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 4px; padding: 1px 6px;
}
.sv-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--alive);
}
.sv-status.is-offline { color: var(--text-3); }
.sv-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sv-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.sv-count { font-size: 22px; font-weight: 600; line-height: 1; color: var(--text-1); }
.sv-count-max { font-size: 13px; color: var(--text-3); }
.sv-count #sv-au-count.is-offline { color: var(--text-3); }
.sv-count-label { font-size: 9.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.sv-chevron { color: var(--text-3); flex-shrink: 0; transition: transform .25s ease; }
.sv-card.is-open .sv-chevron { transform: rotate(180deg); }
.sv-card--soon {
  border-style: dashed; border-color: var(--border-2); background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.sv-soon-title { font-size: 14px; font-weight: 700; color: var(--text-3); }
.sv-soon-sub { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-4); }
.sv-panel { margin-top: 18px; animation: svPanelIn .3s cubic-bezier(.22,.61,.36,1); }
@keyframes svPanelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* "You're hosting" banner — always visible above the collapsible panel */
.sv-hosting-bar {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px 14px;
  background: rgba(232,185,35,.06); border: 1px solid rgba(232,185,35,.3);
  border-radius: var(--radius-lg);
}
.sv-hosting-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(232,185,35,.5); animation: shHostPulse 2s infinite;
}
@keyframes shHostPulse {
  0% { box-shadow: 0 0 0 0 rgba(232,185,35,.45); }
  70% { box-shadow: 0 0 0 6px rgba(232,185,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,185,35,0); }
}
.sv-hosting-text { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--gold); }
.sv-hosting-jump {
  appearance: none; cursor: pointer; flex-shrink: 0;
  font-family: var(--ui); font-size: 12px; font-weight: 700;
  color: var(--gold); background: rgba(232,185,35,.1);
  border: 1px solid rgba(232,185,35,.35); border-radius: var(--radius);
  padding: 6px 14px; transition: background .15s, border-color .15s;
}
.sv-hosting-jump:hover { background: rgba(232,185,35,.18); border-color: var(--gold); }

/* ── Account verification (profile) ───────────── */
.verify-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
}
.verify-card--done {
  border-color: rgba(52,199,123,.3);
  background: linear-gradient(180deg, rgba(52,199,123,.07), var(--bg-3));
}
.verify-card--done .verify-icon { color: var(--alive); flex-shrink: 0; }
.verify-card--pending { display: block; border-color: var(--accent-line); }
.verify-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; }
.verify-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.verify-card--done .verify-title { color: var(--alive); }
.verify-sub { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.verify-sub strong { color: var(--text-1); }
.verify-note { color: var(--text-3); }

.verify-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.verify-step {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 13px;
}
.verify-step-num {
  width: 22px; height: 22px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 50%; font-size: 11px; font-weight: 600; color: var(--accent);
}
.verify-step-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.verify-step-label { font-size: 14px; font-weight: 700; color: var(--text-1); }
.verify-step-page { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.verify-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 14px;
}
.verify-timer { font-size: 12px; color: var(--text-3); }
.verify-timer .mono { color: var(--text-2); }
.verify-reroll { margin: 0; }

/* Verification: presence + page-number steps */
.verify-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.verify-presence {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid; border-radius: 20px; padding: 3px 10px;
}
.verify-presence-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.verify-presence.is-online  { color: var(--alive); border-color: rgba(52,199,123,.35); background: rgba(52,199,123,.08); }
.verify-presence.is-offline { color: var(--text-3); border-color: var(--border-2); background: var(--bg-2); }
.verify-presence.is-unknown { color: var(--gold); border-color: rgba(232,185,35,.3); background: rgba(232,185,35,.07); }
.verify-hint {
  margin: 12px 0 0; padding: 9px 12px; font-size: 12.5px; line-height: 1.5;
  color: var(--text-2); background: var(--bg-2);
  border: 1px solid var(--border-2); border-left: 2px solid var(--gold);
  border-radius: var(--radius);
}

/* Gamemode join buttons */
.gm-join {
  appearance: none; cursor: pointer; width: 100%;
  margin-top: 11px; padding: 7px 12px;
  font-family: var(--ui); font-size: 12.5px; font-weight: 700;
  letter-spacing: .03em; color: #04101e;
  background: linear-gradient(180deg, var(--accent), #3f97e8);
  border: none; border-radius: var(--radius);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.gm-join:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 3px 12px var(--accent-glow); }
.gm-join:active { transform: translateY(0); }
.gm-join:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.gm-join--queue {
  background: none; color: var(--gold);
  border: 1px solid rgba(232,185,35,.4);
}
.gm-join--queue:hover { background: rgba(232,185,35,.08); box-shadow: none; }
/* Unqueue — a muted, low-emphasis "back out" action, distinct from Join/Queue. */
.gm-join--unqueue {
  background: none; color: var(--text-2);
  border: 1px solid rgba(255,255,255,.16);
}
.gm-join--unqueue:hover { background: rgba(255,255,255,.06); color: #fff; box-shadow: none; }
/* Marker shown instead of a button on the mode you're already in. */
.gm-in {
  display: block; width: 100%; margin-top: 11px; padding: 7px 12px;
  text-align: center; box-sizing: border-box;
  font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .03em;
  color: var(--accent);
  border: 1px dashed rgba(79,151,232,.4); border-radius: var(--radius);
}
.gm-cooldown {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  box-sizing: border-box; margin-top: 11px; padding: 7px 12px;
  color: var(--gold); background: rgba(232,185,35,.06);
  border: 1px solid rgba(232,185,35,.32); border-radius: var(--radius);
  font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.gm-cooldown strong { color: var(--gold); font-size: 12px; }
/* Right-aligned group in the Live Gamemodes header: presence chip + Players button */
.gm-header-right { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gm-header-right .gm-presence { margin-left: 0; }
.gm-players-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 7px; border: 1px solid var(--border-2); background: none; color: var(--text-2);
  transition: color .15s, border-color .15s, background .15s; }
.gm-players-btn:hover { color: var(--text-1); border-color: var(--border-hi); background: var(--bg-3); }
.gm-players-btn svg { opacity: .85; }

/* Players-online popup */
.pl-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pl-modal[hidden] { display: none; }
.pl-modal-scrim { position: absolute; inset: 0; background: rgba(3,5,10,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pl-modal-box { position: relative; width: min(440px, 100%); max-height: 80vh; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; }
.pl-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pl-modal-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.pl-modal-count { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.pl-modal-updated { margin-left: auto; margin-right: 12px; font-size: 11px; color: var(--text-4); font-family: var(--mono); white-space: nowrap; }
.pl-modal-close { display: grid; place-items: center; width: 30px; height: 30px; cursor: pointer; background: none; border: 1px solid var(--border-2); border-radius: 7px; color: var(--text-3); transition: color .15s, border-color .15s; }
.pl-modal-close:hover { color: var(--text-1); border-color: var(--border-hi); }
.pl-modal-body { flex: 1; overflow-y: auto; padding: 4px 12px; }
.pl-modal-foot { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-4); }
.pl-list { list-style: none; }
/* Fixed right columns so every row (header included) shares the same geometry —
   with `auto` each row is its own grid and the columns went ragged, leaving the
   Joined/Ping headers off-centre from their values. */
.pl-row { display: grid; grid-template-columns: 1fr 68px 64px; gap: 14px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--border); font-size: 13.5px; }
.pl-row:first-child { border-top: none; }
.pl-row--head { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.pl-name { color: var(--text-1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pl-joined { color: var(--text-3); font-family: var(--mono); font-size: 12px; text-align: center; white-space: nowrap; }
.pl-ping { font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: center; min-width: 54px; white-space: nowrap; }
/* Centre the Joined/Ping headers over their value columns (Player stays left). */
.pl-row--head span:nth-child(2), .pl-row--head span:nth-child(3) { text-align: center; }
.pl-ping.is-ok { color: var(--alive); }
.pl-ping.is-mid { color: #e8a020; }
.pl-ping.is-high { color: var(--kill); }
.pl-ping.is-unknown { color: var(--text-4); }

.gm-presence { margin-left: auto; }  /* pushes the chip to the right of the Live Gamemodes header */
.gm-presence {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid; border-radius: 20px; padding: 4px 11px;
}
.gm-presence-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gm-presence.is-online  { color: var(--alive); border-color: rgba(52,199,123,.35); background: rgba(52,199,123,.08); }
.gm-presence.is-offline { color: var(--text-3); border-color: var(--border-2); background: var(--bg-2); }
.gm-status-hint { margin: -4px 0 12px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.gm-status-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.gm-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 400; max-width: min(90vw, 420px);
  padding: 11px 16px; border-radius: var(--radius-lg);
  font-size: 13px; font-weight: 600; text-align: center;
  background: var(--bg-3); border: 1px solid var(--border-2);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  animation: gmToastIn .22s cubic-bezier(.22,.61,.36,1);
}
.gm-toast.is-ok  { border-color: rgba(52,199,123,.4); color: var(--alive); }
.gm-toast.is-err { border-color: rgba(224,80,106,.4); color: var(--kill); }
@keyframes gmToastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Scrim slot join/host buttons */
.gm-slot-btn {
  appearance: none; cursor: pointer; width: 100%;
  margin-top: 9px; padding: 6px 10px;
  font-family: var(--ui); font-size: 12px; font-weight: 700;
  letter-spacing: .03em; color: #04101e;
  background: linear-gradient(180deg, var(--accent), #3f97e8);
  border: none; border-radius: var(--radius);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.gm-slot-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 3px 12px var(--accent-glow); }
.gm-slot-btn:active { transform: translateY(0); }
.gm-slot-btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
/* Hosting is the weightier action — outline it rather than competing with Join */
.gm-slot-btn--host {
  background: none; color: var(--alive);
  border: 1px solid rgba(52,199,123,.45);
}
.gm-slot-btn--host:hover { background: rgba(52,199,123,.1); box-shadow: none; }

/* ── Scrim host panel ─────────────────────────── */
.sh-panel {
  margin-top: 16px; padding: 16px 18px;
  background: var(--bg-2); border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  animation: svPanelIn .25s cubic-bezier(.22,.61,.36,1);
}
.sh-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sh-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.sh-lock {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); background: rgba(232,185,35,.08);
  border: 1px solid rgba(232,185,35,.3); border-radius: 20px; padding: 3px 10px;
}
.sh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.sh-row { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sh-label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.sh-select, .sh-toggle {
  appearance: none; width: 100%;
  font-family: var(--ui); font-size: 13px; font-weight: 600;
  color: var(--text-1); background: var(--bg-3);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 8px 10px; cursor: pointer; color-scheme: dark;
  transition: border-color .15s, color .15s;
}
.sh-select:hover, .sh-toggle:hover { border-color: var(--accent-line); }
.sh-select:disabled, .sh-toggle:disabled { opacity: .5; cursor: default; }
.sh-toggle { text-align: left; color: var(--alive); }
.sh-toggle.is-private { color: var(--kill); }

.sh-players-label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin: 16px 0 8px; }
.sh-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-team { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 11px; min-width: 0; }
.sh-team-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.sh-team-head.sh-team-1 { color: var(--accent); }
.sh-team-head.sh-team-2 { color: #e0a050; }
.sh-team-count { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.sh-team-empty { font-size: 12px; color: var(--text-4); font-style: italic; }
.sh-player { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--border); }
.sh-team .sh-player:first-of-type { border-top: none; }
.sh-player-name { font-size: 13px; font-weight: 600; color: var(--text-1); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sh-host-tag { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: rgba(232,185,35,.1); border: 1px solid rgba(232,185,35,.3); border-radius: 4px; padding: 1px 5px; }
.sh-ready { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--alive); }
.sh-player-actions { display: flex; gap: 5px; flex-shrink: 0; }
.sh-mini {
  appearance: none; cursor: pointer;
  font-family: var(--ui); font-size: 10.5px; font-weight: 700;
  color: var(--text-2); background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 3px 8px; transition: color .15s, border-color .15s, background .15s;
}
.sh-mini:hover { color: var(--text-1); border-color: var(--border-hi); }
.sh-mini:disabled { opacity: .45; cursor: default; }
.sh-mini--kick { color: var(--kill); border-color: rgba(224,80,106,.3); }
.sh-mini--kick:hover { background: rgba(224,80,106,.1); border-color: var(--kill); }
.sh-foot { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }
/* Self "Switch team" — neutral secondary action, sits left of the red Leave button */
.sh-switch {
  appearance: none; cursor: pointer;
  font-family: var(--ui); font-size: 12px; font-weight: 700;
  color: var(--text-2); background: none;
  border: 1px solid var(--border-hi); border-radius: var(--radius);
  padding: 6px 14px; transition: background .15s, border-color .15s, color .15s;
}
.sh-switch:hover { color: var(--text-1); border-color: var(--accent-line); }
.sh-switch:disabled { opacity: .5; cursor: default; }
.sh-leave {
  appearance: none; cursor: pointer;
  font-family: var(--ui); font-size: 12px; font-weight: 700;
  color: var(--kill); background: none;
  border: 1px solid rgba(224,80,106,.35); border-radius: var(--radius);
  padding: 6px 14px; transition: background .15s, border-color .15s;
}
.sh-leave:hover { background: rgba(224,80,106,.1); border-color: var(--kill); }
.sh-leave:disabled { opacity: .5; cursor: default; }
@media (max-width: 560px) { .sh-teams { grid-template-columns: 1fr; } }

/* Ready up — per player, sits above the team columns */
.sh-ready-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.sh-ready-btn {
  appearance: none; cursor: pointer;
  font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .03em;
  color: #04101e; background: linear-gradient(180deg, var(--alive), #27a163);
  border: none; border-radius: var(--radius); padding: 8px 20px;
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.sh-ready-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 3px 12px rgba(52,199,123,.35); }
.sh-ready-btn:active { transform: translateY(0); }
.sh-ready-btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
/* Already ready: outline instead of solid, so the un-ready action reads as secondary */
.sh-ready-btn.is-ready {
  background: none; color: var(--alive);
  border: 1px solid rgba(52,199,123,.45);
}
.sh-ready-btn.is-ready:hover { background: rgba(52,199,123,.1); box-shadow: none; }
.sh-ready-count { font-size: 12px; color: var(--text-3); }
/* Auto-start reminder under the ready bar, so hosts know what launches the match */
.sh-ready-hint { font-size: 11.5px; color: var(--text-3); margin: 8px 0 0; }

/* AFK auto-kick countdown chip — sits at the far end of the head row as an urgency cue */
.sh-afk {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--kill); background: rgba(224,80,106,.08);
  border: 1px solid rgba(224,80,106,.3); border-radius: 20px; padding: 3px 11px;
}
.sh-afk .mono { font-family: var(--mono); letter-spacing: 0; }

/* Verification: the two ways to verify, side by side */
.verify-intro { font-size: 12.5px; color: var(--text-2); line-height: 1.55; margin-bottom: 12px; }
.verify-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.verify-option {
  display: flex; flex-direction: column;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 15px 16px;
  transition: border-color .15s;
}
.verify-option:hover { border-color: var(--accent-line); }
.verify-option-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; color: var(--accent); }
.verify-option-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.verify-option-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.55; flex: 1; margin-bottom: 13px; }
.verify-cmd {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 4px; padding: 1px 6px;
}
/* Buttons sit flush at the bottom so both cards line up regardless of copy length */
.verify-option-action { margin: 0; align-self: stretch; text-align: center; }
.verify-option-action .btn, a.verify-option-action { width: 100%; justify-content: center; }
@media (max-width: 560px) { .verify-options { grid-template-columns: 1fr; } }
.verify-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.verify-cancel { color: var(--text-3); }
.verify-cancel:hover { color: var(--kill); border-color: rgba(224,80,106,.4); }

/* ── Entity Spawner ───────────────────────────── */
/* Tab toggle: Spawnable / Won't spawn */
.es-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 999px;
}
.es-tab {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ui); font-size: 13px; font-weight: 700; color: var(--text-3);
  background: transparent; border: none; border-radius: 999px; padding: 8px 16px;
  transition: color .15s, background .15s;
}
.es-tab:hover { color: var(--text-1); }
.es-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.es-tab.is-active { color: var(--accent); background: var(--accent-soft); }
.es-tab-n {
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text-4);
  background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 20px; padding: 1px 8px;
}
.es-tab.is-active .es-tab-n { color: var(--accent); border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.es-panel[hidden] { display: none; }

/* Coords card (spawnable) */
.es-coords {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 16px;
}
.es-coords-main { flex: 1; min-width: 260px; }
.es-pos-paste { width: 100%; box-sizing: border-box; margin-top: 6px; }
.es-hint { font-size: 12px; color: var(--text-3); margin-top: 7px; line-height: 1.5; }
.es-tested {
  display: flex; flex-direction: column; gap: 2px; flex-shrink: 0;
  padding-left: 16px; border-left: 1px solid var(--border);
}
.es-tested-label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.es-tested-val { font-size: 17px; font-weight: 700; color: var(--text-1); font-family: var(--mono); }
.es-tested-sub { font-size: 11px; color: var(--text-3); }

/* Search bar — mirrors the Command Reference */
.es-searchbar { margin-bottom: 14px; }
.es-search-wrap { position: relative; display: flex; align-items: center; }
.es-search-ico { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--text-4); pointer-events: none; }
.es-search {
  width: 100%; box-sizing: border-box; font-family: var(--ui); font-size: 15px; color: var(--text-1);
  padding: 13px 44px; background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  transition: border-color .15s, background .15s;
}
.es-search::placeholder { color: var(--text-4); }
.es-search:focus { outline: none; border-color: var(--accent-line); background: var(--bg-3); }
.es-search-kbd {
  position: absolute; right: 14px; font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--text-4); background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: 5px; padding: 2px 7px; pointer-events: none;
}
.es-search-wrap:focus-within .es-search-kbd { opacity: 0; }

/* Filter chips (categories / status) — pill style like the CR sub-pills */
.es-cats { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.es-chip {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ui); font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 20px;
  padding: 6px 13px; transition: color .15s, background .15s, border-color .15s;
}
.es-chip:hover { color: var(--text-1); border-color: var(--border-hi); background: var(--bg-3); }
.es-chip.is-active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.es-chip-n { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text-4); background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; padding: 1px 6px; }
.es-chip:hover .es-chip-n { color: var(--text-2); }
.es-chip.is-active .es-chip-n { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent-line); }

.es-count { font-size: 12px; color: var(--text-3); margin: 2px 0 12px; }
.es-count b { color: var(--text-1); font-weight: 700; }

.es-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.es-card {
  appearance: none; cursor: pointer; text-align: left; position: relative;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 15px;
  transition: border-color .15s, transform .1s, background .15s;
}
.es-card:hover { border-color: var(--accent-line); background: var(--bg-3); }
.es-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.es-card:active { transform: scale(.997); }
.es-card-top { display: flex; align-items: center; gap: 8px; }
.es-card-name { flex: 1; min-width: 0; font-family: var(--ui); font-size: 14.5px; font-weight: 700; color: var(--text-1); line-height: 1.25; }
.es-card-skin { flex-shrink: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); background: rgba(232,185,35,.1); border: 1px solid rgba(232,185,35,.3); border-radius: 4px; padding: 2px 6px; }
.es-card-copy { flex-shrink: 0; display: inline-flex; color: var(--text-4); opacity: 0; transition: opacity .15s, color .15s; }
.es-card-copy svg { width: 15px; height: 15px; }
.es-card:hover .es-card-copy { opacity: .85; }
.es-card-id {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.es-hl { background: rgba(232,185,35,.22); color: var(--text-1); border-radius: 2px; padding: 0 1px; }
.es-empty { font-size: 13px; color: var(--text-3); text-align: center; padding: 30px 0; }

/* Won't-spawn intro callout */
.es-nos-intro {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--border-2); border-left: 2px solid var(--accent-line);
  border-radius: var(--radius-lg); padding: 15px 17px; margin-bottom: 18px;
}
.es-nos-intro-ico { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 9px; }
.es-nos-intro-ico svg { width: 19px; height: 19px; }
.es-nos-intro p { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.es-nos-intro b { color: var(--text-1); font-weight: 700; }

/* Won't-spawn list — compact rows */
.es-nos-list { display: flex; flex-direction: column; gap: 7px; }
.es-nos {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 14px;
  transition: border-color .15s, background .15s;
}
.es-nos:hover { border-color: var(--border-hi); background: var(--bg-3); }
.es-nos:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.es-nos-id { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--text-2); word-break: break-all; line-height: 1.35; }
.es-nos-reason { flex-shrink: 0; font-size: 11px; color: var(--text-4); }
.es-nos-tag {
  flex-shrink: 0; font: 700 9.5px/1 var(--ui); text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 8px; border-radius: 5px; border: 1px solid var(--border-2);
}
.es-nos-tag--refused { color: var(--gold); border-color: rgba(232,185,35,.32); background: rgba(232,185,35,.07); }
.es-nos-tag--invalid { color: var(--text-3); border-color: var(--border-2); background: var(--bg-3); }
.es-nos-copy { flex-shrink: 0; display: inline-flex; color: var(--text-4); opacity: 0; transition: opacity .15s; }
.es-nos-copy svg { width: 14px; height: 14px; }
.es-nos:hover .es-nos-copy { opacity: .8; }
.es-more { font-size: 12.5px; color: var(--text-3); text-align: center; padding: 16px 0 4px; }

.es-convars { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.es-convar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.es-convar-group { display: flex; flex-direction: column; gap: 6px; }
.es-convar-group-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.es-convar {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 3px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
  transition: border-color .15s;
}
.es-convar:hover { border-color: var(--accent-line); }
.es-convar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.es-convar-cmd { font-family: var(--mono); font-size: 12px; color: var(--accent); word-break: break-all; }
.es-convar-def { font-family: var(--mono); font-size: 10px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.es-convar-desc { font-size: 11.5px; color: var(--text-2); line-height: 1.45; }

@media (max-width: 560px) {
  .es-tested { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 12px; width: 100%; }
}

/* ── Command Reference ────────────────────────── */
.cr-root { display: block; }

/* Search bar — the anchor of the page, present in every state */
.cr-searchbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; margin-bottom: 22px; }
.cr-search-wrap { position: relative; flex: 1; min-width: 240px; display: flex; align-items: center; }
.cr-search-ico { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--text-4); pointer-events: none; }
.cr-search {
  width: 100%; font-family: var(--ui); font-size: 15px; color: var(--text-1);
  padding: 14px 44px 14px 44px; background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  transition: border-color .15s, background .15s;
}
.cr-search::placeholder { color: var(--text-4); }
.cr-search:focus { outline: none; border-color: var(--accent-line); background: var(--bg-3); }
.cr-search-kbd {
  position: absolute; right: 14px; font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--text-4); background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: 5px; padding: 2px 7px; pointer-events: none;
}
.cr-search-wrap:focus-within .cr-search-kbd { opacity: 0; }
.cr-synced {
  display: flex; flex-direction: column; justify-content: center; gap: 1px; flex-shrink: 0;
  padding-left: 16px; border-left: 1px solid var(--border);
}
.cr-synced-label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.cr-synced-val { font-size: 15px; font-weight: 700; color: var(--text-1); }
.cr-synced-sub { font-size: 11px; color: var(--text-3); font-family: var(--mono); }

/* Landing: category grid */
.cr-home-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-4); margin: 6px 0 12px; }
.cr-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cr-cat {
  appearance: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px; background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  transition: border-color .16s, background .16s, transform .16s;
}
.cr-cat:hover { border-color: var(--accent-line); background: var(--bg-3); transform: translateY(-2px); }
.cr-cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-cat-ico {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 12px;
}
.cr-cat-ico svg { width: 24px; height: 24px; }
.cr-cat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cr-cat-name { font-size: 15.5px; font-weight: 700; color: var(--text-1); }
.cr-cat-blurb { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.cr-cat-n {
  flex-shrink: 0; align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text-3); background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: 20px; padding: 3px 10px;
}
.cr-cat:hover .cr-cat-n { color: var(--accent); border-color: var(--accent-line); }

/* Browse: breadcrumb + filter toggle */
.cr-browse-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cr-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cr-crumb {
  appearance: none; background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--text-3);
  transition: color .15s;
}
.cr-crumb:hover { color: var(--accent); }
.cr-crumb.is-current { color: var(--text-1); cursor: default; }
.cr-crumb.is-current:hover { color: var(--text-1); }
.cr-crumb-sep { color: var(--text-4); font-size: 13px; }
.cr-filter-toggle {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ui); font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 7px 12px; transition: color .15s, border-color .15s, background .15s;
}
.cr-filter-toggle svg { width: 15px; height: 15px; }
.cr-filter-toggle:hover { color: var(--text-1); border-color: var(--border-hi); }
.cr-filter-toggle.is-active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.cr-filter-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 700; line-height: 1; color: var(--bg-1);
  background: var(--accent); border-radius: 10px; padding: 2px 6px; margin-left: 1px;
}

/* Browse: filter panel */
.cr-filters {
  display: flex; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 16px;
  padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
}
.cr-filter-group { display: flex; flex-direction: column; gap: 9px; }
.cr-filter-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); }
.cr-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cr-chip {
  appearance: none; cursor: pointer;
  font-family: var(--ui); font-size: 11.5px; font-weight: 700;
  color: var(--text-3); background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px;
  transition: color .15s, border-color .15s, background .15s;
}
.cr-chip:hover { color: var(--text-1); border-color: var(--border-hi); }
.cr-chip.is-active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.cr-chip--warn.is-active { color: var(--gold); border-color: rgba(232,185,35,.4); background: rgba(232,185,35,.09); }
.cr-chip--bad.is-active { color: var(--kill); border-color: rgba(224,80,106,.4); background: rgba(224,80,106,.09); }
.cr-chip--owner.is-active { color: var(--gold); border-color: rgba(232,185,35,.4); background: rgba(232,185,35,.09); }
.cr-chip--admin.is-active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.cr-chip--mod.is-active { color: var(--text-1); border-color: var(--border-hi); background: var(--bg-3); }

.cr-count { font-size: 12px; color: var(--text-3); margin: 4px 0 10px; }
.cr-empty { font-size: 13px; color: var(--text-3); text-align: center; padding: 30px 0; }
.cr-hl { background: rgba(232,185,35,.22); color: var(--text-1); border-radius: 2px; padding: 0 1px; }
.cr-list { display: flex; flex-direction: column; gap: 9px; }
.cr-item {
  position: relative; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 15px 17px;
  transition: border-color .15s, background .15s, transform .1s;
}
.cr-item:hover { border-color: var(--accent-line); background: var(--bg-3); }
.cr-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-item:active { transform: scale(.997); }
.cr-item.is-broken { border-left: 2px solid rgba(224,80,106,.55); }

/* Head: command name + flags + a copy hint that fades in on hover */
.cr-item-head { display: flex; align-items: center; gap: 12px; }
.cr-cmd { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14.5px; font-weight: 600; color: var(--accent); word-break: break-all; line-height: 1.3; }
.cr-item-tags { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cr-flags { display: flex; gap: 6px; }
.cr-flag { font-size: 13px; opacity: .8; cursor: help; }
.cr-flag.is-bad, .cr-flag.is-warn { opacity: 1; }
.cr-copy { display: inline-flex; color: var(--text-4); opacity: 0; transition: opacity .15s, color .15s; }
.cr-copy svg { width: 15px; height: 15px; }
.cr-item:hover .cr-copy { opacity: .85; }

/* Spec line: input placeholder + default, on their own quiet row */
.cr-item-spec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 9px; }
.cr-input { font-family: var(--mono); font-size: 11px; color: var(--text-2); background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 5px; padding: 2px 8px; }
.cr-def { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.cr-def b { color: var(--text-1); font-weight: 600; }

.cr-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-top: 9px; }

/* Foot: tier badge + path (left), docs link (right) */
.cr-item-foot { display: flex; align-items: center; gap: 11px; margin-top: 12px; }
.cr-tier { font: 700 9.5px/1 var(--ui); text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 5px; border: 1px solid var(--border-2); color: var(--text-3); flex-shrink: 0; }
.cr-tier--owner { color: var(--gold); border-color: rgba(232,185,35,.32); background: rgba(232,185,35,.07); }
.cr-tier--admin { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.cr-tier--mod { color: var(--text-2); border-color: var(--border-2); background: var(--bg-3); }
.cr-path { font-size: 11px; color: var(--text-4); letter-spacing: .02em; }
.cr-path-sep { color: var(--border-hi); margin: 0 1px; }
.cr-src { font-size: 11px; color: var(--text-3); margin-left: auto; flex-shrink: 0; transition: color .15s; }
.cr-src:hover { color: var(--accent); }
.cr-more { font-size: 12.5px; color: var(--text-3); text-align: center; padding: 16px 0 4px; }
.cr-credit { font-size: 12px; color: var(--text-3); line-height: 1.6; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.cr-credit a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 560px) {
  .cr-synced { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 10px; width: 100%; }
  .cr-item-foot { flex-wrap: wrap; }
}

/* Prompt + popular searches (home) */
.cr-prompt { font-size: 22px; font-weight: 700; color: var(--text-1); margin: 4px 0 16px; letter-spacing: -.01em; }
.cr-suggest { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.cr-suggest-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-4); margin-right: 2px; }
.cr-sug {
  appearance: none; cursor: pointer;
  font-family: var(--ui); font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 20px;
  padding: 6px 14px; transition: color .15s, border-color .15s, background .15s, transform .1s;
}
.cr-sug:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-1px); }

/* Category header (browse) */
.cr-cat-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cr-cat-header-ico { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; }
.cr-cat-header-ico svg { width: 25px; height: 25px; }
.cr-cat-header-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-cat-header-name { font-size: 19px; font-weight: 700; color: var(--text-1); }
.cr-cat-header-blurb { font-size: 12.5px; color: var(--text-3); }

/* Sub-category pills */
.cr-subs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.cr-sub {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ui); font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 20px;
  padding: 6px 13px; transition: color .15s, background .15s, border-color .15s;
}
.cr-sub:hover { color: var(--text-1); border-color: var(--border-hi); background: var(--bg-3); }
.cr-sub.is-active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.cr-sub-n { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text-4); background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; padding: 1px 6px; }
.cr-sub:hover .cr-sub-n { color: var(--text-2); }
.cr-sub.is-active .cr-sub-n { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent-line); }

/* ═══════════════════════════════════════════════════
   News / changelog (/news)
   ═══════════════════════════════════════════════════ */
.news-container { max-width: 760px; }

/* Official Rust Console info callout — external link to the D11 dev blog. */
.news-official {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; margin-bottom: 34px;
  background: var(--bg-3); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  transition: border-color .18s, background .18s, transform .18s;
}
.news-official:hover { border-color: var(--border-hi); background: var(--bg-raise); transform: translateY(-1px); }
.news-official-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.news-official-text { flex: 1; min-width: 0; }
.news-official-title { display: block; font-size: 15px; font-weight: 700; color: var(--text-1); }
.news-official-sub { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; line-height: 1.4; }
.news-official-arrow { flex-shrink: 0; color: var(--text-3); transition: color .18s, transform .18s; }
.news-official:hover .news-official-arrow { color: var(--accent); transform: translate(2px,-2px); }

/* Filters */
.news-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }

/* Shared meta row (index cards + detail) */
.news-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 9px; }
.news-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
  color: var(--cat-color); background: color-mix(in srgb, var(--cat-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color) 34%, transparent);
}
.news-type {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 5px;
}
.news-type--new    { color: #34c77b; background: rgba(52,199,123,.12); }
.news-type--update { color: #4da6ff; background: rgba(77,166,255,.12); }
.news-type--fix    { color: #e8b923; background: rgba(232,185,35,.12); }
.news-vip-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; color: #e8b923; background: rgba(232,185,35,.12); border: 1px solid rgba(232,185,35,.28); }
.news-date { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-4); }

/* Shared bullet list (index n/a, detail yes) */
.news-points { margin: 14px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.news-points li { position: relative; padding-left: 18px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.news-points li::before {
  content: ''; position: absolute; left: 3px; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--cat-color, var(--accent));
}

/* ── Index: clickable cards ─────────────────────── */
.news-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.news-card {
  position: relative; display: flex; gap: 16px; text-decoration: none; min-height: 138px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: 18px 20px; overflow: hidden;
  transition: border-color .18s, background .18s, transform .18s;
}
.news-card:hover { border-color: var(--border-hi); background: var(--bg-3); transform: translateY(-2px); }
.news-card-rail {
  flex-shrink: 0; width: 3px; border-radius: 3px; align-self: stretch;
  background: var(--cat-color, var(--accent)); opacity: .85;
}
.news-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-right: 78px; }
/* Leave room on the right for the inset cover image (bottom-right). */
.news-card.has-cover { min-height: 172px; }
.news-card.has-cover .news-card-body { padding-right: 216px; }
.news-card-title { font-size: 18px; font-weight: 700; color: var(--text-1); line-height: 1.25; }
.news-card-excerpt {
  font-size: 14px; color: var(--text-2); line-height: 1.5; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px;
  font-size: 12.5px; font-weight: 700; color: var(--accent);
}
.news-card-more svg { transition: transform .18s; }
.news-card:hover .news-card-more svg { transform: translateX(3px); }

/* Date pill — pinned to the top-right corner of the card. */
.news-card-date {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-2);
  background: rgba(5,7,12,.66); padding: 3px 9px; border-radius: 6px; border: 1px solid var(--border);
  backdrop-filter: blur(3px);
}
/* Cover image — an inset thumbnail in the bottom-right, with a gap from the card
   edges (not flush to the corner) and starting below the date pill. */
.news-card-cover {
  position: absolute; right: 18px; bottom: 18px; top: 54px; z-index: 1;
  width: 190px; overflow: hidden; border-radius: 10px; border: 1px solid var(--border-2);
}
.news-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Detail page ────────────────────────────────── */
.news-detail-section { padding-top: 40px; }
.news-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px;
  font-size: 13px; font-weight: 600; color: var(--text-3); transition: color .15s;
}
.news-back:hover { color: var(--accent); }
.news-detail {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  border-top: 2px solid var(--cat-color, var(--accent));
  padding: 30px 32px;
}
.news-detail--has-cover { border-top-width: 1px; border-top-color: var(--border-2); }
.news-detail-title { font-size: 27px; font-weight: 700; color: var(--text-1); line-height: 1.2; margin: 4px 0 20px; }
.news-detail-body p { font-size: 15px; color: var(--text-2); line-height: 1.65; }
.news-detail-body p + p { margin-top: 14px; }
/* Author-inserted blank line: each extra Enter adds a line of vertical space. */
.news-gap { height: 1.5em; }
.news-detail-nobody { color: var(--text-3); font-style: italic; }

.news-poll { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.news-poll-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.news-poll-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.news-poll-state { font-family: var(--mono); font-size: 11px; color: var(--text-4); }
.news-poll-question { font-size: 19px; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.news-poll-options { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.news-poll-option { appearance: none; cursor: pointer; width: 100%; padding: 11px 14px; text-align: left; font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 7px; transition: color .15s, background .15s, border-color .15s; }
.news-poll-option:hover { color: var(--text-1); background: var(--bg-raise); border-color: var(--accent-line); }
.news-poll-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.news-poll-results { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.news-poll-result { padding: 10px 12px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 7px; }
.news-poll-result.is-selected { border-color: var(--accent-line); background: var(--accent-soft); }
.news-poll-result.is-action { appearance: none; cursor: pointer; width: 100%; text-align: left; font-family: var(--ui); transition: border-color .15s, background .15s; }
.news-poll-result.is-action:hover { border-color: var(--accent-line); background: var(--bg-raise); }
.news-poll-result.is-action.is-selected:hover { background: var(--accent-soft); }
.news-poll-result.is-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.news-poll-result-row { display: flex; justify-content: space-between; gap: 14px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.news-poll-result-row span:last-child { flex-shrink: 0; color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.news-poll-bar { display: block; height: 5px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: var(--bg-1); }
.news-poll-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.news-poll-total, .news-poll-notice { margin-top: 11px; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.news-poll-notice { padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-3); }
.news-poll-notice.is-error { color: var(--kill); border-color: rgba(224,80,106,.32); background: rgba(224,80,106,.08); }

/* Pager: newer (left) / older (right) */
.news-pager { display: flex; gap: 12px; margin-top: 20px; }
.news-pager-link {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: 14px 16px; text-decoration: none; transition: border-color .18s, background .18s;
}
.news-pager-link:not(.is-empty):hover { border-color: var(--border-hi); background: var(--bg-3); }
.news-pager-link.is-empty { visibility: hidden; }
.news-pager-older { text-align: right; align-items: flex-end; }
.news-pager-dir {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3);
}
.news-pager-title {
  font-size: 14px; font-weight: 600; color: var(--text-1); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-index-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 20px; }
.news-filters .mg-mode-btn { text-decoration: none; }
.news-index-pager-link { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--border-2); border-radius: 6px; color: var(--accent); background: var(--bg-2); }
.news-index-pager-link:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.news-index-pager-link:last-child { justify-self: end; }
.news-index-pager-status { color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.news-index-pager-status strong { color: var(--text-1); }

/* ── Empty state ────────────────────────────────── */
.news-empty { text-align: center; padding: 54px 20px; }
.news-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 16px;
  background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text-3);
}
.news-empty-title { font-size: 17px; font-weight: 700; color: var(--text-1); }
.news-empty-sub { font-size: 13.5px; color: var(--text-3); margin-top: 5px; }
.news-none-match { text-align: center; color: var(--text-3); font-size: 14px; padding: 40px 0; }

/* Inline images between paragraphs (detail body) */
.news-figure { margin: 18px 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); }
.news-figure img { display: block; width: 100%; height: auto; }

/* Editor formatting toolbar (admin post form) */
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.adm-tool-btn {
  appearance: none; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 6px; color: var(--text-2);
  background: var(--bg-3); border: 1px solid var(--border-2); transition: border-color .15s, color .15s, background .15s;
}
.adm-tool-btn:hover { color: var(--text-1); border-color: var(--border-hi); background: var(--bg-raise); }
.adm-tool-status { font-size: 12px; color: var(--text-3); margin-left: 4px; }

@media (max-width: 560px) {
  .news-official { flex-wrap: wrap; gap: 12px; }
  .news-date { margin-left: 0; width: 100%; order: 3; }
  .news-detail { padding: 24px 20px; }
  .news-detail-title { font-size: 23px; }
  .news-pager { flex-direction: column; }
  .news-index-pager { gap: 8px; }
  .news-pager-older { text-align: left; align-items: flex-start; }
  /* Card: stack the cover full-width at the bottom instead of the corner overlay. */
  .news-card { flex-wrap: wrap; min-height: 0; }
  .news-card-body, .news-card.has-cover .news-card-body { padding-right: 72px; }
  .news-card-cover { position: static; width: 100%; height: 150px; margin-top: 12px; border-radius: 8px; order: 3; }
  .news-card-cover::before { display: none; }
}

/* ── News: cover images, formatted body, draft banner ── */
.news-draft-banner {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 11px 15px; border-radius: var(--radius-lg); font-size: 13px; font-weight: 600;
  color: #e8b923; background: rgba(232,185,35,.08); border: 1px solid rgba(232,185,35,.3);
}
.news-detail { overflow: hidden; padding: 0; }
.news-detail-cover { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.news-detail-inner { padding: 30px 32px; }
.news-detail-body strong { color: var(--text-1); font-weight: 700; }
.news-detail-body a { color: var(--accent); text-decoration: underline; }
.news-detail-body ul { margin: 12px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.news-detail-body ul li { position: relative; padding-left: 18px; font-size: 15px; color: var(--text-2); line-height: 1.6; }
.news-detail-body ul li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--cat-color, var(--accent)); }

/* ═══════════════════════════════════════════════════
   Admin panel (/admin) — owner only
   ═══════════════════════════════════════════════════ */
.adm-section { padding-top: 40px; }
.adm-container { max-width: 820px; }
.adm-form-container { max-width: 680px; }
.adm-eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); margin-bottom: 6px; }
.adm-crumb { color: var(--text-3); }
.adm-crumb:hover { color: var(--accent); }
.adm-title { font-size: 26px; font-weight: 700; color: var(--text-1); }
.adm-sub { font-size: 14px; color: var(--text-3); margin-top: 6px; }

.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.adm-new { display: inline-flex; align-items: center; gap: 6px; }

/* Dashboard tiles */
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 26px; }
.adm-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 20px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  transition: border-color .18s, transform .18s, background .18s;
}
.adm-tile:not(.is-soon):hover { border-color: var(--border-hi); background: var(--bg-3); transform: translateY(-2px); }
.adm-tile.is-soon { opacity: .55; }
.adm-tile-icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.adm-tile-title { font-size: 16px; font-weight: 700; color: var(--text-1); }
.adm-tile-sub { font-size: 13px; color: var(--text-3); line-height: 1.45; }

/* Admin live PM2 logs */
.adm-container--logs { max-width: 1320px; }
.adm-log-head { align-items: center; }
.adm-log-connection { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 11px;
  border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-3); background: var(--bg-2);
  font: 700 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.adm-log-connection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); }
.adm-log-connection.is-live { color: var(--alive); border-color: rgba(52,199,123,.35); }
.adm-log-connection.is-live .adm-log-connection-dot { background: var(--alive); box-shadow: 0 0 0 4px rgba(52,199,123,.11); }
.adm-log-connection.is-connecting { color: var(--gold); }
.adm-log-connection.is-connecting .adm-log-connection-dot { background: var(--gold); animation: adm-log-pulse 1.2s ease-in-out infinite; }
.adm-log-connection.is-offline { color: var(--kill); }
.adm-log-connection.is-offline .adm-log-connection-dot { background: var(--kill); }
@keyframes adm-log-pulse { 50% { opacity: .35; } }

.adm-log-summary { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 10px; }
.adm-log-summary .adm-stat-card { min-height: 90px; }
.adm-log-error-value { color: var(--kill); }
.adm-log-warning-value { color: var(--gold); }
.adm-log-severity-note { margin: 0 0 16px; color: var(--text-4); font-size: 11.5px; line-height: 1.45; }
.adm-log-panel { overflow: hidden; border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: var(--bg-2); }
.adm-log-toolbar { display: grid; grid-template-columns: 155px 145px 175px minmax(240px,1fr); gap: 10px; padding: 14px;
  border-bottom: 1px solid var(--border); background: var(--bg-3); }
.adm-log-field { display: flex; flex-direction: column; gap: 5px; color: var(--text-4); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.adm-log-field select, .adm-log-search input { width: 100%; height: 38px; border: 1px solid var(--border-2); border-radius: 7px;
  color: var(--text-1); background: var(--bg-1); font: 600 12px var(--ui); outline: 0; }
.adm-log-field select { padding: 0 10px; cursor: pointer; }
.adm-log-field select:focus, .adm-log-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.adm-log-search { position: relative; display: flex; align-items: flex-end; }
.adm-log-search svg { position: absolute; z-index: 1; left: 12px; bottom: 12px; color: var(--text-4); pointer-events: none; }
.adm-log-search input { padding: 0 12px 0 35px; }
.adm-log-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.adm-log-source-status { min-width: 0; color: var(--text-4); font: 500 11px var(--mono); overflow-wrap: anywhere; }
.adm-log-source-status.is-ok { color: var(--alive); }
.adm-log-source-status.is-warn { color: var(--gold); }
.adm-log-action-buttons { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.adm-log-action-buttons .adm-btn { min-height: 32px; padding-top: 5px; padding-bottom: 5px; }
.adm-log-action-buttons .adm-btn.is-active { color: var(--gold); border-color: rgba(255,215,0,.35); background: rgba(255,215,0,.07); }
.adm-log-action-buttons .adm-btn.is-copied { color: var(--alive); border-color: rgba(52,199,123,.35); background: rgba(52,199,123,.07); }
.adm-log-follow { display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 12px; cursor: pointer; }
.adm-log-follow input { accent-color: var(--accent); }
.adm-log-command-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px;
  border-bottom: 1px solid var(--border); color: var(--text-4); font: 500 10.5px var(--mono); }
.adm-log-command-chip { padding: 3px 7px; border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-3); background: var(--bg-3); }

.adm-log-console { position: relative; height: min(64vh, 720px); min-height: 420px; overflow: auto; background: #070b12;
  scrollbar-color: var(--border-hi) #070b12; }
.adm-log-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; color: var(--text-4); font: 500 12px var(--mono); }
.adm-log-empty[hidden] { display: none; }
.adm-log-list { min-width: 0; }
.adm-log-row { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 12px; padding: 7px 12px;
  border-bottom: 1px solid rgba(118,141,172,.09); color: #aebbcf; font: 400 11px/1.5 var(--mono); }
.adm-log-row:hover { background: rgba(77,166,255,.045); }
.adm-log-row.is-error { color: #ef9caf; background: rgba(224,80,106,.045); border-left: 2px solid rgba(224,80,106,.65); }
.adm-log-row.is-warn { color: #ddc978; background: rgba(232,185,35,.035); border-left: 2px solid rgba(232,185,35,.55); }
.adm-log-row-meta { display: flex; align-items: flex-start; gap: 6px; min-width: 0; padding-top: 1px; }
.adm-log-row-meta time { min-width: 70px; color: #65758b; white-space: nowrap; }
.adm-log-badge { flex: 0 0 auto; padding: 1px 5px; border: 1px solid #27354a; border-radius: 4px; color: #8190a5;
  font-size: 9px; font-weight: 700; letter-spacing: .04em; line-height: 16px; text-transform: uppercase; }
.adm-log-badge.is-bot { color: #55c8f6; border-color: rgba(85,200,246,.28); }
.adm-log-badge.is-website { color: #a690ff; border-color: rgba(166,144,255,.28); }
.adm-log-badge.is-error { color: #ef7891; border-color: rgba(224,80,106,.4); }
.adm-log-badge.is-warn { color: #e8b923; border-color: rgba(232,185,35,.35); }
.adm-log-badge.is-category { color: #8190a5; }
.adm-log-repeat { flex: 0 0 auto; padding: 1px 6px; border: 1px solid rgba(77,166,255,.28); border-radius: 999px;
  color: var(--accent); background: rgba(77,166,255,.07); font-size: 9px; font-weight: 700; line-height: 16px; white-space: nowrap; }
.adm-log-message { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.adm-log-text { unicode-bidi: plaintext; }
.adm-log-expand { display: block; margin-top: 4px; padding: 0; border: 0; color: var(--accent); background: none; cursor: pointer;
  font: 600 10px var(--mono); }
.adm-log-expand:hover { text-decoration: underline; }
.adm-log-foot { display: flex; justify-content: space-between; gap: 12px; min-height: 37px; padding: 9px 14px;
  border-top: 1px solid var(--border); color: var(--text-4); font: 500 10.5px var(--mono); }
.adm-log-foot [data-log-pending] { color: var(--gold); }

@media (max-width: 900px) {
  .adm-log-toolbar { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .adm-log-search { grid-column: 1 / -1; }
  .adm-log-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .adm-log-row { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 1120px) and (min-width: 901px) {
  .adm-log-summary { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .adm-log-toolbar { grid-template-columns: 1fr; }
  .adm-log-search { grid-column: auto; }
  .adm-log-actions, .adm-log-foot { align-items: flex-start; flex-direction: column; }
  .adm-log-action-buttons { width: 100%; flex-wrap: wrap; }
  .adm-log-console { min-height: 360px; }
  .adm-log-row { padding: 8px 9px; font-size: 10.5px; }
}

/* Admin statistics */
.adm-container--statistics { display: flex; flex-direction: column; max-width: 1080px; }
.adm-container--statistics > .adm-head { order: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
#admin-daily-activity { order: 1; }
#admin-player-count { order: 2; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
#admin-server-commands { order: 3; }
#admin-command-pipelines { order: 4; }
#admin-server-fps { order: 5; }
.adm-daily-activity { margin-top: 4px; padding: 20px; border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: var(--bg-2); }
.adm-daily-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.adm-daily-status { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-4); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.adm-daily-status.is-live { border-color: rgba(52,199,123,.36); color: var(--alive); background: rgba(52,199,123,.08); }
.adm-daily-activity .adm-stat-summary { margin-bottom: 14px; }
.adm-daily-activity .adm-stat-card { min-height: 112px; }
.adm-stat-trend { margin-top: 5px; color: var(--text-4); font-family: var(--mono); font-size: 10px; line-height: 1.2; }
.adm-stat-trend.is-up { color: var(--alive); }
.adm-stat-trend.is-down { color: var(--kill); }
.adm-stat-trend.is-flat { color: var(--text-4); }
.adm-daily-modes { display: flex; align-items: center; gap: 14px; min-height: 42px; padding-top: 14px; border-top: 1px solid var(--border); }
.adm-daily-mode-list { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adm-daily-mode { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 9px 4px 5px; border: 1px solid var(--border-2); border-radius: 6px; color: var(--text-2); background: var(--bg-3); font-size: 12px; }
.adm-daily-mode strong { color: var(--text-1); font-size: 12px; }
.adm-daily-mode span:last-child { color: var(--text-4); white-space: nowrap; }
.adm-daily-mode-rank { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.adm-daily-empty { margin: 0; color: var(--text-4); font-size: 12px; }
.adm-daily-history { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--border); }
.adm-daily-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.adm-daily-history-title { color: var(--text-2); font-size: 14px; font-weight: 700; }
.adm-daily-history-count { padding: 4px 7px; border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-4); font-family: var(--mono); font-size: 10px; }
.adm-daily-table-wrap { max-height: 330px; overflow: auto; border: 1px solid var(--border); border-radius: 7px; }
.adm-daily-table { width: 100%; border-collapse: collapse; color: var(--text-3); font-family: var(--mono); font-size: 11px; text-align: left; }
.adm-daily-table th, .adm-daily-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.adm-daily-table thead th { position: sticky; top: 0; z-index: 1; color: var(--text-4); background: var(--bg-3); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.adm-daily-table tbody th { color: var(--text-2); font-weight: 600; }
.adm-daily-table tbody tr:last-child th, .adm-daily-table tbody tr:last-child td { border-bottom: 0; }
.adm-daily-table tbody tr:hover { background: rgba(77,166,255,.05); }
.adm-daily-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.adm-daily-pager > span { min-width: 82px; color: var(--text-4); font-family: var(--mono); font-size: 10.5px; text-align: center; }
.adm-statistics-metric + .adm-statistics-metric { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.adm-stat-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-stat-card { min-height: 100px; display: flex; flex-direction: column; justify-content: space-between; padding: 15px 16px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); }
.adm-stat-label { color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.adm-stat-value { margin: 7px 0 3px; color: var(--text-1); font-family: var(--mono); font-size: 25px; line-height: 1; }
.adm-stat-note { color: var(--text-4); font-size: 12px; }
.adm-chart-card { padding: 20px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); }
.adm-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.adm-chart-kicker { margin-bottom: 3px; color: var(--text-4); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.adm-chart-title { color: var(--text-1); font-size: 18px; font-weight: 700; }
.adm-period-toggle { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; padding: 3px; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 7px; }
.adm-period-btn { min-height: 31px; padding: 5px 10px; cursor: pointer; border: 0; border-radius: 5px; color: var(--text-3); background: transparent; font-family: var(--ui); font-size: 12px; font-weight: 700; transition: color .15s, background-color .15s, box-shadow .15s; }
.adm-period-btn:hover { color: var(--text-1); background: var(--bg-raise); }
.adm-period-btn.is-active { color: #04101e; background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.adm-period-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-chart-wrap { position: relative; min-height: 330px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, rgba(20,31,50,.24), transparent 55%), var(--bg-1); }
.adm-player-chart { display: block; width: 100%; height: 330px; cursor: crosshair; touch-action: none; }
.adm-chart-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 24px; text-align: center; background: rgba(8,12,21,.55); color: var(--text-3); font-size: 13px; }
.adm-chart-empty strong { color: var(--text-2); font-size: 14px; }
.adm-chart-tooltip { position: absolute; z-index: 2; max-width: calc(100% - 16px); padding: 7px 9px; pointer-events: none; border: 1px solid var(--accent-line); border-radius: 5px; color: var(--text-1); background: rgba(10,16,27,.97); box-shadow: 0 8px 20px rgba(0,0,0,.42); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.adm-chart-foot { margin-top: 12px; color: var(--text-4); font-size: 12px; line-height: 1.5; }
.adm-container--statistics.is-loading .adm-chart-card { opacity: .72; }
.adm-stat-page-controls { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.adm-stat-layout-toggle, .adm-stat-visibility-toggle { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; padding: 3px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--bg-3); }
.adm-stat-layout-toggle > span, .adm-stat-visibility-toggle > span { padding: 0 6px; color: var(--text-4); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.adm-stat-layout-toggle button, .adm-stat-visibility-toggle button { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 5px; color: var(--text-3); background: transparent; cursor: pointer; font: 700 11px var(--ui); }
.adm-stat-layout-toggle button:hover, .adm-stat-visibility-toggle button:hover { color: var(--text-1); background: var(--bg-raise); }
.adm-stat-layout-toggle button.is-active, .adm-stat-visibility-toggle button.is-active { color: #04101e; background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.adm-stat-layout-toggle button:focus-visible, .adm-stat-visibility-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-pipeline-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 8px; margin: -4px 0 14px; color: var(--text-3); font-size: 12px; font-weight: 600; }
.adm-pipeline-key { min-height: 27px; padding: 4px 8px; border: 1px solid currentColor; border-radius: 5px; color: var(--text-3); background: transparent; cursor: pointer; font: 700 10.5px var(--ui); opacity: .48; }
.adm-pipeline-key::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 5px 1px 0; border-radius: 50%; background: currentColor; }
.adm-pipeline-key.is-active { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.adm-pipeline-key:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.adm-pipeline-key--a, .adm-stat-label--pipe-a { color: #55c8f6; }
.adm-pipeline-key--b, .adm-stat-label--pipe-b { color: var(--gold); }
.adm-pipeline-key--c, .adm-stat-label--pipe-c { color: var(--alive); }
.adm-pipeline-threshold { margin-left: auto; color: var(--text-4); }

@media (min-width: 961px) {
  .adm-container--statistics.is-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
  .adm-container--statistics.is-two-column > .adm-head,
  .adm-container--statistics.is-two-column > .adm-daily-activity { grid-column: 1 / -1; }
  .adm-container--statistics.is-two-column > .adm-statistics-metric { min-width: 0; }
  .adm-container--statistics.is-two-column > .adm-statistics-metric + .adm-statistics-metric { margin-top: 30px; }
  .adm-container--statistics.is-two-column .adm-stat-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-container--statistics.is-two-column .adm-stat-card { min-height: 94px; padding: 13px; }
  .adm-container--statistics.is-two-column .adm-stat-value { font-size: 22px; }
  .adm-container--statistics.is-two-column .adm-chart-card { padding: 16px; }
  .adm-container--statistics.is-two-column .adm-chart-head { flex-direction: column; margin-bottom: 14px; }
  .adm-container--statistics.is-two-column .adm-period-toggle { justify-content: flex-start; }
  .adm-container--statistics.is-two-column .adm-chart-wrap,
  .adm-container--statistics.is-two-column .adm-player-chart { min-height: 260px; height: 260px; }
}

@media (max-width: 760px) {
  .adm-container--statistics > .adm-head { flex-direction: column; }
  .adm-stat-page-controls, .adm-stat-layout-toggle, .adm-stat-visibility-toggle { justify-content: flex-start; }
  .adm-stat-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-chart-head { flex-direction: column; }
  .adm-period-toggle { justify-content: flex-start; }
  .adm-pipeline-threshold { width: 100%; margin-left: 0; }
  .adm-daily-modes { align-items: flex-start; flex-direction: column; gap: 8px; }
  .adm-daily-table { font-size: 10.5px; }
}
@media (max-width: 460px) {
  .adm-daily-activity { padding: 15px; }
  .adm-daily-head { gap: 10px; }
  .adm-daily-status { padding: 4px 6px; font-size: 9px; }
  .adm-daily-mode-list { width: 100%; }
  .adm-chart-card { padding: 15px; }
  .adm-stat-card { min-height: 92px; padding: 13px; }
  .adm-stat-value { font-size: 22px; }
  .adm-period-btn { padding-left: 8px; padding-right: 8px; }
  .adm-chart-wrap, .adm-player-chart { min-height: 260px; height: 260px; }
}

/* Flash + errors + empty */
.adm-flash { padding: 11px 15px; border-radius: var(--radius-lg); margin-bottom: 18px; font-size: 13.5px; font-weight: 600;
  color: var(--alive); background: rgba(52,199,123,.09); border: 1px solid rgba(52,199,123,.3); }
.adm-errors { padding: 12px 15px; border-radius: var(--radius-lg); margin-bottom: 18px;
  color: var(--kill); background: rgba(224,80,106,.08); border: 1px solid rgba(224,80,106,.32); }
.adm-errors p { font-size: 13.5px; line-height: 1.5; }
.adm-empty { color: var(--text-3); font-size: 14px; padding: 40px 0; text-align: center; }

/* Post list */
.adm-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.adm-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); }
.adm-row-main { min-width: 0; flex: 1; }
.adm-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.adm-row-date { font-family: var(--mono); font-size: 12px; color: var(--text-4); }
.adm-row-title { font-size: 15.5px; font-weight: 600; color: var(--text-1); }
.adm-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; }
.adm-tag--draft { color: #e8b923; background: rgba(232,185,35,.12); }
.adm-tag--live  { color: var(--alive); background: rgba(52,199,123,.12); }
.adm-tag--pin   { color: var(--accent); background: var(--accent-soft); }
.adm-row-actions { display: flex; align-items: center; gap: 8px; }
.adm-row-actions form { display: inline; }
.adm-btn { appearance: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 7px; color: var(--text-1); background: var(--bg-raise); border: 1px solid var(--border-2); transition: border-color .15s, background .15s, color .15s; }
.adm-btn:hover { border-color: var(--border-hi); }
.adm-btn--ghost { background: none; color: var(--text-2); }
.adm-btn--ghost:hover { color: var(--text-1); }
.adm-btn--danger { color: var(--kill); background: none; border-color: rgba(224,80,106,.3); }
.adm-btn--danger:hover { background: rgba(224,80,106,.1); border-color: var(--kill); }

/* Form */
.adm-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.adm-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.adm-field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* The form reuses .mg-hex (a 96px hex box in the tools) — force full-width, UI font,
   comfortable padding so the inputs actually fill their fields. */
.adm-field .mg-hex, .adm-field .mg-input {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px;
  padding: 10px 12px; border-radius: 8px; color: var(--text-1);
}
.adm-field select.mg-hex { height: 40px; }
.adm-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.adm-opt { font-weight: 400; color: var(--text-4); }
.adm-textarea { min-height: unset; font-family: inherit; font-size: 14px; line-height: 1.6; }
.adm-textarea--sm { min-height: unset; }
.adm-help { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.adm-help code { font-family: var(--mono); font-size: 11.5px; background: var(--bg-3); padding: 1px 5px; border-radius: 4px; color: var(--text-2); }
.adm-file { font-size: 13px; color: var(--text-2); }
.adm-color-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.adm-color { width: 42px; height: 34px; padding: 3px; cursor: pointer; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 7px; }
.adm-color-value { min-width: 68px; font-family: var(--mono); font-size: 12px; color: var(--text-3); text-transform: uppercase; }
.adm-cover-current { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.adm-cover-current img { width: 120px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-2); }
.adm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.adm-check--row { padding: 4px 0; }
.adm-poll-settings { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: var(--bg-2); }
.adm-poll-settings > .adm-label { padding: 0 5px; }
.adm-field-row--poll { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.adm-poll-options { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.adm-check--poll { min-height: 40px; padding-bottom: 2px; }
.adm-poll-end { margin-top: 12px; }
.adm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.adm-cancel { font-size: 13px; color: var(--text-3); }
.adm-cancel:hover { color: var(--text-1); }

@media (max-width: 620px) {
  .adm-field-row { grid-template-columns: 1fr; }
  .adm-field-row--poll { grid-template-columns: 1fr; gap: 9px; }
  .adm-detail-inner, .news-detail-inner { padding: 22px 18px; }
}

/* ── Aim trainer: playtime beside joins/respawns ── */
.aim-secondary-grid { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.aim-sec-cell { text-align: center; }
.aim-sec-unit { font-size: 22px; color: var(--text-3); margin-left: 3px; }

/* ── Clickable killfeed names (open profile popup) ── */
.kf-name { cursor: pointer; transition: color .12s; }
.kf-name:hover { color: var(--accent); text-decoration: underline; }
.kf-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ── Home: Latest video/news rotator ── */
.latest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.latest-head .col-label { margin: 0; }
/* Countdown bar — fills over the 15s before the slide switches (rAF-synced). */
.latest-progress { height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.latest-progress-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
.latest-dots { display: flex; gap: 8px; }
.latest-dot { appearance: none; cursor: pointer; width: 8px; height: 8px; padding: 0; border-radius: 50%;
  background: var(--border-hi); border: none; transition: background .18s, transform .18s; }
.latest-dot:hover { background: var(--text-3); }
.latest-dot[aria-selected="true"] { background: var(--accent); transform: scale(1.25); }

.latest-rotator { position: relative; }
.latest-slide { display: none; text-decoration: none; }
.latest-slide.is-active { display: block; animation: latest-fade .45s ease both; }
@keyframes latest-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* News slide reuses the video grid so heights line up. */
a.latest-slide.latest-news { color: inherit; display: none; }
a.latest-slide.latest-news.is-active { display: block; }
.latest-news-cover {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--cat-color) 22%, var(--bg-3)), var(--bg-2));
  border: 1px solid var(--border-2);
}
.latest-news-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.latest-news-icon { color: var(--cat-color, var(--accent)); opacity: .8; }
.latest-news .latest-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.latest-news .news-badge { margin-bottom: 4px; }
.latest-news-excerpt { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 2px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.latest-news-cta { margin-top: 10px; }
.latest-news-cta svg { transition: transform .18s; }
a.latest-news:hover .latest-news-cta svg { transform: translateX(3px); }
a.latest-news:hover .latest-title { color: var(--accent); }
.latest-skin { color: inherit; }
.latest-skin-cover { display: grid; place-items: center; background: var(--bg-3); }
.latest-skin-cover img { width: min(72%, 280px); height: 78%; object-fit: contain; filter: drop-shadow(0 14px 17px rgba(0,0,0,.42)); }
.latest-skin-pack { margin: -2px 0 8px; color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
a.latest-skin:hover .latest-title { color: var(--accent); }
@media (max-width: 768px) { .latest-skin-cover { padding: 18px; box-sizing: border-box; }.latest-skin-cover img { width: min(58%, 220px); height: 62%; max-width: 58%; max-height: 62%; } }

/* Admin audit log (owner Admins page) */
.adm-audit { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.adm-audit-row { display: flex; gap: 12px; align-items: baseline; font-size: 13px; padding: 7px 12px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 7px; }
.adm-audit-when { flex-shrink: 0; font-size: 11.5px; color: var(--text-4); }
.adm-audit-what { color: var(--text-2); word-break: break-word; }

/* Admin player overview (read-only) */
.pl-info { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 14px 0 22px; padding: 14px 16px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); }
.pl-info-item { display: flex; flex-direction: column; gap: 2px; }
.pl-info-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.pl-info-val { font-size: 13.5px; color: var(--text-1); }
.pl-stats { border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; }
.pl-stats-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding: 8px 16px; font-size: 13.5px; border-top: 1px solid var(--border); }
.pl-stats-row:first-child { border-top: none; }
.pl-stats-row span:not(.pl-stats-name):not(:first-child) { text-align: right; color: var(--text-2); }
.pl-stats-head { background: var(--bg-3); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-4); }
.pl-stats-head span:not(:first-child) { text-align: right; }
.pl-stats-name { color: var(--text-1); }

/* Admin player account actions */
.pl-actions { display: flex; flex-direction: column; gap: 12px; }
.pl-action { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); }
.pl-action--danger { border-color: rgba(224,80,106,.28); }
.pl-action-title { font-size: 13px; font-weight: 700; color: var(--text-1); }
.pl-action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Admin: extra tag colours */
.adm-tag--bad   { color: var(--kill); background: rgba(224,80,106,.12); }
.adm-tag--muted { color: var(--text-4); background: var(--bg-3); }
.adm-tag--perm  { color: var(--text-2); background: var(--bg-3); border: 1px solid var(--border-2); text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Admin: a bordered form/card wrapper (add-admin box) */
.adm-card { padding: 18px 18px 16px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); }
.adm-card-title { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 14px; }
.adm-notice-container { max-width: 860px; }
.adm-notice-form { display: grid; gap: 18px; }
.adm-notice-form-head, .adm-notice-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.adm-notice-form .adm-card-title { margin-bottom: 5px; }
.adm-notice-form .adm-hint { margin: 0; }
.adm-notice-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; color: var(--text-1); font-size: 12px; font-weight: 700; border: 1px solid var(--border-2); border-radius: 8px; background: var(--bg-3); white-space: nowrap; }
.adm-notice-toggle input { accent-color: var(--accent); }
.adm-notice-fields { grid-template-columns: 180px minmax(180px, 1fr) minmax(180px, .8fr) 58px; align-items: end; }
.adm-notice-title-field { min-width: 0; }
.adm-notice-colour-field { align-self: end; }
.adm-notice-colour { width: 58px; height: 42px; padding: 4px; cursor: pointer; border: 1px solid var(--border-2); border-radius: 7px; background: var(--bg-3); }
.adm-notice-colour::-webkit-color-swatch-wrapper { padding: 0; }
.adm-notice-colour::-webkit-color-swatch { border: 0; border-radius: 4px; }
.adm-notice-body-input { width: 100%; min-height: 104px; resize: vertical; font: inherit; line-height: 1.45; }

@media (max-width: 860px) {
  .adm-notice-form-head, .adm-notice-actions { align-items: flex-start; flex-direction: column; }
  .adm-notice-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .adm-notice-fields { grid-template-columns: 1fr; }
  .adm-notice-colour-field { align-self: auto; }
}

/* Admin: permission checkbox grid */
.adm-perms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-perm { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer;
  background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; transition: border-color .15s; }
.adm-perm:hover { border-color: var(--border-hi); }
.adm-perm input { margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.adm-perm:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.adm-perm-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-perm-label { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.adm-perm-hint { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.adm-perm-none { font-size: 13px; color: var(--text-4); font-style: italic; }

/* ── Admin: Gamemodes & Settings panel ─────────────────────────── */
.gm-offline { padding: 18px 20px; background: rgba(224,80,106,.06); border: 1px solid rgba(224,80,106,.25); border-radius: var(--radius-lg); color: #f0a0b0; }
.gm-offline strong { color: #f08098; }
.gm-offline p { margin-top: 6px; font-size: 13px; color: var(--text-3); }

/* Draft-first gamemode editor */
#gm-manager { padding-bottom: 90px; }
.gm-draft-dock { position: fixed; z-index: 30; left: 50%; bottom: 16px; display: flex; align-items: stretch; width: min(860px, calc(100vw - 32px)); min-height: 54px; transform: translateX(-50%); background: rgba(15,23,39,.98); border: 1px solid var(--border-hi); border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.gm-draft-drawer { flex: 1 1 auto; min-width: 0; }
.gm-draft-drawer > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 14px; padding: 9px 14px; cursor: pointer; list-style: none; }
.gm-draft-drawer > summary::-webkit-details-marker { display: none; }
.gm-draft-drawer > summary:hover { background: rgba(77,166,255,.04); }
.gm-draft-drawer-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gm-draft-drawer-open { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--accent); font-size: 12px; font-weight: 700; }
.gm-draft-drawer-open::after { content: '▴'; color: var(--text-3); font-size: 11px; transition: transform .15s; }
.gm-draft-drawer:not([open]) .gm-draft-drawer-open::after { transform: rotate(180deg); }
.gm-draft-drawer-body { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(500px, calc(100vw - 32px)); max-height: min(62vh, 500px); overflow: auto; padding: 15px; background: rgba(13,17,32,.99); border: 1px solid var(--border-hi); border-radius: 8px; box-shadow: 0 14px 32px rgba(0,0,0,.4); }
.gm-draft-kicker { margin: 0 0 2px; color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gm-draft-status { color: var(--text-2); font-size: 13px; font-weight: 600; }
.gm-draft-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 8px; border-left: 1px solid var(--border-2); }
.gm-draft-actions .btn, .gm-draft-actions .adm-btn { min-height: 34px; }
.gm-draft-actions button:disabled { cursor: default; opacity: .48; }
.gm-draft-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.gm-draft-history h2, .gm-draft-history-head h2 { margin: 0; color: var(--text-1); font-size: 14px; }
.gm-draft-count { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border: 1px solid var(--border-hi); border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.gm-draft-history-empty { margin: 12px 0 0; color: var(--text-4); font-size: 12px; line-height: 1.45; }
.gm-draft-list { display: flex; flex-direction: column; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.gm-draft-item { display: grid; grid-template-columns: 7px minmax(0, 1fr); gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-3); }
.gm-draft-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--text-4); }
.gm-draft-item.is-queued .gm-draft-dot, .gm-draft-item.is-saving .gm-draft-dot { background: var(--gold); }
.gm-draft-item.is-applied .gm-draft-dot, .gm-draft-item.is-live .gm-draft-dot { background: var(--alive); }
.gm-draft-item.is-failed .gm-draft-dot, .gm-draft-item.is-live-failed .gm-draft-dot { background: var(--kill); }
.gm-draft-item-copy { min-width: 0; }
.gm-draft-item strong { display: block; overflow: hidden; color: var(--text-2); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gm-draft-item small { display: block; margin-top: 2px; color: var(--text-4); font-size: 10.5px; line-height: 1.25; }
.gm-draft-item-state { grid-column: 2; color: var(--text-4); font-family: var(--mono); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.gm-draft-item.is-applied .gm-draft-item-state, .gm-draft-item.is-live .gm-draft-item-state { color: var(--alive); }
.gm-draft-item.is-failed .gm-draft-item-state, .gm-draft-item.is-live-failed .gm-draft-item-state { color: var(--kill); }

.gm-block { margin-top: 22px; padding: 20px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); }
/* Reset schedule sits at the very top of the panel — first block has no top margin
   and a faint accent edge so it reads as the settings header, not a gamemode. */
.gm-block.reset-block { margin-top: 0; border-top: 2px solid color-mix(in srgb, var(--accent) 45%, var(--border-2)); }
#reset-card .gm-draft-actions { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.gm-block-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.gm-block-hint { font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; line-height: 1.5; }
.gm-sub-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 24px 0 4px; }

.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 16px; align-items: start; }
.gm-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gm-field--toggle { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
/* In a grid, a stretched toggle row vertically-centres and drops its label ~20px below
   the input labels. `align-items:start` on the grid stops the stretch; pin the toggle's
   own label to the top so it sits on the same line as the input labels. */
.gm-grid .gm-field--toggle { align-items: flex-start; padding-top: 1px; }

/* Consistent sub-section group titles (replaces ad-hoc gm-field-label + inline margins) */
.gm-group-title { display: block; margin: 0 0 11px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.gm-subblock--first { margin-top: 4px; padding-top: 0; border-top: none; }
.gm-daily { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.gm-daily > .gm-field-label { color: var(--text-3); }
.gm-field-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.gm-input { width: 100%; box-sizing: border-box; padding: 8px 10px; font-family: var(--ui); font-size: 13.5px;
  color: var(--text-1); background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 7px; transition: border-color .15s; }
.gm-input:focus { outline: none; border-color: var(--accent); }
.gm-input--sm { width: 68px; }
select.gm-input { cursor: pointer; }

.gm-subblock { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.gm-inline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.gm-inline-field { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }

.gm-lb-table { border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.gm-lb-table th { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-4); padding: 0 14px 6px; }
.gm-lb-table th:first-child { text-align: left; }
.gm-lb-table td { padding: 5px 14px; text-align: center; border-top: 1px solid var(--border); color: var(--text-2); }
.gm-lb-table td:first-child { text-align: left; }
.gm-lb-table input { accent-color: var(--accent); cursor: pointer; }

/* Toggle switch */
.gm-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; padding: 0; cursor: pointer;
  background: var(--bg-3); border: 1px solid var(--border-hi); border-radius: 22px; transition: background .15s, border-color .15s; }
.gm-toggle-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-3); transition: transform .16s, background .16s; }
.gm-toggle.is-on { background: var(--accent-soft); border-color: var(--accent); }
.gm-toggle.is-on .gm-toggle-knob { transform: translateX(18px); background: var(--accent); }
.gm-toggle--warn.is-on { background: rgba(232,185,35,.12); border-color: var(--gold); }
.gm-toggle--warn.is-on .gm-toggle-knob { background: var(--gold); }

/* Gamemode cards */
#gm-list, #gm-specials { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.gm-card { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; }
.gm-card-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.gm-ord-col { display: flex; flex-direction: column; gap: 2px; }
.gm-ord { width: 22px; height: 16px; line-height: 1; padding: 0; font-size: 9px; cursor: pointer; color: var(--text-3);
  background: var(--bg-raise); border: 1px solid var(--border-2); border-radius: 4px; }
.gm-ord:hover { color: var(--accent); border-color: var(--accent); }
.gm-card-name { font-size: 14px; font-weight: 700; color: var(--text-1); flex: 1 1 auto; min-width: 0; }
.gm-card-ctrls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.gm-tog-wrap { display: inline-flex; align-items: center; gap: 7px; }
.gm-tog-lbl { font-size: 11.5px; color: var(--text-3); }
.gm-variant { width: auto; min-width: 130px; padding: 6px 8px; font-size: 12.5px; }
.gm-expand-btn { padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--accent);
  background: none; border: 1px solid rgba(77,166,255,.35); border-radius: 6px; }
.gm-expand-btn:hover { background: var(--accent-soft); }
.gm-card-body { padding: 4px 14px 16px; border-top: 1px solid var(--border); }
.gm-card-body .gm-grid { margin-top: 14px; }

.gm-spawns { margin-top: 16px; }
.gm-spawn-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.gm-spawn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; }
.gm-spawn-rm { padding: 3px 9px; font-size: 11px; cursor: pointer; color: #e0708a;
  background: none; border: 1px solid rgba(224,80,106,.3); border-radius: 5px; }
.gm-spawn-rm:hover { background: rgba(224,80,106,.08); }
.gm-spawn-add { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gm-spawn-add .gm-input { flex: 1 1 220px; }
.gm-spawn-add-btn, .gm-spawn-qadd-btn { white-space: nowrap; }

/* Tools: printpos lookup + default quick-add player */
.gm-tools { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.gm-tool { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.gm-tool .gm-field { margin: 0; }
.gm-tool .gm-input { min-width: 180px; }
.gm-printpos-result { align-self: center; padding: 6px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--accent); font-size: 12.5px; }
.gm-card--special .gm-card-head { padding: 12px 14px; }

.gm-gungame-weapons { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.gm-weapon-list { display: flex; flex-direction: column; gap: 6px; }
.gm-weapon-row { display: flex; align-items: center; gap: 9px; padding: 6px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; }
.gm-weapon-name { font-size: 13px; color: var(--text-1); font-weight: 600; }
.gm-weapon-item { color: var(--text-4); font-size: 11px; font-weight: 400; margin-left: 6px; }
.gm-weapon-num { flex: 0 0 auto; min-width: 20px; text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text-3); }
.gm-weapon-move { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.gm-weapon-name-inp { flex: 1 1 34%; min-width: 90px; }
.gm-weapon-item-inp { flex: 1 1 34%; min-width: 90px; }
.gm-weapon-respawn { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 11.5px; color: var(--text-3); white-space: nowrap; cursor: pointer; }
.gm-weapon-respawn input { accent-color: var(--accent); }
.gm-weapon-tier-sel { flex: 0 0 auto; min-width: 120px; }
.gm-weapon-rm { flex: 0 0 auto; padding: 4px 9px; font-size: 12px; line-height: 1; cursor: pointer; color: #e0708a; background: none; border: 1px solid rgba(224,80,106,.3); border-radius: 5px; }
.gm-weapon-rm:hover { background: rgba(224,80,106,.08); }
.gm-weapon-add { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gm-weapon-add .gm-input { flex: 1 1 140px; min-width: 110px; }
.gm-weapon-add .adm-btn { white-space: nowrap; }
.gm-kill-bonus-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 9px; }
.gm-kill-bonus-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr) 82px auto; gap: 8px; align-items: center; padding: 7px 9px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; }
@media (max-width: 620px) {
  #gm-manager { padding-bottom: 84px; }
  .gm-draft-dock { bottom: 8px; width: calc(100vw - 16px); min-height: 50px; }
  .gm-draft-drawer > summary { min-height: 48px; padding: 7px 10px; }
  .gm-draft-drawer-open { font-size: 0; }
  .gm-draft-drawer-open::after { font-size: 11px; }
  .gm-draft-actions { gap: 5px; padding: 6px; }
  .gm-draft-actions .btn, .gm-draft-actions .adm-btn { min-width: 0; padding-left: 9px; padding-right: 9px; }
  .gm-draft-drawer-body { width: calc(100vw - 16px); max-height: 62vh; }
  .gm-weapon-row { flex-wrap: wrap; }
  .gm-weapon-name-inp, .gm-weapon-item-inp { flex: 1 1 100%; }
  .gm-kill-bonus-row { grid-template-columns: 1fr 1fr auto; }
  .gm-kill-bonus-row [data-kill-bonus-name] { grid-column: 1 / -1; }
}

/* Target Practice panel */
.gm-tp-panel { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.gm-tp-slots { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 10px; }
.gm-tp-slot { padding: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; }
.gm-tp-slot-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.gm-tp-slot-title { font-size: 13px; font-weight: 700; color: var(--text-1); flex: 1 1 auto; }
.gm-tp-slot-num { color: var(--accent); }
.gm-tp-spawn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gm-tp-spawn-row .gm-input { flex: 1 1 200px; }

/* Gungame base kits */
.gm-basekit-list { display: flex; flex-direction: column; gap: 6px; }
.gm-basekit-row { display: flex; align-items: center; gap: 9px; padding: 6px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; }
.gm-basekit-kit-inp { flex: 1 1 auto; min-width: 120px; }
.gm-basekit-lvl { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.gm-basekit-lvl .gm-input--sm { width: 68px; }

/* Scrim per-slot spawns + host quickchat */
.gm-scrim-slot { margin-top: 10px; padding: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; }
.gm-scrim-slot-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--text-1); }
.gm-scrim-slot-name { font-weight: 600; color: var(--text-3); }
.gm-scrim-slot-busy { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); background: rgba(232,185,35,.10); border: 1px solid rgba(232,185,35,.28); border-radius: 20px; padding: 1px 8px; }
.gm-scrim-slot-rm { margin-left: auto; }
.gm-scrim-slot-rm:disabled { opacity: .4; cursor: default; }

/* Lobby & zone colours */
.gm-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; }
.gm-color-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gm-color-inputs { display: flex; align-items: center; gap: 8px; }
.gm-color-inputs input[type="color"] { width: 40px; height: 34px; padding: 2px; cursor: pointer; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 7px; flex: 0 0 auto; }
.gm-color-text { flex: 1 1 auto; min-width: 0; }
.gm-grid--slot { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }

/* Shared gamemode info zones */
.gm-shared-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gm-shared-zone { padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; }
.gm-shared-row { display: flex; align-items: center; gap: 8px; }
.gm-shared-row .gm-input { flex: 1 1 220px; min-width: 0; }
.gm-shared-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.gm-shared-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font-size: 12px; cursor: pointer;
  background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-3); user-select: none; }
.gm-shared-chip input { margin: 0; cursor: pointer; }
.gm-shared-chip.is-on { color: var(--text-1); border-color: var(--accent, #00e5ff); background: rgba(0,229,255,.09); }
.gm-shared-empty { margin: 4px 0 0; }
.gm-shared-add { margin-top: 4px; }

/* Rotation editor */
.gm-rot { margin-top: 18px; border: 1px solid var(--border-2); border-radius: 9px; background: var(--bg-2); overflow: hidden; }
.gm-rot-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); list-style: none; }
.gm-rot-summary::-webkit-details-marker { display: none; }
.gm-rot-summary::after { content: '▸'; margin-left: auto; color: var(--text-4); transition: transform .15s; }
.gm-rot[open] .gm-rot-summary::after { transform: rotate(90deg); }
.gm-rot-mode-badge { margin-left: 0; padding: 2px 9px; font-size: 10.5px; border-radius: 999px; background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border-2); }
.gm-rot-mode-badge.is-on { color: #0a1418; background: var(--accent, #00e5ff); border-color: var(--accent, #00e5ff); }
.gm-rot-body { padding: 4px 14px 16px; }
.gm-rot-maps { display: flex; flex-direction: column; gap: 12px; }
.gm-rot-map { padding: 12px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; }
.gm-rot-map-head { display: flex; align-items: center; gap: 10px; }
.gm-rot-map-name { flex: 1 1 auto; font-weight: 600; }
.gm-rot-map-add { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gm-rot-map-add .gm-input { flex: 1 1 140px; }
.gm-rot-map-add .gm-input--sm { flex: 0 0 64px; }
.gm-rot-obj { margin-top: 12px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 7px; }
.gm-rot-obj > .gm-field-label { color: var(--text-2); }
.gm-rot-vzones { display: flex; flex-direction: column; gap: 8px; }
.gm-rot-vzone { display: flex; align-items: center; gap: 10px; }
.gm-rot-vzone-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.gm-rot-vzone-name { flex: 0 0 52px; font-size: 12.5px; color: var(--text-2); }
.gm-rot-vzone .gm-input.mono { flex: 1 1 auto; min-width: 0; }
.gm-rot-vzone .gm-input--sm { flex: 0 0 72px; }

/* Create / delete gamemode */
.adm-btn--danger { color: #e0708a; background: none; border: 1px solid rgba(224,80,106,.35); }
.adm-btn--danger:hover { background: rgba(224,80,106,.1); }
.gm-danger { border-top: 1px solid rgba(224,80,106,.25); }
.gm-danger-confirm { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.gm-danger-actions { display: inline-flex; gap: 8px; }
.gm-create-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.gm-create-actions .gm-danger-confirm { margin-top: 0; }

/* Cargoships */
.cargo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cargo-ship { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; }
.cargo-ship-main { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; min-width: 0; }
.cargo-ship-label { font-weight: 600; color: var(--text-1); }
.cargo-ship-type { font-size: 11.5px; color: var(--text-3); padding: 2px 9px; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 999px; }
.cargo-ship-coords { font-size: 12.5px; color: var(--text-2); }
.cargo-ship-ctrls { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.cargo-remove { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cargo-remove .gm-danger-confirm { margin-top: 0; }

/* Zones */
.zone-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zone-row { list-style: none; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; }
.zone-row-main { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.zone-name-block { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.zone-name { font-size: 13px; color: var(--text-1); word-break: break-all; }
.zone-preview { font-size: 11.5px; color: var(--text-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text-3); background: var(--bg-3); }
.zone-badge.is-on { color: #34c77b; border-color: rgba(52,199,123,.36); background: rgba(52,199,123,.09); }
.zone-row-ctrls { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.zone-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-2); }
/* Printpos helper in the create form */
.zone-printpos { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.zone-printpos-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zone-printpos-row .gm-input { flex: 1; min-width: 180px; }
.zone-printpos-row .adm-btn { flex-shrink: 0; }
/* Edit panel Save row */
.zone-edit-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-2); }
.zone-edit-status { font-size: 12px; color: var(--text-3); }
.zone-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; }
.zone-info-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.zone-info-row .mono { color: var(--text-2); }
.zone-head-right { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zone-updated { font-size: 11.5px; color: var(--text-4); }
.zone-filter { margin: 0 0 12px; }
.zone-info-name { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-2); }
.zone-info-name-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.zone-info-name .mono { font-size: 12.5px; color: var(--text-2); word-break: break-all; }
.zone-cat { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border-2); color: var(--text-3); background: var(--bg-3); }
.zone-cat--custom { color: #00d0ff; border-color: rgba(0,208,255,.32); background: rgba(0,208,255,.08); }
.zone-cat--system { color: #e0a23a; border-color: rgba(224,162,58,.32); background: rgba(224,162,58,.08); }
.zone-cat--map { color: var(--text-4); }

@media (max-width: 620px) {
  .gm-card-head { flex-wrap: wrap; }
  .gm-card-ctrls { justify-content: flex-start; width: 100%; }
}

/* Admin: admin cards (the delegated-admin list) */
.adm-admin { display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); }
.adm-admin-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--bg-3); object-fit: cover; }
.adm-admin-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; margin-right: auto; }
.adm-admin-name { font-size: 15px; font-weight: 600; color: var(--text-1); }
.adm-admin-sub { font-size: 11.5px; color: var(--text-4); }
.adm-admin-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-admin-perms { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-admin-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* Only the direct-child Remove form goes inline — NOT the perms-edit form nested
   inside <details>, which must stay block so it can contain the checkbox grid. */
.adm-admin-actions > form { display: inline; }

/* Admin: collapsible permission editor */
.adm-details { flex: 1; min-width: 0; }
.adm-details > summary { display: inline-flex; align-items: center; list-style: none; width: fit-content; user-select: none; }
.adm-details > summary::-webkit-details-marker { display: none; }
.adm-details[open] > summary { margin-bottom: 14px; }
.adm-perms-edit { display: block; padding: 14px; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; }

@media (max-width: 640px) {
  .adm-perms-grid { grid-template-columns: 1fr; }
}

/* ── Admin: VIP management ── */
.adm-flash--warn { color: #e8b923; background: rgba(232,185,35,.10); border-color: rgba(232,185,35,.32); }
.adm-flash--warn code, .adm-flash a { color: inherit; }
.adm-flash a { text-decoration: underline; }
.adm-hint { font-size: 12.5px; color: var(--text-3); line-height: 1.55; margin: 10px 0 14px; }
.adm-subhead { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--text-1); margin: 30px 0 14px; }
.adm-subhead--btn { cursor: pointer; list-style: none; user-select: none; }
.adm-subhead--btn::-webkit-details-marker { display: none; }
.adm-count { font-size: 12px; font-weight: 700; color: var(--text-3); background: var(--bg-3); border: 1px solid var(--border-2); padding: 1px 9px; border-radius: 20px; }
.adm-field--sm { max-width: 120px; }

/* Grant/extend box: username wide, month/day boxes narrow, note wide */
.adm-vip-add { margin-bottom: 8px; }
.adm-vip-add-grid { grid-template-columns: minmax(0,1.5fr) 76px 76px 88px minmax(0,1.3fr); align-items: end; }
.adm-vip-bulk-grid { grid-template-columns: 120px minmax(0,1fr); align-items: end; }
.adm-vip-add .btn { margin-top: 14px; }

.adm-fullkit-container { max-width: 900px; }
.adm-fullkit-container .adm-card { display: grid; gap: 16px; }
.adm-fullkit-container .adm-card-title { margin-bottom: 0; }
.adm-fullkit-actions { position: sticky; bottom: 12px; z-index: 4; padding: 12px; background: color-mix(in srgb, var(--bg-1) 94%, transparent); border: 1px solid var(--border-2); border-radius: var(--radius-lg); backdrop-filter: blur(12px); }

.adm-channel-container { max-width: 980px; }
.adm-channel-note { line-height: 1.55; }
.adm-channel-group + .adm-channel-group { margin-top: 16px; }
.adm-channel-list { display: grid; gap: 10px; }
.adm-channel-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(250px, .85fr) auto; align-items: end; gap: 16px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-3); }
.adm-channel-copy { min-width: 0; }
.adm-channel-title { display: flex; align-items: center; gap: 8px; color: var(--text-1); font-size: 14px; }
.adm-channel-copy p { margin: 5px 0; color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.adm-channel-key { color: var(--text-4); font-size: 10px; }
.adm-channel-field { min-width: 0; }
.adm-channel-metric-label { display: block; margin-top: 10px; }
.adm-channel-metric-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.adm-channel-metric-control .adm-btn { min-height: 40px; }
.adm-channel-row > .adm-btn { min-height: 40px; }
.adm-channel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 40px; }
.adm-channel-actions > .adm-btn { min-height: 40px; }
.adm-channel-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-3); background: var(--bg-2); font: inherit; font-size: 12px; cursor: pointer; }
.adm-channel-toggle:hover { border-color: var(--border-hi); color: var(--text-1); }
.adm-channel-toggle-track { position: relative; width: 34px; height: 18px; flex: 0 0 auto; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--border); transition: .18s ease; }
.adm-channel-toggle-track span { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); transition: .18s ease; }
.adm-channel-toggle.is-on { color: var(--alive); border-color: color-mix(in srgb, var(--alive) 38%, var(--border)); }
.adm-channel-toggle.is-on .adm-channel-toggle-track { background: color-mix(in srgb, var(--alive) 22%, var(--bg-1)); border-color: color-mix(in srgb, var(--alive) 48%, var(--border)); }
.adm-channel-toggle.is-on .adm-channel-toggle-track span { left: 18px; background: var(--alive); }

.adm-say-container { max-width: 1080px; }
.adm-say-layout { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); align-items: start; gap: 16px; }
.adm-say-form { display: grid; gap: 14px; margin-top: 15px; }
.adm-say-form-grid { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 10px; }
.adm-say-textarea { min-height: 116px; resize: vertical; line-height: 1.45; }
.adm-say-list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.adm-say-list { display: grid; gap: 10px; margin-top: 15px; }
.adm-say-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-3); }
.adm-say-item-main { min-width: 0; }
.adm-say-item-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-1); }
.adm-say-last-sent { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--text-4); font-family: var(--mono); font-size: 10.5px; }
.adm-say-last-sent > span { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; opacity: .7; }
.adm-say-last-sent.is-sent { color: var(--alive); }
.adm-say-item-main p { margin-top: 7px; color: var(--text-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.adm-say-delete { position: relative; }
.adm-say-delete > summary { display: inline-flex; align-items: center; list-style: none; user-select: none; }
.adm-say-delete > summary::-webkit-details-marker { display: none; }
.adm-say-delete-confirm { position: absolute; z-index: 3; top: calc(100% + 7px); right: 0; width: max-content; max-width: 300px; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(224,80,106,.42); border-radius: var(--radius); background: var(--bg-2); box-shadow: 0 14px 35px rgba(0,0,0,.34); color: var(--text-2); font-size: 12px; }
.adm-say-delete-confirm strong { color: var(--text-1); }
.adm-say-empty { margin-top: 15px; }

.adm-row--vip { align-items: flex-start; }
.adm-row--vip.is-expired { opacity: .72; }
.adm-inline { display: inline; }
.adm-vip-quick { flex: 0 0 auto; }

/* Identity block: linked in-game name (title) + Discord handle + expiry + tags */
.adm-vip-id { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-vip-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.adm-vip-inline { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-4); background: var(--bg-3); padding: 1px 6px; border-radius: 4px; }
.adm-vip-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.adm-vip-dc { color: var(--text-3); }
.adm-vip-dc-name { color: var(--text-1); font-weight: 600; }
.adm-vip-dot { color: var(--text-4); }
.adm-vip-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Per-row "Manage" expander — full width when open so the forms have room */
.adm-details--vip { flex: 0 0 auto; }
.adm-details--vip[open] { flex-basis: 100%; }
.adm-details-body { display: flex; flex-direction: column; gap: 12px; padding: 14px;
  background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; margin-top: 4px; }
.adm-vip-adjust { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-mini { width: 68px !important; padding: 7px 9px !important; }
.adm-mini-label { font-size: 12px; font-weight: 600; color: var(--text-3); }
.adm-mini-note { font-size: 11.5px; color: var(--text-4); }
.adm-mini-note code { font-family: var(--mono); }

.adm-check-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.adm-check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.adm-check-row input, .adm-check-all input { accent-color: var(--accent); }

@media (max-width: 640px) {
  .adm-vip-add-grid { grid-template-columns: 1fr 1fr; }
  .adm-vip-bulk-grid { grid-template-columns: 1fr; }
  .adm-field--sm { max-width: none; }
  .adm-channel-row { grid-template-columns: 1fr; align-items: stretch; }
  .adm-channel-row > .adm-btn { width: 100%; }
  .adm-channel-actions { justify-content: stretch; }
  .adm-channel-actions > * { flex: 1; justify-content: center; }
  .adm-channel-metric-control { grid-template-columns: 1fr; }
  .adm-say-layout, .adm-say-form-grid { grid-template-columns: 1fr; }
  .adm-say-item { grid-template-columns: 1fr; }
  .adm-say-delete > summary { width: 100%; justify-content: center; }
  .adm-say-delete-confirm { position: static; width: 100%; max-width: none; margin-top: 8px; justify-content: space-between; }
}

/* ── Profile: header-right (verified badge + sign out) ── */
.profile-header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.profile-verified { display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 13px 7px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--alive) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--alive) 30%, transparent); }
.profile-verified-badge { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; color: var(--alive);
  background: color-mix(in srgb, var(--alive) 18%, transparent); }
.profile-verified-text { display: flex; flex-direction: column; gap: 0; line-height: 1.25; min-width: 0; }
.profile-verified-title { font-size: 12.5px; font-weight: 700; color: var(--alive); letter-spacing: .01em; }
.profile-verified-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.profile-verified-sub strong { color: var(--text-2); font-weight: 600; }
@media (max-width: 620px) {
  .profile-header-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .profile-verified-sub { max-width: none; }
}

/* ── Profile: VIP banner ── */
.profile-vip-banner { display: flex; align-items: center; gap: 13px; margin: 4px 0 20px;
  padding: 13px 16px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(200,160,32,.14), rgba(200,160,32,.05));
  border: 1px solid rgba(200,160,32,.34); }
.profile-vip-crown { color: #d9b23c; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(217,178,60,.35)); }
.profile-vip-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-vip-title { font-size: 14px; font-weight: 700; color: #e6c65a; letter-spacing: .02em; }
.profile-vip-sub { font-size: 13px; color: var(--text-2); }
.profile-vip-sub strong { color: var(--text-1); }

/* ── Profile: suspension notice ── */
.profile-suspended { display: flex; align-items: flex-start; gap: 13px; margin: 4px 0 20px;
  padding: 14px 16px; border-radius: var(--radius-lg);
  background: rgba(224,80,106,.09); border: 1px solid rgba(224,80,106,.34); }
.profile-suspended-icon { color: var(--kill); flex-shrink: 0; margin-top: 1px; }
.profile-suspended-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profile-suspended-title { font-size: 15px; font-weight: 700; color: #f0768c; }
.profile-suspended-sub { font-size: 13px; color: var(--text-2); }
.profile-suspended-sub strong { color: var(--text-1); }
.profile-suspended-note { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }

/* ── Profile: purchase / VIP history ── */
.ph-status { display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  padding: 13px 16px; border-radius: var(--radius-lg);
  background: var(--bg-2); border: 1px solid var(--border-2); }
.ph-status--on { background: color-mix(in srgb, var(--alive) 8%, transparent);
  border-color: color-mix(in srgb, var(--alive) 26%, transparent); }
.ph-status-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-status-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.ph-status--on .ph-status-title { color: var(--alive); }
.ph-status-sub { font-size: 12.5px; color: var(--text-3); }
.ph-status-sub strong { color: var(--text-1); }

.ph-log { list-style: none; display: flex; flex-direction: column;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; }
.ph-row { display: flex; align-items: center; gap: 12px; padding: 11px 15px; background: var(--bg-2); }
/* Separator line ONLY between logs on different days (rows within a day sit flush). */
.ph-row--daybreak { border-top: 1px solid var(--border); }
.ph-row-icon { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--text-4); }
.ph-row-icon--granted, .ph-row-icon--imported, .ph-row-icon--extended { background: var(--alive); }
.ph-row-icon--adjusted { background: var(--accent); }
.ph-row-icon--reduced, .ph-row-icon--revoked, .ph-row-icon--expired { background: var(--kill); }
.ph-row-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; margin-right: auto; }
.ph-row-what { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.ph-row-detail { font-size: 12px; color: var(--text-3); }
.ph-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.ph-row-amount { font-size: 13px; font-weight: 700; color: var(--text-1); }
.ph-row-amount.is-free { font-size: 12px; font-weight: 600; color: var(--text-4); }
.ph-row-when { font-size: 11.5px; color: var(--text-4); font-family: var(--mono); white-space: nowrap; }

/* Pager */
.ph-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ph-pager-btn { font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none;
  padding: 7px 13px; border: 1px solid var(--border-2); border-radius: 8px; transition: border-color .15s, color .15s; }
.ph-pager-btn:hover { color: var(--text-1); border-color: var(--border-hi); }
.ph-pager-btn.is-disabled { color: var(--text-5, var(--text-4)); opacity: .45; pointer-events: none; }
.ph-pager-info { font-size: 12.5px; color: var(--text-4); }

/* Profile → link to the purchase-history page, sat at the bottom-right of the
   account-actions row (same line as Swap / Unlink). */
.profile-change-actions { align-items: center; }
.profile-history-link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; transition: color .15s; }
.profile-history-link:hover { color: var(--accent); }
.profile-history-link svg { transition: transform .15s; }
.profile-history-link:hover svg { transform: translateX(3px); }
@media (max-width: 520px) { .profile-history-link { margin-left: 0; } }

/* Purchase-history page */
.ph-page { max-width: 620px; margin: 0 auto; }
.ph-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--text-3); text-decoration: none; margin-bottom: 18px; transition: color .15s; }
.ph-back:hover { color: var(--text-1); }
.ph-page-title { font-size: 26px; font-weight: 800; color: var(--text-1); letter-spacing: -.01em; }
.ph-page-sub { font-size: 14px; color: var(--text-3); margin: 4px 0 22px; }

/* â”€â”€ Rust Console Skin Catalogue â”€â”€ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sc-main { min-height: 72vh; }
.sc-hero { padding-bottom: 30px; }
.sc-summary-section { padding: 26px 0 34px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.sc-summary-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .9fr); gap: 16px; }
.sc-featured { position: relative; display: flex; min-height: 210px; align-items: stretch; overflow: hidden; padding: 24px; border: 1px solid var(--border-hi); border-radius: 8px; background: var(--bg-3); }
.sc-featured-copy { position: relative; z-index: 1; width: min(62%, 440px); min-width: 0; }
.sc-featured .col-label { margin-bottom: 8px; }
.sc-featured-kicker, .sc-pack { color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sc-featured h2 { margin: 3px 0 10px; color: var(--text-1); font-size: 24px; line-height: 1.05; }
.sc-featured-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.sc-featured-history { margin-top: 16px; color: var(--text-3); font-size: 12px; line-height: 1.45; }
.sc-featured-image { position: absolute; right: 2.5%; bottom: 15px; width: min(42%, 250px); height: 82%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.38)); }
.sc-featured-timer { display: grid; gap: 5px; width: min(210px, 100%); margin-top: 13px; color: var(--text-4); font-family: var(--mono); font-size: 10px; }
.sc-featured-progress { display: block; height: 3px; overflow: hidden; border-radius: 999px; background: var(--border); }
.sc-featured-progress i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s linear; }
@media (prefers-reduced-motion: no-preference) { .sc-featured-image { animation: scFeaturedFloat 4.8s ease-in-out infinite; } }
@keyframes scFeaturedFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.sc-featured.is-refreshing .sc-featured-image { animation: scFeaturedIn .45s ease both; }
@keyframes scFeaturedIn { from { opacity: .15; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.sc-variant { padding: 3px 7px; border: 1px solid var(--border-2); border-radius: 4px; color: var(--text-3); background: var(--bg-2); font-family: var(--mono); font-size: 10px; }
.sc-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sc-stat { display: flex; flex-direction: column; justify-content: center; min-height: 99px; padding: 16px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--bg-3); }
.sc-stat strong { color: var(--text-1); font-family: var(--mono); font-size: 27px; line-height: 1; }
.sc-stat span { margin-top: 7px; color: var(--text-3); font-size: 11px; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; }
.sc-legacy-note { max-width: 780px; margin: 15px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.sc-catalogue-section { padding: 38px 0 76px; }
.sc-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sc-section-head .col-label { margin-bottom: 5px; }
.sc-section-head h2 { color: var(--text-1); font-size: 21px; }
.sc-section-head > p { max-width: 280px; color: var(--text-3); font-size: 12px; line-height: 1.45; text-align: right; }
.sc-filters { position: relative; display: grid; gap: 13px; padding: 14px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--bg-2); }
.sc-store-scope { display: flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; padding: 3px; overflow-x: auto; border: 1px solid var(--border-2); border-radius: 6px; background: var(--bg-3); }
.sc-store-scope button { min-height: 31px; padding: 5px 10px; border: 1px solid transparent; border-radius: 4px; color: var(--text-3); background: transparent; font: 700 11px var(--font); letter-spacing: 0; white-space: nowrap; cursor: pointer; }
.sc-store-scope button:hover { color: var(--text-1); }
.sc-store-scope button.is-active { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.sc-filter-fields { display: grid; align-items: end; gap: 7px; }
.sc-filter-fields.is-all-categories { grid-template-columns: minmax(260px, 1fr) minmax(200px, .75fr) minmax(240px, .9fr) minmax(175px, .65fr) 39px auto; }
.sc-filter-fields.has-specific-item { grid-template-columns: minmax(130px, .7fr) minmax(180px, .85fr) minmax(240px, 1.15fr) minmax(185px, .85fr) minmax(140px, .65fr) 39px auto; }
.sc-filters label { display: grid; gap: 5px; min-width: 0; color: var(--text-3); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sc-filters input, .sc-filters select { width: 100%; min-width: 0; height: 39px; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--border-2); border-radius: 5px; outline: none; color: var(--text-1); background: var(--bg-3); font: 500 13px var(--font); letter-spacing: 0; }
.sc-filters select { font-size: 14px; font-weight: 600; }
.sc-filters select option { font-size: 14px; }
.sc-filters input:focus, .sc-filters select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-soft); }
.sc-filters .btn { min-height: 39px; padding: 8px 13px; white-space: nowrap; }
.sc-clear { position: absolute; top: 20px; right: 14px; color: var(--text-3); }
.sc-sort-toggle { display: inline-grid; width: 39px; height: 39px; place-items: center; padding: 0; border: 1px solid var(--border-2); border-radius: 5px; color: var(--accent); background: var(--bg-3); cursor: pointer; }
.sc-sort-toggle:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.sc-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border-2); border-radius: 7px; background: var(--bg-2); transition: border-color .15s, transform .15s; }
.sc-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.sc-image-wrap { --sc-image-max: 128px; display: grid; width: 100%; height: 154px; place-items: center; padding: 13px; border: 0; border-bottom: 1px solid var(--border); color: inherit; background: var(--bg-3); cursor: zoom-in; }
.sc-image-wrap:hover { background: var(--bg-raise); }
.sc-image-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.sc-image-wrap img { display: block; max-width: 100%; max-height: var(--sc-image-max); width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 9px 11px rgba(0,0,0,.3)); }
.sc-card-copy { display: flex; flex: 1; flex-direction: column; padding: 13px; }
.sc-card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; margin-bottom: 8px; }
.sc-category { min-width: 0; overflow: hidden; color: var(--text-4); font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.sc-card h3 { color: var(--text-1); font-size: 15px; line-height: 1.16; overflow-wrap: anywhere; }
.sc-pack { min-height: 15px; margin-top: 7px; color: var(--accent); font-size: 9px; overflow-wrap: anywhere; }
.sc-collections { min-height: 15px; margin-top: 6px; color: var(--gold); font-size: 10px; line-height: 1.35; }
.sc-history { margin-top: auto; padding-top: 10px; }
.sc-history summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: var(--text-3); font-size: 11px; font-weight: 600; list-style: none; }.sc-history summary::-webkit-details-marker { display: none; }.sc-history summary::before { content: '▸'; margin-right: 5px; color: var(--accent); font-size: 11px; transition: transform .16s ease; }.sc-history[open] summary::before { transform: rotate(90deg); }.sc-history summary span { margin-left: auto; }
.sc-history summary span { display: inline-grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border: 1px solid var(--border-2); border-radius: 9px; color: var(--text-4); background: var(--bg-3); font-family: var(--mono); font-size: 9px; }
.sc-history p { margin-top: 7px; color: var(--text-4); font-family: var(--mono); font-size: 10px; line-height: 1.45; }
.sc-history-list { display: grid; gap: 3px; max-height: 116px; margin: 8px 0 0; padding: 0; overflow: auto; list-style: none; }.sc-history-list li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 4px; color: var(--text-3); background: var(--bg-3); font-family: var(--mono); font-size: 10px; line-height: 1.25; }.sc-history-list li::before { content: ''; position: absolute; left: 5px; top: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }.sc-history-list li span { flex: 0 0 auto; color: var(--text-4); font-size: 9px; white-space: nowrap; }
.sc-badge { display: inline-flex; flex: 0 1 auto; align-items: center; justify-content: center; min-height: 20px; padding: 2px 6px; border: 1px solid var(--border-2); border-radius: 4px; color: var(--text-3); background: var(--bg-2); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; overflow-wrap: anywhere; text-align: center; }
.sc-card .sc-badge { max-width: 72%; }
.sc-badge--legacy { color: var(--gold); border-color: rgba(232,185,35,.38); background: rgba(232,185,35,.08); }
.sc-badge--limited_time, .sc-badge--founder_reward, .sc-badge--launch_reward { color: #ff9b63; border-color: rgba(255,155,99,.35); background: rgba(255,155,99,.08); }
.sc-badge--edition_included, .sc-badge--preorder_bonus { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.sc-badge--special { color: #b995ee; border-color: rgba(185,149,238,.3); background: rgba(185,149,238,.08); }
.sc-badge--rotating { color: var(--alive); border-color: rgba(52,199,123,.28); background: rgba(52,199,123,.07); }
.sc-lightbox { position: fixed; inset: 0; width: min(560px, calc(100vw - 28px)); height: fit-content; max-width: none; max-height: calc(100vh - 28px); margin: auto; padding: 0; overflow: auto; color: var(--text-1); background: var(--bg-2); border: 1px solid var(--border-hi); border-radius: 9px; box-shadow: 0 24px 80px rgba(0,0,0,.62); }
.sc-lightbox::backdrop { background: rgba(2,6,13,.78); backdrop-filter: blur(3px); }
.sc-lightbox-inner { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; gap: 14px; align-items: center; min-height: 310px; padding: 35px 28px 28px; }
.sc-lightbox-inner > img { width: 100%; max-height: 350px; object-fit: contain; filter: drop-shadow(0 16px 19px rgba(0,0,0,.45)); }
.sc-lightbox-close { position: absolute; z-index: 1; top: 9px; right: 9px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; color: var(--text-2); background: var(--bg-3); border: 1px solid var(--border-hi); border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; }
.sc-lightbox-close:hover { color: var(--text-1); border-color: var(--accent); }
.sc-lightbox-copy { text-align: center; }
.sc-lightbox-copy h2 { color: var(--text-1); font-size: 21px; line-height: 1.08; overflow-wrap: anywhere; }
.sc-lightbox-copy > p:last-child { margin-top: 8px; color: var(--accent); font-family: var(--mono); font-size: 11px; line-height: 1.45; }
.sc-pagination { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.sc-pager-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.sc-page-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sc-page {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--bg-2); color: var(--text-2);
  font-family: var(--mono); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: border-color .12s, color .12s, background .12s;
}
a.sc-page:hover { border-color: var(--border-hi); color: var(--text-1); background: var(--bg-3); }
.sc-page.is-active {
  background: var(--accent); color: #04101e; font-weight: 700;
  box-shadow: 0 0 16px -4px var(--accent-glow);
}
.sc-page--nav { font-family: var(--ui); font-weight: 600; letter-spacing: .03em; color: var(--text-1); }
.sc-page-arrow { font-size: 17px; line-height: 1; }
.sc-page.is-disabled { opacity: .32; pointer-events: none; }
.sc-page-gap { min-width: 20px; text-align: center; color: var(--text-4); font-family: var(--mono); user-select: none; }
.sc-page-jump { display: flex; align-items: center; gap: 8px; }
.sc-page-jump label { color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.sc-page-jump-total { color: var(--text-4); font-family: var(--mono); font-size: 12.5px; }
.sc-page-jump input {
  width: 58px; height: 34px; padding: 0 8px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--bg-2); color: var(--text-1); font-family: var(--mono); font-size: 13px; text-align: center;
}
.sc-page-jump input:focus { outline: none; border-color: var(--accent); }
.sc-page-jump button {
  height: 34px; padding: 0 15px; border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--bg-3); color: var(--text-1); font-family: var(--ui); font-weight: 600; font-size: 13px; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.sc-page-jump button:hover { background: var(--accent); color: #04101e; border-color: var(--accent); }
.sc-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; margin-top: 18px; border: 1px dashed var(--border-2); border-radius: 8px; color: var(--text-3); }
.sc-empty strong { color: var(--text-2); font-size: 16px; }
.sc-empty a { color: var(--accent); font-size: 13px; }
.sc-credit { max-width: 720px; margin: 28px auto 0; color: var(--text-4); font-size: 11px; line-height: 1.55; text-align: center; }
.sc-credit strong { color: var(--text-3); font-weight: 600; }
@media (max-width: 1080px) {
  .sc-filter-fields.has-specific-item { grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr) minmax(220px, 1.15fr) minmax(180px, .9fr) minmax(135px, .7fr) 39px auto; }
  .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sc-summary-grid { grid-template-columns: 1fr; }
  .sc-featured { min-height: 194px; }
  .sc-featured-copy { width: 67%; }
  .sc-featured h2 { font-size: 21px; }
  .sc-featured-image { right: 2%; width: 42%; height: 74%; }
  .sc-section-head { align-items: start; flex-direction: column; gap: 7px; }
  .sc-section-head > p { max-width: none; text-align: left; }
  .sc-filter-fields, .sc-filter-fields.is-all-categories, .sc-filter-fields.has-specific-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-search { grid-column: span 2; }
  .sc-filters .btn { width: 100%; justify-content: center; }
  .sc-sort-toggle { width: 100%; }
  .sc-clear { position: static; width: 100%; text-align: center; }
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-image-wrap { --sc-image-max: 106px; height: 132px; }
}
@media (max-width: 480px) {
  .sc-summary-section { padding-top: 18px; }
  .sc-featured { min-height: 210px; padding: 18px; }
  .sc-featured-copy { width: 68%; }
  .sc-featured-history { margin-top: 12px; font-size: 11px; }
  .sc-featured-image { width: 43%; height: 62%; bottom: 30px; }
  .sc-stat { min-height: 82px; padding: 13px; }
  .sc-stat strong { font-size: 23px; }
  .sc-stat span { font-size: 9px; }
  .sc-filter-fields, .sc-filter-fields.is-all-categories, .sc-filter-fields.has-specific-item { grid-template-columns: 1fr; }
  .sc-search { grid-column: auto; }
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .sc-image-wrap { --sc-image-max: 88px; height: 112px; padding: 9px; }
  .sc-card-copy { padding: 10px; }
  .sc-card h3 { font-size: 13px; }
  .sc-card-topline { align-items: start; flex-direction: column; }
  .sc-badge { white-space: normal; }
  .sc-pagination { gap: 12px; }
  .sc-page { min-width: 36px; height: 36px; padding: 0 9px; }
  .sc-page-navtext { display: none; }
  .sc-page--nav { padding: 0 11px; }
  .sc-lightbox-inner { grid-template-columns: 1fr; min-height: 0; padding: 38px 20px 22px; }
  .sc-lightbox-inner > img { max-height: 300px; }
  .sc-lightbox-copy { text-align: center; }
}

/* ── FullKit: store card + private workspace (owner-only, unreleased) ──────────── */
/* Two products side by side (VIP + FullKit) when the owner is viewing; either one
   alone renders centred as before. */
.store-products--two {
  display: flex; flex-wrap: wrap; gap: 30px;
  align-items: flex-start; justify-content: center;
}
.store-products--two > section { flex: 1 1 420px; max-width: 540px; min-width: 0; }
.store-products--two .container { max-width: none; padding-left: 0; padding-right: 0; }

/* FullKit reuses the shared .vip-* card markup, re-themed to a distinct green so it
   reads as a different product from VIP (which uses the site's blue accent). */
.fk-store-section {
  --accent:      #35d09a;
  --accent-soft: rgba(53,208,154,.10);
  --accent-line: rgba(53,208,154,.24);
  --accent-glow: rgba(53,208,154,.35);
  padding: 44px 0 0;
}
.fk-card .vip-price-amt {
  background-image: linear-gradient(90deg, var(--accent), #bff7e4, #ffffff, #bff7e4, var(--accent));
}
.fk-owner-note { display: inline-block; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
/* Green spinning border (VIP's version hardcodes a blue #bfe0ff segment) and a green
   button hover (the base .btn-primary:hover hardcodes blue #6ab5ff). */
.fk-card-wrap {
  background:
    conic-gradient(from var(--vip-angle),
      transparent 0deg, var(--accent) 60deg, #bff7e4 100deg,
      transparent 165deg, transparent 235deg, var(--accent) 310deg, transparent 360deg),
    var(--border-2);
}
.fk-store-section .btn-primary:hover { background: #4ee0ac; }

/* Private FullKit workspace page (/fullkit/app) */
.fk-app-badge {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #35d09a; background: rgba(53,208,154,.10); border: 1px solid rgba(53,208,154,.24);
  border-radius: 20px; padding: 3px 12px; vertical-align: middle; margin-left: 8px;
}
.fk-server-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px 24px; margin-top: 6px;
}
.fk-server-val { color: var(--text-1); font-weight: 600; margin-top: 4px; }
.fk-next-card { position: relative; opacity: .82; }
.fk-soon {
  position: absolute; top: 22px; right: 22px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #35d09a; background: rgba(53,208,154,.10);
  border: 1px solid rgba(53,208,154,.24); border-radius: 20px; padding: 4px 12px;
}
.fk-setup-form.is-hidden { display: none; }
.fk-preview-frame {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-1); height: 620px; margin-top: 6px;
}
.fk-preview-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FullKit checkout panel (green theme) + verify/success animation overlay */
/* FullKit checkout panel is blue (matches the site accent); only the store card
   and the verify/success animation stay green. */
.co-panel--fk {
  --accent: #4da6ff; --accent-soft: rgba(77,166,255,.09);
  --accent-line: rgba(77,166,255,.22); --accent-glow: rgba(77,166,255,.35);
}
.fkco-list { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 10px; }
.fkco-list li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.fkco-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

.fkpay {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,5,10,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease;
}
.fkpay.is-open { opacity: 1; }
.fkpay-box {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid rgba(53,208,154,.22); border-radius: var(--radius-lg);
  padding: 42px 46px; text-align: center; min-width: 300px; max-width: 90vw;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 70px -34px rgba(53,208,154,.6);
  transform: translateY(8px) scale(.98); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.fkpay.is-open .fkpay-box { transform: translateY(0) scale(1); }
.fkpay-stage { display: flex; flex-direction: column; align-items: center; }
.fkpay-title { font-size: 19px; font-weight: 800; color: var(--text-1); margin-top: 18px; }
.fkpay-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.fkpay-spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(53,208,154,.18); border-top-color: #35d09a;
  animation: fkspin .8s linear infinite;
}
@keyframes fkspin { to { transform: rotate(360deg); } }
.fkpay-check svg { width: 68px; height: 68px; }
.fkpay-check-circle { fill: none; stroke: #35d09a; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: fkcircle .5s ease forwards; }
.fkpay-check-mark { fill: none; stroke: #35d09a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: fkmark .35s .45s ease forwards; }
@keyframes fkcircle { to { stroke-dashoffset: 0; } }
@keyframes fkmark { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fkpay-spinner { animation-duration: 1.8s; }
  .fkpay-check-circle, .fkpay-check-mark { animation: none; stroke-dashoffset: 0; }
}

/* Checkout: Discord account card avatar */
.fk-avatar { border-radius: 50%; object-fit: cover; border: 1px solid var(--border-2); }

/* Payment overlay: welcome stage — blue (the box turns blue via .is-welcome) */
.fkpay.is-welcome .fkpay-box { border-color: rgba(77,166,255,.30); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 72px -30px rgba(77,166,255,.7); }
.fkpay-logo { display: block; margin: 0 auto 2px; filter: drop-shadow(0 6px 24px rgba(77,166,255,.55)); animation: fk-logo-pop .45s ease both; }
@keyframes fk-logo-pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.fkpay-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; width: 100%; min-width: 240px; }
.fkpay-actions .btn, .fkpay-actions .adm-btn { width: 100%; justify-content: center; }

/* FullKit setup wizard (phone-style) — uses the site's blue accent (the payment
   animation stays green; this menu is blue). */
.fk-wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.fk-wiz-count { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--text-2); text-transform: uppercase; }
.fk-wiz-count span { color: var(--accent); }
.fk-wiz-progress { display: flex; gap: 8px; }
.fk-wiz-dot { width: 30px; height: 4px; border-radius: 3px; background: var(--border-2); transition: background .2s; }
.fk-wiz-dot.is-active { background: var(--accent); }
.fk-wiz-step { display: none; }
.fk-wiz-step.is-active { display: block; animation: fk-step .3s ease; }
@keyframes fk-step { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fk-wiz-img { display: block; width: 100%; max-width: 440px; margin: 16px auto; border-radius: var(--radius); border: 1px solid var(--border); }
.fk-wiz-img--help { max-width: 560px; }
.fk-provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 20px 0 6px; }
.fk-provider {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 16px; border-radius: var(--radius); cursor: pointer;
  background: var(--bg-3); border: 1.5px solid var(--border-2); color: var(--text-1);
  font-family: var(--ui); transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}
.fk-provider:hover { border-color: rgba(77,166,255,.5); transform: translateY(-2px); }
.fk-provider.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.fk-provider-icon { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.fk-provider-icon--other { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--text-3); border: 1px solid var(--border); }
.fk-provider-name { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.fk-wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.fk-help { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.fk-help-title { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.fk-help-steps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.fk-wiz .is-error { border-color: #ff6b6b !important; box-shadow: 0 0 0 1px rgba(255,107,107,.4); }
.fk-wiz-error { color: #ff8a8a; font-size: 13.5px; font-weight: 600; margin-top: 14px; }
.fk-empty { text-align: center; }
.fk-empty-logo { display: block; margin: 0 auto 10px; }
.fk-empty .btn { margin-top: 8px; }

/* Bigger, roomier setup layout — not a little box */
.fk-wiz { max-width: 660px; margin: 6px auto 0; }
.fk-wiz .adm-card { padding: 32px 36px; }
.fk-wiz .adm-card-title { font-size: 25px; letter-spacing: -.01em; }
.fk-wiz .adm-sub { font-size: 15px; }
.fk-wiz .fk-wiz-nav .btn, .fk-wiz .fk-wiz-nav .adm-btn { padding: 12px 26px; font-size: 15px; }
.fk-provider { padding: 26px 16px; }
.fk-provider-icon { width: 58px; height: 58px; }
.fk-owned--progress .vip-owned-check { color: #f0b429; }
@media (max-width: 640px) { .fk-wiz .adm-card { padding: 24px 20px; } .fk-wiz .adm-card-title { font-size: 22px; } }
