/* Board-game guide only; match the 900px Guides column and compact CTA. */
.board-guide .board-shell { width: min(900px, calc(100% - 40px)); }
.board-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 28px 0 44px; }
.board-hero h1 { margin: 14px 0 22px; font-size: clamp(38px, 4.1vw, 50px); line-height: 1.12; letter-spacing: -.035em; }
.board-hero p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.board-hero-art { margin: 0; }
.board-hero-art img { width: 100%; height: auto; }
.board-guide a:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.board-article h2 { margin: 10px 0 22px; font-size: 28px; line-height: 1.3; letter-spacing: -.025em; }
.board-article h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.board-article p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.board-article a { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.board-article strong { color: var(--text); font-weight: 600; }
.board-step-number { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--teal); font-size: 13px; }
.board-section-heading { max-width: 760px; }
.board-section-heading h2 { margin-bottom: 12px; }
.board-section-heading p { margin: 0; }
.board-guide .faq { max-width: 820px; margin-top: 44px; }
.board-guide .faq summary { font-size: 15px; font-weight: 500; }
.board-guide .faq-answer { font-size: 15px; }
.board-guide .detail-cta { max-width: none; margin-top: 48px; padding: 24px; }
.board-guide .detail-cta h2 { font-size: 26px; }
.board-guide .detail-cta p { max-width: none; font-size: 14px; margin-top: 10px; }
.board-guide .detail-cta .hero-actions { margin-top: 16px; }
.board-guide .app-store-badge, .board-guide .play-store-badge { min-height: 44px; }
.board-guide .app-store-badge img, .board-guide .play-store-badge img { width: auto; height: 44px; }
@media (max-width: 720px) {
  .board-guide .board-shell { width: calc(100% - 28px); }
  .board-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 0 32px; }
  .board-hero h1 { font-size: 36px; }
  .board-hero p { font-size: 16px; }
  .board-hero-art { width: 230px; margin: 0 auto; }
  .board-article h2 { font-size: 25px; }
  .board-guide .faq { margin-top: 36px; }
  .board-guide .detail-cta { margin-top: 40px; padding: 20px; }
}

