/* ============================================================
   DAYZSTATS — CINEMATIC OVERHAUL
   Visual system: cold fog + firelight signal. Moody, atmospheric.
   ============================================================ */

/* ── Fonts ──────────────────────────────────────────────── */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Cold fog base — deep, desaturated, faint blue-green cast */
  --bg-0:    oklch(0.145 0.012 240);   /* deepest — page void */
  --bg-1:    oklch(0.175 0.013 238);   /* band */
  --bg-2:    oklch(0.205 0.014 236);   /* raised */
  --panel:   oklch(0.225 0.013 236 / 0.55);
  --panel-2: oklch(0.27 0.013 236 / 0.5);
  --hairline: oklch(0.85 0.02 230 / 0.10);
  --hairline-2: oklch(0.85 0.02 230 / 0.18);

  /* Ink — cool near-whites */
  --ink:    oklch(0.95 0.006 230);
  --ink-2:  oklch(0.82 0.008 230);
  --muted:  oklch(0.66 0.01 232);
  --faint:  oklch(0.52 0.012 234);
  --ghost:  oklch(0.42 0.012 236);

  /* Signal — firelight amber/rust (primary accent) */
  --signal:    oklch(0.76 0.145 62);
  --signal-hi: oklch(0.83 0.13 68);
  --signal-lo: oklch(0.64 0.15 50);
  --signal-bg: oklch(0.76 0.145 62 / 0.12);
  --signal-br: oklch(0.76 0.145 62 / 0.30);

  /* Cold steel — secondary (sparing) */
  --steel:    oklch(0.80 0.065 215);
  --steel-bg: oklch(0.80 0.065 215 / 0.12);

  /* Semantics */
  --blood:  oklch(0.63 0.20 25);
  --blood-hi: oklch(0.70 0.18 28);
  --toxic:  oklch(0.82 0.15 145);
  --warn:   oklch(0.82 0.14 85);
  --frost:  oklch(0.80 0.09 225);
  --plum:   oklch(0.72 0.13 310);

  --r: 3px;
  --r-lg: 6px;
  --maxw: 1180px;

  --mono:   'JetBrains Mono', ui-monospace, monospace;
  --disp:   'Oswald', 'Arial Narrow', sans-serif;
  --ui:     'Archivo', system-ui, sans-serif;
  --serif:  'Newsreader', Georgia, 'Times New Roman', serif;
}

/* ── Reset / base ───────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,h2,h3,h4 { margin: 0; font-weight: 600; line-height: 1.05; }
p { margin: 0; }
a { color: var(--signal); text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--signal-br); color: #fff; }

/* ── Atmosphere overlays (fixed, page-wide) ─────────────── */
.atmos {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
}
.atmos-vignette {
  background:
    radial-gradient(120% 90% at 50% -10%, oklch(0.30 0.03 60 / 0.16), transparent 55%),
    radial-gradient(140% 120% at 50% 120%, oklch(0.10 0.01 240 / 0.9), transparent 60%),
    radial-gradient(100% 100% at 50% 50%, transparent 55%, oklch(0.08 0.01 240 / 0.7));
}
.atmos-grain {
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.content { position: relative; z-index: 2; }

.dev-notice {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 950;
  pointer-events: none;
  padding: 7px 12px;
  border: 1px solid oklch(0.76 0.145 62 / 0.34);
  border-radius: 999px;
  background: oklch(0.14 0.014 238 / 0.72);
  color: var(--signal-hi);
  box-shadow: 0 10px 28px oklch(0 0 0 / 0.26);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ── Layout primitives ──────────────────────────────────── */
.band { padding: 92px 28px; position: relative; }
.band-tight { padding: 56px 28px; }
.band-1 { background: var(--bg-1); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }

/* topographic faint texture for atmospheric bands */
.topo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 38px, var(--hairline) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, var(--hairline) 38px 39px);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
}

/* ── Type helpers ───────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--signal);
}
.eyebrow-muted { color: var(--faint); }
.kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.display {
  font-family: var(--disp);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 0.98;
  text-transform: uppercase;
}
.h-xxl { font-family: var(--disp); font-weight: 700; font-size: clamp(3rem, 8vw, 6.2rem); line-height: 1.0; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 0.35em; }
.h-xl  { font-family: var(--disp); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.4rem); text-transform: uppercase; line-height: 0.96; }
.h-lg  { font-family: var(--disp); font-weight: 600; font-size: 1.85rem; text-transform: uppercase; letter-spacing: 0.01em; }
.h-md  { font-family: var(--disp); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.02em; }
.lede { font-size: 1.12rem; color: var(--ink-2); line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.num { font-family: var(--disp); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* section header block */
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.sec-head .rule { height: 1px; background: linear-gradient(90deg, var(--signal-br), transparent); }

/* ── Panels ─────────────────────────────────────────────── */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04), 0 18px 40px -28px #000;
  backdrop-filter: blur(4px);
}
.panel-pad { padding: 22px 24px; }
.panel-edge { border-top: 2px solid var(--signal); }

/* corner ticks — HUD framing */
.framed { position: relative; }
.framed::before, .framed::after {
  content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none;
  border-color: var(--signal-br); border-style: solid; border-width: 0;
}
.framed::before { top: 6px; left: 6px; border-top-width: 1px; border-left-width: 1px; }
.framed::after  { bottom: 6px; right: 6px; border-bottom-width: 1px; border-right-width: 1px; }

/* ── Chips / badges / tags ──────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px;
  border: 1px solid var(--hairline-2); color: var(--ink-2);
  background: oklch(1 0 0 / 0.03);
}
.chip-signal { color: var(--signal-hi); border-color: var(--signal-br); background: var(--signal-bg); }
.chip-blood  { color: var(--blood-hi); border-color: oklch(0.63 0.2 25 / 0.3); background: oklch(0.63 0.2 25 / 0.1); }
.chip-toxic  { color: var(--toxic);  border-color: oklch(0.82 0.15 145 / 0.3); background: oklch(0.82 0.15 145 / 0.1); }
.chip-steel  { color: var(--steel);  border-color: oklch(0.8 0.065 215 / 0.3); background: var(--steel-bg); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-live { background: var(--toxic); box-shadow: 0 0 10px var(--toxic); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ── Stat tile ──────────────────────────────────────────── */
.stat {
  background: oklch(0.16 0.012 240 / 0.6);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.stat .stat-k {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
  display: flex; align-items: center; gap: 8px;
}
.stat .stat-v { font-family: var(--disp); font-weight: 600; font-size: 2.1rem; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .stat-s { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.stat-spark { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--hairline); }
.stat-spark > i { display:block; height:100%; background: var(--signal); }

/* ── Flavor message (narrative interpretation) ──────────── */
.flavor {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  border-left: 2px solid var(--signal);
  background: linear-gradient(90deg, var(--signal-bg), transparent 90%);
  border-radius: 0 var(--r) var(--r) 0;
}
.flavor .glyph { font-family: var(--mono); color: var(--signal); font-size: 0.8rem; margin-top: 2px; }
.flavor .ftext { font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
.flavor .ftext b { color: var(--signal-hi); font-weight: 600; }
.flavor-blood { border-left-color: var(--blood); background: linear-gradient(90deg, oklch(0.63 0.2 25 / 0.1), transparent 90%); }
.flavor-blood .glyph { color: var(--blood-hi); }
.flavor-blood .ftext b { color: var(--blood-hi); }

/* ── Image placeholder (drop zones) ─────────────────────── */
.ph {
  position: relative;
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(135deg,
    oklch(1 0 0 / 0.018) 0 11px, oklch(1 0 0 / 0.05) 11px 22px);
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  overflow: hidden;
}
.ph-label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
  padding: 6px 12px; border: 1px dashed var(--hairline-2); border-radius: 2px;
  background: oklch(0.14 0.01 240 / 0.7);
  text-align: center;
}

/* ── Browser frame (mock chrome) ────────────────────────── */
.frame {
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-0);
  box-shadow: 0 60px 120px -50px #000, 0 0 0 1px oklch(0 0 0 / 0.4);
}
.frame-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--hairline);
}
.frame-dots { display: flex; gap: 7px; }
.frame-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--ghost); display:block; }
.frame-url {
  flex: 1; font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  background: var(--bg-0); border: 1px solid var(--hairline);
  border-radius: 2px; padding: 5px 12px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.frame-url .lock { color: var(--toxic); font-size: 0.62rem; }
.frame-body { background: var(--bg-0); position: relative; }

/* mock app shell inside the frame */
.frame-body { overflow-x: auto; }
.app { display: grid; grid-template-columns: 210px 1fr; min-height: 600px; min-width: 860px; }
.app-side {
  background: var(--bg-1);
  border-right: 1px solid var(--hairline);
  padding: 18px 0;
  display: flex; flex-direction: column;
}
.app-logo { padding: 4px 20px 18px; border-bottom: 1px solid var(--hairline); }
.app-logo-mark { font-family: var(--disp); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--ink); text-transform: uppercase; line-height: 1.1; }
.app-logo-sub { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.26em; color: var(--faint); text-transform: uppercase; margin-top: 3px; }
/* server toggle */
.srv-toggle { display: flex; margin: 14px 12px 0; gap: 4px; }
.srv-btn { flex: 1; text-align: center; font-family: var(--mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 4px; border-radius: 2px; border: 1px solid var(--hairline-2); color: var(--faint); background: transparent; cursor: pointer; transition: all 0.15s; }
.srv-btn.s1, .srv-btn.s2, .srv-btn.s3 { color: var(--signal); border-color: var(--signal-br); background: var(--signal-bg); }
.app-auth {
  display: grid; gap: 6px;
  margin: 10px 12px 0; padding-bottom: 11px;
  border-bottom: 1px solid var(--hairline);
}
.app-auth-card {
  min-width: 0; min-height: 46px;
  display: grid; grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center; gap: 8px;
  padding: 8px 8px; border: 1px solid var(--hairline);
  border-radius: 3px; background: oklch(1 0 0 / 0.018);
}
a.app-auth-card { color: var(--ink-2); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
a.app-auth-card:hover, a.app-auth-card:focus-visible {
  border-color: var(--signal-br); background: var(--signal-bg); transform: translateY(-1px); outline: none;
}
.app-auth-card-player { border-color: var(--signal-br); background: var(--signal-bg); }
.app-auth-card-staff { border-color: oklch(0.66 0.10 250 / .35); background: oklch(0.36 0.07 250 / .12); }
.app-auth-icon {
  width: 25px; height: 25px; display: grid; place-items: center;
  border-radius: 50%; background: oklch(1 0 0 / .04);
  color: var(--signal); font-size: .68rem;
}
.app-auth-card-staff .app-auth-icon, .app-auth-staff-login .app-auth-icon { color: oklch(0.72 0.12 250); }
.app-auth-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.app-auth-kicker, .app-auth-meta {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); font-size: .51rem; line-height: 1.25;
  letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
.app-auth-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .72rem; line-height: 1.25; color: var(--ink-2);
}
.app-auth-action {
  padding: 5px 6px; border: 1px solid var(--hairline-2); border-radius: 2px;
  font-family: var(--mono); font-size: .5rem; letter-spacing: .04em;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.app-auth-action:hover, .app-auth-action:focus-visible { border-color: var(--signal-br); color: var(--signal); outline: none; }
.app-auth-arrow { color: var(--faint); font-size: 1rem; line-height: 1; }
.app-nav { padding: 5px 0 14px; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.app-nav .sec { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ghost); padding: 14px 20px 6px; }
.app-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 20px; font-size: 0.83rem; color: var(--muted);
  border-left: 2px solid transparent; cursor: default;
}
.app-link .ic { width: 15px; text-align: center; color: var(--faint); font-size: 0.85rem; }
.app-link.on { color: var(--signal); background: var(--signal-bg); border-left-color: var(--signal); }
.app-link.on .ic { color: var(--signal); }
.app-main { padding: 26px 30px 40px; min-width: 0; }

/* Shared full-width page hero, based on the timeline activity header. */
.page-hero {
  --page-hero-vitals: 6;
  --page-hero-overlay-left: .64;
  --page-hero-overlay-right: .28;
  --page-hero-overlay-bottom: .46;
  min-height: 270px;
  margin: -26px -30px 22px;
  padding: 34px 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      oklch(0.10 0.010 240 / var(--page-hero-overlay-left)),
      oklch(0.10 0.010 240 / var(--page-hero-overlay-right))
    ),
    var(--page-hero-image) center 30% / cover;
}
.page-hero-flush { margin: 0; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 55%,
    oklch(0.10 0.010 240 / var(--page-hero-overlay-bottom))
  );
}
.page-hero-copy,
.page-hero-actions,
.page-hero-badges,
.page-hero-vitals {
  position: relative;
  z-index: 1;
}
.page-hero-copy {
  position: absolute;
  top: 69px;
  right: 30px;
  left: 30px;
  margin: 0;
}
.page-hero-kicker {
  color: var(--text);
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.page-hero h1 {
  margin: 4px 0 6px;
  font-family: var(--disp);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.page-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--signal);
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.page-hero-actions {
  position: absolute;
  top: 24px;
  right: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 58%;
}
.page-hero-actions .btn {
  padding: 6px 10px;
  font-size: .65rem;
}
.page-hero-badges {
  position: absolute;
  right: 30px;
  bottom: 73px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.page-hero-vitals {
  position: absolute;
  right: 30px;
  bottom: 0;
  left: 30px;
  display: grid;
  grid-template-columns: repeat(var(--page-hero-vitals), minmax(0, 1fr));
  grid-auto-rows: 62px;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  background: transparent;
}
.page-hero-vital {
  min-width: 0;
  height: 62px;
  padding: 10px 14px;
  box-sizing: border-box;
  border-right: 1px solid var(--hairline);
  background: oklch(0.09 0.010 240 / .48);
}
.page-hero-vital:last-child { border-right: 0; }
.page-hero-vital span {
  display: block;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: .59rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.page-hero-vital strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--disp);
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-hero-vital .player-shot-kind {
  margin-left: 3px;
  font-family: var(--mono);
  font-size: .55rem;
  color: var(--faint);
}
.page-hero-vital .is-alive,
.page-hero-vital .is-toxic { color: var(--toxic); }
.page-hero-vital .is-dead,
.page-hero-vital .is-blood { color: var(--blood-hi); }
.page-hero-vital .is-signal { color: var(--signal); }
.page-hero-vital .is-steel { color: var(--steel); }
.page-hero-no-vitals { padding-bottom: 36px; }
.page-hero-player .page-hero-badges { bottom: 78px; }

/* Homepage is a first arrival, not another data-listing page -- more height
   and a bigger title than the shared default, everything else (vitals,
   actions, badges) reuses the same component untouched. */
.page-hero-home { min-height: 360px; }
.page-hero-home .page-hero-copy { top: 92px; }
.page-hero-home h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.page-hero-home p { font-size: .8rem; }
/* Leaves room for the fixed .tour-fab, which sits over every page's hero
   actions at top:14/right:18 regardless of scroll -- other pages get away
   with it on short single-word labels alone; don't rely on that here. */
.page-hero-home .page-hero-actions { padding-right: 96px; }
/* The plain (non-signal) button style reads fine over the darker overlay
   most pages' hero photos have there, but this hero image's top-right is a
   bright sky -- same contrast problem .tour-fab already solves for itself
   with a blurred dark backdrop, applied here the same way. */
.page-hero-home .page-hero-actions .btn:not(.btn-signal) {
  background: oklch(0.10 0.010 240 / .55);
  backdrop-filter: blur(6px);
}

/* ── Tabs (My Stats grouping) ───────────────────────────── */
.tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--hairline);
  margin: 4px 0 24px;
}
.tab {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 11px 16px; color: var(--faint); cursor: pointer;
  border: none; background: none; border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: -1px;
  transition: color 0.15s;
}
.tab .tnum { font-size: 0.6rem; color: var(--ghost); }
.tab:hover { color: var(--ink-2); }
.tab.on { color: var(--signal); border-bottom-color: var(--signal); }
.tab.on .tnum { color: var(--signal-lo); }
.tabpanel { display: none; animation: fade 0.3s ease; }
.tabpanel.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

