/* feat-reading: Welt 0 «Lesestart». Masse und Farben aus lib/features/reading. */

.rd-page {
  position: relative; height: var(--lern-page-height, 100dvh); overflow: hidden; color: #2A1A12;
  background: linear-gradient(180deg, #FFE7C7, #FFC9A0, #FFB38A);
}
.rd-hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd-scroll, .rd-fill {
  position: absolute; inset: 0; box-sizing: border-box;
  padding: var(--lern-safe-top, 0px) 0 var(--lern-safe-bottom, 0px);
}
.rd-scroll { overflow-y: auto; overflow-x: hidden; }
.rd-fill { display: flex; justify-content: center; }
.rd-column { margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; }
.rd-row { display: flex; align-items: center; }
.rd-wrap { display: flex; flex-wrap: wrap; }
.rd-center { text-align: center; }
.rd-h { margin: 0; }
.rd-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-emoji { font-family: var(--lern-emoji); line-height: 1.15; font-style: normal; display: inline-block; }

.rd-round {
  flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.26);
}
.rd-round:hover { filter: brightness(0.97); }
.rd-stars { display: inline-flex; align-items: center; }

/* Bewegung: StaggerIn, PressScale */
.rd-stagger { animation: rd-stagger 460ms cubic-bezier(0.215, 0.61, 0.355, 1) both; }
.rd-stagger-scale { animation: rd-stagger-scale 460ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
@keyframes rd-stagger { from { opacity: 0; transform: translateY(18px); } }
@keyframes rd-stagger-scale { from { transform: scale(0.96); } }
.rd-press { transition: transform 160ms cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.rd-press:active:not(:disabled) { transform: scale(0.96); transition-timing-function: cubic-bezier(0, 0, 0.58, 1); }

.rd-fit { display: flex; align-items: center; justify-content: center; overflow: visible; min-width: 0; }
.rd-fit-inner { flex: none; width: max-content; transform-origin: center; }

.rd-filled {
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; cursor: pointer;
  background: #3FAE6A; color: #fff; font-weight: 800;
}
.rd-filled:disabled { background: rgba(29,27,32,0.12); color: rgba(29,27,32,0.38); cursor: default; }
.rd-text-button {
  display: inline-flex; align-items: center; padding: 8px 16px 8px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--lern-primary); font-size: 14px; font-weight: 500;
}
.rd-text-button:hover { background: color-mix(in srgb, var(--lern-primary) 8%, transparent); }

/* Übersicht */
.rd-treasure {
  flex: 1; min-width: 0; display: flex; align-items: center; padding: 12px; border-radius: 22px; cursor: pointer;
  box-shadow: 0 4px 12.5px rgba(0,0,0,0.12); font: inherit; color: inherit;
}
.rd-garden {
  display: block; width: 100%; text-align: left; padding: 12px 16px 14px; border-radius: 22px; cursor: pointer;
  background: linear-gradient(180deg, #E6F7FF 0%, #BFE8B0 55%, #8CCB74 100%); border: 2px solid #fff;
  font: inherit; color: inherit;
}
.rd-path { position: relative; }
.rd-station-slot { position: absolute; width: 140px; }
.rd-station { display: flex; flex-direction: column; align-items: center; }
.rd-station-disc {
  width: 96px; height: 96px; box-sizing: border-box; border-radius: 50%; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 300ms, border-color 300ms, border-width 300ms, box-shadow 300ms, transform 160ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rd-station-disc:disabled { cursor: default; }
.rd-station-pill { display: flex; align-items: center; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,0.82); }
.rd-ready {
  display: flex; flex-direction: column; align-items: center; padding: 18px;
  background: #FFFBF5; border-radius: 24px; border: 3px solid #3FAE6A;
}
.rd-parent { padding: 16px; background: rgba(255,255,255,0.72); border-radius: 18px; }

/* Lese-Level */
.rd-play {
  width: 100%; max-width: 820px; height: 100%; box-sizing: border-box; padding: 10px 14px 16px;
  display: flex; flex-direction: column;
}
.rd-dots { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rd-dot { height: 14px; border-radius: 7px; transition: width 300ms, background-color 300ms; }
.rd-play-main { flex: 1; min-height: 0; position: relative; }
.rd-switch { position: absolute; inset: 0; animation: rd-fade 280ms ease both; }
@keyframes rd-fade { from { opacity: 0; } }
.rd-intro { height: 100%; overflow-y: auto; display: flex; }
.rd-intro-inner { margin: auto; display: flex; flex-direction: column; align-items: center; }
.rd-body { height: 100%; display: flex; flex-direction: column; }
.rd-stage-wrap { position: relative; flex: 1; min-height: 0; min-width: 0; display: flex; }
.rd-stage {
  flex: 1; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column;
  border-radius: 28px; box-shadow: 0 8px 19.5px rgba(0,0,0,0.26); transition: border-color 200ms;
}
.rd-caption {
  flex: none; padding: 8px 8px 0; text-align: center; font-size: 13px; color: #6B5A50;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rd-plain { padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.rd-speaker {
  width: 200px; height: 200px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.rd-slot {
  width: 72px; height: 84px; margin: 0 5px; box-sizing: border-box; border-radius: 14px;
  border-bottom: 5px solid; display: flex; align-items: center; justify-content: center;
}
.rd-scene { height: 100%; display: flex; align-items: center; justify-content: center; }
.rd-choices { height: 100%; display: flex; align-items: center; justify-content: center; overflow-y: auto; }
.rd-choices-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-height: 100%; }
.rd-choice {
  position: relative; flex: none; padding: 0; border-radius: 22px; cursor: pointer; box-sizing: border-box;
  transition: opacity 250ms, background-color 200ms, transform 160ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rd-choice:disabled { cursor: default; }
.rd-choice .rd-fit { position: absolute; }
.rd-swatch {
  width: 70px; height: 70px; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
}
.rd-finish { position: absolute; inset: 0; }
.rd-finish-scroll { position: absolute; inset: 0; overflow-y: auto; display: flex; }
.rd-finish-inner { margin: auto; display: flex; flex-direction: column; align-items: center; padding: 0 4px; }
.rd-banner {
  max-width: 520px; box-sizing: border-box; padding: 10px 14px 14px; border-radius: 22px;
  box-shadow: 0 6px 14.9px rgba(0,0,0,0.12);
}

/* ABC-Buch */
.rd-abc {
  flex: none; box-sizing: border-box; padding: 0 4px; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit;
}
.rd-abc:disabled { cursor: default; }

/* Urkunde */
.rd-segmented { display: flex; justify-content: center; }
.rd-segment {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px; cursor: pointer;
  background: transparent; border: 1px solid #79747E; color: #1D1B20; font-size: 14px; font-weight: 500;
}
.rd-segment + .rd-segment { border-left: 0; }
.rd-segment:first-child { border-radius: 20px 0 0 20px; }
.rd-segment:last-child { border-radius: 0 20px 20px 0; }
.rd-segment-on { background: color-mix(in srgb, var(--lern-primary) 18%, #fff); }
.rd-paper { padding: 10px; background: #D99A22; border-radius: 22px; box-shadow: 0 10px 24.1px rgba(0,0,0,0.26); }
.rd-paper-inner {
  padding: 22px 20px 20px; border-radius: 14px; border: 3px solid #F2C766;
  background: linear-gradient(180deg, #FFFBEF, #FFF0C8);
  display: flex; flex-direction: column; align-items: center;
}
.rd-paper-letter { padding: 3px 7px; background: #FFE08A; border-radius: 8px; border: 1px solid #D99A22; }

/* Körper-Szene: Illustration unter der Zeichenfläche */
.rd-scene-box { position: relative; }
.rd-scene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-select: none; }
