/* Today is home; all open-ended modes live under Free play. */
.daily-view { min-width: 0; }
.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; }
.daily-view button, .daily-view select { font-family: inherit; }
.daily-view button { cursor: pointer; }
.daily-view button:disabled { cursor: default; }
.daily-view h1, .daily-view h2, .daily-view h3, .daily-view p { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .daily-view *, .daily-view *::before, .daily-view *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Keep the game chrome quiet; the lesson owns its progress and aligned gear. */
.wrap > header { justify-content: flex-end; }
.wrap > header > .actions { margin-left: auto; order: 2; }
.wrap > header > .app-navigation { order: 1; flex: 1; }
body[data-current-mode="lesson"] .wrap { max-width: none; padding: 20px; }
body[data-current-mode="lesson"] .wrap > header,
body[data-current-mode="lesson"] .workspace-bar { display: none; }
.settings-preferences { margin: 12px 0 20px; }
.settings-preference { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.settings-preference .btn { min-width: 48px; min-height: 44px; }
.preference-toggle[aria-pressed="true"] { color: var(--match); }
#lessonSettings { display: grid; gap: 10px; margin-block: 20px; }
#lessonSettings[hidden], #freePracticeSettings[hidden] { display: none; }
#lessonSettings .btn { width: 100%; min-height: 48px; }
.wrap > header { flex-wrap: nowrap; gap: 8px; min-height: 52px; }
.app-navigation { display: flex; align-items: center; min-width: 0; }
#homeLabel { display: block; width: clamp(158px, 24vw, 210px); max-width: 100%; line-height: 0; }
#homeLabel svg { display: block; width: 100%; height: auto; overflow: hidden; }
.navigation-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; margin-left: -8px; padding: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.navigation-back:hover { color: var(--paper); }
.navigation-back svg { width: 18px; height: 18px; }
.navigation-back[hidden], #homeLabel[hidden] { display: none; }

.piano-credit { margin: 22px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.piano-credit a { color: inherit; text-underline-offset: 3px; }

/* Keep the home menu open, without horizontal divider rules. */
body[data-current-mode="today"] .wrap > header { border-bottom: 0; }
#todayView .daily-free-entry { border-bottom: 0; }
