:root {
  --fibel: "Fredoka", "Nunito", system-ui, sans-serif;
  --ls1: var(--ink);        
  --ls2: var(--teal-dark);  
  --lgold-soft: #fdefc9;
}
@media (prefers-color-scheme: dark) {
  :root { --lgold-soft: #4a3a17; }
}

.today.lesencard { border-color: var(--teal); background: linear-gradient(135deg, rgba(20, 160, 152, .14), transparent 70%), var(--card); }

.lwort { font-family: var(--fibel); font-weight: 600; white-space: nowrap; }
.lwort .ls1 { color: var(--ls1); }
.lwort .ls2 { color: var(--ls2); }
.lgross { margin: 0; font-size: 58px; line-height: 1.1; text-align: center; }
.lcost { display: inline-flex; align-items: center; gap: 1px; font-family: var(--display); font-weight: 600; font-size: 13px; line-height: 1.2; }

.lesenpage h2 { margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lesenpage h2 small { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 14px; }
.lhost .bubble { flex: 1; }
.lesengo { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lesengo__z { font-family: var(--fibel); font-weight: 600; font-size: 26px; line-height: 1; padding: 2px 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .22); }
.lkapitel { display: grid; gap: 14px; }
.lweg { display: flex; flex-wrap: wrap; gap: 8px 7px; }
.lst { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--pad-off-edge); background: var(--pad-off);
  color: var(--muted); cursor: pointer; padding: 0 0 3px; transition: transform .06s, box-shadow .06s; }
.lst__z { font-family: var(--fibel); font-weight: 600; font-size: 24px; line-height: 1; }
.lst.is-s1 { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); }
.lst.is-s2 { background: var(--lgold-soft); border-color: var(--gold); color: var(--ink); }
.lst.is-now { background: var(--orange); border-color: var(--edge); color: #fff; box-shadow: 0 4px 0 var(--edge); }
.lst.is-now:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.lst .lcost { position: absolute; right: -8px; bottom: -8px; padding: 1px 5px 1px 6px; border-radius: 999px; border: 2px solid var(--edge); background: var(--card); color: var(--ink); }
.lbuecher { display: grid; gap: 8px; }
.lbuch { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink);
  text-align: left; font: inherit; }
button.lbuch { cursor: pointer; border-color: var(--teal); }
.lbuch__icon { flex: none; display: grid; place-items: center; }
.lbuch__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lbuch__text b { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.lbuch__go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--teal); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 15px; --icon-line: #fff; }
.lbuch.is-done .lbuch__go { background: var(--card); color: var(--teal-dark); border: 2px solid var(--teal); --icon-line: var(--edge); }
.lbuch__lock { flex: none; display: grid; place-items: center; width: 44px; opacity: .7; }
.lbuch.is-locked .lbuch__icon, .lbuch.is-locked .lbuch__text { opacity: .65; }
.lhauscard { display: grid; gap: 10px; justify-items: start; }
.lhauscard p { margin: 0; }
.lhaus { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; width: 100%; }
.lh { display: grid; place-items: center; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: var(--card);
  font-family: var(--fibel); font-weight: 600; font-size: 20px; color: var(--muted); padding: 0 0 2px; }
