:root {
  color-scheme: dark;
  --ink: #f7f5ef;
  --muted: #aaaebd;
  --panel: rgba(13, 17, 28, 0.86);
  --panel-strong: #101522;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --night: #06080e;
  --tempest: #67dcff;
  --tempest-deep: #227eff;
  --blood: #ff5c72;
  --blood-deep: #8b1230;
  --gold: #f5ce77;
  --success: #7ff3bd;
  --danger: #ff806f;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--night);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(circle at 18% 8%, rgba(39, 112, 212, 0.2), transparent 33rem),
    radial-gradient(circle at 82% 34%, rgba(153, 28, 60, 0.12), transparent 34rem),
    var(--night);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #08101a;
  background: var(--tempest);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.guide-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.05);
}

.guide-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--tempest), var(--gold), var(--blood));
  box-shadow: 0 0 22px rgba(103, 220, 255, .7);
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(6, 8, 14, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.25);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.guide-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #07101d;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(145deg, #d7f7ff, var(--tempest));
  border-radius: 11px 4px 11px 4px;
  box-shadow: 0 0 24px rgba(103, 220, 255, .2);
}

.guide-brand-copy {
  display: grid;
  line-height: 1.05;
}

.guide-brand-copy strong {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .01em;
}

.guide-brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guide-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.guide-nav a {
  padding: 8px 11px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.guide-nav a:hover,
.guide-nav a:focus-visible,
.guide-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255,255,255,.06);
  border-color: var(--line);
  outline: none;
}

.guide-main {
  position: relative;
}

.guide-hero {
  position: relative;
  display: grid;
  min-height: min(880px, calc(100svh - 72px));
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.guide-hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: var(--hero-image);
  background-position: center 24%;
  background-size: cover;
  transform: scale(1.025);
}

.guide-hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(5,7,12,.93) 0%, rgba(5,7,12,.7) 43%, rgba(5,7,12,.2) 76%),
    linear-gradient(0deg, var(--night) 0%, transparent 42%),
    linear-gradient(180deg, rgba(5,7,12,.18), transparent 35%);
}

.guide-hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(84px, 14vh, 150px) 0 clamp(64px, 9vh, 94px);
}

.guide-kicker,
.section-kicker,
.chapter-number {
  margin: 0 0 14px;
  color: var(--tempest);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 110px);
  line-height: .88;
  letter-spacing: -.072em;
  text-wrap: balance;
}

.guide-hero h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(112deg, #fff 20%, var(--tempest) 72%);
  background-clip: text;
  -webkit-background-clip: text;
}

.guide-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #d5d7df;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.primary-action {
  color: #06101d;
  background: linear-gradient(125deg, #d9f8ff, var(--tempest));
  border-color: transparent;
  box-shadow: 0 14px 38px rgba(50, 155, 255, .22);
}

.secondary-action {
  background: rgba(10,14,23,.6);
  backdrop-filter: blur(12px);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.evidence-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.evidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #d7dae4;
  font-size: 11px;
  font-weight: 600;
  background: rgba(7, 11, 19, .58);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.evidence-pill::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(127,243,189,.72);
}

.chapter-nav {
  position: sticky;
  top: 72px;
  z-index: 50;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(7, 9, 15, .86);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.chapter-nav::-webkit-scrollbar {
  display: none;
}

.chapter-nav a {
  position: relative;
  min-width: max-content;
  padding: 14px clamp(14px, 2.4vw, 28px);
  color: #8f95a5;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.chapter-nav a::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  content: "";
  background: var(--tempest);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.chapter-nav a.is-active {
  color: var(--ink);
}

.chapter-nav a.is-active::after {
  transform: scaleX(1);
}

.guide-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(82px, 11vw, 140px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(280px, 1fr);
  gap: clamp(28px, 8vw, 108px);
  align-items: end;
  margin-bottom: clamp(38px, 6vw, 70px);
}

.section-heading h2,
.chapter-copy h2,
.hub-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 70px);
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.section-heading p:last-child,
.chapter-intro,
.hub-section > p {
  margin: 0;
  color: #c1c4cf;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.loadout-grid {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.set-visual,
.loadout-rules,
.evidence-card,
.decision-card,
.mechanic-panel,
.run-card,
.lesson-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20,27,43,.92), rgba(10,13,22,.92));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.set-visual {
  min-height: 610px;
}

.set-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(6,8,14,.95));
}

.set-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.set-visual-copy {
  position: absolute;
  right: 26px;
  bottom: 25px;
  left: 26px;
  z-index: 2;
}

.set-visual-copy span,
.rule-label,
.metric-label {
  color: var(--tempest);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.set-visual-copy h3 {
  margin: 7px 0 4px;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -.04em;
}

.set-visual-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.loadout-rules {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.loadout-rule {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 3.3vw, 34px);
  background: rgba(12,16,27,.98);
}

.rule-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: var(--tempest);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  background: radial-gradient(circle at 35% 30%, rgba(176,239,255,.3), rgba(23,94,181,.16) 42%, rgba(6,10,20,.8));
  border: 1px solid rgba(103,220,255,.32);
  border-radius: 19px;
  box-shadow: inset 0 0 22px rgba(103,220,255,.12), 0 0 25px rgba(65,145,255,.08);
}

.rule-icon.materia {
  position: relative;
  border-radius: 50% 50% 45% 55% / 55% 48% 52% 45%;
  transform: rotate(-8deg);
}

.rule-icon.materia::before {
  content: "ϟ";
  transform: rotate(8deg);
}

.rule-copy h3 {
  margin: 5px 0 7px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -.025em;
}

.rule-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.gear-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 17px;
}

