:root { color-scheme: dark; --daily-bg: #122c42; --daily-ink: #f8f2e4; --daily-muted: #b7c6cf; --daily-accent: #e0b46b; --daily-line: #426071; }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--daily-bg); }
body { margin: 0; color: var(--daily-ink); background: linear-gradient(125deg, #172f43, #102638); font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff8db; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 20px; z-index: 10; padding: 12px; background: #fff8ec; color: #122c42; opacity: 0; pointer-events: none; transform: translateY(-200%); }
.skip-link:focus-visible { opacity: 1; pointer-events: auto; transform: none; }
.daily-app { width: min(1100px, calc(100% - 48px)); margin: auto; }
.daily-topbar { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--daily-line); }
.daily-back { text-decoration: none; padding: 12px 0 12px 16px; font-weight: 700; font-size: .9rem; }
.daily-back span { color: var(--daily-accent); margin-left: 10px; }
.daily-heading { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; padding: 30px 0 25px; }
.daily-eyebrow { margin: 0 0 8px; font-size: .71rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--daily-accent); }
h1, h2, p { margin-top: 0; }
h1 { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 0; }
.daily-date { margin-bottom: 0; display: grid; gap: 6px; font-size: .9rem; text-align: right; }
.daily-date time { font-weight: 700; }
.daily-date span { color: var(--daily-muted); font-size: .78rem; }
.daily-workspace { display: grid; grid-template-columns: minmax(0, 640px) minmax(230px, 1fr); gap: 44px; align-items: start; }
.daily-play { min-width: 0; }
.daily-turn { display: flex; align-items: center; gap: 10px; }
.daily-turn h2 { font-size: 1rem; margin: 0; font-weight: 700; }
.daily-player-disc { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f26b57; color: #2d100b; font-size: .7rem; font-weight: 900; }
.daily-player-disc.yellow { background: #f6d05d; color: #3c2a07; }
.daily-instruction { font-size: .88rem; line-height: 1.45; color: var(--daily-muted); margin: 10px 0 15px; }
.daily-board-shell { background: #245395; border-radius: 14px; padding: 12px; box-shadow: 0 16px 32px #061c2b55; overflow: hidden; }
.daily-board-shell:fullscreen { width: min(100vw, calc(100vh * 7 / 6 - 72px)); height: fit-content; margin: auto; }
.daily-columns { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin-bottom: 4px; }
.daily-column { display: grid; place-items: center; height: 44px; margin: 0 5px; padding: 0; border: 1px solid #91b5e04d; border-radius: 7px; background: #1d477f; color: #e7eff7; font-size: .9rem; font-weight: 800; cursor: pointer; transition: background 130ms, transform 130ms; }
.daily-column:hover:not(:disabled), .daily-column.is-selected:not(:disabled) { background: #f7d47b; color: #182e42; transform: translateY(-2px); }
.daily-column:disabled { cursor: default; opacity: .55; }
.daily-column.is-chosen:disabled { background: #e0b46b; color: #142d41; opacity: 1; }
#puzzleCanvas { display: block; width: 100%; height: auto; aspect-ratio: 7 / 6; cursor: pointer; touch-action: manipulation; }
.daily-keyboard { color: var(--daily-muted); font-size: .74rem; line-height: 1.5; margin: 12px 0 0; }
.daily-side { padding-top: 25px; }
.daily-feedback { min-height: 132px; }
.daily-feedback h2 { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif; font-size: 1.8rem; line-height: 1.1; margin: 0 0 12px; letter-spacing: -.025em; }
.daily-feedback p:last-child { color: var(--daily-muted); line-height: 1.65; font-size: .9rem; }
.daily-stats { display: flex; gap: 32px; padding: 20px 0; margin: 20px 0 0; border-top: 1px solid var(--daily-line); border-bottom: 1px solid var(--daily-line); }
.daily-stats dt { color: var(--daily-muted); font-size: .75rem; }
.daily-stats dd { font-size: 1.45rem; margin: 8px 0 0; font-weight: 700; }
.daily-actions { display: grid; gap: 10px; margin-top: 20px; }
.daily-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 12px 18px; border-radius: 7px; border: 1px solid #6f8795; background: transparent; color: var(--daily-ink); cursor: pointer; font-size: .9rem; font-weight: 700; transition: background 130ms, transform 130ms; }
.daily-button:hover { background: #ffffff0f; transform: translateY(-1px); }
.daily-primary { background: #e0b46b; border-color: #e0b46b; color: #172b3a; }
.daily-primary:hover { background: #efc987; }
.daily-share-status { margin: 0; color: var(--daily-muted); line-height: 1.5; font-size: .8rem; }
.daily-return-note { color: var(--daily-muted); font-size: .8rem; line-height: 1.65; margin: 24px 0 0; }
.daily-new-day { padding: 16px 0 0; color: #f6d58e; font-size: .9rem; }
.daily-new-day p { margin-bottom: 12px; }
.daily-next { border-top: 1px solid var(--daily-line); border-bottom: 1px solid var(--daily-line); margin-top: 32px; padding: 25px 0; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); align-items: center; gap: 22px; }
.daily-next h2 { font-size: 1rem; line-height: 1.35; margin: 0; }
.daily-next .daily-eyebrow { font-size: .65rem; }
.daily-next a { font-size: .84rem; font-weight: 700; text-decoration: none; padding: 14px 0; }
.daily-next a span { color: var(--daily-accent); padding-left: 8px; display: inline-block; transition: transform 130ms; }
.daily-next a:hover span { transform: translateX(4px); }
.daily-help { font-size: .85rem; color: var(--daily-muted); padding: 20px 0; line-height: 1.65; }
.daily-help summary { cursor: pointer; padding: 5px 0; color: var(--daily-ink); }
.daily-help p { max-width: 80ch; margin-top: 14px; }
.daily-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 26px; color: var(--daily-muted); font-size: .75rem; }
.daily-noscript { padding: 20px; color: #172b3a; background: #f6d58e; }
@media (min-width: 901px) { .daily-board-shell { max-width: 570px; } }
@media (max-width: 900px) { .daily-workspace { gap: 25px; grid-template-columns: minmax(0, 1.4fr) minmax(210px, 1fr); } .daily-stats { gap: 22px; } .daily-next { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .daily-app { width: calc(100% - 28px); }
  .daily-topbar { min-height: 76px; gap: 8px; }
  .daily-brand-copy span { display: none !important; }
  .daily-brand-mark { width: 36px !important; height: 36px !important; border-radius: 11px !important; }
  .daily-back { font-size: .8rem; padding-left: 5px; }
  .daily-heading { padding: 22px 0 20px; display: block; }
  h1 { font-size: 2rem; }
  .daily-heading .daily-eyebrow { font-size: .65rem; margin-bottom: 7px; }
  .daily-date { display: flex; justify-content: space-between; margin-top: 14px; text-align: left; font-size: .75rem; gap: 8px; }
  .daily-date span { font-size: .7rem; }
  .daily-workspace { grid-template-columns: 1fr; gap: 20px; }
  .daily-instruction { margin-top: 8px; margin-bottom: 10px; font-size: .8rem; }
  .daily-board-shell { padding: 7px; border-radius: 10px; }
  .daily-column { min-height: 38px; margin: 0 3px; height: 38px; font-size: .8rem; }
  .daily-side { padding-top: 0; }
  .daily-feedback { min-height: 0; }
  .daily-feedback h2 { font-size: 1.5rem; margin-bottom: 8px; }
  .daily-feedback p:last-child { margin-bottom: 0; font-size: .85rem; line-height: 1.5; }
  .daily-stats { margin-top: 16px; padding: 14px 0; gap: 40px; }
  .daily-stats dd { font-size: 1.2rem; }
  .daily-actions { margin-top: 14px; }
  .daily-return-note { margin-top: 12px; }
  .daily-next { margin-top: 20px; padding: 20px 0; gap: 6px 16px; }
  .daily-next > div { grid-column: 1 / -1; margin-bottom: 8px; }
  .daily-next a { font-size: .8rem; }
  .daily-next h2 { font-size: 1rem; }
  .daily-footer { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
