/* ==========================================================================
   Champion field guide (/guide)
   Reuses the draft-lab design tokens from style.css and adds the wiki-style
   roster + article layout.  Everything is plain CSS; no build step.
   ========================================================================== */

.guide-body {
  background:
    radial-gradient(1000px 560px at 8% -12%, rgba(70, 167, 255, .16), transparent 62%),
    radial-gradient(760px 480px at 96% 4%, rgba(255, 61, 129, .11), transparent 58%),
    var(--bg);
}

.guide-shell { padding-bottom: 26px; }

.guide-data-pill {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 20, 31, .72);
  color: #b9c8dc;
  font-size: 11px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.guide-data-pill.is-ready { border-color: rgba(72, 215, 160, .32); color: #bfe9d9; }
.guide-data-pill.is-bad { border-color: rgba(255, 85, 112, .34); color: #ffc3cd; }

/* ------------------------------------------------------------------ intro */
.guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  padding: 30px 2px 22px;
}
.guide-intro h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 800;
}
.guide-intro h1 span {
  background: linear-gradient(100deg, var(--accent), #ff9a55 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.guide-intro .lede { max-width: 700px; margin-top: 12px; line-height: 1.72; }

.guide-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 20, 31, .55);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.guide-legend span { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--dim); }
.legend-dot.is-official { background: var(--green); }
.legend-dot.is-curated { background: var(--accent); }
.legend-dot.is-empty { background: var(--line); }

/* ----------------------------------------------------------------- layout */
.guide-layout {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.guide-side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 102px);
  min-height: 420px;
}

.guide-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.guide-side-head .eyebrow { margin-bottom: 5px; font-size: 9px; }
.guide-side-head h2 { margin: 0; font-size: 17px; letter-spacing: .04em; }
.guide-count {
  min-width: 30px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* search */
.guide-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 12px 0;
}
.guide-search-icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.guide-search input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 7px 38px 7px 34px;
  border-radius: 10px;
  border-color: var(--line);
  background: #0a111c;
  font-size: 12.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.guide-search input[type="search"]::-webkit-search-cancel-button { filter: invert(.7); }
.guide-search input[type="search"]:focus {
  border-color: rgba(70, 167, 255, .62);
  box-shadow: 0 0 0 3px rgba(70, 167, 255, .12);
}
.guide-search-kbd {
  position: absolute;
  right: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--dim);
  font-family: inherit;
  font-size: 10px;
  pointer-events: none;
}
.guide-search:focus-within .guide-search-kbd { opacity: 0; }

