/* ---------- Grundlagen ---------- */
:root {
  --creme: #fff6e6;
  --hintergrund: #ffe9c7;
  --braun: #6b4226;
  --braun-hell: #b98a5e;
  --akzent: #ff7a59;
  --akzent-dunkel: #d9532f;
  --feld: #fbe3bd;
  --feld-rand: #efcf9d;
  --gruen: #5fc27a;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--hintergrund);
  color: var(--braun);
  font-family: "Arial Rounded MT Bold", "Nunito", "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

#app {
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Kopf: Maskottchen + Sprechblase ---------- */
.kopf { display: flex; align-items: center; gap: 10px; flex: none; }

.maskottchen {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--braun);
  box-shadow: 0 4px 0 var(--braun-hell);
  display: grid; place-items: center;
  font-size: 32px;
  animation: wippen 3s ease-in-out infinite;
}
.maskottchen .grafik-bild { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.sprechblase {
  position: relative;
  flex: 1;
  min-height: 48px;
  display: flex; align-items: center;
  background: #fff;
  border: 3px solid var(--braun);
  border-radius: 18px;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.25;
}
.sprechblase::before {
  content: "";
  position: absolute; left: -9px; top: 50%;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 3px solid var(--braun);
  border-bottom: 3px solid var(--braun);
  transform: translateY(-50%) rotate(45deg);
}
.sprechblase.neu { animation: blase .35s ease-out; }

/* ---------- Werte ---------- */
.werte { display: flex; gap: 8px; flex: none; }
.wert {
  flex: 1;
  background: var(--creme);
  border: 3px solid var(--braun);
  border-radius: 14px;
  padding: 4px 8px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.wert-name { font-size: 12px; opacity: .75; }
.wert-zahl { font-size: 20px; font-variant-numeric: tabular-nums; }

.werte { gap: 6px; }
.wert { padding: 3px 7px; gap: 4px; min-width: 0; }
.wert:nth-child(2) { flex: 1.6; }
.wert-name .grafik { font-size: 15px; }
.wert-name .grafik-bild { width: 18px; height: 18px; }
.wert-zahl { font-size: 18px; }

/* ---------- Levelzeile ---------- */
.levelzeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; }
.level-knopf {
  font: inherit; font-size: 13px; color: var(--braun);
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.rest { font-size: 12px; opacity: .75; white-space: nowrap; }

/* ---------- Restaurant (Wand, Boden, Deko) ---------- */
.restaurant {
  --wand: #ecd2a6; --boden: #b98a5e; --tisch: #b98a5e;
  position: relative; flex: none;
  padding: 16px 6px 6px;
  background: var(--wand);
  border: 3px solid var(--braun);
  border-bottom: 9px solid var(--boden);
  border-radius: 18px;
  box-shadow: 0 3px 0 var(--braun);
}
.deko { position: absolute; z-index: 2; line-height: 1; pointer-events: none; }
.deko-lampe { top: -2px; font-size: 17px; transform: translateX(-50%); }
.deko-lampe.l1 { left: 33.8%; }
.deko-lampe.l2 { left: 66.2%; }
.deko-pflanze { bottom: -10px; font-size: 18px; }
.deko-pflanze.p1 { left: -3px; }
.deko-pflanze.p2 { right: -3px; }
.deko .grafik-bild { width: 20px; height: 20px; }

/* ---------- Meldungen ---------- */
.meldungen {
  position: fixed; z-index: 200; left: 0; right: 0;
  top: calc(8px + env(safe-area-inset-top));
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; padding: 0 12px;
}
.meldung {
  max-width: 440px;
  background: #fff; color: var(--braun);
  border: 3px solid var(--braun); border-radius: 16px;
  box-shadow: 0 4px 0 var(--braun);
  padding: 7px 14px; font-size: 14px; text-align: center;
  animation: meldung 3s ease-in-out both;
}

/* ---------- Gäste ---------- */
.gaeste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: none; }
.gast {
  position: relative;
  font: inherit; color: var(--braun);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center; justify-items: center;
  column-gap: 4px;
  min-height: 70px;
  padding: 5px 6px 4px;
  background: #fff;
  border: 3px solid var(--braun);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--tisch, var(--braun-hell));
  cursor: pointer;
  touch-action: manipulation;
}
.wunsch.liebling { border-color: #e8557a; background: #ffe3ea; }
.gast.leer { background: transparent; border-style: dashed; border-color: var(--braun-hell); box-shadow: none; opacity: .5; }
.gast-bild { font-size: 30px; line-height: 1; }
.gast-bild .grafik-bild { width: 38px; height: 38px; }
.wunsch {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 24px; line-height: 1;
  background: #fff3c4;
  border: 3px solid #f5a623;
  border-radius: 50% 50% 50% 12%;
}
.wunsch .grafik-bild { width: 28px; height: 28px; }
.gast-name { font-size: 12px; white-space: nowrap; }
.gast-herz {
  position: absolute; top: -7px; left: -5px;
  font-size: 10px; color: #fff; background: #e8557a;
  border: 2px solid #fff; border-radius: 9px; padding: 1px 5px;
}
.gast-lohn { font-size: 11px; opacity: .85; white-space: nowrap; }
.gast-lohn .grafik { font-size: 10px; }
.gast-lohn .grafik-bild { width: 11px; height: 11px; }

.gast.bereit { border-color: var(--gruen); box-shadow: 0 4px 0 #3f9a59; animation: pulsieren 1s ease-in-out infinite; }
.gast.partner { animation: wackeln .5s ease-in-out infinite; }
.gast.ziel { background: #fff6e6; }
.gast.ziel-passt { background: #d8ffe0; border-color: var(--gruen); transform: scale(1.06); }
.gast.kommt { animation: kommt .45s cubic-bezier(.3, 1.4, .5, 1); }
.gast.nein { animation: schuetteln .3s; }

/* ---------- Brett ---------- */
.brett-rahmen {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  container-type: size;
}

.brett {
  --spalten: 6; --zeilen: 8;
  /* so gross wie möglich, ohne das Seitenverhältnis zu verlieren */
  width: min(100cqw, calc(100cqh * var(--spalten) / var(--zeilen)));
  aspect-ratio: var(--spalten) / var(--zeilen);
  display: grid;
  grid-template-columns: repeat(var(--spalten), 1fr);
  grid-template-rows: repeat(var(--zeilen), 1fr);
  gap: 1.2%;
  padding: 1.6%;
  background: var(--braun-hell);
  border: 4px solid var(--braun);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--braun);
  touch-action: none;
  container-type: inline-size;
}
.brett.voll { animation: schuetteln .35s; }

.feld {
  position: relative;
  background: var(--feld);
  border-radius: 22%;
  box-shadow: inset 0 3px 0 var(--feld-rand);
  min-width: 0; min-height: 0;
}
.feld.ziel { background: #fff; box-shadow: inset 0 0 0 3px var(--braun-hell); }
.feld.ziel-passt { background: #d8ffe0; box-shadow: inset 0 0 0 4px var(--gruen); }

/* ---------- Stein (Zutat) ---------- */
.stein {
  position: absolute; inset: 5%;
  display: grid; place-items: center;
  background: var(--farbe, #fff);
  border: 3px solid var(--rand, #999);
  border-radius: 30%;
  box-shadow: 0 3px 0 var(--rand, #999);
  font-size: 8cqw;
  line-height: 1;
  pointer-events: none;
}
.stein .grafik { transform: translateY(-12%); }
.stein .grafik-bild { width: 78%; height: 78%; object-fit: contain; }

/* kleines Gesicht */
.gesicht {
  position: absolute; left: 50%; bottom: 7%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: .16em;
  font-size: .5em;
}
.gesicht .auge {
  width: .2em; height: .2em; border-radius: 50%;
  background: var(--braun);
}
.gesicht .mund {
  width: .3em; height: .16em;
  border: .07em solid var(--braun);
  border-top: 0;
  border-radius: 0 0 .3em .3em;
  margin-top: .1em;
}

/* Stufen-Abzeichen */
.stufe {
  position: absolute; top: -8%; right: -8%;
  min-width: 1.5em; height: 1.5em;
  display: grid; place-items: center;
  font-size: .3em;
  color: #fff;
  background: var(--braun);
  border: .14em solid #fff;
  border-radius: 50%;
}

.stufe.stern { background: #f5a623; font-size: .34em; }

/* Zwischenprodukte: helle Teller */
.stein.produkt { --farbe: #fff; --rand: #c9a27c; border-radius: 50%; }
/* Fertige Gerichte: goldener Teller */
.stein.gericht {
  --farbe: #fff3c4; --rand: #f5a623;
  box-shadow: 0 3px 0 var(--rand), 0 0 0 3px rgba(245, 166, 35, .25);
}
/* Werkzeuge: stehen fest auf dunklem Feld */
.feld-werkzeug { background: #8a6a4d; box-shadow: inset 0 3px 0 #6b4f38; }
.stein.werkzeug {
  --farbe: #f1f3f6; --rand: #55606e;
  border-radius: 24%;
  border-style: solid;
}
.stein.werkzeug .grafik { transform: none; }
/* Kisten: versperren ein Feld */
.feld-sperre { background: #a98560; box-shadow: inset 0 3px 0 #8a6a4d; }
.stein.sperre { --farbe: #d9b98c; --rand: #8a6a4d; border-radius: 18%; }
.stein.sperre .grafik { transform: none; }
/* Chef-Level: ein Gast, breite Karte */
.gaeste.chef .gast { grid-template-columns: auto auto 1fr auto; column-gap: 10px; border-color: #f5a623; }
.gaeste.chef .gast-name { font-size: 15px; justify-self: start; }
.gaeste.chef .gast-lohn { font-size: 13px; }
.gaeste.chef .gast-bild { grid-row: 1; }
.gaeste.chef .wunsch { grid-row: 1; }

.stein.unterwegs { opacity: .25; }
.stein.jubel { animation: jubel .7s cubic-bezier(.3, 1.6, .5, 1); z-index: 2; }
.stein.arbeiten { animation: arbeiten .45s ease-in-out; }
.stein.nein { animation: schuetteln .3s; }
.stein.partner { animation: wackeln .5s ease-in-out infinite; }
.stein.plopp { animation: plopp .32s cubic-bezier(.3, 1.6, .5, 1); }
.stein.landen { animation: landen .18s ease-out; }

.stein.geist {
  position: fixed; left: 0; top: 0; inset: auto;
  left: 0; top: 0;
  z-index: 50;
  opacity: .95;
  box-shadow: 0 10px 14px rgba(107, 66, 38, .35);
  will-change: transform;
}

/* fliegende Punkte */
.flug {
  position: fixed; z-index: 60;
  transform: translate(-50%, 0);
  font-size: 22px; color: var(--akzent-dunkel);
  text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff;
  pointer-events: none;
  animation: flug .9s ease-out forwards;
}

/* ---------- Fuss: Knöpfe ---------- */
.fuss { display: flex; gap: 7px; flex: none; }
.fuss .knopf-haupt { padding: 6px 8px; gap: 6px; font-size: 18px; min-width: 0; }

.knopf {
  font: inherit; color: var(--braun);
  border: 4px solid var(--braun);
  border-radius: 20px;
  min-height: 60px;
  padding: 6px 14px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .06s, box-shadow .06s;
}
.knopf:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--braun) !important; }

.knopf-neben {
  background: var(--creme); box-shadow: 0 5px 0 var(--braun);
  font-size: 11px; padding: 4px 6px; min-width: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.knopf-bild { font-size: 22px; line-height: 1; }

/* ---------- Fenster (Rezepte) ---------- */
.fenster {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(107, 66, 38, .55);
  display: grid; place-items: center;
  padding: calc(16px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom));
}
.fenster[hidden] { display: none; }
.fenster-karte {
  width: 100%; max-width: 480px; max-height: 100%;
  display: flex; flex-direction: column;
  background: var(--creme);
  border: 4px solid var(--braun);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--braun);
  overflow: hidden;
  animation: plopp .25s cubic-bezier(.3, 1.4, .5, 1);
}
.fenster-kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 16px;
  background: var(--akzent); color: #fff;
  border-bottom: 4px solid var(--braun);
}
.fenster-kopf h2 { margin: 0; font-size: 22px; }
.knopf-zu {
  min-height: 0; width: 44px; height: 44px; padding: 0;
  background: #fff; font-size: 20px; border-radius: 50%;
  box-shadow: 0 3px 0 var(--braun);
}
.fenster-inhalt {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.rezept {
  background: #fff;
  border: 3px solid var(--braun-hell);
  border-radius: 16px;
  padding: 10px 12px;
}
.rezept.bestellt { border-color: #f5a623; background: #fffaf0; }
.rezept-stand { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .9; margin-bottom: 4px; }

/* ---------- Mein Restaurant ---------- */
.fenster-karte.hoch { height: 100%; }
.kopf-muenzen {
  margin-left: auto; margin-right: 8px; white-space: nowrap;
  background: #fff; color: var(--braun); border-radius: 12px; padding: 3px 10px; font-size: 15px;
}
.fenster-kopf h2 { white-space: nowrap; }
.fenster-karte.hoch .fenster-kopf h2 { font-size: 18px; }
.reiter-leiste {
  flex: none; display: flex; gap: 6px; padding: 8px 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  background: #ffe9c7; border-bottom: 3px solid var(--braun-hell);
}
.reiter-leiste::-webkit-scrollbar { display: none; }
.reiter {
  flex: none; font: inherit; font-size: 11px; color: var(--braun);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 62px; padding: 5px 8px;
  background: #fff; border: 3px solid var(--braun-hell); border-radius: 14px; cursor: pointer;
}
.reiter.aktiv { border-color: var(--braun); background: var(--akzent); color: #fff; }
.reiter-bild { font-size: 20px; line-height: 1.1; }

.abschnitt { margin: 4px 0 0; font-size: 18px; }
.abschnitt-text { margin: 0; font-size: 12.5px; opacity: .8; line-height: 1.35; }
.gruppe { margin: 6px 0 -4px; font-size: 14px; }

.karte {
  background: #fff; border: 3px solid var(--braun-hell); border-radius: 16px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
}
.karte.zeile { flex-direction: row; align-items: center; gap: 10px; }
.karte.erledigt { background: #effbf1; border-color: var(--gruen); }
.karte-kopf { display: flex; align-items: center; gap: 10px; }
.karte-mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.karte-name { font-size: 15px; flex: 1; }
.karte-lohn { font-size: 13px; white-space: nowrap; color: #3f9a59; }
.menue-zeile { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 10px; }
.punkte-reihe { font-size: 12px; letter-spacing: 3px; color: var(--akzent); }
.herzen { font-size: 18px; color: #e8557a; white-space: nowrap; }
.geschichte { margin: 0; font-size: 13px; line-height: 1.4; background: var(--creme); border-radius: 10px; padding: 6px 9px; }
.geschichte.zu { opacity: .6; font-style: italic; }
.abzeichen { font-size: 30px; line-height: 1; flex: none; }
.abzeichen.grau { filter: grayscale(1); opacity: .45; }

.balken {
  position: relative; height: 18px; border-radius: 9px;
  background: #f0e2cc; overflow: hidden;
}
.balken-fuellung { position: absolute; inset: 0 auto 0 0; background: var(--gruen); border-radius: 9px; transition: width .3s; }
.balken-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; }

.auswahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.auswahl.zwei { grid-template-columns: repeat(2, 1fr); }
.wahl {
  background: #fff; border: 3px solid var(--braun-hell); border-radius: 16px;
  padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
}
.wahl.aktiv { border-color: var(--gruen); background: #effbf1; }
.wahl-bild {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px; line-height: 1;
  background: var(--creme); border: 3px solid var(--feld-rand);
}
.wahl-bild.gross { width: 64px; height: 64px; font-size: 40px; border-radius: 50%; }
.wahl-bild .grafik-bild { width: 80%; height: 80%; object-fit: contain; }
.wahl-name { font-size: 12.5px; line-height: 1.2; }
.wahl-hinweis { font-size: 11px; opacity: .75; line-height: 1.25; }
.kauf {
  font: inherit; font-size: 13px; color: #fff; white-space: nowrap;
  background: var(--akzent); border: 3px solid var(--braun); border-radius: 12px;
  padding: 5px 10px; min-height: 36px; cursor: pointer; box-shadow: 0 3px 0 var(--braun);
}
.kauf.besitzt { background: #fff; color: var(--braun); }
.kauf.teuer { background: #d8c7b0; }
.kauf.aktiv { background: none; border-color: transparent; box-shadow: none; color: #3f9a59; }

.album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.album-feld {
  background: #fff; border: 3px solid var(--braun-hell); border-radius: 14px;
  padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
}
.album-feld.selten { border-color: #b57edc; background: #faf3ff; }
.album-feld.fehlt { background: #f3e9d9; opacity: .7; }
.album-bild { font-size: 26px; line-height: 1.1; height: 30px; }
.album-bild .grafik-bild { width: 28px; height: 28px; }
.album-name { font-size: 10px; line-height: 1.15; overflow-wrap: anywhere; }

/* Level geschafft */
.sterne-gross { text-align: center; font-size: 56px; line-height: 1; letter-spacing: 6px; }
.sterne-gross .an { display: inline-block; color: #f5a623; text-shadow: 0 3px 0 #c97f0e; animation: jubel .6s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.sterne-gross .aus, .sterne-klein .aus { color: #e3d3bd; }
.sterne-klein { font-size: 18px; letter-spacing: 1px; white-space: nowrap; }
.sterne-klein .an { color: #f5a623; }
.ergebnis .kopfzeile { font-size: 12px; opacity: .7; text-align: right; }
.ergebnis .best { text-align: right; opacity: .8; min-width: 62px; }
.ergebnis .best.neu { color: #3f9a59; opacity: 1; }
.ergebnis .best.neu::after { content: " ▲"; font-size: 11px; }
.neuer-bestwert {
  margin: 0; text-align: center; font-size: 16px; color: #fff;
  background: var(--gruen); border-radius: 12px; padding: 6px;
  animation: blase .4s ease-out;
}
.bestwert-summe {
  text-align: center; font-size: 13px;
  background: #fff3c4; border: 3px solid #f5a623; border-radius: 14px; padding: 6px 10px;
}
.kuechen { display: flex; flex-wrap: wrap; gap: 6px; }
.kueche {
  font: inherit; font-size: 14px; color: var(--braun);
  background: #fff; border: 3px solid var(--braun-hell); border-radius: 14px;
  padding: 6px 12px; min-height: 40px; cursor: pointer;
}
.kueche.aktiv { background: var(--akzent); color: #fff; border-color: var(--braun); }
.kueche.gesperrt { opacity: .65; }
.kueche.bald { border-style: dashed; opacity: .5; font-size: 12px; display: flex; align-items: center; cursor: default; }
.level-name small { display: block; font-size: 11.5px; opacity: .7; margin-top: 1px; }
.kauf.gefahr { background: #d9534f; align-self: flex-start; }
.ergebnis {
  display: grid; grid-template-columns: 1fr auto auto; gap: 6px 12px;
  background: #fff; border: 3px solid var(--braun-hell); border-radius: 16px;
  padding: 10px 14px; font-size: 16px;
}
.ergebnis b { text-align: right; }
.tipp { margin: 0; text-align: center; font-size: 14px; opacity: .85; }
.knopf-reihe { display: flex; gap: 10px; }
.knopf-reihe .knopf { flex: 1; min-height: 54px; font-size: 17px; box-shadow: 0 5px 0 var(--braun); }
.knopf-hell { background: #fff; }
.knopf-stark { background: var(--gruen); color: #fff; }

/* Levelwahl */
.level-eintrag {
  font: inherit; color: var(--braun); text-align: left;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 3px solid var(--braun-hell); border-radius: 16px;
  padding: 8px 12px; min-height: 56px; cursor: pointer;
}
.level-eintrag.aktuell { border-color: var(--akzent); background: #fff3ee; }
.level-eintrag.gesperrt { opacity: .5; cursor: default; }
.level-nr {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--akzent); color: #fff; border-radius: 50%; font-size: 17px;
}
.level-eintrag.gesperrt .level-nr { background: #d8c7b0; }
.level-name { flex: 1; font-size: 16px; }

.flug.lohn { font-size: 16px; white-space: nowrap; color: #3f9a59; }

.rezept h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.rezept h3 .grafik { font-size: 24px; }
.rezept h3 .grafik-bild { width: 28px; height: 28px; }
.gekocht-marke {
  margin-left: auto; font-size: 13px; color: #fff;
  background: var(--gruen); border-radius: 10px; padding: 2px 8px;
}
.rezept ol { margin: 0; padding-left: 22px; font-size: 13px; }
.rezept li { margin: 5px 0; }
.rezept li, .ketten-zeile { line-height: 1.9; }
.ketten-zeile { font-size: 13px; }
.plaettchen {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--creme); border: 2px solid var(--feld-rand);
  border-radius: 10px; padding: 0 6px; white-space: nowrap; line-height: 1.5;
}
.plaettchen .grafik-bild { width: 16px; height: 16px; }
.zeichen { margin: 0 4px; opacity: .7; }
.knopf-haupt {
  flex: 1;
  background: var(--akzent); color: #fff;
  box-shadow: 0 5px 0 var(--braun);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 20px; text-align: left; line-height: 1.1;
}
.knopf-haupt small { font-size: 13px; opacity: .95; }
.vorrat-korb { font-size: 32px; }
#naechstes .grafik { font-size: 18px; vertical-align: middle; }
#naechstes .grafik-bild { width: 20px; height: 20px; }

/* ---------- Animationen ---------- */
@keyframes plopp { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
@keyframes jubel { 0% { transform: scale(.3) rotate(-20deg); } 50% { transform: scale(1.35) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes arbeiten { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-14deg) scale(1.12); } 75% { transform: rotate(14deg) scale(1.12); } }
@keyframes meldung { 0% { opacity: 0; transform: translateY(-20px); } 8%, 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes pulsieren { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes kommt { 0% { transform: translateY(-40px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes landen { 0% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes wackeln { 0%, 100% { transform: rotate(-5deg) scale(1.04); } 50% { transform: rotate(5deg) scale(1.04); } }
@keyframes wippen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes blase { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes schuetteln { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes flug { 0% { opacity: 0; margin-top: 0; } 20% { opacity: 1; } 100% { opacity: 0; margin-top: -50px; } }

@media (prefers-reduced-motion: reduce) {
  .maskottchen, .stein.partner { animation: none; }
}

/* =====================================================================
   BILDER-LOOK (plastisch gemalt)
   Gilt, sobald in grafiken/zuordnung.js ein "bild" eingetragen ist.
   Die Bilder haben weissen Hintergrund; "multiply" lässt das Weiss
   auf hellen Flächen verschwinden, die weichen Schatten bleiben.
   ===================================================================== */
.grafik-bild { mix-blend-mode: multiply; display: block; }

body {
  background:
    radial-gradient(120% 60% at 50% 0%, #fff4dc 0%, rgba(255, 244, 220, 0) 70%),
    linear-gradient(180deg, #ffe6bf 0%, #f8d3a0 100%);
}

/* Brett: warme Holz-Arbeitsfläche mit weichen Mulden */
.brett {
  background: linear-gradient(160deg, #cfa172 0%, #b9865a 55%, #a87449 100%);
  border-width: 3px;
  box-shadow: 0 6px 0 #6b4226, 0 14px 22px rgba(107, 66, 38, .28), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.feld {
  background: linear-gradient(180deg, #f6e2c2 0%, #fdf1dc 100%);
  box-shadow: inset 0 3px 5px rgba(107, 66, 38, .22), inset 0 -1px 0 rgba(255, 255, 255, .6);
}
.feld-werkzeug { background: linear-gradient(180deg, #7a5a40 0%, #94714f 100%); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .35); }
.feld-sperre { background: linear-gradient(180deg, #9a7653 0%, #b08a63 100%); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .3); }

/* Steine mit Bild: weisser Teller, farbiger Rand der Zutaten-Familie, weicher Schatten */
.stein.mit-bild {
  background: radial-gradient(circle at 35% 25%, #ffffff 0%, #fffaf2 70%, #f7ecdb 100%);
  border-width: 2px;
  border-radius: 26%;
  box-shadow: 0 3px 0 var(--rand, #c9a27c), 0 6px 9px rgba(107, 66, 38, .28);
}
.stein.mit-bild .grafik-bild { width: 92%; height: 92%; transform: none; object-fit: contain; }
.stein.mit-bild.produkt { border-radius: 26%; --rand: #d6b48c; }
.stein.mit-bild.gericht {
  --rand: #f5a623;
  border-width: 3px;
  box-shadow: 0 3px 0 #d98c12, 0 0 0 3px rgba(245, 166, 35, .3), 0 7px 12px rgba(107, 66, 38, .3);
}
.stein.mit-bild.werkzeug { --rand: #55606e; border-width: 3px; }
.stein.mit-bild.sperre { background: #e9d2b0; --rand: #8a6a4d; }
.stein.geist.mit-bild { box-shadow: 0 14px 20px rgba(107, 66, 38, .4); }
.stufe { box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* Kopf und Werte */
.maskottchen { background: #fff; overflow: hidden; box-shadow: 0 4px 0 var(--braun-hell), 0 8px 12px rgba(107, 66, 38, .2); }
.maskottchen .grafik-bild { object-fit: contain; transform: scale(1.15) translateY(4%); border-radius: 0; }
.sprechblase, .wert { box-shadow: 0 3px 8px rgba(107, 66, 38, .12); }
.wert-name .grafik-bild { width: 22px; height: 22px; }

/* Gäste */
.gast { background: linear-gradient(180deg, #ffffff 0%, #fff8ec 100%); box-shadow: 0 4px 0 var(--tisch, var(--braun-hell)), 0 8px 12px rgba(107, 66, 38, .22); }
.gast-bild .grafik-bild { width: 46px; height: 46px; object-fit: contain; }
.wunsch { background: #fff; }
.wunsch.liebling { background: #fff; }
.wunsch .grafik-bild { width: 34px; height: 34px; }
.gast-lohn .grafik-bild { width: 14px; height: 14px; display: inline-block; vertical-align: -3px; }
.gaeste.chef .gast-bild .grafik-bild { width: 54px; height: 54px; }

/* Restaurant-Deko */
.restaurant { box-shadow: 0 3px 0 var(--braun), 0 10px 16px rgba(107, 66, 38, .2), inset 0 10px 18px rgba(255, 255, 255, .25); }
.deko .grafik-bild { width: 30px; height: 30px; }
.deko-lampe { top: -8px; }
.deko-pflanze { bottom: -12px; }

/* Knöpfe: leichter Glanz */
.knopf-haupt { background: linear-gradient(180deg, #ff9273 0%, #ff7a59 55%, #ef6442 100%); }
.knopf-neben { background: linear-gradient(180deg, #ffffff 0%, #fff1dc 100%); }
.knopf-stark { background: linear-gradient(180deg, #7ed494 0%, #5fc27a 60%, #4fb06a 100%); }
#naechstes .grafik-bild { width: 24px; height: 24px; display: inline-block; vertical-align: middle; background: #fff; border-radius: 6px; mix-blend-mode: normal; }

/* Fenster und Listen */
.plaettchen { background: #fff; }
.plaettchen .grafik-bild { width: 20px; height: 20px; display: inline-block; }
.rezept h3 .grafik-bild { width: 34px; height: 34px; }
.wahl-bild, .album-feld { background: #fff; }
.wahl-bild .grafik-bild { width: 88%; height: 88%; }
.wahl-bild.gross { overflow: hidden; }
.album-bild { height: 38px; }
.album-bild .grafik-bild { width: 38px; height: 38px; margin: 0 auto; }
.karte-name .grafik-bild, .abschnitt-text .grafik-bild { width: 20px; height: 20px; display: inline-block; vertical-align: -4px; }

/* Nachbesserungen Bilder-Look */
/* Halbtransparente oder verschobene Eltern heben "multiply" auf: dort direkt am Elternteil mischen */
#bild-muenzen, #bild-ruf { opacity: 1; mix-blend-mode: multiply; }
.deko { z-index: auto; mix-blend-mode: multiply; }
.deko .grafik-bild { width: 28px; height: 28px; mix-blend-mode: normal; }
.deko-pflanze { bottom: -15px; }
.deko-pflanze.p1 { left: -9px; }
.deko-pflanze.p2 { right: -9px; }

.gast { padding: 5px 4px 4px; column-gap: 3px; }
.gast-bild .grafik-bild { width: 42px; height: 42px; }
.wunsch { width: 38px; height: 38px; }
.wunsch .grafik-bild { width: 31px; height: 31px; }
.gast-lohn { font-size: 10px; opacity: 1; letter-spacing: -.2px; }
.gast-lohn .grafik-bild { width: 12px; height: 12px; vertical-align: -2px; }
.gaeste.chef .wunsch { width: 46px; height: 46px; }
.gaeste.chef .wunsch .grafik-bild { width: 38px; height: 38px; }

/* =====================================================================
   FIGUR UND STORY
   ===================================================================== */
.vollbild {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #ffe6bf 0%, #f6c88f 100%);
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
}
.vollbild[hidden] { display: none; }

/* Figur erstellen */
.figur-karte {
  width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--creme); border: 4px solid var(--braun); border-radius: 26px;
  box-shadow: 0 6px 0 var(--braun), 0 16px 26px rgba(107, 66, 38, .3);
  padding: 16px 14px 18px;
}
.figur-karte h2 { margin: 0; font-size: 24px; }
.figur-bild {
  width: 170px; height: 170px; flex: none; overflow: hidden;
  background: #fff; border: 4px solid var(--braun); border-radius: 50%;
  box-shadow: 0 5px 0 var(--braun-hell);
  display: grid; place-items: center; font-size: 90px;
}
.figur-bild .grafik-bild { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.figur-name {
  font: inherit; font-size: 20px; text-align: center; color: var(--braun);
  width: 100%; max-width: 260px; padding: 8px 12px;
  background: #fff; border: 3px solid var(--braun); border-radius: 16px;
  -webkit-user-select: text; user-select: text;
}
.figur-name.fehlt { border-color: #d9534f; background: #fff1f0; }
#figur-optionen { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.figur-gruppe-name { display: block; font-size: 13px; opacity: .75; margin: 0 0 3px 4px; }
.figur-reihe { display: flex; gap: 6px; }
.figur-knopf {
  flex: 1; min-width: 0; font: inherit; font-size: 13px; color: var(--braun);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 44px; padding: 4px 4px;
  background: #fff; border: 3px solid var(--braun-hell); border-radius: 14px; cursor: pointer;
}
.figur-knopf.aktiv { background: var(--akzent); color: #fff; border-color: var(--braun); box-shadow: 0 3px 0 var(--braun); }
.figur-farbe { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--braun-hell); flex: none; }
.figur-fertig { width: 100%; min-height: 56px; font-size: 20px; margin-top: 4px; box-shadow: 0 5px 0 var(--braun); }

/* Story-Szene */
.szene { padding: 0; background: #3b2a1e; display: block; cursor: pointer; }
.szene-hintergrund {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #8a6a4d 0%, #3b2a1e 100%) center / cover no-repeat;
}
.szene-hintergrund::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 24, 12, .15) 0%, rgba(40, 24, 12, .1) 40%, rgba(40, 24, 12, .75) 100%);
}
.szene-weg {
  position: absolute; z-index: 2; right: 12px; top: calc(12px + env(safe-area-inset-top));
  font: inherit; font-size: 13px; color: var(--braun);
  background: rgba(255, 255, 255, .9); border: 3px solid var(--braun); border-radius: 14px;
  padding: 6px 12px; cursor: pointer;
}
.szene-unten {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  max-width: 520px; margin: 0 auto;
  padding: 0 14px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-start;
}
.szene-unten.neu { animation: szeneRein .3s ease-out; }
.szene-figur {
  width: 190px; height: 190px; overflow: hidden; margin: 0 0 -26px 10px; position: relative; z-index: 1;
  background: #fff; border: 4px solid var(--braun); border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  display: grid; place-items: center; font-size: 100px;
}
.szene-figur[hidden] { display: none; }
.szene-figur .grafik-bild { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.szene-kasten {
  width: 100%; background: var(--creme); color: var(--braun);
  border: 4px solid var(--braun); border-radius: 22px;
  box-shadow: 0 6px 0 var(--braun);
  padding: 30px 16px 12px;
}
.szene-kasten.erzaehler { padding-top: 16px; background: #fff3d6; font-style: italic; }
.szene-wer {
  display: inline-block; font-size: 15px; color: #fff; background: var(--akzent);
  border-radius: 10px; padding: 2px 10px; margin-bottom: 6px;
}
.szene-wer[hidden] { display: none; }
.szene-kasten p { margin: 0 0 8px; font-size: 17px; line-height: 1.4; min-height: 72px; }
.szene-kasten small { font-size: 11.5px; opacity: .6; font-style: normal; }
@keyframes szeneRein { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }

/* Eigene Figur im Level-Ergebnis */
.ich-zeile { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; line-height: 1.2; }
.ich-zeile small { font-size: 12.5px; opacity: .75; }
.ich-bild {
  width: 54px; height: 54px; flex: none; overflow: hidden;
  background: #fff; border: 3px solid var(--braun); border-radius: 50%;
  display: grid; place-items: center; font-size: 30px;
}
.ich-bild .grafik-bild, .wahl-bild.gross .grafik-bild { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }

/* =====================================================================
   EIGENES LOKAL: wächst mit den Ausbaustufen
   ===================================================================== */
.lokal-zeile { display: flex; align-items: stretch; gap: 8px; flex: none; }
.lokal-zeile .restaurant { flex: 1; min-width: 0; }
.lokal-zeile.tische-1 .restaurant { flex: 0 0 44%; }
.lokal-zeile.tische-2 .restaurant { flex: 0 0 70%; }
.lokal-bild {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
  display: grid; place-items: center; font-size: 46px;
}
.lokal-bild[hidden] { display: none; }
.lokal-bild .grafik-bild { position: absolute; inset: -6% 0; margin: auto; height: 112%; width: auto; max-width: none; left: 50%; transform: translateX(-50%); }
.lokal-schild {
  position: absolute; z-index: 3; top: -9px; left: 50%; transform: translateX(-50%);
  max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 10.5px; color: #fff; background: var(--braun);
  border: 2px solid #fff; border-radius: 9px; padding: 1px 8px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .2);
}
.lokal-zeile.tische-1 .deko-lampe.l2, .lokal-zeile.tische-1 .deko-pflanze.p2 { display: none; }
.lokal-zeile.tische-1 .deko-lampe.l1 { left: 82%; }
.lokal-zeile.tische-2 .deko-lampe.l1 { left: 50%; }
.lokal-zeile.tische-2 .deko-lampe.l2 { display: none; }
.deko-lampe { top: 2px; }
.restaurant { padding-top: 18px; }

/* Reiter «Ausbau» */
.ausbau-karte { flex-direction: row; align-items: center; gap: 12px; }
.ausbau-karte.aktuell { border-color: var(--gruen); background: #effbf1; }
.ausbau-bild {
  flex: none; width: 96px; height: 96px; border-radius: 18px; overflow: hidden;
  background: #fff; border: 3px solid var(--feld-rand);
  display: grid; place-items: center; font-size: 54px;
}
.ausbau-bild .grafik-bild { width: 100%; height: 100%; object-fit: contain; }
.karte-lohn.fehlt { color: #c0392b; }
.ausbau-knopf { align-self: stretch; min-height: 54px; font-size: 17px; }

/* =====================================================================
   VERSPIELTER LOOK: Tannengrün, Rot und Creme (Berggasthaus)
   Dieser Block überschreibt das ältere, schlichte Aussehen weiter oben.
   Die Grundfarben stehen gleich hier und lassen sich an einer Stelle ändern.
   ===================================================================== */
:root {
  --tanne: #1c5441;
  --tanne-dunkel: #123a2d;
  --tanne-hell: #2f7a5c;
  --rot: #e5483d;
  --rot-dunkel: #a92a22;
  --gold: #f8b930;
  --gold-dunkel: #c98209;
  --holz: #9a5f33;
  --holz-dunkel: #5a3219;
  --akzent: #e5483d;
  --akzent-dunkel: #a92a22;
}

html, body { background: var(--tanne); }
body {
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .07) 0 2.5px, transparent 3px) 0 0 / 24px 24px,
    radial-gradient(circle at 0 0, rgba(255, 255, 255, .05) 0 2.5px, transparent 3px) 0 0 / 24px 24px,
    radial-gradient(120% 70% at 50% 100%, var(--tanne-hell) 0%, var(--tanne) 55%, var(--tanne-dunkel) 100%);
}
#app { gap: 9px; }

/* ---------- Oberer Teil: Szene des Lokals ---------- */
.oben {
  position: relative; flex: none; isolation: isolate;
  display: flex; flex-direction: column; gap: 7px;
  margin: calc(-8px - env(safe-area-inset-top)) -12px 0;
  padding: calc(8px + env(safe-area-inset-top)) 12px 9px;
  background: #3b2a1e;
  border-bottom: 11px solid var(--boden, var(--holz));
  border-radius: 0 0 26px 26px;
  box-shadow: 0 4px 0 var(--holz-dunkel), 0 12px 18px rgba(0, 0, 0, .35);
}
.oben-bild {
  position: absolute; inset: 0; z-index: -2;
  background: center 38% / cover no-repeat;
  border-radius: 0 0 16px 16px;
}
/* leichte Tönung in der gewählten Wandfarbe, oben dunkler, damit die Anzeigen gut lesbar sind */
.oben::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 0 0 16px 16px;
  background:
    linear-gradient(180deg, rgba(30, 16, 8, .5) 0%, rgba(30, 16, 8, .12) 42%, rgba(30, 16, 8, .28) 100%),
    color-mix(in srgb, var(--wand, #ecd2a6) 20%, transparent);
}
/* Glanzkante der Theke */
.oben::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: rgba(255, 255, 255, .35); border-radius: 2px; margin: 0 22px;
}

.maskottchen {
  width: 58px; height: 58px; border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--holz-dunkel), 0 6px 0 rgba(0, 0, 0, .28);
  animation: wippen 2.4s ease-in-out infinite;
}
.sprechblase {
  border: 0; border-radius: 20px; padding: 9px 13px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .28), inset 0 -3px 0 #f1e2c8;
}
.sprechblase::before { border: 0; left: -6px; }

/* ---------- Anzeigen als Pillen ---------- */
.wert {
  position: relative; align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fff3dc 100%);
  border: 0; border-radius: 999px; padding: 3px 12px 3px 10px;
  box-shadow: 0 0 0 2.5px var(--holz-dunkel), 0 5px 0 rgba(0, 0, 0, .28), inset 0 -3px 0 #f0dcba;
}
.wert-name { font-size: 11px; opacity: .8; }
.wert-zahl { font-size: 19px; color: var(--holz-dunkel); }
.wert-zahl.hups { animation: hups .45s cubic-bezier(.3, 1.8, .5, 1); display: inline-block; }
#bild-muenzen, #bild-ruf { opacity: 1; }
.wert-name .grafik-bild { width: 26px; height: 26px; margin: -4px 0 -4px -6px; }

/* ---------- Levelzeile als Schildchen ---------- */
.level-knopf {
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #ffeccd 100%);
  box-shadow: 0 0 0 2px var(--holz-dunkel), 0 3px 0 rgba(0, 0, 0, .28);
}
.rest {
  font-size: 11.5px; opacity: 1; color: #fff; padding: 4px 10px; border-radius: 999px;
  background: var(--tanne); box-shadow: 0 0 0 2px #fff, 0 3px 0 rgba(0, 0, 0, .28);
}

/* ---------- Lokal: Gäste stehen an der Theke ---------- */
.restaurant, .lokal-zeile .restaurant {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 22px 0 0;
}
.lokal-schild {
  top: -3px; font-size: 11.5px; padding: 3px 12px 4px; border: 0; border-radius: 9px;
  color: #fff6e0; text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
  background: linear-gradient(180deg, #b87943 0%, var(--holz) 55%, #7d4a26 100%);
  box-shadow: 0 0 0 2px var(--holz-dunkel), 0 3px 0 rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
/* Deko als runde Aufkleber */
.deko {
  mix-blend-mode: normal; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: 17px;
  background: #fff; box-shadow: 0 0 0 2px var(--holz-dunkel), 0 3px 0 rgba(0, 0, 0, .28);
}
.deko .grafik-bild { width: 26px; height: 26px; mix-blend-mode: normal; }
.deko-lampe { top: -6px; transform: none; }
.deko-lampe.l1 { left: 0; }
.deko-lampe.l2 { left: auto; right: 0; }
.deko-pflanze { display: none; }
.lokal-zeile.tische-1 .deko-lampe.l1, .lokal-zeile.tische-2 .deko-lampe.l1 { left: 0; }

/* kleines Lokal: Bild daneben als angepinntes Foto */
.lokal-bild {
  background: #fff; border-radius: 12px; margin-top: 18px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--holz-dunkel), 0 6px 0 rgba(0, 0, 0, .28);
  transform: rotate(2.5deg);
}
.lokal-bild .grafik-bild { mix-blend-mode: normal; }

/* ---------- Gäste-Karten ---------- */
.gaeste { gap: 9px; }
.gast {
  border: 0; border-radius: 18px; min-height: 74px; padding: 6px 5px 5px;
  background: linear-gradient(180deg, #ffffff 0%, #fff4df 100%);
  box-shadow: 0 0 0 2.5px var(--holz-dunkel), 0 6px 0 var(--tisch, var(--holz)), 0 7px 0 2.5px var(--holz-dunkel);
  transition: transform .12s;
}
.gast-bild {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: #fff; box-shadow: 0 0 0 2px var(--gold), 0 2px 0 2px var(--gold-dunkel);
}
.gast-bild .grafik-bild { width: 44px; height: 44px; object-fit: cover; mix-blend-mode: normal; }
.wunsch {
  width: 40px; height: 40px; border: 0; border-radius: 14px 14px 14px 4px;
  background: #fff; box-shadow: 0 0 0 2.5px var(--rot), 0 3px 0 2.5px var(--rot-dunkel);
}
.wunsch.liebling { background: #fff; box-shadow: 0 0 0 2.5px #e8557a, 0 3px 0 2.5px #b83560; }
.gast-name { font-size: 12px; margin-top: 3px; }
.gast-lohn { margin-top: 3px; }
.gast-herz { top: -8px; left: -6px; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.gast.leer {
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, .55);
  border: 0; opacity: 1;
}
.gast.bereit {
  box-shadow: 0 0 0 3px #2e9b52, 0 6px 0 #2e9b52, 0 0 16px 4px rgba(124, 255, 160, .7);
  animation: pulsieren .9s ease-in-out infinite;
}
.gast.bereit .wunsch { box-shadow: 0 0 0 2.5px #2e9b52, 0 3px 0 2.5px #1f7a3d; }
.gast.bereit::after {
  content: "✓"; position: absolute; top: -9px; right: -7px;
  width: 24px; height: 24px; display: grid; place-items: center;
  font-size: 15px; color: #fff; background: #2e9b52; border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 3px 0 rgba(0, 0, 0, .25);
  animation: plopp .3s cubic-bezier(.3, 1.8, .5, 1);
}
.gast.ziel-passt { background: #d8ffe0; transform: scale(1.07); }
.gaeste.chef .gast { box-shadow: 0 0 0 3px var(--gold), 0 6px 0 var(--gold-dunkel), 0 7px 0 3px var(--holz-dunkel); }
.gaeste.chef .gast-bild, .gaeste.chef .gast-bild .grafik-bild { width: 52px; height: 52px; }

/* ---------- Spielfeld: Holztisch mit kariertem Tischtuch ---------- */
.brett {
  gap: 1%; padding: 2.2%;
  background: linear-gradient(160deg, #c98a54 0%, var(--holz) 50%, #7d4a26 100%);
  border: 3px solid var(--holz-dunkel); border-radius: 26px;
  box-shadow: 0 7px 0 var(--holz-dunkel), 0 18px 24px rgba(0, 0, 0, .4), inset 0 3px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.feld { border-radius: 20%; box-shadow: inset 0 3px 4px rgba(120, 60, 30, .2), inset 0 -2px 0 rgba(255, 255, 255, .7); }
.feld-a { background: linear-gradient(180deg, #fff3de 0%, #fffaf0 100%); }
.feld-b { background: linear-gradient(180deg, #f6cfc4 0%, #fbdfd6 100%); }
.feld.ziel { background: #fff; box-shadow: inset 0 0 0 3px var(--gold); }
.feld.ziel-passt { background: #d8ffe0; box-shadow: inset 0 0 0 4px #2e9b52, 0 0 12px rgba(124, 255, 160, .8); }
.feld-werkzeug { background: linear-gradient(180deg, #1f5a45 0%, #2f7a5c 100%); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .4); }
.feld-sperre { background: linear-gradient(180deg, #8a6a4d 0%, #a98560 100%); }

.stein.mit-bild { border-radius: 28%; box-shadow: 0 3px 0 var(--rand, #c9a27c), 0 6px 8px rgba(90, 50, 25, .3), inset 0 -3px 0 rgba(0, 0, 0, .05); }
.stein.mit-bild.werkzeug { --rand: var(--gold-dunkel); border-color: var(--gold); box-shadow: 0 3px 0 var(--gold-dunkel), 0 6px 10px rgba(0, 0, 0, .4); }
.stein.mit-bild.gericht { animation: leuchten 1.6s ease-in-out infinite; }
.stufe { background: var(--tanne); border-color: #fff; }
.stufe.stern { background: var(--gold); }
/* Ring, der beim Verschmelzen und Kochen aufspringt */
.stein.jubel::after, .stein.arbeiten::after {
  content: ""; position: absolute; inset: -12%; border-radius: 50%;
  border: 4px solid var(--gold); pointer-events: none;
  animation: ring .55s ease-out forwards;
}
.stein.geist.mit-bild { transform-origin: center; box-shadow: 0 16px 20px rgba(0, 0, 0, .4); }

.regen-stueck {
  position: fixed; z-index: 250; pointer-events: none;
  width: 26px; height: 26px; border-radius: 50%; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 2px var(--gold), 0 3px 4px rgba(0, 0, 0, .3);
  display: grid; place-items: center; font-size: 18px;
}
.regen-stueck .grafik-bild { width: 100%; height: 100%; mix-blend-mode: normal; }
.flug { color: #fff; text-shadow: 0 2px 0 var(--holz-dunkel), 0 -2px 0 var(--holz-dunkel), 2px 0 0 var(--holz-dunkel), -2px 0 0 var(--holz-dunkel); }
.flug.lohn { color: #fff; }

/* ---------- Knöpfe: dick und glänzend ---------- */
.knopf {
  position: relative; overflow: hidden;
  border: 0; border-radius: 22px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.knopf::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 42%;
  border-radius: 16px 16px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .08) 100%);
  pointer-events: none;
}
.knopf > * { position: relative; }
.knopf-neben, .knopf-hell {
  background: linear-gradient(180deg, #fffdf6 0%, #ffe9c4 100%);
  box-shadow: 0 0 0 3px var(--holz-dunkel), 0 6px 0 #c79a63, 0 7px 0 3px var(--holz-dunkel), 0 12px 12px rgba(0, 0, 0, .3) !important;
}
.knopf-haupt {
  color: #fff; text-shadow: 0 2px 0 var(--rot-dunkel);
  background: linear-gradient(180deg, #ff7468 0%, var(--rot) 55%, #cf372d 100%);
  box-shadow: 0 0 0 3px var(--holz-dunkel), 0 6px 0 var(--rot-dunkel), 0 7px 0 3px var(--holz-dunkel), 0 12px 12px rgba(0, 0, 0, .3) !important;
}
.knopf-stark {
  color: #fff; text-shadow: 0 2px 0 #1f7a3d;
  background: linear-gradient(180deg, #7fe08f 0%, #45b964 55%, #2e9b52 100%);
  box-shadow: 0 0 0 3px var(--holz-dunkel), 0 6px 0 #1f7a3d, 0 7px 0 3px var(--holz-dunkel) !important;
}
.knopf:active { transform: translateY(5px); box-shadow: 0 0 0 3px var(--holz-dunkel), 0 1px 0 3px var(--holz-dunkel) !important; }
.fuss { gap: 10px; padding: 0 2px 6px; }
.knopf-neben { min-width: 60px; font-size: 11.5px; }
.knopf-bild { font-size: 24px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.vorrat-korb { font-size: 34px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .2)); animation: wippen 1.8s ease-in-out infinite; }
/* Lichtstreifen, der ab und zu über den Vorrat-Knopf zieht */
.knopf-haupt::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); pointer-events: none;
  animation: streif 4.5s ease-in-out infinite;
}
.knopf-zu {
  background: linear-gradient(180deg, #ffffff 0%, #ffe3de 100%); color: var(--rot-dunkel); text-shadow: none;
  box-shadow: 0 0 0 3px var(--holz-dunkel), 0 4px 0 3px var(--holz-dunkel) !important; border-radius: 50%;
}
.knopf-zu::before { display: none; }
.knopf-reihe .knopf { box-shadow: none; }
.knopf-reihe { padding: 3px 3px 9px; }
.figur-fertig { margin: 6px 3px 9px; width: calc(100% - 6px); }

/* ---------- Meldungen ---------- */
.meldung {
  border: 0; border-radius: 999px; padding: 8px 18px;
  background: linear-gradient(180deg, #fffdf6 0%, #ffe9c4 100%);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--holz-dunkel), 0 8px 12px rgba(0, 0, 0, .3);
}

/* ---------- Fenster ---------- */
.fenster { background: rgba(10, 34, 26, .72); }
.fenster-karte {
  border: 0; border-radius: 28px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--holz-dunkel), 0 8px 0 7px var(--holz-dunkel), 0 24px 30px rgba(0, 0, 0, .45);
  animation: plopp .3s cubic-bezier(.3, 1.5, .5, 1);
}
.fenster-kopf {
  border-bottom: 0; padding: 11px 12px 13px 18px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, #f2675c 0%, var(--rot) 60%, #c9362c 100%);
  box-shadow: inset 0 -5px 0 var(--rot-dunkel);
}
.fenster-kopf h2 { font-size: 23px; text-shadow: 0 2px 0 var(--rot-dunkel), 0 3px 0 rgba(0, 0, 0, .15); letter-spacing: .3px; }
.kopf-muenzen { border-radius: 999px; box-shadow: 0 0 0 2px var(--holz-dunkel), 0 3px 0 rgba(0, 0, 0, .25); }
.fenster-inhalt { background: linear-gradient(180deg, #fff8ea 0%, #fdeed3 100%); }
.reiter-leiste { background: var(--tanne); border-bottom: 0; padding: 9px 10px 11px; box-shadow: inset 0 -4px 0 var(--tanne-dunkel); }
.reiter {
  border: 0; border-radius: 15px; min-width: 64px;
  background: linear-gradient(180deg, #ffffff 0%, #ffecc9 100%);
  box-shadow: 0 0 0 2px var(--tanne-dunkel), 0 4px 0 #c79a63;
}
.reiter.aktiv {
  color: #fff; background: linear-gradient(180deg, #ffd15c 0%, var(--gold) 60%, #eaa21a 100%);
  text-shadow: 0 1px 0 var(--gold-dunkel);
  box-shadow: 0 0 0 2px #fff, 0 4px 0 var(--gold-dunkel); transform: translateY(-2px);
}
.karte, .rezept, .ergebnis, .level-eintrag, .wahl, .album-feld {
  border: 0; border-radius: 18px;
  box-shadow: 0 0 0 2px #e3c79c, 0 4px 0 #e3c79c;
}
.karte.erledigt, .wahl.aktiv, .ausbau-karte.aktuell { box-shadow: 0 0 0 2.5px #45b964, 0 4px 0 #2e9b52; }
.rezept.bestellt { box-shadow: 0 0 0 2.5px var(--gold), 0 4px 0 var(--gold-dunkel); }
.level-eintrag.aktuell { box-shadow: 0 0 0 2.5px var(--rot), 0 4px 0 var(--rot-dunkel); background: #fff3ee; }
.album-feld.selten { box-shadow: 0 0 0 2.5px #b57edc, 0 4px 0 #8c55b3; }
.level-nr {
  width: 38px; height: 38px; text-shadow: 0 1px 0 var(--rot-dunkel);
  background: linear-gradient(180deg, #ff7468 0%, var(--rot) 100%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rot-dunkel), 0 3px 0 4px var(--rot-dunkel);
}
.level-eintrag.gesperrt .level-nr { background: #d8c7b0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #b9a488; text-shadow: none; }
.kueche { border: 0; border-radius: 999px; box-shadow: 0 0 0 2px var(--holz-dunkel), 0 3px 0 #c79a63; }
.kueche.aktiv { background: linear-gradient(180deg, #ff7468 0%, var(--rot) 100%); box-shadow: 0 0 0 2px var(--holz-dunkel), 0 3px 0 var(--rot-dunkel); }
.kueche.bald { box-shadow: inset 0 0 0 2px var(--braun-hell); }
.kauf {
  border: 0; border-radius: 14px; text-shadow: 0 1px 0 var(--rot-dunkel);
  background: linear-gradient(180deg, #ff7468 0%, var(--rot) 100%);
  box-shadow: 0 0 0 2px var(--holz-dunkel), 0 4px 0 var(--rot-dunkel);
}
.kauf.besitzt { background: #fff; text-shadow: none; box-shadow: 0 0 0 2px var(--holz-dunkel), 0 4px 0 #c79a63; }
.kauf.teuer { background: #d8c7b0; text-shadow: none; box-shadow: 0 0 0 2px #b9a488, 0 4px 0 #b9a488; }
.kauf.aktiv { background: none; box-shadow: none; text-shadow: none; }
.kauf.gefahr { background: #d9534f; }
.balken { height: 20px; border-radius: 10px; background: #ecd9bb; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .15); }
.balken-fuellung {
  border-radius: 10px;
  background: linear-gradient(180deg, #8be79a 0%, #45b964 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.sterne-gross .an { text-shadow: 0 3px 0 var(--gold-dunkel), 0 0 14px rgba(255, 210, 90, .9); color: var(--gold); }
.sterne-gross .an:nth-child(2) { animation-delay: .15s; }
.sterne-gross .an:nth-child(3) { animation-delay: .3s; }
.neuer-bestwert { border-radius: 999px; background: linear-gradient(180deg, #7fe08f 0%, #2e9b52 100%); text-shadow: 0 1px 0 #1f7a3d; }
.bestwert-summe { border: 0; box-shadow: 0 0 0 2.5px var(--gold), 0 4px 0 var(--gold-dunkel); }
.ich-bild, .wahl-bild { border: 0; box-shadow: 0 0 0 2.5px var(--gold), 0 3px 0 2.5px var(--gold-dunkel); }
.ausbau-bild { border: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--holz-dunkel); transform: rotate(-2deg); }

/* ---------- Figur und Szene ---------- */
.vollbild {
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .07) 0 2.5px, transparent 3px) 0 0 / 24px 24px,
    radial-gradient(120% 70% at 50% 0%, var(--tanne-hell) 0%, var(--tanne) 55%, var(--tanne-dunkel) 100%);
}
.figur-karte {
  border: 0; border-radius: 28px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--holz-dunkel), 0 8px 0 7px var(--holz-dunkel), 0 24px 30px rgba(0, 0, 0, .45);
  padding: 16px 14px 10px;
}
.figur-karte h2 { font-size: 26px; color: var(--rot); text-shadow: 0 2px 0 #fff, 0 3px 0 #e3c79c; }
.figur-bild { border: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--gold), 0 5px 0 8px var(--gold-dunkel); margin: 6px 0 8px; }
.figur-name { border: 0; border-radius: 999px; box-shadow: 0 0 0 2.5px var(--holz-dunkel), inset 0 3px 0 #f1e2c8; }
.figur-knopf { border: 0; border-radius: 15px; box-shadow: 0 0 0 2px #d8b98a, 0 4px 0 #d8b98a; background: linear-gradient(180deg, #ffffff 0%, #fff1d9 100%); }
.figur-knopf.aktiv {
  color: #fff; text-shadow: 0 1px 0 var(--rot-dunkel);
  background: linear-gradient(180deg, #ff7468 0%, var(--rot) 100%);
  box-shadow: 0 0 0 2px var(--holz-dunkel), 0 4px 0 var(--rot-dunkel);
}
.szene-kasten { border: 0; border-radius: 24px; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--holz-dunkel), 0 7px 0 7px var(--holz-dunkel); margin-bottom: 8px; }
.szene-figur { border: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--gold), 0 8px 14px rgba(0, 0, 0, .4); }
.szene-wer { border-radius: 999px; padding: 3px 13px; text-shadow: 0 1px 0 var(--rot-dunkel); box-shadow: 0 3px 0 var(--rot-dunkel); }
.szene-weg { border: 0; border-radius: 999px; box-shadow: 0 0 0 2px var(--holz-dunkel), 0 3px 0 rgba(0, 0, 0, .3); }

/* ---------- Neue Animationen ---------- */
@keyframes hups { 0% { transform: scale(1); } 40% { transform: scale(1.45); color: var(--rot); } 100% { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(.5); opacity: .95; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes leuchten {
  0%, 100% { box-shadow: 0 3px 0 #d98c12, 0 0 0 3px rgba(248, 185, 48, .3), 0 7px 12px rgba(90, 50, 25, .3); }
  50% { box-shadow: 0 3px 0 #d98c12, 0 0 0 5px rgba(255, 220, 110, .75), 0 0 16px 4px rgba(255, 220, 110, .8); }
}
@keyframes streif { 0%, 70% { left: -40%; } 100% { left: 130%; } }
@keyframes wippen { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes plopp { 0% { transform: scale(.3); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .maskottchen, .vorrat-korb, .knopf-haupt::after, .stein.mit-bild.gericht, .gast.bereit { animation: none; }
}

/* ---------- Gemalte Symbole anstelle von Emojis ---------- */
.emoji-bild {
  display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -.3em;
  object-fit: contain; mix-blend-mode: multiply;
}
/* auf dunklen oder bunten Flächen: als kleiner weisser Aufkleber */
.fenster-kopf h2 .emoji-bild, .knopf-stark .emoji-bild, .knopf-haupt .emoji-bild,
.kauf .emoji-bild, .flug .emoji-bild, .rest .emoji-bild, .neuer-bestwert .emoji-bild,
.szene-wer .emoji-bild, .level-nr .emoji-bild, .level-knopf .emoji-bild {
  mix-blend-mode: normal; background: #fff; border-radius: 32%; padding: .06em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.kauf.besitzt .emoji-bild, .kauf.teuer .emoji-bild, .kauf.aktiv .emoji-bild { background: none; box-shadow: none; mix-blend-mode: multiply; }
.fenster-kopf h2 .emoji-bild { width: 1.5em; height: 1.5em; vertical-align: -.4em; margin-right: 2px; }
.knopf-bild .emoji-bild { display: block; width: 36px; height: 36px; margin: -3px 0 -2px; }
.vorrat-korb .emoji-bild { display: block; width: 50px; height: 50px; margin: -6px 0; border-radius: 50%; padding: 3px; }
.reiter-bild .emoji-bild { display: block; width: 32px; height: 32px; margin: 0 auto; }
.abzeichen .emoji-bild { display: block; width: 44px; height: 44px; }
.level-nr .emoji-bild { width: 26px; height: 26px; vertical-align: middle; border-radius: 50%; }
.level-eintrag.gesperrt .level-nr .emoji-bild { background: none; box-shadow: none; mix-blend-mode: multiply; }

/* Pflanzen-Deko: Aufkleber auf der Theke, links und rechts aussen */
.deko-pflanze { display: grid; bottom: -17px; z-index: 3; }
.deko-pflanze.p1 { left: -8px; }
.deko-pflanze.p2 { right: -8px; }
.lokal-zeile.tische-1 .deko-pflanze.p2 { display: none; }
.oben-bild { background-position: center 55%; }

/* Korrekturen Symbole */
.knopf-bild { filter: none; }
.deko-pflanze { bottom: auto; top: -6px; }
.deko-pflanze.p1 { left: auto; right: 0; }
.deko-pflanze.p2, .deko-lampe.l2 { display: none !important; }

/* =====================================================================
   MEIN LOKAL: grosses Bild, das mit jedem Renovier-Schritt schöner wird
   ===================================================================== */
.lokal-gross {
  position: relative; aspect-ratio: 16 / 9; flex: none; overflow: hidden;
  border-radius: 18px; background: #3b2a1e;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--holz-dunkel), 0 6px 0 6px var(--holz-dunkel);
  margin: 4px 6px 12px;
}
.lokal-vorher, .lokal-neu { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
/* heruntergekommen: grau, dunkel, leicht verschwommen */
.lokal-vorher { filter: grayscale(.9) sepia(.45) brightness(.42) contrast(.9) blur(.6px); }
/* Staub und Schrammen über dem alten Teil */
.lokal-staub {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 19px),
    repeating-linear-gradient(28deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 31px),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(20, 10, 5, .55) 100%);
}
.lokal-neu { box-shadow: none; }
.lokal-neu.frisch { animation: frischRenoviert 1.1s ease-out; }
.lokal-band {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap;
  font-size: 12px; color: #fff; padding: 3px 12px; border-radius: 999px;
  background: rgba(30, 16, 8, .78); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7);
}
.lokal-band.fertig { background: linear-gradient(180deg, #ffd15c 0%, var(--gold) 100%); color: var(--holz-dunkel); box-shadow: 0 0 0 2px #fff, 0 3px 0 var(--gold-dunkel); }
.bau-nr {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; color: #fff; background: var(--holz); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--holz-dunkel);
}
.bau-nr.fertig { background: #2e9b52; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1f7a3d; }
.karte.spaeter { opacity: .6; }
@keyframes frischRenoviert {
  0% { opacity: 0; filter: brightness(2.2) saturate(.2); }
  45% { opacity: 1; filter: brightness(1.6) saturate(1.4); }
  100% { opacity: 1; filter: none; }
}

/* =====================================================================
   IMBISSSTAND als Baukasten: Hintergrund, Stand, gekaufte Teile
   ===================================================================== */
.stand-bild {
  position: relative; aspect-ratio: 1; flex: none; overflow: hidden; border-radius: 18px;
  background: #3b2a1e center / cover no-repeat;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--holz-dunkel), 0 6px 0 6px var(--holz-dunkel);
  margin: 4px 6px 12px;
}
.stand-teil { position: absolute; transform-origin: 50% 100%; pointer-events: none; }
.stand-teil img { width: 100%; display: block; }
.stand-teil.frisch { animation: teilKommt .6s cubic-bezier(.3, 1.7, .5, 1); }
.stand-name {
  position: absolute; left: 50%; top: 3.5%; transform: translateX(-50%); max-width: 62%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 10px; color: #4a2a12; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.stand-eingabe { flex: 1; min-width: 0; max-width: none; font-size: 15px; text-align: left; padding: 7px 12px; }
@keyframes teilKommt { 0% { opacity: 0; transform: translateY(-16%) scale(.6); } 100% { opacity: 1; transform: none; } }

.deko[hidden] { display: none !important; }

/* Name des Stands auf einem eigenen Holzschild über dem Dach */
.stand-name {
  top: -1%; max-width: 86%; font-size: 10.5px; padding: 2px 9px 3px; border-radius: 7px;
  color: #fff6e0; text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, #b87943 0%, var(--holz) 55%, #7d4a26 100%);
  box-shadow: 0 0 0 1.5px var(--holz-dunkel), 0 2px 0 rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.stand-teil { transform-origin: 50% 50%; }

/* Gästebuch des stillen Gastes */
.gaestebuch { background: #fffdf4; gap: 0; padding: 6px 14px; background-image: repeating-linear-gradient(180deg, transparent 0 30px, #e6dcc6 30px 31px); }
.buch-satz { margin: 0; font-size: 14.5px; line-height: 31px; font-style: italic; color: #3d2a55; }
.buch-satz.leer { opacity: .4; font-style: normal; font-size: 12px; color: var(--braun); }

/* =====================================================================
   MEHR LEBEN: gemalter Seitenhintergrund, Titelbild, Gäste als Figuren,
   knalligere Anzeigen und Knöpfe, Funken und Konfetti
   ===================================================================== */

/* ---------- Seitenhintergrund: das Bild des Ortes, weich und dunkel ---------- */
#hintergrund-bild {
  position: fixed; inset: -40px; z-index: -1;
  background: var(--tanne) center / cover no-repeat;
  filter: blur(14px) saturate(1.25) brightness(.62);
}
#hintergrund-bild::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .08) 0 2.5px, transparent 3px) 0 0 / 24px 24px,
    linear-gradient(180deg, rgba(18, 58, 45, .15) 0%, rgba(18, 58, 45, .6) 55%, rgba(12, 40, 31, .72) 100%);
}
html, body { background: var(--tanne-dunkel); }
body { background-image: none; }
#app { position: relative; }

/* ---------- Titelbild ---------- */
.titelbild {
  z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  background: #2b3a4a url("../grafiken/imbiss/platz.jpg") center / cover no-repeat;
  overflow: hidden;
}
.titelbild::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 60, .35) 0%, transparent 35%, transparent 60%, rgba(20, 10, 5, .7) 100%);
}
.titel-szene { position: absolute; left: 50%; bottom: 20%; width: min(100vw, 520px); aspect-ratio: 1; transform: translateX(-50%); }
.titel-szene img { position: absolute; display: block; }
.t-lichter { left: 0; top: 8%; width: 100%; rotate: 27deg; animation: glimmen 2.4s ease-in-out infinite; }
.t-schirm  { left: -4%; bottom: 14%; width: 42%; }
.t-stand   { left: 26%; bottom: 26%; width: 50%; animation: standHuepft 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.t-tisch   { left: 8%; bottom: 8%; width: 21%; }
.t-blumen  { right: 2%; bottom: 20%; width: 17%; }
.titel-logo {
  position: absolute; top: calc(7% + env(safe-area-inset-top)); left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; line-height: .95;
  transform: rotate(-4deg); animation: logoRein .8s cubic-bezier(.3, 1.6, .5, 1) both;
}
.titel-klein, .titel-gross {
  color: #fff6dc;
  text-shadow: 0 3px 0 var(--rot), 0 -3px 0 var(--rot), 3px 0 0 var(--rot), -3px 0 0 var(--rot),
               2px 2px 0 var(--rot), -2px 2px 0 var(--rot), 2px -2px 0 var(--rot), -2px -2px 0 var(--rot),
               0 8px 0 var(--rot-dunkel), 0 14px 18px rgba(0, 0, 0, .45);
}
.titel-klein { font-size: clamp(38px, 12vw, 58px); }
.titel-gross { font-size: clamp(64px, 21vw, 104px); color: var(--gold); }
.titel-unter {
  position: relative; margin: 0 0 14px; font-size: 15px; color: #fff; padding: 4px 14px; border-radius: 999px;
  background: rgba(20, 10, 5, .55);
}
.titel-los {
  position: relative; min-width: 230px; min-height: 68px; font-size: 26px;
  animation: pulsieren 1.3s ease-in-out infinite;
}
@keyframes logoRein { 0% { transform: rotate(-4deg) translateY(-140%) scale(.6); } 100% { transform: rotate(-4deg); } }
@keyframes standHuepft { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.015, .985); } }
@keyframes glimmen { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 210, 90, .8)); } }

/* ---------- Gäste: runde Figuren mit Bestellzettel statt weisser Karten ---------- */
.gaeste:not(.chef) .gast {
  background: none; box-shadow: none; border-radius: 0; padding: 4px 0 0; min-height: 86px;
  grid-template-columns: auto auto; justify-content: center; column-gap: 0; row-gap: 0;
}
.gaeste:not(.chef) .gast-bild {
  width: 58px; height: 58px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold), 0 4px 0 6px var(--gold-dunkel), 0 10px 10px rgba(0, 0, 0, .3);
  animation: gastWippt 2.6s ease-in-out infinite;
}
.gaeste:not(.chef) .gast:nth-child(2) .gast-bild { animation-delay: -.9s; }
.gaeste:not(.chef) .gast:nth-child(3) .gast-bild { animation-delay: -1.7s; }
.gaeste:not(.chef) .gast-bild .grafik-bild { width: 58px; height: 58px; }
.gaeste:not(.chef) .wunsch {
  width: 46px; height: 46px; margin: -18px 0 0 -12px; align-self: start; z-index: 1;
  border-radius: 16px 16px 16px 5px;
  box-shadow: 0 0 0 3px var(--rot), 0 4px 0 3px var(--rot-dunkel), 0 8px 8px rgba(0, 0, 0, .25);
}
.gaeste:not(.chef) .wunsch .grafik-bild { width: 38px; height: 38px; }
.gaeste:not(.chef) .gast-name {
  z-index: 2; margin-top: -7px; font-size: 11.5px; padding: 1px 9px 2px; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #ffe9c4 100%);
  box-shadow: 0 0 0 2px var(--holz-dunkel), 0 2px 0 rgba(0, 0, 0, .25);
}
.gaeste:not(.chef) .gast-lohn {
  margin: 0 0 0 -6px; padding: 1px 7px 2px; border-radius: 999px; color: #fff;
  background: rgba(30, 16, 8, .62); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5);
}
.gaeste:not(.chef) .gast-lohn .grafik-bild { mix-blend-mode: normal; border-radius: 50%; }
.gaeste:not(.chef) .gast.bereit { box-shadow: none; animation: none; }
.gaeste:not(.chef) .gast.bereit .wunsch {
  box-shadow: 0 0 0 3px #2e9b52, 0 4px 0 3px #1f7a3d, 0 0 16px 5px rgba(124, 255, 160, .85);
  animation: pulsieren .8s ease-in-out infinite;
}
.gaeste:not(.chef) .gast.bereit::after { top: -6px; right: 4px; }
.gaeste:not(.chef) .gast.leer { opacity: 1; background: none; box-shadow: none; }
.gaeste:not(.chef) .gast.leer::before {
  content: ""; grid-column: 1 / 3; justify-self: center; width: 54px; height: 54px; border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1);
}
.gaeste:not(.chef) .gast.ziel-passt { background: none; transform: scale(1.1); }
.gaeste:not(.chef) .gast-herz { top: -2px; left: 2px; z-index: 3; }
@keyframes gastWippt { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }

/* ---------- Anzeigen: farbige Kanten und grosse Symbole ---------- */
.wert { padding: 4px 12px 5px 10px; }
.wert:nth-child(1) { box-shadow: 0 0 0 2.5px var(--holz-dunkel), 0 5px 0 #3f7fb8, 0 6px 0 2.5px var(--holz-dunkel), inset 0 -3px 0 #d6e8f7; }
.wert:nth-child(2) { box-shadow: 0 0 0 2.5px var(--holz-dunkel), 0 5px 0 var(--gold-dunkel), 0 6px 0 2.5px var(--holz-dunkel), inset 0 -3px 0 #ffe7b0; }
.wert:nth-child(3) { box-shadow: 0 0 0 2.5px var(--holz-dunkel), 0 5px 0 var(--gold-dunkel), 0 6px 0 2.5px var(--holz-dunkel), inset 0 -3px 0 #ffe7b0; }
.wert:nth-child(4) { box-shadow: 0 0 0 2.5px var(--holz-dunkel), 0 5px 0 var(--rot-dunkel), 0 6px 0 2.5px var(--holz-dunkel), inset 0 -3px 0 #ffd9d4; }
.wert-zahl { font-size: 20px; }
.wert-name .grafik-bild { width: 34px; height: 34px; margin: -9px 0 -9px -12px; }
.werte { margin-bottom: 3px; }

/* ---------- Knöpfe unten: Symbole ragen oben heraus ---------- */
.fuss { padding-top: 12px; }
.knopf-neben { overflow: visible; min-height: 58px; padding-top: 0; }
.knopf-neben .knopf-bild { margin-top: -18px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .22)); }
.knopf-neben .knopf-bild .emoji-bild { width: 46px; height: 46px; mix-blend-mode: normal; background: #fff; border-radius: 50%; padding: 4px; box-shadow: 0 0 0 2.5px var(--holz-dunkel); }
.knopf-haupt { overflow: visible; }
.knopf-haupt::after { display: none; }
.vorrat-korb { margin: -22px 0 -6px -4px; }
.vorrat-korb .emoji-bild { width: 62px; height: 62px; box-shadow: 0 0 0 3px var(--holz-dunkel), 0 5px 0 3px var(--holz-dunkel); }
.knopf-haupt { font-size: 21px; }

/* ---------- Spielfeld: Stoffmuster und leuchtende Geräte ---------- */
.feld-a, .feld-b {
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, rgba(120, 60, 30, .05) 0 2px, transparent 2px 7px);
}
.feld-a { background-color: #fff6e6; }
.feld-b { background-color: #f6cbbf; }
.feld-werkzeug { animation: geraetGlimmt 2.8s ease-in-out infinite; }
@keyframes geraetGlimmt {
  0%, 100% { box-shadow: inset 0 3px 6px rgba(0, 0, 0, .4); }
  50% { box-shadow: inset 0 3px 6px rgba(0, 0, 0, .4), 0 0 12px 2px rgba(255, 210, 90, .55); }
}
.brett { box-shadow: 0 7px 0 var(--holz-dunkel), 0 18px 28px rgba(0, 0, 0, .5), inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .2), 0 0 0 3px rgba(255, 255, 255, .18); }

/* ---------- Funken und Konfetti ---------- */
.funke { position: fixed; z-index: 260; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; }
.funke.stern { width: 12px; height: 12px; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); border-radius: 0; }
.konfetti { position: fixed; inset: 0; z-index: 320; pointer-events: none; overflow: hidden; }
.konfetti i { position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 2px; animation: konfettiFaellt 2.2s linear forwards; }
@keyframes konfettiFaellt {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: .9; }
}

/* ---------- Level geschafft: Strahlen hinter den Sternen, Band als Titel ---------- */
#ende-fenster .fenster-kopf { justify-content: center; }
#ende-fenster .fenster-kopf h2 { font-size: 26px; animation: blase .5s ease-out; }
#ende-fenster .fenster-karte { overflow: visible; }
#ende-fenster .fenster-kopf { border-radius: 24px 24px 0 0; }
#ende-fenster .fenster-inhalt { border-radius: 0 0 24px 24px; overflow-x: hidden; }
.sterne-gross { position: relative; isolation: isolate; font-size: 64px; padding: 6px 0 10px; }
.sterne-gross::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(248, 185, 48, .32) 0 12deg, transparent 12deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 68%); mask: radial-gradient(circle, #000 0 30%, transparent 68%);
  animation: strahlenDrehen 14s linear infinite;
}
.sterne-gross .an { animation: sternKommt .7s cubic-bezier(.3, 1.9, .5, 1) backwards; }
@keyframes strahlenDrehen { to { transform: rotate(360deg); } }
@keyframes sternKommt { 0% { transform: scale(0) rotate(-160deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- Menü: grössere Reiter-Symbole ---------- */
.reiter { min-width: 72px; padding: 4px 8px 6px; font-size: 11.5px; }
.reiter-bild .emoji-bild { width: 40px; height: 40px; }
.reiter.aktiv .reiter-bild .emoji-bild { animation: wippen 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .gast-bild, .t-stand, .t-lichter, .titel-los, .feld-werkzeug, .sterne-gross::before, .reiter.aktiv .reiter-bild .emoji-bild { animation: none !important; }
  .konfetti { display: none; }
}

.weiter-knopf { flex: none; min-height: 58px; font-size: 18px; margin: 4px 4px 12px; animation: pulsieren 1.2s ease-in-out infinite; }

/* ---------- Hilfe-Hand ---------- */
.hilfe-hand {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform;
  font-size: 46px; line-height: 1; margin: -4px 0 0 -16px;
  filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .45));
}
.hilfe-hand[hidden] { display: none; }
.feld.hilfe-ziel { animation: hilfeLeuchtet 1s ease-in-out infinite; z-index: 1; }
.gast.hilfe-ziel .wunsch, .gast.hilfe-ziel .gast-bild { animation: pulsieren .8s ease-in-out infinite; }
#vorrat.hilfe-ziel { animation: hilfeKnopf 1s ease-in-out infinite; }
@keyframes hilfeLeuchtet {
  0%, 100% { box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #fff, 0 0 6px 5px rgba(255, 210, 90, .4); }
  50% { box-shadow: 0 0 0 4px var(--gold), 0 0 0 6px #fff, 0 0 18px 9px rgba(255, 220, 110, .95); }
}
@keyframes hilfeKnopf {
  0%, 100% { filter: none; transform: scale(1); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 225, 120, .95)); transform: scale(1.05); }
}
.knopf-paar { display: flex; gap: 8px; }
.knopf-paar .kauf { flex: 1; white-space: normal; min-height: 44px; }
.sicherung-text { margin: 4px 0 0; }

/* ---------- Figur wählen: blättern mit Pfeilen ---------- */
.figur-karte { gap: 8px; }
.figur-wahl { display: flex; align-items: center; justify-content: center; width: 100%; margin: 4px 0 0; touch-action: pan-y; }
.figur-wahl .figur-bild { width: 150px; height: 150px; margin: 6px -16px 8px; z-index: 2; position: relative; }
.figur-neben {
  width: 76px; height: 76px; flex: none; border-radius: 50%; overflow: hidden; cursor: pointer;
  background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d8b98a; opacity: .6; filter: saturate(.7);
  display: grid; place-items: center; font-size: 40px;
}
.figur-neben .grafik-bild { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.figur-pfeil {
  flex: none; width: 46px; height: 56px; margin: 0 2px; font: inherit; font-size: 34px; line-height: 1; color: #fff; cursor: pointer;
  border: 0; border-radius: 16px; text-shadow: 0 2px 0 var(--rot-dunkel); z-index: 3;
  background: linear-gradient(180deg, #ff7468 0%, var(--rot) 100%);
  box-shadow: 0 0 0 2.5px var(--holz-dunkel), 0 5px 0 var(--rot-dunkel), 0 6px 0 2.5px var(--holz-dunkel);
}
.figur-pfeil:active { transform: translateY(4px); box-shadow: 0 0 0 2.5px var(--holz-dunkel), 0 1px 0 2.5px var(--holz-dunkel); }
.figur-zahl { font-size: 12px; opacity: .65; margin-top: -2px; }
.figur-bild.von-rechts { animation: figurVonRechts .28s cubic-bezier(.3, 1.4, .5, 1); }
.figur-bild.von-links { animation: figurVonLinks .28s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes figurVonRechts { 0% { transform: translateX(34px) scale(.86); opacity: .5; } 100% { transform: none; opacity: 1; } }
@keyframes figurVonLinks { 0% { transform: translateX(-34px) scale(.86); opacity: .5; } 100% { transform: none; opacity: 1; } }
.figur-neben { width: 62px; height: 62px; }
.figur-pfeil { width: 38px; height: 52px; margin: 0; font-size: 30px; border-radius: 14px; }
.figur-wahl .figur-bild { width: 146px; height: 146px; margin: 6px -14px 8px; }

/* ---------- Logo «Chapeau» ---------- */
.titel-logo { transform: rotate(-3deg); top: calc(6% + env(safe-area-inset-top)); }
.titel-gross { font-size: clamp(56px, 18.5vw, 96px); letter-spacing: -1px; }
.titel-hut {
  width: clamp(92px, 30vw, 150px); margin: 0 0 -6% -46%; rotate: -14deg; position: relative; z-index: 1;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .25));
  animation: hutWippt 3s ease-in-out infinite;
}
@keyframes hutWippt { 0%, 100% { translate: 0 0; rotate: -14deg; } 50% { translate: 0 -5px; rotate: -10deg; } }
@keyframes logoRein { 0% { transform: rotate(-3deg) translateY(-140%) scale(.6); } 100% { transform: rotate(-3deg); } }

/* =====================================================================
   STARTBILD mit gemaltem Titelbild
   ===================================================================== */
.titelbild {
  background: #16233f url("../grafiken/titelbild.jpg") center 60% / cover no-repeat;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}
.titelbild::before {
  background:
    radial-gradient(70% 26% at 50% 17%, rgba(255, 196, 90, .28) 0%, transparent 70%),
    linear-gradient(180deg, rgba(8, 14, 40, .45) 0%, transparent 32%, transparent 62%, rgba(12, 8, 20, .82) 100%);
}
.titel-logo { top: calc(5% + env(safe-area-inset-top)); transform: rotate(-3deg); }
.titel-hut {
  width: clamp(104px, 32vw, 168px); margin: 0 0 -9% -44%; rotate: -16deg;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .45));
}
.titel-gross {
  font-size: clamp(60px, 19.5vw, 104px); position: relative;
  background: linear-gradient(180deg, #fff3b8 0%, #ffd15c 45%, #f8a521 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 0 #a92a22) drop-shadow(0 -2px 0 #a92a22) drop-shadow(2px 0 0 #a92a22) drop-shadow(-2px 0 0 #a92a22) drop-shadow(0 7px 0 #6e1712) drop-shadow(0 12px 12px rgba(0, 0, 0, .5));
}
.titel-zeile {
  margin-top: 6px; font-size: clamp(15px, 4.6vw, 20px); color: #fff6dc; letter-spacing: .5px;
  padding: 3px 16px 4px; border-radius: 999px; background: rgba(20, 10, 30, .5);
  box-shadow: 0 0 0 2px rgba(255, 220, 140, .55);
}
.titel-unter { display: none; }
/* funkelnde Sterne und schwebende Lichtpunkte */
.titel-funkeln { position: absolute; inset: 0; pointer-events: none; }
.titel-funkeln i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .7); animation: sternFunkelt 2.6s ease-in-out infinite;
}
.titel-funkeln i:nth-child(2n) { animation-delay: -.9s; width: 3px; height: 3px; }
.titel-funkeln i:nth-child(3n) { animation-delay: -1.7s; }
.titel-funkeln b {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ffe08a;
  box-shadow: 0 0 10px 4px rgba(255, 200, 90, .65); animation: lichtSchwebt 6s ease-in-out infinite;
}
.titel-funkeln b:nth-of-type(2) { animation-delay: -1.5s; animation-duration: 7.5s; }
.titel-funkeln b:nth-of-type(3) { animation-delay: -3s; }
.titel-funkeln b:nth-of-type(4) { animation-delay: -4.2s; animation-duration: 8s; }
.titel-funkeln b:nth-of-type(5) { animation-delay: -2.2s; }
@keyframes sternFunkelt { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes lichtSchwebt {
  0%, 100% { transform: translate(0, 0); opacity: .2; }
  30% { opacity: 1; }
  50% { transform: translate(14px, -36px); opacity: .9; }
  80% { opacity: .5; }
}
/* eigene Figur beim Wiederkommen */
.titel-spieler {
  position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding: 5px 18px 5px 5px; border-radius: 999px; color: #fff;
  background: rgba(20, 10, 30, .62); box-shadow: 0 0 0 2px rgba(255, 220, 140, .6);
}
.titel-spieler[hidden] { display: none; }
.titel-figur { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 2.5px var(--gold); display: grid; place-items: center; }
.titel-figur .grafik-bild { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.titel-wer { display: flex; flex-direction: column; line-height: 1.15; font-size: 17px; }
.titel-wer small { font-size: 12px; opacity: .8; }
.titel-los { min-width: 250px; min-height: 72px; font-size: 27px; }
.titel-fuss { position: relative; margin: 12px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .75); }
@media (prefers-reduced-motion: reduce) { .titel-funkeln i, .titel-funkeln b { animation: none; } }
.titel-hut { width: clamp(92px, 28vw, 150px); margin: 0 0 -3.5% -58%; rotate: -18deg; }

/* ---------- Züge-Anzeige mit Sternen und Grenze ---------- */
.wert-sterne { opacity: 1; font-size: 13px; letter-spacing: -1px; white-space: nowrap; display: inline-flex; }
.wert-sterne i { font-style: normal; }
.wert-sterne .an { color: var(--gold); text-shadow: 0 1px 0 var(--gold-dunkel); }
.wert-sterne .aus { color: #d9c9ae; }
.wert-sterne.faellt { animation: schuetteln .35s; }
.wert-zuege { display: inline-flex; align-items: baseline; gap: 1px; }
.wert-grenze { font-size: 11px; opacity: .65; }
.wert:nth-child(1) { flex: 1.25; }

/* =====================================================================
   NEUE REGELN: Warmhalteplatte, eilige Gäste, doppelte Portion
   ===================================================================== */
.feld-warm {
  background-color: #ffc27a !important;
  background-image: radial-gradient(circle at 50% 55%, #ffe3a8 0 38%, #ffb35c 72%, #f08a3c 100%) !important;
  box-shadow: inset 0 0 0 2.5px #e2632f, inset 0 3px 6px rgba(160, 60, 10, .3), 0 0 10px 1px rgba(255, 150, 60, .55);
  animation: warmGlimmt 2.2s ease-in-out infinite;
}
.warm-marke {
  position: absolute; right: 4%; bottom: 3%; z-index: 1; pointer-events: none;
  font-size: 2.6cqw; color: #fff; padding: 0 .35em; border-radius: 999px;
  background: #e2632f; box-shadow: 0 0 0 1.5px #fff;
}
@keyframes warmGlimmt {
  0%, 100% { box-shadow: inset 0 0 0 2.5px #e2632f, inset 0 3px 6px rgba(160, 60, 10, .3), 0 0 8px 1px rgba(255, 150, 60, .45); }
  50% { box-shadow: inset 0 0 0 2.5px #e2632f, inset 0 3px 6px rgba(160, 60, 10, .3), 0 0 16px 4px rgba(255, 170, 70, .85); }
}
.gast-eile, .gast-mal {
  position: absolute; z-index: 4; font-size: 12px; line-height: 1; white-space: nowrap; color: #fff;
  padding: 3px 7px 3px 5px; border-radius: 999px; box-shadow: 0 0 0 2px #fff, 0 2px 0 rgba(0, 0, 0, .3);
}
.gast-eile { left: -2px; top: 34px; background: #4f7fc4; }
.gast-eile.knapp { background: var(--rot); animation: pulsieren .6s ease-in-out infinite; }
.gast.eilig .gast-bild { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #4f9bd8, 0 4px 0 6px #2f6aa0, 0 10px 10px rgba(0, 0, 0, .3); }
.gast-mal { right: -2px; top: 26px; font-size: 13px; padding: 3px 7px; background: var(--tanne); }
.gaeste.chef .gast-eile { left: 6px; top: auto; bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .feld-warm, .gast-eile.knapp { animation: none; } }


/* ===== WELTKARTE: Postkarten an der Küchenwand ===== */
.karten-wand {
  display: grid; grid-template-columns: 1fr; gap: 18px; padding: 18px 12px 22px; margin: 6px 0 4px;
  border-radius: 18px; background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.10) 0 2px, transparent 3px) 0 0 / 22px 22px,
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.10) 0 2px, transparent 3px) 0 0 / 26px 26px,
    #b98a5e;
  box-shadow: inset 0 0 0 5px #8a5a35, inset 0 0 24px rgba(0, 0, 0, .25);
}
.postkarte {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px;
  background: #fffaf0; border-radius: 6px; box-shadow: 0 6px 10px rgba(0, 0, 0, .3);
}
.postkarte.schief-a { transform: rotate(-1.2deg); }
.postkarte.schief-b { transform: rotate(1deg); }
.postkarte-nadel {
  position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a8a, var(--rot) 60%, var(--rot-dunkel));
  box-shadow: 0 3px 3px rgba(0, 0, 0, .35);
}
.postkarte-kopf { display: flex; align-items: center; gap: 10px; }
.postkarte-flagge { font-size: 34px; line-height: 1; }
.postkarte-titel { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.postkarte-name { font-weight: 800; font-size: 19px; color: var(--holz-dunkel); }
.postkarte-gruss { font-style: italic; font-size: 13.5px; opacity: .75; }
.postkarte-koch {
  flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 3px 5px rgba(0, 0, 0, .25);
}
.postkarte-koch .grafik-bild { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.postkarte-zeile { font-size: 13.5px; line-height: 1.35; }
.postkarte-liste { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: #fff3d6; }
.postkarte-knopf { align-self: flex-start; padding: 7px 14px; font-size: 14px; }
.postkarte .karten-knopf { align-self: stretch; }
.postkarte-stempel {
  position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border: 2.5px solid var(--rot); border-radius: 8px;
  color: var(--rot); font-weight: 800; font-size: 13px; letter-spacing: .5px; text-transform: uppercase;
  transform: rotate(-9deg); opacity: .8; background: rgba(255, 250, 240, .6);
}
.postkarte.da .postkarte-stempel { border-color: var(--tanne); color: var(--tanne); }
.postkarte.bald, .postkarte.zu { background: #efe6d6; }
.postkarte.bald .postkarte-kopf, .postkarte.bald .postkarte-zeile,
.postkarte.zu .postkarte-kopf, .postkarte.zu .postkarte-zeile { opacity: .6; }
.postkarte.holbar { box-shadow: 0 0 0 3px var(--gold), 0 6px 12px rgba(0, 0, 0, .35); }
@media (min-width: 560px) { .karten-wand { grid-template-columns: 1fr 1fr; } }


/* ===== Zahlenfelder oben: Platz für vierstellige Münzen und Ruf ===== */
.wert:nth-child(1) { flex: 1.2; }
.wert:nth-child(2) { flex: 1.35; }
.wert:nth-child(3), .wert:nth-child(4) { flex: 1.25; }
.wert-zahl { white-space: nowrap; }
.wert-zahl.lang { font-size: 16px; letter-spacing: -.3px; }
.wert-zahl.sehr-lang { font-size: 13px; letter-spacing: -.6px; }


/* ===== Sammlung auf der Postkarte ===== */
.sammlung-titel { font-weight: 800; font-size: 13px; color: var(--holz-dunkel); margin-top: 2px; }
.sammlung { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 64px; }
.sammel {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 54px; padding: 0; border: 0;
  background: none; font: inherit; cursor: pointer;
}
.sammel-bild {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 2.5px #d9c9ae, 0 3px 0 #cbb894;
}
.sammel-bild .grafik-bild { width: 100%; height: 100%; object-fit: cover; }
.sammel-preis { font-size: 10.5px; font-weight: 700; white-space: nowrap; color: var(--holz-dunkel); }
.sammel.hat .sammel-bild { box-shadow: 0 0 0 2.5px var(--tanne), 0 3px 0 rgba(0, 0, 0, .25); }
.sammel.hat .sammel-preis { color: var(--tanne); font-size: 13px; }
.sammel.teuer .sammel-bild, .sammel.zu .sammel-bild { filter: grayscale(.7); opacity: .7; }
.sammel.teuer .sammel-preis { color: var(--rot); }
.sammel:not(.hat):not(.teuer):not(.zu) .sammel-bild { box-shadow: 0 0 0 2.5px var(--gold), 0 3px 0 var(--gold-dunkel); }


/* ===== Knapper Vorrat: Zahl am Korb ===== */
#vorrat { position: relative; }
.vorrat-rest {
  position: absolute; top: -12px; right: 8px; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  background: #fff8e8; color: var(--holz-dunkel); font-size: 12.5px; font-weight: 800;
  box-shadow: 0 0 0 2.5px var(--holz-dunkel), 0 3px 0 rgba(0, 0, 0, .3);
}
.vorrat-rest[hidden] { display: none; }
#vorrat.knapp .vorrat-rest { background: var(--gold); animation: hups .6s ease-in-out infinite alternate; }
#vorrat.leer .vorrat-rest { background: var(--rot); color: #fff; right: 4px; }
#vorrat.leer .vorrat-korb { filter: grayscale(1); opacity: .7; }

/* Kleines Lokal: das Bild sitzt auf cremefarbenem Karton statt in einem weissen Kasten */
.lokal-bild { background: #fbeed3; box-shadow: 0 0 0 3px #fbeed3, 0 0 0 5px var(--holz-dunkel), 0 6px 0 rgba(0, 0, 0, .28); }
.lokal-bild .grafik-bild { mix-blend-mode: multiply; }


/* ===== Was noch gärt, köchelt oder tropft ===== */
.stein.reift { position: relative; }
.stein.reift .grafik-bild, .stein.reift .grafik { opacity: .8; filter: saturate(.6); }
.reife-marke {
  position: absolute; left: 50%; bottom: -7px; width: 40px; margin: 0 0 0 -20px; padding: 2px 0; border-radius: 999px;
  text-align: center; background: #fff8e8; color: var(--holz-dunkel); font-size: 12px; font-weight: 800; line-height: 1.3;
  white-space: nowrap; z-index: 2; box-shadow: 0 0 0 2px var(--holz-dunkel), 0 2px 0 rgba(0, 0, 0, .3);
}


/* ===== Titelbild: «Ein Spiel von Vulcrix» ===== */
.titel-von {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px 0 0; padding-top: 10px; width: 62%; max-width: 240px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.titel-von span {
  font-size: 9.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; white-space: nowrap;
  color: rgba(255, 255, 255, .62);
}
.titel-von img { height: 13px; width: auto; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.einstellung-von { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 6px; font-size: 12px; opacity: .8; }
.einstellung-von a { color: inherit; font-weight: 700; }