/* A compact Contents list; keep the guide's main sections left-aligned. */
.board-contents { width: min(100%, 380px); margin: 0 0 40px; }
.board-contents h2 { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.board-contents ol { margin: 0; padding: 0; list-style: none; }
.board-contents li { border-bottom: 1px solid var(--border); }
.board-contents a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding: 10px 0; color: var(--teal); font-size: 14px; line-height: 1.6; }
.board-contents a > span { color: var(--muted); font-size: 12px; }
.board-contents a:hover { text-decoration: underline; text-underline-offset: 4px; }
.board-game-examples { padding: 28px 0 40px; border-top: 1px solid var(--border); }
.board-game-demo { margin-top: 32px; }
.board-game-demo.is-enhanced { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.board-game-choices { display: flex; flex-direction: column; align-self: center; gap: 14px; padding: 0 18px 0 0; }
.board-game-choices[hidden] { display: none; }
.board-game-tab { width: 100%; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); text-align: left; font: inherit; cursor: pointer; transition: transform 320ms ease-in-out, color 180ms ease; }
.board-game-tab > span { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; }
.board-game-tab small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.board-game-tab[aria-selected="true"] { color: var(--text); transform: translateX(18px); }
.board-game-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.board-game-demo.is-enhanced .board-game-panels { display: grid; }
.board-game-demo.is-enhanced .board-game-panel { grid-area: 1 / 1; min-width: 0; margin: 0; }
/* Reserve the tallest complete panel, including image and copy, to prevent jumps. */
.board-game-demo.is-enhanced .board-game-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.board-game-panel { margin-bottom: 36px; }
.board-game-illustration { margin: 0 auto 24px; max-width: 500px; }
.board-game-illustration img { display: block; width: 100%; height: auto; }
.board-game-explanation { max-width: 560px; }
.board-game-explanation h3 { margin: 0 0 14px; font-size: 22px; }
.board-format-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.board-format-tags li { border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; color: var(--muted); background: var(--surface); font-size: 12px; line-height: 1.5; }
.board-game-explanation > p { margin: 18px 0 0; font-size: 15px; line-height: 1.75; }
.board-custom-note { max-width: 760px; margin-top: 36px; padding-left: 18px; border-left: 2px solid var(--teal); }
.board-custom-note h3 { margin: 0 0 10px; }
.board-custom-note p { margin: 0; }
.board-article [id] { scroll-margin-top: 112px; }
@media (max-width: 720px) {
  .board-game-examples { padding: 20px 0 30px; }
  .board-game-demo.is-enhanced { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .board-game-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 0 12px; }
  .board-game-tab { flex: 1; min-width: 0; padding: 12px 8px; text-align: center; }
  .board-game-tab > span { font-size: 14px; }
  .board-game-tab[aria-selected="true"] { transform: translateY(8px); }
  .board-game-explanation h3 { font-size: 20px; }
  .board-game-illustration { margin-bottom: 20px; }
  .board-custom-note { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .board-game-tab { transition: none; }
}

/* One CATAN group through three short stages; details live in the full guides. */
.board-walkthrough { padding-top: 32px; border-top: 1px solid var(--border); }
.board-walkthrough-step { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; padding: 32px 0; }
.board-walkthrough-step + .board-walkthrough-step { border-top: 1px solid var(--border); }
.board-walkthrough-copy { max-width: 500px; }
.board-walkthrough-copy .board-step-number { margin-bottom: 16px; }
.board-walkthrough-copy h3 { margin: 0 0 14px; font-size: 22px; }
.board-walkthrough-copy p { margin: 0; }
.board-walkthrough-link { display: inline-block; margin-top: 16px; font-size: 14px; }
.board-walkthrough-step .resource-shot { margin: 0; }
@media (max-width: 800px) {
  .board-walkthrough { padding-top: 26px; }
  .board-walkthrough-step { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0; }
  .board-walkthrough-step > .resource-shot { margin: 0 auto; }
  .board-walkthrough-copy h3 { font-size: 20px; }
  .board-walkthrough-copy p { font-size: 14px; }
}
@media (max-width: 560px) {
  .board-walkthrough-step { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .board-walkthrough-step .resource-shot { width: min(260px, 100%); margin: 0 auto; }
}

/* Manual image pairs: reserve full captions/heights while both screens exchange sizes. */
.board-screen-pair { width: min(360px, 100%); min-width: 0; }
.board-screen-pair.is-enhanced { display: grid; grid-template-columns: minmax(0, 260px) 84px; gap: 16px; align-items: center; }
.board-screen-main { min-width: 0; position: relative; z-index: 2; }
.board-screen-pair.is-enhanced .board-screen-main { display: grid; }
.board-screen-pair.is-enhanced .resource-shot { width: 100%; grid-area: 1 / 1; }
.board-screen-pair.is-enhanced .resource-shot[hidden] { display: block; visibility: hidden; pointer-events: none; }
.board-screen-pair:not(.is-enhanced) .resource-shot + .resource-shot { margin-top: 24px; }
.board-screen-main img { display: block; width: 100%; height: auto; }
.board-screen-toggle { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 84px; padding: 0; border: 0; background: transparent; color: var(--teal); font: inherit; cursor: pointer; }
.board-screen-toggle[hidden] { display: none; }
.board-screen-preview { display: grid; place-items: center; box-sizing: border-box; width: 100%; aspect-ratio: 675 / 1380; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.board-screen-preview.is-empty { padding: 8px; border-style: dashed; color: var(--muted); font-size: 10px; line-height: 1.5; }
.board-screen-preview img { width: 100%; height: 100%; object-fit: contain; }
.board-screen-label { min-height: 3em; width: 100%; font-size: 12px; line-height: 1.5; text-align: center; }
.board-screen-toggle:hover .board-screen-preview { border-color: var(--teal); }
.board-screen-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; border-radius: 12px; }
@media (max-width: 800px) {
  .board-screen-pair { margin: 0 auto; }
}
