/* =========================================================
   DayZ community site
   Change --red to rebrand. Everything else follows.
   ========================================================= */
:root {
  --bg: #000;
  --bg-1: #0a0a0a;
  --card: #111111;
  --card-2: #161616;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f2f2f0;
  --muted: #8e8e8a;
  --red: #dd1e1e;
  --red-2: #ff3b30;
  --red-glow: rgba(221, 30, 30, .35);
  --good: #3ddc84;
  --warn: #f5b83d;
  --radius: 14px;
  --wrap: 1180px;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --chart-series: #ff3b30;
  --chart-grid: rgba(255, 255, 255, .07);
  --chart-axis: rgba(255, 255, 255, .35);
  --chart-muted: #6f6f6b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* subtle film grain over everything */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--text); text-decoration: none; }
p a { color: var(--red-2); }
p a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.red { color: var(--red); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: .95; text-transform: uppercase; }
h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: .04em; }
h3 { font-size: 1.9rem; letter-spacing: .04em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 12px; color: var(--muted);
  font: 600 .78rem/1 var(--body); text-transform: uppercase; letter-spacing: .22em;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); }

/* ---------- Floating pill nav ---------- */
.nav-shell { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 1080px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; gap: 16px; padding: 0 10px 0 20px;
  background: rgba(14, 14, 14, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-radius: 16px;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.nav.scrolled { background: rgba(10, 10, 10, .9); border-color: var(--line-2); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 1.6rem/1 var(--display); letter-spacing: .08em; white-space: nowrap;
}
.brand-mark {
  width: 20px; height: 20px; background: var(--red);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 18px var(--red-glow);
}
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  font: 400 1.15rem/1 var(--display); letter-spacing: .08em; color: #c9c9c5;
  padding: 10px 12px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 10px;
  font: 400 1.3rem/1 var(--display); letter-spacing: .1em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .15s, box-shadow .2s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 24px var(--red-glow); }
.btn-red:hover { background: var(--red-2); box-shadow: 0 8px 32px rgba(255, 59, 48, .45); }
.btn-glass { background: rgba(255,255,255,.06); border-color: var(--line-2); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.12); }
.btn-nav { height: 40px; padding: 0 18px; font-size: 1.15rem; box-shadow: none; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: -30px; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(5px) saturate(.9); transform: scale(1.05); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translate(-1%, -1%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.75) 100%),
    linear-gradient(rgba(0,0,0,.45) 40%, #000 100%);
}
.hero-content { padding: 120px 24px 100px; max-width: 980px; }
.live-pill {
  display: inline-flex; align-items: center; margin: 0 0 26px;
  padding: 8px 16px 8px 14px; border-radius: 999px;
  background: rgba(0,0,0,.45); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  color: #c9c9c5; font-size: .9rem;
}
.live-pill strong { color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.hero-title {
  font-size: clamp(3.6rem, 12vw, 9rem); letter-spacing: .06em; line-height: .9;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.hero-title .red { display: inline-block; text-shadow: 0 0 60px var(--red-glow); }
.hero-lede { max-width: 600px; margin: 22px auto 22px; color: #c9c9c5; font-size: 1.12rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 34px; }
.chips li {
  font: 600 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,.4); border: 1px solid var(--line-2); color: #ddd;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.updated { color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 8px; }
.updated::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

/* ---------- Server cards ---------- */
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.server-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.server-card:hover { transform: translateY(-4px); border-color: rgba(221,30,30,.45); box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(221,30,30,.15); }
.server-card.skeleton { min-height: 380px; background: linear-gradient(100deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.card-banner { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--card-2); }
.card-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.server-card:hover .card-banner img { transform: scale(1.06); }
.card-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--card)); }
.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 6px; background: var(--red); color: #fff;
}
.status {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); color: var(--good);
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.offline { color: var(--red-2); }

.card-body { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; margin-top: -26px; position: relative; }
.card-title h3 { font-size: 2.3rem; }
.card-sub { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }

.pop-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pop-count { font: 400 2.1rem/1 var(--display); letter-spacing: .04em; }
.pop-count span { color: var(--muted); font-size: 1.3rem; }
.pop-label { color: var(--muted); font-size: .82rem; font-weight: 500; }
.bar { height: 5px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--good); border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bar.busy > i { background: var(--warn); }
.bar.full > i { background: var(--red); }

.card-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.card-meta b { color: var(--text); font-weight: 600; }
.addr {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #0a0a0a; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 6px 6px 14px; font: 500 .9rem/1 ui-monospace, Consolas, monospace; color: #d6d6d2;
}
.copy-btn {
  background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line-2);
  border-radius: 7px; padding: 8px 12px; font: 600 .78rem/1 var(--body); cursor: pointer; transition: background .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.12); }
