/* Only the decorative Today strip. No learning, profile or navigation styles. */
.today-level-strip { margin: 24px 0; min-width: 0; }
.today-level-strip + .learning-stats { border-top: 0; margin-top: 20px; }
.today-level-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; touch-action: pan-x pan-y pinch-zoom; scrollbar-width: none; cursor: grab; border-radius: 12px; }
.today-level-viewport::-webkit-scrollbar { display: none; }
.today-level-viewport:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.today-level-viewport[data-dragging="true"] { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.today-level-track { display: flex; gap: var(--level-art-gap, 16px); width: max-content; padding: 5px var(--level-art-gutter, 0px) 12px; }
.today-level-slide { flex: 0 0 var(--level-art-width, 220px); width: var(--level-art-width, 220px); margin: 0; scroll-snap-align: center; }
.today-level-image-frame { display: block; width: 100%; padding: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 14px; background: #f1ebe3; box-shadow: 0 5px 0 var(--ink); cursor: zoom-in; }
.today-level-image-frame:hover { background: #f1ebe3; }
.today-level-image-frame:active { transform: none; box-shadow: 0 5px 0 var(--ink); }
.today-level-image-frame img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.today-level-image-frame img[data-level-change="true"] { transition: filter 400ms ease; }
.today-level-slide figcaption { margin-top: 14px; color: var(--ink); text-align: center; font-size: 14px; font-weight: 500; line-height: 1.4; }
.today-level-strip .today-level-caption, .today-level-viewer .today-level-caption { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.today-level-strip .today-level-caption { min-height: 44px; }
.today-level-strip .today-level-lock, .today-level-viewer .today-level-lock { display: block; width: 18px; height: 18px; flex: 0 0 18px; color: inherit; }
.today-level-strip .today-level-caption:not([data-upcoming="true"]) .today-level-lock, .today-level-viewer .today-level-caption:not([data-upcoming="true"]) .today-level-lock { display: none; }
.today-level-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.today-level-controls button { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; box-shadow: none; background: transparent; color: var(--ink); }
.today-level-controls button:hover:not(:disabled) { background: var(--surface); }
.today-level-controls button:disabled { opacity: .35; }
.today-level-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) {
  .today-level-strip { margin: 20px 0; }
}
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .today-level-controls { display: none; }
}
.today-level-viewer { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; padding: 0; margin: 0; border: 0; border-radius: 0; background: #292825; color: #fffaf2; overflow: hidden; }
.today-level-viewer::backdrop { background: rgba(22, 21, 19, .88); }
.today-level-viewer-viewport { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; touch-action: pan-x pinch-zoom; scrollbar-width: none; }
.today-level-viewer-viewport::-webkit-scrollbar { display: none; }
.today-level-viewer-viewport[data-dragging="true"] { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.today-level-viewer-slide { box-sizing: border-box; flex: 0 0 100%; width: 100%; height: 100%; margin: 0; padding: max(64px, env(safe-area-inset-top)) 64px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; scroll-snap-align: center; }
.today-level-viewer-slide img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); object-fit: contain; flex: 0 1 auto; min-height: 0; user-select: none; -webkit-user-drag: none; }
.today-level-viewer-slide figcaption { flex: 0 0 auto; margin: 0; color: #fffaf2; font-size: 20px; line-height: 1.4; font-weight: 500; text-align: center; }
.today-level-viewer-control { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid #d9d3ca; border-radius: 50%; background: #fffcf7; color: #1c1c1a; box-shadow: none; }
.today-level-viewer-control:hover { background: #f4efe6; }
#today-level-viewer-close { top: max(12px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
#today-level-viewer-previous { left: 12px; top: calc(50% - 22px); }
#today-level-viewer-next { right: 12px; top: calc(50% - 22px); }
.today-level-viewer-control:disabled { opacity: .3; }
@media (max-width: 767px) {
  .today-level-viewer-slide { padding-left: 16px; padding-right: 16px; }
  #today-level-viewer-previous, #today-level-viewer-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .today-level-image-frame img[data-level-change="true"] { transition: none; }
  .today-level-viewport { scroll-behavior: auto; }
}