.gear-piece {
  padding: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gear-piece img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.gear-piece.optional {
  opacity: .4;
  filter: grayscale(.65);
}

.gear-piece small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.route-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.route-node {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  background: #101522;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.route-node img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  transition: transform .5s ease;
}

.route-node:hover img {
  transform: scale(1.035);
}

.route-node::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(5,7,12,.96));
}

.route-node-copy {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}

.route-node-copy span {
  color: var(--tempest);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.route-node-copy h3 {
  margin: 7px 0 5px;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -.035em;
}

.route-node-copy p {
  margin: 0;
  color: #b7bbc7;
  font-size: 12px;
  line-height: 1.45;
}

.boss-chapter {
  position: relative;
  isolation: isolate;
  min-height: 860px;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.boss-chapter::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: var(--chapter-image);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  filter: saturate(.9);
}

.boss-chapter::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(6,8,14,.98) 0%, rgba(6,8,14,.86) 45%, rgba(6,8,14,.35) 78%),
    linear-gradient(0deg, rgba(6,8,14,.98), transparent 34%, rgba(6,8,14,.65));
}

.boss-chapter[data-tone="blood"] {
  --tempest: #ff7389;
}

.boss-chapter[data-tone="storm"] {
  --tempest: #b89cff;
}

.chapter-inner {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 860px;
  margin: 0 auto;
  padding: clamp(82px, 10vw, 130px) 0;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(36px, 8vw, 100px);
  align-items: center;
}

.chapter-copy h2 {
  max-width: 700px;
}

.chapter-tagline {
  max-width: 680px;
  margin: 20px 0 0;
  color: #d7d9e1;
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.38;
}

.hardcore-rule {
  max-width: 680px;
  margin-top: 28px;
  padding: 20px 22px;
  background: rgba(8,11,18,.7);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--tempest);
  border-radius: 3px 16px 16px 3px;
  backdrop-filter: blur(14px);
}

.hardcore-rule strong {
  display: block;
  margin-bottom: 7px;
  color: var(--tempest);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hardcore-rule p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.mechanic-panel {
  padding: 24px;
  background: rgba(10,14,24,.84);
  backdrop-filter: blur(16px);
}

.mechanic-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: -8px -8px 22px;
  border-radius: 18px;
}

.mechanic-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mechanic-art::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 -50px 60px rgba(8,11,19,.68);
}

.mechanic-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -.035em;
}

.mechanic-panel > p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mechanic-meter {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #c6cad4;
  font-size: 11px;
  font-weight: 700;
}

.meter-track {
  height: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.meter-track span {
  display: block;
  width: var(--meter);
  height: 100%;
  background: linear-gradient(90deg, var(--tempest-deep), var(--tempest));
  border-radius: inherit;
  box-shadow: 0 0 16px color-mix(in srgb, var(--tempest) 60%, transparent);
}

.meter-note {
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
}

.combo-block {
  margin-top: 34px;
}

.combo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.combo-title strong {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.combo-title span {
  color: var(--muted);
  font-size: 11px;
}

.card-combo {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}

.combo-card {
  position: relative;
  flex: 0 0 122px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #111725;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  transition: transform .2s ease, border-color .2s ease;
}

.combo-card:hover,
.combo-card:focus-visible {
  z-index: 2;
  border-color: var(--tempest);
  outline: none;
  transform: translateY(-5px) rotate(-.5deg);
}

.combo-card img {
  width: 100%;
  aspect-ratio: 2 / 2.72;
  object-fit: cover;
}

.combo-card span {
  display: block;
  min-height: 43px;
  padding: 9px 8px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.combo-arrow {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  color: var(--tempest);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.core-deck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.core-card {
  display: grid;
  grid-template-columns: minmax(118px, .7fr) minmax(0, 1fr);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20,27,43,.96), rgba(9,12,20,.96));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.core-card > a {
  min-height: 280px;
  overflow: hidden;
  background: #0b101c;
}

.core-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.core-card > a:hover img,
.core-card > a:focus-visible img {
  transform: scale(1.025);
}

.core-card-copy {
  display: flex;
  padding: 24px 20px;
  flex-direction: column;
  justify-content: center;
}

.card-role,
.troubleshoot-card > span,
.route-stats span {
  color: var(--tempest);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.core-card-copy h3,
.guide-callout h3,
.turn-step h3,
.troubleshoot-card h3 {
  margin: 7px 0 8px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -.035em;
}

.core-card-copy p,
.guide-callout p,
.turn-step p,
.troubleshoot-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.guide-callout {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 36px);
  background:
    radial-gradient(circle at 0% 0%, rgba(103,220,255,.14), transparent 26rem),
    rgba(12,16,27,.9);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.guide-callout h3 {
  margin-bottom: 0;
}

.guide-callout strong {
  color: var(--ink);
}

.turn-loop {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.turn-step {
  display: grid;
  min-height: 285px;
  padding: 24px;
  align-content: space-between;
  background: linear-gradient(145deg, rgba(18,25,40,.94), rgba(9,12,20,.96));
  border: 1px solid var(--line);
  border-radius: 22px;
}

.turn-step > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #06101d;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(125deg, #d9f8ff, var(--tempest));
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(50,155,255,.18);
}

.turn-step h3 {
  margin-top: 28px;
}

.route-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.route-stats article {
  padding: 22px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.route-stats strong,
.route-stats small {
  display: block;
}

.route-stats strong {
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -.035em;
}

.route-stats small {
  color: var(--muted);
  font-size: 12px;
}

.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.troubleshoot-card {
  min-height: 230px;
  padding: clamp(22px, 3vw, 30px);
  background: linear-gradient(145deg, rgba(22,28,43,.92), rgba(10,13,21,.96));
  border: 1px solid var(--line);
  border-radius: 20px;
}

.troubleshoot-card h3 {
  margin-top: 14px;
}

.decision-grid,
.run-grid,
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.decision-card,
.run-card,
.lesson-card {
  padding: clamp(20px, 3vw, 30px);
  box-shadow: none;
}

.decision-card strong,
.run-card strong,
.lesson-card strong {
  display: block;
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -.03em;
}

.decision-card p,
.run-card p,
.lesson-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.decision-card[data-state="fail"] {
  border-color: rgba(255,128,111,.32);
  background: linear-gradient(145deg, rgba(65,20,25,.7), rgba(15,13,20,.95));
}

.decision-card[data-state="win"] {
  border-color: rgba(127,243,189,.28);
  background: linear-gradient(145deg, rgba(16,57,48,.62), rgba(10,15,20,.95));
}

.run-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.run-metric {
  padding: 19px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.run-metric strong {
  display: block;
  margin-top: 7px;
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 43px);
  line-height: 1;
  letter-spacing: -.05em;
}

.evidence-card {
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 90% 0%, rgba(103,220,255,.13), transparent 30rem),
    linear-gradient(145deg, rgba(18,25,40,.95), rgba(9,12,20,.95));
}

.evidence-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.evidence-card h3 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.045em;
}

.evidence-status {
  padding: 9px 12px;
  color: var(--success);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(127,243,189,.08);
  border: 1px solid rgba(127,243,189,.25);
  border-radius: 999px;
}

.evidence-note {
  margin: 18px 0 0;
  padding-top: 18px;
  color: #9399a8;
  font-size: 12px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

.next-tower {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 80px 20px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.next-tower::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: var(--next-image);
  background-position: center;
  background-size: cover;
  filter: saturate(.65);
}

.next-tower::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at center, rgba(6,8,14,.55), rgba(6,8,14,.96) 75%);
}

.next-tower-content {
  max-width: 820px;
}

.next-tower h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 86px);
  line-height: .94;
  letter-spacing: -.06em;
}

