/* Shared presentation for Home, the beginner guide, and the Friends guide. */
.friends-guide { padding: clamp(24px, 5vw, 64px) var(--guide-gutter); }
.friends-guide h2 { margin: 0 0 16px; font: 500 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--serif); }
.friends-guide-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.friends-guide-actions .button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--guide-border); border-radius: 7px; }
.friends-guide ol { max-width: 66ch; margin: 24px 0 0; padding-left: 1.45em; line-height: 1.55; }
.friends-guide li + li { margin-top: 10px; }
.guide-page {
  --guide-muted: #52645b;
  --guide-border: #d8ded3;
  --guide-paper: #faf9f3;
  --guide-gutter: clamp(24px, 4.5vw, 160px);
  background: var(--guide-paper);
  color: #203c32;
}
.guide-page [id] { scroll-margin-top: 88px; }
.learn-page [id] { scroll-margin-top: 68px; }
.guide-page h1, .guide-page h2, .guide-page h3, .guide-page h4 { text-wrap: balance; }
.guide-page p { text-wrap: pretty; }

/* A short welcome gives playing and learning clear, separate paths. */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas: "welcome challenge" "links challenge";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 14px clamp(32px, 4vw, 80px);
  max-width: 2160px;
  margin: 0 auto;
  padding: 48px var(--guide-gutter) 56px;
}
.home-hero-copy { grid-area: welcome; min-width: 0; }
.home-feature { display: contents; }
/* Echo the table's botanicals on cream, without adding dark areas or new art.
   The shared SVG already limits the linework to 10% opacity. */
