:root {
  color-scheme: light;
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  color: #19324b;
  background: #f3f7fc;
  --surface: #fff;
  --line: #d9e4ef;
  --muted: #50667c;
  --accent: #116b5b;
  --tint: #e4f5ee;
  --hover: #edf4fc;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell, .header-inner { width: min(calc(100% - 48px), 1380px); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 64px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; gap: 9px; align-items: center; font-weight: 850; font-size: 28px; letter-spacing: -.065em; }
.brand-dot { color: var(--accent); margin-left: -8px; }
.brand-icon { width: 28px; height: 28px; display: inline-grid; place-items: center; background: #b8eed8; border-radius: 9px; }
.brand-icon::before { content: ''; width: 13px; height: 9px; border: 2px solid var(--accent); border-top-width: 3px; border-radius: 4px 4px 6px 6px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
nav a, .official-link { padding: 8px 11px; border-radius: 7px; font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; }
nav a:hover, nav .active { background: var(--hover); color: #19324b; }
.official-link { margin-left: auto; border: 1px solid var(--line); color: var(--accent); }
.official-link:hover { background: var(--tint); }
.play-layout { max-width: 1260px; margin-inline: auto; padding-top: 20px; }
.play-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 12px 34px #2a517515; }
.player-bar, .player-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 16px; }
.player-bar { min-height: 50px; }
.player-bar h1 { font-size: 19px; letter-spacing: -.035em; }
.player-bar h1 span { font-size: 15px; font-weight: 500; color: var(--muted); }
.player-actions { display: flex; gap: 12px; align-items: center; }
.player-actions a, .player-footer { color: var(--muted); font-size: 12px; }
.player-actions a:hover, .player-footer a:hover, .site-footer a:hover { color: var(--accent); }
.fullscreen { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.fullscreen:hover { background: var(--hover); }
.fullscreen-icon { width: 13px; height: 13px; background: linear-gradient(currentColor,currentColor) top left/5px 2px, linear-gradient(currentColor,currentColor) top left/2px 5px, linear-gradient(currentColor,currentColor) top right/5px 2px, linear-gradient(currentColor,currentColor) top right/2px 5px, linear-gradient(currentColor,currentColor) bottom left/5px 2px, linear-gradient(currentColor,currentColor) bottom left/2px 5px, linear-gradient(currentColor,currentColor) bottom right/5px 2px, linear-gradient(currentColor,currentColor) bottom right/2px 5px; background-repeat: no-repeat; }
#game { display: block; width: 100%; height: clamp(490px, calc(100dvh - 194px), 790px); border: 0; background: #e2effb; }
#game:fullscreen { width: 100%; height: 100%; }
.player-footer { min-height: 38px; border-top: 1px solid var(--line); }
.home-info { max-width: 1100px; margin: 56px auto 0; display: grid; gap: 42px; }
.info-module { scroll-margin-top: 24px; }
.info-module h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.045em; margin-bottom: 14px; }
.daily-page h1, .strategy h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.06em; }
.page-lede, .module-intro { max-width: 68ch; color: var(--muted); line-height: 1.65; margin-top: 14px; }
.intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: 24px; }
.play-steps, .mode-list { margin: 0; padding-inline-start: 22px; color: var(--muted); line-height: 1.65; }
.play-steps li + li, .mode-list li + li { margin-top: 8px; }
.play-steps li::marker, .mode-list li::marker { color: var(--accent); font-weight: 750; }
.play-steps strong, .mode-list strong { color: #19324b; }
.demo-feedback { color: var(--muted); font-size: 13px; }
.demo, .daily-callout, .prompt-card, .answer-toolbar { padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.demo h3, .daily-callout h3 { font-size: 19px; letter-spacing: -.025em; }
.prompt { margin-top: 11px; }
.demo-choices, .daily-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-choices { margin: 15px 0 12px; }
.demo-choices button, .button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; min-height: 38px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.demo-choices button:hover, .button:hover { background: var(--hover); }
.demo-choices button[aria-pressed="true"] { color: var(--accent); background: var(--tint); border-color: #9cd6c2; }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: #0d584b; }
.demo-feedback { min-height: 2.8em; line-height: 1.45; }
.daily-callout { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.daily-callout p { color: var(--muted); margin-top: 5px; line-height: 1.55; }
.daily-callout .button { flex-shrink: 0; }
.site-footer { margin-top: 55px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 15px; }
.daily-page { max-width: 1040px; min-height: 58vh; padding-top: 47px; }
.daily-page .daily-actions { margin-top: 18px; }
.daily-status { margin: 24px 0 12px; color: var(--muted); font-size: 14px; }
.sheet-note { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.archive-back { display: inline-block; color: var(--accent); font-size: 14px; font-weight: 650; margin-bottom: 15px; }
.archive-back:hover { text-decoration: underline; }
.date-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.date-filter label { font-size: 14px; font-weight: 650; }
.date-filter input, .date-filter select { min-height: 38px; max-width: 100%; padding: 6px 10px; border: 1px solid #9eafc2; border-radius: 7px; background: var(--surface); color: inherit; font: inherit; font-size: 14px; }
.archive-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 11px; padding: 0; list-style: none; margin-top: 24px; }
.archive-list a { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.archive-list a:hover { background: var(--tint); }
.archive-list a > span:first-child { font-size: 13px; color: var(--muted); }
.archive-list time { grid-row: 2; font-size: 19px; font-weight: 750; }
.archive-list a > span:last-child { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--accent); }
.answer-toolbar { padding: 16px; }
.toolbar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.toolbar-heading h2 { font-size: 16px; }
.daily-page [data-score="100"] { --score-background: #e4f5ee; }
.daily-page [data-score="85"] { --score-background: #f0e9fa; }
.daily-page [data-score="60"] { --score-background: #e8f2fd; }
.daily-page [data-score="30"] { --score-background: #fff0e2; }
.daily-page [data-score="15"] { --score-background: #fff6d9; }
.daily-page [data-score="10"] { --score-background: #edf1f5; }
.score-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.score-filters button { display: grid; align-content: center; justify-items: start; gap: 2px; min-height: 48px; padding: 7px 11px; background: var(--score-background, var(--surface)); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 650; }
.score-filters button span { color: var(--muted); font-size: 11px; font-weight: 500; }
.score-filters button:enabled:not([aria-pressed="true"]):hover { background: var(--score-background, var(--hover)); border-color: #9eafc2; }
.score-filters button[aria-pressed="true"] { color: var(--accent); background: var(--score-background, var(--tint)); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.score-filters button:disabled { cursor: default; opacity: .52; }
.daily-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.prompt-card { padding: 17px; }
.prompt-heading { display: flex; align-items: baseline; gap: 10px; font-size: 17px; line-height: 1.45; }
.prompt-number { display: inline-grid; flex: none; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--hover); color: var(--muted); font-size: 13px; }
.answer-list { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 12px 0 0; padding: 0 0 0 35px; }
.answer { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 3px 4px 3px 9px; min-height: 34px; border-radius: 8px; background: var(--score-background, #eff5fc); font-size: 14px; }
.answer-top { color: #104f43; font-weight: 700; }
.answer-word { border: 0; padding: 3px 0; background: transparent; text-align: left; overflow-wrap: anywhere; }
.answer-word:hover, .answer-word[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 3px; }
.copy-answer { position: relative; width: 26px; height: 26px; flex: 0 0 26px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
.copy-answer:hover { background: #dbe8f4; color: var(--accent); }
.copy-answer::before, .copy-answer::after { content: ''; position: absolute; width: 9px; height: 10px; border: 1.4px solid currentColor; border-radius: 2px; }
.copy-answer::before { top: 6px; left: 8px; }
.copy-answer::after { top: 9px; left: 11px; background: var(--score-background, #eff5fc); }
.copy-answer:hover::after { background: #dbe8f4; }
.copy-answer[data-copy-state="copied"] { color: var(--accent); }
.copy-answer[data-copy-state="copied"]::before { display: none; }
.copy-answer[data-copy-state="copied"]::after { top: 6px; left: 10px; width: 6px; height: 11px; border: solid currentColor; border-width: 0 2px 2px 0; border-radius: 0; background: transparent; transform: rotate(45deg); }
.meaning-panel { margin: 10px 0 0 35px; padding: 12px; border-left: 3px solid #94cbbb; border-radius: 0 7px 7px 0; background: var(--tint); font-size: 14px; line-height: 1.5; }
.meaning-panel p { margin: 3px 0; }
.meaning-panel a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.no-answer { color: var(--muted); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.source { color: var(--muted); margin-top: 15px; font-size: 13px; }
.source a { text-decoration: underline; }
.reading { max-width: 1100px; margin: 48px auto 0; }
.reading-grid, .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.strategy .reading-grid { margin-top: 24px; }
.reading-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(16px, 3vw, 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.reading-card h2 { font-size: 21px; letter-spacing: -.03em; }
.reading-card p { color: var(--muted); line-height: 1.6; }
.related-games .reading-grid { margin-top: 24px; }
.related-games .page-lede a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.related-games .reading-card .button { align-self: flex-start; margin-top: auto; }
.faq-grid article { border-top: 1px solid var(--line); padding-top: 13px; }
.faq-grid h3 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 7px; }
.faq-grid p { color: var(--muted); line-height: 1.65; }
.reading-card .source { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.reading-card .source a { color: var(--accent); text-underline-offset: 3px; }
.score-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.score-tiers div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.score-tiers dd { color: var(--accent); margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 17px 0; }
.home-tiers div { background: var(--surface); }
.category-table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.4; }
.category-table caption { color: var(--muted); text-align: left; margin-bottom: 6px; }
.category-table th, .category-table td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
.category-table tbody th { font-weight: 500; }
.category-table td, .category-table thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.study-note { font-size: 13px; }
.practice-page { max-width: 850px; min-height: auto; }
.practice-page + .site-footer { margin-top: 24px; padding-block: 12px; }
.practice-filters { align-items: end; gap: 10px 14px; }
.practice-filter-field { display: grid; gap: 5px; }
.practice-date-field { position: relative; min-width: 0; }
.practice-filter-label { font-size: 14px; font-weight: 650; }
.practice-calendar-toggle { justify-content: space-between; gap: 12px; min-width: 122px; border-color: #9eafc2; font-size: 14px; font-weight: 400; text-align: left; }
.practice-calendar-chevron { flex: none; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.practice-calendar-toggle[aria-expanded="true"] .practice-calendar-chevron { transform: translateY(2px) rotate(225deg); }
.practice-calendar { position: absolute; z-index: 2; top: calc(100% + 6px); left: 0; width: 304px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #19324b24; }
.practice-calendar-header, .practice-calendar-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.practice-calendar-header h2 { font-size: 16px; text-align: center; }
.practice-calendar-header button { width: 34px; min-height: 34px; padding: 0; font-size: 21px; line-height: 1; }
.practice-calendar button:disabled { cursor: default; }
.practice-calendar .button:disabled { opacity: .45; }
.practice-calendar-week, .practice-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.practice-calendar-week { margin: 12px 0 5px; color: var(--muted); font-size: 12px; }
.practice-calendar-days { row-gap: 2px; }
.practice-calendar-days button { min-height: 36px; padding: 0; border: 0; border-radius: 7px; background: transparent; font-size: 14px; }
.practice-calendar-days button:disabled { color: var(--muted); opacity: .45; }
.practice-calendar-days button:enabled:hover { background: var(--hover); }
.practice-calendar-days button[data-in-range] { border-radius: 0; background: var(--tint); }
.practice-calendar-days button[data-endpoint], .practice-calendar-days button[data-endpoint]:hover { border-radius: 7px; background: var(--accent); color: white; font-weight: 700; }
.practice-calendar-days button:focus-visible { outline-offset: -2px; }
.practice-calendar-days button[data-endpoint]:focus-visible { outline-color: white; }
.practice-calendar-help { margin: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.practice-calendar-actions .button { min-height: 34px; }
.practice-card { margin-top: 24px; padding: clamp(17px, 4vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.practice-date, .practice-note { color: var(--muted); font-size: 14px; }
.practice-card h2 { font-size: clamp(20px, 4vw, 27px); margin-top: 5px; line-height: 1.3; }
.practice-form { display: grid; gap: 8px; margin-top: 21px; }
.practice-form label { font-weight: 650; font-size: 14px; }
.practice-form input { min-width: 0; width: min(100%, 580px); padding: 10px 12px; border-radius: 7px; border: 1px solid #9eafc2; font: inherit; color: inherit; }
.practice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.practice-actions button:disabled { opacity: .6; cursor: wait; }
.practice-result { margin-top: 15px; padding: 10px 12px; border-radius: 7px; background: var(--hover); color: #334b64; font-weight: 650; overflow-wrap: anywhere; }
.practice-result[data-state="scored"] { background: var(--tint); color: var(--accent); }
.practice-note { margin-top: 15px; line-height: 1.6; }
@media (max-width: 760px) {
  .shell, .header-inner { width: calc(100% - 28px); }
  .header-inner { gap: 9px 15px; min-height: auto; padding-block: 10px; flex-wrap: wrap; }
  .header-inner nav { order: 3; width: 100%; }
  .official-link { font-size: 12px; }
  .play-layout { padding-top: 12px; }
  #game { height: max(510px, calc(100svh - 170px)); }
  .player-bar, .player-footer { padding-inline: 10px; }
  .player-actions { gap: 7px; }
  .player-bar h1 { font-size: 17px; }
  .player-bar h1 span { font-size: 13px; }
  .home-info { gap: 32px; margin-top: 37px; }
  .reading { margin-top: 36px; }
  .reading-grid, .intro-grid, .faq-grid { grid-template-columns: 1fr; }
  .home-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-callout { align-items: flex-start; flex-direction: column; }
  .daily-page { padding-top: 32px; }
  .answer-list { padding-left: 0; }
  .meaning-panel { margin-left: 0; }
}
@media (max-width: 540px) {
  .practice-filters { position: relative; }
  .practice-date-field { position: static; }
  .practice-calendar { width: min(304px, 100%); }
}
@media (max-width: 760px) and (orientation: portrait) {
  .play-layout { margin-inline: -7px; }
  .game-viewport { height: clamp(560px, calc(100svh - 165px), 600px); overflow: clip; }
  /* The embedded page can scroll when PlayDaily focuses the answer field. */
  #game:not(:fullscreen) { height: calc(100% + 104px); }
}
@media (max-width: 340px) {
  .player-actions a { display: none; }
}
