@font-face { font-family: 'Lilita One'; src: url('/play/schrift/lilita-one-latin-400-normal.woff2') format('woff2'); font-display: swap; }

/* Farben wie der Kanal (manifest der Wallpaper-Seite) */
:root {
  --text: #1d2433; --leise: #5b6778; --akzent: #ff7f50; --akzent-dunkel: #d9603a; --karte: #ffffff;
  --umriss: #1d2433; --rund: 22px;
  --oben: env(safe-area-inset-top, 0px); --unten: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: #8fd8f6; color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
#himmel { position: fixed; inset: 0; background: linear-gradient(180deg, #8fd8f6 0%, #d7f4ff 78%); }
#leinwand { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; }
body.bereit #leinwand { opacity: 1; }
#ebene { position: fixed; inset: 0; display: flex; flex-direction: column; pointer-events: auto; touch-action: none; }

button { font: inherit; color: inherit; }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
h2, .knopf, .pille, .spiel-titel, .ich-name, .punkte, .bestwert, .gross, .abzeichen, .perfekt-text, .namensband, .umschalter a, .tipp-hinweis, .werte b {
  font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; letter-spacing: 0.01em;
}

/* ------------------------------------------------ Leiste oben: zurück, Umschalter Play | Wallpapers, Ton */
.leiste {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: calc(var(--oben) + 10px) 16px 0;
}
.platz { width: 44px; }
.rund {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 3px 0 rgba(29, 36, 51, 0.14), 0 6px 14px rgba(29, 36, 51, 0.1);
  font-size: 24px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px;
  transition: transform 0.12s ease;
}
.rund.ton { font-size: 18px; }
.rund:active { transform: translateY(2px) scale(0.96); }
.umschalter {
  justify-self: center; display: flex; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 14px rgba(29, 36, 51, 0.1);
}
.umschalter a {
  min-width: 104px; min-height: 38px; display: grid; place-items: center; padding: 0 16px; border-radius: 999px;
  text-decoration: none; color: var(--leise); font-size: 17px; transition: background 0.2s ease, color 0.2s ease;
}
.umschalter a[aria-current='page'] { background: var(--akzent); color: #fff; box-shadow: 0 2px 0 var(--akzent-dunkel); }

/* ------------------------------------------------ Namensband über der Figur */
.namensband {
  position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap;
  padding: 6px 14px 7px; border-radius: 999px; background: #fff; color: var(--text); font-size: 18px;
  box-shadow: 0 3px 0 rgba(29, 36, 51, 0.15), 0 6px 14px rgba(29, 36, 51, 0.12); max-width: 70vw; overflow: hidden; text-overflow: ellipsis;
}
.namensband::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--farbe); margin-right: 7px; vertical-align: 1px; }

