:root {
  color-scheme: light;
  --paper: #fff8e7;
  --ink: #172e27;
  --leaf: #35684d;
  --sprout: #ddf493;
  --yolk: #ffc75b;
  --clay: #a94d38;
  --muted: #4d5e50;
  --line: #d9d7be;
  --white: #fffdf6;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, sans-serif; font-size: 16px; line-height: 1.62; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
.stage :focus-visible { outline-color: var(--white); }
h1, h2, h3, p { margin: 0; }
h2 { font: 700 clamp(2rem, 5vw, 3.15rem)/1.09 var(--serif); letter-spacing: -.045em; }
h3 { line-height: 1.25; letter-spacing: -.025em; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: .75rem; left: .75rem; z-index: 10; padding: .5rem 1rem; background: var(--white); }
.wrap { width: min(1180px, calc(100% - 76px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.masthead, .foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead { min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.3rem; font-weight: 830; letter-spacing: -.06em; white-space: nowrap; }
.brand-mark { width: 39px; height: 39px; flex: 0 0 auto; }
.masthead nav, .foot nav { display: flex; align-items: center; gap: clamp(16px, 3.4vw, 37px); }
.masthead nav a, .foot nav a { font-weight: 700; font-size: .92rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.masthead nav a:not(:hover), .foot nav a:not(:hover) { text-decoration-color: transparent; }
.play-section { padding-top: clamp(25px, 4vw, 46px); }
.stage { position: relative; overflow: hidden; isolation: isolate; border-radius: 25px; background: var(--ink); color: var(--paper); }
.stage-external { aspect-ratio: 2.16; min-height: 380px; }
.stage-embedded { aspect-ratio: 16/9; }
.stage-cover, .stage-image, .stage-cover::after, .stage-loader { position: absolute; inset: 0; }
.stage-cover { display: flex; align-items: center; isolation: isolate; }
.stage-image { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; z-index: -2; }
.stage-cover::after { content: ""; z-index: -1; background: linear-gradient(90deg, rgb(9 32 23 / .67), rgb(9 32 23 / .21) 51%, transparent 78%); }
.stage-copy { position: relative; padding: 28px clamp(34px, 6.9vw, 96px); }
.display-title { font-weight: 850; font-size: clamp(3.7rem, 8.5vw, 7.25rem); line-height: .94; letter-spacing: -.085em; text-wrap: nowrap; }
.display-title em { color: var(--yolk); font: italic 700 1em/.94 var(--serif); letter-spacing: -.09em; }
.stage-lead { color: var(--paper); max-width: 330px; margin-top: 19px; font-size: clamp(1rem, 1.65vw, 1.25rem); font-weight: 550; line-height: 1.5; }
.play-button { min-height: 55px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 10px 22px; margin-top: 27px; background: var(--sprout); color: var(--ink); border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 800; box-shadow: 0 5px 0 rgb(13 35 20 / .5); }
.play-button:hover { background: var(--white); }
.play-button:active { transform: translateY(2px); box-shadow: 0 3px 0 rgb(13 35 20 / .5); }
.play-button > span:first-child { font-size: .75em; }
.external-arrow { font-size: 1.12em; line-height: 1; }
.stage-loader { display: none; place-content: center; justify-items: center; gap: 18px; font-weight: 750; background: radial-gradient(circle, var(--leaf), var(--ink) 68%); }
.stage[data-gf-state="loading"] .stage-loader:not([hidden]) { display: grid; z-index: 2; }
.stage[data-gf-state="playing"] .stage-loader { display: none; }
.stage-loader svg { width: 58px; height: 64px; animation: hatch .95s ease-in-out infinite alternate; transform-origin: center bottom; }
.stage iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
@keyframes hatch { 0%, 12% { transform: rotate(-10deg) translateY(0); } 70% { transform: rotate(7deg) translateY(-7px); } 100% { transform: rotate(11deg) translateY(0); } }
.game-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 78px; gap: 8px 20px; padding-block: 12px; position: relative; }
.game-facts { color: var(--muted); font-size: .88rem; font-weight: 700; }
.game-facts span { display: inline-block; margin-inline: 8px; color: var(--clay); }
.game-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.action { display: inline-flex; align-items: center; gap: 7px; min-height: 43px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 100px; background: var(--white); color: var(--ink); font-size: .86rem; font-weight: 760; text-decoration: none; }
.action:hover, .action[data-gf-liked], .action[aria-pressed="true"] { background: var(--sprout); border-color: var(--leaf); }
.action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.action[data-gf-liked] svg, .action[aria-pressed="true"] svg { fill: currentColor; }
.count:empty, .share-feedback:empty, .comment-status:empty { display: none; }
.count { font-variant-numeric: tabular-nums; }
.share-feedback { font-size: .87rem; font-weight: 700; width: 100%; color: var(--leaf); }
.section-rule { border-top: 1px solid var(--line); padding-block: clamp(37px, 6vw, 70px); scroll-margin-top: 20px; }
.guide-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 42px; align-items: start; }
.guide-intro p, .discussion > div:first-child > p { font-size: 1.07rem; max-width: 58ch; color: var(--muted); }
.route { list-style: none; margin: 30px 0 25px; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.route li { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 13px; padding: 21px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.route h3 { margin-bottom: 8px; font-size: 1.1rem; }
.route p { color: var(--muted); font-size: .95rem; }
.step-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; background: var(--yolk); }
.step-icon svg { width: 31px; height: 31px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-run { background: var(--sprout); }
.step-hatch { background: #f6dfcc; }
.field-note { display: grid; grid-template-columns: 40px 1fr; align-items: start; gap: 8px 14px; max-width: 850px; }
.note-x { display: grid; place-items: center; width: 36px; height: 36px; font: italic 700 1.85rem/1 var(--serif); color: var(--clay); }
.field-note p { color: var(--muted); }
.field-note strong { color: var(--ink); }
.reference-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(22px, 5vw, 68px); align-items: start; margin-top: 23px; }
.controls { padding: clamp(19px, 3vw, 32px); color: var(--paper); background: var(--ink); border-radius: 17px; }
.controls h3, .questions h3 { font-size: 1.22rem; }
.controls dl { margin-block: 12px 15px; }
.controls dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; padding-block: 9px; border-bottom: 1px solid rgb(255 248 231 / .22); }
.controls dd { margin: 0; text-align: right; font-size: .82rem; }
kbd { display: inline-block; padding: 0 .38em; min-width: 1.35em; border-radius: 4px; background: var(--paper); color: var(--ink); font-weight: 700; text-align: center; }
.controls p { font-size: .91rem; color: #e0e9cf; }
.questions { min-width: 0; }
.questions h3 { margin-bottom: 10px; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-of-type { border-top: 1px solid var(--line); }
.questions summary { position: relative; list-style: none; cursor: pointer; padding: 12px 30px 12px 0; min-height: 44px; font-weight: 750; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 5px; top: 9px; font-size: 1.24rem; color: var(--leaf); }
.questions details[open] summary::after { content: "−"; }
.questions details p { padding: 0 26px 14px 0; color: var(--muted); }
.discussion { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 23px clamp(22px,5vw,68px); }
.discussion > div:first-child > p { margin-top: 13px; }
.comment-form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(17px, 3vw, 26px); }
.comment-form label { display: block; margin: 0 0 5px; font-weight: 750; font-size: .9rem; }
.comment-form label span { color: var(--muted); font-weight: 550; }
.comment-form input, .comment-form textarea { display: block; width: 100%; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #aeb8a6; border-radius: 7px; }
.comment-form input { margin-bottom: 13px; }
.comment-form textarea { resize: vertical; min-height: 95px; }
#comment-hint, .comment-status { color: var(--muted); margin: 8px 0 13px; font-size: .85rem; }
.comment-button { min-height: 44px; padding: 8px 17px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 750; }
.comment-button:hover { background: var(--leaf); }
.comments-list[data-gf-empty]::after { display: block; content: "No comments yet."; padding: 16px 2px 0; color: var(--muted); }
.comments-list[data-gf-off]::after { content: none; }
.comment-entry { border-top: 1px solid var(--line); margin-top: 15px; padding: 13px 2px 0; overflow-wrap: anywhere; }
.comment-entry header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comment-entry time { color: var(--muted); font-size: .85rem; }
.comment-entry > p { white-space: pre-wrap; }
.comment-entry:not([data-gf-owner]) .owner-tag { display: none; }
.owner-tag { color: var(--leaf); background: var(--sprout); border-radius: 8px; padding-inline: 7px; font-size: .8rem; }
.comment-replies:not(:empty) { margin-left: 13px; padding-left: 12px; border-left: 1px solid var(--line); }
.reply-banner { display: none; }
.comment-form[data-gf-replying] .reply-banner { display: block; margin-bottom: 12px; font-weight: 700; }
.reply-button, .reply-banner button { color: var(--leaf); font-weight: 700; border: 0; background: transparent; padding: 6px 0; text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); }
.foot { min-height: 117px; padding-block: 20px; }
.foot p { color: var(--muted); font-size: .89rem; }
.foot-brand { font-size: 1.24rem; font-weight: 850; letter-spacing: -.055em; text-decoration: none; }
.policy { max-width: 760px; padding-block: clamp(34px,7vw,80px); }
.policy h1 { margin-block: 16px 22px; font: 700 clamp(2.7rem,6vw,4.8rem)/1 var(--serif); letter-spacing: -.06em; }
.policy h2 { margin-block: 29px 9px; font-size: clamp(1.4rem,4vw,1.85rem); letter-spacing: -.025em; scroll-margin-top: 25px; }
.policy p { margin-block: 10px; }
.policy a { color: var(--leaf); text-underline-offset: 3px; overflow-wrap: anywhere; }
.back-link { display: inline-block; font-size: .93rem; font-weight: 720; }
@media (max-width: 1000px) {
  .route li { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 62px; }
  .brand-mark { width: 34px; height: 34px; }
  .masthead nav { gap: 14px; }
  .masthead nav a { font-size: .83rem; }
  .stage { border-radius: 17px; }
  .stage-external, .stage-embedded { aspect-ratio: auto; min-height: 405px; }
  .stage-cover { align-items: end; }
  .stage-image { object-position: 69% 26%; }
  .stage-cover::after { background: linear-gradient(0deg, rgb(9 32 23 / .98), rgb(9 32 23 / .79) 28%, rgb(9 32 23 / .18) 62%, transparent 85%); }
  .stage-copy { padding: 25px 22px; }
  .display-title { font-size: clamp(3.35rem, 12vw, 5.5rem); }
  .stage-lead { margin-top: 10px; max-width: 295px; }
  .play-button { min-height: 48px; margin-top: 16px; padding-inline: 17px; }
  .game-bar { gap: 8px; padding-bottom: 17px; }
  .game-actions { gap: 6px; }
  .action { min-height: 42px; padding-inline: 11px; }
  .guide-intro, .route, .reference-grid, .discussion { grid-template-columns: minmax(0,1fr); }
  .route li { grid-template-columns: auto minmax(0,1fr); padding: 15px; }
  .reference-grid { margin-top: 18px; }
  .foot { align-items: start; flex-direction: column; gap: 10px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 28px); }
  .wordmark { gap: 7px; font-size: 1.13rem; }
  .game-actions .action { gap: 5px; padding-inline: 9px; font-size: .8rem; }
  .stage-copy { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-loader svg { animation: none; }
}
.progression { max-width: 760px; padding-top: 25px; }
.progression h3 { margin-bottom: 8px; font-size: 1.13rem; }
.progression p { color: var(--muted); }

.eyebrow { margin-top: clamp(28px, 5vw, 58px); font-size: .77rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--clay); }
.guide-title { margin-block: 11px 24px; font: 700 clamp(2.35rem, 6vw, 4.15rem)/1.03 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
.prose { max-width: 716px; padding-bottom: clamp(40px, 7vw, 92px); }
.prose h2 { margin-block: 36px 10px; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.03em; }
.prose h3 { margin-block: 25px 8px; font-size: 1.11rem; }
.prose p { margin-block: 12px; color: var(--muted); }
.prose p strong, .prose li strong { color: var(--ink); }
.prose ul, .prose ol { margin-block: 12px; padding-left: 21px; color: var(--muted); }
.prose li { margin-block: 6px; }
.prose a { color: var(--leaf); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 18px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.prose th { font-size: .79rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.prose td { color: var(--muted); }
.prose > p:first-of-type { margin-top: 0; font-size: 1.09rem; }

.stage-note { margin-top: 11px; max-width: 44ch; font-size: .82rem; line-height: 1.45; opacity: .8; }

.stage-links { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 17px; font-size: .85rem; font-weight: 650; }
.stage-links a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.foot { flex-wrap: wrap; }
.foot-guides { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; }


/* guide blocks added 2026-11-23 */
.rules-tips { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); margin-block-start: 28px; }
.rules-tips h3 { font-size: 1.12rem; margin-block-end: 12px; }
.rules-tips ol, .rules-tips ul { margin: 0; padding-inline-start: 1.15em; display: grid; gap: 10px; }
.rules-tips li { color: var(--muted); }
.rules-tips li strong { color: var(--ink); }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-block-start: 30px; padding-block-start: 20px; border-top: 1px solid var(--line); font-weight: 650; }
.guide-links a { text-underline-offset: 4px; text-decoration-color: var(--yolk); }
.guide-sources { margin-block-start: 24px; padding-block-start: 18px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); max-width: 68ch; }
@media (max-width: 720px) { .rules-tips { grid-template-columns: 1fr; } }


/* design pass 2 — 2026-11-23 */
.stage-copy { position: relative; z-index: 1; }
.stage-cover::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(23,46,39,0) 42%, rgba(23,46,39,.62) 100%); pointer-events: none; }
.stage-copy p, .stage small, .stage-credit, .stage-note { color: var(--white); }
.stage-note, .stage-credit { text-shadow: 0 1px 8px rgba(0,0,0,.55); }
kbd, .keycap, .key { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); border-radius: 6px; font-weight: 700; padding: 1px 6px; }
.guide-page h3, .home .guide h3 { font-weight: 750; color: var(--ink); }
.home .guide h3 { font-size: 1.0625rem; margin-block-start: 24px; }
#rules h2 { font-size: clamp(1.75rem, 3.4vw, 2.15rem); letter-spacing: -.03em; }
#rules .guide-intro { margin-block-end: 32px; }
@media (max-width: 768px) {
  .stage-cover { min-height: 420px; }
  .stage-links { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-block: 8px 2px; scrollbar-width: none; }
  .stage-links::-webkit-scrollbar { display: none; }
  .stage-links a { flex: 0 0 auto; white-space: nowrap; }
  .masthead nav, .foot nav { overflow-x: auto; gap: 14px; scrollbar-width: none; }
  .masthead nav::-webkit-scrollbar, .foot nav::-webkit-scrollbar { display: none; }
  .masthead nav a, .foot nav a { white-space: nowrap; flex: 0 0 auto; }
}


/* design pass 3 — 2026-11-23 (audit 8/10, polish below) */
.stage-links a { text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.stage-note, .stage-credit { padding-inline: 4px; word-break: break-word; }
@media (max-width: 768px) {
  .stage-links { padding-right: 24px; mask-image: linear-gradient(to right, #000 88%, transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%); }
  .stage-note, .stage-credit { padding-inline: 16px; }
  .masthead nav { padding-right: 8px; flex: 1 1 auto; min-width: 0; mask-image: linear-gradient(to right, #000 90%, transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%); }
}


/* guide check line */
.guide-checked {
  margin: 28px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgb(23 46 39 / .12);
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.55;
  color: #4a5a51;
}


/* design pass 5 — 2026-11-23 (audit 8/10 follow-ups) */
.prose p { margin-block: 14px; }
.prose ul, .prose ol { margin-block: 15px; }
.guide-checked { color: #37453a; font-size: 14.5px; }
@media (max-width: 768px) {
  .masthead nav { gap: 10px; padding-right: 24px; }
  .masthead nav a { font-size: .78rem; }
  .guide-title { line-height: 1.1; }
  .prose > p:first-of-type { font-size: 1rem; line-height: 1.62; }
}


/* design pass 4 — 2026-11-23 (mobile header hint, H1 height, list rhythm) */
.prose ul, .prose ol { padding-left: 1.32em; }
.prose li { margin-block: 5px; padding-left: .1em; }
.prose li::marker { color: var(--leaf); }
.prose ul ul, .prose ol ol { margin-block: 6px; }
@media (max-width: 768px) {
  .eyebrow { margin-top: 20px; }
  .guide-title { font-size: clamp(1.8rem, 7.6vw, 2.45rem); line-height: 1.07; margin-block: 8px 15px; }
  .guide-checked { margin-top: 24px; padding-top: 12px; }
  .prose > p:first-of-type { font-size: 1.05rem; }
}