/* ── Grid helpers ───────────────────────────────────────── */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap-f { flex-wrap: wrap; }
.gap-s { gap: 8px; } .gap-m { gap: 14px; } .gap-l { gap: 24px; }
.col { display: flex; flex-direction: column; }

/* ── Kill row (killfeed redesign) ───────────────────────── */
.kill {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
  background: oklch(0.17 0.012 240 / 0.5);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--blood);
  border-radius: var(--r);
}
.kill + .kill { margin-top: 8px; }
.kill-pve { border-left-color: var(--warn); }
.kill-ani { border-left-color: var(--toxic); }
.kill-time { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
.kill-time b { color: var(--ink-2); display: block; font-weight: 600; }
.kill-engage { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.kill-actor { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.kill-actor.victim { color: var(--muted); }
.kill-vs {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em;
  color: var(--faint); text-transform: uppercase; min-width: 92px;
}
.kill-vs .wpn { color: var(--signal); font-weight: 600; }
.kill-vs .line { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--blood), transparent); }
.kill-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.kill-tag {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding: 3px 8px; border: 1px solid var(--hairline); border-radius: 2px;
}
.kill-tag.hs { color: var(--blood-hi); border-color: oklch(0.63 0.2 25 / 0.3); }
.kill-tag.dist { color: var(--signal); border-color: var(--signal-br); }

/* ── Leaderboard row ────────────────────────────────────── */
.lb { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: grid;
  grid-template-columns: 54px 1fr 180px 150px;
  align-items: center; gap: 16px;
  padding: 14px 18px;
  background: oklch(0.17 0.012 240 / 0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
}
.lb-rank { font-family: var(--disp); font-weight: 700; font-size: 1.5rem; color: var(--faint); text-align: center; }
.lb-id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.lb-av {
  width: 40px; height: 40px; border-radius: 2px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 1.1rem;
  background: var(--bg-2); border: 1px solid var(--hairline-2); color: var(--ink-2);
}
.lb-name { font-weight: 600; font-size: 0.98rem; }
.lb-sub { font-family: var(--mono); font-size: 0.66rem; color: var(--faint); letter-spacing: 0.05em; }
.lb-metric { text-align: right; }
.lb-metric .v { font-family: var(--disp); font-weight: 600; font-size: 1.5rem; line-height: 1; }
.lb-metric .l { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.lb-bar2 { height: 4px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.lb-bar2 > i { display: block; height: 100%; background: linear-gradient(90deg, var(--signal-lo), var(--signal)); }
.lb-secondary { display: flex; gap: 16px; }
.lb-secondary .ss { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.lb-secondary .ss b { color: var(--ink-2); font-weight: 600; }
.lb-row.top1 { border-left: 2px solid var(--signal); background: linear-gradient(90deg, var(--signal-bg), oklch(0.17 0.012 240 / 0.5) 40%); }
.lb-row.top1 .lb-rank { color: var(--signal); }
.lb-row.top2 { border-left: 2px solid var(--steel); }
.lb-row.top2 .lb-rank { color: var(--steel); }
.lb-row.top3 { border-left: 2px solid var(--blood); }
.lb-row.top3 .lb-rank { color: var(--blood-hi); }

/* filter chip with icon (all have icons now) */
.fbar { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--hairline-2); color: var(--muted);
  background: oklch(1 0 0 / 0.02); transition: all 0.15s;
}
.fchip .fic { width: 14px; height: 14px; display: grid; place-items: center; color: var(--faint); }
.fchip:hover { color: var(--ink-2); border-color: var(--hairline-2); }
.fchip.on { color: var(--signal); border-color: var(--signal-br); background: var(--signal-bg); }
.fchip.on .fic { color: var(--signal); }

/* ── Record card (records redesign) ─────────────────────── */
.record {
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), oklch(0.16 0.012 240 / 0.6));
  padding: 0;
}
.record-img { height: 116px; position: relative; }
.record-img .ph { position: absolute; inset: 0; border: none; border-radius: 0; }
.record-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, oklch(0.14 0.012 240 / 0.95));
}
.record-body { padding: 16px 18px 18px; position: relative; }
.record-k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal); }
.record-v { font-family: var(--disp); font-weight: 700; font-size: 2.4rem; line-height: 1; margin: 7px 0; }
.record-holder { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.record-flavor { font-size: 0.8rem; color: var(--muted); font-style: italic; margin-top: 6px; line-height: 1.45; text-wrap: pretty; }
.record-medal {
  position: absolute; top: -38px; right: 16px;
  font-family: var(--disp); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bg-0); background: var(--signal);
  padding: 4px 10px; border-radius: 2px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--hairline-2); color: var(--ink-2);
  background: oklch(1 0 0 / 0.03); transition: all 0.15s;
}
.btn:hover { border-color: var(--hairline-2); color: var(--ink); background: oklch(1 0 0 / 0.06); }
.btn-signal { color: var(--signal); border-color: var(--signal-br); background: var(--signal-bg); }
.btn-signal:hover { background: oklch(0.76 0.145 62 / 0.2); color: var(--signal-hi); }

/* ── Misc: diagnosis list, swatches, type specimen ──────── */
.diag { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.diag-item { padding: 18px 20px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--panel); }
.diag-item .tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blood-hi); }
.diag-item h4 { font-family: var(--disp); font-size: 1.15rem; text-transform: uppercase; margin: 8px 0 6px; letter-spacing: 0.01em; }
.diag-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.diag-item .fix { font-size: 0.82rem; color: var(--toxic); margin-top: 10px; display: flex; gap: 8px; }
.diag-item .fix .mono { color: var(--toxic); font-size: 0.62rem; letter-spacing: 0.1em; margin-top: 2px; }

.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.sw { border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.sw-chip { height: 70px; }
.sw-meta { padding: 9px 11px; background: var(--panel); }
.sw-meta .n { font-size: 0.78rem; font-weight: 600; }
.sw-meta .h { font-family: var(--mono); font-size: 0.6rem; color: var(--faint); letter-spacing: 0.04em; }

.specimen { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--panel); }
.specimen .role { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--signal); margin-bottom: 6px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding: 22px 18px;
  border-top: 1px solid var(--hairline);
  color: var(--faint);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}
.site-footer-copy { color: var(--muted); }
.site-footer-separator { color: var(--signal); }
/* ── Season select (leaderboard) ────────────────────────── */
.lb-select {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--hairline-2); color: var(--ink-2);
  background: oklch(0.17 0.012 240 / 0.8); outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px; min-width: 200px;
}
.lb-select:focus { border-color: var(--signal-br); }
.lb-select option { background: oklch(0.175 0.013 238); color: var(--ink); }