/* ------------------------------------------------ Blatt unten (Startseite, Wahl) */
.blatt {
  margin-top: auto; background: var(--karte); border-radius: 28px 28px 0 0;
  padding: 18px 16px calc(var(--unten) + 18px); box-shadow: 0 -8px 30px rgba(29, 36, 51, 0.14);
  animation: hoch 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  touch-action: pan-y; max-height: 58%; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.blatt.hoch { max-height: 62%; display: flex; flex-direction: column; overflow: hidden; }
.blatt h2 { margin: 0 0 10px; font-size: 24px; text-align: center; }
@keyframes hoch { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.ich { display: flex; align-items: center; gap: 12px; }
.ich img { width: 56px; height: 70px; object-fit: cover; border-radius: 14px; background: #f3f5f7; }
.ich-text { flex: 1; min-width: 0; }
.ich-name { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hinweis { color: var(--leise); font-size: 14px; margin: 10px 0 0; text-align: center; }

.knopf {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--akzent); color: #fff; font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 0 var(--akzent-dunkel); transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--akzent-dunkel); }
.knopf.zweit { width: auto; min-height: 42px; font-size: 16px; padding: 0 16px; background: #eef3f6; color: var(--text); box-shadow: 0 3px 0 #d3dde4; }
.knopf.zweit.breit { width: 100%; min-height: 50px; font-size: 18px; margin-top: 10px; }

.spiele { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.spiele .spiel:first-child { grid-column: 1 / -1; }
.spiel {
  position: relative; display: grid; gap: 2px; text-align: left; border: 0; cursor: pointer; overflow: hidden;
  padding: 14px 16px; border-radius: var(--rund); color: #fff;
  background: linear-gradient(135deg, var(--farbe), color-mix(in srgb, var(--farbe) 70%, #1d2433));
  box-shadow: 0 4px 0 color-mix(in srgb, var(--farbe) 60%, #1d2433); transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.spiel:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--farbe) 60%, #1d2433); }
.spiel.bald { filter: saturate(0.45); opacity: 0.75; cursor: default; padding: 10px 16px; }
.spiel.bald .spiel-titel { font-size: 18px; }
.spiel-titel { font-size: 24px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.spiel-text { font-size: 14px; opacity: 0.92; }
.spiel-fuss { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.spiel.bald .spiel-fuss { margin-top: 4px; }
.pille { background: #fff; color: var(--text); border-radius: 999px; padding: 6px 14px 7px; font-size: 16px; }
.pille.leer { background: rgba(255, 255, 255, 0.25); color: #fff; font-size: 13px; padding: 3px 10px 4px; }
.rekord { font-family: 'Lilita One', system-ui, sans-serif; font-size: 16px; }

/* Wahl der Figur */
.suche input {
  width: 100%; min-height: 48px; padding: 0 18px; font: inherit; font-size: 16px; border: 2px solid #e3eaef; border-radius: 999px;
  background: #f6f9fb; color: var(--text); outline: none; -webkit-user-select: text; user-select: text;
}
.suche input:focus { border-color: var(--akzent); }
.gitter { flex: 1; min-height: 0; grid-auto-rows: max-content; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; overflow-y: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.kachel { border: 0; padding: 0 0 8px; background: #f6f9fb; border-radius: 16px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: inset 0 0 0 3px transparent; transition: transform 0.1s ease, box-shadow 0.15s ease; }
.kachel:active { transform: scale(0.96); }
.kachel.an { box-shadow: inset 0 0 0 3px var(--akzent); }
.kachel .bild { display: block; width: 100%; aspect-ratio: 4 / 5; background: #eef3f6; }
.kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kachel .name { font-size: 12px; font-weight: 600; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------ Im Spiel */
.spiel-leiste { grid-template-columns: 44px 1fr 44px; align-items: start; }
.spiel-leiste .mitte { text-align: center; pointer-events: none; transition: opacity 0.3s ease; }
.spiel-leiste .mitte.weg { opacity: 0; }
.punkte {
  font-size: 72px; line-height: 1; color: #fff; margin-top: 4px;
  text-shadow: 0 4px 0 rgba(29, 36, 51, 0.25); -webkit-text-stroke: 2px rgba(29, 36, 51, 0.35); paint-order: stroke fill;
}
.punkte.hoch { animation: plopp 0.25s ease-out; }
.punkte.perfekt { color: #fff6c2; }
@keyframes plopp { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.bestwert { color: #fff; font-size: 16px; opacity: 0.9; text-shadow: 0 2px 0 rgba(29, 36, 51, 0.2); min-height: 1.2em; }
.tipp-hinweis {
  position: absolute; left: 0; right: 0; bottom: calc(var(--unten) + 13%); text-align: center; pointer-events: none;
  color: #fff; font-size: 26px; text-shadow: 0 3px 0 rgba(29, 36, 51, 0.25); animation: wippen 1.1s ease-in-out infinite; transition: opacity 0.3s ease;
}
.tipp-hinweis.weg { opacity: 0; animation: none; }
@keyframes wippen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.perfekt-text {
  position: absolute; left: 0; right: 0; top: 30%; text-align: center; pointer-events: none; font-size: 40px; color: #fff6c2;
  text-shadow: 0 4px 0 rgba(29, 36, 51, 0.25); -webkit-text-stroke: 2px rgba(29, 36, 51, 0.3); paint-order: stroke fill;
  animation: perfekt 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes perfekt { 0% { transform: scale(0.5); opacity: 0; } 18% { transform: scale(1.12); opacity: 1; } 30% { transform: scale(1); } 75% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }

.endkarte {
  position: absolute; left: 16px; right: 16px; bottom: calc(var(--unten) + 18px); margin: 0 auto; max-width: 420px;
  background: var(--karte); border-radius: 28px; padding: 20px 18px 18px; text-align: center;
  box-shadow: 0 6px 0 rgba(29, 36, 51, 0.12), 0 20px 40px rgba(29, 36, 51, 0.2);
  animation: hoch 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.endkarte .gross { font-size: 76px; line-height: 0.95; margin-top: 2px; color: var(--akzent); }
.abzeichen { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: #ffd23f; color: var(--text); padding: 6px 16px 7px; border-radius: 999px; font-size: 18px; box-shadow: 0 3px 0 #d9ad1a; animation: wackeln 1.2s ease-in-out infinite; }
@keyframes wackeln { 0%, 100% { transform: translateX(-50%) rotate(-3deg); } 50% { transform: translateX(-50%) rotate(3deg) scale(1.05); } }
.werte { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 16px; }
.werte div { background: #f6f9fb; border-radius: 16px; padding: 8px 0 10px; display: grid; }
.werte b { font-size: 26px; }
.werte span { font-size: 13px; color: var(--leise); }

@media (min-width: 700px) {
  .blatt, .blatt.hoch { width: 460px; margin-left: auto; margin-right: auto; border-radius: 28px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
.endkarte .abstand { height: 10px; }

/* Luft beim Tauchen */
.luft { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 6px; }
.luft-text { font-family: 'Lilita One', system-ui, sans-serif; color: #fff; font-size: 14px; text-shadow: 0 2px 0 rgba(29, 36, 51, 0.25); }
.luft-balken { width: 150px; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); overflow: hidden; }
.luft-balken i { display: block; height: 100%; background: linear-gradient(90deg, #7ad6ff, #e9fbff); transform-origin: left; transition: transform 0.15s linear; border-radius: 999px; }
.luft.knapp .luft-balken i { background: linear-gradient(90deg, #ff7aa2, #ffd166); animation: blinken 0.5s ease-in-out infinite; }
@keyframes blinken { 50% { opacity: 0.5; } }
/* Farben der kurzen Meldungen je Art */
.perfekt-text.gast { color: #ffffff; font-size: 30px; }
.perfekt-text.luft { color: #e9fbff; }
.perfekt-text.stoss { color: #ffd6ec; font-size: 30px; }
.perfekt-text.schatz, .perfekt-text.stein { color: #ffe58a; }
.werte { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
.spiele .spiel:not(:first-child) .spiel-titel { font-size: 19px; }
.tipp-hinweis.hinweis-ferry { bottom: auto; top: calc(var(--oben) + 22%); }

/* ------------------------------------------------ Muscheln und Kleiderschrank */
.schrank-knopf {
  display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 12px; min-height: 48px;
  padding: 0 16px; border: 0; border-radius: 16px; background: #fff4e6; color: var(--text); cursor: pointer;
  font-family: 'Lilita One', system-ui, sans-serif; font-size: 18px; box-shadow: 0 3px 0 #f2dcc0;
}
.schrank-knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 #f2dcc0; }
.muschel-zahl { font-family: 'Lilita One', system-ui, sans-serif; font-size: 17px; background: #fff; border-radius: 999px; padding: 4px 12px 5px; }
.schrank-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.schrank-kopf h2 { margin: 0; }
.muschel-zahl.gross-zahl { background: #fff4e6; font-size: 19px; }
.schrank-liste { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px 12px; padding: 0 16px; }
.reihe-name { margin: 10px 0 6px; }
.teile { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.teil {
  display: grid; justify-items: center; gap: 3px; padding: 10px 4px 8px; border: 2px solid transparent; border-radius: 16px;
  background: #f6f9fb; color: var(--text); cursor: pointer; font: inherit;
}
.teil.an { border-color: var(--akzent); background: #fff; }
.tupfer { width: 30px; height: 30px; border-radius: 50%; background: var(--farbe); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14), 0 0 0 2px #fff, 0 0 0 3px #dfe7ed; }
.tupfer.leer { background: repeating-linear-gradient(45deg, #fff 0 4px, #e3eaef 4px 8px); }
.teil-name { font-family: 'Lilita One', system-ui, sans-serif; font-size: 14px; line-height: 1.1; text-align: center; }
.preis { font-size: 12px; color: var(--leise); }
.teil.habe .preis { color: #2fbf71; font-weight: 700; }
.knopf.aus { background: #dfe7ed; color: var(--leise); box-shadow: 0 4px 0 #c9d4dc; cursor: default; }
.verdient {
  display: grid; gap: 2px; margin: 12px auto 0; padding: 8px 16px 10px; border-radius: 16px; background: #fff4e6;
  font-family: 'Lilita One', system-ui, sans-serif; font-size: 26px; animation: reinploppen 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both 0.3s;
}
.verdient span { font-family: system-ui, sans-serif; font-size: 13px; color: var(--leise); }
@keyframes reinploppen { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------ Missionen (eine je Spiel und Tag) */
.mission {
  display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px 5px 6px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.2); font-size: 13px; line-height: 1.15; min-width: 0;
}
.mission-zeichen { flex: none; width: 20px; text-align: center; }
.mission-text { flex: 1; min-width: 0; }
.mission-lohn { flex: none; font-family: 'Lilita One', system-ui, sans-serif; font-size: 13px; }
.mission.fertig { background: rgba(255, 255, 255, 0.32); }
.mission.fertig .mission-text { text-decoration: line-through; opacity: 0.8; }
.mission-geschafft {
  display: grid; gap: 2px; margin: 12px 0 0; padding: 8px 12px 10px; border-radius: 16px; background: #e6f8ee; color: #1b7a47;
  animation: reinploppen 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both 0.15s;
}
.mission-geschafft b { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 22px; }
.mission-geschafft span { font-size: 13px; }
.spiele .spiel:not(:first-child) .mission { font-size: 12px; padding: 4px 8px 5px 4px; gap: 4px; }
.spiele .spiel:not(:first-child) .mission-lohn { font-size: 12px; }

/* ------------------------------------------------ Eigene Insel */
.meins { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; margin-top: 12px; }
.meins .schrank-knopf { margin-top: 0; justify-content: center; font-size: 16px; padding: 0 8px; white-space: nowrap; }
.meins .konto { background: #fff4e6; padding: 8px 12px 9px; }
.ausbau {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 18px; cursor: pointer;
  background: linear-gradient(135deg, #ff7f50, #e4572e); color: #fff; text-align: left; box-shadow: 0 4px 0 #b9441f; font: inherit;
}
.ausbau:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9441f; }
.ausbau.zu-teuer { background: #dfe7ed; color: var(--leise); box-shadow: 0 4px 0 #c9d4dc; }
.ausbau.fertig { background: #e6f8ee; color: #1b7a47; box-shadow: none; cursor: default; }
.ausbau-text { flex: 1; display: grid; gap: 2px; }
.ausbau-text b { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 19px; }
.ausbau-text span { font-size: 13px; opacity: 0.9; }
.preis-pille { font-family: 'Lilita One', system-ui, sans-serif; font-size: 17px; background: #fff; color: var(--text); border-radius: 999px; padding: 5px 12px 6px; }
.teil.gesperrt { opacity: 0.55; cursor: default; }
.teil:disabled { cursor: default; }

/* ------------------------------------------------ Reiter unten: Play · Island · Wardrobe */
.reiter {
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--karte);
  padding: 4px 8px calc(var(--unten) + 6px); border-top: 1px solid #eef2f5;
}
.reiter-knopf {
  display: grid; justify-items: center; gap: 1px; padding: 6px 0 4px; border: 0; background: none; cursor: pointer;
  color: var(--leise); font-family: 'Lilita One', system-ui, sans-serif; font-size: 13px; border-radius: 14px;
}
.reiter-zeichen { font-size: 22px; line-height: 1.1; filter: grayscale(0.6); opacity: 0.75; transition: transform 0.15s ease; }
.reiter-knopf.an { color: var(--akzent); }
.reiter-knopf.an .reiter-zeichen { filter: none; opacity: 1; transform: translateY(-2px) scale(1.12); }
.reiter-knopf:active .reiter-zeichen { transform: scale(0.9); }
.blatt.mit-reitern { padding-bottom: 12px; }
.hinweis.oben { margin: 0 0 10px; }
/* Name über der Figur: antippen = Figur wechseln */
.namensband { z-index: 5; pointer-events: auto; cursor: pointer; border: 0; font-family: 'Lilita One', system-ui, sans-serif; display: flex; align-items: center; gap: 0; }
.namensband .stift { margin-left: 8px; font-size: 14px; color: var(--leise); }
.leiste > .rund:first-child { justify-self: start; }
.leiste > .ton { justify-self: end; }
.namensband[hidden] { display: none; }
.blatt.hoch.mit-reitern { max-height: 54%; }

/* ------------------------------------------------ Spiele als schmale Zeilen (2026-11-22) */
.spiele { grid-template-columns: 1fr; gap: 8px; margin-top: 0; }
.spiel { grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-radius: 18px; }
.spiel-links { display: grid; gap: 4px; min-width: 0; }
.spiel-titel { font-size: 19px; display: flex; align-items: baseline; gap: 8px; }
.spiel-titel .rekord { font-size: 13px; opacity: 0.85; text-shadow: none; }
.spiel .mission, .spiele .spiel:not(:first-child) .mission { margin-top: 0; font-size: 12px; padding: 3px 8px 4px 4px; gap: 4px; }
.spiele .spiel:not(:first-child) .mission-lohn, .spiel .mission-lohn { font-size: 12px; }
.spiel-fuss { margin-top: 0; }
.spiel-fuss .pille { width: 46px; height: 46px; padding: 0 0 0 4px; display: grid; place-items: center; font-size: 20px; color: var(--farbe); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15); }

/* Reiter unten deutlich abgesetzt: eigene Fläche mit Schatten, aktiver Reiter als farbige Pille */
.blatt.mit-reitern { border-radius: 28px 28px 0 0; padding-bottom: 14px; box-shadow: 0 -8px 30px rgba(29, 36, 51, 0.14); }
.reiter {
  position: relative; z-index: 1; background: #1d2433; border-top: 0; gap: 6px;
  padding: 8px 12px calc(var(--unten) + 8px); box-shadow: 0 -6px 18px rgba(29, 36, 51, 0.25);
}
.reiter-knopf { color: rgba(255, 255, 255, 0.6); padding: 6px 0 5px; border-radius: 16px; transition: background 0.2s ease, color 0.2s ease; }
.reiter-zeichen { filter: grayscale(0.5); opacity: 0.8; }
.reiter-knopf.an { background: var(--akzent); color: #fff; box-shadow: 0 3px 0 var(--akzent-dunkel); }
.reiter-knopf.an .reiter-zeichen { transform: none; }

/* ------------------------------------------------ Level */
.konto-oben { justify-self: start; display: flex; align-items: center; gap: 6px; }
.konto-oben .muschel-zahl { box-shadow: 0 3px 0 rgba(29, 36, 51, 0.14), 0 6px 14px rgba(29, 36, 51, 0.1); padding: 8px 12px 9px; white-space: nowrap; }
.level-ring {
  --anteil: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(#ffd23f calc(var(--anteil) * 360deg), rgba(255, 255, 255, 0.55) 0);
  box-shadow: 0 3px 0 rgba(29, 36, 51, 0.14), 0 6px 14px rgba(29, 36, 51, 0.1);
}
.level-ring b { width: 31px; height: 31px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 16px; color: var(--text); }
.naechstes { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 10px; border-radius: 14px; background: #fff8e1; font-size: 13px; }
.naechstes-lv { flex: none; font-family: 'Lilita One', system-ui, sans-serif; background: #ffd23f; color: var(--text); border-radius: 999px; padding: 2px 8px 3px; }
.naechstes-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.naechstes-xp { flex: none; color: var(--leise); }
.level-auf {
  display: grid; gap: 3px; margin: 0 0 10px; padding: 10px 12px 12px; border-radius: 18px; color: #5b3d00;
  background: linear-gradient(135deg, #ffe680, #ffd23f); box-shadow: 0 4px 0 #e0b000;
  animation: reinploppen 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both 0.2s;
}
.level-auf b { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 28px; }
.level-auf span { font-size: 13px; }
/* Kopfleiste: links Level und Muscheln, Mitte Play | Wallpapers, rechts Ton; passt auch auf 360 px */
.leiste:not(.spiel-leiste) { grid-template-columns: auto 1fr auto; }
.leiste .umschalter a { min-width: 0; padding: 0 12px; font-size: 15px; min-height: 36px; }
.leiste .umschalter { justify-self: center; }
@media (max-width: 380px) { .konto-oben .muschel-zahl { padding: 7px 9px 8px; font-size: 15px; } .level-ring { width: 36px; height: 36px; } .level-ring b { width: 28px; height: 28px; font-size: 14px; } }

/* ------------------------------------------------ Haus innen */
.innen-schalter { display: flex; padding: 3px; border-radius: 999px; background: #eef3f6; }
.innen-schalter button {
  border: 0; background: none; border-radius: 999px; padding: 6px 12px 7px; cursor: pointer;
  font-family: 'Lilita One', system-ui, sans-serif; font-size: 14px; color: var(--leise); white-space: nowrap;
}
.innen-schalter button.an { background: var(--akzent); color: #fff; box-shadow: 0 2px 0 var(--akzent-dunkel); }
.innen-schalter button:disabled { cursor: default; font-size: 12px; }
.innen-aktion { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: #f6f9fb; margin-top: 6px; }
.innen-aktion b { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 18px; }
.innen-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.blatt.innen-blatt { max-height: 50%; }
/* Formen bei Dach und Fenster statt Farbe */
.tupfer.form-rund, .tupfer.form-spitz, .tupfer.form-eckig { background: #ffffff; position: relative; }
.tupfer.form-rund::after { content: ''; position: absolute; inset: 8px 5px 12px; border-radius: 14px 14px 0 0; background: #e4572e; }
.tupfer.form-spitz::after { content: ''; position: absolute; left: 5px; right: 5px; top: 6px; bottom: 12px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #e4572e; }
.tupfer.form-eckig::after { content: ''; position: absolute; inset: 8px; border-radius: 2px; background: #5a4632; }
.tupfer.form-fenster { background: #ffffff; position: relative; }
.tupfer.form-fenster::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #5a4632; }

/* ------------------------------------------------ Stadt: Schilder über den Läden */
.schilder { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.laden-schild {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; border: 0; white-space: nowrap;
  display: flex; align-items: center; gap: 5px; padding: 5px 10px 6px 7px; border-radius: 999px;
  background: #fff; color: var(--text); font-family: 'Lilita One', system-ui, sans-serif; font-size: 14px;
  box-shadow: 0 3px 0 rgba(29, 36, 51, 0.15), 0 6px 14px rgba(29, 36, 51, 0.12);
}
.laden-schild::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.laden-schild.zu { background: rgba(255, 255, 255, 0.75); color: var(--leise); }
.laden-schild.zu::after { border-top-color: rgba(255, 255, 255, 0.75); }
.laden-zeichen { font-size: 16px; }
.blinken-kurz { animation: blinken 0.3s 3; }
.neu-folge { font-size: 11px; background: rgba(255, 255, 255, 0.9); color: #b36b00; border-radius: 999px; padding: 2px 7px 3px; text-shadow: none; white-space: nowrap; }
.spiel.bald .spiel-text { font-size: 12px; }
.karte-schild { pointer-events: none; padding: 5px 10px 6px; }
.karte-schild.eigen { background: #ffd23f; }
.karte-schild.eigen::after { border-top-color: #ffd23f; }
.karte-knopf { margin-left: 8px; border: 0; background: #eef3f6; border-radius: 999px; width: 36px; height: 36px; font-size: 18px; cursor: pointer; vertical-align: 3px; }

/* ================================================ Feedback-Runde 1 (2026-11-22): flachere Leisten, Bild groß */
/* Kopfleiste schmaler */
.leiste { padding: calc(var(--oben) + 6px) 12px 0; gap: 6px; }
.rund { width: 38px; height: 38px; font-size: 21px; background: rgba(255, 255, 255, 0.85); }
.rund.ton { font-size: 16px; }
.leiste .umschalter { padding: 3px; }
.leiste .umschalter a { min-height: 30px; font-size: 14px; padding: 0 11px; }
.level-ring { width: 36px; height: 36px; border: 0; padding: 0; cursor: pointer; font: inherit; }
.level-ring b { width: 28px; height: 28px; font-size: 15px; }
.konto-oben .muschel-zahl { border: 0; cursor: pointer; color: var(--text); padding: 6px 10px 7px; font-size: 15px; }
.level-ring:active, .konto-oben .muschel-zahl:active { transform: scale(0.94); }

/* Blatt unten: halbdurchsichtig, niedriger, mit Griff zum Einklappen */
.blatt {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px 22px 0 0; padding: 0 14px 10px; max-height: 44%;
}
.blatt.hoch { max-height: 50%; }
.blatt.hoch.mit-reitern { max-height: 44%; }
.blatt.innen-blatt { max-height: 40%; }
.blatt.mit-reitern { border-radius: 22px 22px 0 0; padding-bottom: 10px; box-shadow: 0 -6px 20px rgba(29, 36, 51, 0.12); }
.blatt h2 { font-size: 21px; margin-bottom: 6px; }
.griff {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% + 28px); margin: 0 -14px; height: 22px;
  border: 0; background: none; cursor: pointer; padding: 0; touch-action: none;
}
.griff-strich { display: block; width: 40px; height: 5px; border-radius: 999px; background: #c9d4dc; }
.griff-text { display: none; font-family: 'Lilita One', system-ui, sans-serif; font-size: 15px; color: var(--text); }
.blatt.zu { padding-bottom: 4px; max-height: none; }
.blatt.zu > :not(.griff) { display: none !important; }
.blatt.zu .griff { height: 36px; }
.blatt.zu .griff-text { display: inline; }
.blatt.zu .griff-strich { width: 0; height: 0; border: 6px solid transparent; border-bottom: 7px solid #8a97a6; border-top: 0; border-radius: 0; background: none; }
.hinweis.oben { margin: 0 0 6px; font-size: 13px; }

/* Reiter unten: eine schmale Zeile, Zeichen neben dem Text */
.reiter { padding: 5px 10px calc(var(--unten) + 5px); gap: 6px; }
.reiter-knopf { grid-auto-flow: column; align-items: center; justify-content: center; gap: 6px; padding: 6px 0; font-size: 13px; }
.reiter-zeichen { font-size: 17px; line-height: 1; }

/* Startseite: Spiele als 2 × 2 kleine Karten */
.naechstes { margin: 0 0 8px; padding: 5px 10px; font-size: 12px; }
.spiele { grid-template-columns: 1fr 1fr; gap: 8px; }
.spiele .spiel:first-child { grid-column: auto; }
.spiel { grid-template-columns: 1fr; align-content: start; gap: 4px; padding: 8px 10px 9px; border-radius: 16px; min-height: 0; }
.spiel-fuss { position: absolute; right: 8px; top: 7px; }
.spiel-fuss .pille { width: 28px; height: 28px; font-size: 13px; padding: 0 0 0 2px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.spiel-fuss .pille.leer { width: auto; height: auto; font-size: 11px; padding: 2px 7px 3px; }
.spiel-titel, .spiele .spiel:not(:first-child) .spiel-titel { font-size: 16px; padding-right: 32px; display: flex; gap: 5px; align-items: center; min-width: 0; }
.spiel-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.spiel.bald .spiel-titel { font-size: 15px; }
.spiel .rekord { font-size: 11px; opacity: 0.9; margin-top: -3px; }
.spiel .mission, .spiele .spiel:not(:first-child) .mission { font-size: 11px; padding: 3px 6px 4px 3px; align-items: flex-start; }
.spiel .mission-lohn { font-size: 11px; }
.spiel.bald { padding: 8px 10px; }
.neu-folge { font-size: 10px; padding: 1px 6px 2px; flex: none; }

/* Figurenwahl: farbige Kachel mit Buchstaben, bis das Porträt da ist */
.kachel .bild { position: relative; background: color-mix(in srgb, var(--farbe) 35%, #ffffff); }
.kachel .bild::before { content: attr(data-buchstabe); position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Lilita One', system-ui, sans-serif; font-size: 34px; color: color-mix(in srgb, var(--farbe) 75%, #1d2433); }
.kachel img { position: relative; opacity: 0; transition: opacity 0.25s ease; }
.kachel img.da { opacity: 1; }

/* Im Spiel: nur Zurück, Punkte, Ton; kleiner, damit das Bild frei bleibt */
.spiel-leiste { grid-template-columns: 38px 1fr 38px; }
.spiel-leiste .rund { background: rgba(255, 255, 255, 0.7); }
.punkte { font-size: 54px; margin-top: 0; }
.bestwert { font-size: 14px; }
.tipp-hinweis.aktiv { color: #fff6c2; animation: none; }
.tipp-hinweis.hinweis-fox { font-size: 22px; }

/* 3-2-1 vor jedem Spiel */
.zaehler {
  position: absolute; left: 0; right: 0; top: 30%; text-align: center; pointer-events: none;
  font-family: 'Lilita One', system-ui, sans-serif; font-size: 104px; line-height: 1; color: #ffd23f;
  text-shadow: 0 6px 0 rgba(29, 36, 51, 0.35); -webkit-text-stroke: 8px #1d2433; paint-order: stroke fill;
}
.zaehler.los { color: #7ee08a; font-size: 84px; }
.zaehler.tick { animation: zaehlen 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes zaehlen { 0% { transform: scale(1.6); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(0.85); opacity: 0; } }

/* Level-Ring antippen: Fortschritt und was als Nächstes kommt */
.level-schicht { position: fixed; inset: 0; z-index: 30; background: rgba(29, 36, 51, 0.35); display: grid; align-items: start; padding: calc(var(--oben) + 54px) 16px 16px; animation: einblenden 0.2s ease; }
@keyframes einblenden { from { opacity: 0; } }
.level-karte { width: 100%; max-width: 400px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 16px 40px rgba(29, 36, 51, 0.25); animation: hoch 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1); max-height: calc(100vh - var(--oben) - 80px); overflow-y: auto; }
.level-kopf { display: flex; align-items: center; gap: 12px; }
.level-kopf > div { display: grid; }
.level-ring.gross { width: 56px; height: 56px; cursor: default; background: conic-gradient(#ffd23f calc(var(--anteil) * 360deg), #e9eef2 0); }
.level-ring.gross b { width: 44px; height: 44px; font-size: 22px; }
.level-titel { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 24px; }
.level-balken { position: relative; height: 22px; border-radius: 999px; background: #eef3f6; overflow: hidden; }
.level-balken i { position: absolute; inset: 0; background: linear-gradient(90deg, #ffd23f, #ffb000); transform-origin: left; border-radius: 999px; }
.level-balken span { position: relative; display: grid; place-items: center; height: 100%; font-family: 'Lilita One', system-ui, sans-serif; font-size: 13px; }
.level-erklaerung { margin: 0; }
.level-ziel { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 14px; background: #fff8e1; }
.level-ziel ul { margin: 0; padding: 0 0 0 16px; font-size: 14px; display: grid; gap: 2px; }

/* Muscheln antippen: offene Ladenschilder hüpfen */
.laden-schild.hopsen { animation: hopsen 0.5s ease 2; }
@keyframes hopsen { 50% { margin-top: -10px; } }
/* Datenschutz und Impressum unten auf der Startseite (Seiten liegen im Shop) */
.rechtliches { margin: 10px 0 2px; text-align: center; font-size: 12px; opacity: .7; }
.rechtliches a { color: inherit; }

/* Login with TikTok (konto.js) */
.konto-zeile { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 8px 7px 12px; border-radius: 14px; background: #eef8ff; font-size: 13px; }
.konto-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.konto-text b, .konto-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.konto-text span { color: var(--leise); font-size: 12px; }
.konto-knopf { flex: none; border: 0; border-radius: 999px; padding: 7px 12px; background: #ffd23f; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.konto-knopf.tiktok { background: #111; color: #fff; }
.konto-knopf.leise { background: #f0f2f5; }
.konto-mehr { flex: none; border: 0; background: none; font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; color: var(--leise); }
.konto-menue { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(20, 30, 50, .35); padding: 16px; }
.konto-karte { width: min(340px, 100%); background: #fff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.konto-karte p { margin: 0; font-size: 13px; color: var(--leise); }
