:root {
  --night: #10161d;
  --panel: #18212a;
  --paper: #f3efe5;
  --ink: #171c20;
  --muted: #66717b;
  --line: rgba(23, 28, 32, 0.16);
  --snow: #f8fbff;
  --orange: #ff9d1d;
  --orange-soft: #ffe0ad;
  --red: #d84b38;
  --blue: #5ab4d6;
  --green: #64b88c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
main { overflow: hidden; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  position: relative;
  color: var(--snow);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--night);
  background-size: 42px 42px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -210px;
  bottom: -300px;
  border: 75px solid rgba(255,157,29,.18);
  border-radius: 50%;
}
.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 80px;
  align-items: center;
  padding-block: 88px;
}
.eyebrow,.kicker,.mini-label {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1,h2,h3,p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: .88;
  letter-spacing: -.07em;
  text-wrap: balance;
}
h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.lead {
  max-width: 700px;
  margin-bottom: 0;
  color: #c8d2da;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
}
.event-facts { display: grid; gap: 12px; }
.event-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 4px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(8px);
}
.event-facts strong { color: var(--orange); font-size: 2.2rem; line-height: 1; }
.event-facts span { color: #d8e0e5; line-height: 1.35; }

.core { padding-block: 84px; border-bottom: 1px solid var(--line); }
.core h2 { max-width: 900px; }
.core-flow,.priority {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}
.core-flow span,.priority span {
  flex: 1;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,.35);
  line-height: 1.45;
}
.core-flow i,.priority i { color: var(--orange); font-size: 1.4rem; font-style: normal; }