/* ── Shared dark text input (mirrors settings.php's local .sf-input) ── */
.sf-input {
  width:100%;background:var(--bg-1);border:1px solid var(--hairline);border-radius:2px;
  color:var(--ink-2);font-size:0.83rem;padding:9px 12px;line-height:1.4;
  transition:border-color 0.15s;outline:none;
}
.sf-input:focus { border-color:var(--signal-br); }
.sf-input::placeholder { color:var(--ghost); }
textarea.sf-input { resize:vertical; }

/* roadmap */
.road { display: flex; flex-direction: column; gap: 2px; }
.road-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--hairline); }
.road-row .phase { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); padding-top: 3px; }
.road-row h4 { font-family: var(--disp); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 6px; }
.road-row p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* annotation callout */
.note {
  display: flex; gap: 12px; padding: 14px 16px;
  border: 1px dashed var(--signal-br); border-radius: var(--r);
  background: var(--signal-bg);
}
.note .nm { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin-top: 2px; }
.note p { font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; }

/* ── My Stats hero + components ─────────────────────────── */
.ms-hero { position: relative; border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.ms-hero-bg { position: absolute; inset: 0; border: none; border-radius: 0; }
.ms-hero-bg .ph-label { background: oklch(0.14 0.01 240 / 0.6); }
.ms-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.14 0.012 240 / 0.55), oklch(0.14 0.012 240 / 0.92)); }
.ms-hero-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 20px 22px 16px; }
.ms-av {
  width: 70px; height: 70px; border-radius: var(--r); flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 2rem;
  background: var(--bg-2); border: 1px solid var(--signal-br); color: var(--signal);
  box-shadow: 0 0 30px oklch(0.76 0.145 62 / 0.2);
}
.ms-vitals {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  border-top: 1px solid var(--hairline); background: oklch(0.14 0.012 240 / 0.6);
}
.vital { padding: 10px 10px; border-right: 1px solid var(--hairline); }
.vital:last-child { border-right: none; }
.vk { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.vv { font-family: var(--disp); font-weight: 600; font-size: 1.2rem; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }

.badge-medal {
  width: 46px; height: 46px; border-radius: var(--r); flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--signal-bg); border: 1px solid var(--signal-br); color: var(--signal);
}

/* bar list (mock charts) */
.barlist { display: flex; flex-direction: column; gap: 11px; }
.barrow { display: grid; grid-template-columns: 100px 1fr 42px; align-items: center; gap: 12px; }
.barrow .bl { font-size: 0.83rem; color: var(--ink-2); }
.barrow .bt { height: 8px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.barrow .bt > i { display: block; height: 100%; border-radius: 2px; }
.barrow .bv { font-family: var(--disp); font-weight: 600; font-size: 1rem; text-align: right; color: var(--ink); }

/* mini stat */
.mini { background: oklch(0.16 0.012 240 / 0.6); border: 1px solid var(--hairline); border-radius: 2px; padding: 9px 11px; text-align: center; }
.mk { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); line-height: 1.3; }
.mv { font-family: var(--disp); font-weight: 600; font-size: 1.35rem; line-height: 1; margin-top: 5px; }

/* key-value list */
.kvlist { display: flex; flex-direction: column; gap: 9px; }
.kv { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; }
.kv span { color: var(--muted); }
.kv b { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); font-weight: 600; }

/* donut (conic) */
.donut {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--hairline) 0);
  display: grid; place-items: center; position: relative;
}
.donut::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--bg-1); }
.donut span { position: relative; font-family: var(--disp); font-weight: 700; font-size: 1.3rem; color: var(--ink); }

/* achievement pills */
.achv {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 500; color: var(--ink-2);
  padding: 7px 12px; border-radius: 2px;
  border: 1px solid var(--hairline-2); background: oklch(1 0 0 / 0.03);
}

/* responsive my-stats */
@media (max-width: 900px) {
  .ms-vitals { grid-template-columns: repeat(3, 1fr); }
  .vital:nth-child(3n) { border-right: none; }
}

/* ── Server pulse / home ────────────────────────────────── */
.pulse-row {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 14px; border-bottom: 1px solid var(--hairline);
}
.pulse-row:last-child { border-bottom: none; }
.pulse-time { font-family: var(--mono); font-size: 0.68rem; color: var(--faint); }
.pulse-txt { font-size: 0.88rem; color: var(--ink-2); }
.pulse-txt b { color: var(--ink); font-weight: 600; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.pod { box-sizing: border-box; border: 1px solid var(--hairline); border-radius: var(--r); padding: 16px 14px; text-align: center; background: var(--panel); }
.pod .pav { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: var(--r); display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 1.3rem; background: var(--bg-2); border: 1px solid var(--hairline-2); }
.pod.p1 { height: 224px; padding-bottom: 24px; border-color: oklch(0.78 0.14 85 / 0.78); background: linear-gradient(180deg, oklch(0.78 0.14 85 / 0.18), var(--panel)); }
.pod.p2 { height: 204px; padding-bottom: 18px; border-color: oklch(0.82 0.02 250 / 0.72); background: linear-gradient(180deg, oklch(0.82 0.02 250 / 0.14), var(--panel)); }
.pod.p3 { height: 184px; border-color: oklch(0.68 0.11 60 / 0.72); background: linear-gradient(180deg, oklch(0.68 0.11 60 / 0.14), var(--panel)); }
.pod.p1 .pav { border-color: oklch(0.78 0.14 85 / 0.78); color: oklch(0.84 0.13 85); }
.pod.p2 .pav { border-color: oklch(0.82 0.02 250 / 0.72); color: oklch(0.82 0.02 250); }
.pod.p3 .pav { border-color: oklch(0.68 0.11 60 / 0.72); color: oklch(0.72 0.10 60); }
.home-equal-grid { align-items: stretch; }
.home-leader-panel > .flex.between.center { height: auto; gap: 8px; margin-bottom: 0 !important; }
.home-leader-panel > .flex.between.center .eyebrow { white-space: nowrap; }
.home-leader-panel > .flex.between.center .btn { flex: 0 0 auto; font-size: 0.58rem !important; padding: 4px 7px !important; }
.home-leader-panel {
  display: grid;
  grid-template-rows: 34px auto;
  row-gap: 16px;
  min-height: 310px;
}
.home-community-panel {
  min-height: 460px;
}

/* ── Flavor text card ──────────────────────────────────── */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
  align-items: stretch;
}
.home-news-main {
  grid-column: span 2;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.home-news-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.home-news-kicker span:first-child { color: var(--signal); }
.home-news-main h2 {
  margin: 0 0 12px;
  max-width: none;
  font-family: var(--disp);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.home-news-summary {
  max-width: 66ch;
  margin: 0 0 18px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}
.home-news-body {
  flex: 1;
  max-height: 340px;
  overflow: auto;
  padding-right: 8px;
  max-width: 66ch;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.72;
}
.home-news-select { min-height: 340px; }
.home-news-list { display: flex; flex-direction: column; gap: 8px; }
.home-news-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid var(--hairline);
  border-left: 2px solid transparent;
  border-radius: var(--r);
  background: oklch(0.17 0.012 240 / 0.45);
  color: inherit;
  text-decoration: none;
}
.home-news-item:hover {
  border-color: var(--hairline-2);
  color: var(--ink);
  text-decoration: none;
}
.home-news-item.on {
  border-left-color: var(--signal);
  background: linear-gradient(90deg, var(--signal-bg), oklch(0.17 0.012 240 / 0.45));
}
.home-news-item-title {
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.home-news-item-date {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── news.php: single-article view (reuses .home-news-main/kicker/summary/body) ── */
.news-article.home-news-main { min-height: 0; }
.news-article .home-news-body { max-height: none; overflow: visible; padding-right: 0; }
.news-article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--ui);
  font-size: 0.85rem;
}
.news-article-nav a { color: var(--ink-2); text-decoration: none; }
.news-article-nav a:hover { color: var(--ink); }
.news-article-nav .news-article-nav-spacer { flex: 1; }

/* ── news.php: full archive list ───────────────────────── */
.news-archive-list { display: flex; flex-direction: column; gap: 14px; }
.news-archive-item {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: oklch(0.17 0.012 240 / 0.45);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.news-archive-item:hover {
  border-color: var(--hairline-2);
  background: oklch(0.19 0.012 240 / 0.55);
  color: inherit;
  text-decoration: none;
}
.news-archive-item-date {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.news-archive-item h2 {
  margin: 0 0 10px;
  font-family: var(--disp);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.news-archive-item p {
  margin: 0;
  max-width: 74ch;
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ── News field journal redesign ───────────────────────── */
.home-news-grid { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); margin: 18px 0; }
.home-news-main {
  grid-column: auto;
  min-height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--signal-bg), transparent 45%), linear-gradient(180deg, var(--panel), var(--panel-2));
}
.home-news-kicker { margin-bottom: 22px; }
.home-news-main h2 { max-width: 18ch; margin-bottom: 14px; font-size: clamp(2.25rem, 4vw, 3.35rem); }
.home-news-summary { margin-bottom: 14px; font-size: 1.22rem; }
.home-news-excerpt { max-width: 66ch; color: var(--muted); font: 400 1.02rem/1.65 var(--serif); }
.home-news-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: auto; padding-top: 24px; }
.news-read-link { display: inline-flex; align-items: center; gap: 10px; color: var(--signal-hi); font: 700 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.news-read-link:hover { color: var(--ink); }
.home-news-mark { color: var(--ghost); font: .58rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.home-news-select { min-height: 360px; }
.home-news-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; transition: border-color .15s, background .15s, transform .15s; }
.home-news-item:hover { border-left-color: var(--signal); background: linear-gradient(90deg, var(--signal-bg), oklch(0.17 0.012 240 / .45)); transform: translateX(2px); }
.home-news-item-number { color: var(--signal); font: 1.15rem var(--disp); }
.home-news-item-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.home-news-item-arrow { color: var(--ghost); font-size: .8rem; }
.home-news-empty { padding: 24px 12px; color: var(--faint); font: italic 1rem var(--serif); text-align: center; }

.news-meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--faint); font: 700 .61rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.news-meta-line span:first-child { color: var(--signal); }
.news-article { max-width: 940px; margin: 0 auto; overflow: hidden; }
.news-article-header { padding: 38px clamp(24px, 6vw, 72px) 32px; border-bottom: 1px solid var(--hairline); background: linear-gradient(135deg, var(--signal-bg), transparent 48%); }
.news-article-header h1 { max-width: 18ch; margin: 22px 0 18px; color: var(--ink); font: 600 clamp(2.5rem, 6vw, 4.7rem)/.98 var(--disp); text-transform: uppercase; overflow-wrap: anywhere; }
.news-article-summary { max-width: 62ch; color: var(--ink-2); font: italic clamp(1.2rem, 2vw, 1.5rem)/1.5 var(--serif); }
.news-article-body { max-width: 70ch; margin: 0 auto; padding: 40px 28px 16px; color: var(--ink-2); font: 1.16rem/1.82 var(--serif); }
.news-article-body p + p { margin-top: 1.35em; }
.news-article-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 28px; padding-top: 22px; }
.news-article-nav-card { min-width: 0; padding: 12px 14px; border: 1px solid var(--hairline); color: var(--ink-2); }
.news-article-nav-card span { display: block; margin-bottom: 4px; color: var(--faint); font: 600 .56rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.news-article-nav-card strong { display: block; overflow: hidden; font-size: .8rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.news-article-nav-card.is-older { text-align: right; }
.news-article-nav-card:hover { border-color: var(--signal-br); color: var(--signal-hi); }
.news-article-nav a.news-article-nav-all { padding: 8px; color: var(--signal); font: 700 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.news-archive { display: flex; flex-direction: column; gap: 24px; }
.news-lead { min-height: 350px; display: grid; grid-template-columns: minmax(120px, .42fr) minmax(0, 1.58fr); overflow: hidden; color: inherit; background: linear-gradient(135deg, var(--signal-bg), transparent 48%), linear-gradient(180deg, var(--panel), var(--panel-2)); }
.news-lead:hover { color: inherit; border-color: var(--signal-br); }
.news-lead-index { display: flex; align-items: flex-end; padding: 24px; border-right: 1px solid var(--hairline); color: var(--signal); font: 700 .64rem var(--mono); letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.news-lead-content { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 5vw, 56px); }
.news-lead h2 { max-width: 16ch; margin: 22px 0 16px; color: var(--ink); font: 600 clamp(2.3rem, 5vw, 4rem)/1 var(--disp); text-transform: uppercase; overflow-wrap: anywhere; }
.news-lead p { max-width: 64ch; margin-bottom: 28px; color: var(--ink-2); font: italic 1.16rem/1.6 var(--serif); }
.news-lead .news-read-link { margin-top: auto; }
.news-archive-head { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.news-archive-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--signal-br), transparent); }
.news-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-archive-grid .news-archive-item { min-height: 250px; display: flex; flex-direction: column; padding: 22px 24px; transition: border-color .15s, background .15s, transform .15s; }
.news-archive-grid .news-archive-item:hover { border-color: var(--signal-br); transform: translateY(-2px); }
.news-archive-grid .news-archive-item h2 { margin: 18px 0 12px; }
.news-archive-item-footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 22px; color: var(--ghost); font: 600 .58rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.news-archive-item-footer b { color: var(--signal); }
.news-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; color: var(--muted); font: .65rem var(--mono); }

