/* Classic daily experience: the board and controls stay in normal document flow. */
:root { --bg: #f3f5f7; --line: #dce2e8; }
.brand { font-size: 22px; letter-spacing: 0; }
.hero-title { font-size: 38px; letter-spacing: 0; }
.hero-slogan { font-size: 22px; letter-spacing: 0; font-weight: 500; }
.lede { font-size: 16px; }
.hero-copy { margin-block: 20px; }
.content-section { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.app-card { border-radius: 8px; box-shadow: none; }
.site-footer nav { flex-wrap: wrap; justify-content: center; }
.site-footer nav a { white-space: nowrap; }
.classic-game { border-radius: 8px; padding: 12px; box-shadow: 0 5px 22px #1f355008; }
.classic-game:focus { outline: none; }
.classic-game[data-keyboard="true"]:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.classic-game [hidden] { display: none !important; }
#ds-classic-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.classic-game button:disabled { cursor: default; opacity: 0.5; }
.classic-storage-conflict { margin: 4px 0 8px; padding: 8px; border-top: 1px solid #dae2eb; color: #384a61; font-size: 13px; }
.classic-storage-conflict p { margin: 0 0 8px; }
.classic-storage-conflict button { width: 100%; }
.classic-dateline { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #647181; padding: 2px 3px 10px; }
.classic-dateline span:last-child { font-size: 10px; font-weight: 700; }
.classic-game .game-status { color: #647181; font-size: 13px; padding: 0 3px 0; }
.classic-game .game-status strong { color: #243345; font-size: 17px; margin-right: auto; }
#ds-timer { font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.classic-canvas { width: 100%; aspect-ratio: 430 / 435; touch-action: manipulation; }
.classic-canvas canvas { display: block; margin: 0 !important; }
.classic-loading { min-height: 360px; display: grid; align-content: center; text-align: center; color: #647181; }
.classic-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 3px 0 8px; }
.classic-game button { cursor: pointer; border: 1px solid #dae2eb; border-radius: 6px; background: #fff; color: #384a61; min-height: 44px; font-size: 13px; touch-action: manipulation; }
.classic-game button:hover { background: #edf3fc; }
.classic-game button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.classic-tools button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-color: transparent; min-height: 53px; }
.classic-tools button span { font-size: 22px; line-height: 24px; }
.classic-tools button[aria-pressed="true"] { color: #1855be; background: #e4edff; border-color: #b3ccf5; }
.classic-tools button[aria-disabled="true"] { color: #8994a3; }
.classic-number-pad { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.classic-number-pad button { background: #edf3fc; color: #245fbe; border-color: #d7e4f5; min-height: 47px; font-size: 25px; font-weight: 500; }
.classic-number-pad button:active { background: #cadcfa; }
.classic-play-footer { display: flex; gap: 8px; align-items: center; min-height: 35px; color: #697584; font-size: 12px; }
.classic-play-footer a { margin-left: auto; }
.classic-result { margin-top: 4px; border-top: 3px solid #429c7a; padding: 12px 4px 0; animation: classic-arrive 280ms ease-out; }
.classic-result-top { display: flex; justify-content: space-between; font-size: 12px; color: #637282; }
.classic-result-top span { color: #233b52; font-weight: 750; }
.classic-result-heading { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.classic-result h2 { margin: 0; font-size: 21px; line-height: 1.15; letter-spacing: 0; }
.classic-result-heading p { margin: 5px 0 0; color: #647181; font-size: 12px; }
.classic-complete-grid { flex: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; aspect-ratio: 1; }
.classic-complete-grid i { background: #a8dac5; border-radius: 2px; }
.classic-complete-grid i:nth-child(3n) { background: #63b595; }
.classic-result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 12px; border-block: 1px solid #e4e9ed; padding: 9px 0; }
.classic-result-metrics div + div { border-left: 1px solid #e4e9ed; padding-left: 16px; }
.classic-result-metrics dt { font-size: 10px; color: #637282; }
.classic-result-metrics dd { margin: 3px 0 0; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.classic-result-actions { display: grid; grid-template-columns: 1.8fr 1fr; gap: 8px; }
.classic-game .classic-primary { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 650; }
.classic-game .classic-primary:hover { background: #1e50c4; }
.classic-next { margin-top: 10px; font-size: 11px; color: #647181; text-align: center; }
.classic-next button { display: block; width: 100%; margin-top: 6px; }
.classic-result-domain { text-align: center; font-size: 10px; color: #758292; margin: 8px 0 2px; }
.classic-feedback:empty { display: none; }
.classic-feedback, .classic-save-warning { font-size: 12px; color: #5d6875; }
.classic-save-warning { color: #985500; }
#ds-share-text { width: 100%; font: inherit; font-size: 13px; }
@keyframes classic-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  /* Mobile skips hero to keep DaySudoku game-first on real phone browsers. */
  .home-hero-copy { display: none !important; }
  .hero-play { margin-top: 0; padding-top: 0; }
  .brand { font-size: 20px; }
  .classic-game { padding: 9px; margin-top: 8px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .classic-game .game-status strong { font-size: 16px; }
  .classic-result h2 { font-size: 19px; }
  .classic-number-pad { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) { .classic-result { animation: none; } }

/* Reading stays below or beside play; nothing is positioned over the board. */
.play-companion { min-width: 0; display: grid; gap: 24px; }
.play-companion .app-card { position: static; width: 100%; padding: 18px; }
.play-companion .app-card h2 { font-size: 20px; line-height: 1.25; }
.play-companion .app-card p { font-size: 14px; line-height: 1.5; }
.play-companion .app-button { display: inline-flex; padding: 10px 12px; border-radius: 6px; background: #e8f1ed; color: #246747; font-size: 14px; }
.quick-help { padding: 8px 4px 0; }
.quick-help h2 { font-size: 22px; line-height: 1.2; margin: 8px 0; }
.quick-help p { color: #657080; font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.quick-help > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; padding: 14px 0; border-top: 1px solid #dce2e8; font-size: 15px; font-weight: 650; }
.quick-help small { display: block; color: #657080; font-size: 12px; font-weight: 400; margin-top: 4px; }
.quick-help > a:hover { color: #235bbe; }
.learn-section, .daily-basics, .home-questions { width: min(94vw, 980px); margin: 48px auto; }
.learn-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.guide-meta { color: #526778; font-size: 11px; font-weight: 650; letter-spacing: 0; }
.learn-heading h2 { font-size: 28px; line-height: 1.25; letter-spacing: 0; margin: 7px 0 0; }
.learn-heading > a { font-size: 14px; text-underline-offset: 4px; }
.learn-heading p { color: #657080; margin: 0; font-size: 15px; }
.guide-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-link { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid #cbd5df; color: #243345; text-decoration: none; padding-bottom: 18px; }
.guide-link img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; }
.guide-link-copy { padding-top: 14px; }
.guide-link h3 { font-size: 21px; line-height: 1.2; margin: 7px 0 9px; letter-spacing: 0; }
.guide-link p { font-size: 14px; line-height: 1.55; color: #657080; margin: 0 0 15px; }
.guide-link-action { font-size: 13px; font-weight: 650; color: #246747; }
.guide-link:hover h3 { color: #245fbe; text-decoration: underline; text-underline-offset: 4px; }
.guide-link:focus-visible, .reading-page a:focus-visible, .quick-help a:focus-visible, .guide-question summary:focus-visible, .lesson-answer summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; }
.daily-basics { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; border-block: 1px solid #dce2e8; padding-block: 30px; align-items: center; }
.daily-basics h2 { font-size: 25px; line-height: 1.2; margin: 10px 0; }
.daily-basics p { font-size: 16px; line-height: 1.65; color: #546270; margin: 12px 0; }
.daily-basics a { text-underline-offset: 4px; color: #246747; font-weight: 600; }
.guide-question, .lesson-answer { border-bottom: 1px solid #dce2e8; }
.guide-question summary, .lesson-answer summary { cursor: pointer; padding: 18px 2px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.guide-question p, .guide-question > div { font-size: 15px; line-height: 1.7; color: #546270; margin: 0 0 18px; max-width: 720px; }
.guide-question > div p { margin: 0; }
.guide-question[open] summary, .lesson-answer[open] summary { color: #245fbe; }
.reading-page { width: min(92vw, 720px); margin: 26px auto 48px; }
.reading-page a { text-underline-offset: 4px; }
.reading-breadcrumb { display: flex; gap: 10px; font-size: 13px; color: #657080; margin-bottom: 26px; }
.reading-heading h1 { font-size: 38px; line-height: 1.15; letter-spacing: 0; overflow-wrap: anywhere; margin: 10px 0 14px; }
.reading-dek { font-size: 18px; line-height: 1.6; color: #546270; margin: 0 0 16px; }
.reading-play-link { display: inline-block; color: #246747; font-size: 15px; font-weight: 650; padding: 8px 0; }
.reading-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 8px; margin: 24px 0; }
.reading-toc { border-block: 1px solid #dce2e8; padding: 18px 0; font-size: 14px; line-height: 1.5; }
.reading-toc ul { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.reading-toc li { break-inside: avoid; padding: 4px 0; }
.reading-content { font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.reading-content h2 { font-size: 26px; line-height: 1.25; letter-spacing: 0; margin: 38px 0 14px; scroll-margin-top: 80px; }
.reading-content p { margin: 14px 0; }
.reading-content li { margin: 8px 0; }
.reading-content > p:last-child { font-size: 14px; color: #657080; }
.lesson-example { margin: 24px 0; padding: 20px; border: 1px solid #d8e2e8; border-radius: 8px; background: #fff; }
.lesson-example figcaption { font-size: 16px; line-height: 1.4; font-weight: 650; margin-bottom: 18px; }
.lesson-unit { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); list-style: none; border: 2px solid #384a61; padding: 0; margin: 0; }
.lesson-unit li { display: grid; place-items: center; aspect-ratio: 1; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; margin: 0; border-right: 1px solid #d8e2e8; }
.lesson-unit li:nth-child(3n) { border-right: 2px solid #384a61; }
.lesson-unit li:last-child { border-right: 0; }
.lesson-blank { background: #deefe8; color: #176248; }
.lesson-candidates { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.lesson-candidates caption { text-align: left; font-size: 14px; color: #657080; padding-bottom: 14px; }
.lesson-candidates td, .lesson-candidates th { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e2e8ed; }
.lesson-candidates th { font-weight: 500; }
.lesson-candidates thead { font-size: 12px; color: #657080; }
.lesson-candidates td { font-weight: 650; white-space: nowrap; color: #245fbe; }
.lesson-answer { border: 0; margin-top: 4px; }
.lesson-answer summary { padding: 16px 0 0; font-size: 14px; color: #246747; }
.lesson-answer p { font-size: 15px; line-height: 1.65; margin: 12px 0 0; }
.reading-end { border-top: 1px solid #dce2e8; margin-top: 32px; padding-top: 22px; }
.reading-end h2 { font-size: 25px; margin: 0 0 10px; }
.page-content { line-height: 1.75; }
.page-content h1 { font-size: 32px; line-height: 1.2; }
.page-content h2 { font-size: 24px; margin-top: 28px; }
.learn-section, .daily-basics { scroll-margin-top: 76px; }
@media (max-width: 840px) {
  .play-companion { width: min(94vw, 430px); margin-inline: auto; gap: 16px; }
  .quick-help { padding: 12px 4px 0; }
  .quick-help h2 { font-size: 21px; }
  .quick-help > a { padding: 12px 0; }
  .learn-section, .daily-basics, .home-questions { width: min(92vw, 640px); margin-block: 32px; }
  .learn-heading { align-items: start; margin-bottom: 20px; }
  .learn-heading h2 { font-size: 25px; }
  .guide-links { grid-template-columns: 1fr; gap: 20px; }
  .guide-link { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; align-items: start; }
  .guide-link img { margin-top: 4px; }
  .guide-link-copy { padding-top: 0; }
  .guide-link h3 { font-size: 19px; }
  .guide-link p { font-size: 13px; margin-bottom: 8px; }
  .guide-meta { font-size: 10px; }
  .daily-basics { grid-template-columns: 1fr; gap: 0; padding-block: 24px; }
  .reading-heading h1 { font-size: 30px; }
  .reading-dek { font-size: 17px; }
  .reading-toc ul { columns: 1; }
  .reading-content { font-size: 16px; }
  .reading-content h2 { font-size: 24px; }
  .lesson-example { padding: 14px; }
  .lesson-unit li { font-size: 20px; }
  .lesson-candidates { font-size: 13px; }
}
@media (max-width: 350px) {
  .guide-link { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .lesson-example { padding: 10px; }
  .lesson-unit li { font-size: 18px; }
}