.lh.is-s1 { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); }
.lh.is-s2 { background: var(--lgold-soft); border-color: var(--gold); color: var(--ink); }
button.lh { cursor: pointer; border-style: dashed; border-color: var(--pad-off-edge); }
button.lh.is-on { border-style: solid; background: var(--teal); border-color: var(--edge); color: #fff; }
.lhausbtns { display: flex; gap: 8px; }

.lgame__bar { flex: 1; height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.lgame__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--teal); transition: width .3s; }
.lgame__again { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.lgame__scroll { flex: 1; min-height: 0; overflow-y: auto; }
.lgame__body { width: 100%; max-width: 540px; margin: 0 auto; padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.lgame__foot { width: 100%; max-width: 540px; margin: 0 auto; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.lgame__foot .btn { flex: 1; }
.lgame__foot .btn.lback { flex: none; }
.lgame__foot .btn .ic { --icon-line: #fff; --icon-accent: #fff; }
.lgame .game__say { font-size: 17px; }
.lziel { margin: 0; text-align: center; font-family: var(--fibel); font-weight: 600; font-size: 44px; line-height: 1; color: var(--orange-ink); }

.lpics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lpic { aspect-ratio: 1; display: grid; place-items: center; border: 2.5px solid var(--edge); border-radius: 20px; background: var(--card); cursor: pointer;
  box-shadow: 0 4px 0 var(--edge); transition: transform .06s, box-shadow .06s, background .15s; padding: 0; }
.lpic__e { font-size: clamp(40px, 13vw, 62px); line-height: 1; }
.lpic[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal-dark); box-shadow: 0 4px 0 var(--teal-dark); }
.lpic.is-ok, .lwahl.is-ok { background: var(--green-soft); border-color: var(--green-dark); box-shadow: 0 4px 0 var(--green-dark); }
.lpic svg { max-width: 84%; height: auto; }
.is-no { animation: lesen-shake .35s; background: var(--red-soft) !important; }

.llts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.llt { height: 68px; border: 2.5px solid var(--edge); border-radius: 18px; background: var(--card); font-family: var(--fibel); font-weight: 600; font-size: 38px; line-height: 1;
  color: var(--ink); cursor: pointer; box-shadow: 0 4px 0 var(--edge); padding: 0 0 4px; }
.llt.is-ok { background: var(--teal); color: #fff; animation: lesen-pop .3s; }

.lbl { display: grid; gap: 16px; padding: 4px 0; }
.lbl__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lbl__t { display: grid; place-items: center; height: 104px; border-radius: 22px; border: 2.5px dashed var(--pad-off-edge); background: var(--pad-off);
  font-family: var(--fibel); font-weight: 600; font-size: 68px; line-height: 1; color: var(--muted); padding-bottom: 8px; transition: background .2s, color .2s, border-color .2s; }
.lbl__t.is-on { border-style: solid; border-color: var(--edge); background: var(--card); color: var(--ink); }
.lbl__t.is-syl { font-size: 54px; }
.lbl__track { position: relative; height: 84px; }
.lbl__rail { position: absolute; left: 0; right: 0; top: 50px; height: 14px; border-radius: 999px; background: var(--creek); border: 2px solid var(--line); }
.lbl__fill { position: absolute; left: 0; top: 50px; height: 14px; width: 0; border-radius: 999px; background: var(--teal); }
.lbl__snail { position: absolute; top: 0; left: 0; width: 76px; margin-left: -6px; pointer-events: none; }
.lbl__track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; touch-action: pan-y; }
.lbl__out { display: grid; place-items: center; min-height: 86px; }
.lbl__syl { border: 2.5px solid var(--edge); border-radius: 22px; background: var(--card); box-shadow: 0 4px 0 var(--edge); padding: 4px 26px 12px; cursor: pointer; animation: lesen-pop .35s; }
.lbild { font-size: 84px; line-height: 1; text-align: center; }

.lwahlen { display: grid; gap: 10px; }
.lwahl { display: grid; place-items: center; min-height: 74px; border: 2.5px solid var(--edge); border-radius: 20px; background: var(--card); box-shadow: 0 4px 0 var(--edge);
  cursor: pointer; font-size: 40px; line-height: 1; padding: 4px 10px 10px; }
.lhoer { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2.5px solid var(--edge); background: var(--teal);
  color: #fff; font-family: var(--display); font-weight: 600; font-size: 19px; box-shadow: 0 4px 0 var(--edge); cursor: pointer; --icon-line: #fff; --icon-accent: #fff; }

.lbau { display: grid; gap: 16px; justify-items: center; }
.lbau__bild { width: 130px; }
.lbau__ziel { display: flex; gap: 8px; }
.lbau__ziel > span { display: grid; place-items: center; min-width: 96px; height: 78px; border-radius: 18px; border: 2.5px dashed var(--pad-off-edge); background: var(--pad-off);
  font-size: 44px; padding: 0 12px 8px; }
.lbau__ziel > span.is-voll { border-style: solid; border-color: var(--edge); background: var(--card); }
.lkacheln { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lkach { min-width: 92px; height: 74px; border: 2.5px solid var(--edge); border-radius: 18px; background: var(--card); box-shadow: 0 4px 0 var(--edge); font-size: 42px;
  cursor: pointer; padding: 0 12px 8px; color: var(--ink); }
.lkach[disabled] { opacity: .25; box-shadow: none; cursor: default; }

.lszene { position: relative; height: clamp(180px, 32vh, 250px); border-radius: 22px; border: 2.5px solid var(--edge); overflow: hidden; background: var(--lsky); }
.lszene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: var(--lground); }
.lszene__fig, .lszene__prop { position: absolute; z-index: 1; bottom: 6%; transform: translateX(-50%); line-height: 0; }
.lszene__prop { bottom: 9%; }
.lszene__fig .tub { position: absolute; left: 50%; bottom: -3%; width: 112%; transform: translateX(-50%); overflow: visible; }
.lszene__pic { font-size: 54px; line-height: 1; bottom: 8%; }
.lszene__pic.is-small { font-size: 42px; }
.lseite { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 4px 14px; min-height: 120px; padding: 12px 10px 16px; border-radius: 22px;
  border: 2.5px solid var(--edge); background: var(--card); }
.lseite button { border: 0; background: transparent; padding: 0 2px 4px; border-radius: 12px; cursor: pointer; font-size: clamp(40px, 12vw, 56px); line-height: 1.15; color: var(--ink); }
.lseite button.is-hilf { background: var(--orange-soft); }
.lseite .lrebus { display: inline-grid; justify-items: center; font-family: var(--fibel); font-weight: 600; font-size: 17px; line-height: 1.1; color: var(--muted); }
.lseite .lzeichen { font-family: var(--fibel); font-weight: 600; font-size: clamp(40px, 12vw, 56px); line-height: 1.15; margin-left: -16px; padding-bottom: 4px; }
.lseite .lzeichen.is-nach-bild { margin-left: -4px; }
.lseite.is-liest { background: var(--teal-soft); }
.lzaehler { margin: 0; text-align: center; }

.lgame .game__end .btn + .btn { margin-top: 10px; }
.lend__z { font-family: var(--fibel); }
.lend__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font-weight: 800; }

@keyframes lesen-shake { 20% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 80% { transform: translateX(-3px); } }
@keyframes lesen-pop { 0% { transform: scale(.7); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .is-no, .llt.is-ok, .lbl__syl { animation: none; } }