.mod-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}
.mod-muted {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.mod-alert {
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  font-size: 0.85rem;
}
.mod-alert.ok {
  border-color: oklch(0.82 0.15 145 / 0.3);
  color: var(--toxic);
  background: oklch(0.82 0.15 145 / 0.08);
}
.mod-alert.bad {
  border-color: oklch(0.63 0.2 25 / 0.32);
  color: var(--blood-hi);
  background: oklch(0.63 0.2 25 / 0.08);
}
.mod-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}
.mod-form-title {
  margin-top: 4px;
  font-family: var(--disp);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
}
.mod-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mod-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mod-form label > span {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.mod-form input,
.mod-form textarea {
  width: 100%;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r);
  background: oklch(0.15 0.012 240 / 0.72);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.mod-form textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.55;
}
.mod-form input:focus,
.mod-form textarea:focus {
  outline: none;
  border-color: var(--signal-br);
  box-shadow: 0 0 0 2px var(--signal-bg);
}
.mod-actions,
.mod-danger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}
.mod-discord-option {
  padding: 14px;
  border: 1px solid var(--signal-br);
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--signal-bg), transparent);
}
.mod-discord-option.is-disabled { border-color: var(--hairline); background: oklch(0.15 0.012 240 / .4); }
.mod-discord-option > label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 11px; cursor: pointer; }
.mod-discord-option > label input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--signal); }
.mod-discord-option > label strong { display: block; color: var(--ink); font-size: .88rem; }
.mod-discord-option > label small { display: block; margin-top: 3px; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.mod-discord-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; margin: 11px 0 0 28px; color: var(--faint); font: .58rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.mod-discord-state { padding: 3px 7px; border: 1px solid var(--hairline-2); border-radius: 2px; }
.mod-discord-state.pending, .mod-discord-state.processing { color: var(--signal); border-color: var(--signal-br); }
.mod-discord-state.sent { color: var(--toxic); border-color: oklch(0.82 0.15 145 / .3); }
.mod-discord-state.failed { color: var(--blood-hi); border-color: oklch(0.63 0.2 25 / .35); }
.mod-discord-help { margin: 10px 0 0 28px; color: var(--muted); font-size: .72rem; }
.mod-discord-help code { color: var(--ink-2); }
.mod-danger-row {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.mod-danger {
  color: var(--blood-hi);
  border-color: oklch(0.63 0.2 25 / 0.35);
  background: oklch(0.63 0.2 25 / 0.08);
}
.mod-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--hairline-2);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.mod-status.published { color: var(--toxic); border-color: oklch(0.82 0.15 145 / 0.3); }
.mod-status.archived { color: var(--blood-hi); border-color: oklch(0.63 0.2 25 / 0.3); }
.mod-news-list { display: flex; flex-direction: column; gap: 8px; }
.mod-news-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid var(--hairline);
  border-left: 2px solid transparent;
  border-radius: var(--r);
  background: oklch(0.17 0.012 240 / 0.48);
  color: inherit;
  text-decoration: none;
}
.mod-news-row:hover,
.mod-news-row.on {
  border-left-color: var(--signal);
  color: var(--ink);
  text-decoration: none;
  background: var(--signal-bg);
}
.mod-news-title {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}
.mod-news-meta,
.mod-news-excerpt,
.mod-news-discord {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.mod-news-excerpt {
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.45;
}
.mod-news-discord { color: var(--signal); }

.flavor-card { border: 1px solid var(--hairline); border-radius: var(--r); background: linear-gradient(180deg, var(--panel), oklch(0.16 0.012 240/0.6)); overflow: hidden; margin-bottom: 16px; }
.fc-head { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); padding: 9px 16px; border-bottom: 1px solid var(--hairline); background: oklch(0.16 0.012 240/0.4); }
.fc-body { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; }
.fc-div { background: var(--hairline-2); }
.fc-item { padding: 13px 16px; }
.fc-cat { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.fc-label { font-family: var(--disp); font-size: 1.1rem; text-transform: uppercase; color: var(--signal); margin-bottom: 3px; letter-spacing: 0.04em; }
.fc-quote { font-size: 0.79rem; color: var(--muted); font-style: italic; line-height: 1.45; }

/* ── Record icon SVG panel ──────────────────────────────── */
.record-icon { height: 116px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); background: linear-gradient(160deg, oklch(0.18 0.014 238), oklch(0.14 0.012 240)); }
.record-icon::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 65%, var(--ri-glow, oklch(0.76 0.145 62 / 0.2)), transparent 65%); }
.record-icon svg { position: relative; z-index: 1; }
.record-tagline { font-size: 0.78rem; color: var(--muted); font-style: italic; margin: 1px 0 8px; }

/* ── Kill-tag type variants ─────────────────────────────── */
.kill-tag.pvp { color: var(--blood-hi); border-color: oklch(0.63 0.2 25/0.35); background: oklch(0.63 0.2 25/0.1); font-weight: 700; }
.kill-tag.ani { color: var(--toxic); border-color: oklch(0.82 0.15 145/0.3); background: oklch(0.82 0.15 145/0.08); font-weight: 700; }
.kill-tag.inf { color: var(--warn); border-color: oklch(0.82 0.14 85/0.3); background: oklch(0.82 0.14 85/0.08); font-weight: 700; }

/* ── Leaderboard All Stats view ───────────────────────────── */
.view-toggle { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; border-radius: 2px; cursor: pointer; border: 1px solid var(--hairline-2); color: var(--muted); background: oklch(1 0 0/0.02); transition: all 0.15s; }
.view-toggle.on { color: var(--signal); border-color: var(--signal-br); background: var(--signal-bg); }
.asc { background: oklch(0.175 0.013 238/0.7); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.asc-head { display: grid; grid-template-columns: 28px 32px 1fr; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--hairline); background: oklch(0.16 0.012 240/0.5); }
.asc-av { width: 32px; height: 32px; border-radius: 2px; display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 0.95rem; background: var(--bg-2); border: 1px solid var(--hairline-2); }
.asc-rank { font-family: var(--disp); font-weight: 700; font-size: 1.1rem; color: var(--faint); text-align: center; }
.asc-name { font-weight: 600; font-size: 0.9rem; }
.asc-sub { font-family: var(--mono); font-size: 0.58rem; color: var(--ghost); letter-spacing: 0.06em; }
.asc-body { display: grid; grid-template-columns: 1fr 1fr; }
.asc-group { padding: 9px 12px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.asc-group:nth-child(even) { border-right: none; }
.asc-group:nth-last-child(-n+2) { border-bottom: none; }
.asc-gk { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin-bottom: 6px; }
.asc-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.76rem; margin-bottom: 3px; }
.asc-row:last-child { margin-bottom: 0; }
.asc-row span { color: var(--muted); }
.asc-row b { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); font-weight: 600; }