.next-tower p {
  max-width: 650px;
  margin: 20px auto 0;
  color: #c2c5cf;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}

.guide-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #7f8492;
  font-size: 11px;
  border-top: 1px solid var(--line);
}

.guide-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.guide-footer a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.65,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Guide hub */
.hub-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(90px, 14vw, 170px) 0 70px;
}

.hub-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 126px);
  line-height: .85;
  letter-spacing: -.075em;
}

.hub-hero h1 span {
  color: transparent;
  background: linear-gradient(110deg, var(--tempest), #fff 55%, var(--blood));
  background-clip: text;
  -webkit-background-clip: text;
}

.hub-hero p {
  max-width: 760px;
  margin: 32px 0 0;
  color: #c6c9d2;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 29px);
  line-height: 1.45;
}

.guide-select {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 100px;
}

.guide-cover {
  position: relative;
  display: grid;
  min-height: 640px;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.guide-cover-wide {
  grid-column: 1 / -1;
  min-height: 540px;
}

.guide-cover::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: var(--cover-image);
  background-position: center;
  background-size: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.guide-cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent 22%, rgba(6,8,14,.15) 45%, rgba(6,8,14,.96) 87%);
}

.guide-cover:hover::before {
  transform: scale(1.035);
}

.guide-cover-copy {
  padding: clamp(26px, 5vw, 48px);
}

.guide-cover-copy span {
  color: var(--tempest);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.guide-cover-copy h2 {
  margin: 10px 0 12px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 74px);
  line-height: .9;
  letter-spacing: -.06em;
}

