/* "Studio" palette: warm charcoal base with amber + teal accents. Deliberately
   NOT Riot's navy/gold -- the chrome stays a neutral warm-dark so the colourful
   champion icons and the validated chart palette carry the colour. The --lol-*
   names are kept as raw swatch tokens so downstream rules recolour without a
   rename sweep. */
:root {
  --lol-black-blue: #141317;
  --lol-dark-blue:  #201F25;
  --lol-blue:       #2A2833;
  --lol-grey-blue:  #24222A;
  --lol-grey-blue-2:#3A3742;
  --lol-gold-1:     #E8A13A;
  --lol-gold-2:     #ECEAE4;
  --lol-gold-3:     #7A5F2A;
  --lol-teal:       #38B2A3;
  --lol-teal-dark:  #2E9E90;
  --lol-blue-grey:  #9A968E;
  --lol-red:        #E8636B;
  --lol-green:      #3FA65B;

  --bg: #17161A;
  --bg-panel: var(--lol-dark-blue);
  --bg-panel-2: var(--lol-grey-blue);
  --border: #302E37;
  --text: var(--lol-gold-2);
  --text-dim: var(--lol-blue-grey);
  --accent: var(--lol-gold-1);
  --accent-2: var(--lol-teal);
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 96px;
  overscroll-behavior-y: none;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, -apple-system, sans-serif;
  min-height: 100%;
}
body {
  background-image:
    radial-gradient(ellipse at top, rgba(56, 178, 163, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #121116 100%);
  background-attachment: fixed;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Keyboard-first: a visible skip link and focus rings throughout. */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--lol-black-blue);
  padding: 8px 14px; border-radius: 0 0 4px 0; font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }

/* ---------------------------------------------------------------- nav */
header.site {
  border-bottom: 1px solid var(--lol-gold-3);
  background: linear-gradient(180deg, rgba(23,22,26,0.95), rgba(23,22,26,0.82));
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
  transition: box-shadow 0.25s ease;
}
/* Scrolled state is PAINT-ONLY (a shadow) and must stay that way. The header is
   position:sticky, so it sits in normal flow: anything that changes its height
   on scroll (a padding shrink, say) shifts the KPI strip below it AND changes
   document height, which nudges scrollY back across the toggle threshold --
   an oscillation loop that makes the strip jitter up and down. Never animate
   the header's box size here. */
header.site.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55); }
header.site .inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
header.site .brand {
  font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--lol-gold-2); font-weight: 700;
}
header.site .brand:hover { text-decoration: none; }
header.site .brand span { color: var(--accent-2); }
header.site nav { display: flex; gap: 4px; flex-wrap: wrap; }
header.site nav a {
  color: var(--text-dim); text-decoration: none;
  padding: 8px 14px; border-radius: 3px;
  font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
header.site nav a:hover { color: var(--lol-gold-2); border-color: var(--lol-gold-3); }
header.site nav a.active {
  color: var(--lol-black-blue); background: var(--accent); border-color: var(--accent);
}

/* --------------------------------------------- KPI strip (static, no marquee) */
/* A slim row of headline figures under the nav. Static and legible -- it reads
   like a scoreboard, not a scrolling banner. Wraps on narrow screens. */
.kpi-strip {
  border-bottom: 1px solid var(--border);
  background: rgba(32, 31, 37, 0.6);
}
.kpi-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
}
.kpi { display: flex; flex-direction: column; gap: 1px; }
.kpi-label {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-dim);
}
.kpi-value {
  font-size: 0.92rem; color: var(--lol-gold-2); font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- generic */
h1, h2, h3 {
  color: var(--lol-gold-2); font-weight: 600; letter-spacing: 0.02em;
  font-family: Georgia, "Iowan Old Style", serif;
}
h1 { font-size: 2.3rem; margin: 34px 0 8px; line-height: 1.15; }
h2 { font-size: 1.25rem; margin: 44px 0 16px; padding-bottom: 10px; position: relative; }
h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent);
}
.subtitle { color: var(--text-dim); margin-bottom: 20px; line-height: 1.55; }

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-panel);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 20px; margin-bottom: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* Hover is border + shadow only, never a transform. A translateY lift moves the
   card out from under a cursor resting on its bottom edge, which un-hovers it,
   which drops it back -- a flicker loop. Shadows don't change hit-testing. */