/* ── Achievement + HoF rows (homepage) ───────────────────── */
.ach-unlock { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.ach-unlock:last-child { border-bottom: none; }
.ach-ico { width: 30px; height: 30px; border-radius: 2px; flex-shrink: 0; display: grid; place-items: center; font-size: 1rem; background: var(--bg-2); border: 1px solid var(--hairline-2); }
.ach-info { flex: 1; min-width: 0; }
.ach-title { font-size: 0.84rem; font-weight: 600; }
.ach-sub { font-family: var(--mono); font-size: 0.6rem; color: var(--faint); letter-spacing: 0.06em; }
.ach-when { font-family: var(--mono); font-size: 0.6rem; color: var(--ghost); white-space: nowrap; flex-shrink: 0; }
.hof-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.hof-row:last-child { border-bottom: none; }
.hof-icon { font-size: 1.2rem; width: 28px; text-align: center; flex-shrink: 0; }
.hof-info { flex: 1; min-width: 0; }
.hof-k { font-family: var(--mono); font-size: 0.57rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.hof-v { font-family: var(--disp); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.hof-holder { font-size: 0.74rem; color: var(--muted); }

/* ── Player page — design system components ──────────────── */
.sub-head { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--signal-br), transparent); }

.prec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prec { padding: 14px 16px; border: 1px solid var(--hairline); border-radius: var(--r); background: oklch(0.175 0.013 238 / 0.5); }
.prec-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.prec-v { font-family: var(--disp); font-weight: 700; font-size: 1.8rem; line-height: 1; margin: 8px 0 4px; }
.prec-s { font-family: var(--mono); font-size: 0.65rem; color: var(--ghost); letter-spacing: 0.05em; }

.streak-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.streak { padding: 14px 12px; border: 1px solid var(--hairline); border-radius: var(--r); background: oklch(0.175 0.013 238 / 0.5); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.streak-icon { font-family: var(--mono); font-size: 1rem; color: var(--faint); line-height: 1; }
.streak-v { font-family: var(--disp); font-weight: 700; font-size: 2rem; line-height: 1; }
.streak-label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.streak-best { font-family: var(--mono); font-size: 0.6rem; color: var(--ghost); }

.vtable { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.vtable th { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--hairline); text-align: left; font-weight: 400; }
.vtable td { padding: 9px 10px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.vtable tr:last-child td { border-bottom: none; }
.vtable .nm { font-weight: 600; color: var(--ink); }
.vtable .badge { font-family: var(--mono); font-size: 0.62rem; padding: 2px 7px; border: 1px solid var(--hairline-2); border-radius: 2px; color: var(--muted); }

.history-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border: 1px solid var(--hairline); border-radius: var(--r); border-left: 2px solid var(--signal); background: var(--signal-bg); flex-wrap: wrap; }
.history-cta .ht { font-family: var(--disp); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.history-cta p { font-size: 0.83rem; color: var(--muted); margin: 0; }

.empty { padding: 28px 16px; text-align: center; font-size: 0.83rem; color: var(--ghost); font-style: italic; border: 1px dashed var(--hairline); border-radius: var(--r); }

/* mobile nav trigger — hidden above 900px */
/* Player profile refinements */
.ms-vitals { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ms-vitals.has-last-seen { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ms-vitals .vital { min-width: 0; padding: 9px 7px; }
.ms-vitals .vk { font-size: 0.51rem; letter-spacing: 0.1em; white-space: nowrap; }
.ms-vitals .vv {
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-chart-wrap { min-width: 0; }
.activity-plot { display: block; width: 100%; height: 132px; overflow: visible; }
.activity-grid-line { stroke: var(--hairline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.activity-play-bar { fill: var(--signal); opacity: 0.52; }
.activity-kill-line {
  fill: none;
  stroke: var(--blood-hi);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.activity-axis {
  display: flex;
  justify-content: space-between;
  margin: 3px 8px 0;
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--ghost);
}
.activity-legend { display: flex; justify-content: flex-end; gap: 16px; margin-top: 9px; }
.activity-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
}
.activity-legend i { display: inline-block; width: 15px; }
.activity-legend-bar { height: 7px; background: var(--signal); opacity: 0.52; }
.activity-legend-line { height: 2px; background: var(--blood-hi); }
.act-chart-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.act-chart-footer div { min-width: 0; }
.act-chart-footer b { display: block; font-family: var(--disp); font-size: 1.25rem; color: var(--signal); }
.act-chart-footer div:nth-child(2) b { color: var(--toxic); }
.act-chart-footer div:nth-child(3) b { color: var(--blood-hi); }
.act-chart-footer span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.death-summary { display: flex; align-items: center; gap: 16px; }
.death-legend { flex: 1; min-width: 0; }
.death-legend > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  font-size: 0.7rem;
}
.death-legend i { width: 7px; height: 7px; border-radius: 50%; }
.death-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.death-legend b { font-family: var(--mono); color: var(--ink-2); }
.death-headshot { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.death-headshot .mono { font-size: 0.6rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; }
.death-headshot .lb-bar2 { margin-top: 7px; }
.death-headshot-note { margin-top: 6px; font-size: 0.64rem; color: var(--ghost); }

.activity-type-card { height: 348px; display: flex; flex-direction: column; overflow: hidden; }
.activity-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, 78px);
  gap: 8px;
  align-content: start;
  flex: 1;
  min-height: 0;
}
.activity-type-grid .mini { min-width: 0; overflow: hidden; }
.activity-type-grid .mk { overflow: hidden; text-overflow: ellipsis; }
.activity-type-more {
  margin-top: 8px;
  text-align: center;
  font-size: 0.58rem;
  color: var(--ghost);
}

.mob-nav-btn {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--hairline-2); border-radius: var(--r);
  background: oklch(1 0 0 / 0.03); cursor: pointer; padding: 0; margin-bottom: 16px;
}
.mob-nav-btn span { display: block; width: 18px; height: 2px; background: var(--ink-2); border-radius: 1px; }
.mob-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: oklch(0 0 0 / 0.65); z-index: 999;
}
.mob-nav-overlay.open { display: block; }

@media (max-width: 900px) {
  .dev-notice {
    top: auto;
    right: auto;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 32px);
    text-align: center;
  }
  .page-hero {
    min-height: 336px;
    margin-right: -30px;
    margin-left: -30px;
  }
  .page-hero-flush { margin-right: 0; margin-left: 0; }
  .page-hero-copy { top: 82px; }
  .page-hero-actions { left: 30px; max-width: none; justify-content: flex-start; }
  .page-hero-badges { bottom: 137px; }
  .page-hero-vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-hero-vital:nth-child(3n) { border-right: 0; }
  .page-hero-vital:nth-child(n+4) { border-top: 1px solid var(--hairline); }
  .page-hero-no-vitals { min-height: 270px; }
  .page-hero-vitals-7 { min-height: 400px; }
  .page-hero-vitals-7 .page-hero-badges { bottom: 201px; }
  .ms-vitals,
  .ms-vitals.has-last-seen { grid-template-columns: repeat(3, 1fr); }
  .activity-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, 57px); }
  .app { grid-template-columns: 1fr; min-width: 0; }
  .app-main { min-width: 0; }
  .app-side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000;
    width: 210px; transform: translateX(-100%);
    overflow-y: auto; transition: transform 0.25s ease;
  }
  .app-side.open { transform: translateX(0); box-shadow: 6px 0 40px #000; }
  .mob-nav-btn { display: flex; }
  .g4, .g5, .g3 { grid-template-columns: repeat(2, 1fr); }
  .home-news-grid,
  .mod-layout { grid-template-columns: 1fr; }
  .home-news-main { grid-column: auto; }
  .diag, .swatches { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .lb-row { grid-template-columns: 40px 1fr auto; }
  .lb-secondary { display: none; }
  .road-row { grid-template-columns: 1fr; gap: 6px; }
  .band { padding: 60px 20px; }
}
@media (max-width: 560px) {
  .page-hero {
    min-height: 402px;
    margin: -18px -16px 22px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .page-hero-vitals { right: 16px; left: 16px; }
  .page-hero-flush { margin: 0; }
  .page-hero-copy {
    top: 118px;
    right: 16px;
    left: 16px;
  }
  .page-hero-actions {
    top: 18px;
    right: 16px;
    left: 16px;
    justify-content: flex-start;
    max-height: 82px;
    overflow: hidden;
  }
  .page-hero-badges { right: 16px; bottom: 202px; left: 16px; justify-content: flex-start; }
  .page-hero-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero-vital:nth-child(3n) { border-right: 1px solid var(--hairline); }
  .page-hero-vital:nth-child(2n) { border-right: 0; }
  .page-hero-vital:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .page-hero-no-vitals { min-height: 270px; }
  .page-hero-no-vitals .page-hero-copy { top: 94px; }
  .page-hero-vitals-7 { min-height: 470px; }
  .page-hero-vitals-7 .page-hero-badges { bottom: 266px; }
  .ms-vitals,
  .ms-vitals.has-last-seen { grid-template-columns: repeat(2, 1fr); }
  .activity-type-card { height: 560px; }
  .activity-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, 75px); }
  .death-summary { align-items: flex-start; }
  .g2, .g4, .g5, .g3 { grid-template-columns: 1fr; }
  .home-news-main h2 { max-width: none; font-size: 1.65rem; }
  .home-news-kicker,
  .mod-hero,
  .mod-actions,
  .mod-danger-row { align-items: flex-start; flex-direction: column; }
  .home-news-body { max-height: none; }
  .kill { grid-template-columns: 1fr; gap: 10px; }
  .kill-meta { justify-content: flex-start; }
}

/* ── DayZOps Admin ──────────────────────────────────────── */
.adm-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 28px; border-bottom: 1px solid var(--hairline);
  background: var(--bg-1); position: sticky; top: 0; z-index: 40;
}
.adm-title { font-family: var(--disp); font-weight: 700; font-size: 1.55rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.adm-title span { color: var(--signal); }
.adm-sub { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ghost); margin-top: 2px; }
.adm-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.adm-tabs {
  display: flex; gap: 0; flex-wrap: nowrap; overflow-x: auto;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-1); padding: 0 24px;
  position: sticky; top: 57px; z-index: 30;
  scrollbar-width: none;
}
.dayzops-tabs { top: 0; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 13px; color: var(--faint);
  border: none; background: none; appearance: none; outline: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: color 0.15s; text-decoration: none; cursor: pointer;
}
.adm-tab:hover { color: var(--ink-2); text-decoration: none; }
.adm-tab.on { color: var(--signal); border-bottom-color: var(--signal); }
.adm-tab .ticon { font-size: 0.7rem; }
.adm-tab .tbadge { font-size: 0.56rem; padding: 1px 5px; border-radius: 10px; background: var(--blood); color: #fff; margin-left: 2px; }

.dayzops-shell {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  align-items: start;
}
.dayzops-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--hairline);
  background: var(--bg-1);
}
.dayzops-sidebar .dayzops-tabs {
  position: static;
  top: auto;
  z-index: auto;
  flex-direction: column;
  gap: 2px;
  overflow: visible;
  border-bottom: none;
  background: transparent;
  padding: 10px;
}
.dayzops-sidebar .adm-tab {
  width: 100%;
  margin: 0;
  padding: 10px 11px;
  border-bottom: none;
  border-left: 2px solid transparent;
  border-radius: 4px;
  line-height: 1.15;
  white-space: normal;
}
.dayzops-sidebar .adm-tab:hover { background: oklch(1 0 0/0.04); }
.dayzops-sidebar .adm-tab.on {
  border-left-color: var(--signal);
  border-bottom-color: transparent;
  background: var(--signal-bg);
}
.dayzops-sidebar .adm-tab .ticon {
  flex: 0 0 16px;
  width: 16px;
  text-align: center;
}
.dayzops-main { min-width: 0; }

.adm-panel { padding: 22px 28px 48px; }

.adm-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.adm-table th {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ghost);
  padding: 9px 12px; border-bottom: 1px solid var(--hairline);
  text-align: left; font-weight: 400; background: oklch(0.16 0.012 240/0.5);
}
.adm-table td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); vertical-align: middle; }
.adm-table tbody tr:hover { background: oklch(1 0 0/0.02); }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table .nm { font-weight: 600; color: var(--ink); }
.adm-table .nm-signal { font-weight: 600; color: var(--signal); }
.adm-table .nm-blood { font-weight: 600; color: var(--blood-hi); }
.adm-table .id-col { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.adm-table-wrap { border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }

.st { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.st-ok    { color: var(--toxic);    background: oklch(0.82 0.15 145/0.12); border: 1px solid oklch(0.82 0.15 145/0.25); }
.st-warn  { color: var(--warn);     background: oklch(0.82 0.14 85/0.12);  border: 1px solid oklch(0.82 0.14 85/0.25); }
.st-err   { color: var(--blood-hi); background: oklch(0.63 0.2 25/0.12);   border: 1px solid oklch(0.63 0.2 25/0.25); }
.st-sig   { color: var(--signal);   background: var(--signal-bg);           border: 1px solid var(--signal-br); }
.st-muted { color: var(--muted);    background: oklch(1 0 0/0.03);          border: 1px solid var(--hairline-2); }

.adm-input {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
  background: oklch(0.165 0.012 240/0.8); border: 1px solid var(--hairline);
  border-radius: 2px; padding: 9px 13px; outline: none; width: 100%;
  box-sizing: border-box;
}
.adm-input:focus { border-color: var(--signal-br); }
.adm-input::placeholder { color: var(--ghost); }
.adm-textarea { resize: vertical; min-height: 80px; }
.adm-select {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
  background: oklch(0.165 0.012 240/0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--hairline); border-radius: 2px; padding: 9px 28px 9px 12px;
  appearance: none; -webkit-appearance: none; outline: none; width: 100%;
  box-sizing: border-box;
}
.adm-select:focus { border-color: var(--signal-br); }
.adm-select option { background: oklch(0.175 0.013 238); }
.form-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 7px; }
.form-row { margin-bottom: 16px; }
.form-hint { font-size: 0.76rem; color: var(--ghost); margin-top: 5px; }

.support-create-panel { margin-bottom: 16px; }
.support-create-form { display: grid; gap: 14px; }
.support-form-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(150px, 1fr)); gap: 12px; }
.support-form-wide { min-width: 0; }
.support-form-full { grid-column: 1 / -1; }
.support-form-message,
.support-page-message { min-height: 1rem; font-family: var(--mono); font-size: 0.68rem; }
.support-list-heading { gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.support-filter-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.support-filter-form .adm-select { width: auto; min-width: 150px; }
.support-table-wrap { overflow-x: auto; }
.support-table { min-width: 880px; }
.support-summary-row { cursor: pointer; }
.support-summary-row:focus { outline: 1px solid var(--signal-br); outline-offset: -1px; }
.support-summary-row[aria-expanded="true"] { background: var(--signal-bg); }
.support-row-meta { margin-top: 3px; color: var(--ghost); font-family: var(--mono); font-size: 0.64rem; }
.support-detail-row[hidden] { display: none; }
.support-detail-row > td { padding: 0; background: oklch(0.145 0.011 240/0.72); }
.support-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 22px; padding: 20px; }
.support-description { color: var(--ink-2); font-size: 0.84rem; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; }
.support-identifiers { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: var(--ghost); font-family: var(--mono); font-size: 0.65rem; }
.support-identifiers a { color: var(--signal); }
.support-timeline-label { margin-top: 22px; }
.support-timeline { display: grid; gap: 8px; }
.support-timeline-entry { padding: 10px 12px; border-left: 2px solid var(--hairline-2); background: oklch(1 0 0/0.025); color: var(--muted); font-size: 0.78rem; }
.support-timeline-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 5px; color: var(--ghost); font-family: var(--mono); font-size: 0.62rem; }
.support-timeline-empty { color: var(--ghost); font-size: 0.76rem; }
.support-actions { display: grid; align-content: start; gap: 14px; }
.support-actions form { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--hairline); border-radius: var(--r); background: oklch(1 0 0/0.02); }
.support-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 900px) {
  .support-form-grid,
  .support-detail-grid { grid-template-columns: 1fr; }
  .support-form-full { grid-column: auto; }
}

