/* Cormorant Garamond — self-hosted to keep CSP `font-src 'self'`. Two files
   cover 500/600/700 normal + 500/600 italic for the latin range; subsequent
   @font-face rules point each weight at the matching style file (Google's
   served URLs are identical across these weights, so one file per style is
   enough — the browser renders the requested weight via the font's metadata). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/vendor/fonts/cormorant-garamond-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/vendor/fonts/cormorant-garamond-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/vendor/fonts/cormorant-garamond-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/vendor/fonts/cormorant-garamond-latin-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/vendor/fonts/cormorant-garamond-latin-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1a1f25;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --dim: #586069;
  --gold: #f0c674;
  --red: #da3633;
  --blue: #1f6feb;
  --green: #3fb950;
  --purple: #8957e5;
  --gap: 16px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
/* Markdown-rendered prose: underline links so the click affordance is visible.
   All four markdown sinks (battle summary, player achievement, system desc,
   news body) live inside .notes-wrap. Underline only inside that container so
   nav/badges/tab-style anchors elsewhere stay undecorated. */
.notes-wrap a { text-decoration: underline; text-underline-offset: 2px; }
.notes-wrap a:hover { text-decoration-thickness: 2px; }

/* NAV */
.nav { background: var(--panel); border-bottom: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.nav .brand { font-weight: 700; font-size: 18px; color: var(--gold); cursor: pointer; }
.nav .brand:hover { color: #ffe48b; }
.nav .links { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.nav .links a { padding-bottom: 2px; }
.nav .links a:hover { color: var(--text); }
.nav .links a.active { color: var(--text); border-bottom: 2px solid var(--gold); }

/* SECTION HEADERS */
.section-label { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin: 16px 0 8px; }

/* PAGE PADDING — matches Refined Gothic reference (20px 28px 60px on the
   dashboard, 28px 28px 60px on index/detail pages). 1400px cap so the
   hero grid doesn't sprawl on ultrawide. */
.page { padding: 20px 28px 60px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 700px) {
  .page { padding: 16px 16px 40px; }
}

/* PANEL */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
/* Panel head — uppercase eyebrow + dim meta on the right. Used on dashboard
   bottom-row panels and on the index pages (Players / Planets / Battles).
   Direct child selector keeps deeper .panel-head usages (e.g. nested cards)
   unaffected. */
.panel > .panel-head { padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.panel > .panel-head .meta { color: var(--dim); text-transform: none; letter-spacing: 0.05em; }
.panel-head .view-all { color: var(--gold); text-decoration: none; margin-left: 6px; }
.panel-head .view-all:hover { color: var(--text); }

/* ANNOUNCEMENT */
.announcement { background: linear-gradient(90deg,#3a1f1a 0%,#1a0f0d 100%); border-bottom: 1px solid #6b2a1a; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.announcement .body { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; min-width: 0; }
.announcement .badge { background: var(--gold); color: var(--bg); font-size: 9px; font-weight: 700; letter-spacing: 0.15em; padding: 3px 8px; border-radius: 3px; flex-shrink: 0; }
.announcement .headline { font-size: 13px; color: var(--gold); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.announcement .sep { color: var(--muted); flex-shrink: 0; opacity: 0.6; }
.announcement .date { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.announcement .dismiss { background: transparent; border: 1px solid #6b2a1a; color: var(--muted); width: 22px; height: 22px; border-radius: 3px; cursor: pointer; font-size: 14px; line-height: 1; flex-shrink: 0; }
.announcement .dismiss:hover { color: var(--text); border-color: var(--gold); }

/* STANDINGS */
.standings { position: relative; }
/* Nav buttons sit outside the panel bounds so the player-card grid keeps the
   full panel width (matches Sector Map / Vox-Cast / Sector Control width). */
.standings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
/* Hide native scrollbar — left/right nav buttons handle paging on .has-nav. */
.standings-grid.scrollable { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; -ms-overflow-style: none; }
.standings-grid.scrollable::-webkit-scrollbar { display: none; }
.standings-grid.scrollable .player-card { flex: 0 0 calc((100% - 36px) / 4); scroll-snap-align: start; min-width: 180px; }
@media (max-width: 900px) {
  .standings-grid { grid-template-columns: repeat(2, 1fr); }
  .standings-grid.scrollable .player-card { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 480px) {
  .standings-grid { grid-template-columns: 1fr; }
  .standings-grid.scrollable .player-card { flex-basis: 100%; }
}
.standings-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 56px; background: var(--panel); border: 1px solid var(--border); color: var(--text); cursor: pointer; border-radius: var(--radius); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 2; }
.standings-nav:hover { border-color: var(--gold); color: var(--gold); }
.standings-nav.prev { left: -36px; }
.standings-nav.next { right: -36px; }
.player-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; }
.player-card:hover { border-color: var(--gold); }
.player-card.top { border-top: 3px solid var(--gold); }
.player-card .rank { font-size: 10px; color: var(--muted); letter-spacing: 0.25em; }
.player-card.top .rank { color: var(--gold); }
.player-card .rank-planets { color: var(--dim); }
.player-card.top .rank-planets { color: var(--dim); }
.player-card .name { font-size: 18px; font-weight: 700; margin-top: 6px; }
.player-card .faction { font-size: 11px; color: var(--muted); margin-top: 2px; }
/* Stats row matches Refined Gothic spec: gap 16, top divider, serif value
   numerals, dim 0.2em-tracked uppercase keys. Left-justified per GM
   follow-up — abbreviations keep the trio compact. */
.player-card .stats { display: flex; justify-content: flex-start; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; }
.player-card .stats span { display: inline-flex; flex-direction: column; gap: 2px; }
.player-card .stats .k { color: var(--dim); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; }
.player-card .stats b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 16px; font-weight: 700; }

/* DISPATCHES (Vox-Cast feed — dispatches + GM announcements merged) */
.dispatches .entry { padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.dispatches .entry:last-child { border-bottom: none; }
.dispatches .entry:hover { background: var(--panel-2); }
.dispatches .entry .date { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dispatches .entry .headline { font-size: 14px; font-weight: 600; margin-top: 2px; }
.dispatches .entry .lede { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* GM Announcement decoration: gold left rail + warning badge so the entry
   is unmistakably a meta/admin post rather than in-fiction news. */
.dispatches .entry--announcement { border-left: 3px solid var(--gold); padding-left: 13px; background: rgba(240, 198, 116, 0.04); }
.dispatches .entry--announcement:hover { background: rgba(240, 198, 116, 0.09); }
.dispatches .entry .kind-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); background: rgba(240, 198, 116, 0.12); border: 1px solid rgba(240, 198, 116, 0.4); padding: 2px 6px; border-radius: 3px; }
/* Pinned dispatch decoration: purple left rail + purple badge. Sorted just
   below active GM announcements; calls attention without competing for the
   gold-rail "admin proclamation" voice. */
.dispatches .entry--pinned { border-left: 3px solid var(--purple); padding-left: 13px; background: rgba(137, 87, 229, 0.05); }
.dispatches .entry--pinned:hover { background: rgba(137, 87, 229, 0.10); }
.dispatches .entry .kind-badge.pinned { color: var(--purple); background: rgba(137, 87, 229, 0.14); border-color: rgba(137, 87, 229, 0.45); margin-right: 6px; }
/* News page archive — same purple rail on the bulletin list pinned entries. */
.news-index .entry--pinned { border-left: 3px solid var(--purple); padding-left: 13px; background: rgba(137, 87, 229, 0.05); }
.news-index .entry--pinned:hover { background: rgba(137, 87, 229, 0.10); }
.news-index .entry .kind-badge.pinned { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--purple); background: rgba(137, 87, 229, 0.14); border: 1px solid rgba(137, 87, 229, 0.45); padding: 2px 6px; border-radius: 3px; margin-right: 6px; }

/* Empty-state placeholder for index pages (Players / Battles / Systems / News).
   Signals "page works, no data yet" so visitors don't read empty as broken. */
.panel.empty .empty-msg { padding: 28px 16px; text-align: center; color: var(--muted); font-style: italic; font-size: 13px; }

/* DATA-FRESHNESS BANNER */
.freshness-banner { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 14px; background: #1f3f6f; color: #cfe0ff; border-bottom: 2px solid #58a6ff; font-size: 13px; text-align: center; }
.freshness-banner .reload { background: #58a6ff; color: #0d1117; border: none; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-weight: 700; }
.freshness-banner .reload:hover { background: #79b8ff; }

/* EVENT BAR */
.event-bar { display: flex; align-items: stretch; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 8px; min-height: 40px; }
.event-bar .label { background: var(--red); color: #fff; padding: 0 12px; display: flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; flex-shrink: 0; }
.event-bar .list { display: flex; flex: 1; min-width: 0; align-items: stretch; overflow: hidden; }
.event-bar .chip { padding: 10px 14px; font-size: 13px; color: var(--text); cursor: pointer; border-right: 1px solid var(--border); white-space: nowrap; flex: 0 0 auto; }
.event-bar .chip.hidden { display: none; }
.event-bar .chip:hover { background: var(--panel-2); color: var(--gold); }
.event-bar .chip .when { color: var(--dim); font-size: 10px; margin-left: 6px; }
.event-bar .more { padding: 0 14px; display: flex; align-items: center; font-size: 11px; color: var(--muted); cursor: pointer; flex-shrink: 0; background: var(--panel-2); }
.event-bar .more.hidden { display: none; }
.event-bar .more:hover { color: var(--gold); }
.event-bar .empty { padding: 0 14px; display: flex; align-items: center; font-size: 12px; color: var(--muted); font-style: italic; }

/* GALAXY MAP */
.galaxy { background: radial-gradient(ellipse at center,#0a1428 0%,#020611 70%); border: 1px solid var(--border); border-radius: var(--radius); position: relative; height: 320px; overflow: hidden; cursor: grab; user-select: none; }
.galaxy:active { cursor: grabbing; }
.galaxy .header { position: absolute; top: 8px; left: 14px; font-size: 10px; letter-spacing: 0.2em; color: var(--muted); z-index: 2; pointer-events: none; }
.galaxy .hint { position: absolute; bottom: 8px; left: 14px; font-size: 9px; color: var(--dim); z-index: 2; pointer-events: none; }
.galaxy .zoom-ctrls { position: absolute; top: 32px; right: 12px; display: flex; flex-direction: column; gap: 2px; z-index: 3; }
.galaxy .zoom-ctrls button { width: 28px; height: 28px; background: rgba(22,27,34,0.85); border: 1px solid var(--border); color: var(--text); cursor: pointer; border-radius: 3px; font-size: 14px; }
.galaxy .zoom-ctrls button:hover { border-color: var(--gold); }
.galaxy svg { display: block; width: 100%; height: 100%; }

/* Central sun — corona + glow pulse on offset cycles for a subtle, unhurried
   breathing effect. transform-box:fill-box pins scaling origin to the
   circle's bounding box so it pulses around its own center, not the SVG (0,0).
   Class-only selector so the GM editor's planets-map SVG inherits the same
   visual without duplicating CSS. prefers-reduced-motion respected below. */
.sun-corona,
.sun-glow { transform-box: fill-box; transform-origin: center; }
.sun-corona { animation: galaxy-sun-pulse 6s ease-in-out infinite alternate; }
.sun-glow   { animation: galaxy-sun-pulse 4s ease-in-out infinite alternate; animation-delay: -1.2s; }
@keyframes galaxy-sun-pulse {
  from { opacity: 0.85; transform: scale(0.96); }
  to   { opacity: 1.00; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .sun-corona, .sun-glow { animation: none; }
}

.galaxy g.planet:hover circle:last-of-type { stroke: var(--gold); stroke-width: 1.5; }
/* Faction highlight (driven by sector-control row hover): non-matching
   planets fade so the focused faction's holdings stand out. transition keeps
   the swap from feeling jumpy. */
.galaxy g.planet { transition: opacity 200ms ease; }
.galaxy g.planet.dim { opacity: 0.18; }
.galaxy .tooltip { position: absolute; background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 10px 12px; min-width: 200px; box-shadow: 0 8px 20px rgba(0,0,0,0.6); z-index: 4; font-size: 11px; pointer-events: none; }
.galaxy .tooltip .header-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 6px; }
.galaxy .tooltip .name { font-size: 13px; font-weight: 700; color: var(--gold); }
.galaxy .tooltip .badge { font-size: 9px; padding: 2px 6px; border-radius: 3px; font-weight: 700; letter-spacing: 0.1em; }
.galaxy .tooltip .badge.contested { background: var(--gold); color: var(--bg); }
.galaxy .tooltip .badge.held      { background: var(--green); color: var(--bg); }
.galaxy .tooltip .badge.unclaimed { background: var(--dim); color: var(--text); }
.galaxy .tooltip .meta { color: var(--muted); line-height: 1.6; }
.galaxy .tooltip .meta .k { color: var(--dim); }
.galaxy .tooltip .influence { margin-top: 8px; }
.galaxy .tooltip .influence .k { font-size: 9px; color: var(--dim); letter-spacing: 0.2em; margin-bottom: 4px; }
.galaxy .tooltip .influence-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--bg); }
.galaxy .tooltip .influence-bar .seg { height: 100%; }
.galaxy .tooltip .influence-labels { display: flex; justify-content: space-between; font-size: 9px; margin-top: 3px; gap: 8px; }

/* PLAYER / DETAIL PAGES */
.error { background: #3a1f1a; border: 1px solid #6b2a1a; padding: 12px 16px; border-radius: var(--radius); color: var(--gold); margin: 16px 0; }
.player-page .player-header { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.player-page .avatar { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; background: var(--panel); border: 1px solid var(--border); }
.player-page .name { font-size: 28px; font-weight: 700; padding-bottom: 4px; }
.player-page .faction { font-size: 13px; color: var(--muted); }
.player-page .force-name { font-size: 12px; color: var(--dim); font-style: italic; }
.player-page .stats { padding: 14px; display: flex; gap: 24px; flex-wrap: wrap; }
.player-page .stats .stat .k { color: var(--muted); margin-right: 6px; font-size: 11px; letter-spacing: 0.2em; }
.player-page .stats .stat b { font-size: 16px; }
.player-page .notes-wrap { padding: 14px; }
.player-page .notes h1, .player-page .notes h2, .player-page .notes h3 { color: var(--gold); margin-top: 0; }
.player-page .systems, .player-page .battles { padding: 8px; display: flex; flex-direction: column; }
.player-page .systems a, .player-page .battles a { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.player-page .systems a:last-child, .player-page .battles a:last-child { border-bottom: none; }
.player-page .systems a:hover, .player-page .battles a:hover { background: var(--panel-2); color: var(--gold); }
.muted { color: var(--muted); padding: 8px 12px; }
/* Detail-page reading column matches news-detail (720px). */
.battle-page { max-width: 720px; margin: 0 auto; }
.battle-page .fmt-badge { margin-bottom: 8px; }
.battle-page .title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.battle-page .title { font-size: 28px; margin: 0; }
.battle-page .date { font-size: 10px; color: var(--muted); letter-spacing: 0.2em; margin: 4px 0 16px; }
.battle-page .vs { color: var(--muted); font-weight: normal; font-size: 18px; }
.battle-page .system { font-size: 13px; color: var(--muted); }
.battle-page .system a { color: var(--gold); }
.battle-page .matchup-wrap { padding: 14px 18px; }
.battle-page .matchup { padding-left: 8px; }
.battle-page .result { padding: 14px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.battle-page .result .vp-list { margin-top: 0; align-items: center; }
.battle-page .result .k { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.battle-page .result .outcome { font-size: 15px; font-weight: 600; }
.battle-page .result .outcome a { text-decoration: none; }
.battle-page .result .outcome a:hover { text-decoration: underline; text-underline-offset: 2px; }
/* Summary prose needs left/right gutter so <p> doesn't sit flush against panel edge. */
.battle-page .notes-wrap { padding: 16px 24px; }
.battle-page .summary p { line-height: 1.7; margin: 0 0 14px; }
.battle-page .summary p:last-child { margin-bottom: 0; }

/* NEWS INDEX — same centered blog column as detail view for visual continuity.
   .news-index-wrap centres both the section label and the panel; .news-index
   keeps the panel-level max-width for safety on pages that don't use the wrap. */
.news-index-wrap { max-width: 720px; margin: 0 auto; }
.news-index { max-width: 720px; margin: 0 auto; }
.news-index .entry { display: block; padding: 16px 32px; border-bottom: 1px solid var(--border); }
.news-index .entry:last-child { border-bottom: none; }
.news-index .entry:hover { background: var(--panel-2); }
.news-index .entry .date { font-size: 10px; color: var(--muted); letter-spacing: 0.2em; }
.news-index .entry .headline { font-size: 16px; font-weight: 600; margin-top: 2px; }
.news-index .entry .lede { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
@media (max-width: 600px) { .news-index .entry { padding: 14px 18px; } }

/* NEWS DETAIL — centered blog/news column. Capped width for reading
   line-length (~720px = comfortable 70-80ch). notes-wrap supplies the
   horizontal gutter so <p> children don't sit flush against the panel edge. */
.news-detail { max-width: 720px; margin: 0 auto; }
.news-detail .date { font-size: 11px; color: var(--muted); letter-spacing: 0.2em; }
.news-detail .headline { font-size: 32px; margin: 4px 0 8px; }
.news-detail .lede { font-size: 14px; color: var(--muted); margin-bottom: 16px; font-style: italic; }
.news-detail .notes-wrap { padding: 24px 32px; }
.news-detail .body p { line-height: 1.7; margin: 0 0 14px; }
.news-detail .body p:last-child { margin-bottom: 0; }
.news-detail .refs-panel { padding: 14px 32px; margin-top: 16px; display: flex; gap: 16px; }
.news-detail .refs-panel a { color: var(--gold); }
@media (max-width: 600px) {
  .news-detail .notes-wrap { padding: 16px 18px; }
  .news-detail .refs-panel { padding: 12px 18px; }
}

/* Detail-page reading column matches news-detail (720px). */
.system-page { max-width: 720px; margin: 0 auto; }
.system-page .system-header { margin-bottom: 16px; position: relative; padding: 14px 16px; border-radius: var(--radius); overflow: hidden; }
/* Hero image: sits behind text. Darkening overlay + gradient fade ensures legibility
   regardless of source image. text-shadow reinforces against bright spots in image. */
.system-page .system-header.has-hero { min-height: 140px; padding: 24px 20px; border: 1px solid var(--border); }
.system-page .system-header .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.system-page .system-header .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,17,23,0.35) 0%, rgba(13,17,23,0.7) 70%, rgba(13,17,23,0.92) 100%); z-index: 1; }
.system-page .system-header.has-hero .name,
.system-page .system-header.has-hero .meta { position: relative; z-index: 2; text-shadow: 0 2px 8px rgba(0,0,0,0.85); }
.system-page .name { font-size: 32px; font-weight: 700; }
.system-page .meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--muted); }
.system-page .meta .sep { color: var(--dim); opacity: 0.7; }
.system-page .system-header.has-hero .meta { color: #cfd6dd; }
.system-page .system-header.has-hero .meta .sep { color: #cfd6dd; opacity: 0.6; }
.system-page .meta .k { color: var(--muted); }
.system-page .system-header.has-hero .meta .k { color: #cfd6dd; }
.system-page .badge { font-size: 9px; padding: 2px 8px; border-radius: 3px; font-weight: 700; letter-spacing: 0.1em; }
.system-page .badge.contested { background: var(--gold); color: var(--bg); }
.system-page .badge.held { background: var(--green); color: var(--bg); }
.system-page .badge.unclaimed { background: var(--dim); color: var(--text); }
/* Two-col split: battles left, conquest points right. Description below at full width.
   Section is flex-column so inner .panel stretches to fill the row, keeping CP and
   Battles panel heights equal even when CP is empty / Battles is long. */
.system-page .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.system-page .split > section { min-width: 0; display: flex; flex-direction: column; }
.system-page .split > section > .panel { flex: 1; }
/* Empty-state messaging in split panels (battles + cp) reads as a centred
   placeholder, not a left-aligned label — matches the visual weight of the
   empty CP panel so both halves balance. */
.system-page .split .panel .muted { text-align: center; padding: 16px 12px; }
@media (max-width: 600px) { .system-page .split { grid-template-columns: 1fr; } .system-page .split > section { display: block; } }
.system-page .desc-wrap, .system-page .infl-wrap, .system-page .cp-wrap { padding: 14px; }
.system-page .desc { line-height: 1.7; }
.system-page .desc p:first-child { margin-top: 0; }
.system-page .desc p:last-child { margin-bottom: 0; }
.system-page .influence-bar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: var(--bg); }
.system-page .influence-bar .seg { height: 100%; }
.system-page .influence-labels { display: flex; gap: 16px; margin-top: 6px; font-size: 12px; }
.system-page .cp-wrap .cp-row { display: grid; grid-template-columns: 1fr 80px 48px; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--border); align-items: center; }
.system-page .cp-wrap .cp-row:last-child { border-bottom: none; }
.system-page .cp-wrap .cp-row .cp-val { text-align: right; }
.system-page .cp-wrap .cp-row .cp-pct { text-align: right; color: var(--muted, #8b949e); }
.system-page .battles a { display: block; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.system-page .battles a:last-child { border-bottom: none; }
.system-page .battles a:hover { background: var(--panel-2); color: var(--gold); }
/* Empty state — vertically center the "No battles fought here" message in
   the panel so it doesn't sit jammed at the top edge. min-height matches the
   roughly-3-row population the panel typically holds, so the empty state
   doesn't visually shrink the panel either. */
.system-page .battles.is-empty { display: flex; align-items: center; justify-content: center; min-height: 120px; }

/* SYSTEMS / BATTLES / PLAYERS INDEX — same centered column treatment as news
   index. Matches the reading-comfort cap (~720px) so the 4-5 col grids don't
   sprawl across ultrawide viewports. Wrap centres section label + panel; the
   max-width on the panel itself is a fallback for callers without the wrap. */
.systems-index-wrap, .battles-index-wrap, .players-index-wrap { max-width: 720px; margin: 0 auto; }
.systems-index { padding: 0; max-width: 720px; margin: 0 auto; }
.systems-index .row { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr auto; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); align-items: center; }
.systems-index .row:last-child { border-bottom: none; }
.systems-index .row:hover { background: var(--panel-2); }
.systems-index .row .name { font-weight: 600; }
.systems-index .row .type, .systems-index .row .controller { color: var(--muted); font-size: 12px; }
.systems-index .row .badge { font-size: 9px; padding: 2px 8px; border-radius: 3px; font-weight: 700; letter-spacing: 0.1em; justify-self: end; }
.systems-index .row .badge.contested { background: var(--gold); color: var(--bg); }
.systems-index .row .badge.held { background: var(--green); color: var(--bg); }
.systems-index .row .badge.unclaimed { background: var(--dim); color: var(--text); }

.players-index { max-width: 720px; margin: 0 auto; }
.players-index .row { display: grid; grid-template-columns: auto 2fr 2fr auto auto; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--border); align-items: center; }
.players-index .row:last-child { border-bottom: none; }
.players-index .row:hover { background: var(--panel-2); }
.players-index .rank { color: var(--muted); font-size: 11px; letter-spacing: 0.2em; }
.players-index .name { font-weight: 700; }
.players-index .faction, .players-index .tally, .players-index .victories { color: var(--muted); font-size: 12px; }

.battles-index { max-width: 720px; margin: 0 auto; }
.battles-index .row { display: grid; grid-template-columns: auto 2fr 1.5fr auto; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--border); align-items: center; }
.battles-index .row:last-child { border-bottom: none; }
.battles-index .row:hover { background: #232930; }
.battles-index .date { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; }
/* Centre matchup/system/result text within their grid cells so columns
   visually align even when player names / planet names vary in width.
   Without this, each row's text starts at a different x → ragged look. */
.battles-index .matchup { text-align: center; }
.battles-index .system { color: var(--muted); font-size: 12px; text-align: center; }
.battles-index .result { color: var(--gold); font-size: 12px; text-transform: uppercase; text-align: center; }

/* ============================================================
   REFINED GOTHIC — dashboard design language.
   Cormorant Garamond serif on display copy + ember banner +
   Caelia Crusade masthead + 2-col hero (galaxy / Vox-Cast) +
   bottom-row Sector Control / Recent Engagements panels.
   System-font serif fallback keeps CSP self-only — no external font CDN.
   ============================================================ */
.serif { font-family: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: 0.01em; }

/* Brand text now uses the gothic serif voice. Override the bold sans default. */
.nav .brand { font-family: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif; font-weight: 600; font-size: 22px; letter-spacing: 0.02em; }

/* Announcement banner — gothic ember treatment. Keeps existing .body /
   .badge / .headline / .dismiss selectors so e2e tests still bind. */
.announcement { background: linear-gradient(90deg, rgba(58,31,26,0.95) 0%, rgba(26,15,13,0.95) 60%, rgba(13,17,23,0.95) 100%); border-bottom: 1px solid #6b2a1a; border-left: 3px solid var(--gold); padding: 0; align-items: stretch; min-height: 70px; }
.announcement .seal { width: 56px; display: flex; align-items: center; justify-content: center; border-right: 1px solid rgba(240,198,116,0.25); flex-shrink: 0; }
.announcement .seal-mark { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-weight: 700; font-style: italic; }
.announcement .body { padding: 14px 20px; gap: 18px; justify-content: flex-start; }
.announcement .body .badge { font-size: 9px; padding: 3px 8px; }
.announcement .text { min-width: 0; flex: 1; text-align: left; }
.announcement .headline { font-family: "Cormorant Garamond", Georgia, serif; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: left; white-space: normal; overflow: visible; }
.announcement .lede { font-size: 12px; color: #c9b88a; margin-top: 3px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.announcement .meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; padding-left: 14px; border-left: 1px solid rgba(240,198,116,0.2); }
.announcement .date { font-size: 10px; color: #a89372; letter-spacing: 0.15em; text-transform: uppercase; }
.announcement .cta { font-size: 11px; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.announcement .body:hover .cta { color: #ffd98a; }
.announcement .dismiss { border-color: rgba(240,198,116,0.4); color: #a89372; }

/* Campaign masthead — sector kicker, serif title, subtitle, phase badge. */
.masthead { padding: 20px 24px 16px; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 16px; }
.masthead .kicker { font-size: 11px; color: var(--dim); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 4px; }
.masthead .title { font-family: "Cormorant Garamond", "Cormorant", Georgia, serif; font-size: 32px; font-weight: 600; color: var(--gold); line-height: 1.1; letter-spacing: 0.01em; }
.masthead .subtitle { font-size: 12px; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 6px; }
.masthead .phase-badge { padding: 6px 12px; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

/* Hero grid — galaxy 2fr + Vox-Cast 1fr. Wraps existing .galaxy and
   .dispatches so component code stays untouched; only layout shifts. */
.dash-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 20px; }
.dash-hero > .panel-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.dash-hero .panel-head { padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.dash-hero .panel-head .meta { font-size: 10px; color: var(--dim); text-transform: none; letter-spacing: 0.05em; }
.dash-hero .panel-body { flex: 1; min-height: 0; }
/* Galaxy in hero — flatten its border so it slots cleanly into the panel-wrap. */
.dash-hero .galaxy { border: none; border-radius: 0; height: 440px; }
/* Dispatches in hero — flatten its panel border to merge into panel-wrap. */
.dash-hero .dispatches.panel { border: none; border-radius: 0; background: transparent; }
@media (max-width: 1100px) {
  .dash-hero { grid-template-columns: 1fr; }
}

/* Standings podium — keep existing classes; add faction-color side rail
   on the right edge of every player-card. */
.standings .player-card { position: relative; overflow: hidden; }
.standings .player-card .faction-rail { position: absolute; top: 0; right: 0; width: 4px; height: 100%; opacity: 0.55; }
.standings .player-card .name { font-family: "Cormorant Garamond", "Cormorant", Georgia, serif; font-size: 18px; font-weight: 700; }

/* Bottom row — Sector Control + Recent Engagements + Upcoming events.
   Reference uses 1.2fr 1fr 0.8fr to give Sector Control the most width and
   keep Upcoming compact. */
.dash-bottom { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 16px; margin-top: 16px; align-items: start; }
.dash-bottom > .panel { display: flex; flex-direction: column; min-height: 0; }
/* Body of recent-engagements + upcoming clips when JS caps the panel height
   to match sector-control. panel-head stays pinned. No scrollbar — overflow
   rows are simply hidden. JS guarantees at least one row remains visible. */
.dash-bottom .recent-engagements > div:nth-child(2),
.dash-bottom .upcoming > div:nth-child(2) { flex: 1 1 auto; overflow: hidden; min-height: 0; }
.dash-bottom .panel-head { padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
/* Reference panelHead inherits font-size:11px on both spans; .meta only
   strips letter-spacing/text-transform so the count number reads naturally. */
.dash-bottom .panel-head .meta { color: var(--dim); text-transform: none; letter-spacing: 0.05em; }
@media (max-width: 1100px) {
  .dash-bottom { grid-template-columns: 1fr 1fr; }
  .dash-bottom .upcoming { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .dash-bottom { grid-template-columns: 1fr; }
  .dash-bottom .upcoming { grid-column: auto; }
}

/* Upcoming events panel. */
.upcoming .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); gap: 12px; }
.upcoming .row:last-child { border-bottom: none; }
.upcoming .label { font-size: 13px; }
.upcoming .when { font-size: 13px; color: var(--gold); font-weight: 600; letter-spacing: 0.02em; flex-shrink: 0; white-space: nowrap; }
.upcoming .tip { padding: 14px 16px; font-size: 11px; color: var(--dim); font-style: italic; border-top: 1px solid var(--border); line-height: 1.5; }

/* Sector Control rows: swatch + name/bar + percent. */
.sector-control .row { display: grid; grid-template-columns: auto 1fr 60px; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); align-items: center; font-size: 13px; }
.sector-control .row:last-child { border-bottom: none; }
.sector-control .swatch { width: 10px; height: 10px; border-radius: 50%; }
.sector-control .player { display: flex; justify-content: space-between; margin-bottom: 6px; }
.sector-control .player .pname { color: var(--text); }
.sector-control .player .faction { color: var(--muted); font-size: 11px; }
.sector-control .bar { height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.sector-control .bar > span { display: block; height: 100%; }
.sector-control .pct { text-align: right; font-family: "Cormorant Garamond", Georgia, serif; font-size: 16px; font-weight: 600; color: var(--text); }

/* Recent Engagements rows — pixel-match reference: 12px 16px padding, every
   row keeps the 1px bottom divider (no :last-child strip), .panel-2 hover. */
.recent-engagements .row { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.recent-engagements .row:hover { background: var(--panel-2); }
.recent-engagements .top { display: flex; justify-content: space-between; align-items: baseline; }
.recent-engagements .matchup { font-size: 13px; font-weight: 600; }
.recent-engagements .matchup .vs { color: var(--dim); margin: 0 6px; font-weight: normal; }
.recent-engagements .result { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.recent-engagements .sys { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Gothic page header — used on the four index pages (Players, Planets,
   Battles, News). Kicker / serif title / subtitle on the left, optional
   filter chips on the right. */
.page-header { padding: 0 0 24px; border-bottom: 1px solid var(--border); margin: 0 0 24px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.page-header .kicker { font-size: 11px; color: var(--dim); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 6px; }
.page-header .title { font-family: "Cormorant Garamond", "Cormorant", Georgia, serif; font-size: 36px; font-weight: 600; color: var(--gold); line-height: 1.1; margin: 0; }
.page-header .sub { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Filter chips (used on Planets / Battles indexes). Pill border, gold when active. */
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-chip { font-size: 11px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); cursor: pointer; letter-spacing: 0.05em; background: transparent; font-family: inherit; }
.filter-chip:hover { border-color: var(--muted); color: var(--text); }
.filter-chip.active { border-color: var(--gold); color: var(--gold); }
.filter-chip .count { color: var(--dim); margin-left: 4px; }

/* Index pages get a wider reading column for richer rows. The 720px cap was
   set when rows were bare; gothic rows have more columns so loosen to 960. */
.players-index, .systems-index, .battles-index { max-width: 960px; }
.players-index-wrap, .systems-index-wrap, .battles-index-wrap { max-width: 960px; }

/* Players index — gothic row: rank numeral / serif name + faction swatch /
   CP bar / W·L·D + chevron. */
.players-index .row { display: grid; grid-template-columns: 60px 1.4fr 1.6fr 16px; gap: 20px; padding: 18px 20px; align-items: center; border-left: 3px solid transparent; }
.players-index .row.is-top { border-left-color: var(--gold); }
.players-index .row .rank-cell { text-align: center; }
.players-index .row .rank-num { font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.players-index .row.is-top .rank-num { color: var(--gold); }
.players-index .row .rank-label { font-size: 9px; color: var(--dim); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 2px; }
.players-index .row .name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 700; }
.players-index .row .faction-line { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.players-index .row .faction-line .force { font-style: italic; }
.players-index .row .meta { font-size: 11px; color: var(--dim); margin-top: 6px; letter-spacing: 0.05em; }
.players-index .row .cp-cell .cp-head { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.players-index .row .cp-cell .cp-head .k { color: var(--dim); letter-spacing: 0.15em; text-transform: uppercase; }
.players-index .row .cp-cell .cp-bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.players-index .row .cp-cell .cp-bar > span { display: block; height: 100%; }
.players-index .row .chev { color: var(--muted); font-size: 18px; text-align: right; }
.players-index .row .swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (max-width: 700px) {
  .players-index .row { grid-template-columns: 50px 1fr; }
  .players-index .row .cp-cell, .players-index .row .chev { grid-column: 1 / -1; }
}

/* Systems index — Cormorant on names, status badge column. Layout adapted
   from the design (name+sector / type / controller / badge). */
.systems-index .row { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 100px; gap: 16px; padding: 14px 20px; }
.systems-index .row .name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-weight: 600; color: var(--text); }
.systems-index .row .sector { font-size: 11px; color: var(--dim); margin-top: 2px; letter-spacing: 0.05em; }
.systems-index .row .type { font-size: 12px; color: var(--muted); }
.systems-index .row .controller { font-size: 12px; color: var(--text); }
.systems-index .row .controller .swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: 1px; }
.systems-index .row .controller .faction-sub { font-size: 10px; color: var(--dim); margin-top: 2px; margin-left: 18px; }
.systems-index .row .controller .controller-empty { color: var(--dim); font-style: italic; }
.systems-index .row .status-cell { text-align: right; }
.systems-index .row .badge { font-size: 9px; padding: 2px 8px; border-radius: 3px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.systems-index .row .badge.contested { background: var(--gold); color: var(--bg); }
.systems-index .row .badge.held { background: var(--green); color: var(--bg); }
.systems-index .row .badge.unclaimed { background: var(--dim); color: var(--text); }

/* Battles index — gothic engagement card with VP scoreline + summary quote. */
.battles-index { max-width: 960px; }
.battles-index .row { display: block; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.battles-index .row:nth-child(even) { background: var(--panel-2); }
.battles-index .row:nth-child(even):hover { background: #232930; }
.battles-index .row:last-child { border-bottom: none; }
.battles-index .row .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.battles-index .row .top .date { font-size: 11px; color: var(--dim); letter-spacing: 0.2em; text-transform: uppercase; text-align: left; padding-left: 12px; }
.battles-index .row .top .meta-mid { font-size: 11px; color: var(--dim); letter-spacing: 0.05em; text-transform: uppercase; flex: 1; padding-left: 8px; }
.battles-index .row .top .result { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; text-align: right; color: var(--gold); }
.battles-index .row .matchup { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; text-align: left; }
.battles-index .row .matchup .att, .battles-index .row .matchup .def { flex: 1; }
.battles-index .row .matchup .att { text-align: right; }
.battles-index .row .matchup .def { text-align: left; }
.battles-index .row .matchup .pname { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-weight: 600; }
.battles-index .row .matchup .role { font-size: 11px; color: var(--muted); }
.battles-index .row .matchup .vp { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.battles-index .row .matchup .vp .score { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 600; color: var(--text); }
.battles-index .row .matchup .vp .score .sep { color: var(--dim); margin: 0 6px; }
.battles-index .row .matchup .vp .label { font-size: 9px; color: var(--dim); letter-spacing: 0.2em; margin-top: 2px; }
.battles-index .row .summary { font-size: 13px; color: #c9b88a; font-style: italic; line-height: 1.6; padding-top: 10px; border-top: 1px solid var(--border); }

/* News page — gothic announcement card + bulletin list. */
.news-page-wrap { max-width: 760px; margin: 0 auto; }
.news-ann-card { background: linear-gradient(90deg, rgba(58,31,26,0.6) 0%, rgba(26,15,13,0.6) 100%); border: 1px solid #6b2a1a; border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; cursor: pointer; display: block; }
.news-ann-card:hover { border-color: var(--gold); }
.news-ann-card .kicker { font-size: 9px; font-weight: 700; letter-spacing: 0.3em; color: var(--bg); background: var(--gold); padding: 3px 8px; border-radius: 2px; text-transform: uppercase; display: inline-block; margin-bottom: 12px; }
.news-ann-card .headline { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; color: var(--gold); line-height: 1.2; margin-bottom: 8px; }
.news-ann-card .lede { font-size: 13px; color: #c9b88a; line-height: 1.6; }
.news-ann-card .footer { font-size: 10px; color: #a89372; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(240,198,116,0.15); display: flex; justify-content: space-between; align-items: center; }
.news-ann-card .footer .cta { color: var(--gold); font-weight: 600; }

.news-index .entry { padding: 20px 24px; border-bottom: 1px solid var(--border); display: block; }
.news-index .entry:last-child { border-bottom: none; }
.news-index .entry:hover { background: #1c1916; }
.news-index .entry .date { font-size: 10px; color: var(--dim); letter-spacing: 0.2em; text-transform: uppercase; }
.news-index .entry .headline { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 600; color: var(--text); margin-top: 6px; line-height: 1.25; }
.news-index .entry .lede { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.news-index .entry .cta { font-size: 11px; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 12px; font-weight: 600; }
.news-index .entry:hover .cta { color: #ffd98a; }

/* gx-* hover feedback classes (from design Refined Gothic.html). Apply to
   any clickable row/card/link/chip/back-link/nav-link/brand for consistent
   feedback. Existing per-component hover rules still apply; these layer on. */
.gx-row { transition: background-color 140ms ease, border-color 140ms ease; }
.gx-row:hover { background-color: var(--panel-2); }
.gx-row-rail:hover { border-left-color: var(--gold); }
.gx-row-list:hover { background-color: var(--panel-2); }
.gx-news-row:hover { background-color: #1c1916; }
.gx-news-row:hover .gx-news-cta { color: #ffd98a; }
.gx-link { transition: filter 120ms ease, text-shadow 120ms ease; }
.gx-link:hover { filter: brightness(1.25); text-shadow: 0 0 8px currentColor; }
.gx-card { transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease; }
.gx-card:hover { background-color: var(--panel-2); border-color: #4a525c; }
.gx-chip { transition: border-color 140ms ease, color 140ms ease; }
.gx-chip:hover { border-color: var(--muted); color: var(--text); }
.gx-back { transition: color 140ms ease; }
.gx-back:hover { color: var(--gold); }
.gx-nav-link { transition: color 140ms ease; }
.gx-nav-link:hover { color: var(--text); }
.gx-brand { transition: color 140ms ease; }
.gx-brand:hover { color: #ffe48b; }

/* Battle format badges — small uppercase pill, color-keyed by format. */
.fmt-badge {
  display: inline-block;
  padding: 0.15em 0.55em;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.25em;
  vertical-align: middle;
  margin-right: 0.5em;
  background: var(--panel-2, #2a2a2a);
  color: var(--gold, #d6cf05);
  border: 1px solid currentColor;
}
.fmt-badge.standard { color: #b9a87b; }
.fmt-badge.ffa      { color: var(--gold, #d6cf05); }
.fmt-badge.team     { color: #6ea8ff; }

/* Team panel layout for battle detail page */
.battle-page .team-stack { display: flex; flex-direction: column; gap: 1rem; }
.battle-page .team-panel { padding: 0.75rem 1rem; border: 1px solid var(--border, #2a2a2a); border-radius: 0.4rem; }
.battle-page .team-head  { display: flex; justify-content: space-between; font-weight: 600; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.1rem; }
.battle-page .team-vp    { color: var(--muted, #8b949e); font-family: inherit; font-weight: 400; font-size: 0.85em; }
.battle-page .team-members { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.battle-page .member-chip { display: inline-flex; gap: 0.25rem; padding: 0.2rem 0.5rem; border: 1px solid currentColor; border-radius: 0.3rem; transition: background-color 0.15s, border-color 0.15s; }
.battle-page .member-chip:hover { background: rgba(255,255,255,0.05); }
.battle-page .member-chip .mvp { color: var(--muted, #8b949e); }

/* FFA grid layout for battle detail page */
.battle-page .ffa-grid { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
/* Shared participant chip — applies to FFA grid AND standard matchup so the
   one-vs-one render reads as the same kind of player entry as ffa/team. */
.battle-page .participant { display: inline-flex; padding: 0.4rem 0.7rem; border: 1px solid var(--border, #2a2a2a); border-radius: 0.4rem; flex: 0 1 auto; max-width: 100%; transition: background-color 0.15s, border-color 0.15s; text-decoration: none; }
.battle-page .participant:hover { border-color: currentColor; background: rgba(255,255,255,0.05); }
.battle-page .matchup.standard { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding-left: 0; }
.battle-page .matchup.standard .vs { color: var(--muted); font-size: 0.9rem; }

/* VP list inside the result panel — renamed from .vp to avoid collision with sibling pages */
.battle-page .vp-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; align-items: baseline; }
.battle-page .vp-list span { font-size: 0.9em; }
.battle-page .vp-list span + span::before { content: '·'; color: var(--dim); margin-right: 0.5rem; }

/* Battle row pattern — used on player + system pages */
.battle-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; }
.battle-row .title { flex: 1; }
.battle-row .date { color: var(--muted, #8b949e); font-size: 0.85em; }