.guide-cover-copy p {
  max-width: 500px;
  margin: 0;
  color: #c2c6d0;
  line-height: 1.55;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.cover-meta small {
  padding: 7px 9px;
  color: #d8dbe3;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hub-section {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 120px;
  text-align: center;
}

.hub-section > p {
  max-width: 720px;
  margin: 22px auto 0;
}

@media (max-width: 900px) {
  .guide-nav a:not([aria-current="page"]):not(.always-visible) {
    display: none;
  }

  .section-heading,
  .loadout-grid,
  .chapter-inner {
    grid-template-columns: 1fr;
  }

  .chapter-inner {
    align-content: center;
  }

  .mechanic-panel {
    max-width: 560px;
  }

  .route-map,
  .core-deck-grid,
  .decision-grid,
  .run-grid,
  .lesson-grid,
  .troubleshoot-grid {
    grid-template-columns: 1fr;
  }

  .turn-loop {
    grid-template-columns: 1fr 1fr;
  }

  .guide-callout {
    grid-template-columns: 1fr;
  }

  .route-node,
  .route-node img {
    min-height: 350px;
  }

  .run-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .guide-select {
    grid-template-columns: 1fr;
  }

  .guide-cover {
    min-height: 590px;
  }

  .boss-chapter::before {
    background-attachment: scroll;
  }
}

@media (max-width: 600px) {
  .guide-header {
    min-height: 64px;
    padding-inline: 14px;
  }

  .guide-brand-copy {
    display: none;
  }

  .guide-nav a {
    padding-inline: 9px;
    font-size: 10px;
  }

  .chapter-nav {
    top: 64px;
    justify-content: flex-start;
  }

  .guide-hero-content,
  .guide-section,
  .chapter-inner,
  .guide-footer,
  .hub-hero,
  .guide-select {
    width: min(100% - 28px, 1180px);
  }

  .guide-hero::after {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(5,7,12,.6) 68%, rgba(5,7,12,.28)),
      linear-gradient(90deg, rgba(5,7,12,.72), transparent);
  }

  .guide-hero h1 {
    font-size: clamp(45px, 15vw, 72px);
  }

  .guide-lead {
    font-size: 19px;
  }

  .set-visual {
    min-height: 520px;
  }

  .loadout-rule {
    grid-template-columns: 50px 1fr;
    gap: 14px;
  }

  .rule-icon {
    width: 50px;
    height: 50px;
  }

  .gear-row {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
  }

  .chapter-inner {
    min-height: auto;
  }

  .boss-chapter {
    min-height: auto;
  }

  .mechanic-panel {
    padding: 17px;
  }

  .combo-card {
    flex-basis: 104px;
  }

  .core-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .core-card > a {
    min-height: 250px;
  }

  .core-card-copy {
    padding: 20px 16px;
  }

  .turn-loop,
  .route-stats {
    grid-template-columns: 1fr;
  }

  .turn-step,
  .troubleshoot-card {
    min-height: auto;
  }

  .run-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .evidence-card-head,
  .guide-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-cover {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .boss-chapter::before {
    background-attachment: scroll;
  }
}

/* T5 walkthrough: editorial layout for a player-facing guide. */
.walkthrough-page {
  --reading-width: 760px;
  background:
    radial-gradient(circle at 50% 0%, rgba(30, 103, 180, .17), transparent 34rem),
    var(--night);
}

.walkthrough-page[data-build="crimson"] {
  --tempest: #ff6f89;
  --tempest-deep: #a91f4b;
}

.walkthrough-page[data-build="aegis"] {
  --tempest: #e6ca77;
  --tempest-deep: #8b7135;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 137, 66, .18), transparent 34rem),
    var(--night);
}

.walkthrough-page[data-build="pyre"] {
  --tempest: #ffad59;
  --tempest-deep: #b8441f;
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 71, 26, .2), transparent 34rem),
    var(--night);
}

.walkthrough-page[data-build="astral"] {
  --tempest: #b9a4ff;
  --tempest-deep: #6746c7;
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 70, 199, .22), transparent 34rem),
    var(--night);
}

.walkthrough-page .reveal {
  opacity: 1;
  transform: none;
}

.walkthrough-shell {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

.walkthrough-hero {
  position: relative;
  isolation: isolate;
  min-height: 530px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.walkthrough-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: var(--hero-image);
  background-position: center 27%;
  background-size: cover;
  filter: saturate(.72) contrast(1.04);
}

.walkthrough-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 8, 14, .98) 0%, rgba(5, 8, 14, .87) 52%, rgba(5, 8, 14, .28) 100%),
    linear-gradient(0deg, var(--night) 0%, transparent 58%);
}

.walkthrough-hero-copy {
  padding-block: 96px 72px;
}

.walkthrough-hero h1 {
  max-width: 830px;
  margin: 13px 0 22px;
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 92px);
  line-height: .94;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.walkthrough-lead {
  max-width: 730px;
  margin: 0;
  color: #e0e2e8;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.5;
}

.walkthrough-audience {
  max-width: 720px;
  margin: 24px 0 0;
  padding-left: 16px;
  color: #c0c5d0;
  line-height: 1.65;
  border-left: 2px solid var(--tempest);
}

.walkthrough-audience strong {
  color: var(--ink);
}

.walkthrough-content {
  padding-bottom: 80px;
}

.walkthrough-section {
  padding: 88px 0;
  scroll-margin-top: 40px;
  border-bottom: 1px solid var(--line);
}

.walkthrough-section:last-child {
  border-bottom: 0;
}

.chapter-heading,
.walkthrough-prose,
.player-note,
.mechanic-explainer,
.progression-steps,
.diagnosis-list,
.technical-evidence > details {
  max-width: var(--reading-width);
  margin-inline: auto;
}

.chapter-heading {
  margin-bottom: 36px;
}

.chapter-eyebrow {
  margin: 0 0 10px;
  color: var(--tempest);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.chapter-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.chapter-heading > p:last-child {
  margin: 22px 0 0;
  color: #c8cbd4;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.58;
}

.walkthrough-prose {
  color: #d0d3db;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
}

.walkthrough-prose > *:first-child {
  margin-top: 0;
}

.walkthrough-prose > *:last-child {
  margin-bottom: 0;
}

.walkthrough-prose h3 {
  margin: 38px 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -.035em;
}

.walkthrough-prose strong,
.route-walkthrough-body strong,
.gameplay-figure figcaption strong {
  color: var(--ink);
}

.progression-steps {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: rgba(12, 16, 26, .84);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.progression-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.progression-steps li:last-child {
  border-bottom: 0;
}

.progression-steps li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #06101d;
  font-family: var(--display);
  font-weight: 800;
  background: var(--tempest);
  border-radius: 50%;
}

.progression-steps strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 18px;
}

.progression-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.56;
}

.player-note {
  margin-top: 28px;
  padding: 20px 22px;
  background: rgba(103, 220, 255, .065);
  border: 1px solid rgba(103, 220, 255, .23);
  border-left: 3px solid var(--tempest);
  border-radius: 4px 16px 16px 4px;
}

.player-note[data-kind="mistake"] {
  background: rgba(255, 128, 111, .06);
  border-color: rgba(255, 128, 111, .22);
  border-left-color: var(--danger);
}

.player-note[data-kind="why"] {
  background: rgba(245, 206, 119, .06);
  border-color: rgba(245, 206, 119, .22);
  border-left-color: var(--gold);
}

.player-note > strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 15px;
}