.tog-row {
  display: grid; grid-template-columns: 80px 1fr 80px 160px 1fr 100px;
  align-items: center; gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
}
.tog-row:last-child { border-bottom: none; }
.tog-cat { font-family: var(--mono); font-weight: 700; font-size: 0.78rem; color: var(--ink); }
.tog-label { font-size: 0.83rem; color: var(--muted); }
.tog-date { font-family: var(--mono); font-size: 0.64rem; color: var(--ghost); }
.tog-by { font-family: var(--mono); font-size: 0.64rem; color: var(--ghost); }

.console-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.con-player {
  display: grid; grid-template-columns: 36px 1fr auto auto auto;
  align-items: center; gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid var(--hairline); transition: background 0.1s; cursor: pointer;
}
.con-player:last-child { border-bottom: none; }
.con-player:hover { background: oklch(1 0 0/0.025); }
.con-av { width: 32px; height: 32px; border-radius: 2px; display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 0.9rem; background: var(--bg-2); border: 1px solid var(--hairline-2); color: var(--ink-2); flex-shrink: 0; }
.con-av.online { border-color: var(--signal-br); color: var(--signal); }
.con-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.con-ip { font-family: var(--mono); font-size: 0.62rem; color: var(--ghost); }
.con-country { color: var(--muted); white-space: nowrap; }
.con-flag { display: inline-block; margin-right: 4px; font-family: system-ui, sans-serif; font-size: 0.74rem; line-height: 1; vertical-align: -0.05em; }
.con-stat { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); text-align: right; }
.con-stat b { display: block; color: var(--ink-2); font-weight: 600; }

.log-stream { height: 380px; overflow-y: auto; background: oklch(0.14 0.012 240/0.6); border: 1px solid var(--hairline); border-radius: var(--r); }
.log-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 5px 12px; border-bottom: 1px solid oklch(0.85 0.02 230/0.05); font-family: var(--mono); font-size: 0.7rem; align-items: baseline; }
.log-row:last-child { border-bottom: none; }
.log-time { color: var(--ghost); }
.log-msg { color: var(--ink-2); line-height: 1.4; }
.log-msg b { color: var(--signal); font-weight: 600; }
.log-msg .lkick { color: var(--toxic); }
.log-msg .lleave { color: var(--muted); }
.log-msg .lrcon { font-size: 0.6rem; color: var(--ghost); padding: 1px 5px; border: 1px solid var(--hairline); border-radius: 2px; }

.warn-banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--r); margin-bottom: 18px;
  border: 1px solid oklch(0.82 0.14 85/0.35);
  background: oklch(0.82 0.14 85/0.08);
}
.warn-banner .wi { color: var(--warn); font-size: 0.85rem; flex-shrink: 0; padding-top: 1px; }
.warn-banner p { font-size: 0.85rem; color: var(--ink-2); line-height: 1.5; margin: 0; }

.adm-sh {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--signal); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.adm-sh::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--signal-br), transparent); }

.day-grid { display: flex; gap: 6px; flex-wrap: wrap; }
.day-cb { display: none; }
.day-lbl {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 7px 10px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--hairline-2); color: var(--faint); transition: all 0.12s;
}
.day-cb:checked + .day-lbl { color: var(--signal); border-color: var(--signal-br); background: var(--signal-bg); }

.chg-clean-ban { color: var(--blood-hi); font-weight: 700; font-size: 0.76rem; }
.chg-ban-clean { color: var(--toxic);    font-weight: 700; font-size: 0.76rem; }

.health-chart-wrap {
  background: oklch(0.165 0.012 240/0.6); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 16px 18px;
}

.qa-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--hairline-2); border-radius: 2px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); background: oklch(1 0 0/0.02); margin-bottom: 7px;
  transition: all 0.12s; text-decoration: none;
}
.qa-btn:last-child { margin-bottom: 0; }
.qa-btn:hover { color: var(--signal); border-color: var(--signal-br); background: var(--signal-bg); text-decoration: none; }
.qa-btn .qi { color: var(--faint); }

/* ══════════════════════════════════════════════════════════════
   MAPX — immersive full-bleed player map (map.php)
   ══════════════════════════════════════════════════════════════ */
.mapx-deck { margin: 0 0 32px; }

/* Scope bar above the map */
.mapx-scopebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.mapx-scopebar .mapx-scope-group { display: flex; flex-wrap: wrap; gap: 6px; }
.mapx-scope-chip {
  padding: 6px 13px; border: 1px solid var(--hairline-2); border-radius: 2px;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: oklch(1 0 0/0.02); cursor: pointer;
  transition: all 0.12s;
}
.mapx-scope-chip:hover { color: var(--ink); border-color: var(--hairline); }
.mapx-scope-chip.on { color: var(--signal); border-color: var(--signal-br); background: var(--signal-bg); }
.mapx-scope-select {
  padding: 6px 10px; border: 1px solid var(--hairline-2); border-radius: 2px;
  font-family: var(--mono); font-size: 0.66rem; color: var(--ink);
  background: oklch(0.13 0.01 240); max-width: 210px;
}
.mapx-scopebar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mapx-scope-warn {
  font-family: var(--mono); font-size: 0.64rem; color: #fbbf24;
  padding: 5px 11px; margin-bottom: 8px;
  border-left: 2px solid rgba(251,191,36,0.4); line-height: 1.55;
}

/* Map stage */
.mapx-stage {
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: 4px;
  background: #020617;
}
.mapx-map { height: clamp(540px, 76vh, 900px); min-height: 420px; background: #020617; }
.mapx-stage:fullscreen { border: 0; border-radius: 0; }
.mapx-stage:fullscreen .mapx-map { height: 100vh; }
.mapx-map .leaflet-container { background: #020617; font-family: inherit; }

/* Floating panel — layers + filters */
.mapx-panel {
  position: absolute; z-index: 540; top: 12px; left: 12px;
  width: 238px; max-height: calc(100% - 24px); overflow-y: auto;
  background: oklch(0.12 0.012 240 / 0.93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline); border-radius: 4px;
  padding: 12px 12px 10px;
  scrollbar-width: thin;
}
.mapx-ph {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal);
  margin: 0 0 7px;
}
.mapx-ph:not(:first-child) { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--hairline); }

.mapx-layer {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 5px 7px; border: 0; border-radius: 3px; background: transparent;
  font-size: 0.74rem; color: var(--ink-2); cursor: pointer; text-align: left;
  transition: background 0.1s;
}
.mapx-layer:hover { background: oklch(1 0 0/0.05); }
.mapx-layer input { accent-color: var(--signal); margin: 0; }
.mapx-layer .mapx-layer-tag { margin-left: auto; font-family: var(--mono); font-size: 0.6rem; color: var(--ghost); }

.mapx-chip {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 4px 7px; border: 0; border-radius: 3px; background: transparent;
  font-size: 0.72rem; color: var(--ink-2); cursor: pointer; text-align: left;
  transition: all 0.1s;
}
.mapx-chip:hover { background: oklch(1 0 0/0.05); }
.mapx-chip .mapx-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }
.mapx-chip .mapx-cnt { margin-left: auto; font-family: var(--mono); font-size: 0.6rem; color: var(--ghost); }
.mapx-chip.off { opacity: 0.38; }
.mapx-chip.off .mapx-dot { box-shadow: none; background: transparent !important; border: 1.5px solid currentColor; }
.mapx-allrow { display: flex; gap: 6px; margin-top: 9px; }
.mapx-allrow .mapx-abtn { flex: 1; justify-content: center; }
.mapx-hint { font-size: 0.6rem; color: var(--ghost); margin-top: 9px; line-height: 1.45; font-style: italic; }

