/* ═══════════════════════════════════════════════════════════════════
   ZEITEN-SPRINT v0.20.0 — Immersive UX
   Timeline + Fullscreen Modals + Toki Welcome + Transitions
   ═══════════════════════════════════════════════════════════════════ */

/* ── WELCOME SCREEN ─────────────────────────────────────────────── */

.zs-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 32px;
  animation: zsFadeIn 0.6s ease;
}

.zs-welcome-toki {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
  animation: zsFloat 3s ease-in-out infinite;
}

@keyframes zsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.zs-welcome-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.zs-welcome-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  max-width: 320px;
  margin-bottom: 24px;
}

.zs-welcome-start {
  padding: 15px 32px;
  background: var(--accent);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.zs-welcome-start:active { box-shadow: none; transform: translate(1px, 1px); }

/* ── TIMELINE ───────────────────────────────────────────────────── */

.zs-timeline {
  padding: 0 20px 20px;
}

.zs-timeline-week {
  margin-bottom: 8px;
}

.zs-timeline-week-label {
  font-size: 10px; font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mid);
  padding: 12px 0 8px;
}

.zs-timeline-days {
  position: relative;
  padding-left: 28px;
}

/* Vertical connector line */
.zs-timeline-days::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
  border-radius: var(--r-xs);
}

.zs-tl-day {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.zs-tl-day.locked {
  opacity: 0.4;
  cursor: default;
}

/* Timeline node/dot */
.zs-tl-marker {
  position: absolute;
  left: -28px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--mid);
  z-index: 1;
  transition: all 0.3s ease;
}

.zs-tl-day.active .zs-tl-marker {
  background: var(--accent);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(215,154,43,.2), var(--shadow);
}

.zs-tl-day.passed .zs-tl-marker {
  background: var(--green);
  border-color: var(--green);
  color: var(--surface);
}

.zs-tl-day.passed .zs-tl-marker::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -2px;
}

/* Hide number text when passed (checkmark shows instead) */
.zs-tl-day.passed .zs-tl-marker-num {
  display: none;
}

.zs-tl-info {
  flex: 1;
  min-width: 0;
}

.zs-tl-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.zs-tl-day.active .zs-tl-title {
  color: var(--accent);
}

.zs-tl-subtitle {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}

.zs-tl-day.pause {
  opacity: 0.5;
}

.zs-tl-day.pause .zs-tl-marker {
  background: var(--bg);
  border-style: dashed;
}

/* ── DAY CONTENT (expanded) ─────────────────────────────────────── */

.zs-back-to-timeline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 18px;
  margin: 0 0 6px;
}

.zs-back-to-timeline:active { box-shadow: none; transform: translate(1px, 1px); }

.zs-day-content {
  padding: 0 20px 20px;
  animation: zsSlideDown 0.3s ease;
}

@keyframes zsSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.zs-day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.zs-day-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  border: var(--bw) solid var(--border);
  box-shadow: var(--shadow);
}

.zs-day-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.zs-day-goal {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  margin-top: 3px;
  line-height: 1.5;
}

/* Rule & Examples: 0.30.4 auf die Schiefertafel umgezogen (slate.css).
   Die alten zs-rule- und zs-examples-Styles sind entfernt, das Markup
   existiert nicht mehr.
   0.36.3: Hier stand ein Sternchen-Slash mitten im Text, das den
   Kommentar vorzeitig beendet hat. Der Parser las den Rest als Selektor,
   suchte die naechste Klammer — und hat dabei den kompletten
   .zs-cta-btn-Block verschluckt. Keine Sternchen-Slash-Folgen in
   Kommentartext. */

/* ── STEPS (Übung 1 → 2 → 3 → Test) ────────────────────────────── */

.zs-cta-btn {
  width: 100%;
  padding: 14px;
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  margin: 12px 0;
}

.zs-cta-btn:active { box-shadow: none; transform: translate(1px, 1px); }

.zs-cta-btn.zs-cta-primary {
  box-shadow: var(--shadow-accent);
  background: var(--accent);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-accent);
}

.zs-reveal {
  animation: zsSlideDown 0.3s ease;
}

.zs-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.zs-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.zs-step:active {
  transform: scale(0.98);
}

.zs-step-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zs-step-icon svg {
  width: 16px;
  height: 16px;
}

