/* ============ HISTORY SERVER — prototype styles (bright / light-blue theme) ============ */
:root {
  --bg: #eaf3fb;           /* light blue page background */
  --bg-alt: #ddecf8;
  --panel: #ffffff;
  --panel-hover: #f2f9ff;
  --border: #b9d4ea;
  --text: #14283c;
  --text-dim: #4e6b85;
  --accent: #0d8de3;       /* bright blue */
  --accent2: #0795b4;      /* teal */
  --gold: #de9a10;         /* star ratings */
  --green: #149c49;
  --red: #d94f31;
  --purple: #7a4fd1;
  --map-sea: #bcdcf2;
  --map-land: #f6eed9;
  --map-land-stroke: #d9c9a2;
  --mono: "Consolas", "SF Mono", "Cascadia Code", monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.logo {
  font-family: var(--mono); font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: 1px; padding: 14px 0;
  display: flex; align-items: center; gap: 10px;
}
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--accent); }
.logo-accent { color: var(--accent); }
.server-status {
  font-size: 10px; color: var(--text-dim); font-weight: 400;
  border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px;
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px;
  white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); display: inline-block;
  box-shadow: 0 0 6px var(--green);
}
/* the nav is deliberately quiet: ten equal-weight pills read as a site map and
   pull first-time readers out of the homepage before they reach the theme */
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; padding: 8px 0; }
.main-nav a {
  color: #7d95ab; font-size: 11.5px; font-weight: 500;
  padding: 5px 9px; border-radius: 6px; text-transform: uppercase;
  letter-spacing: 0.4px;
}
.main-nav a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.main-nav a.active { color: #fff; background: var(--accent); }

/* ---------- layout ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; min-height: 70vh; }
.section-title {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent); margin: 34px 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-title .more-link { font-size: 11px; color: var(--text-dim); letter-spacing: 0.5px; }
.section-title.xl { font-size: 24px; letter-spacing: 2.5px; margin-bottom: 18px; }
.section-title.xl .more-link { font-size: 13px; text-transform: none; letter-spacing: 0.5px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 55%, #cfe8fa 100%);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 34px 34px 30px; position: relative; overflow: hidden;
  box-shadow: 0 2px 10px rgba(30, 90, 140, 0.08);
}
.hero::before {
  content: "TODAY'S PATCH"; position: absolute; top: 18px; right: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 4px;
  padding: 3px 8px; background: #fff;
}
.hero .patch-date { font-family: var(--mono); color: var(--accent2); font-size: 13px; letter-spacing: 1px; }
.hero h1 { font-family: var(--serif); font-size: 36px; margin: 8px 0 10px; color: var(--text); }
.hero p { color: var(--text-dim); max-width: 640px; }
.hero .btn { margin-top: 18px; }

.btn {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 9px 18px; border-radius: 6px;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; display: block; color: var(--text);
  transition: border-color .15s, background .15s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(30, 90, 140, 0.07);
}
.card:hover { background: var(--panel-hover); border-color: var(--accent); text-decoration: none; box-shadow: 0 3px 12px rgba(30, 90, 140, 0.14); }
.card .kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 6px;
}
.card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 6px; color: var(--text); }
.card p { font-size: 13.5px; color: var(--text-dim); }
.card .card-meta { margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }

/* two-column home rows */
.home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .home-cols { grid-template-columns: 1fr; } }

/* ---------- article page ---------- */
.article { max-width: 760px; margin: 0 auto; }
.breadcrumb { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-bottom: 18px; }
.article-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.article h1 { font-family: var(--serif); font-size: 34px; color: var(--text); line-height: 1.25; margin-bottom: 8px; }
.article .subtitle { color: var(--text-dim); font-size: 16px; margin-bottom: 20px; }
.article h2 {
  font-family: var(--mono); font-size: 14px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent2); margin: 30px 0 10px;
  border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.article p { margin-bottom: 12px; font-size: 15.5px; }
