:root {
  color-scheme: light;
  --navy: #153a5b;
  --ink: #173650;
  --muted: #485c69;
  --paper: #f3f1ed;
  --light: #fffcf5;
  --yellow: #ffc333;
  --line: #d6cbb9;
  --blue: #d7e8ec;
  --pink: #f2d6d2;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
p + p { margin-top: 0.65rem; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #39749f; outline-offset: 4px; }

.cover { background: var(--navy); color: var(--light); }
.cover-inner,
.guide,
.guide-nav,
.guide-footer-inner {
  width: min(100%, 1184px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.cover-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 6vw, 5rem);
}
.cover h1 {
  font-size: clamp(3rem, 7.4vw, 6.5rem);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.06em;
}
.cover-deck { margin-top: 1.4rem; font-size: 1.125rem; }
.cover-dates { font-size: clamp(1.25rem, 2.3vw, 1.6rem); font-weight: 850; color: var(--yellow); }
.cover-status { margin-top: .4rem; color: #dce9ee; font-size: .875rem; }
.post-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .55rem 1.15rem;
  margin-top: 1.15rem;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 850;
  text-decoration: none;
}
.post-link:hover { background: #ffd05e; }
.post-link:focus-visible { outline-color: var(--light); }
.cover-art { overflow: hidden; }
.cover-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.32;
  object-fit: cover;
}
.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem clamp(.85rem, 3vw, 2.5rem);
  padding-block: .45rem;
  background: var(--light);
}
.guide-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; text-decoration: none; }
.guide-nav a:hover { text-decoration: underline; text-underline-offset: .26em; }
.guide > section { padding-block: clamp(1.8rem, 4.5vw, 4rem); }
.guide > section + section { margin-top: clamp(1.35rem, 3vw, 3rem); }
.section-head { margin-bottom: 1.25rem; }
.section-head h2 {
  margin-bottom: .5rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.section-head > p { max-width: 68ch; }
.aside-note { color: var(--muted); }
.guide p { max-width: 68ch; }
.section-head time { white-space: nowrap; }
.aside-note { margin-top: .75rem; font-size: .9rem; }
h3 { font-size: 1.16rem; line-height: 1.35; }
h3 + p { margin-top: .35rem; }

table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #e8dfd0; color: var(--navy); }
th, td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { font-weight: 750; }
.schedule { table-layout: fixed; font-size: .95rem; }
.schedule th:nth-child(1) { width: 19%; }
.schedule th:nth-child(2) { width: 34%; }
.schedule :is(th,td):nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule :is(th,td):nth-child(n+3) { text-align: center; }
.schedule tr[aria-current="true"] { background: #ffe8a3; }
.on { display: inline-block; width: 100%; border-radius: 2px; font-weight: 750; }
.on.personal { background: var(--blue); }
.on.team { background: var(--pink); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; gap: 1.15rem; list-style: none; }
.steps li { padding-block: .7rem; }
.steps img { width: 148px; height: 148px; object-fit: contain; margin-bottom: .75rem; }

details { margin-top: 1rem; padding-inline: .9rem; background: var(--light); }
details + details { margin-top: .35rem; }
details:not([open]) > :not(summary) { display: none; }
details > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  gap: .65rem;
  list-style: none;
  cursor: pointer;
  font-weight: 760;
  color: var(--navy);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; font-weight: 600; }
details[open] > summary::after { content: "−"; }
details[open] { padding-bottom: .65rem; }
details table { font-size: .92rem; }
.topics :is(th,td):last-child { text-align: right; }
.topics tbody th { color: var(--navy); white-space: nowrap; }
.topics thead th { white-space: nowrap; }

.scoreboard {
  background: var(--navy);
  color: var(--light);
  padding: 1.15rem;
  margin-bottom: 1rem;
  border-left: 5px solid var(--yellow);
}
.formula { font-size: clamp(1rem, 2.8vw, 1.28rem); font-weight: 800; }
.formula span { color: var(--yellow); }
.score-demo { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .35rem; margin: .6rem 0; }
.score-demo div { display: flex; flex-direction: column-reverse; padding-block: .3rem .15rem; }
.score-demo dt { font-size: .84rem; }
.score-demo dd { font-size: 1.75rem; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; }
.score-demo div:last-child { color: var(--yellow); }
.scoreboard > p:last-child { font-size: .91rem; }
.score-rules { display: grid; gap: .8rem; }
.score-rule {
  display: grid;
  grid-template-columns: minmax(8rem, 18%) minmax(0, 1fr);
  align-items: start;
  gap: 1.2rem;
  padding: clamp(1rem, 2.5vw, 1.55rem);
  background: var(--light);
}
.score-rule h3 { font-size: 1.3rem; font-weight: 850; color: var(--navy); }
.score-rule details { background: var(--paper); }
.quality-scale { margin-top: .9rem; }
.interaction { margin-top: .9rem; }
.interaction th:last-child, .interaction td:last-child { white-space: nowrap; width: 5.2rem; }
.interaction td:last-child { font-weight: 800; }
.interaction-notes { margin-top: .9rem; }
.entry-criteria {
  display: grid;
  grid-template-columns: clamp(90px, 16vw, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1.2rem;
  background: var(--blue);
  border-top: 4px solid var(--yellow);
}
.entry-criteria img, .team-section-head img, .team-award img { width: 100%; height: auto; }
.criteria-metrics { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 1.75rem); margin-top: .45rem; }
.criteria-metrics p { margin: 0; }
.criteria-metrics p span { display: block; font-size: .88rem; font-weight: 750; }
.criteria-metrics strong { display: block; color: var(--navy); font-size: clamp(1.35rem, 4.2vw, 2.45rem); line-height: 1.25; white-space: nowrap; }
.criteria-metrics small { font-size: .9rem; }
.criteria-plus { font-size: 1.5rem; font-weight: 850; }
.criteria-note { margin-top: .5rem; color: var(--muted); font-size: .88rem; }
.team-section-head, .team-award {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(72px, 14vw, 132px);
  align-items: center;
  gap: 1rem;
}
.team-section-head p { max-width: 68ch; }
.rank-table { table-layout: fixed; }
.rank-table thead { background: var(--navy); color: var(--light); }
.rank-table thead th:first-child { width: 23%; }
.rank-table thead th:last-child { width: 32%; }
.rank-table :is(th, td) { padding: .8rem .85rem; }
.rank-table tbody tr:nth-child(odd) { background: var(--light); }
.rank-table tbody th { color: var(--navy); font-weight: 850; }
.prize, .team-bonus { border-left: 3px solid var(--yellow); padding-left: .75rem; }
.prize > span:not(.mobile-label) { display: block; }
.mobile-label { display: none; }
.single-prize { margin-top: 1.05rem; background: var(--light); padding: .8rem 1rem; }
.graduation { padding-left: 1.2rem; margin: 0; }
.graduation li + li { margin-top: .35rem; }
.rank-conversion { margin: 1.15rem 0 .85rem; }
.team-score {
  padding: 1.15rem;
  color: var(--light);
  background: var(--navy);
  border-top: 4px solid var(--yellow);
  font-variant-numeric: tabular-nums;
}
.team-score-head h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.team-score-head p { color: #d5e5ed; font-size: .92rem; }
.team-example { margin-top: .65rem; }
.team-example > div {
  display: grid;
  grid-template-columns: minmax(6rem, .7fr) minmax(0, 4fr);
  gap: .65rem;
  padding-block: .75rem;
}
.team-example dt { font-weight: 750; }
.score-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.score-flow li { position: relative; padding: .45rem .55rem; background: #204968; }
.score-flow li + li::before { content: "→"; position: absolute; inset: .35rem auto auto -1.2rem; color: var(--yellow); }
.score-flow b { display: block; margin-bottom: .15rem; color: #d5e5ed; font-size: .82rem; }
.team-example strong, .week-total strong { color: var(--yellow); }
.team-score-details { display: none; }
.week-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem 1rem;
  margin-block: .6rem .85rem;
  padding: .55rem .8rem;
  background: #204968;
  font-weight: 750;
}
.guide .week-total { max-width: none; }
.week-total-equation { white-space: nowrap; }
.week-total strong { font-size: 1.5rem; white-space: nowrap; }
.team-season {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  padding: .8rem 1rem;
  background: var(--blue);
  color: var(--navy);
}
.team-season h4 { margin: 0 0 .4rem; font-size: .95rem; }
.week-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.week-points li { position: relative; text-align: center; }
.week-points li + li::before { content: "+"; position: absolute; left: 0; bottom: 0; transform: translateX(-50%); }
.week-points span { display: block; font-size: .82rem; white-space: nowrap; }
.week-points strong { font-size: 1.18rem; }
.season-total { padding: .4rem .7rem; background: var(--yellow); font-weight: 750; white-space: nowrap; }
.season-total strong { margin-left: .4rem; font-size: 1.45rem; font-weight: 900; }
.team-award {
  grid-template-columns: clamp(60px, 12vw, 110px) minmax(0, 1fr);
  margin-top: 1.1rem;
  padding: .8rem 1rem;
  background: var(--light);
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.guide-footer { background: var(--navy); color: var(--light); }
.guide-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(110px, 22vw, 220px);
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
}
.guide-footer h2 { font-size: clamp(1.7rem, 5vw, 3.75rem); line-height: 1.1; letter-spacing: -.04em; }
.guide-footer img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .cover-art img { animation: stand-arrival 7s ease-out both; }
  .has-arrived { animation: guide-arrival 430ms cubic-bezier(.2,.65,.3,1) both; }
  .arrival-delay-1 { animation-delay: 60ms; }
  .arrival-delay-2 { animation-delay: 120ms; }
  @keyframes guide-arrival { from { transform: translateY(14px); opacity: .65; } to { transform: translateY(0); opacity: 1; } }
  :is(.post-link, summary):active { transform: translateY(2px); }
  @keyframes stand-arrival { from { transform: scale(1.06); } to { transform: scale(1); } }
}
@media (max-width: 650px) {
  .score-rule { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .cover-inner { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 2rem 1rem; }
  .cover-art img { aspect-ratio: 2; object-position: center 48%; }
  .cover-deck { margin-top: .85rem; }
  .guide-nav { justify-content: space-between; }
  .steps li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: .75rem; align-items: center; }
  .steps img { width: 88px; height: 88px; margin: 0; }
  .guide-footer-inner { grid-template-columns: minmax(0, 1fr) 84px; gap: .7rem; }
  th, td { padding: .46rem .33rem; }
  .schedule { font-size: .83rem; }
  .schedule th:nth-child(2) { width: 36%; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps p { font-size: .94rem; }
  .entry-criteria { grid-template-columns: 1fr; gap: .55rem; }
  .entry-criteria img { width: 86px; }
  .team-section-head { grid-template-columns: minmax(0, 1fr) 75px; align-items: start; }
  .rank-table, .rank-table tbody { display: block; }
  .rank-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rank-table tbody tr { display: grid; gap: .45rem; padding: .75rem; border-bottom: 1px solid var(--line); }
  .rank-table tbody :is(th, td) { display: block; padding: 0; border: 0; }
  .mobile-label { display: block; font-size: .83rem; font-weight: 800; color: var(--muted); }
  .prize > span:not(.mobile-label) { display: inline-block; margin-right: .55rem; }
  .team-score { padding: .85rem; }
  .team-example {
    margin-top: .9rem;
    padding-inline: .65rem;
    background: #204968;
  }
  .team-example > div {
    grid-template-columns: minmax(5rem, .85fr) minmax(0, 1.65fr);
    align-items: center;
    gap: .45rem;
    padding-block: .55rem;
    font-size: .9rem;
  }
  .team-example > div + div { margin-top: .15rem; }
  .score-flow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem; }
  .score-flow li { padding: 0; background: transparent; }
  .score-flow li:first-child { display: none; }
  .score-flow li + li::before { content: none; }
  .score-flow b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .score-flow strong { white-space: nowrap; }
  .week-total { flex-direction: column; align-items: flex-start; padding: .55rem .65rem; }
  .team-season { grid-template-columns: 1fr; padding: .65rem; }
  .season-total { display: flex; align-items: baseline; justify-content: space-between; }
  .team-score-details { display: block; margin-top: .65rem; background: #204968; padding-inline: .65rem; }
  .team-score-details summary { color: var(--light); }
  .team-score-details summary::after { color: var(--yellow); }
  .team-score-notes { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
  .team-score-notes li + li { margin-top: .4rem; }
}