.zs-step-info {
  flex: 1;
}

.zs-step-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.zs-step-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .03em;
  color: var(--dim);
  margin-top: 2px;
}
.zs-step-img { width: 28px; height: 28px; object-fit: contain; display: block; }

.zs-step-arrow {
  color: var(--mid);
  font-size: 14px;
  flex-shrink: 0;
}

.zs-step.completed {
  border-color: var(--green); box-shadow: var(--shadow-green);
  background: var(--green-d); border: var(--bw) solid var(--green); box-shadow: var(--shadow-green);
}

.zs-step.completed .zs-step-icon {
  background: var(--green);
}

.zs-step.completed .zs-step-icon svg {
  color: var(--surface);
}

.zs-step.locked {
  opacity: 0.4;
  cursor: default;
}

/* ── FULLSCREEN MODAL ───────────────────────────────────────────── */

.zs-fs-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg); background-image: var(--bg-pattern); background-size: var(--bg-pattern-size);
  z-index: 999999;
  display: none;
  flex-direction: column;
  animation: zsFadeIn 0.25s ease;
}

.zs-fs-modal.open {
  display: flex;
}

@keyframes zsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.zs-fs-header {
  /* 0.27.7: Optik kommt von der Vokabel-Session-Leiste (ex-nav-new) */
  padding: 14px 16px 6px;
  background: transparent;
  border-bottom: none;
  flex-shrink: 0;
}

.zs-fs-back {
  background: none;
  border: var(--bw) solid var(--border);
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: var(--r);
}

.zs-fs-back:active {
  background: var(--bg);
}

.zs-fs-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--dim);
}

.zs-fs-progress-bar {
  width: 60px;
  height: 4px;
  background: var(--border);
  border-radius: var(--r-xs);
  overflow: hidden;
}

.zs-fs-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-xs);
  transition: width 0.3s ease;
}

.zs-fs-counter {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
}

.zs-fs-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

/* ── EXERCISE CARD (inside fullscreen) ──────────────────────────── */

.zs-ex-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  animation: zsSlideIn 0.3s ease;
}

@keyframes zsSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 0.27.6: Frage-Card im Vokabel-Tippen-Stil */
.zs-ex-qcard {
  background: var(--surface);
  border: 1.5px solid rgba(215, 154, 43, .35);
  border-radius: var(--r-l);
  padding: 22px 18px 18px;
  text-align: center;
}
.zs-ex-type-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 5px 22px;
  margin-bottom: 14px;
}

.zs-ex-prompt {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.zs-ex-hint {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--mid);
  font-style: italic;
  margin-bottom: 6px;
}
.zs-ex-sound { display: flex; justify-content: center; margin-top: 8px; }

/* Ausgefüllter Satz nach Prüfung */
.zs-ex-filled {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--r);
  border: var(--bw) solid var(--border);
}

.zs-fill-correct {
  color: var(--green);
  font-weight: 700;
  border-bottom: 2px solid var(--green);
  padding: 0 2px;
}

.zs-fill-wrong {
  color: var(--red);
  font-weight: 700;
  text-decoration: line-through;
  padding: 0 2px;
}

.zs-correction {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  background: var(--green-d); border: var(--bw) solid var(--green); box-shadow: var(--shadow-green);
  border-radius: var(--r);
  margin-bottom: 12px;
}

.zs-correction-label {
  font-size: 12px;
  color: var(--mid);
  font-weight: 700;
}

.zs-explanation {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  padding: 12px 16px;
  background: var(--accent-d2);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  text-align: left;
  margin-top: 4px;
}

.zs-ex-input {
  width: 100%;
  padding: 15px 16px;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: .04em;
  text-align: center;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s;
  outline: none;
}

.zs-ex-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-d);
}

.zs-ex-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zs-ex-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  color: var(--text);
}

.zs-ex-option:active {
  transform: scale(0.98);
}

.zs-ex-option.selected {
  border-color: var(--accent);
  background: var(--accent-d2);
}

.zs-ex-option input[type="radio"] {
  display: none;
}

.zs-ex-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.zs-ex-option.selected .zs-ex-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.zs-ex-option.selected .zs-ex-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
}

/* Bottom action area */
.zs-fs-action {
  padding: 2px 0 16px;
  border-top: none;
  background: transparent;
  flex-shrink: 0;
}