@media screen {
  @supports (mask-image: url('mat-botanicals.svg')) or (-webkit-mask-image: url('mat-botanicals.svg')) {
    .home-hero { position: relative; isolation: isolate; }
    .home-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background: linear-gradient(to bottom, var(--site-green, #123f35) 0%, var(--site-green, #123f35) 72%, transparent 100%);
      -webkit-mask: url('mat-botanicals.svg') center top / 440px 440px repeat;
      mask: url('mat-botanicals.svg') center top / 440px 440px repeat;
      mask-mode: alpha;
    }
  }
}
.guide-page .home-hero h1 { max-width: 900px; margin: 0 0 24px; font-size: clamp(2.6rem, 4.5vw, 5.5rem); line-height: 1.06; letter-spacing: -.045em; }
.home-intro { max-width: 650px; margin: 0; color: var(--guide-muted); font-size: clamp(1.0625rem, 1.2vw, 1.25rem); line-height: 1.7; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; max-width: 35rem; margin-top: 24px; }
.home-secondary-actions { grid-area: links; margin-top: 0; }
.guide-page .button-primary { padding: 14px 20px; border-radius: 7px; background: #204d3c; box-shadow: none; }
.guide-page .button-primary:hover { background: #163d2e; transform: translateY(-1px); box-shadow: 0 4px 12px #163d2e1a; }
.guide-page .button:focus-visible { outline: 3px solid #204d3c; outline-offset: 4px; }
.home-actions .button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 12px; border: 1px solid #204d3c; text-align: center; }
.guide-page .home-actions .button-primary { grid-column: 1 / -1; min-height: 54px; font-size: 1.0625rem; }
.home-secondary-button { color: #204d3c; background: #faf9f3; }
.home-secondary-button:hover { background: #eaf0e5; }
.home-reassurance { grid-column: 1 / -1; margin: 0; color: var(--guide-muted); font-size: .8125rem; }
/* Both states reserve the same footprint, including before the save is read. */
.home-game-labels, .home-game-notes { display: grid; }
.home-game-labels > span, .home-game-notes > span { grid-area: 1 / 1; }
.home-game-labels > [hidden], .home-game-notes > [hidden] { display: block !important; visibility: hidden; }
.home-game-notes a { color: var(--site-green, #204d3c); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.home-game-notes a:focus-visible { outline: 3px solid var(--site-green, #204d3c); outline-offset: 4px; }
.home-about-link { grid-column: 1 / -1; display: flex; align-items: center; width: fit-content; min-height: 44px; color: var(--site-green, #204d3c); font-size: .875rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.home-about-link:focus-visible { outline: 3px solid var(--site-green, #204d3c); outline-offset: 4px; }
/* The chapter strip stays small; overflow is confined to this strip on phones. */
.guide-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 24px; justify-content: center; padding: 0 24px; border-block: 1px solid var(--guide-border); background: #faf9f3fa; box-shadow: 0 3px 10px #203c3208; }
.guide-nav-label { flex: 0 0 auto; color: #67756a; font: 700 .625rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.guide-nav-links { display: flex; gap: 4px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.guide-nav a { flex: 0 0 auto; display: flex; align-items: center; min-height: 58px; padding: 0 13px; border-bottom: 3px solid transparent; color: #52645b; font-size: .8125rem; }
.guide-nav a[aria-current="location"] { border-color: #9b6c3f; color: #163d2e; background: #edf0e8; }
.guide-nav a:hover { background: #edf0e8; color: #163d2e; }
.guide-nav a:focus-visible { outline-offset: -4px; }
.guide-page .section, .guide-page .closing { margin: 0 auto; padding: 68px var(--guide-gutter) 28px; border: 0; background: none; }
.guide-page .section + .section, .guide-page .closing { border-top: 1px solid var(--guide-border); }
.guide-page .section-heading { max-width: 710px; margin-bottom: 30px; }
.guide-page :is(.section-heading h2, .card-copy h2, .deal-copy h2, .charleston-copy h2, .closing h2, .sequence-heading h2) { margin: 6px 0 16px; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -.035em; }
.guide-page :is(.section-heading, .card-copy, .deal-copy, .charleston-copy) > p:not(.guide-section-label) { font-size: 1rem; line-height: 1.75; }
.guide-page :is(.section-heading, .deal-copy, .charleston-copy) > p:not(.guide-section-label) { color: var(--guide-muted); }
.guide-resource-list { display: grid; gap: .85rem; max-width: 46rem; margin: 0; padding-inline-start: 1.25rem; }
.guide-resource-list a { color: var(--site-green); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.guide-resource-list p { margin: .25rem 0 0; color: var(--guide-muted); }
.guide-page .section-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--guide-border); border-bottom: 0; color: #486151; }
.guide-page .section-jump a { min-height: 64px; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; gap: 2px 8px; padding: 12px 8px; border: 0; border-radius: 5px; }
.guide-page .section-jump small { grid-column: 2; grid-row: 1; font: 600 .625rem/1.5 var(--sans); letter-spacing: .08em; opacity: 1; color: #647465; }
.guide-page .section-jump strong { grid-column: 2; grid-row: 2; font: 600 .875rem/1.4 var(--sans); }
.guide-page .section-jump a > span { grid-row: 1 / 3; grid-column: 1; font-size: 1rem; }
.guide-page .section-jump a + a { grid-template-columns: 1fr 24px; }
.guide-page .section-jump a + a :is(small, strong) { grid-column: 1; }
.guide-page .section-jump a + a > span { grid-column: 2; }
.guide-page .section-jump a:hover, .guide-page .section-jump a:focus-visible { background: #e8eee4; color: #163d2e; outline-offset: -3px; }

/* Real tile artwork, shared with the game. */
.guide-page .tile-groups { gap: 18px; border: 0; background: none; }
.guide-page .tile-group { min-height: 0; padding: 24px; border: 1px solid var(--guide-border); border-radius: 10px; background: #fffdf8; }
.guide-page .mini-tiles { min-height: 88px; gap: 7px; margin-bottom: 24px; align-items: center; }
.guide-page .mini-tile { display: inline-block; flex: 0 0 54px; width: 54px; height: 78px; padding: 0 2px 4px 0; }
.guide-page .mini-tile-face > b { font-size: .625rem; top: 5px; left: 5px; }
.guide-page .mini-tile-face > small { font-size: .375rem; }
.guide-page .tile-group h3 { margin: 6px 0 12px; font-size: 1.5rem; font-weight: 500; }
.guide-page .tile-group > p:last-child { margin: 0; font-size: .9375rem; line-height: 1.7; color: var(--guide-muted); }
[data-guide-tiles] { display: flex; justify-content: center; gap: 5px; }

/* A readable fictional line replaces the decorative placeholder card. */
.guide-page .card-section { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 32px 56px; margin: 28px var(--guide-gutter); padding: 48px; border: 0; border-radius: 12px; background: #1d4235 url('mat-botanicals.svg') center / 400px; color: #fff9eb; }

.guide-page .card-copy h2 { color: #fff9eb; }
.guide-page .card-copy > p:not(.guide-section-label) { color: #d9e4d7; }
.guide-page .card-visual { display: block; width: 100%; max-width: 760px; justify-self: end; margin: 0; perspective: none; }
.guide-sample-card { padding: 24px; border: 1px solid #cfbc91; border-radius: 7px; background: #faf5e7; box-shadow: 0 12px 32px #0b241f40; color: #203c32; }
.guide-sample-heading { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid #d9cfb9; }
.guide-sample-heading > span { font: 500 1.625rem/1.2 var(--serif); }
.guide-sample-heading small { font-size: .6875rem; color: #6a705f; }
.guide-sample-pattern { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px 0; font: 800 clamp(1.25rem, 2.15vw, 1.8rem)/1.2 var(--sans); letter-spacing: .015em; }
.guide-page .pattern-flowers { color: #374738; }
.guide-card-key { display: grid; gap: 16px; margin: 0; }
.guide-card-key dt { font-size: .8125rem; font-weight: 750; }
.guide-card-key dd { margin: 3px 0 0; font-size: .8125rem; line-height: 1.6; color: #596858; }
.guide-sample-card > a { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #d9cfb9; font-size: .75rem; font-weight: 700; text-underline-offset: 3px; }
.guide-page .card-visual figcaption { margin: 16px 8px 0; color: #c6d6c4; font-size: .75rem; line-height: 1.6; }
.guide-page .check-list { margin: 20px 0; }
.guide-page .check-list li { padding: 10px 0 10px 22px; font-size: .875rem; line-height: 1.65; }
.guide-page .card-purchase-link { margin: 4px 0 8px; padding: 12px 16px; border: 1px solid #cfc091; border-radius: 5px; box-shadow: none; background: #e8d9a7; font-size: .8125rem; }
.guide-page .card-copy .fine-print { margin: 4px 0 0; font-size: .75rem !important; }
.guide-page .card-section .section-jump { margin-top: 0; border-color: #ffffff30; color: #f0eddf; }
.guide-page .card-section .section-jump small { color: #b6ccba; }
.guide-page .card-section .section-jump a:hover { background: #ffffff12; color: white; }

.guide-page .sequence-heading { gap: 32px; margin-bottom: 28px; }
.guide-page .sequence-heading > p { color: var(--guide-muted); font-size: .9375rem; }
.guide-page .game-sequence { gap: 0 28px; padding: 0; background: none; }
.guide-page .game-sequence li { min-height: 0; border-top: 1px solid #c5cdbf; background: none; }
.guide-page .game-sequence a { grid-template-columns: 34px 1fr; grid-template-rows: auto 1fr auto; gap: 10px 14px; padding: 24px 4px; }
.guide-page .game-sequence a > span:first-child { grid-column: 1; grid-row: 1 / 4; width: 30px; height: 30px; margin: 0; background: #e6ebdf; color: #405844; font: 700 .75rem/1 var(--sans); }
.guide-page .game-sequence :is(strong, small, b) { grid-column: 2; }
.guide-page .game-sequence strong { font: 500 1.375rem/1.2 var(--serif); }
.guide-page .game-sequence small { margin: 0; font-size: .875rem !important; line-height: 1.65; }
.guide-page .game-sequence b { margin-top: 4px; font-size: .625rem; color: #54704f; }
.guide-page .game-sequence a:hover, .guide-page .game-sequence a:focus-visible { background: #edf0e6; outline-color: #82977e; }

/* Setup is optional depth, with consistent step / text / diagram alignment. */
.guide-page .deal-section { grid-template-columns: 1.15fr .85fr; gap: 28px 64px; align-items: start; }
.guide-deal-summary { padding: 24px 28px; border-left: 3px solid #a5b89a; border-radius: 0 8px 8px 0; background: #edf0e6; }
.guide-deal-summary-title { margin: 0; font: 600 1.125rem/1.4 var(--sans); }
.guide-deal-summary dl { margin: 16px 0; }
.guide-deal-summary dl > div { display: grid; grid-template-columns: 1fr 1.3fr; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #cbd4c2; }
.guide-deal-summary dt { font-size: .8125rem; color: #526149; }
.guide-deal-summary dd { margin: 0; font-size: .75rem; }
.guide-deal-summary dd strong { margin-right: 6px; font: 500 1.625rem/1 var(--serif); }
.guide-deal-summary > p:last-child { margin-bottom: 0; color: #526149; font-size: .8125rem; line-height: 1.65; }
.guide-page .setup-details { margin: 0; padding: 0; border: 0; min-width: 0; }
.guide-detail { border: 1px solid var(--guide-border); border-radius: 8px; background: #fffdf8; }
.guide-detail > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; min-height: 54px; cursor: pointer; list-style: none; color: #294a37; font: 650 .9375rem/1.5 var(--sans); }
.guide-detail > summary::-webkit-details-marker { display: none; }
.guide-detail > summary strong { display: block; font-size: 1rem; }
.guide-detail > summary small { display: block; margin-top: 4px; font: 400 .8125rem/1.6 var(--sans); color: var(--guide-muted); }
.guide-detail > summary > span:last-child:not(:first-child) { flex: 0 0 auto; font-size: 1.5rem; font-weight: 400; transition: transform .15s; }
.guide-detail[open] > summary > span:last-child:not(:first-child) { transform: rotate(45deg); }
.guide-detail > summary:hover { background: #eff2e9; border-radius: 8px; }
.guide-detail > summary:focus-visible { outline-offset: -4px; border-radius: 8px; }
.guide-detail > p { margin: 0; padding: 0 24px 24px; font-size: .9375rem; line-height: 1.75; color: var(--guide-muted); }
.guide-page .setup-heading { display: block; padding: 0 24px 20px; margin: 0; }
.guide-page .setup-heading > p:last-child { max-width: 760px; font-size: .875rem; }
.guide-page .setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0 24px 24px; background: none; }
.guide-page .setup-steps > article { grid-column: 1 / -1; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-content: start; align-items: start; gap: 12px; min-width: 0; padding: 24px; border: 1px solid #dce0d4; border-radius: 8px; background: #f6f6ee; }
.guide-page .setup-steps > .setup-paired { grid-column: auto; }
.guide-page .setup-steps article > * { grid-column: 1 / -1; min-width: 0; }
.guide-page .setup-steps .setup-number { grid-column: 1; width: 30px; height: 30px; margin: 0; background: #41654a; font-size: .75rem; }
.guide-page .setup-steps h3 { grid-column: 2; margin: 2px 0 8px; font: 500 1.5rem/1.2 var(--serif); }
.guide-page .setup-steps p { font-size: .9375rem !important; line-height: 1.7; }
.guide-page .setup-steps small { margin-top: 0; font-size: .8125rem; line-height: 1.65; }
.guide-page .setup-visual { margin: 8px 0; border: 1px solid #cbd4c2; border-radius: 6px; background: #e8eddf; }
.guide-page :is(.choose-east-visual, .wall-visual) { height: 290px; }
.guide-page .setup-visual::before { border-radius: 10px; border-color: #82977e22; }
.guide-page .choose-east-visual b { inset: auto 16px 16px; width: auto; padding: 8px; border: 0; border-radius: 4px; font-size: .6875rem; line-height: 1.5; text-align: center; background: #ffffffa8; }
.guide-page .visual-seat { width: 30px; height: 30px; font-size: .75rem; }
.guide-page .visual-north { bottom: 64px; }
.guide-page .visual-south { top: 20px; }
.guide-page .visual-east { right: 24px; top: 43%; background: #a35238; border-color: #a35238; }
.guide-page .visual-west { left: 24px; top: 43%; }
.guide-page .visual-die { top: 43%; width: 38px; height: 38px; }
.guide-page .visual-die:nth-of-type(5) { left: calc(50% - 44px); }
.guide-page .visual-die:nth-of-type(6) { right: calc(50% - 44px); }
.guide-page .wall-square { width: 170px; height: 170px; transform: translate(-50%, -57%); }
.guide-page .wall-direction { width: 24px; height: 24px; font-size: .6875rem; }
.guide-page .wall-visual b { bottom: 16px; font-size: .6875rem; }
.guide-page .setup-equation { justify-content: center; margin: 0; font-size: .875rem; }
.guide-page :is(.wall-roll-example, .wall-count-example, .wall-push-example) { margin: 0; border: 1px solid #cbd4c2; border-radius: 6px; background: #fffdf8; }
.guide-page :is(.wall-roll-example, .wall-push-example) { grid-template-columns: 220px 1fr; }
.guide-page :is(.wall-roll-example, .wall-push-example) > div:last-child { padding: 22px; }
.guide-page :is(.wall-roll-example, .wall-push-example, .wall-count-copy, .wall-open-result) strong { color: #294a37; font: 650 1rem/1.5 var(--sans); }
.guide-page .wall-roll-example > div:last-child > strong,
.guide-page .wall-push-example > div:last-child > strong { font: 650 1rem/1.5 var(--sans); }
.guide-page .dice-roll-example { min-height: 138px; gap: 8px; border-color: #cbd4c2; background: #e8eddf; }
.guide-page .dice-roll-example .pip-die { width: 40px; height: 40px; }
.guide-page .dice-roll-example strong { color: #994c32; font-size: 1.5rem; }
.guide-page .wall-count-copy { padding: 20px 22px; border-color: #cbd4c2; }
.guide-page .wall-open-result { margin: 0; padding: 18px 22px; border-color: #a57449; border-radius: 0 5px 5px 0; background: #f1eadc; }
.guide-page .setup-visual.full-wall-visual {
  display: grid;
  gap: 12px;
  height: auto;
  padding: 14px 18px;
}
.guide-page .break-example {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
}
.guide-page .full-wall-visual :is(.break-roll-total, .count-instruction, .same-break-label, .deal-order, .full-wall-scroll) { position: static; }
.guide-page .full-wall-visual :is(.break-roll-total, .same-break-label) { justify-self: start; }
.guide-page .setup-steps .count-instruction { font-size: .6875rem !important; line-height: 1.4; text-align: right; }
.guide-page .full-wall-scroll { grid-column: 1 / -1; min-width: 0; overflow: visible; }
.guide-page .full-wall-canvas { min-width: 0; height: auto; grid-template-rows: auto 56px auto; gap: 12px; }
.guide-page .full-wall-row { grid-template-columns: repeat(12, minmax(0, 1fr)) 20px repeat(7, minmax(0, 1fr)); }
.guide-page .full-wall-row i { height: 48px; }
.guide-page .full-wall-row i::after { bottom: -19px; font-size: .75rem; }
.guide-page .full-wall-labels, .guide-page .full-wall-markers { font-size: .6875rem; line-height: 1.5; letter-spacing: .02em; }
.guide-page .full-wall-markers span { padding-top: 4px; }
.guide-page .full-wall-row .wall-break::after { font-size: .625rem; left: -14px; }
.guide-page :is(.break-roll-total, .setup-visual .count-instruction) { font-size: .6875rem; }
.guide-page .same-break-label { top: 14px; left: 18px; padding: 5px 8px; background: #9e533c; font-size: .6875rem; }
.guide-page .deal-order { gap: 5px; }
.guide-page .deal-order span { font-size: .6875rem; }
.guide-page .wall-push-picture { min-height: 170px; background: #e8eddf; border-color: #cbd4c2; }
.guide-page .wall-push-picture::before { font-size: .625rem; }
.guide-page :is(.wall-push-rack, .wall-push-original, .wall-push-angled) { width: 140px; left: 28px; }
.guide-page .wall-push-rack { bottom: 28px; }
.guide-page :is(.wall-push-original, .wall-push-angled) { bottom: 60px; }
.guide-page .wall-push-arrow { right: 28px; top: 30px; }
.guide-page .final-picks-example { padding: 20px; border-color: #cbd4c2; border-radius: 6px; background: #e8eddf; }
.guide-page .final-picks-heading { align-items: center; gap: 12px; margin-bottom: 20px; }
.guide-page .final-picks-heading strong { font: 650 1rem/1.4 var(--sans); }
.guide-page .final-picks-heading span { font-size: .6875rem; line-height: 1.5; }
.guide-page .final-picks-open { max-width: 520px; margin: 0 auto 10px; font-size: .6875rem; }
.guide-page .final-picks-grid, .guide-page .final-picks-example > p { max-width: 520px; margin-inline: auto; }
.guide-page .final-picks-grid { gap: 7px; }
.guide-page .final-picks-grid > span { min-height: 60px; }
.guide-page .final-picks-grid b { font-size: .9375rem; }
.guide-page .final-picks-grid small { font-size: .6875rem; }
.guide-page .final-picks-example > p { font-size: .75rem !important; }
.guide-page .setup-draw-note { margin: 20px 0 0; padding: 0 4px; background: none; font-size: .875rem; color: var(--guide-muted); }
.guide-page .deal-section > .section-jump { margin-top: 8px; }

.guide-page .guide-read-rack .section-heading { max-width: 740px; }
.guide-rack-example { padding: 28px; border: 1px solid #cdd8c6; border-radius: 10px; background: #e9eee2; }
.guide-rack-tiles { width: max-content; max-width: 100%; flex-wrap: wrap; gap: 8px 5px; margin: 0 auto; padding: 0 10px 12px; border-bottom: 7px solid #4e6e56; border-radius: 4px; }
.guide-rack-caption { display: grid; gap: 5px; max-width: 700px; margin: 20px auto 0; text-align: center; font-size: .875rem; color: #4d634e; }
.guide-rack-caption strong { color: #203c32; }
.guide-guest-note { font-size: .875rem; color: var(--guide-muted); }
.guide-page .charleston-section { grid-template-columns: 1.2fr .8fr; gap: 28px 56px; align-items: start; }
.guide-page .charleston-rule { margin: 20px 0; padding: 14px 18px; background: #f4e9de; border-color: #aa6a45; border-radius: 0 6px 6px 0; }
.guide-page .charleston-rule strong { color: #884329; }
.guide-page .charleston-phases { gap: 0; margin-bottom: 0; padding: 0; background: none; }
.guide-page .charleston-phases li { padding: 16px 0; gap: 14px; border-top: 1px solid var(--guide-border); background: none; }
.guide-page .charleston-phases strong { font: 650 .9375rem/1.5 var(--sans); }
.guide-page .charleston-phases li > span { background: #e5ebdd; color: #3b583d; }
.guide-page .charleston-phases p { font-size: .875rem !important; }
.guide-page .charleston-phases b { color: #365c3b; }
.guide-charleston-visual { margin: 40px 0 0; }
.guide-page .pass-map { min-height: 0; height: 350px; border: 7px solid #aa9c6b; border-radius: 12px; background: #244b3b url('mat-botanicals.svg') center / 230px; box-shadow: inset 0 0 0 2px #e6dfb544; }
.guide-page .map-center { color: #dfd5b0; font: 600 .6875rem/1.5 var(--sans); }
.guide-page .map-center strong { display: block; margin: 4px 0; color: #fff9e9; font: 500 2.5rem/1.2 var(--serif); }
.guide-page .map-center small { display: block; font: 400 .6875rem/1.5 var(--sans); }
.guide-page .map-arrow { color: #dec98b; font-size: 2rem; }
.guide-page .player span { width: 22px; height: 30px; border-radius: 3px; background: #f4efdd; box-shadow: 2px 3px 0 #92ad8e; }
.guide-page .player-top { top: 28px; }.guide-page .player-bottom { bottom: 28px; }
.guide-page .player-left { left: 5px; }.guide-page .player-right { right: 5px; }
.guide-charleston-visual figcaption { margin: 16px 12px; color: var(--guide-muted); font-size: .8125rem; line-height: 1.65; text-align: center; }
.guide-questions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.guide-questions .guide-detail > summary { padding: 16px 20px; font-size: .875rem; }
.guide-questions .guide-detail > p { padding: 0 20px 20px; font-size: .875rem; }
.guide-page .charleston-section > .section-jump { margin-top: 8px; }

.guide-page .turn-track { gap: 16px; align-items: stretch; }
.guide-page .turn-track article { min-height: 0; padding: 24px; border: 1px solid var(--guide-border); border-radius: 9px; background: #fffdf8; }
.guide-page .turn-number { color: #8c6b44; }
.guide-page .turn-track h3 { margin: 20px 0 8px; font-size: 1.625rem; font-weight: 500; }
.guide-page .turn-track p { margin: 0; color: var(--guide-muted); font-size: .9375rem; }
.guide-page .track-arrow { align-self: center; color: #8a9b7e; font-size: 1.25rem; }
.guide-turn-art { height: 90px; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.guide-tile-back { display: block; width: 54px; height: 78px; border: 3px double #dfd0a0; border-radius: 5px; background: repeating-linear-gradient(45deg, #346b50 0 4px, #45795e 4px 5px); box-shadow: 2px 4px 0 #adc0a2; transform: rotate(-8deg); }
.guide-draw-arrow { color: #8c6b44; font-size: 2rem; }
.guide-page .table-note { max-width: none; margin: 28px 0 0; padding: 28px; gap: 18px; border-color: var(--guide-border); border-radius: 9px; background: #eef1e7; }
.guide-page .table-note .callout-mark { width: 30px; height: 30px; background: #516b49; }
.guide-page .table-note h3 { font: 500 1.75rem/1.2 var(--serif); margin: 8px 0 12px; }
.guide-page .table-note-intro { font-size: .9375rem; }
.guide-page .claim-steps { gap: 24px; background: none; padding: 0; margin-top: 24px; }
.guide-page .claim-steps article { display: block; padding: 0; background: none; }
.guide-page .claim-steps article > span { width: auto; height: auto; display: block; margin-bottom: 10px; background: none; color: #738067; font: 700 .75rem/1 var(--sans); }
.guide-page .claim-steps strong { margin-bottom: 8px; font: 650 .9375rem/1.5 var(--sans); }
.guide-page .claim-steps p { font-size: .875rem; }
.guide-call-details { margin-top: 24px; background: #f8faf3; }
.guide-call-details > summary { padding: 16px 20px; font-size: .875rem; }
.guide-page .claim-rules { margin: 0; padding: 0 20px 20px; gap: 18px 28px; }
.guide-page .claim-rules p { font-size: .875rem; }

/* The finished hand remains grouped with its notation, even on a small phone. */
.guide-page .closing { text-align: left; }

.guide-page .closing > p:not(.guide-section-label) { max-width: 760px; margin: 0; color: var(--guide-muted); font-size: 1rem; }
.guide-page .winning-example { max-width: none; margin: 30px 0; padding: 24px; border: 1px solid var(--guide-border); border-radius: 10px; background: #f0f2e8; box-shadow: none; }
.guide-winning-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 22px; }
.guide-winning-heading strong { font: 500 1.375rem/1.3 var(--serif); }
.guide-winning-heading > span { align-self: center; color: #64715b; font-size: .75rem; }
.guide-winning-groups { display: grid; grid-template-columns: .72fr 1fr 1fr 1fr; gap: 12px; }
.guide-winning-group { min-width: 0; padding: 18px 10px 12px; border: 1px solid #d3dbc8; border-radius: 6px; background: #fffdf6; text-align: center; }
.guide-winning-notation { font: 800 1.875rem/1.3 var(--sans); letter-spacing: .06em; }
.guide-group-match { display: block; margin: 10px 0 14px; color: #95a488; font-size: 1.125rem; }
.guide-winning-group p { margin: 16px 0 0; color: #56684e; font-size: .75rem; }
.guide-page .guide-winning-group .mini-tile { flex-basis: 42px; width: 42px; height: 64px; }
.guide-page .guide-winning-group .mini-tile-face > b { font-size: .5rem; }
.guide-page .guide-winning-group .mini-tile-face > small { font-size: .3125rem; }
.guide-page .winning-caption { max-width: 800px; margin: 20px 0 0; color: #52644b; font-size: .875rem; }
.guide-page .mahjong-call { max-width: none; margin: 0 0 24px; padding: 24px 28px; border: 1px solid #a6b69a; border-radius: 7px; background: #214a38; color: #fff9e9; text-align: left; }
.guide-page .mahjong-call > span { color: #d5c991; font-size: .625rem; }
.guide-page .mahjong-call > strong { display: block; margin: 4px 0 8px; font: 500 2.25rem/1.2 var(--serif); color: #fff9e9; }
.guide-page .mahjong-call p { color: #d6e1ce; font-size: .875rem; }
.guide-next-step { display: flex; justify-content: space-between; gap: 32px; align-items: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--guide-border); }
.guide-next-step h3 { margin: 0 0 8px; font: 500 1.75rem/1.2 var(--serif); }
.guide-next-step p { max-width: 580px; margin: 0; color: var(--guide-muted); font-size: .9375rem; }
.guide-next-step .hero-actions { flex: 0 0 240px; justify-content: center; gap: 18px; margin: 0; font-size: .875rem; }
.guide-page .site-footer { margin-top: 40px; }

@media (max-width: 1050px) {
  .guide-page .section, .guide-page .closing { padding-inline: 28px; }
  .guide-page .card-section { margin-inline: 28px; padding: 32px; gap: 28px; }
  .guide-page .tile-group { padding: 18px; }
  .guide-page .tile-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-page .mini-tiles { gap: 4px; }
  .guide-page .tile-group .mini-tile { width: 42px; flex-basis: 42px; height: 66px; }
  .guide-winning-groups { grid-template-columns: 1fr 1fr; }
  .guide-page .guide-winning-group .mini-tile { width: 44px; flex-basis: 44px; height: 66px; }
  .guide-nav { gap: 12px; padding-inline: 16px; }
  .guide-nav a { padding-inline: 9px; }
  .guide-nav-label { display: none; }
  .guide-page .charleston-section { gap: 28px; }
  .guide-page .game-sequence { grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
}
@media (max-width: 760px) {
  .learn-page [id] { scroll-margin-top: 54px; }
  .guide-nav { padding: 0 12px; justify-content: flex-start; }
  .guide-nav a { min-height: 44px; padding-inline: 12px; }
  .guide-page .section, .guide-page .closing { padding: 44px 24px 20px; }
  .guide-page .tile-groups { grid-template-columns: 1fr; gap: 14px; }
  .guide-page .tile-group { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px; }
  .guide-page .tile-group h3 { grid-column: 1; grid-row: 1; margin: 2px 0 10px; }
  .guide-page .tile-group > p:last-child { grid-column: 1 / -1; }
  .guide-page .mini-tiles { grid-column: 2; grid-row: 1; margin: 0; min-height: 68px; }
  .guide-page .card-section { grid-template-columns: 1fr; margin: 16px 20px; padding: 28px 24px 18px; }
  .guide-page .card-copy { grid-row: 1; }
  .guide-page .guide-sample-pattern { font-size: 1.75rem; }
  .guide-page .sequence-heading { grid-template-columns: 1fr; gap: 4px; }
  .guide-page .game-sequence { grid-template-columns: repeat(2, 1fr); }
  .guide-page .deal-section { grid-template-columns: 1fr; gap: 24px; }
  .guide-deal-summary { padding: 20px 24px; }
  .guide-page .setup-steps { grid-template-columns: 1fr; padding: 0 14px 14px; gap: 14px; }
  .guide-page .setup-steps > article { padding: 20px 16px; }
  .guide-page .setup-heading { padding-inline: 20px; }
  .guide-detail > summary { padding: 18px 20px; }
  .guide-page :is(.wall-roll-example, .wall-push-example) { grid-template-columns: 1fr; }
  .guide-page .dice-roll-example { min-height: 100px; border-bottom: 1px solid #cbd4c2; border-right: 0; }
  .guide-page .wall-push-picture { min-height: 170px; border-right: 0; border-bottom: 1px solid #cbd4c2; }
  .guide-page :is(.wall-push-rack, .wall-push-original, .wall-push-angled) { left: calc(50% - 70px); }
  .guide-page .wall-push-arrow { right: calc(50% - 94px); }
  .guide-page .wall-count-copy { padding: 18px; }
  .guide-page :is(.choose-east-visual, .wall-visual) { height: 225px; }
  .guide-page .setup-visual.full-wall-visual { padding: 12px 10px; }
  .guide-page .full-wall-canvas { grid-template-rows: auto 45px auto; }
  .guide-page .full-wall-row { grid-template-columns: repeat(12, minmax(0, 1fr)) 13px repeat(7, minmax(0, 1fr)); gap: 2px; }
  .guide-page .full-wall-row i { height: 34px; box-shadow: none; }
  .guide-page .full-wall-row .wall-break { height: 43px; }
  .guide-page .full-wall-labels, .guide-page .full-wall-markers { gap: 13px; letter-spacing: 0; text-transform: none; }
  .guide-page .full-wall-row i::after { font-size: .625rem; }
  .guide-page .full-wall-row .wall-break::after { font-size: .5rem; left: -13px; }
  .guide-page .final-picks-example { padding: 16px 12px; }
  .guide-page .final-picks-heading { align-items: start; }
  .guide-page .final-picks-heading span { max-width: 130px; }
  .guide-rack-example { padding: 24px 12px; }
  .guide-page .charleston-section { grid-template-columns: 1fr; gap: 24px; }
  .guide-charleston-visual { max-width: 420px; width: 100%; margin: 0 auto; }
  .guide-questions { grid-template-columns: 1fr; }
  .guide-page .turn-track { grid-template-columns: 1fr; gap: 0; }
  .guide-page .turn-track article { display: grid; grid-template-columns: minmax(0, 1fr) 126px; gap: 8px 14px; padding: 22px; }
  .guide-page .turn-number { grid-column: 1; }
  .guide-page .turn-track h3 { grid-column: 1; margin: 0; }
  .guide-page .turn-track p { grid-column: 1 / -1; }
  .guide-turn-art { grid-column: 2; grid-row: 1 / 3; margin: 0; height: 78px; }
  .guide-page .guide-turn-art .mini-tile { width: 36px; height: 58px; flex-basis: 36px; }
  .guide-page .track-arrow { line-height: 1; padding: 10px 0; }
  .guide-page .table-note { padding: 22px; display: block; }
  .guide-page .table-note .callout-mark { display: none; }
  .guide-page .claim-steps { grid-template-columns: 1fr; gap: 20px; }
  .guide-page .claim-steps article { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
  .guide-page .claim-steps article > span { padding-top: 5px; }
  .guide-page .claim-rules { grid-template-columns: 1fr; }
  .guide-page .winning-example { padding: 18px; }
  .guide-winning-groups { grid-template-columns: 1fr 1fr; gap: 12px; }
  .guide-page .guide-winning-group .mini-tile { width: 44px; height: 65px; flex-basis: 44px; }
  .guide-next-step { display: block; margin-top: 32px; }
  .guide-next-step .hero-actions { margin-top: 24px; justify-content: flex-start; }
}
@media (max-width: 470px) {
  .guide-page .section, .guide-page .closing { padding-inline: 20px; }
  .guide-page .tile-group { display: flex; flex-direction: column; align-items: flex-start; }
  .guide-page .mini-tiles { margin-bottom: 16px; gap: 6px; }
  .guide-page .tile-group .mini-tile { width: 54px; height: 78px; flex-basis: 54px; }
  .guide-page .game-sequence { grid-template-columns: 1fr; }
  .guide-page .game-sequence a { padding-block: 20px; }
  .guide-page .section-jump strong { font-size: .8125rem; }
  .guide-page .section-jump a { padding-inline: 0; gap: 2px 4px; }
  .guide-page .card-section { padding: 28px 20px 16px; }
  .guide-sample-card { padding: 20px 16px; }
  .guide-page .guide-sample-pattern { font-size: 1.5rem; gap: 7px; }
  .guide-page .setup-steps { padding-inline: 8px; }
  .guide-page .setup-steps > article { padding: 16px 12px; }
  .guide-page .setup-steps h3 { font-size: 1.375rem; }
  .guide-page .setup-equation, .guide-page .setup-equation strong { font-size: .75rem; gap: 5px; }
  .guide-page .pass-map { height: 310px; }
  .guide-page .guide-rack-tiles .mini-tile { width: 43px; height: 66px; flex-basis: 43px; }
  .guide-page .winning-example { padding: 14px; }
  .guide-winning-groups { grid-template-columns: 1fr; gap: 10px; }
  .guide-winning-group { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 10px; padding: 16px 12px; }
  .guide-winning-notation { font-size: 1.5rem; letter-spacing: .025em; }
  .guide-group-match { display: none; }
  .guide-winning-group p { grid-column: 1 / -1; margin: 4px 0 0; font-size: .8125rem; }
  .guide-page .guide-winning-group .mini-tile { width: 34px; height: 54px; flex-basis: 34px; }
  .guide-page .guide-winning-group [data-guide-tiles] { gap: 3px; }
}
@media (max-width: 360px) {
  .guide-page .guide-winning-group { grid-template-columns: 1fr; }
  .guide-page .guide-winning-group .mini-tile { width: 43px; height: 64px; flex-basis: 43px; }
  .guide-page .guide-sample-pattern { font-size: 1.25rem; }
  .guide-page .hero-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1000px) {
  .home-hero { column-gap: 32px; padding: 44px 28px 56px; }
}
@media screen and (min-width: 900px) {
  .guide-page > main:has(> .home-hero) { display: grid; }
  .guide-page > main:has(> .home-hero) + .site-footer { margin-top: 0; }
  .home-hero {
    --home-side: max(var(--guide-gutter), (100% - 114rem) / 2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .home-hero::before { content: none; }
  .home-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-areas: "welcome challenge";
    align-items: start;
    align-content: center;
    gap: clamp(2.25rem, 5vw, 7rem);
    min-height: max(22rem, 58vh);
    padding: clamp(2.5rem, 7vh, 8rem) var(--home-side);
    border-bottom: 3px solid var(--site-accent);
    background: var(--site-green) url("mat-botanicals.svg") center / 460px;
    color: var(--site-paper);
  }
  .guide-page .home-feature .home-hero-copy h1 {
    max-width: 17ch;
    font-size: clamp(2.9rem, 4.35vw, 5.75rem);
    line-height: 1.04;
  }
  .guide-page .home-feature .home-intro {
    max-width: 42ch;
    color: var(--site-sage);
    font-size: clamp(1rem, 1.15vw, 1.375rem);
  }
  .home-feature .home-actions { max-width: 28rem; }
  .guide-page .home-feature .home-game-notes { color: var(--site-sage); font-size: clamp(.875rem, .8vw, 1.05rem); }
  .home-feature .home-game-notes a { color: var(--site-accent); }
  .guide-page .home-feature .home-actions .button-primary {
    min-height: clamp(3.5rem, 4.25vw, 4.5rem);
    font-size: clamp(1.0625rem, 1vw, 1.35rem);
    background: var(--site-accent);
    border-color: var(--site-accent);
    color: var(--site-green);
  }
  .guide-page .home-feature .home-actions .button-primary:hover { background: var(--site-accent-hover); }
  .guide-page .home-feature .home-hero-copy a:focus-visible { outline-color: var(--site-accent); }
  .home-feature > .daily-challenge {
    max-width: none;
    margin-top: clamp(1.5rem, 4.5vw, 6rem);
    box-shadow: 0 14px 32px #071a1640;
  }
  .home-feature > .daily-challenge > header {
    background: var(--site-sage);
    color: var(--site-green);
    border-bottom: 1px solid var(--site-border);
  }
  .home-feature .daily-challenge h2 { font-size: clamp(1.75rem, 2.55vw, 3rem); }
  .home-feature .daily-body { font-size: clamp(1rem, 1.04vw, 1.25rem); }
  .home-secondary-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    margin: auto 0;
    padding: clamp(1.6rem, 4vh, 3rem) var(--home-side) 1rem;
  }
  .guide-page .home-secondary-actions .button {
    min-height: clamp(3rem, 3.4vw, 3.75rem);
    font-size: clamp(.9375rem, .9vw, 1.15rem);
  }
  .home-secondary-actions .home-about-link { justify-self: center; }
}
@media (max-width: 760px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "welcome" "challenge" "links";
    grid-template-rows: auto;
    gap: 18px;
    padding: 32px 24px 40px;
  }
  .guide-page .home-hero h1 { max-width: 560px; font-size: clamp(2.5rem, 7vw, 3.4rem); margin-bottom: 18px; }
  .home-intro { max-width: 550px; font-size: 1rem; line-height: 1.65; }
}
@media (max-width: 440px) {
  .home-actions { gap: 8px; }
  .home-actions .button { padding-inline: 8px; }
}
@media (max-width: 360px) {
  .home-hero { padding-inline: 20px; }
  .guide-page .home-hero h1 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-page *, .guide-page *::before, .guide-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .guide-nav, .guide-page .site-header, .guide-page .section-jump, .guide-next-step { display: none; }
  .guide-page .section, .guide-page .closing, .guide-page .card-section { max-width: none; margin: 0; padding: 24px 0; }
  .guide-page details::details-content { content-visibility: visible; display: block; }
  .guide-page details > :not(summary) { display: block; }
  .guide-page .setup-steps { display: grid !important; }
  .guide-page .setup-steps > article, .guide-winning-group { break-inside: avoid; }
}