.panel:hover {
  border-color: var(--lol-gold-3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.panel p { line-height: 1.6; }
.panel h3 { margin: 0 0 12px; color: var(--lol-gold-2); font-size: 1.05rem; }

/* -------------------------------------------------- scroll reveals */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.reveal.in { opacity: 1; transform: none; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .chart-box { height: 220px; }
  .chart-box.tall { height: 300px; }
  h1 { font-size: 1.9rem; }
}

/* Scrollable table region. Horizontal scroll for wide tables, plus a height cap
   so a very long table scrolls internally with its header row pinned. Tables
   shorter than the cap never scroll at all, so there's no nested-scroll
   surprise on the short ones.
   NOTE: the pinned header sticks to THIS box, not the page -- overflow on the
   wrapper makes it the scrollport, which is exactly what we want here. */
.table-scroll { overflow: auto; max-height: 70vh; }
.table-scroll thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-panel);
  /* A real border-bottom detaches from a sticky cell while scrolling; an inset
     shadow is painted with the cell, so the rule travels with the header. */
  box-shadow: inset 0 -1px 0 var(--border);
}

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--accent); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
tr:hover td { background: rgba(255,255,255,0.02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid var(--lol-gold-3); color: var(--accent); margin-top: 4px;
}
.badge.teal { border-color: var(--lol-teal-dark); color: var(--accent-2); }
.badge.predicted-pick {
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 12px rgba(232, 161, 58, 0.28);
}

.empty-note { color: var(--text-dim); font-style: italic; }
.model-note { font-size: 0.85rem; color: var(--text-dim); margin: 8px 0; line-height: 1.5; }

footer.site {
  border-top: 1px solid var(--border); margin-top: 60px; padding: 24px 20px 40px;
  color: var(--text-dim); font-size: 0.75rem; text-align: center; line-height: 1.6;
}
footer.site a { color: var(--text-dim); text-decoration: underline; }

/* ---------------------------------------------------------------- champ card */
.champ-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.champ-card img.portrait {
  width: 84px; height: 84px; border-radius: 8px;
  border: 2px solid var(--accent); box-shadow: 0 0 18px rgba(232, 161, 58, 0.22);
  transition: transform 0.2s ease, box-shadow 0.3s ease; will-change: transform;
}
.champ-card:hover img.portrait { box-shadow: 0 0 30px rgba(232, 161, 58, 0.4); }
.champ-card .meta { flex: 1 1 180px; }
.champ-card .meta h2 {
  margin: 0 0 4px; border: none; padding: 0; font-size: 1.9rem;
  background: linear-gradient(120deg, var(--lol-gold-2) 30%, var(--lol-gold-1) 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--lol-gold-2);
}
.champ-card .meta h2::after { display: none; }
.champ-card .meta .role {
  color: var(--accent-2); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em;
}

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.stat-row.compact { flex: 0 0 auto; margin-top: 0; gap: 10px; }
.stat-row.compact .stat-tile { padding: 8px 16px; flex: 0 0 auto; }
.stat-row.compact .value { font-size: 1.15rem; }
.stat-tile {
  flex: 1 1 120px; background: var(--bg-panel-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px;
  transition: border-color 0.2s ease;
}
.stat-tile:hover { border-color: var(--lol-gold-3); }
.stat-tile .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
/* tabular-nums keeps every digit the same width, so a counting-up number can't
   wobble the tile as the glyphs change (1 is narrower than 8 in the default face). */
.stat-tile .value {
  font-size: 1.4rem; color: var(--lol-gold-2); font-weight: 700; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.stat-tile .value.good { color: var(--lol-green); }
.stat-tile .value.bad { color: var(--lol-red); }

/* ---------------------------------------------------- model cards (pred + models) */
.model-card { display: flex; flex-direction: column; }
.model-card.is-live { border-color: var(--lol-gold-3); }
.model-card.is-floor { opacity: 0.9; }
.model-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.model-card-head h3 { margin: 0; font-size: 1rem; }
.model-num {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel-2); border: 1px solid var(--accent);
  color: var(--accent); font-weight: 700; font-family: Georgia, serif; font-size: 1rem;
}
.tag-live {
  display: inline-block; margin-top: 2px; font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent-2);
}
.model-pick { display: flex; align-items: center; gap: 12px; padding: 4px 0 10px; }
.model-pick img { width: 40px; height: 40px; border-radius: 5px; border: 1px solid var(--border); }
.model-pick-name { color: var(--lol-gold-2); font-weight: 600; font-size: 1.05rem; }
.model-pick-meta { color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Scoreboard accuracy headline */
.score-accuracy { display: flex; align-items: baseline; gap: 8px; }
.score-big {
  font-size: 2.1rem; font-weight: 700; color: var(--accent);
  font-family: Georgia, serif; line-height: 1; font-variant-numeric: tabular-nums;
}
.is-floor .score-big { color: var(--text-dim); }
.score-cap { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }

/* candidate rows (per-model spread) */
.candidate-list { margin-top: auto; padding-top: 6px; }
.candidate-row {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
  border-bottom: 1px solid var(--border); transition: background 0.15s ease;
}
.candidate-row:hover { background: rgba(255,255,255,0.02); }
.candidate-row .name { flex: 0 0 92px; font-size: 0.85rem; }
.candidate-row.is-sample { color: var(--accent); }
.candidate-row.is-sample .name::after { content: " \2605"; color: var(--accent); }
.bar-track {
  height: 11px; background: rgba(255,255,255,0.05); border-radius: 6px;
  overflow: hidden; border: 1px solid var(--border);
}
.bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--lol-teal-dark), var(--lol-teal));
  border-radius: 6px 0 0 6px; transition: width 0.6s ease;
}
.candidate-row.is-sample .bar-fill { background: linear-gradient(90deg, var(--lol-gold-3), var(--accent)); }
.bar-pct { width: 40px; text-align: right; font-size: 0.78rem; font-variant-numeric: tabular-nums; color: var(--text-dim); }

