/* First-game guides extend the existing SWU palette and typography. */
.starting-page { background: var(--ink); color: var(--paper); }
.guide-wrap { width: min(1260px, 100%); padding-inline: var(--space-gutter); margin-inline: auto; }
.starting-hero { background: var(--panel); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px); }
.guide-hero-layout { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 6vw, 80px); }
.starting-hero h1 { font-size: clamp(2rem, 4vw, 3rem) !important; margin: 18px 0 24px; max-width: 18ch; }
.guide-lead { max-width: 35ch; font-size: 1.1rem; color: var(--fog); }
.hero-product { margin: 0; text-align: center; }
.hero-product img { display: block; width: min(100%, 330px); height: auto; margin: auto; }
.hero-product figcaption { margin-top: 12px; color: var(--fog); font-size: .8125rem; }
.guide-media { margin: 24px 0; min-width: 0; }
.guide-media > a { display: block; }
.guide-media img { display: block; width: 100%; height: auto; }
.guide-media figcaption { margin-top: 12px; color: var(--fog); font-size: .8125rem; line-height: 1.7; }
.guide-media figcaption span { display: inline-block; color: var(--copper); margin-left: 10px; }
.hero-simulator { margin: 0; }
.character-media { max-width: 560px; margin: 20px 0 0; }
.first-game-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.limited-build-layout { max-width: 880px; margin-inline: auto; }
.first-game-layout > .guide-media, .limited-build-layout > .guide-media { margin-top: 0; }
.first-game-short { margin: 0 !important; }
.first-game-short > li { padding-left: 38px !important; }
.first-game-short h3 { font-size: 1.125rem !important; }
.first-game-short .guide-link { font-size: .9375rem; }
.limited-build-layout > .first-game-steps { margin-block: 32px; }
#play-title { scroll-margin-top: 100px; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 2px 22px; padding-block: 12px; border-bottom: 1px solid var(--line); background: var(--ink); }
.guide-jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: none; font-size: .9375rem; }
.guide-jump a:hover { color: var(--copper); }
.guide-section { padding-block: var(--space-section); }
.guide-section-tint { background: var(--panel); }
.guide-heading { margin-bottom: 36px; }
.guide-heading h2 { margin: 14px 0; max-width: 26ch; }
.guide-heading > p:last-child { max-width: 58ch; margin: 0; color: var(--fog); }
.starting-page p { overflow-wrap: anywhere; }
.starting-page a { color: var(--paper); text-underline-offset: 4px; }
.starting-page a:hover { color: var(--copper); }
.starting-page .guide-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding-bottom: 6px; border-bottom: 1px solid var(--copper); text-decoration: none; font-weight: 700; }
.guide-link span { color: var(--copper); transition: transform .15s ease; }
.guide-link:hover span { transform: translateX(5px); }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 24px; }
.guide-note, .budget-line { color: var(--fog); border-left: 2px solid var(--copper); padding-left: 18px; margin-block: 28px; max-width: 76ch; font-size: .9375rem; }
.try-methods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; border-top: 1px solid var(--line); }
.try-methods article { padding-block: 26px; border-bottom: 1px solid var(--line); min-width: 0; }
.try-methods article:first-child { grid-column: 1 / -1; }
.trial-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 24px; }
.trial-layout > .guide-media, .trial-layout > .guide-steps { margin-block: 0; }
.try-methods h3 { margin-top: 0; }
.guide-steps { padding-left: 22px; }
.guide-steps li { margin-bottom: 16px; padding-left: 5px; }
.inquiry-copy { max-width: 66ch; color: var(--paper); font-size: 1.05rem; }
.choice-comparison, .format-comparison, .preparation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.choice-comparison > div { padding-top: 20px; border-top: 1px solid var(--line); }
.choice-comparison h3 { margin-top: 0; }
.recommendation { padding-top: 48px; }
.recommendation-title { color: var(--copper); }
.starter-product { margin-block: 32px 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.product-visual { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: center; gap: 36px; margin-bottom: 28px; }
.product-visual > img { width: 100%; height: auto; display: block; object-fit: contain; }
.product-summary { min-width: 0; }
.product-summary > p { margin-block: 12px; }
.product-reason, .guide-language { color: var(--fog); }
.guide-language { font-size: .9375rem; max-width: 42ch; }
.product-essentials { margin: 20px 0; }
.product-essentials > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding-block: 6px; }
.product-essentials dt { font-weight: 700; font-size: .875rem; }
.product-essentials dd { margin: 0; color: var(--fog); font-size: .9375rem; }
.product-summary .guide-note { margin-block: 20px; }
.guide-details { margin-top: 24px; border-block: 1px solid var(--line); }
.guide-details > summary { cursor: pointer; padding-block: 14px; color: var(--paper); min-height: 44px; font-weight: 700; }
.guide-details > summary::marker { color: var(--copper); }
.guide-details > summary:hover { color: var(--copper); }
.guide-details > summary:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.details-body { padding-block: 0 24px; color: var(--fog); }
.details-body > :first-child { margin-top: 8px; }
.details-body .character-media { margin-bottom: 24px; }
.trial-layout h3 { margin-top: 0; }
.trial-alternatives { margin-top: 36px; }
.trial-alternatives > article { border-top: 1px solid var(--line); padding-top: 24px; min-width: 0; }
.material-example { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: center; margin: 24px 0; }
.material-example img { display: block; width: 100%; height: auto; }
.material-example h4 { margin-block: 0 8px; overflow-wrap: anywhere; }
.material-example p { margin-block: 8px; }
.fee-note { color: var(--fog); max-width: 72ch; }
.guide-meta { padding-block: 32px; border-top: 1px solid var(--line); }
.source-list { padding-left: 22px; }
.source-list li { margin-bottom: 12px; }
.product-visual h3 { margin: 8px 0 12px; overflow-wrap: anywhere; }
.product-edition { font-size: .8125rem; color: var(--fog); margin: 18px 0 0; }
.product-budget { margin-top: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--paper); }
.product-budget strong { display: block; margin-bottom: 8px; color: var(--copper); }
.product-budget span { display: block; margin-top: 10px; font-size: .875rem; color: var(--fog); }
.product-facts, .pair-facts { margin: 0; }
.product-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; }
.product-facts > div, .pair-facts > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--line); padding-block: 12px; }
.product-facts dt, .pair-facts dt { color: var(--paper); font-weight: 700; font-size: .875rem; }
.product-facts dd, .pair-facts dd { margin: 0; color: var(--fog); font-size: .9375rem; overflow-wrap: anywhere; }
.product-next { margin-top: 22px; }
.product-next > a { display: block; width: fit-content; min-height: 44px; padding-block: 10px; font-size: .875rem; }
.source-date, .source-links { color: var(--fog); font-size: .8125rem; max-width: 80ch; }
.pair-products { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-block: 28px; }
.pair-products figure { margin: 0; min-width: 0; }
.pair-products img { display: block; width: min(100%, 340px); height: auto; margin: auto; }
.pair-products figcaption span { display: block; color: var(--copper); font-size: .8125rem; }
.pair-products figcaption strong { display: block; margin-top: 8px; font-size: 1.125rem; }
.pair-products figcaption p { color: var(--fog); }
.pair-products figcaption a { display: inline-flex; min-height: 44px; align-items: center; font-size: .9375rem; }
.teaching-block { padding-top: 36px; border-top: 1px solid var(--line); margin-top: 48px; }
.preparation-grid h4 { margin-top: 0; }
.preparation-grid ul, .event-checklist { padding-left: 22px; }
.preparation-grid li, .event-checklist li { padding-left: 4px; margin-bottom: 14px; color: var(--fog); }
.first-game-steps { list-style: none; counter-reset: first-step; padding: 0; margin: 36px 0; }
.first-game-steps > li { counter-increment: first-step; position: relative; padding: 22px 0 24px 60px; border-top: 1px solid var(--line); }
.first-game-steps > li::before { content: "0" counter(first-step); position: absolute; top: 27px; left: 0; color: var(--copper); font-size: .875rem; }
.first-game-steps h3 { margin: 0; }
.first-game-steps p { color: var(--fog); max-width: 65ch; }
.draft-flow figcaption { color: var(--copper); margin-bottom: 20px; font-size: .875rem; }
.format-comparison { border-top: 1px solid var(--line); }
.format-comparison article { min-width: 0; padding-top: 22px; }
.format-number { color: var(--copper); font-weight: 700; font-size: 1.25rem; }
.format-comparison h3 { margin: 0; }
.draft-flow { margin: 36px 0; padding-block: 22px; border-block: 1px solid var(--line); }
.draft-flow ol { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; }
.draft-flow strong, .draft-flow span { display: block; }
.draft-flow span { color: var(--fog); margin-top: 10px; font-size: .9375rem; }
.difference-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.difference-list > article { min-width: 0; padding-block: 26px; border-top: 1px solid var(--line); }
.difference-list h3 { font-size: 1.25rem !important; }
.difference-list p { color: var(--fog); }
.mechanic-diagram { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 112px; color: var(--paper); padding: 16px; background: var(--panel); font-size: .875rem; text-align: center; }
.mechanic-diagram > span { min-width: 0; }
.mechanic-diagram b { color: var(--copper); }
.arenas-diagram { display: grid; grid-template-columns: 1fr 1fr; }
.arena-base { grid-column: 1 / -1; color: var(--copper); }
.guide-ending h2 { max-width: 25ch; }
.guide-ending .source-date { margin-top: 36px; }
.guide-anchor { scroll-margin-top: 100px; }
.starting-page [id], .first-paths [id] { scroll-margin-top: 100px; }
/* Four scenario links are choices, so the whole row is the tap target. */
.first-paths { background: var(--paper); color: var(--ink); }
.first-paths h2 { color: var(--ink); max-width: none; }
.first-paths .section-heading > p:last-child { color: #555961; max-width: 60ch; }
.scenario-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding-block: 0; }
.scenario-paths a { display: block; padding-block: 26px; color: var(--ink); border-top: 1px solid #8f918f; text-decoration: none; }
.scenario-paths strong { display: block; font-size: 1.25rem; }
.scenario-paths span { display: block; margin-top: 12px; color: #555961; }
.scenario-paths em { display: inline-block; margin-top: 18px; color: #87472f; font-style: normal; transition: transform .15s; }
.scenario-paths a:hover em { transform: translateX(5px); }
.learning-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; max-width: 1260px; margin: auto; padding: 16px var(--space-gutter); border-bottom: 1px solid var(--line); }
.learning-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fog); font-size: .9375rem; text-decoration: none; }
.learning-nav a[aria-current="page"] { color: var(--paper); border-bottom: 1px solid var(--copper); }
@media (prefers-reduced-motion: no-preference) { html:has(.starting-page) { scroll-behavior: smooth; }.hero-product { animation: guide-enter .35s ease both; } }
@keyframes guide-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1024px) {
  .trial-layout, .first-game-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-facts { grid-template-columns: minmax(0, 1fr); }
  .trial-layout > .guide-media { max-width: 800px; }
  .first-game-layout > .guide-media { max-width: 640px; margin-bottom: 0; }
}
@media (max-width: 900px) {
  .guide-hero-layout, .try-methods, .choice-comparison, .format-comparison, .preparation-grid, .difference-list { grid-template-columns: minmax(0, 1fr); }
  .guide-hero-layout { gap: 28px; }
  .hero-simulator { width: min(100%, 640px); }
  .product-visual { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 24px; }
  .draft-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pair-products, .scenario-paths, .product-visual { grid-template-columns: minmax(0, 1fr); }
  .guide-hero-layout { gap: 28px; }
  .starting-hero { padding-top: 36px; }
  .starting-hero h1 { font-size: 2rem !important; }
  .hero-product img { width: min(100%, 230px); }
  .guide-jump { gap: 2px 18px; }
  .guide-heading { margin-bottom: 26px; }
  .starter-product { margin-bottom: 36px; gap: 22px; }
  .product-visual > img { max-width: 230px; margin: auto; }
  .product-visual { gap: 16px; }
  .product-edition { margin-top: 0; }
  .product-facts > div, .pair-facts > div { grid-template-columns: 1fr; gap: 6px; }
  .product-essentials > div { grid-template-columns: 1fr; gap: 4px; }
  .material-example { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .pair-products { gap: 28px; }
  .pair-products img { max-width: 280px; }
  .first-game-steps > li { padding-left: 38px; }
  .first-game-steps > li::before { top: 26px; }
  .draft-flow ol { grid-template-columns: 1fr; gap: 20px; }
  .draft-flow li { padding-left: 16px; border-left: 1px solid var(--copper); }
  .mechanic-diagram { padding: 12px 8px; gap: 6px; }
  .scenario-paths a { padding-block: 24px; }
  .first-paths .section-heading { margin-bottom: 24px; }
}
