/* Vokumi · Kumis Garten (garden.js) – leicht schräge Draufsicht, flache Farbflächen, weiche Schatten nur unter Pflanzen,
   Linien 2 px mit runden Enden (dieselbe Handschrift wie die Erklärfilm-Grafiken). Nur senkrechtes Scrollen. */
.gdn {
  --g-soil: #8a5a3b;
  --g-soil-hi: #a7714c;
  --g-ink: #1d2b24;
  --g-muted: #5d7066;
  --g-green: #3e9b4f;
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
/* Eine zusammenhängende Welt: Szene (Himmel, Hügel, Gartentor, Gartenhaus) → Erde → Beete auf der Wiese.
   Die Szene hat das feste Seitenverhältnis 400 : 170 – so stehen Kumi, Gartenhaus und Gieß-Ring immer an derselben
   Stelle der Zeichnung (Handy und Desktop). */
.gWorld {
  --g-grass: #86c97a;
  position: relative;
  display: grid;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--g-grass), #77bd6c);
  box-shadow: 0 10px 28px rgba(31, 80, 45, 0.12);
}
.gWorld.t-night { --g-grass: #3f6f53; background: linear-gradient(180deg, #3f6f53, #355f47); }
.gSceneWrap { position: relative; aspect-ratio: 400 / 170; }
.gSky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #cfe9ff, #f4fbff 70%);
}
.gSky.t-morning { background: linear-gradient(180deg, #ffe9c7, #ddf0ff 70%); }
.gSky.t-evening { background: linear-gradient(180deg, #ffd6b8, #c9b8f0 70%); }
.gSky.t-night { background: linear-gradient(180deg, #24305e, #3e4c86 70%); }
.gSky.w-cloud:not(.t-night) { background: linear-gradient(180deg, #dfe6ee, #f1f4f8 70%); }
.gSceneSvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Kumi steht links auf dem vorderen Hügel (Hügelkuppe bei x ≈ 66 von 400, y ≈ 104 von 170) */
.gGate {
  position: absolute;
  left: 16.5%;
  bottom: 30%;
  z-index: 2;
  transform: translateX(-50%);
}
/* Gieß-Ring oben links: antippen → Kumi hüpft */
.gRing {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  width: 48px;
  height: 48px;
  min-height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}
.gRing svg, #journeyHub .gdn .gRing svg { width: 100% !important; height: 100% !important; max-width: none !important; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12)); }
.gRing:active { transform: scale(0.94); }
/* Gartenhaus = Sammelalbum: Tippfläche genau über dem Haus (x 146–198, y 62–112), Schild darunter */
.gShed {
  position: absolute;
  z-index: 2;
  left: 34%;
  top: 34%;
  width: 18%;
  height: 34%;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  cursor: pointer;
}
.gShedText {
  transform: translateY(70%);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--g-ink);
  font-size: calc(12px * var(--an-scale, 1));
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.gShed:focus-visible { outline: 3px solid #ffd34d; outline-offset: 2px; }
.gSun { transform-box: fill-box; transform-origin: 50% 50%; animation: gSpin 40s linear infinite; }
.gCloud { animation: gDrift 9s ease-in-out infinite alternate; }
.gFly { animation: gFly 14s ease-in-out infinite; }
.gGlow { animation: gGlow 2.4s ease-in-out infinite; }
@keyframes gSpin { to { transform: rotate(360deg); } }
@keyframes gDrift { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
@keyframes gFly {
  0% { transform: translate(120px, 50px); }
  25% { transform: translate(200px, 24px) rotate(8deg); }
  50% { transform: translate(280px, 52px); }
  75% { transform: translate(190px, 70px) rotate(-8deg); }
  100% { transform: translate(120px, 50px); }
}
@keyframes gGlow { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* Wochen-Leiste 48 px: sieben Tropfen Mo–So */
.gWeek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 4px 12px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #e6eee9;
}
.gDrops { display: flex; gap: 6px; }
.gDrop { display: grid; justify-items: center; gap: 1px; width: 30px; }
.gDropIcon {
  width: 18px;
  height: 22px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #e3ebf2;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  color: #7d8fa0;
}
.gDrop.on .gDropIcon { background: #4aa8ff; }
.gDrop.today .gDropIcon { box-shadow: inset 0 0 0 2px #4aa8ff; background: #fff; }
.gDrop.rain .gDropIcon { background: #eef2f6; }
.gDrop.future .gDropIcon { opacity: 0.45; }
.gDropDay { font-size: 11px; font-weight: 700; color: var(--g-muted); }
.gSeries { font-weight: 800; font-size: 13px; color: var(--g-ink); white-space: nowrap; }

/* Kopfzeile + Filter */
.gStats { margin: 2px 0 0; font-weight: 800; color: var(--g-ink); }
.gChips { display: flex; gap: 8px; flex-wrap: wrap; }
.gChip {
  min-height: 40px !important;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid #e2ebe5;
  background: #fff;
  color: var(--g-ink);
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.gChip[aria-pressed="true"] { background: #e6f4ea; border-color: var(--g-green); color: #1f6b33; }
.gWaterAll { justify-self: start; background: var(--g-green) !important; }

/* Beete: Erde auf der Wiese. Das erste Beet setzt die Erde der Szene nahtlos fort (gleiche Farbe, kein oberer Rand).
   Raster 3 Spalten, Parzellen 104 × 128 (× Schriftfaktor; auf breiten Bildschirmen bis 150 × 185) mit Pflanzloch. */
.gBed { position: relative; display: grid; padding: 0 0 14px; }
.gBed + .gBed { padding-top: 0; }
.gBedSoil {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0 12px;
  padding: 14px 14px 18px;
  border-radius: 18px;
  background: var(--g-soil);
  box-shadow: inset 0 0 0 3px var(--g-soil-hi), inset 0 8px 16px rgba(0, 0, 0, 0.16);
}
.gWorld > .gBed:nth-child(2) .gBedSoil {
  margin: -1px 0 0;
  border-radius: 0 0 18px 18px;
  box-shadow: inset 0 -3px 0 var(--g-soil-hi), inset 0 -8px 16px rgba(0, 0, 0, 0.12);
  padding-top: 6px;
}
.gWorld > .gBed:nth-child(2) { padding-left: 0; padding-right: 0; }
.gBed.rainbow .gBedSoil::before {
  content: "";
  position: absolute;
  /* z34: kleiner Bogen oben rechts im Beet (vorher quer über Horizont und Schild) */
  right: 18px;
  top: 14px;
  width: 72px;
  height: 36px;
  border-radius: 36px 36px 0 0;
  border: 6px solid transparent;
  border-top-color: #ff7a7a;
  box-shadow: inset 0 6px 0 #ffd34d, inset 0 12px 0 #6fd18a, inset 0 18px 0 #6aa8ff;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.gSign {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px !important;
  padding: 4px 14px;
  border: 0;
  border-radius: 10px;
  background: #c99a6b;
  box-shadow: inset 0 -3px 0 #a9784c, 0 3px 0 rgba(0, 0, 0, 0.18);
  color: #3b2414;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.gSignIcon { font-size: 18px; }
.gdGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 14px;
  justify-items: center;
}
.gCell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: end;
  width: min(100%, clamp(calc(104px * var(--an-scale, 1)), 22vw, calc(132px * var(--an-scale, 1))));
  aspect-ratio: 104 / 128;
  min-height: 0 !important;
  padding: 6px 4px 10px !important;
  border: 0;
  border-radius: 16px;
  /* Pflanzloch: dunklere Mulde unter der Pflanze */
  background: radial-gradient(ellipse 58% 14% at 50% 74%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 72%);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background-color 300ms ease-out, opacity 200ms ease-out;
}
.gPic { display: grid; place-items: end center; width: 100%; height: 100%; min-height: 0; }
.gCell svg { width: 86%; height: auto; max-height: 100%; aspect-ratio: 100 / 120; transform-origin: 50% 100%; }
.gCell:focus-visible { outline: 3px solid #ffd34d; outline-offset: -3px; }
.gCell.gOut { opacity: 0.28; }
.gCell.th-limp svg .gBody { filter: saturate(0.7); }
.gName {
  max-width: 100%;
  min-height: 2.4em;
  margin-top: 4px;
  font-size: calc(12px * var(--an-scale, 1));
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #fff6ea;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Samen: Umriss atmet ganz leicht, damit leere Parzellen nicht wie leer wirken */
.gCell.st-0 .gSeed { animation: gSeed 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes gSeed { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; transform: scale(1.06); } }
.gThirst { position: absolute; top: 6px; right: 8px; font-size: 14px; }
.gBug { position: absolute; top: 30%; left: 18%; font-size: 13px; }
.gGold { transform-box: fill-box; transform-origin: 50% 50%; animation: gSpin 18s linear infinite; }
.gMore {
  justify-self: center;
  min-height: 40px !important;
  border-radius: 999px;
  border: 2px solid #e2ebe5;
  background: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
}
/* Gieß-Animation */
.gCell.gWatering { background: rgba(40, 20, 8, 0.35); }
.gRain {
  position: absolute;
  top: 18px;
  width: 6px;
  height: 9px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #4aa8ff;
  pointer-events: none;
}

/* Leerer Garten: eine Parzelle mit Samen-Umriss direkt unter der Szene */
.gdEmpty .gBedSoil { justify-items: center; }
.gEmptyCell { cursor: default; }
.gdEmptyText { margin: 4px 0 0; font-weight: 700; color: var(--g-ink); text-align: center; }
.gdEmptyGo { justify-self: center; }

/* Pflanzen-Sheet */
.gdSheet { display: grid; gap: 14px; }
.gdSheetTop { display: flex; gap: 14px; align-items: center; }
.gdSheetPic {
  flex: none;
  width: 120px;
  height: 136px;
  display: grid;
  place-items: end center;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef7ff, #fff 60%, var(--g-soil, #8a5a3b) 60%);
}
.gdSheetPic svg { width: 104px; height: 120px; }
.gdSheetInfo { display: grid; gap: 4px; min-width: 0; }
.gdSheetStage { font-size: 16px; }
.gdSheetBed { color: var(--g-muted, #5d7066); font-size: 14px; }
.gdSheetLine { font-weight: 700; font-size: 14px; color: #1f6b33; }
.gdSheetLine.th-thirsty, .gdSheetLine.th-limp { color: #1d5fa8; }
.gdSheetNote { font-size: 13px; font-weight: 600; color: #6b7d73; }
.gdSheetLine.th-asleep { color: #6c7a73; }
.gMain { min-height: 52px; font-weight: 800; }
.gSmall { display: flex; gap: 8px; flex-wrap: wrap; }
.gSmall button { min-height: 40px !important; font-size: 14px; }

/* Sammelalbum: Raster 3 Spalten, nicht gefundene Funde als Schattenriss mit einem Satz */
.gAlbum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gFind {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #e6eee9;
  text-align: center;
}
.gFindIcon { font-size: 30px; filter: grayscale(1) brightness(0.2) opacity(0.35); }
.gFind.got .gFindIcon { filter: none; }
.gFind strong { font-size: 13px; }
.gFindHow { font-size: 12px; color: #5d7066; line-height: 1.3; }

/* Erwachsene: ruhiger – keine flatternden Tiere, kein drehendes Licht */
.gdn.adult .gSun,
.gdn.adult .gGold { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .gSun, .gCloud, .gFly, .gGlow, .gGold, .gCell.st-0 .gSeed { animation: none !important; }
}
@media (max-width: 380px) {
  .gDrop { width: 26px; }
  .gdGrid { column-gap: 4px; }
}
@media (max-width: 480px) {
  .gRing { width: 40px; height: 40px; min-height: 40px !important; top: 6px; left: 6px; }
  .gShedText { font-size: 11px; padding: 2px 8px; }
}

/* Die allgemeine Knopf-Gestaltung der App (weiße Karte, Rahmen, Schatten) gilt im Garten nicht:
   Pflanzen stehen direkt in der Erde, Schild und Gartenhaus sind Teil der Zeichnung. */
#journeyHub .gdn .gCell,
#journeyHub .gdn .gShed,
#journeyHub .gdn .gRing {
  border: 0 !important;
  box-shadow: none !important;
  color: inherit;
}
#journeyHub .gdn .gShed,
#journeyHub .gdn .gRing { background: transparent !important; }
/* Parzelle: Pflanzloch (dunklere Mulde); durstig: leicht heller Schimmer; Gießen: Erde wird dunkel */
#journeyHub .gdn .gCell { background: radial-gradient(ellipse 58% 14% at 50% 74%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 72%) !important; }
#journeyHub .gdn .gCell:hover { background: radial-gradient(ellipse 58% 14% at 50% 74%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 72%), rgba(255, 255, 255, 0.08) !important; }
#journeyHub .gdn .gCell.th-thirsty,
#journeyHub .gdn .gCell.th-limp { background: radial-gradient(ellipse 58% 14% at 50% 74%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 72%), rgba(255, 255, 255, 0.06) !important; }
#journeyHub .gdn .gCell.gWatering { background: rgba(40, 20, 8, 0.35) !important; }
#journeyHub .gdn .gSign {
  background: #c99a6b !important;
  border: 0 !important;
  box-shadow: inset 0 -3px 0 #a9784c, 0 3px 0 rgba(0, 0, 0, 0.18) !important;
  color: #3b2414 !important;
}
#journeyHub .gdn .gName { color: #fff6ea; }

/* Neue Pflanze: Samen springt kurz */
#journeyHub .gdn .gCell.gNew svg { animation: gNew 700ms cubic-bezier(.3,1.6,.5,1) 600ms both; }
@keyframes gNew { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #journeyHub .gdn .gCell.gNew svg { animation: none; } }

/* ---------- z22: Haltung über Variablen, Glanz, zzz, Glitzer, gekippte Erde ---------- */
/* Blattwinkel: Haltung (--g-droop) × Familie (--g-droop-k) × Seite (--s, im SVG je Blatt gesetzt).
   Drehpunkt ist der Blattansatz: jedes Blatt beginnt im eigenen Koordinatensystem bei 0 0. */
.gPlant { --g-droop: 0deg; --g-droop-k: 1; } /* z58: Pflanzen hängen nie – egal wie lange nicht gelernt wurde */



.gPlant[data-fam="succulent"] { --g-droop-k: 0.5; }
.gPlant[data-fam="tree"] { --g-droop-k: 0.3; }
.gPlant .gL { transform: rotate(calc(var(--g-droop) * var(--g-droop-k) * var(--s, 1))); }
/* Frisch: aufrecht und glänzend */
.gPlant.th-fresh .gBody { filter: saturate(1.08) brightness(1.03); }
.gPlant.th-fresh .gL path { stroke: rgba(255, 255, 255, 0.35); stroke-width: 0.8; }
/* Schläft: zzz steigt auf */
.gPlant .gZzz path { transform-box: fill-box; animation: gZzz 3.2s ease-in-out infinite; }
.gPlant .gZzz path:nth-child(2) { animation-delay: 1.6s; }
@keyframes gZzz {
  0% { opacity: 0; transform: translate(0, 4px) scale(0.8); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(4px, -8px) scale(1.1); }
}
/* Goldblüte: Glitzer */
.gPlant .gSpark { transform-box: fill-box; transform-origin: 50% 50%; animation: gSpark 2.4s ease-in-out infinite; }
.gPlant .gSpark:nth-of-type(2) { animation-delay: 0.8s; }
.gPlant .gSpark:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes gSpark { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1); } }
.gdn.adult .gSpark { animation: none; opacity: 0.8; }
@media (prefers-reduced-motion: reduce) {
  .gPlant .gZzz path, .gPlant .gSpark { animation: none !important; opacity: 1; }
}
/* Schräge Draufsicht: Die Erdfläche der Beete auf der Wiese kippt um 30° (eigene Ebene hinter dem Raster);
   Pflanzen, Schild und Namen stehen aufrecht davor. Das erste Beet setzt die Erde der Szene fort und kippt nicht. */
.gWorld > .gBed:not(:nth-child(2)) .gBedSoil {
  isolation: isolate;
  background: transparent !important;
  box-shadow: none !important;
}
.gWorld > .gBed:not(:nth-child(2)) .gBedSoil::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 18px;
  background: var(--g-soil);
  box-shadow: inset 0 0 0 3px var(--g-soil-hi), inset 0 10px 18px rgba(0, 0, 0, 0.2);
  transform: perspective(900px) rotateX(30deg);
  transform-origin: 50% 100%;
}

/* ---------- Familienbeet (familygarden.js) ---------- */
/* Erstes Beet unter der Szene: setzt die Erde des Hügels fort. Raster: Mitglieder links/rechts, Familienbaum in der Mitte. */
.fgBed .fgSoil { padding: calc(30px * var(--an-scale, 1)) 10px 14px; }
.fgGrid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 6px;
  align-items: end;
}
.fgCol { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.fgMember { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; max-width: 100%; }
.fgPic { width: calc(70px * var(--an-scale, 1)); aspect-ratio: 100 / 120; position: relative; }
.fgPic svg, .fgTreePic svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* Eigene Pflanze: heller Lichtkreis im Boden (kein Rahmen, kein Zähler) */
.fgMember.me .fgPic::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: 0; height: 26%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 160, 0.55), rgba(255, 236, 160, 0));
}
.fgName {
  margin-top: 2px;
  font-weight: 800;
  font-size: calc(13px * var(--an-scale, 1));
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  overflow-wrap: break-word;
}
.fgLine {
  margin-top: 2px;
  font-size: calc(12px * var(--an-scale, 1));
  line-height: 1.25;
  font-weight: 700;
  color: #ffeaa0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.fgMember.reached .fgPic { filter: drop-shadow(0 0 6px rgba(255, 224, 122, 0.7)); }
.fgTree { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.fgTreePic { position: relative; width: 100%; max-width: calc(150px * var(--an-scale, 1)); aspect-ratio: 100 / 120; }
.fgTreeLine, .fgTreeCount {
  font-size: calc(12.5px * var(--an-scale, 1));
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.fgTreeCount { font-weight: 600; opacity: 0.9; font-size: calc(11.5px * var(--an-scale, 1)); }
/* Knospen: eine je Mitglied, das sein Ziel geschafft hat (ohne Namen) */
.fgBuds { position: absolute; inset: 0; pointer-events: none; }
.fgBud {
  position: absolute;
  width: 11%; aspect-ratio: 1;
  border-radius: 50% 50% 50% 0;
  background: #f7a1c4;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.12);
  transform: rotate(-45deg);
  animation: fgBudIn 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.fgBud:nth-child(1) { left: 30%; top: 22%; }
.fgBud:nth-child(2) { left: 58%; top: 18%; }
.fgBud:nth-child(3) { left: 44%; top: 8%; }
.fgBud:nth-child(4) { left: 22%; top: 38%; }
.fgBud:nth-child(5) { left: 66%; top: 34%; }
.fgBud:nth-child(6) { left: 46%; top: 30%; }
@keyframes fgBudIn { from { transform: rotate(-45deg) scale(0); } to { transform: rotate(-45deg) scale(1); } }
.fgTree.waiting .fgTreePic { filter: drop-shadow(0 0 8px rgba(247, 161, 196, 0.55)); }
/* Blüte am Sonntagabend: fallende Blütenblätter (nur transform/opacity) */
.fgTree.bloom .fgTreePic { filter: drop-shadow(0 0 12px rgba(247, 161, 196, 0.8)); }
.fgPetals { position: absolute; inset: -10% -20% 0; pointer-events: none; overflow: visible; }
.fgPetal {
  position: absolute;
  top: 10%;
  left: calc(8% + var(--i) * 6%);
  width: 8px; height: 6px;
  border-radius: 60% 40% 60% 40%;
  background: #f7a1c4;
  opacity: 0;
  animation: fgPetal 4.2s ease-in calc(var(--i) * 0.31s) infinite;
}
.fgPetal:nth-child(3n) { background: #ffd1e3; }
@keyframes fgPetal {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(14px, 120px) rotate(320deg); }
}
.fgLead {
  margin: 8px 0 0;
  text-align: center;
  font-weight: 700;
  font-size: calc(13px * var(--an-scale, 1));
  color: var(--g-ink, #2f4a3a);
}
.fgStale { font-weight: 500; opacity: 0.75; }
/* Paket am Gartentor (48 × 48), bereit = leuchtet sanft – kein Wackeln, kein Zähler */
.fgPkg {
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: 48px; height: 48px; min-height: 0;
  padding: 0; border: 0; border-radius: 12px;
  background: none;
  cursor: pointer;
  z-index: 3;
}
.fgPkg svg { width: 100%; height: 100%; display: block; }
.fgPkg.waiting svg { filter: saturate(0.85); }
.fgPkg.ready { animation: fgGlow 2.6s ease-in-out infinite; }
@keyframes fgGlow { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 209, 102, 0.5)); } 50% { filter: drop-shadow(0 0 10px rgba(255, 209, 102, 1)); } }
.fgPkg:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fgMsg { font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .fgBud, .fgPetal, .fgPkg.ready { animation: none !important; }
  .fgPetal { opacity: 0.8; }
}
html.vCalm .fgPetal { opacity: 0.8; }
/* ---------- Eltern-Konsole: Wochenziele ---------- */
.faWeekGoals .fwList { display: grid; gap: 10px; margin: 12px 0; }
.fwRow { display: grid; grid-template-columns: minmax(7em, 1fr) 2fr; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f4f8f3; }
.fwName { font-weight: 800; }
.fwCtl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fwCtl select { flex: 1 1 14em; min-width: 0; }
.fwCtl .fwN { width: 5.5em; }
.fwHave { grid-column: 2; }
@media (max-width: 560px) { .fwRow { grid-template-columns: 1fr; } .fwHave { grid-column: 1; } }
.fwPkg { margin-top: 18px; display: grid; gap: 10px; }
.fwPkg h3 { margin: 0; }
.fwPkgState { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: #fff8e6; }
.fwPkgState > div { display: grid; gap: 2px; }
.fwPkgIcon { font-size: 30px; line-height: 1; }
.fwMessage { min-height: 3.2em; resize: vertical; }

/* Paket am Tor: kein allgemeiner Knopf-Kasten (weiße Fläche, Rahmen, Schatten), nur das Paket */
.gdn .gSceneWrap .fgPkg {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: calc(52px * var(--an-scale, 1)) !important;
  height: calc(52px * var(--an-scale, 1)) !important;
  padding: 0 !important;
}
.gdn .gSceneWrap .fgPkg svg { width: 100% !important; height: 100% !important; }
/* Familienbeet: keine leere Erdfläche – das Beet ist so hoch wie Baum und Pflanzen */
.gWorld > .fgBed .gBedSoil.fgSoil { min-height: 0 !important; }
.fgTreePic { max-width: calc(170px * var(--an-scale, 1)); }
/* Familienbaum als Mitte des Beets: die Zeichnung füllt ihren Platz (Wurzel bleibt am Boden) */
.fgTreePic > svg { transform: scale(1.75); transform-origin: 50% 93%; }
.fgTree.waiting .fgTreePic > svg, .fgTree.bloom .fgTreePic > svg { transform: scale(1.45); }
.fgPic > svg { transform: scale(1.25); transform-origin: 50% 93%; }

/* Paket-Auswahl der Wochenziel-Karte (eigene Klassen, damit sie nicht mit „Einmalig belohnen“ verwechselt wird) */
.fwGifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(118px, 100%), 1fr)); gap: 8px; }
#journeyHub .fwGift { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px 8px; border-radius: 16px; border: 2px solid #e6eeea; background: #fff; cursor: pointer; font: inherit; color: var(--kumi-earth); min-height: 92px; box-shadow: none; }
#journeyHub .fwGift.on { border-color: #e07a5f; background: #fff3ee; box-shadow: inset 0 0 0 1px #e07a5f; }
.fwGiftIcon { font-size: 1.8rem; line-height: 1; }
.fwGiftText { font-size: 0.82rem; font-weight: 700; line-height: 1.2; }
.fwCtl .fwN { max-width: 120px; }
.fwRepeat { display: flex !important; gap: 10px; align-items: center; }
.fwRepeat input[type="checkbox"] { width: 22px !important; height: 22px !important; min-height: 0 !important; flex: none; margin: 0; }
/* z28 · gezeichnete Landschaft: Gartenhaus (Sammelalbum) und Tor liegen im Bild an anderer Stelle als in der alten Zeichnung */
.gArtScene .gShed { left: 15%; top: 52%; width: 14%; height: 22%; }
.gArtScene .gGate { left: 54%; bottom: 3%; }
.gdn .gArtScene .fgPkg { right: 13% !important; bottom: 14% !important; }
.gArtScene .gSky { background: #cfe0c8; }
.gArtScene .gSky { background-color: #cfe0c8; background-size: cover; background-position: center 62%; background-repeat: no-repeat; }
/* z28 · gezeichneter Familienbaum */
.fgTreeArtPic { position: relative; display: grid; place-items: end center; }
.fgTreeArt { width: calc(150px * var(--an-scale, 1)); max-width: 100%; height: auto; display: block; }
.fgTree.bloom .fgTreeArt { animation: fgTreeIn var(--m-grow, 600ms) var(--m-grow-ease, cubic-bezier(.34,1.56,.64,1)) both; transform-origin: 50% 95%; }
@keyframes fgTreeIn { from { transform: scale(.92); } to { transform: none; } }
html.vCalm .fgTree.bloom .fgTreeArt { animation: none; }
@media (prefers-reduced-motion: reduce) { .fgTree.bloom .fgTreeArt { animation: none; } }
/* z28 · Sammelalbum mit gezeichneten Tieren */
.gFindIcon .gFindArt { width: 44px; height: 44px; object-fit: contain; }
.gFindIcon .gFindArt.locked { filter: grayscale(1) brightness(0.35); opacity: 0.35; }
/* z28: Wochenziele nutzen am PC die volle Breite (vorher schmale Spalte mit abgeschnittenen Auswahlfeldern) */
.faChild > .faWeekGoals { grid-column: 1 / -1; }
.faWeekGoals .fwList { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); align-items: start; }

/* ===== z30: Jahreszeiten, Ferien, Klassenarbeits-Beet, Sonntags-Ritual ===== */
/* Ferien: ehrliches Erholungsversprechen oben, Tropfen „ruht“, Beete unter der Decke */
.gHoliday { margin: 0 0 10px; padding: 12px 16px; border-radius: 16px; background: #fff7e8; border: 1px solid #f0dcb4; color: #6a4a22; font-weight: 600; line-height: 1.45; }
.gDrop.rest { background: #eef1f7; color: #6b7891; }
.gDrop.rest .gDropIcon { font-size: 0.9rem; }
.gResting .gThirst, .gResting .gWaterAll { display: none; }
.gBed.gUnderQuilt .gBedSoil { position: relative; }
.gBed.gUnderQuilt .gQuilt { position: absolute; left: 4%; right: 4%; bottom: 4px; height: min(38%, 120px); z-index: 0; border-radius: 22px 22px 12px 12px; background: url("art/quilt.webp") center bottom / auto 100% repeat-x; opacity: 0.94; pointer-events: none; }
.gBed.gUnderQuilt .gCell { position: relative; z-index: 1; }
.gHoliday { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; }
.gHoliday::before { content: ""; width: 88px; aspect-ratio: 900 / 369; background: url("art/quilt.webp") center / contain no-repeat; }
/* Klassenarbeits-Beet: eigenes Schild mit Datum, Seiten-Anker an jeder Pflanze, Kumis Satz darunter */
.gBed.gExam .gBedSoil { outline: 3px dashed #e3b04b; outline-offset: -3px; }
.gBed.gExam .gSign { background: #fff2cf; border-color: #e3b04b; }
.gAnchor { display: block; margin-top: 2px; font-size: 0.72rem; font-weight: 700; color: #8a5a1f; letter-spacing: 0.01em; }
.gExamSay { margin: 10px 4px 2px; padding: 10px 14px; border-radius: 14px; background: #fffaf0; color: #4e3a1e; font-weight: 600; line-height: 1.45; }
.gBed.gExamBloom .gBedSoil { box-shadow: 0 0 0 4px #f7c8de inset, 0 0 24px #f7a1c466; }
.gBed.gExamBloom .gCell .gPic { animation: gExamBloom 1.6s ease-out 1; }
@keyframes gExamBloom { 0% { transform: scale(0.92); filter: saturate(0.8); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .gBed.gExamBloom .gCell .gPic { animation: none; } }
html.vCalm .gBed.gExamBloom .gCell .gPic { animation: none; }

/* Sonntag 18 Uhr: sanfte Einladung (unten, kein Ton) und Szene im App-Fenster */
.rtInvite { position: fixed; left: 50%; bottom: calc(var(--an-tabbar, 64px) + var(--an-safe-b, 0px) + 16px); z-index: 190; transform: translate(-50%, 12px); opacity: 0; display: flex; align-items: center; gap: 10px; min-height: 56px; max-width: min(92vw, 420px); padding: 6px 18px 6px 8px; border: 0; border-radius: 999px; background: #fff; color: var(--kumi-earth, #3a2a1e); font: inherit; font-weight: 750; box-shadow: 0 10px 30px rgba(31, 43, 36, 0.18); cursor: pointer; transition: opacity 300ms ease, transform 300ms ease; }
.rtInvite.rtIn { opacity: 1; transform: translate(-50%, 0); }
.rtInviteArt { width: 44px; height: 44px; object-fit: contain; }
.rtCard { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 4px 4px 8px; }
.rtStage { position: relative; width: min(100%, 320px); aspect-ratio: 1 / 1; border-radius: 24px; background: radial-gradient(circle at 50% 80%, #fff3d6, #ffe2c2 55%, #f7c9a8); overflow: hidden; }
.rtRest .rtStage { background: radial-gradient(circle at 50% 80%, #e7ecf7, #cfd8ec 60%, #b6c3df); }
.rtTree { position: absolute; inset: 8% 8% 18%; width: 84%; height: 74%; object-fit: contain; }
.rtTo { opacity: 0; animation: rtGrow 2.4s ease-out 0.5s forwards; }
.rtFrom { animation: rtFade 2.4s ease-out 0.5s forwards; }
@keyframes rtGrow { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes rtFade { to { opacity: 0; } }
.rtPetal { position: absolute; top: -6%; left: var(--x); width: 12px; height: 9px; border-radius: 60% 40% 60% 40%; background: #f7a1c4; transform: rotate(var(--r)); animation: rtFall 4.2s ease-in var(--d) 1 both; opacity: 0; }
@keyframes rtFall { 0% { opacity: 0; transform: translateY(0) rotate(var(--r)); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(330px) translateX(24px) rotate(calc(var(--r) + 240deg)); } }
.rtKumi { position: absolute; left: 6%; bottom: 4%; }
.rtLine { margin: 0; max-width: 34ch; font-size: 1.05rem; line-height: 1.5; color: var(--v-ink, #1f2b24); }
.rtActs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.rtActs button { min-height: 48px; min-width: 140px; }
.rtCalm .rtTo { animation: none; opacity: 1; }
.rtCalm .rtFrom { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .rtTo { animation: none; opacity: 1; } .rtFrom { animation: none; opacity: 0; } .rtPetal { display: none; } .rtInvite { transition: none; } }

/* Eltern-Konsole: Ferien */
.faHolidays .faState { max-width: 360px; }
.faOwnList { display: grid; gap: 6px; }
.faOwnRow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #f6f3ea; }
.faOwnForm { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; align-items: end; }
.faOwnForm .faAddOwn { min-height: 44px; }
/* z30: Einladungs-Beet – Fach ohne Pflanze */
.gCell.gInvite { border: 2px dashed #ffffff66; background: #ffffff14; }
.gCell.gInvite .gName { font-weight: 700; opacity: 0.95; }
.gSign .gSignArt { width: 1.5em; height: 1.5em; object-fit: contain; vertical-align: middle; }

/* ===== z31: Sonntagsgarten als Gemälde – Knospen → halb offen → volle Blüte ===== */
.rtStage.rtPaint { background: #f3d9c4; box-shadow: 0 8px 24px #4a2f1a2e; }
.rtPaint .rtTree { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rtPaint .rtFrom { animation: none; opacity: 1; }
.rtPaint .rtLayer { opacity: 0; }
.rtPaint .rtL1 { animation: rtBloomIn 1.8s ease-in-out .5s forwards; }
.rtPaint .rtL2 { animation: rtBloomIn 2.2s ease-in-out 2.1s forwards; }
@keyframes rtBloomIn { from { opacity: 0; filter: saturate(.85) brightness(.98); } to { opacity: 1; filter: none; } }
.rtPaint .rtQuilt { inset: auto 6% 4% 6%; width: 88%; height: auto; object-fit: contain; filter: drop-shadow(0 4px 8px #0003); }
.rtFirefly { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #fff6c2 0 35%, #ffd76a99 60%, transparent 72%); box-shadow: 0 0 10px 3px #ffe08a88; opacity: 0; animation: rtGlow 3.2s ease-in-out var(--d) infinite; pointer-events: none; }
@keyframes rtGlow { 0%, 100% { opacity: 0; transform: translateY(0); } 40%, 60% { opacity: .95; } 100% { transform: translateY(-18px); } }
.rtPaint .rtPetal { width: 9px; height: 7px; background: #f6b3c6; box-shadow: inset -1px -1px 0 #e48aa4; }
.rtInvite .rtInviteArt { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; }
.rtCalm .rtPaint .rtLayer, .rtCalm .rtPaint .rtL1, .rtCalm .rtPaint .rtL2 { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rtPaint .rtLayer { animation: none !important; opacity: 1 !important; } .rtFirefly { display: none; } }

/* z34b: Samen-Zeile – klein, direkt unter dem Schild */
:is(#journeyHub, body) .gSeedsMore { justify-self: start; min-height: 44px !important; padding: 0 14px; font-size: 0.92rem; font-weight: 700; color: #4a3a22; background: #fff8ec; border-color: #ead9b8; position: relative; z-index: 1; }
.gBed.gUnderQuilt .gName { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(74, 46, 26, 0.72); }
/* z42: Bei Wolken überschrieb „.gSky.w-cloud“ (background-Kurzform) Größe und Ausschnitt des Landschaftsbilds –
   man sah nur noch den Himmel oben links. Das Bild bleibt jetzt immer ganz sichtbar (Wetter kommt als Wolke darüber). */
.gArtScene .gSky.gSky { background-size: cover !important; background-position: center 62% !important; background-repeat: no-repeat !important; }

/* z42: Ferien-Decke neu – eine ganze Decke (vorher gekachelt und an den Seiten abgeschnitten), Pflanzen darunter
   verborgen; antippen hebt sie an (.gPeek). Kein leerer Erd-Streifen mehr über der Decke. */
#journeyHub .gBed.gUnderQuilt .gQuilt, .gBed.gUnderQuilt .gQuilt {
  position: relative; inset: auto; display: grid; place-items: end center; width: min(94%, 520px); height: auto; aspect-ratio: 900 / 369;
  margin: 6px auto 2px; padding: 0 0 2% !important; border: 0 !important; border-radius: 0; box-shadow: none !important;
  background: url("art/quilt.webp") center bottom / contain no-repeat transparent !important; opacity: 1; pointer-events: auto; cursor: pointer; min-height: 0 !important;
  transition: transform .35s ease, opacity .35s ease; }
.gBed.gUnderQuilt .gQuilt:active { transform: scale(.98); }
.gBed.gUnderQuilt .gQuiltNote { display: inline-block; margin: 0 8px; padding: 3px 10px; border-radius: 999px; background: rgba(60, 38, 22, 0.78); color: #fff8ec; font-size: .78rem; font-weight: 700; line-height: 1.3; transform: translateY(55%); text-align: center; }
.gBed.gUnderQuilt:not(.gPeek) :is(.gdGrid, .gSeedsMore, .gMore, .gSeedBtn) { display: none !important; }
.gBed.gUnderQuilt:not(.gPeek) .gBedSoil { min-height: 0 !important; padding-top: 10px; padding-bottom: 10px; }
#journeyHub .gBed.gUnderQuilt.gPeek .gQuilt, .gBed.gUnderQuilt.gPeek .gQuilt { aspect-ratio: auto !important; width: auto; height: auto !important; margin: 4px auto 8px; background: none !important; place-items: center; padding: 0 !important; }
.gBed.gUnderQuilt.gPeek .gQuiltNote { transform: none; }

/* z43: echtes Wetter über der Landschaft (Schicht .gWx), Temperatur-Schild oben rechts */
.gSky .gWx { position: absolute; inset: 0; pointer-events: none; z-index: 1; border-radius: inherit; overflow: hidden; }
.gSky .gWxChip { position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.82); color: #2c3a33; font-weight: 800; font-size: .8rem; box-shadow: 0 1px 3px rgba(0,0,0,.15); pointer-events: none; }
.gSky.wx-cloud .gWx, .gSky.wx-rain .gWx, .gSky.wx-storm .gWx, .gSky.wx-snow .gWx { background: linear-gradient(180deg, rgba(120, 132, 148, 0.55), rgba(150, 160, 172, 0.25) 55%, rgba(0,0,0,0) 85%); }
.gSky.wx-partly .gWx { background: linear-gradient(180deg, rgba(200, 208, 218, 0.38), rgba(0,0,0,0) 55%); }
.gSky.wx-storm .gWx { background: linear-gradient(180deg, rgba(60, 66, 84, 0.7), rgba(90, 96, 112, 0.35) 60%, rgba(0,0,0,0) 90%); }
.gSky.wx-fog .gWx { background: linear-gradient(180deg, rgba(240, 242, 245, 0.25), rgba(236, 239, 242, 0.7) 55%, rgba(236, 239, 242, 0.45)); }
.gSky.wx-sun .gWx { background: radial-gradient(circle at 85% 8%, rgba(255, 226, 140, 0.45), rgba(255, 226, 140, 0) 45%); }
.gSky.wx-rain .gWx::after, .gSky.wx-storm .gWx::after, .gSky.wx-snow .gWx::after { content: ""; position: absolute; inset: -40px 0 0; }
.gSky.wx-rain .gWx::after, .gSky.wx-storm .gWx::after {
  background-image: repeating-linear-gradient(105deg, rgba(220, 232, 255, 0) 0 9px, rgba(220, 232, 255, 0.55) 9px 10px, rgba(220, 232, 255, 0) 10px 23px);
  background-size: 100% 40px; animation: gRain .55s linear infinite; opacity: .8; }
.gSky.wx-snow .gWx::after {
  background-image: radial-gradient(circle, #fff 1.6px, transparent 2.2px), radial-gradient(circle, rgba(255,255,255,.85) 1.1px, transparent 1.7px);
  background-size: 34px 34px, 22px 22px; background-position: 0 0, 11px 7px; animation: gSnow 5s linear infinite; }
@keyframes gRain { to { transform: translateY(40px); } }
@keyframes gSnow { to { background-position: 10px 34px, 0 29px; } }
.gSky.wx-storm .gWx::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; animation: gFlash 7s steps(1) infinite; }
@keyframes gFlash { 0%, 91%, 93%, 100% { opacity: 0; } 92% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gSky .gWx::after, .gSky .gWx::before { animation: none !important; } }
.gArtScene .gShed { min-height: 44px !important; min-width: 44px !important; } /* z45: Tippfläche Sammelalbum */
/* z48: Beschriftung unter dem Gieß-Ring */
.gRingLabel { position: absolute; z-index: 4; top: calc(100% + 3px); left: 0; white-space: nowrap; font-size: 11px; font-weight: 800; line-height: 1.3; color: #1f3c2e; background: #fffdf6e6; border-radius: 999px; padding: 1px 7px; pointer-events: none; }