.zs-btn-check {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  box-shadow: var(--shadow);
  font-family: var(--sans);
}

.zs-btn-check:active {
  transform: scale(0.98);
}

.zs-btn-check:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ── FEEDBACK (correct/incorrect) ───────────────────────────────── */

.zs-feedback { display: none !important; }

@keyframes zsSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.zs-feedback.correct { background: transparent; }

.zs-feedback.incorrect { background: transparent; }

.zs-feedback-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.zs-feedback.correct .zs-feedback-title { color: var(--green); }
.zs-feedback.incorrect .zs-feedback-title { color: var(--red); }

.zs-feedback-detail {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.4;
  margin-bottom: 12px;
}

.zs-btn-next {
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  background: var(--accent);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.zs-btn-next:active { box-shadow: none; transform: translate(1px, 1px); }

/* ── PHASE COMPLETE (inside fullscreen) ─────────────────────────── */

.zs-complete-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  animation: zsFadeIn 0.4s ease;
}

.zs-complete-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
}

/* 0.42: Der Abschluss-Screen lief in der Systemschrift, waehrend der
   Rest der App auf den Tokens sitzt. Jetzt dieselbe Sprache wie die
   Ergebnis-Screens: Display-Schrift, 800, leicht enger gesetzt. */
.zs-complete-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}

.zs-complete-text {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--mid);
  max-width: 300px;
  line-height: 1.5;
  margin-bottom: 26px;
}

.zs-btn-continue {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: var(--shadow);
  font-family: var(--sans);
}

.zs-btn-continue:active {
  transform: scale(0.97);
}

/* ── TOKI DIALOG (inside fullscreen) ────────────────────────────── */

.zs-toki-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.zs-toki-avatar {
  width: 80px;
  height: auto;
  margin: 0 auto 16px;
}

.zs-toki-bubble {
  padding: 16px;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  border-top-left-radius: 4px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: zsFadeIn 0.4s ease;
}

.zs-toki-input-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.zs-toki-input {
  width: 100%;
  padding: 14px 16px;
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  font-family: inherit;
  resize: none;
  min-height: 60px;
  box-sizing: border-box;
}

.zs-toki-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 2px 2px 0 rgba(215,154,43,.1);
}

.zs-toki-error-card {
  padding: 12px;
  background: var(--red-d);
  
  border-radius: var(--r);
  margin-bottom: 12px;
  font-size: 12px;
}

.zs-toki-error-label {
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.zs-toki-error-detail {
  color: var(--mid);
}

/* ── ERROR ANALYSIS SCREEN ──────────────────────────────────────── */

.zs-errors-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.zs-errors-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.zs-errors-sub {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 16px;
}

.zs-errors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.zs-error-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  
  border-radius: var(--r);
}

.zs-error-num {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  min-width: 20px;
}

.zs-error-prompt {
  font-size: 12px;
  color: var(--mid);
  font-style: italic;
}

.zs-error-yours {
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
}

.zs-error-correct {
  font-size: 11px;
  color: var(--dim);
}

/* ── MINI-TEST (inside fullscreen) ──────────────────────────────── */

.zs-test-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.zs-test-item-form {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 2px solid var(--border);
}

.zs-test-item-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  min-width: 24px;
}

.zs-test-item-input {
  flex: 1;
}

.zs-test-prompt {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.zs-test-answer-input {
  width: 100%;
  padding: 14px 16px;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 16px;
  text-align: center;
  color: var(--text);
  background: var(--surface);
}

.zs-test-answer-input:focus { outline: none; border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }

.zs-test-hint {
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
}

.zs-test-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zs-test-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.zs-test-option input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.zs-test-option:active { box-shadow: none; transform: translate(1px, 1px); }

.zs-test-result-content {
  text-align: center;
  padding: 20px 0;
  animation: zsFadeIn 0.3s ease;
}

.zs-result-badge {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.zs-test-result-passed .zs-result-badge { color: var(--green); }
.zs-test-result-failed .zs-result-badge { color: var(--red); }

.zs-result-score {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 4px;
}

.zs-result-text {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 16px;
}

.zs-review-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r);
  text-align: left;
  font-size: 12px;
  margin-bottom: 4px;
}