/* Receipts table (models page): colour a cell green when that model was right */
table.receipts td { white-space: nowrap; font-size: 0.86rem; }
table.receipts td.actual { color: var(--lol-gold-2); font-weight: 600; }
table.receipts td.hit { color: var(--lol-green); font-weight: 600; }
table.receipts td.miss { color: var(--text-dim); }

/* ------------------------------------------------------------ chip tabs (playstyle) */
.chip-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-tab {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chip-tab:hover { color: var(--lol-gold-2); border-color: var(--lol-gold-3); text-decoration: none; }
.chip-tab.active {
  color: var(--lol-black-blue); background: var(--accent); border-color: var(--accent);
}
.tab-view.hidden { display: none; }

/* ---------------------------------------------------------------- insight + AI */
.insight-box {
  border-left: 3px solid var(--accent-2); background: rgba(56, 178, 163, 0.06);
  padding: 14px 16px; border-radius: 0 6px 6px 0;
  font-size: 0.92rem; line-height: 1.55; margin: 20px 0;
}
.insight-box .insight-label {
  color: var(--accent-2); text-transform: uppercase; font-size: 0.7rem;
  letter-spacing: 0.08em; margin-bottom: 6px; display: block;
}
.insight-box .insight-body { margin: 0; }
.insight-box.cheeky { border-left-color: var(--accent); background: rgba(232, 161, 58, 0.08); }
.insight-box.cheeky .insight-label { color: var(--accent); }

.insight-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; border-color: var(--lol-teal-dark);
}
.insight-hero-label {
  color: var(--accent-2); text-transform: uppercase; font-size: 0.72rem;
  letter-spacing: 0.08em; margin-bottom: 4px;
}
.insight-hero-copy { margin: 0; color: var(--text-dim); }

.ask-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ask-input {
  flex: 1 1 260px; background: var(--bg-panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px;
  font-family: inherit; font-size: 0.88rem;
}
.ask-input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.ask-count { font-size: 0.7rem; color: var(--text-dim); margin-top: 6px; text-align: right; }

.btn {
  display: inline-block; background: transparent; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 4px; padding: 8px 16px;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--accent); color: var(--lol-black-blue); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: default; background: transparent; color: var(--text-dim); border-color: var(--border); }

.chart-box { position: relative; height: 240px; }
.chart-box.tall { height: 360px; }
.chart-box.mini { height: 165px; }

/* Champion recommendation cards (replaces the old rank/match/reasons table): the
   icon, match strength, and the champion's own axis shape read faster together
   than the same values split across table columns. */
.rec-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-panel);
  border: 1px solid var(--border); border-radius: 6px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rec-card:hover { border-color: var(--lol-gold-3); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
.rec-card.is-top { border-color: var(--lol-teal-dark); }
.rec-head { display: flex; align-items: center; gap: 12px; }
.rec-head img { width: 48px; height: 48px; border-radius: 6px; border: 1px solid var(--border); }
.rec-name { color: var(--lol-gold-2); font-weight: 600; font-size: 1.05rem; }
.rec-meta {
  color: var(--text-dim); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.rec-card .badge { align-self: flex-start; margin-top: 0; }

/* Key for a chart's highlighted series, deliberately OUTSIDE the chart legend.
   The scatter's legend lists playstyle families (what the clusters mean); this
   marks whose champions are highlighted. Separating them stops one list from
   reading as if the player were another cluster. Swatch matches the chart's
   diamond marker exactly (CHART_COLORS[1] fill, primary-ink border). */
.chart-key {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.78rem; color: var(--text-dim);
  margin: 0 0 10px;
}
.chart-key-diamond {
  width: 10px; height: 10px; flex: 0 0 10px;
  background: #BC8020; border: 2px solid var(--lol-gold-2);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------- about page */
.about-hero { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.about-hero .avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--bg-panel-2); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--accent); flex-shrink: 0;
}
/* Contact chips (About page). Text-based marks rather than icon files, so there
   are no external requests and nothing to keep in sync with a patch. */
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--bg-panel-2);
  color: var(--text); font-size: 0.9rem; text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact-link:hover { border-color: var(--accent-2); color: var(--accent-2); text-decoration: none; }
