/* Das Wesen: Bühne, Sprechblase, Karte, Log */
.wesen { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.wesen-buehne { position: relative; width: var(--wb, 240px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #1c1e23; box-shadow: 0 6px 24px rgb(0 0 0 / .25); }
.wesen-buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#wesen-pixel { image-rendering: pixelated; image-rendering: crisp-edges; cursor: pointer; }
#wesen-pixel:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
#wesen-glut { image-rendering: auto; mix-blend-mode: screen; pointer-events: none; }
.wesen-blase-platz { width: var(--wb, 240px); max-width: 100%; min-height: 6.2rem; margin-top: 10px; } /* wächst mit den Knöpfen unter dem Satz */
/* 0.7.1 (Bill zu 0.7.0): ohne Sprechblase keine leere Fläche zwischen Bild und Name */
.wesen-blase-platz:has(> .wesen-blase[hidden]) { min-height: 0; margin-top: 0; }
.wesen-blase { position: relative; width: 100%; max-height: 100%; overflow: auto; box-sizing: border-box; background: rgb(255 255 255 / .94); color: #1c1b19; border-radius: 12px; padding: .5rem 2.6rem .5rem .7rem; font-size: .85rem; line-height: 1.35; box-shadow: 0 2px 10px rgb(0 0 0 / .25); }
.wesen-blase[hidden] { display: none; }
.wesen-blase::after { content: ""; position: absolute; top: -7px; left: 50%; border: 7px solid transparent; border-top: 0; border-bottom-color: rgb(255 255 255 / .94); }
.wesen-sorte { display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--lumi-ton, #a3500f); margin-right: .4rem; }
.wesen-zu { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: #5f5b53; }
.wesen-text { font-size: .9rem; text-align: center; }
.wesen-toast { position: fixed; right: 1rem; bottom: 1rem; max-width: 360px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-left: 4px solid #d06a1f; border-radius: 12px; padding: .6rem 2.6rem .6rem .8rem; box-shadow: var(--shadow); font-size: .9rem; z-index: 50; }
.wesen-log { list-style: none; padding: 0; margin: 0; }
.wesen-log li { padding: .45rem 0; border-top: 1px solid var(--line); line-height: 1.4; }
.wesen-stern { border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--muted); padding: 0 .3rem 0 0; }
.wesen-stern.an { color: var(--lumi-ton, #a3500f); }
.bereit-zahl { font-size: 3rem; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.bereit-quelle { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .6rem; padding: .35rem 0 .45rem; border-top: 1px solid var(--line); font-size: .9rem; }
.bereit-quelle .mono { color: var(--muted); }
/* Ampel je Quelle (Nr. 23, „Zustand hat Farbe“): Punkt, Zahl und Balken in der Farbe des Stands, in jeder Breite */
.bereit-quelle { --bq: var(--muted); }
.bereit-quelle--wenig { --bq: var(--accent); } .bereit-quelle--halb { --bq: var(--warn); } .bereit-quelle--gut { --bq: var(--ok); }
.bereit-quelle .bq-punkt { display: inline-block; width: .6rem; height: .6rem; margin-right: .45rem; border-radius: 50%; background: var(--bq); vertical-align: .05em; }
.bereit-quelle .mono { color: var(--bq); font-weight: 600; }
.bereit-quelle .bq-balken { flex: 1 0 100%; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.bereit-quelle .bq-balken > span { display: block; height: 100%; min-width: 4px; border-radius: 2px; background: var(--bq); }
.bestaetigung { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bestaetigung .muted { font-size: .85rem; }
@media (max-width: 720px) { .wesen-toast { left: 1rem; right: 1rem; max-width: none; } }

/* ---------- Lumi: Foto-Ansicht (ein freigestelltes Bild je Zustand, Licht als Ebene, Neigung als Drehung) ---------- */
.lumi-buehne { position: relative; width: min(var(--wb, 240px), 100%); aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse at 50% 110%, #2b3a4a 0%, #161c24 55%, #0e1116 100%); box-shadow: 0 6px 24px rgb(0 0 0 / .25); }
.lumi-buehne:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lumi-figur { position: absolute; inset: 0; transform-origin: 50% 90%; transition: transform .45s ease; }
.lumi-figur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lumi-licht { position: absolute; width: 22%; aspect-ratio: 1; background-size: contain; background-repeat: no-repeat; background-position: center;
  mix-blend-mode: screen; pointer-events: none; transition: opacity .6s ease, transform .6s ease; }
.lumi-name { display: grid; gap: .4rem; width: min(var(--wb, 240px), 100%); margin-top: .3rem; }
.lumi-name input { min-height: 44px; font-size: 1rem; }
.lumi-name-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; }
.lumi-name-knoepfe .btn, .wesen > .btn { min-height: 44px; }
.lumi-aus-frage { border-top: 1px solid var(--line); padding-top: .7rem; }
.lumi-aus-frage .btn { min-height: 44px; }
/* Einladung: dunkle Karte, zwei kleine Lichter, nie die Figur */
.lumi-einladung { display: flex; gap: 1rem; align-items: center; background: var(--eis, #eef3f6); color: var(--text); border: 0; box-shadow: none; margin-bottom: 1rem; } /* seit 0.4.3 zart statt dunkel */
.lumi-einladung .btn { min-height: 44px; }
.lumi-einladung-klein { margin: .6rem 0 0; font-size: .85rem; color: var(--eis-ink, #3e5866); }
.lumi-zwei-lichter { flex: none; position: relative; width: 72px; height: 56px; background: #1d2529; border-radius: 28px; } /* die Höhle bleibt dunkel, sonst sieht man die Lichter nicht */
.lumi-zwei-lichter span { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #ffd9a0; box-shadow: 0 0 12px 4px rgb(255 180 90 / .55); animation: lumi-glimmen 3.2s ease-in-out infinite; }
.lumi-zwei-lichter span:first-child { left: 22px; top: 18px; }
.lumi-zwei-lichter span:last-child { left: 40px; top: 12px; animation-delay: .7s; }
@keyframes lumi-glimmen { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lumi-zwei-lichter span { animation: none; } .lumi-figur { transition: none; } }
@media (max-width: 420px) { .lumi-einladung { flex-direction: column; align-items: flex-start; } }

/* Knöpfe unter einem Satz der Lumi (Auftrag 2026-10-04-lumi-knoepfe): erster Knopf je Sorte, darunter die Bewertung.
   .lumi-aktionen hat Platz für einen zweiten Knopf (später „Aus dem Lumi-Buch“). */
.lumi-knoepfe { display: grid; gap: .4rem; margin-top: .6rem; }
.lumi-aktionen, .lumi-bewertung { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.lumi-knoepfe .btn { min-height: 44px; }
.lumi-bewertung .btn { flex: 1 1 auto; }
.lumi-erledigt { align-self: center; }
.wesen-blase .lumi-knoepfe .btn, .wesen-toast .lumi-knoepfe .btn { font-size: .85rem; padding: .3rem .7rem; }
.lumi-balken { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.lumi-balken li { display: grid; grid-template-columns: 5.5rem 1fr 4.5rem; gap: .5rem; align-items: center; font-size: .9rem; }
.lumi-balken-spur { height: .55rem; border-radius: 99px; background: var(--line, #ddd); overflow: hidden; }
.lumi-balken-spur > span { display: block; height: 100%; border-radius: inherit; background: var(--accent, #c8102e); }
.lumi-aus, .lumi-heft { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.lumi-aus li { display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .9rem; }
.lumi-aus .btn, .lumi-heft .btn, .lumi-gelernt .btn, .vorhaben .btn { min-height: 44px; }
.lumi-heft li { padding-bottom: .6rem; border-bottom: 1px solid var(--line, #ddd); }
.lumi-heft li:last-child { border-bottom: 0; padding-bottom: 0; }