.zs-review-item.correct { background: var(--green-d); border: var(--bw) solid var(--green); box-shadow: var(--shadow-green); }
.zs-review-item.incorrect { background: var(--red-d); border: 2px solid var(--red); }

/* ── LOADING SPINNER ────────────────────────────────────────────── */

.zs-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
}

.zs-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: zsSpin 0.8s linear infinite;
}

@keyframes zsSpin {
  to { transform: rotate(360deg); }
}

.zs-loading-text {
  font-size: 13px;
  color: var(--mid);
}

/* ── UTILITY ────────────────────────────────────────────────────── */

.hidden { display: none !important; }

/* Responsive */
@media (min-width: 600px) {
  .zs-fs-body {
    padding: 24px;
  }
  
  .zs-ex-card {
    padding: 20px;
  }
}

/* ══════════════════════════════════════════════════════════════ */
/* ── ZEITEN-SPRINT: Retro Schulbuch Alignment ────────────────── */
/* ══════════════════════════════════════════════════════════════ */

/* Timeline markers — rounder, thicker, shadow */
.zs-tl-marker {
  border-width: 3px !important;
  box-shadow: var(--shadow) !important;
}
.zs-tl-day.active .zs-tl-marker {
  box-shadow: var(--shadow-accent) !important;
}
.zs-tl-day.passed .zs-tl-marker {
  box-shadow: var(--shadow-green) !important;
}

/* 0.27.6: Gold-Käfig entfernt — sichtbare Karte ist .zs-ex-qcard */

/* MC options — card style like Estaciones, no radio buttons */
.zs-ex-option {
  border-width: var(--bw) !important;
  border-radius: var(--r) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 16px !important;
  box-shadow: var(--shadow) !important;
}
.zs-ex-option.selected {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-accent) !important;
}
.zs-ex-option:hover:not(.selected) {
  border-color: var(--accent) !important;
}

/* Hide radio dots — use card selection instead */
.zs-ex-radio { display: none !important; }

/* Input field — thicker border, retro style */
.zs-ex-input {
  border-width: var(--bw) !important;
  font-family: var(--mono) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  text-align: center !important;
  box-shadow: inset 2px 2px 0 rgba(43,32,24,.04) !important;
}
.zs-ex-input:focus {
  box-shadow: 0 0 0 3px rgba(215,154,43,.2) !important;
}

/* Check button — match Estaciones primary button */
.zs-btn-check {
  border-radius: var(--r) !important;
  font-size: 16px !important;
  box-shadow: var(--shadow) !important;
  font-family: var(--sans);
}
.zs-btn-check:active {
  box-shadow: none !important;
  transform: translate(2px, 2px) !important;
}

/* Next button — accent style */
.zs-btn-next {
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  background: var(--accent);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

/* Continue button */
.zs-btn-continue {
  border-radius: var(--r) !important;
  box-shadow: var(--shadow) !important;
  font-family: var(--sans);
}

/* Feedback — match Estaciones feedback */
.zs-feedback { display: none !important; }
.zs-feedback.correct {
  box-shadow: var(--shadow-green) !important;
}
.zs-feedback.incorrect {
  border-color: var(--red) !important;
  box-shadow: var(--shadow-red) !important;
}
.zs-feedback-title {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

/* Step cards — retro shadows */
.zs-step {
  border-radius: var(--r) !important;
}
.zs-step.completed {
  border-color: var(--green) !important;
  box-shadow: var(--shadow-green) !important;
}
.zs-step.completed .zs-step-icon {
  background: var(--green-d) !important;
}

/* Day header — retro styling */
.zs-day-num {
  border-width: 3px !important;
  box-shadow: var(--shadow-accent) !important;
  border: var(--bw) solid var(--border);
}

/* Correction — cleaner retro style */
.zs-correction {
  border-radius: var(--r) !important;
}

/* Toki bubble — retro card */
.zs-toki-bubble {
  border-radius: var(--r) !important;
  border-width: var(--bw) !important;
}

/* Toki input */
.zs-toki-input {
  border-width: var(--bw) !important;
  border-radius: var(--r) !important;
  font-family: var(--mono) !important;
}

/* Test options — card style */
.zs-test-option {
  border-width: var(--bw) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow) !important;
  font-weight: 700 !important;
}

/* Welcome button */
.zs-welcome-start {
  border-radius: var(--r) !important;
  box-shadow: var(--shadow) !important;
  font-size: 16px !important;
}

/* Complete screen */
/* 0.28.5: Gold-Override entfernt — der Erfolgs-Haken bleibt grün (Retro) */

/* Bottom spacing */
.zs-fs-body { padding-bottom: 24px !important; }
.zs-fs-action { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important; }

/* ══════════════════════════════════════════════════════════════ */
/* ── ZS ADVENTURE TIMELINE — Zigzag Pins ─────────────────────── */
/* ══════════════════════════════════════════════════════════════ */
.zs-adventure { position: relative; overflow: visible; }

/* Week label */
.zs-week-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dim);
  text-align: center;
  z-index: 3;
}