/* Floating action buttons — top right */
.mapx-actions {
  position: absolute; z-index: 540; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.mapx-actions-row { display: flex; gap: 6px; }
.mapx-abtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border: 1px solid var(--hairline); border-radius: 3px;
  background: oklch(0.12 0.012 240 / 0.93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer; text-decoration: none;
  transition: all 0.12s; white-space: nowrap;
}
.mapx-abtn:hover { color: var(--signal); border-color: var(--signal-br); text-decoration: none; }
.mapx-abtn.on { color: var(--signal); border-color: var(--signal-br); background: var(--signal-bg); }
.mapx-limit {
  padding: 7px 8px; border: 1px solid var(--hairline); border-radius: 3px;
  background: oklch(0.12 0.012 240 / 0.93); color: var(--ink-2);
  font-family: var(--mono); font-size: 0.62rem;
}

/* Coordinate HUD — bottom right (above leaflet zoom) */
.mapx-hud {
  position: absolute; z-index: 540; right: 12px; bottom: 86px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 11px; border: 1px solid var(--hairline); border-radius: 3px;
  background: oklch(0.12 0.012 240 / 0.93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink);
}
.mapx-hud .mapx-hud-copy {
  border: 0; background: transparent; color: var(--signal);
  font-family: var(--mono); font-size: 0.62rem; cursor: pointer; padding: 0;
}
.mapx-hud .mapx-hud-copy:hover { text-decoration: underline; }

/* Status line — bottom left */
.mapx-status {
  position: absolute; z-index: 540; left: 12px; bottom: 12px;
  max-width: min(64%, 560px);
  padding: 6px 11px; border: 1px solid var(--hairline); border-radius: 3px;
  background: oklch(0.12 0.012 240 / 0.93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 0.62rem; color: var(--muted); line-height: 1.5;
}
.mapx-status b { color: var(--ink); font-weight: 600; }
.mapx-status .is-live { color: var(--toxic); }
.mapx-status .is-path { color: #5eead4; }

/* Empty state */
.mapx-empty {
  position: absolute; z-index: 530; inset: 0;
  display: grid; place-items: center; pointer-events: none;
}
.mapx-empty-card {
  text-align: center; padding: 26px 34px;
  background: oklch(0.12 0.012 240 / 0.9); border: 1px solid var(--hairline);
  border-radius: 4px; backdrop-filter: blur(8px);
}
.mapx-empty-card .mapx-empty-icon { font-size: 2rem; margin-bottom: 8px; }
.mapx-empty-card .mapx-empty-title { font-family: var(--disp); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
.mapx-empty-card .mapx-empty-sub { font-size: 0.74rem; color: var(--muted); margin-top: 4px; }

/* Panel toggle for mobile */
.mapx-panel-toggle {
  display: none; position: absolute; z-index: 545; top: 12px; left: 12px;
}

/* Path loading overlay (reuses old spinner idea) */
.mapx-loading {
  position: absolute; z-index: 550; inset: 0;
  display: grid; place-items: center;
  background: oklch(0.05 0.01 240 / 0.45); pointer-events: none;
}
.mapx-loading-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; border: 1px solid var(--hairline); border-radius: 4px;
  background: oklch(0.12 0.012 240 / 0.95);
  font-size: 0.76rem; color: var(--ink);
}
.mapx-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid oklch(1 0 0/0.15); border-top-color: var(--signal);
  animation: mapx-spin 0.8s linear infinite;
}
@keyframes mapx-spin { to { transform: rotate(360deg); } }

/* Leaflet popup theming inside mapx */
.mapx-stage .leaflet-popup-content-wrapper {
  background: oklch(0.13 0.015 240); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 4px;
  box-shadow: 0 8px 24px oklch(0/0.5);
}
.mapx-stage .leaflet-popup-content { margin: 10px 14px; font-size: 0.74rem; line-height: 1.5; }
.mapx-stage .leaflet-popup-content strong { display: block; font-family: var(--disp); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; margin-bottom: 2px; }
.mapx-stage .leaflet-popup-content span { color: var(--muted); font-size: 0.68rem; }
.mapx-stage .leaflet-popup-tip { background: oklch(0.13 0.015 240); border: 1px solid var(--hairline); }
.mapx-stage .leaflet-control-zoom a {
  background: oklch(0.12 0.012 240 / 0.93); color: var(--ink);
  border-color: var(--hairline);
}
.mapx-stage .leaflet-control-zoom a:hover { color: var(--signal); }

@media (max-width: 768px) {
  .mapx-map { height: 70vh; min-height: 380px; }
  .mapx-panel { display: none; top: 56px; width: min(266px, calc(100% - 24px)); max-height: calc(100% - 70px); }
  .mapx-panel.open { display: block; }
  .mapx-panel-toggle { display: inline-flex; }
  .mapx-actions { flex-direction: column; }
  .mapx-status { max-width: calc(100% - 24px); bottom: 12px; }
  .mapx-hud { bottom: 130px; }
  .mapx-scopebar-right { margin-left: 0; width: 100%; }
}

.payload { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty-row td { text-align: center; color: var(--ghost); font-style: italic; font-size: 0.83rem; padding: 28px; }

.srv-target { display: inline-flex; border: 1px solid var(--hairline-2); border-radius: 2px; overflow: hidden; }
.srv-t-btn { font-family: var(--mono); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; background: transparent; border: none; color: var(--faint); cursor: pointer; transition: all 0.12s; text-decoration: none; display: inline-flex; align-items: center; }
.srv-t-btn.on { color: var(--signal); background: var(--signal-bg); }
.srv-t-btn + .srv-t-btn { border-left: 1px solid var(--hairline-2); }

.act-row { display: flex; gap: 5px; flex-wrap: nowrap; }
.act-btn { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; border: 1px solid var(--hairline-2); color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; transition: all 0.12s; text-decoration: none; }
.act-btn:hover { color: var(--ink-2); background: oklch(1 0 0/0.06); text-decoration: none; }
.act-btn.ban { color: var(--blood-hi); border-color: oklch(0.63 0.2 25/0.3); }
.act-btn.ban:hover { background: oklch(0.63 0.2 25/0.1); }
.act-btn.profile { color: var(--signal); border-color: var(--signal-br); }
.act-btn.profile:hover { background: var(--signal-bg); }

@media (max-width: 960px) {
  .console-wrap { grid-template-columns: 1fr; }
  .tog-row { grid-template-columns: 60px 1fr 70px auto; }
  .tog-date, .tog-by { display: none; }
  .adm-panel { padding: 16px; }
  .adm-bar { padding: 12px 16px; }
  .adm-tabs { padding: 0 16px; }
  .dayzops-shell { display: block; }
  .dayzops-sidebar {
    min-height: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .dayzops-sidebar .dayzops-tabs {
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    padding: 0 16px;
  }
  .dayzops-sidebar .adm-tab {
    width: auto;
    padding: 11px 13px;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    white-space: nowrap;
  }
  .dayzops-sidebar .adm-tab.on {
    border-bottom-color: var(--signal);
    background: transparent;
  }
}

/* ── Leaderboard table ──────────────────────────────── */
.lbt-scroll-shell { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.lbt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hairline); border-radius: var(--r); scrollbar-color: var(--signal) var(--bg-2); scrollbar-width: thin; }
.lbt-scroll-affordance {
  position: absolute; z-index: 3; top: 8px; right: auto; bottom: auto; left: 0; width: 92px; min-height: 32px;
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 9px;
  pointer-events: none; color: var(--signal); background: oklch(0.10 0.010 240 / .94);
  border: 1px solid var(--signal-br); border-radius: 4px; box-shadow: 0 8px 24px oklch(0 0 0 / .38);
  opacity: 1; transition: opacity .18s ease, visibility .18s ease;
}
.lbt-scroll-affordance span { font-family: var(--mono); font-size: .57rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.lbt-scroll-affordance b { font-size: 1rem; line-height: 1; font-weight: 500; }
.lbt-scroll-shell.at-end .lbt-scroll-affordance,
.lbt-scroll-shell:not(.has-overflow) .lbt-scroll-affordance,
.lbt-scroll-shell:not(.in-view) .lbt-scroll-affordance { visibility: hidden; opacity: 0; }
.lbt {
  display: grid;
  grid-template-columns: 44px minmax(160px,2fr) 110px 85px 80px 100px 100px 90px 95px 95px 80px 72px 95px 95px;
  min-width: 1100px;
}
.lbt-head { display: contents; }
.lbt-h {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
  padding: 10px 8px 9px; border-bottom: 1px solid var(--hairline);
  background: oklch(0.14 0.01 240/0.5); text-decoration: none;
  line-height: 1.35; display: flex; align-items: center; white-space: normal; word-break: break-word;
}
.lbt-h:hover { color: var(--ink-2); }
.lbt-hi { color: var(--signal) !important; border-bottom-color: var(--signal) !important; }
.lbt-row { display: contents; }
.lbt-row > div { padding: 9px 8px; border-bottom: 1px solid oklch(0.18 0.01 240/0.5); display: flex; align-items: center; font-size: 0.85rem; }
.lbt-row.r1 > div { background: oklch(0.18 0.02 240/0.25); }
.lbt-row.r2 > div { background: oklch(0.16 0.01 240/0.15); }
.lbt-row.r3 > div { background: oklch(0.15 0.01 240/0.10); }
.lbt-row:hover > div { background: oklch(0.20 0.01 240/0.35); }
.lbt-cell-rank { font-family: var(--disp); font-weight: 700; font-size: 1.1rem; color: var(--faint); justify-content: center; }
.lbt-row.r1 .lbt-cell-rank { color: var(--signal); }
.lbt-row.r2 .lbt-cell-rank { color: var(--steel); }
.lbt-row.r3 .lbt-cell-rank { color: var(--blood-hi); }
.lbt-cell-name { gap: 10px; min-width: 0; overflow: hidden; }
.lbt-av-xs { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hairline-2); display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 700; font-size: 0.82rem; color: var(--faint); flex-shrink: 0; }
.lbt-pname { font-weight: 600; font-size: 0.9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbt-pname a { color: inherit; text-decoration: none; }
.lbt-pname a:hover { color: var(--signal); }
.lbt-move { font-family: var(--mono); font-size: 0.62rem; white-space: nowrap; color: var(--faint); }
.lbt-move .up { color: var(--toxic); }
.lbt-move .dn { color: var(--blood-hi); }
.lbt-cell { font-variant-numeric: tabular-nums; }
.lbt-cell.lbt-hi { color: var(--signal); font-weight: 600; }
.nil { color: var(--ghost); }

@media (min-width: 900px) {
  .lbt { grid-template-columns: 38px minmax(120px, 1.7fr) repeat(12, minmax(0, 1fr)); min-width: 0; width: 100%; }
  .lbt-h { padding: 8px 4px; font-size: .52rem; letter-spacing: .04em; }
  .lbt-row > div { min-width: 0; padding: 8px 4px; font-size: .74rem; }
  .lbt-cell-name { gap: 6px; }
  .lbt-av-xs { width: 26px; height: 26px; font-size: .7rem; }
  .lbt-pname { font-size: .78rem; }
}

/* ── "How it works?" tooltip ────────────────────────── */
.lb-howto-btn {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); background: transparent;
  border: 1px solid var(--hairline-2); border-radius: 3px; padding: 4px 10px;
  cursor: pointer; position: relative; transition: color 0.12s, border-color 0.12s;
}
.lb-howto-btn:hover { color: var(--ink-2); border-color: var(--hairline); }
.lb-howto-tip {
  display: none; position: absolute; z-index: 120; top: calc(100% + 8px); left: 0;
  width: 320px; background: oklch(0.13 0.015 240); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 16px 18px; box-shadow: 0 8px 24px oklch(0/0.5);
}
.lb-howto-btn.open .lb-howto-tip { display: block; }
.lb-howto-tip h4 { font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin: 0 0 10px; }
.lb-howto-tip .hrow { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid oklch(0.18 0.01 240/0.5); font-size: 0.8rem; color: var(--ink-2); }
.lb-howto-tip .hrow:last-child { border-bottom: none; }
.lb-howto-tip .hval { font-family: var(--mono); font-size: 0.72rem; color: var(--signal); white-space: nowrap; }
.lb-howto-tip .hnote { font-size: 0.72rem; color: var(--ghost); margin-top: 10px; line-height: 1.5; font-style: italic; }

/* ============================================================
   FIELD TRAINING — interactive site tutorial (tour.js)
   ============================================================ */

/* click shield under everything tour-related */
.tour-shield {
  position: fixed; inset: 0; z-index: 2000; background: transparent;
}

/* spotlight: transparent cutout, page dimmed via giant box-shadow */
.tour-spot {
  position: fixed; z-index: 2001; pointer-events: none;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 200vmax oklch(0 0 0 / 0.74);
  transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
}
.tour-spot.no-anim { transition: none; }
.tour-spot::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit;
  border: 1px solid var(--signal);
  box-shadow: 0 0 14px var(--signal-lo), inset 0 0 10px oklch(0.72 0.16 45 / 0.25);
  animation: tour-pulse 1.8s ease-in-out infinite;
}
@keyframes tour-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* text bubble */
.tour-bubble {
  position: fixed; z-index: 2002; width: 340px; max-width: calc(100vw - 24px);
  background: oklch(0.13 0.015 240); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 16px 18px 14px;
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.5);
  animation: fade 0.25s ease;
  transition: top 0.35s ease, left 0.35s ease;
}
.tour-bubble.busy { opacity: 0.35; pointer-events: none; }
.tour-bubble.dock {
  top: auto !important; left: 12px !important; right: 12px; bottom: 12px;
  width: auto;
}
.tour-kicker {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal);
  margin-bottom: 8px; padding-right: 20px;
}
.tour-count { color: var(--faint); letter-spacing: 0.08em; }
.tour-title {
  font-family: var(--disp); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink); margin: 0 0 6px;
}
.tour-text { font-size: 0.82rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; }
.tour-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-dots { display: flex; gap: 5px; align-items: center; }
.tour-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--hairline-2); display: block;
  transition: background 0.2s;
}
.tour-dots i.past { background: var(--signal-lo); }
.tour-dots i.on { background: var(--signal); box-shadow: 0 0 6px var(--signal-lo); }
.tour-btns { display: flex; gap: 8px; }
.tour-btns .btn { font-size: 0.65rem; padding: 5px 12px; }
.tour-x {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  background: transparent; border: none; color: var(--faint); cursor: pointer;
  font-size: 0.75rem; line-height: 1; border-radius: var(--r);
  transition: color 0.12s;
}
.tour-x:hover { color: var(--ink); }