/* lane filters */
.guide-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 11px 12px 0;
}
.guide-lane {
  min-height: 0;
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.guide-lane:hover { border-color: #36506d; background: rgba(70, 167, 255, .05); color: var(--text); }
.guide-lane strong {
  margin-left: 4px;
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.guide-lane.is-active {
  border-color: rgba(70, 167, 255, .55);
  background: var(--blue-soft);
  color: #d9ecff;
}
.guide-lane.is-active strong { color: #93c8ff; }

.guide-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 0;
}
.guide-only {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  user-select: none;
}
.guide-only input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.guide-only:hover { color: #c6d4e6; }
.guide-textbtn {
  min-height: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .02em;
}
.guide-textbtn:hover { background: none; color: #8ecaff; }

.guide-roster-meta {
  padding: 7px 14px 6px;
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: .04em;
}

/* roster list */
.guide-champ-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 6px 18px;
  scrollbar-width: thin;
  scrollbar-color: #2b3e55 transparent;
  scrollbar-gutter: stable;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
}
.guide-champ-list::-webkit-scrollbar { width: 8px; }
.guide-champ-list::-webkit-scrollbar-thumb { background: #2b3e55; border-radius: 99px; }

.guide-champ {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .14s ease, box-shadow .14s ease;
}
.guide-champ + .guide-champ { margin-top: 1px; }
.guide-champ:hover { background: rgba(70, 167, 255, .06); border: 0; background-color: rgba(70, 167, 255, .06); }
.guide-champ.is-active {
  background-color: rgba(255, 61, 129, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 61, 129, .32), inset 3px 0 0 var(--accent);
}
.guide-champ-art {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.guide-champ-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-champ-art .fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--panel-3), #0a111c);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.guide-champ-art img[data-broken="true"] { visibility: hidden; }
.guide-champ-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.25;
}
.guide-champ-copy strong {
  overflow: hidden;
  color: #dde7f4;
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guide-champ-copy small {
  overflow: hidden;
  color: var(--dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guide-champ.is-active .guide-champ-copy strong { color: #fff; }
.guide-champ-star {
  margin-left: auto;
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 61, 129, .6);
}
.guide-champ mark {
  padding: 0 1px;
  border-radius: 2px;
  background: rgba(255, 191, 91, .24);
  color: #ffe1ad;
}
.guide-roster-empty {
  padding: 26px 12px;
  color: var(--dim);
  font-size: 11.5px;
  text-align: center;
}
.guide-roster-more {
  padding: 10px 8px 4px;
  color: var(--dim);
  font-size: 10px;
  text-align: center;
}

/* ------------------------------------------------------------------- main */
.guide-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* hero */
.guide-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  min-height: 316px;
}
.guide-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px 22px;
  background:
    radial-gradient(620px 240px at 0% 0%, rgba(255, 61, 129, .09), transparent 70%),
    radial-gradient(520px 240px at 90% 110%, rgba(70, 167, 255, .08), transparent 70%);
}
.guide-hero-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.guide-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
}
.guide-hero h1 span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .24em;
}
.guide-diff {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 10, 16, .5);
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .1em;
}
.guide-diff b { color: var(--accent-2); font-size: 14px; letter-spacing: .04em; }
.guide-diff.is-high b { color: #ff8a9c; }
.guide-diff.is-low b { color: var(--green); }

.guide-tagrow { display: flex; flex-wrap: wrap; gap: 5px; }
.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #b6c5d8;
  font-size: 10px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.guide-chip.is-lane { border-color: rgba(70, 167, 255, .3); background: rgba(70, 167, 255, .08); color: #a8d4ff; }
.guide-chip.is-damage { border-color: rgba(255, 191, 91, .28); background: rgba(255, 191, 91, .07); color: #ffd79b; }
.guide-chip.is-soft { background: transparent; color: var(--muted); }

.guide-overview {
  max-width: 62ch;
  margin: 0;
  color: #c6d3e4;
  font-size: 13px;
  line-height: 1.82;
  white-space: pre-line;
}
.guide-overview.is-blurb { color: #b7c6d9; }
.guide-playstyle {
  margin: 0;
  padding-left: 11px;
  border-left: 2px solid rgba(255, 191, 91, .6);
  color: #efd6af;
  font-size: 12px;
  line-height: 1.7;
}
.guide-skillorder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 10px;
  letter-spacing: .08em;
}
.guide-skillorder span { color: var(--dim); font-weight: 700; }
.guide-skillorder b {
  padding: 3px 8px;
  border: 1px solid rgba(70, 167, 255, .25);
  border-radius: 6px;
  background: rgba(70, 167, 255, .07);
  color: #bcd9f6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.guide-spikes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 2px;
}
.guide-lore {
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
}
.guide-lore summary {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .08em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.guide-lore summary::-webkit-details-marker { display: none; }
.guide-lore summary::after { margin-left: 5px; content: "+"; }
.guide-lore[open] summary::after { content: "−"; }
.guide-lore summary:hover { color: #c5d4e6; }
.guide-lore p {
  max-width: 62ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.85;
  white-space: pre-line;
}
.guide-spikes > span {
  margin-right: 2px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}
.guide-spike {
  padding: 3px 8px;
  border: 1px dashed rgba(255, 191, 91, .28);
  border-radius: 6px;
  background: rgba(255, 191, 91, .04);
  color: #d9c39c;
  font-size: 10px;
}

.guide-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}
.guide-stat {
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(7, 10, 16, .34);
}
.guide-stat span {
  display: block;
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.guide-stat b {
  display: block;
  margin-top: 1px;
  color: #dce8f6;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.guide-hero-art {
  position: relative;
  overflow: hidden;
  background: #0a0f18;
}
.guide-hero-art img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.guide-hero-art .guide-hero-blur {
  inset: -26px;
  width: calc(100% + 52px);
  height: calc(100% + 52px);
  opacity: .38;
  filter: blur(24px) saturate(1.25);
}
.guide-hero-art .guide-hero-img { z-index: 1; }
.guide-hero-art::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, var(--panel) 0%, rgba(13, 20, 31, .55) 34%, rgba(13, 20, 31, 0) 72%),
    linear-gradient(0deg, rgba(7, 10, 16, .62), transparent 46%);
  content: "";
  pointer-events: none;
}
.guide-hero-art.is-missing::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  content: "NO ART";
}
.guide-hero-art.is-missing img { display: none; }

/* sections */
.guide-section { padding: 20px 24px 22px; }
.guide-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}
.guide-section-head .eyebrow { margin-bottom: 5px; font-size: 9px; }
.guide-section-head h2 { margin: 0; font-size: 19px; letter-spacing: .03em; }
.guide-section-note {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .04em;
  text-align: right;
  white-space: nowrap;
}
.guide-order {
  padding: 5px 9px;
  border: 1px solid rgba(255, 191, 91, .24);
  border-radius: 7px;
  background: rgba(255, 191, 91, .05);
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.guide-order b { margin-left: 4px; color: #f7d49c; font-size: 11px; letter-spacing: .04em; }

/* skills */
.guide-skill-list { display: flex; flex-direction: column; gap: 8px; }
.guide-skill {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(10, 15, 24, .42);
  transition: background .16s ease, border-color .16s ease;
}
.guide-skill:hover { border-color: var(--line-soft); background: rgba(17, 27, 41, .5); }
.guide-skill.is-passive {
  border-color: rgba(255, 191, 91, .14);
  background: linear-gradient(90deg, rgba(255, 191, 91, .055), rgba(10, 15, 24, .35));
}
.guide-skill-icon {
  position: relative;
  align-self: start;
  width: 52px;
  height: 52px;
}
.guide-skill-icon img {
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  background: #0a0f18;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.guide-key {
  position: absolute;
  bottom: -5px;
  left: -5px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid var(--panel);
  border-radius: 7px;
  background: var(--accent-2);
  color: #1b1203;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.guide-key.key-Q { background: var(--blue); color: #04121f; }
.guide-key.key-W { background: var(--green); color: #04150e; }
.guide-key.key-E { background: var(--accent); color: #fff; }
.guide-key.key-R { background: #ff9a55; color: #1f0d02; }
.guide-skill-copy { min-width: 0; }
.guide-skill-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.guide-skill-title h3 { margin: 0; color: #e9f1fb; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.guide-passive-tag {
  padding: 2px 6px;
  border: 1px solid rgba(255, 191, 91, .3);
  border-radius: 5px;
  color: #e9c98f;
  font-size: 8.5px;
  letter-spacing: .08em;
}
.guide-skill-desc {
  margin: 4px 0 0;
  color: #b9c7da;
  font-size: 12.5px;
  line-height: 1.78;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.guide-skill-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.guide-meta {
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: rgba(255, 255, 255, .025);
  color: var(--dim);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}
.guide-meta b { color: #9fb4cc; font-weight: 600; }
.guide-values {
  margin-top: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(6, 10, 16, .42);
  overflow: hidden;
}
.guide-values summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  color: #8fb0d4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  list-style: none;
}
.guide-values summary::-webkit-details-marker { display: none; }
.guide-values summary::after {
  content: "▾";
  color: var(--dim);
  font-size: 10px;
  transition: transform .16s ease;
}
.guide-values[open] summary::after { transform: rotate(180deg); }
.guide-values summary em {
  margin-left: auto;
  color: var(--dim);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .04em;
}
.guide-values[open] summary { border-bottom: 1px solid var(--line-soft); }
.guide-value-list { padding: 3px 10px 8px; }
.guide-value-row {
  display: grid;
  grid-template-columns: minmax(120px, .72fr) minmax(0, 1.6fr);
  gap: 12px;
  align-items: baseline;
  padding: 5px 0;
  border-top: 1px dashed rgba(36, 50, 71, .55);
}
.guide-value-row:first-child { border-top: 0; }
.guide-value-label { color: var(--muted); font-size: 11px; line-height: 1.5; }
.guide-value-data {
  min-width: 0;
  color: #cbd9ea;
  font-size: 11.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.guide-value-data b { color: #f1f7ff; font-weight: 700; letter-spacing: .02em; }
.guide-value-suffix { margin-left: 6px; color: var(--dim); font-size: 10px; }
.guide-value-suffix.is-ratio { color: #86c5ff; }

/* combos */
.guide-combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 9px;
}
.guide-combo {
  position: relative;
  padding: 13px 14px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(22, 34, 51, .52), rgba(10, 15, 24, .5));
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease;
}
.guide-combo::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(70, 167, 255, .9), rgba(255, 61, 129, .75));
  opacity: .55;
  content: "";
}
.guide-combo:hover { border-color: #3a4f6b; transform: translateY(-1px); }
.guide-combo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.guide-combo-head h3 { margin: 0; color: #e6eef9; font-size: 13.5px; letter-spacing: .02em; }
.guide-combo-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.guide-combo-tags .guide-chip { padding: 2px 6px; font-size: 8.5px; }
.guide-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 10px 0 8px;
}
.guide-keys kbd {
  min-width: 24px;
  padding: 3px 7px;
  border: 1px solid #33475f;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: linear-gradient(180deg, #162233, #0d141f);
  color: #eaf3ff;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .28);
}
.guide-keys .arrow { color: var(--dim); font-size: 10px; line-height: 1; }
.guide-combo-note {
  margin: 0;
  color: #a9b9cd;
  font-size: 11.5px;
  line-height: 1.72;
}
.guide-combo-note.is-empty { color: var(--dim); }

/* hidden mechanics */
.guide-hidden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 9px;
}
.guide-hidden-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(10, 15, 24, .4);
}
.guide-hidden-index {
  color: rgba(255, 61, 129, .5);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.04em;
}
.guide-hidden-card h3 { margin: 0; color: #e4edf9; font-size: 13px; font-weight: 650; }
.guide-hidden-card p { margin: 4px 0 0; color: #a9b9cd; font-size: 11.5px; line-height: 1.7; }

/* official tips */
.guide-tips-wrap { display: grid; gap: 8px; margin-top: 13px; }
.guide-tips {
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: rgba(7, 10, 16, .2);
}
.guide-tips summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  color: #b8c8dc;
  font-size: 10.5px;
  letter-spacing: .03em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.guide-tips summary::-webkit-details-marker { display: none; }
.guide-tips summary::after {
  color: var(--dim);
  font-size: 9px;
  content: "展開 +";
}
.guide-tips[open] summary { border-bottom: 1px solid var(--line-soft); }
.guide-tips[open] summary::after { content: "收起 −"; }
.guide-tips summary:hover { color: #dce8f7; }
.guide-tips ul { margin: 0; padding: 9px 14px 12px 28px; }
.guide-tips li {
  margin: 5px 0;
  color: #a7b7cb;
  font-size: 11.5px;
  line-height: 1.72;
}
.guide-tips li::marker { color: var(--accent-2); }
.guide-tips.is-enemy li::marker { color: var(--red); }

/* pager */
.guide-pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.guide-pager button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(13, 20, 31, .6);
  color: var(--muted);
  text-align: left;
  transition: border-color .16s ease, background .16s ease;
}
.guide-pager button:hover { border-color: #3a4f6b; background: var(--panel-2); }
.guide-pager button span { color: var(--dim); font-size: 9px; letter-spacing: .05em; }
.guide-pager button strong { color: #dce8f6; font-size: 13px; font-weight: 650; }
.guide-pager button.is-next { align-items: flex-end; text-align: right; }

/* empty state */
.guide-empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 16px;
  border: 1px dashed rgba(255, 191, 91, .24);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 191, 91, .045), transparent 70%);
}
.guide-empty-kicker {
  color: var(--accent-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}
.guide-empty h3 { margin: 0; color: #e6eef9; font-size: 14px; }
.guide-empty p { margin: 0; max-width: 68ch; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.guide-empty-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.guide-empty-actions button {
  min-height: 0;
  padding: 5px 10px;
  border-radius: 7px;
  border-color: rgba(255, 191, 91, .25);
  background: rgba(255, 191, 91, .07);
  color: #f0d6a6;
  font-size: 10.5px;
}
.guide-empty-actions button:hover { background: rgba(255, 191, 91, .12); border-color: rgba(255, 191, 91, .4); }

/* footer + states */
.guide-foot-note { color: var(--dim); }
.guide-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px 24px;
}
.guide-state .eyebrow { color: var(--red); }
.guide-state h2 { margin: 0; font-size: 20px; }
.guide-state p { margin: 0; max-width: 64ch; color: var(--muted); font-size: 12px; line-height: 1.75; }
.guide-state code {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #080d15;
  color: #ffd49b;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 11px;
}
.guide-state button { margin-top: 2px; }

/* skeleton */
.guide-skeleton { padding: 24px; }
.skeleton-line,
.skeleton-title,
.skeleton-block {
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .035) 25%, rgba(255, 255, 255, .075) 37%, rgba(255, 255, 255, .035) 63%);
  background-size: 400% 100%;
  animation: guide-shimmer 1.4s ease infinite;
}
.skeleton-line { width: 70%; height: 11px; margin-bottom: 10px; }
.skeleton-line.is-short { width: 34%; height: 9px; }
.skeleton-title { width: 46%; height: 30px; margin: 14px 0 18px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.skeleton-block { height: 94px; }
@keyframes guide-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .guide-layout { grid-template-columns: 276px minmax(0, 1fr); }
  .guide-hero { grid-template-columns: minmax(0, 1fr) 214px; }
  .guide-hero-copy { padding: 21px 22px 19px; }
  .guide-section { padding: 18px 20px 20px; }
  .guide-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .guide-data-pill { display: none; }
}

@media (max-width: 980px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-side { position: static; max-height: none; min-height: 0; }
  .guide-champ-list {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 10px 10px;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .guide-champ { scroll-snap-align: start; }
  .guide-champ {
    flex: 0 0 78px;
    flex-direction: column;
    gap: 5px;
    width: 78px;
    padding: 7px 4px;
    text-align: center;
  }
  .guide-champ + .guide-champ { margin-top: 0; }
  .guide-champ.is-active { box-shadow: inset 0 0 0 1px rgba(255, 61, 129, .35); }
  .guide-champ-art { width: 42px; height: 42px; flex-basis: 42px; }
  .guide-champ-copy strong { font-size: 10.5px; font-weight: 600; }
  .guide-champ-copy small { display: none; }
  .guide-champ-star { position: absolute; top: 4px; right: 6px; font-size: 9px; }
  .guide-roster-meta { padding-top: 2px; }
  .guide-side-head { align-items: center; }
  .guide-hero { grid-template-columns: minmax(0, 1fr) 236px; }
}

@media (max-width: 760px) {
  .guide-intro { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 24px; }
  .guide-legend { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .guide-hero { grid-template-columns: minmax(0, 1fr); }
  .guide-hero-art { order: -1; height: 190px; }
  .guide-hero-art img { object-position: center 18%; }
  .guide-hero-art::after {
    background:
      linear-gradient(0deg, var(--panel) 0%, rgba(13, 20, 31, .5) 26%, rgba(13, 20, 31, 0) 62%),
      linear-gradient(180deg, rgba(7, 10, 16, .35), transparent 46%);
  }
  .guide-hero-copy { padding: 18px 18px 17px; gap: 10px; }
  .guide-hero h1 { font-size: 38px; }
  .guide-hero-heading { align-items: flex-start; }
  .guide-section { padding: 16px 15px 18px; }
  .guide-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .guide-section-note { text-align: left; }
  .guide-skill { grid-template-columns: 46px minmax(0, 1fr); padding: 10px; }
  .guide-skill-icon, .guide-skill-icon img { width: 44px; height: 44px; }
  .guide-value-row { grid-template-columns: 1fr; gap: 2px; padding: 6px 0; }
  .guide-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .guide-data-pill { display: none; }
  .guide-shell { width: min(100% - 22px, 1500px); }
  .guide-intro h1 { font-size: 34px; }
  .guide-intro .lede { font-size: 12px; }
  .guide-hero-art { height: 168px; }
  .guide-hero h1 { font-size: 32px; }
  .guide-hero h1 span { font-size: 10px; }
  .guide-diff { padding: 5px 8px; }
  .guide-combo-grid, .guide-hidden-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-keys kbd { font-size: 10.5px; }
  .skeleton-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line, .skeleton-title, .skeleton-block { animation: none; }
  .guide-combo { transition: none; }
}

/* ------------------------------------------------------- loadout sections */
.guide-loadout-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.guide-loadout-lane {
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 20, 31, .72);
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}
.guide-loadout-lane:hover { border-color: rgba(70, 167, 255, .38); color: var(--text); }
.guide-loadout-lane.is-active {
  border-color: rgba(70, 167, 255, .5);
  background: var(--blue-soft);
  color: #cfe7ff;
}
.guide-loadout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 12px;
}
.guide-loadout-card {
  align-self: start;
  min-width: 0;
  padding: 13px 15px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(17, 27, 41, .55);
}
.guide-skillplan-card { grid-column: 1 / -1; }
.guide-loadout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.guide-loadout-head h3 { margin: 0; font-size: 13.5px; letter-spacing: .02em; }
.guide-loadout-head > span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.guide-rune-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(22, 34, 51, .55);
}
.guide-rune-key { display: flex; align-items: center; gap: 9px; min-width: 0; }
.guide-rune-key img.is-keystone {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 191, 91, .45);
  background: var(--bg-2);
}
.guide-rune-key strong { display: block; font-size: 13px; }
.guide-rune-key small { color: var(--dim); font-size: 10.5px; }
.guide-rune-trees {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.guide-tree { display: inline-flex; align-items: center; gap: 5px; }
.guide-tree img.is-tree { width: 18px; height: 18px; }
.guide-tree-plus { color: var(--dim); }
.guide-rune-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.guide-rune-chip,
.guide-rune-shard {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(13, 20, 31, .6);
  color: #bdcde0;
  font-size: 11px;
}
.guide-rune-chip img { width: 16px; height: 16px; border-radius: 50%; }
.guide-rune-chip small { color: var(--dim); font-size: 10px; }
.guide-rune-shard { color: var(--dim); }
.guide-loadout-meta { margin: 10px 0 0; color: var(--dim); font-size: 11px; }
.guide-loadout-empty { margin: 6px 0; color: var(--dim); font-size: 12px; }
.guide-rune-alt { margin-top: 11px; }
.guide-rune-alt summary {
  color: #b9c8dc;
  font-size: 11.5px;
  cursor: pointer;
  list-style: none;
}
.guide-rune-alt summary::-webkit-details-marker { display: none; }
.guide-rune-alt summary::after { margin-left: 5px; content: "+"; color: var(--dim); }
.guide-rune-alt[open] summary::after { content: "−"; }
.guide-rune-alt-list { margin-top: 6px; }
.guide-rune-alt-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
}
.guide-rune-alt-row img.is-keystone { width: 22px; height: 22px; border-radius: 50%; }
.guide-rune-alt-copy strong { display: block; font-size: 12px; }
.guide-rune-alt-copy small { color: var(--dim); font-size: 10.5px; }
.guide-rune-alt-games { color: var(--dim); font-size: 11px; }
.guide-rune-alt-wr { color: var(--gold); font-size: 12px; }
.guide-rune-alt-share { color: var(--dim); font-size: 10.5px; }
.guide-starting { display: flex; flex-wrap: wrap; gap: 7px; }
.guide-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(13, 20, 31, .6);
  font-size: 11.5px;
}
.guide-item-chip img { width: 24px; height: 24px; border-radius: 6px; }
.guide-skillplan {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 4px;
}
.guide-lvcell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.guide-lvcell small { color: var(--dim); font-size: 9.5px; }
.guide-lvcell .guide-key {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: none;
}
.guide-spiketrack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}
.guide-spikenode {
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(22, 34, 51, .45);
}
.guide-spikenode b { display: block; color: var(--gold); font-size: 10px; letter-spacing: .06em; }
.guide-spikenode span { display: block; margin-top: 3px; color: #c3d1e2; font-size: 11.5px; line-height: 1.45; }
.guide-spikenode em { display: block; margin-top: 4px; color: var(--dim); font-size: 10px; font-style: normal; }
.guide-matchup-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.3fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
}
.guide-matchup-row:first-of-type { border-top: 0; }
.guide-matchup-art {
  position: relative;
  width: 28px;
  height: 28px;
}
.guide-matchup-art img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.guide-matchup-art .fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.guide-matchup-art img[data-broken] { opacity: 0; }
.guide-matchup-art img[data-broken] + .fallback { display: grid; }
.guide-matchup-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.guide-matchup-games { color: var(--dim); font-size: 11px; }
.guide-matchup-wr { color: #dbe6f3; font-size: 12.5px; }
.guide-delta {
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.guide-delta.is-up { border-color: rgba(72, 215, 160, .32); background: rgba(72, 215, 160, .08); color: #8ee9c4; }
.guide-delta.is-down { border-color: rgba(255, 85, 112, .3); background: rgba(255, 85, 112, .08); color: #ff9fae; }
.guide-delta.is-flat { color: var(--dim); }
.guide-opening-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
}
.guide-summoners { display: grid; gap: 8px; }
.guide-summoner {
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(22, 34, 51, .45);
}
.guide-summoner-name { display: flex; align-items: baseline; gap: 7px; }
.guide-summoner-name strong { font-size: 13px; }
.guide-summoner-name small { color: var(--dim); font-size: 10px; letter-spacing: .05em; }
.guide-summoner p { margin: 4px 0 0; color: #b9c8dc; font-size: 11.5px; line-height: 1.5; }
.guide-route h3 { margin: 0; font-size: 13px; }
.guide-route ol { margin: 9px 0 0; padding-left: 17px; }
.guide-route li { color: #b9c8dc; font-size: 12px; line-height: 1.6; }
.guide-route li + li { margin-top: 3px; }

@media (max-width: 960px) {
  .guide-loadout-grid,
  .guide-opening-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-skillplan { grid-template-columns: repeat(9, minmax(0, 1fr)); row-gap: 7px; }
  .guide-spiketrack { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .guide-skillplan { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .guide-rune-trees { margin-left: 0; }
  .guide-rune-main { flex-wrap: wrap; }
  .guide-matchup-row { grid-template-columns: 28px minmax(0, 1fr) auto auto; }
  .guide-matchup-games { display: none; }
}

/* ------------------------------------------------- guide intro data pill */
.guide-intro-meta { margin-top: 16px; }
.guide-legend b { font-weight: 500; }
.guide-intro .guide-data-pill { display: inline-flex; align-items: center; }