.player-note p {
  margin: 0;
  color: #bfc3cd;
  line-height: 1.6;
}

.gameplay-figure {
  max-width: 940px;
  margin: 34px auto;
  overflow: hidden;
  background: #0d121d;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 68px rgba(0, 0, 0, .32);
}

.gameplay-figure img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #05070b;
}

.gameplay-figure figcaption {
  padding: 15px 18px 17px;
  color: #aeb3c0;
  font-size: 13px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

.gameplay-figure.compact {
  margin-block: 0;
}

.evidence-figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 34px auto;
}

.guide-table-wrap {
  max-width: 940px;
  margin: 34px auto;
  overflow-x: auto;
  background: rgba(12, 16, 26, .82);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.guide-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
}

.guide-table caption {
  padding: 18px 20px 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}

.guide-table th,
.guide-table td {
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.guide-table th {
  color: var(--tempest);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.guide-table td {
  color: #c5c9d2;
  font-size: 14px;
  line-height: 1.52;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-table-scroll-hint {
  display: none;
}

.card-role-list {
  display: grid;
  gap: 14px;
  max-width: 940px;
  margin: 34px auto;
}

.card-role-list article {
  display: grid;
  grid-template-columns: 145px 1fr;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 27, 43, .92), rgba(10, 13, 21, .95));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.card-role-list article > a {
  min-height: 205px;
  overflow: hidden;
}

.card-role-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-role-list article > div {
  padding: 25px 28px;
  align-self: center;
}

.card-role-list span,
.mechanic-explainer span,
.route-walkthrough header span {
  color: var(--tempest);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.card-role-list h3 {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -.04em;
}

.card-role-list p {
  margin: 0;
  color: #b9bdc7;
  line-height: 1.62;
}

.media-prose-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 30px;
  align-items: start;
  max-width: 940px;
  margin: 34px auto;
}

.media-prose-grid > .walkthrough-prose {
  margin: 0;
}

.mechanic-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 34px;
}

.mechanic-explainer article {
  padding: 23px;
  background: rgba(12, 17, 28, .85);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.mechanic-explainer p {
  margin: 9px 0 0;
  color: #c5c9d2;
  line-height: 1.6;
}

.prose-steps {
  padding-left: 24px;
}

.prose-steps li {
  margin: 11px 0;
  padding-left: 6px;
}

.route-walkthrough {
  max-width: 940px;
  margin: 28px auto;
  overflow: hidden;
  background: rgba(11, 15, 24, .88);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.route-walkthrough > header {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  display: flex;
  align-items: end;
  padding: 28px;
  background-image: var(--route-image);
  background-position: center;
  background-size: cover;
}

.route-walkthrough > header::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(6, 8, 14, .97), rgba(6, 8, 14, .2));
}

.route-walkthrough header h3 {
  margin: 7px 0 3px;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1;
  letter-spacing: -.05em;
}

.route-walkthrough header p {
  margin: 0;
  color: #d0d3dc;
}

.route-walkthrough-body {
  padding: 30px clamp(24px, 5vw, 48px) 36px;
  color: #c8ccd5;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
}

.route-walkthrough-body > p:first-child {
  margin-top: 0;
}

.route-walkthrough-body > .player-note {
  max-width: none;
  font-family: var(--body);
  font-size: 15px;
}

.route-walkthrough-body.media-prose-grid {
  margin: 0;
  max-width: none;
}

.route-walkthrough-body.media-prose-grid .player-note {
  max-width: none;
  font-family: var(--body);
  font-size: 15px;
}

.diagnosis-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: rgba(12, 16, 26, .82);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.diagnosis-list article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.diagnosis-list article:last-child {
  border-bottom: 0;
}

.diagnosis-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.3;
}

.diagnosis-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.technical-evidence {
  padding-top: 64px;
}

.technical-evidence details {
  overflow: hidden;
  background: rgba(12, 16, 26, .7);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.technical-evidence summary {
  padding: 20px 22px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
}

.technical-evidence summary:hover,
.technical-evidence summary:focus-visible {
  color: var(--tempest);
}

.technical-evidence-body {
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.65;
}

.technical-evidence-body .guide-table-wrap {
  margin: 20px 0;
}

@media (max-width: 760px) {
  .guide-table-scroll-hint {
    display: block;
    max-width: 940px;
    margin: 28px auto -22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
  }

  .walkthrough-shell {
    width: min(100% - 28px, 1040px);
  }

  .walkthrough-hero {
    min-height: 580px;
  }

  .walkthrough-hero::after {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(5, 8, 14, .72) 75%, rgba(5, 8, 14, .38)),
      linear-gradient(90deg, rgba(5, 8, 14, .68), transparent);
  }

  .walkthrough-hero-copy {
    padding-block: 92px 54px;
  }

  .walkthrough-hero h1 {
    font-size: clamp(47px, 15vw, 70px);
  }

  .walkthrough-section {
    padding: 68px 0;
  }

  .progression-steps li {
    grid-template-columns: 42px 1fr;
    gap: 13px;
    padding: 19px 17px;
  }

  .progression-steps li > span {
    width: 38px;
    height: 38px;
  }

  .evidence-figure-grid,
  .media-prose-grid,
  .mechanic-explainer {
    grid-template-columns: 1fr;
  }

  .card-role-list article {
    grid-template-columns: 112px 1fr;
  }

  .card-role-list article > a {
    min-height: 245px;
  }

  .card-role-list article > div {
    padding: 20px 17px;
  }

  .card-role-list h3 {
    font-size: 21px;
  }

  .card-role-list p {
    font-size: 14px;
  }

  .route-walkthrough > header {
    min-height: 210px;
    padding: 22px;
  }

  .route-walkthrough-body {
    padding: 24px 20px 28px;
    font-size: 17px;
  }

  .route-walkthrough-body.media-prose-grid {
    padding: 24px 20px 28px;
  }

  .diagnosis-list article {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 19px;
  }
}