.card-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: auto; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg-1); padding: 32px 28px; position: relative; transition: background .2s; }
.feature:hover { background: #111; }
.feature-num { font: 400 1rem/1 var(--display); color: var(--red); letter-spacing: .1em; }
.feature h3 { margin: 14px 0 8px; font-size: 1.8rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 44px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 30px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step-num { position: absolute; right: 14px; top: -6px; font: 400 6rem/1 var(--display); color: rgba(255,255,255,.04); }
.steps h3 { font-size: 1.8rem; margin-bottom: 8px; }
.steps h3::before { content: ''; display: block; width: 28px; height: 3px; background: var(--red); margin-bottom: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps strong { color: var(--text); }
.alt-join { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; background: var(--card); }
.alt-join summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.alt-join summary::after { content: '+'; color: var(--red); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.alt-join[open] summary::after { transform: rotate(45deg); }
.alt-join summary::-webkit-details-marker { display: none; }
.alt-join ol { color: var(--muted); margin: 14px 0 4px; padding-left: 20px; }
.alt-join strong { color: var(--text); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 130px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 120%, rgba(221,30,30,.35), transparent 70%), #000; }
.cta h2 { font-size: clamp(3rem, 8vw, 5.6rem); letter-spacing: .05em; }
.cta p { color: var(--muted); margin: 14px auto 30px; max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; background: #000; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand p { margin: 10px 0 0; font-size: .88rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: #5f5f5b; font-size: .78rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 60;
  background: #fff; color: #000; font-weight: 600; font-size: .9rem;
  padding: 11px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Simple page (404 / coming soon) ---------- */
.simple-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 24px 60px; background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(221,30,30,.25), transparent 70%); }
.simple-page h1 { font-size: clamp(4rem, 14vw, 9rem); letter-spacing: .06em; }
.simple-page p { color: var(--muted); margin: 10px 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav { padding: 0 8px 0 16px; gap: 10px; }
  .btn-nav { margin-left: auto; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 16px; height: 2px; margin: 0 auto; background: #fff; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(10,10,10,.96); backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 14px; font-size: 1.4rem; }
  .nav { position: relative; }
  .section { padding: 80px 0; }
  .server-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.35rem; }
  .card-body { padding: 4px 18px 18px; }
  .hero-actions .btn { flex: 1; }
}

/* =========================================================
   Inner pages: page hero + rules
   ========================================================= */
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.page-hero {
  padding: 160px 0 70px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 90% at 20% 0%, rgba(221,30,30,.16), transparent 70%), var(--bg);
}
.page-hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); letter-spacing: .05em; text-wrap: balance; }
.page-lede { max-width: 640px; color: #c9c9c5; font-size: 1.08rem; margin: 20px 0 14px; }
.page-lede strong { color: #fff; }
.updated-note { color: var(--muted); font-size: .85rem; margin: 0; }

.rules-section { padding-top: 64px; }
.rules-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.rules-layout > * { max-width: 860px; }
.rules-toc { position: sticky; top: 100px; }
.toc-title { margin: 0 0 12px; color: var(--muted); font: 600 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.rules-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.rules-toc li { counter-increment: toc; }
.rules-toc a {
  display: flex; gap: 10px; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); font-size: .92rem; border-left: 2px solid transparent; transition: color .15s, background .15s, border-color .15s;
}
.rules-toc a::before { content: counter(toc); color: #555; font-variant-numeric: tabular-nums; width: 1ch; }
.rules-toc a:hover { color: #fff; background: rgba(255,255,255,.04); }
.rules-toc a.active { color: #fff; border-left-color: var(--red); background: rgba(221,30,30,.08); }

.rules-body { display: grid; gap: 28px; min-width: 0; }
.short-version {
  padding: 28px 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(221,30,30,.14), transparent 65%), var(--card);
  border: 1px solid rgba(221,30,30,.3);
}
.short-version h2 { font-size: 2rem; margin-bottom: 14px; }
.short-version ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.short-version li { position: relative; padding-left: 22px; color: #d6d6d2; }
.short-version li::before { content: ''; position: absolute; left: 0; top: .65em; width: 10px; height: 2px; background: var(--red); }

.rule-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px 12px; scroll-margin-top: 100px; }
.rule-group h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.7rem, 6vw, 2.2rem); margin-bottom: 10px; overflow-wrap: anywhere; }
.rule-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 1.5rem; flex: none;
}
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.rule-list li:first-child { border-top: 0; }
.rid { font: 600 .85rem/1.9 ui-monospace, Consolas, monospace; color: var(--red-2); font-variant-numeric: tabular-nums; }
.rule-list p { margin: 0; color: #cfcfcb; }
.rule-list strong { color: #fff; }

.rules-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.rules-cta p { margin: 0; color: #d6d6d2; }

@media (max-width: 900px) {
  .rules-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rules-toc { position: static; }
  .rules-toc ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .page-hero { padding: 130px 0 50px; }
  .rule-group, .short-version { padding: 22px 18px 8px; }
  .short-version { padding-bottom: 22px; }
  .rule-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .rules-toc ol { grid-template-columns: 1fr; }
}

/* =========================================================
   Donate page
   ========================================================= */
.btn-nav[aria-current="page"] { box-shadow: 0 0 0 2px rgba(255,255,255,.18) inset; }
.donate-section { padding-top: 64px; }
.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.donate-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; min-width: 0; }
.card-label { margin: 0 0 18px; color: var(--muted); font: 600 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }

/* goal */
.goal-card { position: sticky; top: 100px; }
.goal-figure { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.goal-raised { font: 400 4.2rem/.9 var(--display); letter-spacing: .02em; }
.goal-of { color: var(--muted); font: 400 1.6rem/1 var(--display); letter-spacing: .04em; }
.goal-bar { height: 10px; margin: 18px 0 10px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.goal-bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #a51414, var(--red-2)); box-shadow: 0 0 18px var(--red-glow); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.goal-bar.done > i { background: linear-gradient(90deg, #239b5a, var(--good)); box-shadow: 0 0 18px rgba(61,220,132,.35); }
.goal-meta { margin: 0 0 24px; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.cost-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cost-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #cfcfcb; font-size: .95rem; font-variant-numeric: tabular-nums; }
.cost-list small { color: var(--muted); margin-left: 2px; }

/* give */
.give-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.give-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.give-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); font: 400 1.3rem/1 var(--display); color: var(--red-2); }
.give-step-body { display: grid; gap: 10px; min-width: 0; }
.give-step-body > strong { font-size: 1.05rem; padding-top: 6px; }
.give-step-body > p { margin: -6px 0 2px; font-size: .92rem; }
.btn-discord-login { background: #5865f2; color: #fff; justify-self: start; font-size: 1.2rem; }
.btn-discord-login:hover { background: #4752c4; }
.btn-block { width: 100%; height: 54px; font-size: 1.5rem; }
.btn.disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.who { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #0a0a0a; border: 1px solid var(--line); }
.who img { width: 36px; height: 36px; border-radius: 50%; }
.who > div { flex: 1; min-width: 0; display: grid; line-height: 1.3; font-size: .9rem; }
.who > div strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-out { color: var(--muted); font-size: .85rem; }
.who-out:hover { color: #fff; }

.notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: #ddd; font-size: .93rem; }
.notice.good { border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.08); }
.notice.bad { border-color: rgba(255,59,48,.45); background: rgba(255,59,48,.08); }

.perks { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.perks-title { margin: 0 0 12px; font: 400 1.4rem/1 var(--display); letter-spacing: .06em; }
.perks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.perks li { position: relative; padding-left: 26px; color: #d6d6d2; font-size: .95rem; }
.perks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--red-2); border-bottom: 2px solid var(--red-2); transform: rotate(-45deg); }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 36px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 2px; color: var(--muted); }

@media (max-width: 900px) {
  .donate-grid { grid-template-columns: minmax(0, 1fr); }
  .goal-card { position: static; }
}
@media (max-width: 560px) {
  .donate-card { padding: 22px 18px; }
  .goal-raised { font-size: 3.4rem; }
}

/* =========================================================
   Wiki
   ========================================================= */
.eyebrow a { color: inherit; }
.eyebrow a:hover { color: #fff; }
.wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.wiki-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s;
}
.wiki-card:hover { transform: translateY(-3px); border-color: rgba(221,30,30,.45); }
.wiki-card h2 { font-size: 2.2rem; }
.wiki-card p { margin: 0; color: var(--muted); }
.wiki-tag { align-self: flex-start; font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: rgba(221,30,30,.14); color: var(--red-2); }
.wiki-go { margin-top: auto; padding-top: 10px; font: 400 1.2rem/1 var(--display); letter-spacing: .08em; color: var(--red-2); }
.wiki-go::after { content: ' →'; }

/* ---- medicine guide ---- */
.med-search {
  display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 26px; padding: 0 16px;
  height: 52px; border-radius: 12px; background: #0a0a0a; border: 1px solid var(--line-2); color: var(--muted);
}
.med-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(221,30,30,.2); }
.med-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 400 1rem var(--body); }
.med-search input::placeholder { color: #6b6b67; }

.med-basics-section { padding-top: 80px; }
.basics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.basic { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.basic h3 { font-size: 1.6rem; margin-bottom: 8px; }
.basic p { margin: 0; color: var(--muted); font-size: .93rem; }
.basic b { color: var(--text); font-weight: 600; }

.cond-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.cond-nav-group { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.cond-nav-group > span { width: 100%; margin-bottom: 4px; color: var(--muted); font: 600 .72rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.cond-nav-group a { padding: 7px 11px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: .86rem; color: #d6d6d2; }
.cond-nav-group a:hover { border-color: rgba(221,30,30,.5); color: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.rar { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 .7rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; border: 1px solid transparent; }
.rar::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rar-common { color: var(--good); background: rgba(61,220,132,.1); border-color: rgba(61,220,132,.25); }
.rar-uncommon { color: #7fc4ff; background: rgba(127,196,255,.1); border-color: rgba(127,196,255,.25); }
.rar-rare { color: var(--warn); background: rgba(245,184,61,.1); border-color: rgba(245,184,61,.25); }
.rar-none { color: #8e8e8a; background: rgba(255,255,255,.04); border-color: var(--line-2); }
.rar-vanilla { color: #c9c9c5; background: rgba(255,255,255,.06); border-color: var(--line-2); }

.cond-list { display: grid; gap: 18px; }
.cond { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 96px; overflow: hidden; }
.cond-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 22px 26px 0; }
.cond-head h3 { font-size: 2.3rem; }
.cond-group { order: 2; color: var(--muted); font: 600 .7rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.cond-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; padding: 16px 26px 26px; }
.cond dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 14px; margin: 0 0 16px; }
.cond dt { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; }
.cond dd { margin: 0; color: #d6d6d2; font-size: .95rem; }
.stages { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.stages li { display: flex; gap: 12px; align-items: baseline; font-size: .9rem; color: #cfcfcb; }
.stages li span { flex: none; width: 64px; font: 600 .72rem/1.6 var(--body); text-transform: uppercase; letter-spacing: .08em; }
.stages li:nth-child(1) span { color: var(--warn); }
.stages li:nth-child(2) span { color: #ff8a3d; }
.stages li:nth-child(3) span { color: var(--red-2); }
.cond-sub { margin: 0 0 10px; font: 400 1.3rem/1 var(--display); letter-spacing: .08em; }
.cond-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; color: #d6d6d2; font-size: .93rem; }
.cond-steps li::marker { color: var(--red-2); font-weight: 700; }
.prevent { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(61,220,132,.06); border: 1px solid rgba(61,220,132,.18); color: #cfcfcb; font-size: .9rem; }
.prevent b { color: var(--good); font-weight: 600; }
.warn-line { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: rgba(245,184,61,.08); border: 1px solid rgba(245,184,61,.3); color: #f3d38e; font-size: .88rem; }

.med-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.med-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; background: #0b0b0b; border: 1px solid var(--line); }
.med-list li.is-none { opacity: .55; }
.med-lvl { display: grid; place-items: center; height: 28px; border-radius: 7px; background: rgba(255,255,255,.05); font: 400 1.05rem/1 var(--display); color: var(--red-2); letter-spacing: .04em; }
.med-main { display: grid; min-width: 0; }
.med-main b { font-weight: 600; font-size: .93rem; }
.med-main small { color: var(--muted); font-size: .78rem; line-height: 1.4; }

.mini-table, .item-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.mini-table th, .item-table th { text-align: left; color: var(--muted); font: 600 .72rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.mini-table td, .item-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d6d6d2; }
.mini-table .num, .item-table .num { text-align: right; }
.table-note { margin: 8px 0 18px; color: var(--muted); font-size: .82rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-intro { margin: 10px 0 22px; max-width: 760px; }
.item-table { min-width: 860px; }
.item-table td small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
.item-table td a { color: #d6d6d2; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.item-table td a:hover { color: #fff; text-decoration-color: var(--red); }
.item-table tr.is-none td { opacity: .6; }
.item-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.od-high { color: var(--red-2); }
.no-results { color: var(--muted); padding: 30px 0; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 34px; }
.tool { padding: 18px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.tool-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tool-top b { font-weight: 600; }
.tool p { margin: 0; color: #c9c9c5; font-size: .9rem; }
.tool small { color: var(--muted); font-size: .78rem; }

.poison-box { padding: 32px; border-radius: var(--radius); border: 1px solid rgba(255,59,48,.35); background: linear-gradient(140deg, rgba(221,30,30,.12), transparent 60%), var(--card); }
.poison-box h2 { margin-bottom: 8px; }
.poison-box > p { margin: 0 0 22px; max-width: 640px; }
.poison-box > p a { color: var(--red-2); }
.poison-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.poison { padding: 14px 16px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.poison b { font-weight: 600; }
.poison p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }

@media (max-width: 1000px) {
  .basics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cond-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .cond-nav { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .basics { grid-template-columns: minmax(0, 1fr); }
  .cond-head, .cond-body { padding-left: 18px; padding-right: 18px; }
  .cond dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cond dd { margin-bottom: 8px; }
  .poison-box { padding: 22px 18px; }
}

.med-lvl.is-vax { font-size: .8rem; letter-spacing: .02em; }
.more-meds { margin-top: 8px; }
.more-meds summary { cursor: pointer; color: var(--muted); font-size: .85rem; padding: 6px 2px; list-style: none; }
.more-meds summary::-webkit-details-marker { display: none; }
.more-meds summary::before { content: '+ '; color: var(--red-2); font-weight: 700; }
.more-meds[open] summary::before { content: '– '; }
.more-meds .med-list { margin-top: 6px; }

/* =========================================================
   Server card extras: restart countdown + sparkline
   ========================================================= */
.card-meta { min-height: 1.2em; }
.restart b { font-variant-numeric: tabular-nums; }
.restart.soon, .restart.soon b { color: var(--warn); }
.card-spark { display: grid; gap: 2px; }
.card-spark > span { color: var(--muted); font: 600 .68rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.spark svg { display: block; width: 100%; height: 34px; }

/* =========================================================
   Activity charts
   ========================================================= */
.chart-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #0a0a0a; border: 1px solid var(--line); }
.seg button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 .85rem/1 var(--body); padding: 9px 14px; border-radius: 8px;
}
.seg button:hover { color: #fff; }
.seg button[aria-selected="true"] { background: rgba(255,255,255,.08); color: #fff; }
.seg button:focus-visible, .chart-svg [tabindex]:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }
.act-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-head h3 { font-size: 1.8rem; }
.chart-head p { margin: 4px 0 0; font-size: .85rem; }
.act-stats { display: flex; gap: 22px; margin: 0; }
.act-stats div { display: grid; gap: 2px; }
.act-stats dt { color: var(--muted); font: 600 .68rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.act-stats dd { margin: 0; font: 600 1.35rem/1.1 var(--body); }
.chart-box { width: 100%; min-height: 200px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-tick { fill: var(--muted); font: 500 11px var(--body); font-variant-numeric: tabular-nums; }
.chart-value { fill: var(--text); font: 600 12px var(--body); }
.col .col-mark { transition: opacity .15s; }
.col.is-hover .col-mark, .col:focus .col-mark { opacity: .75; }
.col:focus { outline: none; }
.busiest { margin: 10px 0 6px; color: #cfcfcb; font-size: .92rem; }
.busiest b { color: #fff; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: .82rem; padding: 6px 0; }
.chart-table .mini-table { margin-top: 6px; }
.chart-empty { padding: 26px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.chart-tip {
  position: fixed; z-index: 70; display: none; pointer-events: none;
  padding: 8px 11px; border-radius: 8px; background: #1c1c1c; border: 1px solid var(--line-2);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: .8rem; line-height: 1.35;
}
.chart-tip b { display: block; font-size: .95rem; color: #fff; }
.chart-tip span { color: var(--muted); }

/* =========================================================
   News
   ========================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.news-card:hover { border-color: rgba(221,30,30,.45); transform: translateY(-3px); }
.news-img { aspect-ratio: 16 / 9; background: var(--card-2); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.news-body time, .news-post time { color: var(--red-2); font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.news-body h3 { font-size: 1.7rem; line-height: 1; }
.news-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.news-more { margin-top: auto; padding-top: 6px; font: 400 1.15rem/1 var(--display); letter-spacing: .08em; color: var(--red-2); }
.news-more::after { content: ' →'; }

.news-feed { display: grid; gap: 22px; }
.news-feed > * { max-width: 820px; }
.news-post { padding: 28px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 100px; }
.news-post header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: .85rem; }
.news-post h2 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 10px 0 6px; }
.news-content { color: #d6d6d2; overflow-wrap: anywhere; }
.news-content p { margin: 8px 0; }
.news-content h4 { font: 400 1.5rem/1.1 var(--display); letter-spacing: .05em; margin: 18px 0 6px; text-transform: uppercase; }
.news-content ul { margin: 8px 0; padding-left: 22px; }
.news-content li { margin: 3px 0; }
.news-content blockquote { margin: 8px 0; padding: 2px 14px; border-left: 3px solid var(--line-2); color: var(--muted); }
.news-content code { padding: 1px 6px; border-radius: 5px; background: #0a0a0a; font: .9em ui-monospace, Consolas, monospace; }
.news-content a, .news-embed a { color: var(--red-2); }
.news-content .emoji { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -.25em; }
.spoiler { background: #2a2a2a; color: transparent; border-radius: 4px; cursor: pointer; }
.spoiler.shown { color: inherit; background: rgba(255,255,255,.08); }
.news-embed { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--red); border-radius: 6px; background: #0b0b0b; color: #cfcfcb; font-size: .93rem; }
.news-photo { margin-top: 14px; max-height: 480px; width: auto; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.news-discord { display: inline-block; margin-top: 14px; color: var(--muted); font-size: .85rem; }
.news-discord:hover { color: #fff; }

@media (max-width: 960px) {
  .act-grid { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .chart-card { padding: 18px 14px 12px; }
  .act-stats { gap: 16px; }
  .news-post { padding: 22px 18px; }
}

.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-ch { font: 600 .66rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: #c9c9c5; }
.news-post header .news-ch { align-self: center; }
.news-filter { justify-self: start; }

/* =========================================================
   Game pages: shared controls
   ========================================================= */
.page-lede a { color: var(--red-2); }
.game-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }
.game-search { margin-top: 0; flex: 1; min-width: 260px; max-width: 460px; height: 44px; }
.game-updated { margin-top: 30px; font-size: .8rem; }
.results-count { margin: 0 0 10px; }

/* ---- traders ---- */
.trader-section { padding-top: 56px; }
.trader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 28px; }
.trader-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text);
  font: inherit; transition: border-color .15s, background .15s;
}
.trader-card:hover { border-color: rgba(255,255,255,.2); }
.trader-card[aria-pressed="true"] { border-color: var(--red); background: linear-gradient(140deg, rgba(221,30,30,.12), transparent 70%), var(--card); }
.trader-card:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }
.tc-name { font: 400 1.5rem/1 var(--display); letter-spacing: .05em; }
.tc-title { color: var(--muted); font-size: .85rem; min-height: 1.2em; }
.tc-reqs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.tc-foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .78rem; }
.req { display: inline-flex; gap: 4px; padding: 4px 8px; border-radius: 6px; font-size: .74rem; font-weight: 600; background: rgba(245,184,61,.1); color: #f3d38e; border: 1px solid rgba(245,184,61,.25); }
.req a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.req.open { background: rgba(61,220,132,.08); color: var(--good); border-color: rgba(61,220,132,.22); }

.trader-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.td-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.td-head h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
.td-head p { margin: 6px 0 0; }
.td-head p a { color: #d6d6d2; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.td-reqs { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cat-nav a { padding: 6px 10px; border-radius: 8px; background: #0b0b0b; border: 1px solid var(--line); font-size: .84rem; color: #d6d6d2; }
.cat-nav a:hover { border-color: rgba(221,30,30,.5); color: #fff; }
.cat-nav span { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.cat { padding-top: 22px; scroll-margin-top: 96px; }
.cat h3 { display: flex; align-items: center; gap: 10px; font-size: 1.7rem; margin-bottom: 8px; }
.mode { font: 600 .66rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; background: rgba(255,255,255,.06); color: #c9c9c5; border: 1px solid var(--line-2); }
.mode-both { color: var(--good); border-color: rgba(61,220,132,.3); background: rgba(61,220,132,.08); }
.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.price-table th { text-align: left; color: var(--muted); font: 600 .72rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.price-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d6d6d2; }
.price-table td b { font-weight: 600; color: var(--text); }
.price-table td small { display: block; color: #6f6f6b; font-size: .74rem; margin-top: 2px; word-break: break-word; }
.price-table td a { color: #d6d6d2; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table .price { color: #fff; font-weight: 600; }
.price-table tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ---- quests ---- */
.quest-section { padding-top: 56px; }
.quest-summary { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.quest-summary div { display: grid; }
.quest-summary b { font: 600 1.8rem/1.1 var(--body); }
.quest-summary span { color: var(--muted); font-size: .8rem; }
.giver { margin-bottom: 44px; }
.giver-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.giver-head h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
.giver-quote { margin: 6px 0 18px; max-width: 760px; color: var(--muted); font-style: italic; }
.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.quest { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); scroll-margin-top: 96px; }
.quest:target { border-color: var(--red); box-shadow: 0 0 0 1px rgba(221,30,30,.3); }
.q-head { display: grid; gap: 8px; }
.q-head h3 { font-size: 1.7rem; line-height: 1; }
.q-kind { justify-self: start; font: 600 .66rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; border: 1px solid var(--line-2); color: #c9c9c5; }
.q-story { }
.q-daily, .q-repeatable { color: #7fc4ff; border-color: rgba(127,196,255,.3); background: rgba(127,196,255,.08); }
.q-weekly { color: #c9a2ff; border-color: rgba(201,162,255,.3); background: rgba(201,162,255,.08); }
.q-reqs { margin: -4px 0 0; color: #f3d38e; font-size: .84rem; }
.q-reqs a, .q-next a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.q-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.q-label { margin: 0 0 6px; color: var(--muted); font: 600 .68rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.q-objs ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: #d6d6d2; font-size: .9rem; }
.q-objs li::marker { color: var(--red-2); font-weight: 700; }
.q-objs small { display: block; color: var(--muted); }
.o-type { display: inline-block; margin-right: 4px; font: 600 .62rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.06); color: #a9a9a5; vertical-align: 1px; }
.q-turnin { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.q-turnin b { color: #d6d6d2; font-weight: 600; }
.q-rewards ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: #d6d6d2; }
.q-rewards li.rep { color: var(--good); font-weight: 600; }
.reward-note { margin: -2px 0 6px; color: #7fc4ff; font-size: .78rem; font-weight: 600; }
.q-story summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
.q-story p { margin: 8px 0 0; color: #bdbdb8; font-size: .9rem; font-style: italic; }
.q-next { margin: 0; color: var(--muted); font-size: .84rem; }

/* ---- map ---- */
.map-section { padding-top: 56px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.map-box { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: #0b0d0c; border: 1px solid var(--line); }
.map-svg { display: block; width: 100%; height: 100%; transition: none; }
.map-bld { fill: #a9a99f; fill-opacity: .55; }
.map-grid line { stroke: rgba(255,255,255,.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mk-g { cursor: pointer; }
.mk-g:focus { outline: none; }
.mk-hit { r: calc(var(--px, 20) * 18px); fill: transparent; }
.mk-dot { r: calc(var(--px, 20) * 9px); stroke: #0b0d0c; stroke-width: 2; vector-effect: non-scaling-stroke; }
.mk-trader .mk-dot { fill: #fff; }
.mk-g:hover .mk-dot, .mk-g:focus .mk-dot { r: calc(var(--px, 20) * 11px); }
.mk-num { font: 700 calc(var(--px, 20) * 10px) var(--body); fill: #0b0d0c; pointer-events: none; }
.mk-g .mk-dot { stroke: #0b0d0c; }
.map-reset { position: absolute; top: 12px; left: 12px; }
.map-pop { position: absolute; left: 12px; bottom: 12px; right: 12px; max-width: 300px; max-height: 46%; overflow: auto; padding: 12px 14px; border-radius: 10px; background: rgba(15,15,15,.94); border: 1px solid var(--line-2); display: grid; gap: 6px; }
.map-pop div { display: grid; }
.map-pop b { font-weight: 600; }
.map-pop span { color: var(--muted); font-size: .8rem; }
.pop-coord { margin: 4px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 .9rem ui-monospace, Consolas, monospace; }
.map-side { display: grid; gap: 14px; }
.map-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.mk { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mk.mk-trader { background: #fff; }
.mk.mk-nobuild { background: rgba(255, 59, 48, .35); box-shadow: inset 0 0 0 2px var(--red-2); }
.mk.mk-safe { background: rgba(61, 220, 132, .18); box-shadow: inset 0 0 0 2px var(--good); }
/* zones */
.zone-nb { fill: rgba(255, 59, 48, .16); stroke: var(--red-2); stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; cursor: pointer; }
.zone-nb:hover, .zone-nb:focus { fill: rgba(255, 59, 48, .26); outline: none; }
.zone-safe { fill: rgba(61, 220, 132, .14); stroke: var(--good); stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-svg { cursor: crosshair; }
.map-svg.hide-traders .lyr-traders, .map-svg.hide-nobuild .lyr-nobuild, .map-svg.hide-safe .lyr-safe { display: none; }
.map-list.hide-traders .li-trader, .map-list.hide-nobuild .li-nobuild { display: none; }
.map-list-h { margin: 8px 0 2px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.map-list-h:first-child { margin-top: 0; }
.map-layers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.map-layers label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; cursor: pointer; user-select: none; }
.map-layers label:has(input:not(:checked)) { opacity: .45; }
.map-layers label:has(input:focus-visible) { outline: 2px solid var(--red-2); outline-offset: 2px; }
.map-layers input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.map-cross { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.6); pointer-events: none; }
.pop-verdict b { font-size: .95rem; }
.pop-verdict.no b { color: var(--red-2); }
.pop-verdict.ok b { color: var(--good); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 560px; overflow: auto; }
.map-list button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.map-list button:hover { border-color: rgba(255,255,255,.2); }
.map-list .mk { margin-top: 5px; }
.map-list b { display: block; font-weight: 600; font-size: .88rem; }
.map-list small { color: var(--muted); font: .78rem ui-monospace, Consolas, monospace; }
.map-note { margin: 0; font-size: .85rem; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .q-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .trader-detail { padding: 20px 16px; }
  .quest { padding: 18px 16px; }
  .game-search { min-width: 0; max-width: none; width: 100%; }
}

/* Nav switches to the menu button earlier now that it has more links */
@media (max-width: 960px) {
  .nav { position: relative; padding: 0 8px 0 16px; gap: 10px; }
  .btn-nav { margin-left: auto; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 16px; height: 2px; margin: 0 auto; background: #fff; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(10,10,10,.96); backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 14px; font-size: 1.4rem; }
}
@media (max-width: 560px) {
  .trader-grid { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px 22px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; }
  .trader-card { flex: 0 0 72%; scroll-snap-align: start; }
}

.med-controls { margin-top: 22px; }
.med-controls + .med-search { margin-top: 12px; }
.nav-icon { display: inline-flex; align-items: center; gap: 8px; }
.nav-icon-label { display: none; }
@media (max-width: 960px) { .nav-icon-label { display: inline; } }

/* =========================================================
   Leaderboard
   ========================================================= */
.lb-section { padding-top: 56px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; align-items: end; }
.pod { position: relative; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.pod-1 { order: 2; padding-top: 34px; border-color: rgba(245,184,61,.45); background: linear-gradient(160deg, rgba(245,184,61,.14), transparent 60%), var(--card); }
.pod-2 { order: 1; }
.pod-3 { order: 3; }
.pod-rank { position: absolute; right: 16px; top: 4px; font: 400 4.5rem/1 var(--display); color: rgba(255,255,255,.06); }
.pod-1 .pod-rank { color: rgba(245,184,61,.18); }
.pod-name { font: 400 1.9rem/1 var(--display); letter-spacing: .04em; overflow-wrap: anywhere; }
.pod-val { margin-top: 10px; font: 600 1.5rem/1.1 var(--body); }
.pod-sub { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.lb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .93rem; }
.lb-table th { text-align: left; color: var(--muted); font: 600 .72rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.lb-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #d6d6d2; }
.lb-table td.rank { width: 56px; color: var(--muted); font-weight: 600; }
.lb-table td.name { color: var(--text); font-weight: 600; }
.lb-table .num { text-align: right; white-space: nowrap; }
.lb-table td.main { color: #fff; font-weight: 600; }
.lb-table tbody tr:hover td { background: rgba(255,255,255,.02); }
@media (max-width: 700px) {
  .podium { grid-template-columns: minmax(0, 1fr); }
  .pod-1, .pod-2, .pod-3 { order: 0; }
  .lb-table .opt { display: none; }
}

/* =========================================================
   Admin
   ========================================================= */
.admin-main { min-height: 80vh; }
.admin-gate { padding: 160px 0 100px; }
.gate-card { max-width: 560px; padding: 34px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.gate-card h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); margin-bottom: 10px; }
.gate-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.gate-actions .btn-discord-login { display: inline-flex; }
.admin-app { padding: 120px 0 80px; }
.admin-wrap { max-width: 1400px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-size: clamp(2.6rem, 6vw, 3.8rem); }
.admin-who { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.admin-who img { border-radius: 50%; }
.admin-who a { color: var(--muted); }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.a-select { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; border-radius: 10px; background: #0a0a0a; border: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.a-select select { background: transparent; color: var(--text); border: 0; font: 500 .9rem var(--body); padding: 8px 4px; max-width: 70vw; }
.a-select select option { background: #111; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(61,220,132,.1); color: var(--good); font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
#a-export { margin-left: auto; }
.admin-filters { display: grid; gap: 10px; margin-bottom: 18px; }
.a-search { margin-top: 0; height: 44px; max-width: 520px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; background: #0b0b0b; border: 1px solid var(--line); color: var(--muted); font: 500 .82rem var(--body); cursor: pointer; }
.chip span { color: #6f6f6b; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--line-2); background: #151515; }
.chip[aria-pressed="false"] i { opacity: .3; }
.chip i, .act i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, #888); flex: none; }
.cat-connection { --c: #3ddc84; } .cat-combat { --c: #ff3b30; } .cat-trade { --c: #f5b83d; } .cat-medical { --c: #ff7aa8; }
.cat-base { --c: #b48cff; } .cat-items { --c: #7fc4ff; } .cat-doors { --c: #8e8e8a; } .cat-weapons { --c: #ff8a3d; }
.cat-food { --c: #5fd4c4; } .cat-crafting { --c: #c8b07a; } .cat-other { --c: #6f6f6b; }
.admin-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-players { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.ap-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .9rem; }
#a-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#a-players button { display: grid; gap: 1px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--text); font: inherit; cursor: pointer; }
#a-players button:hover { background: rgba(255,255,255,.04); }
#a-players button[aria-pressed="true"] { border-color: var(--red); background: rgba(221,30,30,.08); }
.ap-name { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; }
.ap-name .on { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.ap-meta { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.ap-sid { color: #5f5f5b; font: .7rem ui-monospace, Consolas, monospace; }
.admin-log { min-width: 0; }
.a-activity { margin-bottom: 6px; }
.a-bars { display: flex; align-items: flex-end; gap: 2px; height: 56px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.a-bars span { flex: 1; min-width: 2px; max-width: 18px; background: var(--chart-series); border-radius: 2px 2px 0 0; opacity: .8; }
.a-bars span:hover { opacity: 1; }
.a-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.a-summary { margin: 10px 0; font-size: .85rem; }
.a-summary a { color: var(--red-2); }
.log-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.log-table th { text-align: left; color: var(--muted); font: 600 .7rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--bg); }
.log-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); color: #d6d6d2; vertical-align: top; }
.log-table td.t { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-table .p-link { color: var(--text); font-weight: 600; }
.log-table .p-link:hover { color: var(--red-2); }
.log-table td.loc a { color: var(--muted); font: .8rem ui-monospace, Consolas, monospace; white-space: nowrap; }
.log-table td.loc a:hover { color: #fff; }
.act { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.a-more { margin-top: 14px; }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-players { position: static; max-height: 260px; }
  #a-export { margin-left: 0; }
}

/* map pin from a link (e.g. admin logs) */
.mk-pin .mk-dot { fill: #fff; stroke: var(--red); stroke-width: 3; }

/* =========================================================
   Header account button + menu
   ========================================================= */
.nav-account { position: relative; display: flex; align-items: center; }
.nav-account:empty { display: none; }
.btn-login {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px;
  background: #5865f2; color: #fff; font: 400 1.15rem/1 var(--display); letter-spacing: .08em;
}
.btn-login:hover { background: #4752c4; text-decoration: none; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 5px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; font: 600 .88rem var(--body);
}
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); }
.acct-btn img { width: 30px; height: 30px; border-radius: 50%; background: #222; }
.acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-caret { color: var(--muted); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 290px; z-index: 60; padding: 12px;
  background: rgba(14,14,14,.98); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.6);
  display: grid; gap: 12px;
}
.acct-head { display: flex; align-items: center; gap: 12px; }
.acct-head img { border-radius: 50%; background: #222; }
.acct-head b { display: block; font-size: .98rem; }
.acct-head small { color: var(--muted); font-size: .78rem; }
.acct-roles, .role-list { display: flex; flex-wrap: wrap; gap: 6px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); font-size: .78rem; color: #e2e2de; }
.role-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.role-chip.lg { padding: 6px 12px; font-size: .9rem; }
.acct-join { font-size: .84rem; color: var(--red-2); }
.acct-links { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.acct-links a { padding: 9px 10px; border-radius: 8px; color: #d6d6d2; font-size: .9rem; }
.acct-links a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }

/* My account page */
.acct-hero { padding-bottom: 50px; }
.profile-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.profile-row img { border-radius: 50%; border: 2px solid var(--line-2); background: #222; }
.profile-row h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.profile-row p { margin: 6px 0 0; }
.profile-out { margin-left: auto; }
.acct-section { padding-top: 50px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.acct-card { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.acct-card-body { display: grid; gap: 14px; justify-items: start; }
.acct-card-body p { margin: 0; color: #d6d6d2; }
.small { font-size: .8rem; }
.support-yes { color: var(--good) !important; font-weight: 600; }
.don-list { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.don-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; font-variant-numeric: tabular-nums; }
.don-list span { color: var(--muted); }

@media (max-width: 960px) {
  .nav-account { margin-left: auto; }
  .nav-account:empty + .btn-nav { margin-left: auto; }
  .nav-account:not(:empty) + .btn-nav { margin-left: 0; }
  .acct-name { display: none; }
}
@media (max-width: 560px) {
  .btn-login span { display: none; }
  .btn-login { padding: 0 11px; }
  .btn-nav { padding: 0 12px; }
  .acct-menu { position: fixed; left: 12px; right: 12px; top: 84px; width: auto; }
}

.avatar { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: #3a2a2a; color: #fff; font-weight: 700; }
.avatar::before { content: attr(data-initial); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-sm { width: 30px; height: 30px; font-size: .85rem; }
.av-md { width: 40px; height: 40px; font-size: 1rem; }
.av-lg { width: 88px; height: 88px; font-size: 2.2rem; border: 2px solid var(--line-2); }
.nav-links a.nav-mobile-only { display: none; }
@media (max-width: 480px) {
  .nav-links a.nav-mobile-only { display: block; color: #fff; }
  .btn-nav { display: none; }
  .nav { gap: 8px; padding: 0 8px 0 14px; }
  .brand { font-size: 1.25rem; }
}

/* ===================== Ammo & Armor ===================== */
.ammo-intro { padding-bottom: 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.how-card h3 { margin: 6px 0 6px; font: 600 1.05rem/1.3 var(--body); letter-spacing: 0; text-transform: none; }
.how-card p { margin: 0; color: #c9c9c5; font-size: .92rem; }
.how-card b { color: var(--text); }
.how-n { color: var(--red-2); font: 400 1.4rem/1 var(--display); letter-spacing: .04em; }

.ammo-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; margin-bottom: 22px; }
.ctl { display: grid; gap: 8px; }
.ctl-label { color: var(--muted); font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.seg-wrap { flex-wrap: wrap; }
.select { height: 40px; min-width: 190px; padding: 0 36px 0 12px; border-radius: 10px; background: #0a0a0a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238e8e8a' d='M0 0h12L6 8z'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line-2); color: var(--text); font: 500 .9rem var(--body); appearance: none; -webkit-appearance: none; cursor: pointer; }
.select:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 10px; height: 40px; color: #d6d6d2; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }

.best-picks:empty { display: none; }
.picks-title { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.picks-title b { color: var(--text); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.pick { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.pick:first-child { border-color: rgba(255, 59, 48, .45); background: linear-gradient(180deg, rgba(221,30,30,.10), rgba(221,30,30,0) 70%), var(--card); }
.pick-rank { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); font: 400 1.2rem/1 var(--display); }
.pick:first-child .pick-rank { background: var(--red); color: #fff; }
.pick-body { display: grid; gap: 4px; min-width: 0; }
.pick-body > b { font-weight: 600; }
.pick-body > b span { color: var(--muted); font-weight: 500; }
.pick-hits { color: #d6d6d2; font-size: .9rem; }
.pick-hits strong { color: #fff; font: 400 1.5rem/1 var(--display); letter-spacing: .02em; margin-right: 2px; }
.pick-where { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.ammo-scroll { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ammo-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; min-width: 980px; }
.ammo-table th { text-align: left; color: var(--muted); font: 600 .7rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 12px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--card); }
.ammo-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: #d6d6d2; vertical-align: middle; }
.ammo-table tbody tr:last-child td { border-bottom: 0; }
.ammo-table tbody tr:hover td { background-color: rgba(255,255,255,.025); }
.ammo-table .num { text-align: right; white-space: nowrap; }
.ammo-table .col-round { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 190px; }
.ammo-table td.col-round b { color: var(--text); font-weight: 600; }
.ammo-table td.col-round small { display: block; color: #6f6f6b; font-size: .74rem; margin-top: 2px; }
.rnd-var { color: #c9c9c5; }
.role { display: inline-block; margin-left: 4px; padding: 2px 6px; border-radius: 5px; font: 600 .64rem/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #c9c9c5; background: rgba(255,255,255,.06); vertical-align: 1px; }
.role-ap { color: #ffb4ae; background: rgba(255,59,48,.14); }
.role-soft { color: #9fd3ff; background: rgba(127,196,255,.12); }
.ammo-table th.hits-h { text-align: center; }
.ammo-table th.hits-h.sel { color: #fff; }
.ammo-table td.hits { text-align: center; width: 58px; font-weight: 600; color: #fff; }
.ammo-table td.hits.note { color: var(--muted); font-weight: 400; font-size: .8rem; text-align: center; }
.hits.h1 { background: rgba(255, 59, 48, .34); }
.hits.h2 { background: rgba(255, 59, 48, .22); }
.hits.h3 { background: rgba(255, 59, 48, .13); }
.hits.h4 { background: rgba(255, 59, 48, .06); }
.hits.h5 { background: rgba(255, 255, 255, .04); color: #c9c9c5 !important; }
.hits.h6 { background: transparent; color: #8e8e8a !important; }
.ammo-table td.hits.sel { font-size: 1rem; box-shadow: inset 2px 0 0 #fff, inset -2px 0 0 #fff; }
.ammo-table tbody tr:last-child td.hits.sel { box-shadow: inset 2px 0 0 #fff, inset -2px 0 0 #fff, inset 0 -2px 0 #fff; }
.ammo-table td.where { white-space: nowrap; }
.src-tag { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 6px; font: 600 .7rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #e6e6e2; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.table-note { margin: 12px 0 0; font-size: .85rem; }

#armor .table-scroll { margin-top: 28px; }
.tier-table { max-width: 900px; }
.tier-table td { vertical-align: middle; }
.tier-badge { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 6px; font: 400 1rem/1 var(--display); letter-spacing: .06em; color: #fff; }
.tier-badge.t1 { background: #3a3a38; }
.tier-badge.t2 { background: #4b4b48; }
.tier-badge.t3 { background: #7a2a26; }
.tier-badge.t4 { background: #b0231d; }
.tier-badge.t5 { background: var(--red-2); }
.armor-filter { margin: 34px 0 6px; }
.armor-tier { margin-top: 26px; }
.armor-tier h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 1rem/1.3 var(--body); letter-spacing: 0; text-transform: none; color: #d6d6d2; }
.armor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.armor-card { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.ac-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ac-top b { font-weight: 600; }
.ac-kind { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.ac-var { margin: 0; color: #9e9e9a; font-size: .8rem; line-height: 1.45; }
.ac-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; margin-top: 4px; }
.ac-foot > span:last-child { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .how-grid, .picks { grid-template-columns: minmax(0, 1fr); }
  .picks { gap: 8px; }
}
@media (max-width: 560px) {
  .ammo-controls { gap: 14px; }
  .ctl { width: 100%; }
  .select { width: 100%; }
  .ammo-table .col-round { min-width: 150px; }
}

.map-ext { justify-self: start; text-align: left; white-space: normal; height: auto; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; }
