.skip-link {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  transform: translateY(calc(-100% - 16px));
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
}
.skip-link:focus { transform: none; }

.site-header .guide-link[aria-current="page"] { color: var(--lime); }
.footer-links [aria-current="page"] { color: var(--lime); }
.site-footer .footer-links { padding: 12px 0; }
body[data-game-mode="practice"] #game-title { font-size: clamp(2.7rem, 5.1vw, 5rem); }

.trailhead {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 78px);
  margin-top: clamp(30px, 5vw, 64px);
  padding: 30px 0;
  border-block: 1px solid #f7f0de29;
}
.trailhead h2 {
  margin: 0 0 12px;
  font: 710 clamp(1.65rem, 3.5vw, 2.55rem)/1.06 var(--serif);
  letter-spacing: -0.035em;
}
.trailhead p { max-width: 54ch; margin: 0 0 9px; color: #ccd6c1; }
.trailhead p:last-child { margin-bottom: 0; }
.trailhead-links {
  display: grid;
  gap: 0;
  align-content: start;
  border-top: 1px solid #f7f0de23;
}
.trailhead-links a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-bottom: 1px solid #f7f0de23;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.trailhead-links a:hover { background: #d5e5a90a; }
.trailhead-links a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.trailhead-links small { font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.app-shell:fullscreen .trailhead { display: none; }

.editorial { max-width: 1160px; padding: 19px 0 22px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 2px 0 18px;
  color: var(--muted);
  font-size: 0.875rem;
}
.breadcrumbs li + li::before { content: "/"; padding-right: 9px; color: #9aa897; }
.breadcrumbs a { color: var(--white); text-underline-offset: 4px; }
.field-sheet {
  color: var(--ink);
  background: linear-gradient(150deg, #fdf4df, var(--paper) 72%);
  padding: clamp(22px, 5vw, 60px);
  border: 1px solid #efe0c2;
  border-radius: 21px;
  box-shadow: 0 14px 42px #0f1d1660;
}
.field-sheet-narrow { max-width: 780px; }
.article-heading {
  padding-bottom: clamp(21px, 3vw, 34px);
  margin-bottom: clamp(21px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.article-heading h1 {
  font: 750 clamp(2.45rem, 6vw, 4.8rem)/1.01 var(--serif);
  letter-spacing: -0.056em;
  margin: 0;
  text-wrap: balance;
}
.article-lead {
  color: var(--ink-muted);
  max-width: 64ch;
  margin: 13px 0 0;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.6;
}
.guide-layout, .score-layout, .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: start;
}
.field-sheet a:not(.primary-button) { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.field-sheet h2 {
  margin: 0 0 9px;
  font: 720 clamp(1.48rem, 2.9vw, 2.05rem)/1.12 var(--serif);
  letter-spacing: -0.035em;
}
.field-sheet h3 {
  margin: 0 0 5px;
  font: 720 1.21rem/1.2 var(--serif);
  letter-spacing: -0.02em;
}
.prose section + section { margin-top: 24px; }
.prose p { margin: 0 0 11px; color: var(--ink-muted); }
.prose p:last-child { margin-bottom: 0; }
.guide-steps { margin: 0; padding-inline-start: 24px; }
.guide-steps li { padding-inline-start: 4px; color: var(--ink-muted); }
.guide-steps li + li { margin-top: 10px; }
.guide-steps strong, .prose strong { color: var(--ink); }
.guide-steps li::marker { color: var(--rust); font-weight: 750; }
.game-figure { margin: 0 0 16px; }
.game-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #aa9a7c;
  border-radius: 12px;
  background: var(--pine);
}
.game-figure figcaption { margin-top: 6px; color: var(--ink-muted); font-size: 0.875rem; }
.editorial-button { max-width: 100%; min-height: 43px; padding: 8px 14px; text-decoration: none; }
.quiet-link { display: inline-block; margin: 9px 0 0; font-weight: 700; }
.guide-aside .quiet-link { display: table; }
.faq, .worked-example { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; }
.question-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.question-cards > div { padding: 12px 0 0; border-top: 1px solid #d8cbb178; }

.score-table { width: 100%; margin: 16px 0 9px; border-collapse: collapse; text-align: left; }
.score-table th, .score-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.score-table tbody th { font-weight: 600; }
.score-table th:last-child, .score-table td:last-child { text-align: right; white-space: nowrap; }
.tier-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  border: 1px solid #4c5f4d75;
  border-radius: 50%;
  background: var(--tier-color);
}
.small-print { font-size: 0.875rem; color: var(--ink-muted); }
.score-panel, .contact-panel {
  padding: clamp(16px, 2.8vw, 28px);
  border: 1px solid #c4cfac;
  border-radius: 15px;
  background: #e9ecd3;
}
.score-panel p, .contact-panel p { color: var(--ink-muted); margin: 0 0 14px; }
.score-panel fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.score-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; }
.score-fields label { display: grid; gap: 3px; font-size: 0.875rem; font-weight: 700; min-width: 0; }
.score-fields select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #a6b392;
  border-radius: 7px;
  background: #fff8e7;
  color: var(--ink);
  padding: 6px 7px;
  font: 550 0.9375rem var(--ui);
}
.score-total { display: flex; justify-content: space-between; gap: 8px; align-items: end; margin-top: 15px; }
.score-total span { font-weight: 700; }
.score-total output { font: 740 2.05rem/1 var(--serif); font-variant-numeric: tabular-nums; }
#score-progress { display: block; width: 100%; height: 13px; margin-top: 8px; accent-color: #486244; }
.score-target { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 0.875rem; color: var(--ink-muted); }
.score-reset { min-height: 40px; margin-top: 11px; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #d8e2a9;
}
.contact-icon img { image-rendering: pixelated; }
.contact-panel .small-print { margin: 11px 0 0; }
.help-guide a { text-underline-offset: 4px; }

@media (max-width: 780px) {
  .guide-layout, .score-layout, .about-layout, .trailhead { grid-template-columns: 1fr; }
  .guide-layout { gap: 25px; }
  .game-figure { max-width: 520px; }
  .contact-panel { max-width: 460px; }
}
@media (max-width: 500px) {
  .article-heading h1 { text-wrap: initial; }
  .question-cards { grid-template-columns: 1fr; gap: 12px; }
  .field-sheet { padding: 19px; border-radius: 15px; }
  .editorial { padding-top: 14px; }
  .site-header .guide-link { padding-inline: 5px; }
  .site-footer { padding: 11px 0; }
  .site-footer .footer-links { padding: 4px 0; }
}