@media print {
  .walkthrough-page {
    color-scheme: light;
    color: #111;
    background: #fff;
  }

  .guide-header,
  .guide-progress,
  .chapter-nav,
  .guide-footer {
    display: none;
  }

  .walkthrough-hero {
    min-height: auto;
    color: #111;
  }

  .walkthrough-hero::before,
  .walkthrough-hero::after {
    display: none;
  }

  .walkthrough-hero-copy {
    padding: 40px 0;
  }

  .walkthrough-lead,
  .walkthrough-audience,
  .chapter-heading > p:last-child,
  .walkthrough-prose,
  .route-walkthrough-body {
    color: #222;
  }

  .walkthrough-section,
  .route-walkthrough,
  .gameplay-figure {
    break-inside: avoid;
  }
}

/* Boss playbook ---------------------------------------------------------- */

.boss-playbook-page {
  --playbook-width: 1280px;
  background:
    radial-gradient(circle at 8% 4%, rgba(34, 126, 255, .2), transparent 33rem),
    radial-gradient(circle at 94% 18%, rgba(245, 206, 119, .13), transparent 30rem),
    radial-gradient(circle at 52% 62%, rgba(139, 18, 48, .11), transparent 42rem),
    #05070c;
}

.boss-playbook-promo {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), 1280px);
  min-height: 540px;
  margin: 30px auto 54px;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #080b12;
  border: 1px solid rgba(245, 206, 119, .26);
  border-radius: 30px 9px 30px 9px;
  box-shadow: 0 35px 100px rgba(0,0,0,.42);
}

.boss-playbook-promo::before {
  position: absolute;
  inset: 10px;
  z-index: 1;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(245, 206, 119, .1);
  border-radius: 22px 5px 22px 5px;
}

.boss-playbook-promo-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/wiki/images/biomes/phase3-wide-core/route_boss_intro_t3_verdant_warrens.webp') 68% 28% / cover no-repeat;
  filter: saturate(.9) contrast(1.06);
}

.boss-playbook-promo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(6,8,14,.99) 3%, rgba(6,8,14,.92) 38%, rgba(6,8,14,.18) 75%),
    linear-gradient(0deg, rgba(6,8,14,.92), transparent 58%);
}

.boss-playbook-promo-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(34px, 6vw, 74px);
}

.boss-playbook-promo h2 {
  margin: 13px 0 18px;
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: .92;
  letter-spacing: -.06em;
}

.boss-playbook-promo p {
  max-width: 610px;
  margin: 0;
  color: #c8cad2;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.58;
}

.boss-playbook-promo .cover-meta {
  margin: 24px 0;
}

.boss-route-answer {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 20px 22px;
  color: inherit;
  background:
    linear-gradient(140deg, rgba(103, 220, 255, .11), rgba(34, 126, 255, .035)),
    rgba(10, 15, 24, .9);
  border: 1px solid rgba(103, 220, 255, .24);
  border-radius: 16px 6px 16px 6px;
  box-shadow: inset 3px 0 0 rgba(103, 220, 255, .72);
}

.boss-route-answer > span:first-child {
  color: var(--tempest);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.boss-route-answer strong {
  color: #fff;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.28;
}

.boss-route-answer p {
  margin: 0 !important;
  color: #c9ccd5 !important;
  font-size: 15px;
  line-height: 1.6;
}

.boss-route-answer > span:last-child {
  width: fit-content;
  margin-top: 3px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(245, 206, 119, .3);
}

@media (max-width: 760px) {
  .boss-playbook-promo {
    width: calc(100% - 28px);
    min-height: 610px;
  }

  .boss-playbook-promo-art {
    background-position: 58% 22%;
  }

  .boss-playbook-promo::after {
    background: linear-gradient(0deg, rgba(6,8,14,.99) 8%, rgba(6,8,14,.78) 69%, rgba(6,8,14,.24));
  }

  .boss-playbook-promo-copy {
    padding: 28px 23px;
  }

  .boss-playbook-promo h2 {
    font-size: 49px;
  }

  .boss-playbook-promo p {
    font-size: 17px;
  }
}

.boss-playbook-page main {
  overflow: clip;
}

.boss-playbook-hero {
  position: relative;
  display: grid;
  min-height: min(830px, calc(100svh - 72px));
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid rgba(245, 206, 119, .18);
}

.boss-playbook-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, #05070c 2%, rgba(5, 7, 12, .97) 34%, rgba(5, 7, 12, .5) 67%, rgba(5, 7, 12, .72)),
    linear-gradient(0deg, #05070c 0%, transparent 38%);
}

.boss-playbook-hero::after {
  position: absolute;
  inset: 22px;
  z-index: -1;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(245, 206, 119, .16);
  clip-path: polygon(0 0, 26% 0, 26% 1px, 74% 1px, 74% 0, 100% 0, 100% 100%, 74% 100%, 74% calc(100% - 1px), 26% calc(100% - 1px), 26% 100%, 0 100%);
}

.boss-playbook-hero-art {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -3;
  background:
    linear-gradient(90deg, transparent 60%, rgba(255, 93, 55, .13)),
    url('/wiki/images/biomes/phase3-wide-core/route_boss_intro_t25_eclipse_throne.webp') center 35% / cover no-repeat;
  filter: saturate(.86) contrast(1.06);
}

.boss-playbook-hero-copy {
  width: min(calc(100% - 48px), var(--playbook-width));
  margin-inline: auto;
  padding: 110px 0 90px;
}

.boss-playbook-hero-copy > * {
  max-width: 760px;
}

.boss-playbook-hero h1 {
  margin: 20px 0 24px;
  font-family: var(--display);
  font-size: clamp(58px, 7.2vw, 112px);
  line-height: .91;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.boss-playbook-hero h1 span {
  color: transparent;
  background: linear-gradient(110deg, #fff 4%, var(--gold) 48%, #ff926e 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.boss-playbook-hero-copy > p:not(.guide-kicker) {
  max-width: 660px;
  margin: 0;
  color: #c9cbd3;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.48;
}

.boss-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.boss-reading-guide,
.boss-tower-list,
.boss-final-check {
  width: min(calc(100% - 48px), var(--playbook-width));
  margin-inline: auto;
}

.boss-reading-guide {
  padding: 104px 0 82px;
}

.boss-reading-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr);
  gap: 32px 70px;
  align-items: end;
}

.boss-reading-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.boss-reading-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 74px);
  line-height: .98;
  letter-spacing: -.05em;
}