.section { padding-block: 105px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  margin-bottom: 52px;
}
.section-head>div { max-width: 760px; }
.section-head h2 { margin-bottom: 0; }
.section-note {
  max-width: 500px;
  margin-bottom: 0;
  color: #b4c0c9;
  line-height: 1.65;
}
.section-note.dark { color: var(--muted); }
.timeline { min-width: 340px; display: grid; grid-template-columns: repeat(3,1fr); position: relative; }
.timeline::before { content:""; position:absolute; left:12%; right:12%; top:16px; height:2px; background: var(--orange); }
.timeline div { position: relative; text-align: center; }
.timeline b {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--orange);
  font-size: .8rem;
  z-index: 1;
}
.timeline span { color: var(--muted); font-size: .78rem; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-grid li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
.check-grid span { color: var(--red); font-weight: 850; }
.check-grid p { margin: 0; color: #384149; line-height: 1.55; }
.notice {
  margin: 38px 0 0;
  padding: 20px 24px;
  border-left: 5px solid var(--red);
  background: #ebe5d9;
  line-height: 1.6;
}
.notice.amber { border-color: var(--orange); background: #fff0d5; }

.roles,.troops,.stats {
  padding-block: 105px;
  color: var(--snow);
  background: var(--night);
}
.section-head.light .kicker { color: var(--orange); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.role-card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--panel);
}
.role-card.leader { border-top: 6px solid var(--orange); }
.role-card.joiner { border-top: 6px solid var(--blue); }
.role-label { margin-bottom: 24px; color: #aebbc4; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-slots { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 30px; }
.hero-slots div {
  min-height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.045);
}
.hero-slots b { font-size: 2rem; }
.hero-slots span { color: #bac5cc; font-size: .75rem; }
.joiner .hero-slots .active { border-color: var(--orange); background: rgba(255,157,29,.13); }
.joiner .hero-slots .active b { color: var(--orange); }
.joiner .hero-slots .muted { opacity: .55; }
.role-card h3 { margin-bottom: 14px; font-size: 1.45rem; }
.role-card p { margin-bottom: 0; color: #b8c3ca; line-height: 1.65; }
.buff-rule {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  margin-top: 26px;
  padding: 26px 30px;
  border: 1px solid rgba(255,157,29,.35);
  background: rgba(255,157,29,.08);
}
.buff-rule b { color: var(--orange); font-size: 1.2rem; }
.buff-rule p { margin: 0; color: #c7d0d6; line-height: 1.62; }

.hero-table { border-top: 1px solid var(--line); }
.hero-row {
  display: grid;
  grid-template-columns: .55fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.hero-row span { color: #454f57; line-height: 1.5; }
.hero-row span strong { color: var(--red); }
.hero-row small { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .06em; }
.table-head { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.table-note { margin: 15px 0 0; color: var(--muted); font-size: .9rem; }
.join-order {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 46px;
  margin-top: 48px;
  padding: 32px;
  background: #e8e1d4;
}
.join-order>p { margin: 0; color: #505a62; line-height: 1.65; }
.hero-chain { display: flex; align-items: center; gap: 10px; }
.hero-chain span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fffaf1;
  font-weight: 750;
  white-space: nowrap;
}
.hero-chain b { color: var(--red); }
.hero-chain i { color: var(--orange); font-style: normal; }

.ratio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.generation-note { margin: -8px 0 26px; padding: 16px 18px; border-left: 4px solid var(--orange); background: rgba(255,255,255,.06); color: #c7d0d6; line-height: 1.55; }
.generation-note strong { color: var(--orange); }
.ratio-card { padding: 28px; border: 1px solid rgba(255,255,255,.14); background: var(--panel); }
.ratio-title { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 26px; }
.ratio-title b { color: var(--orange); font-size: 1.55rem; }
.ratio-title span { color: #aebac2; font-size: .82rem; text-align: right; }
.bar { display: flex; height: 32px; overflow: hidden; border-radius: 2px; background: #26313b; }
.bar i { display: block; height: 100%; }
.inf { background: var(--green); }
.lan { background: var(--orange); }
.mar { background: var(--blue); }
.ten { width: 10%; }
.thirty { width: 30%; }
.sixty { width: 60%; }
.eighty { width: 80%; }
.legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; color: #aebac2; font-size: .72rem; }
.priority { margin-block: 35px 28px; }
.priority span { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.05); color: #d7dfe4; }
.troops .section-note { max-width: 920px; }

.loop { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 30px; counter-reset: loop; }
.loop div { position: relative; min-height: 170px; padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.loop div:not(:last-child)::after { content:"→"; position:absolute; right:-14px; top:44%; color:var(--orange); font-size:1.5rem; z-index:2; }
.loop b { display: block; margin-bottom: 35px; color: var(--red); font-size: 1.25rem; }
.loop span { font-weight: 750; line-height: 1.45; }
.during-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.during-grid article { padding: 24px; background: #e8e1d4; }
.during-grid b { color: var(--red); }
.during-grid p { margin: 12px 0 0; color: #515a62; line-height: 1.6; }

.stat-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; align-items: end; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-row span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.16); color: #d7dfe4; }
.low-value { padding: 26px; border-left: 5px solid var(--red); background: rgba(255,255,255,.055); }
.low-value p:last-child { margin: 0; color: #bac5cc; line-height: 1.6; }

.mistakes { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 34px; }
.mistakes article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.mistakes>article>span { color: var(--red); font-weight: 850; }
.mistakes b { font-size: 1.05rem; }
.mistakes p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

footer { padding-block: 80px; color: var(--snow); background: #0a0e12; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; }
.footer-grid h2 { margin-bottom: 0; }
.sources { display: grid; align-content: end; gap: 10px; }
.sources p { color: #909da6; font-size: .82rem; line-height: 1.55; }
.sources a { color: #d5dee4; text-decoration-color: var(--orange); text-underline-offset: 4px; }

@media (max-width: 850px) {
  .shell { width: min(100% - 28px, 680px); }
  .hero-grid,.role-grid,.ratio-grid,.stat-grid,.footer-grid,.join-order { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; gap: 45px; padding-block: 70px; }
  h1 { font-size: clamp(4.2rem,17vw,6.5rem); }
  .section { padding-block: 78px; }
  .section-head { display: block; }
  .section-note { margin-top: 20px; }
  .timeline { min-width: 0; margin-top: 35px; }
  .check-grid,.mistakes { grid-template-columns: 1fr; }
  .hero-chain { flex-wrap: wrap; }
  .loop { grid-template-columns: 1fr 1fr; }
  .loop div:not(:last-child)::after { display:none; }
  .during-grid { grid-template-columns: 1fr; }
  .buff-rule { grid-template-columns: 1fr; gap: 12px; }
  .hero-row { grid-template-columns: .5fr 1fr 1fr 1fr; gap: 15px; font-size: .82rem; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 520px); }
  .core-flow,.priority { flex-direction: column; align-items: stretch; }
  .core-flow i,.priority i { transform: rotate(90deg); text-align: center; }
  .event-facts div { grid-template-columns: 82px 1fr; }
  .hero-row { grid-template-columns: 1fr; gap: 8px; }
  .table-head { display:none; }
  .hero-row b { color: var(--red); }
  .hero-row span[data-gen]::before { content: attr(data-gen); display: block; margin: 7px 0 2px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .loop { grid-template-columns: 1fr; }
  .ratio-title { display: block; }
  .ratio-title span { display:block; margin-top:8px; text-align:left; }
  .legend { font-size: .64rem; }
}

@media print {
  .hero,.roles,.troops,.stats,footer { color:#000; background:#fff; }
  .hero-grid { min-height:auto; }
  .hero::after { display:none; }
  .lead,.role-card p,.buff-rule p,.section-note,.low-value p:last-child,.sources p { color:#333; }
  .role-card,.ratio-card,.buff-rule,.low-value { border:1px solid #999; background:#fff; }
  section { break-inside: avoid; }
}