/* Pin node */
.zs-pin {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  text-align: center;
  z-index: 2;
  cursor: pointer;
}
.zs-pin-locked { cursor: default; }

/* Marker circle */
.zs-pin-marker {
  width: 58px; height: 58px;
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  margin-bottom: 5px;
  position: relative;
}
.zs-pin-num {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

/* Active */
.zs-pin-active .zs-pin-marker {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  background: var(--accent-d2);
}
.zs-pin-active .zs-pin-num { color: var(--accent); }

/* Passed */
.zs-pin-passed .zs-pin-marker {
  border-color: var(--green);
  box-shadow: var(--shadow-green);
  background: var(--green-d);
}
.zs-pin-passed .zs-pin-num { color: var(--green); }
.zs-pin-passed .zs-pin-marker::after {
  content: '✓';
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--green);
  color: var(--surface);
  border-radius: 50%;
  font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}

/* Locked */
.zs-pin-locked .zs-pin-marker {
  border-color: rgba(43,32,24,0.15);
  box-shadow: none;
  background: var(--surface2);
  opacity: 0.5;
}
.zs-pin-locked .zs-pin-num { color: var(--mid); }

/* Pause */
.zs-pin-pause .zs-pin-marker {
  border-style: dashed;
  background: var(--surface2);
}

/* Pulse */
.zs-pin-pulse {
  position: absolute;
  width: 44px; height: 44px;
  top: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: estPulse 2s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* Hover */
.zs-pin:not(.zs-pin-locked):hover .zs-pin-marker {
  transform: scale(1.1);
}

/* Title */
.zs-pin-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  max-width: 150px;
  white-space: normal;
  text-align: center;
}
.zs-pin-locked .zs-pin-title { color: var(--mid); opacity: 0.5; }
.zs-pin-active .zs-pin-title { color: var(--accent); }
.zs-pin-passed .zs-pin-title { color: var(--green); }

/* Tense label */
.zs-pin-tense {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-top: 1px;
}
.zs-pin-locked .zs-pin-tense { opacity: 0.4; }

/* Hide old timeline styles when adventure is active */
.zs-adventure .zs-timeline-week,
.zs-adventure .zs-timeline-week-label,
.zs-adventure .zs-timeline-days,
.zs-adventure .zs-timeline-days::before { display: none; }


/* 0.24.5: Beispielsätze in der Lesetext-Serif */
.zs-example-es {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15.5px;
}
.zs-example-de {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 13.5px;
}


/* 0.27.8: Antwort-Zustand wandert an die Frage-Card + Badge */
.zs-ex-qcard.q-ok  { border-color: var(--green); box-shadow: 3px 3px 0 var(--green); }
.zs-ex-qcard.q-bad { border-color: var(--red);   box-shadow: 3px 3px 0 var(--red); }
.zs-ex-type-badge.ok  { color: var(--green); border-color: var(--green); }
.zs-ex-type-badge.bad { color: var(--red);   border-color: var(--red); }

/* ═══════════════════════════════════════════════════════════════
   0.29.10 — ZEITREISE-KULISSE
   Jede Woche bekommt ihren Ort in der Zeit: eine Bleistift-Notiz
   unterm Wochen-Label und eine große Ghost-Jahreszahl hinter der
   Gruppe. Beides bewusst zart — Kulisse, kein Inhalt.
   ═══════════════════════════════════════════════════════════════ */
.zs-epoch-line {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: .75;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}
.zs-epoch-ghost {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  font-family: var(--display);
  font-weight: 800;
  font-size: 120px;
  line-height: 1;
  color: var(--border);
  opacity: .06;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