.boss-reading-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.boss-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 50px;
}

.boss-reading-step {
  position: relative;
  min-height: 240px;
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(10, 14, 23, .82);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 65px rgba(0,0,0,.2);
}

.boss-reading-step::after {
  position: absolute;
  right: -20px;
  bottom: -55px;
  color: rgba(245, 206, 119, .055);
  content: attr(data-step);
  font-family: var(--display);
  font-size: 150px;
  font-weight: 700;
}

.boss-reading-step > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #080b11;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(145deg, #fff0bd, var(--gold));
  border-radius: 12px 4px;
  box-shadow: 0 0 26px rgba(245, 206, 119, .17);
}

.boss-reading-step h3 {
  margin: 25px 0 10px;
  font-family: var(--display);
  font-size: 22px;
}

.boss-reading-step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.boss-glossary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(103, 220, 255, .035);
  border: 1px solid rgba(103, 220, 255, .14);
  border-radius: 15px;
}

.boss-glossary > strong {
  margin-right: 7px;
  color: var(--tempest);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.boss-glossary > span {
  padding: 6px 10px;
  color: #bdc1cb;
  font-size: 13px;
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

.boss-glossary b {
  color: var(--ink);
}

.boss-tower-filter {
  position: sticky;
  top: 72px;
  z-index: 50;
  display: flex;
  width: min(calc(100% - 32px), 850px);
  margin: 0 auto 16px;
  padding: 9px;
  gap: 5px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  background: rgba(7, 10, 17, .82);
  border: 1px solid rgba(245, 206, 119, .17);
  border-radius: 999px;
  box-shadow: 0 18px 55px rgba(0,0,0,.32);
  backdrop-filter: blur(22px) saturate(1.4);
  scrollbar-width: none;
}

.boss-tower-filter::-webkit-scrollbar {
  display: none;
}

.boss-tower-filter > span {
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.boss-tower-filter button {
  min-width: 54px;
  padding: 9px 13px;
  color: #b9bdc9;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.boss-tower-filter button:hover {
  color: var(--ink);
  border-color: var(--line);
  transform: translateY(-1px);
}

.boss-tower-filter button[aria-pressed="true"] {
  color: #080b11;
  font-weight: 800;
  background: linear-gradient(125deg, #fff2c7, var(--gold));
  box-shadow: 0 7px 24px rgba(245, 206, 119, .16);
}

.boss-tower-filter button:focus-visible,
.boss-guide-card a:focus-visible {
  outline: 2px solid var(--tempest);
  outline-offset: 3px;
}

.boss-tower-list {
  padding-bottom: 70px;
}

.boss-tower-group {
  padding: 98px 0 30px;
  scroll-margin-top: 138px;
}

.boss-tower-group[hidden] {
  display: none;
}

.boss-tower-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(245, 206, 119, .2);
}

.boss-tower-heading span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.boss-tower-heading h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
}

.boss-tower-heading > a {
  flex: none;
  padding: 10px 0;
  color: var(--tempest);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(103, 220, 255, .3);
}

.boss-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boss-guide-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(18, 24, 38, .97), rgba(8, 11, 18, .97));
  border: 1px solid rgba(255,255,255,.115);
  border-radius: 24px 9px 24px 9px;
  box-shadow: 0 26px 80px rgba(0,0,0,.3);
  scroll-margin-top: 145px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.boss-guide-card:hover {
  border-color: rgba(245, 206, 119, .28);
  box-shadow: 0 34px 95px rgba(0,0,0,.4), 0 0 0 1px rgba(245, 206, 119, .045);
  transform: translateY(-3px);
}

.boss-guide-card::after {
  position: absolute;
  inset: 8px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(245, 206, 119, .055);
  border-radius: 18px 5px 18px 5px;
}

.boss-card-media {
  position: relative;
  display: flex;
  min-height: 265px;
  padding: 30px;
  align-items: end;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(7, 9, 15, .98) 2%, rgba(7, 9, 15, .48) 70%, rgba(7, 9, 15, .12)),
    linear-gradient(90deg, rgba(7, 9, 15, .45), transparent),
    var(--boss-image) center 26% / cover no-repeat;
  border-bottom: 1px solid rgba(245, 206, 119, .2);
}

.boss-card-media::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(112deg, rgba(103,220,255,.07), transparent 45%, rgba(255,92,114,.08));
  mix-blend-mode: screen;
}

.boss-card-media > div,
.boss-number {
  position: relative;
  z-index: 1;
}