.article ul { margin: 0 0 14px 22px; }
.article li { margin-bottom: 5px; font-size: 15px; }
.article .placeholder {
  color: var(--text-dim); font-style: italic; border-left: 3px solid var(--border);
  padding: 8px 14px; background: var(--bg-alt); border-radius: 0 6px 6px 0;
  font-size: 14px; margin: 14px 0;
}

/* stat block */
.stat-block {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin: 18px 0; font-family: var(--mono); font-size: 13px;
}
.stat-block .stat-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 4px 0; border-bottom: 1px dashed #b9d4ea88;
}
.stat-block .stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text-dim); }
.stat-value { color: var(--text); text-align: right; }
.stars { color: var(--gold); letter-spacing: 2px; }
.stars .off { color: #c9d8e6; }

/* status badges */
.badge {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 1px; text-transform: uppercase; border-radius: 4px;
  padding: 2px 8px; font-weight: 700;
}
.badge.rising { background: #dff5e7; color: var(--green); border: 1px solid #9ed9b4; }
.badge.falling { background: #fcE8e1; color: var(--red); border: 1px solid #eab29e; }
.badge.stable { background: #dff2f8; color: var(--accent2); border: 1px solid #9cd2e0; }
.badge.volatile { background: #ece2fb; color: var(--purple); border: 1px solid #c5aef0; }

/* buff / nerf lines */
.buff { color: var(--green); }
.nerf { color: var(--red); }
.buff::before { content: "▲ "; font-size: 11px; }
.nerf::before { content: "▼ "; font-size: 11px; }

/* ---------- tags ---------- */
.tag-row { margin: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 11px;
  background: #fff;
}
.tag:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.tag.mechanic { color: var(--purple); border-color: #c5aef0; }
.tag.mechanic:hover { color: var(--purple); border-color: var(--purple); }

/* related links */
.related {
  margin-top: 34px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
}
.related h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px;
}
.related a { display: block; padding: 3px 0; font-size: 14px; }

/* editorial rule box */
.editorial-key {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px;
  font-family: var(--mono); font-size: 10.5px; color: var(--text-dim);
}
.editorial-key span::before { content: "■ "; }
.editorial-key .fact::before { color: var(--green); }
.editorial-key .interp::before { color: var(--accent2); }
.editorial-key .metaphor::before { color: var(--gold); }

/* ---------- list pages ---------- */
.page-head { margin-bottom: 22px; }
.page-head h1 { font-family: var(--serif); font-size: 30px; color: var(--text); }
.page-head p { color: var(--text-dim); max-width: 680px; }

.list-row {
  display: flex; align-items: baseline; gap: 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 20px; margin-bottom: 10px; color: var(--text);
  box-shadow: 0 1px 3px rgba(30, 90, 140, 0.06);
}
.list-row:hover { background: var(--panel-hover); border-color: var(--accent); text-decoration: none; }
.list-row .row-date { font-family: var(--mono); font-size: 12px; color: var(--accent2); min-width: 110px; }
.list-row .row-title { font-family: var(--serif); font-size: 17px; color: var(--text); flex: 1; }
.list-row .row-sub { font-size: 12.5px; color: var(--text-dim); }
@media (max-width: 600px) { .list-row { flex-direction: column; gap: 4px; } }

/* meta report power table */
.power-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.power-table th {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-dim); text-align: left;
  border-bottom: 1px solid var(--border); padding: 8px 10px;
}
.power-table td { padding: 9px 10px; border-bottom: 1px solid #d5e5f2; }
.power-table tr:hover td { background: var(--bg-alt); }
.rank-num { font-family: var(--mono); color: var(--accent); font-weight: 700; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 26px 20px; }
.footer-inner p { font-size: 13px; color: var(--text-dim); }
.footer-note { margin-top: 6px; font-size: 12px !important; }

/* ---------- archive ---------- */
.wikilink { color: var(--accent2); border-bottom: 1px dotted #7fc0d4; }
.wikilink:hover { text-decoration: none; border-bottom-color: var(--accent2); }
.wikilink.unresolved { color: var(--text-dim); border-bottom: 1px dotted var(--border); cursor: default; }

.embed {
  background: var(--bg-alt); border-left: 3px solid var(--accent2);
  border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 10px 0;
}
.embed-text { font-family: var(--serif); font-size: 15px; color: var(--text); }
.embed-src { margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.embed-flag {
  color: #9a6c0a; border: 1px solid #e0c076; border-radius: 4px; background: #fdf4dc;
  padding: 1px 6px; margin-left: 6px; font-size: 9.5px; letter-spacing: 0.5px;
}
.embed.missing { border-left-color: var(--red); color: var(--text-dim); font-size: 13px; }
.embed-item { list-style: none; margin-left: -22px; }
.embed-note { font-size: 13.5px; color: var(--text-dim); font-style: italic; margin: -4px 0 10px 19px; }

.callout {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; margin: 14px 0; background: var(--bg-alt);
}
.callout-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 6px; color: var(--accent2);
}
.callout.warning { border-color: #e0c076; background: #fdf7e6; }
.callout.warning .callout-title { color: #9a6c0a; }
.callout p { font-size: 14px; color: var(--text-dim); margin-bottom: 4px; }

.dv-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 13.5px; }
.dv-table th {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-dim); text-align: left;
  border-bottom: 1px solid var(--border); padding: 6px 10px;
}
.dv-table td { padding: 7px 10px; border-bottom: 1px solid #d5e5f2; vertical-align: top; }
.dv-table tr:hover td { background: var(--bg-alt); }
.dv-note {
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  border: 1px dashed var(--border); border-radius: 6px; padding: 8px 14px; margin: 8px 0 16px;
  background: #fff;
}
.dv-list { margin: 0 0 14px 22px; }

.codeblock {
  background: #f2f7fb; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; margin: 12px 0; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; color: #40566e; line-height: 1.5;
}
.archive-note h2 { margin-top: 26px; }
.archive-note hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.archive-note blockquote {
  border-left: 3px solid var(--border); padding: 6px 14px; margin: 12px 0;
  color: var(--text-dim); font-size: 14.5px;
}

/* ---------- servers & maps ---------- */
.server-map {
  background: var(--map-sea); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin: 16px 0 6px;
  box-shadow: inset 0 0 30px rgba(30, 90, 140, 0.10);
}
.server-map svg { display: block; width: 100%; height: auto; }
.map-caption {
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  margin: 6px 0 20px;
}
.map-land { fill: var(--map-land); stroke: var(--map-land-stroke); stroke-width: 0.4; stroke-linejoin: round; }
.map-grid line { stroke: rgba(30, 90, 140, 0.10); stroke-width: 0.15; }
.map-node { cursor: pointer; }
.map-node circle { stroke: #fff; stroke-width: 0.6; }
.map-node.t1 circle { fill: var(--accent); }
.map-node.t2 circle { fill: var(--accent2); }
.map-node.t3 circle { fill: #7d95ab; }
.map-node text {
  font-family: var(--mono); font-size: 2.6px; fill: var(--text);
  paint-order: stroke; stroke: rgba(255,255,255,0.85); stroke-width: 0.5;
}
.map-node:hover circle { stroke: var(--gold); }
.map-route { stroke: var(--accent2); stroke-width: 0.35; stroke-dasharray: 1 1; fill: none; opacity: 0.65; }
.map-legend {
  display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono);
  font-size: 10.5px; color: var(--text-dim); margin-bottom: 16px;
}
.map-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

.ver-chip {
  display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12px;
  background: var(--accent); color: #fff; border-radius: 5px; padding: 2px 9px;
  letter-spacing: 1px; margin-right: 8px;
}
.version-row { display: flex; gap: 16px; align-items: stretch; }
.version-row .card { flex: 1; }
.mini-map {
  width: 150px; min-width: 150px; border-radius: 8px; overflow: hidden;
  background: var(--map-sea); border: 1px solid var(--border);
}
.mini-map svg { display: block; width: 100%; height: 100%; }
@media (max-width: 600px) { .mini-map { display: none; } }

.timeline-list { margin: 10px 0 20px; border-left: 2px solid var(--border); padding-left: 0; }
.timeline-item {
  display: flex; gap: 14px; align-items: baseline; padding: 7px 0 7px 18px;
  position: relative;
}
.timeline-item::before {
  content: ""; position: absolute; left: -5px; top: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
}
.timeline-item .tl-year {
  font-family: var(--mono); font-size: 12px; color: var(--accent2);
  min-width: 92px; font-weight: 700;
}
.timeline-item .tl-text { font-size: 14.5px; }
.version-nav {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 30px;
  font-family: var(--mono); font-size: 12.5px;
}

/* ---------- server bundles (factions / players grouped by server) ---------- */
.server-bundle {
  border: 1px solid var(--border);
  border-left: 5px solid var(--srv, var(--accent));
  border-radius: 12px;
  background: #f5fafe;
  padding: 18px 22px 20px;
  margin: 0 0 26px;
  box-shadow: 0 1px 5px rgba(30, 90, 140, 0.07);
}
.bundle-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; border-bottom: 2px solid var(--srv, var(--accent));
  padding-bottom: 8px; margin-bottom: 4px;
}
.bundle-head h2 {
  font-family: var(--serif); font-size: 23px; color: var(--srv, var(--accent));
}
.bundle-head a { font-family: var(--mono); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.bundle-head a:hover { color: var(--srv, var(--accent)); }
.era-title {
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-dim); margin: 18px 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.era-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.era-title .more-link { font-size: 10px; color: var(--text-dim); letter-spacing: 0.5px; }
.era-title .more-link:hover { color: var(--srv, var(--accent)); }

/* mechanic explainers */
.mech-card { margin-bottom: 24px; border-left: 4px solid var(--purple); }
.mech-card:hover { background: var(--panel); border-color: var(--border); border-left-color: var(--purple); box-shadow: 0 1px 4px rgba(30, 90, 140, 0.07); }
.mech-tagline { font-family: var(--serif); font-size: 17px; color: var(--text); margin-bottom: 10px; }
.mech-body { font-size: 14.5px; color: var(--text-dim); margin-bottom: 10px; line-height: 1.65; }
.mech-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-top: 14px; }
@media (max-width: 600px) { .mech-cols { grid-template-columns: 1fr; } }
.mech-h {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--green); margin-bottom: 6px;
}
.mech-h.nerf-h { color: var(--red); }
.mech-cols ul { list-style: none; margin: 0; padding: 0; }
.mech-cols li { font-size: 13.5px; margin-bottom: 4px; }

/* economy Q&A */
.qa-q {
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  color: #fff; background: var(--accent); border-radius: 8px;
  min-width: 34px; height: 34px; display: inline-flex;
  align-items: center; justify-content: center; align-self: flex-start;
}

/* hover preview cards */
#hovercard {
  position: fixed; z-index: 200; max-width: 340px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(20, 50, 80, 0.18);
  padding: 12px 15px; pointer-events: auto;
  animation: hcFade 0.12s ease-out;
}
@keyframes hcFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
#hovercard .hc-kicker {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 4px;
}
#hovercard .hc-title { font-family: var(--serif); font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
#hovercard .hc-body { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

/* ---------- homepage v2 (design-guide layout) ---------- */
img { max-width: 100%; }
.imgph {
  border: 2px dashed var(--border); border-radius: 10px; width: 100%;
  background: repeating-linear-gradient(45deg, #eef5fb, #eef5fb 14px, #e3eef9 14px, #e3eef9 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--text-dim); font-family: var(--mono); font-size: 11px;
  text-align: center; padding: 12px; line-height: 1.5;
}
.imgph span { font-size: 26px; opacity: 0.6; }
.imgph em { font-style: normal; max-width: 90%; }
.ph-img { border-radius: 10px; display: block; width: 100%; object-fit: cover; }
.ph-hero { aspect-ratio: 16 / 11; }
.ph-news { aspect-ratio: 16 / 10; }
.ph-banner { aspect-ratio: 4 / 3; }
.ph-portrait { aspect-ratio: 3 / 4; }
.ph-article { aspect-ratio: 16 / 9; margin: 6px 0 16px; }
.ph-side { max-width: 300px; margin: 6px 0 16px; }

/* full-screen hero — Today's Patch fills most of the viewport, bright palette */
.hero-patch {
  padding: 26px; overflow: hidden; position: relative;
  /* deliberately short of a full viewport: the gold theme bundle below must
     break the fold, which pulls the reader down better than any scroll cue */
  min-height: clamp(440px, calc(86vh - 230px), 820px);
  display: flex;
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 55%, #cfe8fa 100%);
  border-color: var(--border);
  margin-bottom: 20px; /* the rest of the gap comes from .cue-row */
}
.hero-patch::before { display: none; }
.hero-patch .patch-date { color: var(--accent2); }
.hero-patch h1 { font-size: clamp(38px, 5vw, 64px); color: var(--text); line-height: 1.08; margin: 10px 0 14px; }
.hero-patch p { color: var(--text-dim); font-size: 16.5px; max-width: 520px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 46%); gap: 8px; align-items: center; width: 100%; }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 10px 26px 10px 14px; position: relative; z-index: 3;
  animation: heroUp 0.8s ease both;
}
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.btnrow-hero { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; align-items: flex-start; }
/* secondary hero exit, demoted from a button so the primary CTA stands alone */
.hero-sublink { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.4px; }
.hero-sublink:hover { color: var(--accent); }
.btn.ghost-light { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost-light:hover { background: #e3f2fd; }
/* hero image: pinned to the card's right edge, dissolving leftward into the background,
   with the fade finishing well clear of the text column */
.hero-patch .ph-img.ph-hero {
  aspect-ratio: auto; border-radius: 0; margin: 0;
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 51%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to left, #000 45%, rgba(0,0,0,0.35) 70%, transparent 90%);
  mask-image: linear-gradient(to left, #000 45%, rgba(0,0,0,0.35) 70%, transparent 90%);
}
/* the cue lives in the gap between the hero card and the theme bundle */
.cue-row { display: flex; justify-content: center; margin: 0 0 24px; }
.scroll-cue {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  color: var(--text-dim); white-space: nowrap;
  animation: cueBob 1.7s ease-in-out infinite;
}
/* the cue names the section below it, so it is a real control, not an arrow */
button.scroll-cue {
  background: transparent; border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 16px; cursor: pointer; color: var(--text-dim); font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
button.scroll-cue:hover { background: #fdf8ee; border-color: #e0c079; color: #8a6a16; }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (max-width: 760px) {
  .hero-patch { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-patch h1 { font-size: 32px; }
  .cue-row { display: none; }
  .hero-copy { padding: 4px 4px 18px; }
  .hero-patch .ph-img.ph-hero {
    position: static;
    margin: 0 -26px -26px;
    width: calc(100% + 52px);
    height: auto; aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(to top, #000 60%, transparent 100%);
    mask-image: linear-gradient(to top, #000 60%, transparent 100%);
  }
}

/* scroll-reveal transitions for home sections */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy { animation: none; }
  .scroll-cue { animation: none; }
}

/* meta section — bright palette: white base, blue power cards */
.meta-dark {
  background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 24px 26px;
  color: var(--text); box-shadow: 0 2px 10px rgba(30, 90, 140, 0.10);
}
.meta-dark-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.meta-dark-head b { font-family: var(--serif); font-size: 22px; color: var(--text); }
.meta-dark-head span { font-size: 13.5px; color: var(--text-dim); max-width: 640px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.meta-power {
  background: linear-gradient(150deg, #e6f2fc 0%, #d8eafa 100%); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; color: var(--text); display: block;
  box-shadow: 0 1px 3px rgba(30, 90, 140, 0.06);
}
.meta-power:hover { background: linear-gradient(150deg, #d8ecfb 0%, #c8e2f7 100%); border-color: var(--accent); text-decoration: none; box-shadow: 0 3px 10px rgba(30, 90, 140, 0.14); }
.meta-power .mp-name { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.meta-power p { font-size: 12px; color: var(--text-dim); margin-top: 7px; line-height: 1.5; }

/* server browser cards */
.server-card .mini-map.wide { display: block; width: 100%; min-width: 0; margin-bottom: 12px; }
.cta-line { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 10px; }

/* news lead + banners */
.news-lead, .faction-banner, .player-card {
  display: grid; gap: 22px; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px; color: var(--text); margin-bottom: 10px;
  box-shadow: 0 1px 5px rgba(30, 90, 140, 0.07);
}
.news-lead { grid-template-columns: 38% 1fr; }
.faction-banner { grid-template-columns: 30% 1fr; }
.player-card { grid-template-columns: 24% 1fr; }
.news-lead:hover, .faction-banner:hover, .player-card:hover { border-color: var(--accent); text-decoration: none; background: var(--panel-hover); }
.news-lead h3, .faction-banner h3, .player-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.news-lead p, .faction-banner p, .player-card p { font-size: 14px; color: var(--text-dim); }
.news-analysis { margin-top: 8px; font-size: 13.5px !important; border-left: 3px solid var(--border); padding-left: 10px; }
.fb-stats { margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--text) !important; line-height: 1.9; }
@media (max-width: 700px) { .news-lead, .faction-banner, .player-card { grid-template-columns: 1fr; } }

/* monthly theme bundle — wraps banner, meta, and era picks in one block */
.theme-bundle { --srv: #b07d10; background: #fdf8ee; }
.theme-bundle .meta-dark { margin-bottom: 4px; }

/* Q&A campaign tile — banner-sized Q instead of an image */
.qa-big {
  aspect-ratio: 4 / 3; width: 100%; border-radius: 10px;
  background: linear-gradient(135deg, #dff0fc, #bcdcf2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.qa-big span {
  font-family: var(--serif); font-weight: 700; font-size: 84px;
  color: var(--accent); opacity: 0.85;
}

/* plain Q&A list */
.qa-plain { list-style: none; margin: 0; padding: 0; }
.qa-plain li { border-bottom: 1px solid var(--border); }
.qa-plain a {
  display: block; padding: 12px 4px; font-family: var(--serif);
  font-size: 18px; color: var(--text);
}
.qa-plain a:hover { color: var(--accent); text-decoration: none; padding-left: 10px; transition: padding-left .15s; }

/* Court of Nations mini-game */
/* Frameless embed: the iframe is auto-sized to the game's content (Court.syncFrame),
   so the game flows in the page with no inner scrollbar or visible window. */
.game-frame iframe {
  display: block; width: 100%; border: 0; overflow: hidden;
  height: 900px; /* initial guess; JS takes over once the game loads */
}
.court-fig h3 { margin-bottom: 8px; }
.court-aptitudes { margin-bottom: 8px; }
.court-aptitudes .tag { cursor: default; }
.court-stats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.cstat {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-dim);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px;
}
.cstat.hi { color: #9a6c0a; background: #fdf4dc; border-color: #e0c076; font-weight: 700; }
.court-desc { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin-top: 4px; }

/* not found */
.notfound { text-align: center; padding: 80px 0; color: var(--text-dim); font-family: var(--mono); }
