/* A first move fits on a small phone without a rules carousel. */
.beginner-sheet { max-width: 460px; padding: 24px 22px calc(var(--sb) + 12px); }
.beginner { color: #164f59; text-align: center; }
.beginner-kicker { padding-right: 24px; color: #27757a; }
.beginner-title { margin: 10px 24px 8px; font: 600 29px/1.12 var(--f-display); }
.beginner-goal { max-width: 310px; margin: 0 auto; font: 800 15px/1.4 var(--f-body); text-wrap: balance; }
.beginner-welcome[hidden], .beginner-practice[hidden], .beginner-skip[hidden] { display: none; }
.beginner-intro { max-width: 350px; margin: 0 auto; font: 700 15px/1.5 var(--f-body); text-wrap: balance; }
.beginner-rules-summary { margin: 16px 0 8px; padding: 14px 16px 14px 38px; border: 1px solid #b7d4ce; border-radius: 20px; background: #f1faf5; text-align: left; font: 700 14px/1.45 var(--f-body); }
.beginner-rules-summary li { padding-left: 3px; }
.beginner-rules-summary li + li { margin-top: 12px; }
.beginner-rules-summary li::marker { font-weight: 900; color: #27757a; }
.beginner-rules-summary b { font-weight: 900; }
.beginner-welcome-actions { display: flex; gap: 8px; }
.beginner-welcome-actions .btn { flex: 1; min-width: 0; min-height: 52px; padding-inline: 10px; font-size: 16px; }
.beginner-hide-intro { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-bottom: 6px; font: 800 13px/1.3 var(--f-body); cursor: pointer; }
.beginner-hide-intro input { width: 20px; height: 20px; margin: 0; accent-color: #27757a; }
.beginner-hide-intro:focus-within { outline: 3px solid #197982; outline-offset: -1px; border-radius: 8px; }
.beginner-legend { display: flex; justify-content: center; gap: 30px; margin: 17px 0; }
.beginner-legend > span { display: flex; align-items: center; gap: 8px; text-align: left; }
.beginner-legend b, .beginner-legend small { display: block; }
.beginner-legend b { font: 900 14px/1.3 var(--f-body); }
.beginner-legend small { font: 700 12px/1.3 var(--f-body); }
.beginner-legend .chip-disc { width: 36px; height: 36px; }
.beginner-example { padding: 12px 8px 8px; border: 1px solid #b7d4ce; border-radius: 20px; background: #f1faf5; }
.beginner-instruction { margin: 0 0 8px; font: 900 15px/1.3 var(--f-body); }
.beginner-stage { width: 100%; min-height: 80px; display: grid; place-items: center; }
.beginner-stage .board { box-shadow: inset 0 2px 0 #ffffffe6, 0 3px 7px #0f494f24; }
.beginner-target.legal::before { outline: 2px dashed #9f5442; outline-offset: -4px; background: #fff9e9; }
.beginner-stage .board-wrap .cell.beginner-target.legal::after { content: '+'; display: grid !important; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #a95440; color: #fffaf1; font: 900 27px/1 var(--f-body); opacity: 1; animation: none; transform: translate(-50%, -50%); box-shadow: none; }
.beginner-explanation { margin: 8px auto 0; max-width: 335px; min-height: 40px; font: 700 14px/1.4 var(--f-body); text-wrap: balance; }
.beginner-turns { margin: 12px auto; max-width: 320px; font: 800 14px/1.4 var(--f-body); text-wrap: balance; }
.beginner-start { min-height: 52px; font-size: 18px; }
.beginner-start:disabled { opacity: .55; cursor: default; }
.beginner-links { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.beginner-links button, .beginner-replay { min-height: 44px; padding: 6px 10px; background: transparent; border: 0; color: #256a72; font: 800 13px/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.beginner-replay { margin-bottom: -4px; }
.beginner-links button:focus-visible, .beginner-replay:focus-visible { outline: 3px solid #197982; outline-offset: -1px; border-radius: 8px; }
@media (max-height: 650px) {
  .beginner-sheet { padding: 18px 18px calc(var(--sb) + 8px); }
  .beginner-title { margin-block: 8px 6px; font-size: 25px; }
  .beginner-legend { margin-block: 10px; gap: 24px; }
  .beginner-intro { font-size: 14px; line-height: 1.4; }
  .beginner-rules-summary { margin-block: 12px 4px; padding: 10px 12px 10px 32px; font-size: 13px; line-height: 1.4; }
  .beginner-rules-summary li + li { margin-top: 8px; }
  .beginner-welcome-actions .btn { min-height: 48px; font-size: 15px; }
  .beginner-example { padding-block: 8px 4px; }
  .beginner-instruction { font-size: 14px; margin-bottom: 4px; }
  .beginner-stage { min-height: 76px; }
  .beginner-explanation { font-size: 13px; min-height: 36px; margin-top: 6px; }
  .beginner-turns { margin-block: 8px; font-size: 13px; }
  .beginner-start { min-height: 48px; }
}