.boss-route {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.boss-card-media h3 {
  margin: 7px 0 5px;
  font-family: var(--display);
  font-size: clamp(29px, 3vw, 42px);
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 4px 20px rgba(0,0,0,.7);
}

.boss-card-media p {
  margin: 0;
  color: #d7d9df;
  font-family: var(--serif);
  font-size: 17px;
}

.boss-number {
  align-self: flex-start;
  color: rgba(255,255,255,.32);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
}

.boss-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  padding: 22px;
}

.boss-meaning,
.boss-now,
.boss-warning {
  border-radius: 14px;
}

.boss-meaning {
  padding: 18px 19px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.075);
}

.boss-meaning > span,
.boss-now > span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.boss-meaning > span {
  color: var(--gold);
}

.boss-meaning p,
.boss-now p {
  margin: 0;
  color: #c0c3cc;
  font-size: 15px;
  line-height: 1.63;
}

.boss-now {
  padding: 19px;
  background: linear-gradient(145deg, rgba(28, 161, 216, .105), rgba(34, 126, 255, .04));
  border: 1px solid rgba(103, 220, 255, .22);
}

.boss-now > span {
  color: var(--tempest);
}

.boss-now ul,
.boss-now ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 21px;
  color: #d9dbe1;
  font-size: 15px;
  line-height: 1.55;
}

.boss-now p + ul,
.boss-now p + ol,
.boss-now ul + p,
.boss-now ol + p {
  margin-top: 11px;
}

.boss-now strong {
  color: #fff;
}

.boss-now em {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.boss-warning {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 13px;
  padding: 14px 17px;
  align-items: baseline;
  background: rgba(255, 128, 111, .065);
  border: 1px solid rgba(255, 128, 111, .17);
}

.boss-warning strong {
  color: #ff9b89;
  font-family: var(--display);
  font-size: 12px;
}

.boss-warning span {
  color: #bdc0c9;
  font-size: 13px;
  line-height: 1.55;
}

.boss-final-check {
  margin-bottom: 100px;
  padding: clamp(34px, 6vw, 74px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 20%, rgba(245, 206, 119, .12), transparent 25rem),
    linear-gradient(145deg, rgba(17, 24, 38, .98), rgba(8, 11, 18, .98));
  border: 1px solid rgba(245, 206, 119, .2);
  border-radius: 30px 10px;
  box-shadow: var(--shadow);
}

.boss-final-check h2 {
  max-width: 780px;
  margin: 12px 0 30px;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -.05em;
}

.boss-final-check ol {
  display: grid;
  max-width: 820px;
  gap: 10px;
  margin: 0 0 30px;
  padding-left: 24px;
  color: #d4d6dd;
  font-size: 17px;
  line-height: 1.58;
}

@media (max-width: 1040px) {
  .boss-playbook-hero-art {
    left: 12%;
    opacity: .72;
  }

  .boss-reading-heading {
    grid-template-columns: 1fr;
  }

  .boss-reading-heading .section-kicker {
    grid-column: auto;
  }

  .boss-reading-grid {
    grid-template-columns: 1fr;
  }

  .boss-reading-step {
    min-height: auto;
  }

  .boss-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .boss-playbook-hero {
    min-height: 680px;
  }

  .boss-playbook-hero::before {
    background: linear-gradient(0deg, #05070c 0%, rgba(5,7,12,.82) 66%, rgba(5,7,12,.48));
  }

  .boss-playbook-hero::after {
    inset: 12px;
  }

  .boss-playbook-hero-art {
    inset: 0;
    background-position: 63% 30%;
    opacity: .58;
  }

  .boss-playbook-hero-copy,
  .boss-reading-guide,
  .boss-tower-list,
  .boss-final-check {
    width: min(calc(100% - 28px), var(--playbook-width));
  }

  .boss-playbook-hero-copy {
    display: flex;
    min-height: 680px;
    padding: 105px 0 45px;
    flex-direction: column;
    justify-content: end;
  }

  .boss-playbook-hero h1 {
    margin-top: 13px;
    font-size: clamp(48px, 14.5vw, 68px);
  }

  .boss-playbook-hero-copy > p:not(.guide-kicker) {
    font-size: 18px;
  }

  .boss-hero-actions {
    display: grid;
  }

  .boss-hero-actions a {
    justify-content: center;
    text-align: center;
  }

  .boss-reading-guide {
    padding: 78px 0 60px;
  }

  .boss-reading-heading h2 {
    font-size: 45px;
  }

  .boss-reading-grid {
    margin-top: 34px;
  }

  .boss-reading-step {
    padding: 24px;
  }

  .boss-glossary {
    align-items: stretch;
    flex-direction: column;
  }

  .boss-glossary > span {
    border-radius: 9px;
  }

  .boss-tower-filter {
    top: 64px;
    width: calc(100% - 18px);
    justify-content: flex-start;
  }

  .boss-tower-filter > span {
    display: none;
  }

  .boss-tower-group {
    padding-top: 72px;
  }

  .boss-tower-heading {
    align-items: start;
    flex-direction: column;
  }

  .boss-tower-heading h2 {
    font-size: 42px;
  }

  .boss-card-media {
    min-height: 225px;
    padding: 22px;
  }

  .boss-card-media h3 {
    font-size: 32px;
  }

  .boss-card-content {
    padding: 13px;
  }

  .boss-meaning,
  .boss-now {
    padding: 17px;
  }

  .boss-warning {
    grid-template-columns: 1fr;
  }

  .boss-final-check {
    margin-bottom: 70px;
    padding: 30px 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boss-guide-card,
  .boss-tower-filter button {
    transition: none;
  }
}