/* welcome card (home, first visit) */
.tour-welcome-dim {
  position: fixed; inset: 0; z-index: 2001; background: oklch(0 0 0 / 0.65);
  animation: fade 0.25s ease;
}
.tour-welcome {
  position: fixed; z-index: 2002; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 400px; max-width: calc(100vw - 32px);
  background: oklch(0.13 0.015 240); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 24px 26px 18px;
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.7);
  animation: fade 0.3s ease; text-align: center;
}
.tour-welcome .tour-kicker { justify-content: center; padding-right: 0; }
.tour-welcome h3 {
  font-family: var(--disp); font-size: 1.3rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink); margin: 0 0 8px;
}
.tour-welcome p { font-size: 0.84rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px; }
.tour-welcome-btns { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.tour-welcome-btns .btn { font-size: 0.7rem; padding: 7px 16px; }
.tour-w-never {
  background: transparent; border: none; color: var(--ghost); cursor: pointer;
  font-size: 0.68rem; text-decoration: underline; text-underline-offset: 3px;
}
.tour-w-never:hover { color: var(--muted); }

/* per-page offer toast */
.tour-toast {
  position: fixed; z-index: 2002; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  background: oklch(0.13 0.015 240); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 10px 34px 10px 14px;
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.5);
  animation: fade 0.3s ease; max-width: calc(100vw - 32px);
}
.tour-toast.bye { opacity: 0; transition: opacity 0.4s ease; }
.tour-toast-ic { color: var(--signal); font-size: 1rem; }
.tour-toast-msg { font-size: 0.78rem; color: var(--ink-2); }
.tour-toast .btn { font-size: 0.62rem; padding: 5px 10px; white-space: nowrap; }
.tour-toast .tour-x { top: 50%; transform: translateY(-50%); }

/* fixed TOUR button (replaces the old dev-notice pill, same spot) */
.tour-fab {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 950;
  padding: 7px 14px;
  border: 1px solid oklch(0.76 0.145 62 / 0.34);
  border-radius: 999px;
  background: oklch(0.14 0.014 238 / 0.72);
  color: var(--signal-hi);
  box-shadow: 0 10px 28px oklch(0 0 0 / 0.26);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.tour-fab:hover {
  border-color: var(--signal);
  color: var(--signal);
  box-shadow: 0 10px 28px oklch(0 0 0 / 0.26), 0 0 12px var(--signal-lo);
}

@media (max-width: 900px) {
  .tour-fab {
    top: auto;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 560px) {
  .tour-welcome { padding: 20px 18px 14px; }
  .tour-toast { left: 12px; right: 12px; bottom: 56px; flex-wrap: wrap; }
  .tour-bubble.dock { bottom: 56px; }
}

@media (max-width: 900px) {
  .home-news-grid, .news-archive-grid { grid-template-columns: 1fr; }
  .home-news-main h2 { max-width: none; }
  .news-lead { grid-template-columns: 68px minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .home-news-main, .home-news-select { min-height: 0; }
  .home-news-footer, .news-pagination { align-items: flex-start; flex-direction: column; }
  .home-news-mark { display: none; }
  .home-news-main h2 { font-size: 2.1rem; }
  .news-lead { min-height: 0; grid-template-columns: 1fr; }
  .news-lead-index { display: block; padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--hairline); writing-mode: initial; transform: none; }
  .news-lead h2 { font-size: 2.25rem; }
  .news-article-header { padding: 28px 22px; }
  .news-article-header h1 { font-size: 2.45rem; }
  .news-article-body { padding: 30px 22px 10px; font-size: 1.08rem; }
  .news-article-nav { grid-template-columns: 1fr; margin: 22px; }
  .news-article-nav-all { grid-row: 1; text-align: center; }
  .news-article-nav-card.is-older { text-align: left; }
  .news-article-nav-spacer { display: none; }
  .mod-discord-meta, .mod-discord-help { margin-left: 0; }
}

/* ============================================================
   STORE — collection + product page redesign (Slice 6)
   ============================================================ */

.store-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.store-toolbar-count { font-size: 0.78rem; color: var(--muted); }
.store-toolbar-sort { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.store-toolbar-sort select {
  background: var(--bg-1); border: 1px solid var(--hairline-2); color: var(--ink-2);
  border-radius: 8px; padding: 7px 10px; font-size: 0.78rem;
}

.store-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px 20px;
}

.store-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: 14px 14px 18px; transition: border-color .18s ease, transform .18s ease;
}
.store-card:hover { border-color: var(--signal-br); transform: translateY(-2px); }

.store-card-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 8px; background: var(--bg-1); margin-bottom: 14px;
}
.store-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.store-card:hover .store-card-media img { transform: scale(1.045); }
.store-card-media-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; opacity: .35;
}
.store-card-tag {
  position: absolute; top: 10px; left: 10px;
}

.store-card-kind { margin-bottom: 6px; }
.store-card-title { margin: 0 0 6px; }
.store-card-sub { margin: 0 0 10px; }
.store-card-price { font-family: var(--disp); font-weight: 600; color: var(--signal-hi); font-size: 1.02rem; }
.store-card-price .was { color: var(--faint); text-decoration: line-through; font-weight: 400; margin-right: 6px; }

.store-empty {
  text-align: center; padding: 60px 20px;
}
.store-empty .glyph { font-size: 2.6rem; opacity: .4; margin-bottom: 10px; }

.store-breadcrumb {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 16px;
}
.store-breadcrumb a { color: var(--muted); }
.store-breadcrumb a:hover { color: var(--signal); }
.store-breadcrumb .sep { margin: 0 8px; color: var(--ghost); }

.store-pdp {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 400px);
  gap: 36px; align-items: start; margin-bottom: 24px;
}
@media (max-width: 860px) {
  .store-pdp { grid-template-columns: 1fr; }
}

.store-pdp-main {
  aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: var(--bg-1); border: 1px solid var(--hairline); margin-bottom: 12px;
}
.store-pdp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-pdp-main-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: .35;
}

.store-pdp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.store-pdp-thumb {
  width: 66px; height: 66px; border-radius: 8px; overflow: hidden; padding: 0;
  border: 1px solid var(--hairline-2); background: var(--bg-1); cursor: pointer; opacity: .68;
  transition: opacity .15s ease, border-color .15s ease;
}
.store-pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-pdp-thumb:hover { opacity: 1; }
.store-pdp-thumb.on { opacity: 1; border-color: var(--signal); }

.store-pdp-panel {
  position: sticky; top: 88px;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: 22px 24px;
}
.store-pdp-title { margin: 0 0 6px; }
.store-pdp-sub { margin: 0 0 16px; }
.store-pdp-price {
  font-family: var(--disp); font-size: 1.5rem; font-weight: 600; color: var(--signal-hi);
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--hairline);
}

.store-pdp-option-label {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.store-pdp-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.store-size-pill {
  border: 1px solid var(--hairline-2); background: var(--bg-1); color: var(--ink-2);
  padding: 9px 15px; border-radius: 8px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.store-size-pill:hover { border-color: var(--signal-br); }
.store-size-pill.on { border-color: var(--signal); background: var(--signal-bg); color: var(--signal-hi); }

.store-pdp-cta .btn { width: 100%; text-align: center; }

.store-pdp-section {
  border: 1px solid var(--hairline); border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: 22px 24px; margin-bottom: 18px;
}
.store-pdp-section h2 { margin: 0 0 12px; }
.store-pdp-section p { white-space: pre-wrap; margin: 0; color: var(--ink-2); line-height: 1.6; }

@media (max-width: 640px) {
  .store-pdp-panel { position: static; }
}

/* ============================================================
   STORE ADMIN — Printful-style catalog management console
   ============================================================ */

.sadmin-pf-grid, .sadmin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-top: 14px;
}

.sadmin-pf-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--bg-1);
  transition: border-color .15s ease, transform .15s ease;
}
.sadmin-pf-card:hover { border-color: var(--signal-br); transform: translateY(-2px); }
.sadmin-pf-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #fff; }
.sadmin-pf-card-name { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.sadmin-pf-card-badge {
  font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.sadmin-pf-card-badge.in-store { color: var(--signal-hi); background: var(--signal-bg); border: 1px solid var(--signal-br); }
.sadmin-pf-card-badge.not-imported { color: var(--muted); background: var(--bg-2); border: 1px solid var(--hairline-2); }

.sadmin-card {
  border: 1px solid var(--hairline); border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  overflow: hidden;
}
.sadmin-card-media {
  aspect-ratio: 1 / 1; background: var(--bg-1); position: relative;
}
.sadmin-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sadmin-card-media-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; opacity: .35;
}
.sadmin-card-status {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid;
}
.sadmin-card-status.status-active { color: var(--signal-hi); background: var(--signal-bg); border-color: var(--signal-br); }
.sadmin-card-status.status-draft { color: var(--steel); background: var(--steel-bg); border-color: oklch(0.8 0.065 215 / 0.3); }
.sadmin-card-status.status-archived { color: var(--faint); background: var(--bg-2); border-color: var(--hairline-2); }

.sadmin-card-body { padding: 14px 16px 16px; }
.sadmin-card-kind { margin-bottom: 4px; }
.sadmin-card-title { margin: 0 0 4px; font-size: 1.02rem; }
.sadmin-card-sub { margin: 0 0 8px; }
.sadmin-card-price { font-family: var(--disp); font-weight: 600; color: var(--signal-hi); margin-bottom: 10px; }

.sadmin-card-sync {
  font-size: .7rem; color: var(--muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.sadmin-card-sync .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex-shrink: 0; }

.sadmin-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sadmin-card-actions .btn { padding: 6px 10px; font-size: .72rem; }
.sadmin-card-actions .btn.on { border-color: var(--signal); background: var(--signal-bg); color: var(--signal-hi); }
.btn-danger { color: oklch(0.7 0.19 25); border-color: oklch(0.7 0.19 25 / 0.35); }
.btn-danger:hover { background: oklch(0.7 0.19 25 / 0.12); }

.sadmin-card details { border-top: 1px solid var(--hairline); margin-top: 4px; padding-top: 10px; }
.sadmin-card summary { cursor: pointer; font-size: .78rem; color: var(--muted); }
.sadmin-card summary:hover { color: var(--signal); }

.sadmin-variant-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .82rem; }
.sadmin-variant-table th { text-align: left; padding: 4px 4px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.sadmin-variant-table td { padding: 4px 4px; }
.sadmin-variant-table input.sf-input { width: 100%; padding: 5px 8px; font-size: .8rem; }

.sadmin-add-variant { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end; margin-top: 8px; }
.sadmin-add-variant label { font-size: .68rem; color: var(--muted); }
.sadmin-add-variant input.sf-input { padding: 6px 8px; font-size: .78rem; }