.contact-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 3px;
  background: var(--accent-2); color: var(--lol-black-blue);
  font-size: 0.68rem; font-weight: 700; line-height: 1;
}

.pipeline-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.pipeline-steps li { counter-increment: step; position: relative; padding: 4px 0 4px 34px; margin-bottom: 6px; }
.pipeline-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-panel-2); border: 1px solid var(--accent);
  color: var(--accent); font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------- a11y */
a:focus-visible, .btn:focus-visible, .chip-tab:focus-visible, .ask-input:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px;
}

/* ---------------------------------------------------------------- loading dots */
.loading-dots { display: inline-flex; gap: 6px; padding: 4px 0; }
.loading-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2); opacity: 0.25;
  animation: dot-pulse 1.2s infinite ease-in-out;
}
.loading-dots i:nth-child(2) { animation-delay: 0.2s; }
.loading-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .loading-dots i { animation: none; opacity: 0.7; }
  .bar-fill { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel, .panel:hover { transform: none; }
  header.site, header.site .inner { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- error page */
.error-panel { text-align: center; padding: 60px 20px; }
.error-code {
  font-size: 4.5rem; font-weight: 700; color: var(--accent);
  font-family: Georgia, "Iowan Old Style", serif; line-height: 1; margin-bottom: 12px;
}
.error-quip {
  color: var(--text); font-size: 1.2rem; line-height: 1.4;
  font-family: Georgia, "Iowan Old Style", serif; margin: 0 0 10px;
}
.error-message { color: var(--text-dim); margin-bottom: 28px; }

/* ---------------------------------------------------------------- pipeline page */
.pipeline-hero { text-align: center; padding: 8px 0 4px; }
.pipeline-hero .orchestration {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); font-size: 0.82rem;
}
.pipeline-hero .orchestration b { color: var(--accent-2); font-weight: 600; }
.pipeline-hero .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lol-green); box-shadow: 0 0 0 0 rgba(63, 166, 91, 0.5);
}

.pipeline-flow { margin: 28px auto 8px; max-width: 760px; }
/* center, not stretch: the node has a fixed 56px height, so `stretch` can't
   stretch it and instead drops it to the top of the row while the card beside it
   runs much taller -- which reads as the number floating away from its stage.
   Centering pairs each number with the middle of its card at any card height. */
.pl-stage { display: flex; gap: 18px; align-items: center; }
.pl-node {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel-2); border: 2px solid var(--accent);
  color: var(--accent); font-weight: 700; font-size: 1.2rem;
  font-family: Georgia, serif; position: relative; z-index: 1;
}
.pl-stage.is-gate .pl-node { border-color: var(--accent-2); color: var(--accent-2); }
.pl-card {
  flex: 1; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-panel);
  border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pl-card:hover { border-color: var(--lol-gold-3); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
.pl-card h3 { margin: 0 0 4px; color: var(--text); font-size: 1.02rem; }
.pl-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.pl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pl-tag {
  font-size: 0.72rem; letter-spacing: 0.03em; padding: 2px 8px;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--accent-2); background: rgba(56, 178, 163, 0.06);
}
.pl-connector {
  height: 34px; width: 2px; margin: 2px 0 2px 27px;
  background: linear-gradient(180deg, var(--accent), rgba(120,110,90,0.15));
  position: relative; overflow: hidden; border-radius: 2px;
}
.pl-packet {
  position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2);
}
@media (prefers-reduced-motion: no-preference) {
  .pl-packet { animation: pl-fall 2.4s linear infinite; }
  .pl-node { animation: pl-glow 3.2s ease-in-out infinite; }
  .pipeline-hero .live-dot { animation: pl-ping 2s ease-out infinite; }
}
@keyframes pl-fall {
  0% { top: -10px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 34px; opacity: 0; }
}
@keyframes pl-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 161, 58, 0.0); } 50% { box-shadow: 0 0 16px 0 rgba(232, 161, 58, 0.28); }
}
@keyframes pl-ping {
  0% { box-shadow: 0 0 0 0 rgba(63, 166, 91, 0.5); } 100% { box-shadow: 0 0 0 8px rgba(63, 166, 91, 0); }
}
@media (max-width: 560px) {
  .pl-node { flex-basis: 46px; width: 46px; height: 46px; font-size: 1rem; }
  .pl-connector { margin-left: 22px; }
}
