/* Presentation-only additions; gameplay styles and scripts remain independent. */
.welcome-copy { margin: 22px auto 18px; padding: 0 10px; max-width: 640px; text-align: center; color: #17356e; font-size: 1.12rem; line-height: 1.5; }
.welcome-copy span { color: #5a6882; font-size: .9rem; }
.selector-shell .variant-card { background: #fff; padding: 22px; }
.selector-shell .variant-card h2 { margin: 0; }
.game-preview { margin: 18px auto 12px; }
.preview-grid { width: 180px; }
.preview-cells { display: grid; gap: 4px; }
.preview-numbers .preview-cells { grid-template-columns: repeat(4, 1fr); }
.preview-words .preview-cells { grid-template-columns: repeat(5, 1fr); }
.preview-tile { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid #b7c2ce; border-radius: 7px; color: #132033; font-size: 1.1rem; }
.preview-white { background: #fff; }
.preview-light { background: #cfd5dd; }
.preview-dark { background: #9ea7b2; }
.game-preview figcaption { margin-top: 6px; color: #5a6882; font-size: .75rem; text-align: center; }
.variant-description { margin: 0 0 20px; color: #44536c; text-align: center; font-size: .98rem; line-height: 1.5; }
.selector-shell .variant-actions a:last-child { color: #1344b8; border-color: #9bb2e2; background: #eef3ff; }
.puzzle-help { max-width: 480px; margin: 0 auto 6px; color: #17356e; font: .88rem/1.45 "Trebuchet MS", "Segoe UI", Arial, sans-serif; }
.puzzle-help summary { min-height: 44px; width: fit-content; margin: auto; padding: 11px 16px; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.puzzle-help-copy { margin: 0 0 10px; padding: 12px 16px; border: 1px solid #c8d2e3; border-radius: 12px; background: #fff; }
.puzzle-help-copy p { margin: 0 0 10px; }
.puzzle-help-copy a { display: inline-block; padding: 8px 0; color: #1344b8; }
.puzzle-help summary:focus-visible, .puzzle-help a:focus-visible, .selector-shell a:focus-visible { outline: 3px solid #1344b8; outline-offset: 3px; }
.topbar .ghost-pill.home-entry, .topbar .menu-btn, .rw-topbar--play .rw-top-control { top: 5px; min-width: 44px; min-height: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 3px 9px; border: 1px solid #7f9de0; border-radius: 12px; background: rgba(255,255,255,.08); color: #eaf0ff; text-decoration: none; font: 800 .72rem "Trebuchet MS", "Segoe UI", Arial, sans-serif; }
.topbar .menu-btn, .rw-topbar--play .rw-menu-button { right: 8px; font-size: .85rem; }
.topbar .home-entry, .rw-topbar--play .rw-home-control { left: 8px; }
@media (max-width: 620px) {
  .welcome-copy { margin: 16px auto; font-size: 1rem; }
  .selector-shell .variant-card { padding: 18px 16px; }
  .preview-grid { width: 148px; }
  .game-preview { margin-top: 14px; }
  .variant-description { margin-bottom: 16px; }
}

/* Word patterns match the static example grid above them. */
.preview-word-clues { margin: 10px auto 0; text-align: center; }
.preview-clue-title { margin-bottom: 5px; color: #44536c; font-size: .7rem; font-weight: 700; }
.preview-word-row { display: flex; justify-content: center; gap: 3px; margin-top: 3px; }
.preview-letter-box { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid #c8d2e3; border-radius: 4px; background: #f6f8fc; color: #44536c; font-size: .7rem; font-weight: 700; }
