:root {
  color-scheme: light;
  --bg: #ffd400;
  --v-home: #ffd400;
  --v-park: #29c5ff;
  --v-garden: #5fe04a;
  --v-rewards: #ff6fb5;
  --v-stats: #b08cff;
  --v-more: #ffa726;
  --v-kaufen: #ffb300;
  --v-essen: #ff5c9e;
  --v-medien: #6ea8ff;
  --card: #ffffff;
  --card-2: #f0ecff;
  --ink: #17122b;
  --ink-2: #4e4868;
  --line: #17122b;
  --accent: #e0117a;
  --accent-ink: #ffffff;
  --go: #22e06b;
  --warm: #d4005f;
  --warm-bg: #ffe66b;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --seq-1: #cfe1f7;
  --seq-2: #86b6ef;
  --seq-3: #5598e7;
  --seq-4: #256abf;
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pop: cubic-bezier(.2, 1.6, .4, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --v-home: #2b1f6b;
    --v-park: #0b3f73;
    --v-garden: #0d5a2e;
    --v-rewards: #6b1248;
    --v-stats: #3c1d8a;
    --v-more: #6b3208;
    --v-kaufen: #6b4300;
    --v-essen: #7a0f47;
    --v-medien: #1a2f8a;
    --card: #231d45;
    --card-2: #352c63;
    --ink: #ffffff;
    --ink-2: #cfc9ea;
    --line: #000000;
    --accent: #ff3d9a;
    --accent-ink: #17122b;
    --warm: #ffb300;
    --warm-bg: #4a3a00;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --seq-1: #1b3a60;
    --seq-2: #256abf;
    --seq-3: #5598e7;
    --seq-4: #86b6ef;
  }
}
#park-scene { background:#12142f url('parking-comic.png') center 58%/cover no-repeat !important; }
#park-scene .ps-bg { display:none !important; }
@media (max-width: 600px) and (orientation: portrait) {
  #park-scene { background-image:url('parking-comic-portrait.png') !important; background-position:center center !important; background-size:100% 100% !important; }
}
#app > h1, body[data-v=park] #app > h1 {
  text-shadow:0 0 1px #fff8ed,0 0 4px #fff1d8,0 0 10px #ff6680,0 0 22px #ff355e,0 0 40px #e9235c,3px 4px 0 #47172e !important;
}
#app > .lede, body[data-v=park] #app > .lede {
  text-shadow:0 0 3px #fff4dc,0 0 8px #ff6680,0 0 18px #ff355e,0 2px 4px #0b0d20 !important;
}
.pts { text-shadow:0 0 4px #fff,0 0 10px #ffe75d,0 0 24px #ff872d,0 4px 0 #17162d !important; }

/* Appweite dunkle, verwaschene Denim-Textur */
body {
  background-color:#18223b !important;
  background-image:
    radial-gradient(ellipse at 18% 12%,rgba(127,163,191,.24),transparent 34%),
    radial-gradient(ellipse at 82% 58%,rgba(85,119,154,.2),transparent 38%),
    radial-gradient(ellipse at 42% 96%,rgba(5,12,29,.5),transparent 42%),
    repeating-linear-gradient(2deg,rgba(255,255,255,.025) 0 1px,rgba(4,10,24,.07) 1px 3px),
    repeating-linear-gradient(92deg,rgba(145,174,197,.035) 0 1px,rgba(3,9,22,.1) 1px 3px),
    linear-gradient(135deg,#293c59 0%,#182640 42%,#101a30 100%) !important;
  background-attachment:fixed !important;
}
body[data-v] { --bg:transparent; }
body {
  background:#17191a url('denim-texture.png') center top / 760px auto repeat !important;
  background-attachment:fixed !important;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.45 var(--sans);
  transition: background-color .35s;
}
body[data-v=home] { --bg: var(--v-home); }
body[data-v=park] { --bg: var(--v-park); }
body[data-v=garden] { --bg: var(--v-garden); }
body[data-v=rewards] { --bg: var(--v-rewards); }
body[data-v=stats] { --bg: var(--v-stats); }
body[data-v=more] { --bg: var(--v-more); }
body[data-v=kaufen] { --bg: var(--v-kaufen); }
body[data-v=essen] { --bg: var(--v-essen); }
body[data-v=medien] { --bg: var(--v-medien); }
#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 104px);
  overflow-x: clip;
}
#app.no-nav { padding-bottom: calc(env(safe-area-inset-bottom) + 28px); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 33px; letter-spacing: -.01em; }
h2 { font-size: 22px; margin-bottom: 10px; }
h3 { font-size: 16.5px; margin-bottom: 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }
.lede { margin: 8px 0 20px; font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 14px; }

/* Einstieg: jede neue Ansicht springt von unten herein */
.enter > *:not(nav):not(.confetti) { animation: rise-in .45s var(--pop) both; }
.enter > *:nth-child(2) { animation-delay: .05s; }
.enter > *:nth-child(3) { animation-delay: .1s; }
.enter > *:nth-child(4) { animation-delay: .15s; }
.enter > *:nth-child(5) { animation-delay: .2s; }
.enter .mode { animation: rise-in .5s var(--pop) both; }
.enter .mode:nth-child(2) { animation-delay: .08s; }
.enter .mode:nth-child(3) { animation-delay: .16s; }
.enter .stack > * { animation: rise-in .45s var(--pop) both; }
.enter .stack > *:nth-child(2) { animation-delay: .08s; }
.enter .stack > *:nth-child(3) { animation-delay: .16s; }
.enter .stack > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise-in { from { transform: translateY(26px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.card {
  background: var(--card);
  border: 2.5px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 5px 0 var(--line);
}
.card.warm { background: #ffc400; color: #17122b; }
.card.warm .muted { color: #3d3350; }
.card.warm h2, .card.warm h3 { color: #17122b; }

button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button:focus-visible, input:focus-visible, textarea:focus-visible, label.file:focus-within { outline: 3px solid #2a2bff; outline-offset: 2px; }
.btn {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 2.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--line);
  font-family: var(--display);
  font-weight: 800;
  text-align: center;
  transition: transform .08s, box-shadow .08s;
}
.btn:active:not([disabled]), .mode:active, .chip:active, .garden-link:active, .level-chip:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.btn.primary { background: var(--go); color: #17122b; }
.btn.quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink); font-weight: 700; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.btn.danger { color: #c4001d; }
@media (prefers-color-scheme: dark) { .btn.danger { color: #ff9c9c; } }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.btn-col > * + * { margin-top: 12px; }
.btn small { display: block; font-weight: 600; font-size: 14px; }
.btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; }
.btn.nudge { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

.modes { display: grid; gap: 14px; margin-top: 18px; }
.mode {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 14px 16px;
  border: 2.5px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--line);
  text-align: left;
  transition: transform .08s, box-shadow .08s;
}
.mode-kaufen { background: #ff8a00; color: #17122b; }
.mode-essen { background: #e0006e; color: #fff; }
.mode-medien { background: #4326e6; color: #fff; }
.mode svg { width: 46px; height: 46px; flex: none; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .28); animation: wiggle 4.5s ease-in-out infinite; }
.mode:nth-child(2) svg { animation-delay: 1.1s; }
.mode:nth-child(3) svg { animation-delay: 2.2s; }
@keyframes wiggle { 0%, 84%, 100% { transform: none; } 88% { transform: rotate(-13deg) scale(1.1); } 92% { transform: rotate(11deg) scale(1.1); } 96% { transform: rotate(-5deg); } }
.mode b { display: block; font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.15; }
.mode span span { font-size: 15px; font-weight: 500; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--card); border: 2.5px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 5px 0 var(--line); }
.tile b { display: block; font-family: var(--display); font-weight: 800; font-size: 29px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--accent); }
.tile span { font-size: 14px; color: var(--ink-2); }
.track { display: block; height: 14px; border: 2px solid var(--line); border-radius: 8px; background: var(--card-2); overflow: hidden; margin-top: 10px; }
.track i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(-45deg, #ff2e93 0 10px, #ff8a00 10px 20px);
  background-size: 200% 100%;
  animation: stripes 1.2s linear infinite;
}
.enter .track i { animation: stripes 1.2s linear infinite, fill-in .9s .2s var(--pop) backwards; }
@keyframes stripes { to { background-position: -28.28px 0; } }
@keyframes fill-in { from { width: 0; } }

.field { display: block; margin-bottom: 14px; }
.field > span, .label { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=datetime-local], input[type=time], input[inputmode], textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  border: 2.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.error { color: #c4001d; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .error { color: #ff9c9c; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 8px 14px;
  border: 2.5px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
  font-size: 16px;
  font-weight: 600;
  transition: transform .08s, box-shadow .08s;
}
.chip[aria-pressed=true] { background: #4326e6; color: #fff; animation: chip-pop .28s var(--pop); }
@keyframes chip-pop { from { transform: scale(.82); } to { transform: none; } }
.chip.removable { background: var(--card-2); }
.chip.removable span { margin-left: 2px; font-weight: 800; color: #c4001d; }
@media (prefers-color-scheme: dark) { .chip.removable span { color: #ff9c9c; } }
.label-hint { display: block; font-weight: 500; font-size: 13.5px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.label-row .label { margin: 0; }
.label-row .linkbtn { padding: 6px 0 6px 12px; font-size: 15px; }
.inline-form.feeling-add { grid-template-columns: 1fr auto; margin: 12px 0 8px; }
.feeling-add .btn { min-height: 50px; width: auto; }
.park-custom { display: grid; grid-template-columns: minmax(58px, 1fr) minmax(104px, 1.4fr) auto; gap: 8px; }
.park-custom .btn { width: auto; min-height: 50px; padding: 10px 12px; }
select { width: 100%; min-height: 50px; padding: 10px 8px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale .chip { padding: 8px 0; font-family: var(--display); font-weight: 800; font-size: 18px; }
.block { margin-bottom: 18px; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; min-height: 40px; }
.topbar .eyebrow { font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.linkbtn { background: none; border: 0; padding: 8px 0 8px 12px; font-size: 16px; font-weight: 600; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }

/* Atemkreis in der Pause: 4 Sekunden ein, 4 Sekunden aus */
.breath { position: relative; display: grid; place-items: center; width: min(68vw, 260px); aspect-ratio: 1; margin: 18px auto 22px; }
.breath::before, .breath::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: breathe 8s ease-in-out infinite; }
.breath::before { background: #ffffff; opacity: .42; }
.breath::after { inset: 13%; background: #fff; border: 3px solid var(--line); animation-delay: -.25s; }
@media (prefers-color-scheme: dark) { .breath::after { background: var(--card); } }
@keyframes breathe { 0%, 100% { transform: scale(.76); } 50% { transform: scale(1); } }
.timer { position: relative; z-index: 1; margin: 0; font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1.1; text-align: center; font-variant-numeric: tabular-nums; }
.card .timer { margin: 14px 0; }
.note-card { white-space: pre-wrap; font-family: var(--display); font-weight: 700; font-size: 19px; }
.alts { list-style: none; margin: 0; padding: 0; }
.alts li { padding: 9px 0; border-top: 2px dashed var(--card-2); }
.alts li:first-child { border-top: 0; padding-top: 0; }
.alts li:last-child { padding-bottom: 0; }

.done { position: relative; text-align: center; padding-top: 6vh; }
.burst { position: absolute; z-index: -1; left: 50%; top: 6vh; width: 460px; height: 460px; margin: -130px 0 0 -230px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, .5) 0 12deg, transparent 12deg 30deg); -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent); mask-image: radial-gradient(closest-side, #000 45%, transparent); animation: spin 16s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pts { font-family: var(--display); font-weight: 800; font-size: 82px; line-height: 1; margin-bottom: 12px; animation: pop .6s var(--pop) both; font-variant-numeric: tabular-nums; -webkit-text-stroke: 2px var(--ink); color: #fff; paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
@media (prefers-color-scheme: dark) { .pts { color: #ffd400; -webkit-text-stroke-color: #000; text-shadow: 0 5px 0 #000; } }
.surprise { margin: 18px 0 6px; animation: rise-in .5s .35s var(--pop) both; text-align: left; }
@keyframes pop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.plant-pop { width: 132px; margin: 0 auto 4px; animation: grow-up .8s var(--pop) both; }
.plant-pop svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes grow-up { from { transform: translateY(40px) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }

.item { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.item .grow { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.item .act { flex: none; }
.btn.tiny { width: auto; min-height: 44px; padding: 8px 12px; font-size: 15px; box-shadow: 0 3px 0 var(--line); }
.btn.tiny.quiet { box-shadow: none; }
.list > * + * { margin-top: 12px; }
.rows > * { padding: 11px 0; border-top: 2px dashed var(--card-2); }
.rows > *:first-child { border-top: 0; padding-top: 0; }
.rows > *:last-child { padding-bottom: 0; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--card); border: 2.5px solid var(--line); padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.seg button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-size: 15px; font-weight: 600; }
.seg button[aria-pressed=true] { background: #4326e6; color: #fff; font-weight: 700; }

.bar-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 15px; }
.stack-bar { display: flex; gap: 2px; height: 20px; }
.stack-bar button { padding: 0; border: 0; min-width: 4px; height: 100%; border-radius: 2px; position: relative; }
.stack-bar button::after { content: ""; position: absolute; inset: -12px 0; }
.stack-bar button:first-child { border-radius: 4px 2px 2px 4px; }
.stack-bar button:last-child { border-radius: 2px 4px 4px 2px; }
.stack-bar button:only-child { border-radius: 4px; }
.s1 { background: var(--series-1); }
.s2 { background: var(--series-2); }
.s3 { background: var(--series-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); margin: 12px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.hbar { display: grid; grid-template-columns: 118px 1fr 28px; gap: 8px; align-items: center; font-size: 15px; margin-bottom: 8px; }
.hbar .bar-t { height: 12px; }
.hbar .bar-t i { display: block; height: 100%; min-width: 4px; border-radius: 2px 4px 4px 2px; background: var(--series-1); }
.hbar > span:first-child { overflow-wrap: anywhere; }
.hbar .num { text-align: right; color: var(--ink-2); }
.heat { display: grid; grid-template-columns: 26px repeat(5, 1fr); gap: 3px; font-size: 13px; color: var(--ink-2); align-items: center; }
.heat .hd { text-align: center; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.heat button { height: 30px; border: 0; padding: 0; border-radius: 4px; background: var(--card-2); }
.heat .l1 { background: var(--seq-1); } .heat .l2 { background: var(--seq-2); } .heat .l3 { background: var(--seq-3); } .heat .l4 { background: var(--seq-4); }
.tip { min-height: 22px; margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 7px 4px; text-align: right; border-top: 2px dashed var(--card-2); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
thead th { border-top: 0; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.inline-form { display: grid; grid-template-columns: 1fr 88px; gap: 8px; margin-bottom: 10px; }
label.file { display: flex; align-items: center; justify-content: center; }
label.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.url { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; overflow-wrap: anywhere; color: var(--ink-2); }

nav.tabs {
  position: fixed;
  z-index: 5;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px max(6px, calc((100% - 560px) / 2)) calc(env(safe-area-inset-bottom) + 6px);
  background: var(--card);
  border-top: 2.5px solid var(--line);
}
nav.tabs button {
  position: relative;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
}
nav.tabs button[aria-current=page] { color: var(--ink); font-weight: 800; background: var(--bg); }
nav.tabs button[aria-current=page] svg { animation: tab-hop .5s var(--pop); }
@keyframes tab-hop { 0% { transform: translateY(6px) scale(.8); } 60% { transform: translateY(-5px) scale(1.15); } 100% { transform: none; } }
nav.tabs svg { display: block; width: 23px; height: 23px; margin: 0 auto 2px; }
.badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #e0006e; color: #fff; font-size: 12px; font-weight: 800; line-height: 19px; animation: nudge 1s ease-in-out infinite; }

.home-top { margin: -6px 0 10px; }
.level-chip { min-height: 42px; padding: 6px 14px; border: 2.5px solid var(--line); border-radius: 21px; background: var(--card); box-shadow: 0 3px 0 var(--line); font-family: var(--display); font-size: 15px; font-weight: 800; transition: transform .08s, box-shadow .08s; }
.icon-btn { width: 44px; height: 44px; padding: 10px; border: 0; background: none; }
.icon-btn svg { display: block; width: 24px; height: 24px; animation: spin 14s linear infinite; }
.top-actions { display: flex; align-items: center; }
.music-btn svg { animation: none; }
input[type=range] { width: 100%; padding: 0; border: 0; box-shadow: none; background: none; accent-color: var(--accent); }
.garden-link { display: block; width: 100%; padding: 0 0 14px; overflow: hidden; text-align: left; transition: transform .08s, box-shadow .08s; }
.garden-link > span { display: block; margin: 8px 16px 0; }
.garden-link > .track { margin-top: 8px; }
.garden-link > .bed { margin: 0 0 12px; border: 0; border-bottom: 2.5px solid var(--line); border-radius: 0; }

/* Blumenwiese */
.bed { display: block; border: 2.5px solid var(--line); border-radius: 14px; overflow: hidden; line-height: 0; }
.bed svg { display: block; width: 100%; height: auto; }
.bed { position: relative; aspect-ratio: 3 / 2; background: #3a5a3a; }
.bed .gn-base, .bed .gn-canvas, .bed .gn-layer, .gn-bloom, .gn-vignette { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.bed .gn-canvas { opacity: 0; transition: opacity .6s; }
.bed .gn-canvas.painted { opacity: 1; }
.bed .gn-clouds { width: 200%; animation: gn-clouds 220s linear infinite; }
@keyframes gn-clouds { to { transform: translateX(-50%); } }
.bed .gn-tree { inset: auto; transform-origin: 50% 100%; animation: gn-wind 6s ease-in-out infinite alternate; }
@keyframes gn-wind { from { transform: skewX(-.7deg); } to { transform: skewX(.7deg); } }
.gn-bloom { mix-blend-mode: screen; pointer-events: none; }
.gn-vignette { background: radial-gradient(ellipse at 55% 42%, transparent 58%, rgba(10, 12, 16, .42) 100%); pointer-events: none; }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.4s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.grass { transform-box: fill-box; transform-origin: 50% 100%; animation: grass 2.6s ease-in-out infinite alternate; }
@keyframes grass { from { transform: skewX(-9deg); } to { transform: skewX(9deg); } }
.grow-in { transform-box: fill-box; transform-origin: 50% 100%; animation: grow-in .9s .25s var(--pop) backwards; }
@keyframes grow-in { from { transform: scale(0); } to { transform: none; } }
.head-spin { transform-box: fill-box; transform-origin: 50% 50%; animation: head 9s ease-in-out infinite alternate; }
@keyframes head { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.sunrays { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 18s linear infinite; }
.cloud { animation: drift 34s linear infinite; }
.cloud.slow { animation-duration: 52s; animation-delay: -20s; }
@keyframes drift { from { transform: translateX(-110px); } to { transform: translateX(400px); } }
.bird { animation: bird 26s linear infinite; }
@keyframes bird { from { transform: translate(-30px, 0); } 50% { transform: translate(210px, -12px); } to { transform: translate(450px, 4px); } }
.bwing { transform-box: fill-box; animation: bflap .42s ease-in-out infinite alternate; }
.bwing.l { transform-origin: 100% 100%; }
.bwing.r { transform-origin: 0 100%; }
@keyframes bflap { from { transform: rotate(0); } to { transform: rotate(var(--flap, 26deg)); } }
.bwing.l { --flap: 26deg; }
.bwing.r { --flap: -26deg; }
.pollen { animation: pollen 6s ease-in-out infinite; }
@keyframes pollen { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .95; } 100% { transform: translate(34px, -58px); opacity: 0; } }
.fly0 { animation: fly0 11s ease-in-out infinite; }
.fly1 { animation: fly1 14s ease-in-out infinite; }
.fly2 { animation: fly2 9s ease-in-out infinite; }
@keyframes fly0 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(90px, -34px); } 50% { transform: translate(170px, 16px); } 75% { transform: translate(70px, 36px); } }
@keyframes fly1 { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-80px, 30px); } 60% { transform: translate(-150px, -24px); } 80% { transform: translate(-50px, -46px); } }
@keyframes fly2 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(60px, 40px); } 66% { transform: translate(-50px, 22px); } }
.wing { transform-box: fill-box; animation: flap .22s ease-in-out infinite alternate; }
.wing.l { transform-origin: 100% 50%; }
.wing.r { transform-origin: 0 50%; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.3); } }
.legend-plants { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.legend-plants span { display: inline-flex; align-items: center; gap: 3px; }
.legend-plants svg { width: 28px; height: 32px; padding: 2px; border-radius: 8px; background: #5fe04a; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.album-item .small { display: block; margin-top: 4px; }

.dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px; }
.dot { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-height: 44px; border: 2.5px solid var(--line); border-radius: 50%; background: var(--card-2); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.dot.on { background: #ffc400; color: #17122b; animation: chip-pop .4s var(--pop); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.badge-item { position: relative; min-height: 92px; padding: 8px 4px; overflow: hidden; border: 2.5px solid var(--line); border-radius: 14px; background: var(--card-2); color: var(--ink-2); }
.badge-item.on { background: #ffc400; color: #17122b; box-shadow: 0 3px 0 var(--line); }
.badge-item.on::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 65% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.badge-e { display: block; font-size: 30px; line-height: 1.2; }
.badge-item.on .badge-e { animation: wiggle 5s ease-in-out infinite; }
.badge-item:not(.on) .badge-e { font-size: 18px; line-height: 36px; opacity: .6; }
.badge-n { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.alt-done { width: 100%; margin-top: 12px; }

#celebrate { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(40, 8, 90, .72); overflow: hidden; }
#celebrate.on { display: flex; }
.cele-rays { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 212, 0, .38) 0 14deg, transparent 14deg 30deg); animation: spin 22s linear infinite; pointer-events: none; }
.cele-card { position: relative; width: 100%; max-width: 360px; padding: 24px 20px 22px; border: 3px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 8px 0 var(--line); color: var(--ink); text-align: center; animation: pop .55s var(--pop) both; }
.cele-card .eyebrow { margin: 0 0 4px; font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--warm); }
.cele-card h2 { font-size: 29px; }
.cele-emoji { font-size: 78px; line-height: 1.15; margin-bottom: 6px; animation: bounce-e 1.1s ease-in-out infinite; }
@keyframes bounce-e { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(5deg); } }
.confetti { position: fixed; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall 2.1s cubic-bezier(.3, .4, .6, 1) both; }
.confetti .c0 { background: #ffd400; } .confetti .c1 { background: #00d26a; } .confetti .c2 { background: #ff2e93; } .confetti .c3 { background: #2962ff; } .confetti .c4 { background: #ff6d00; }
@keyframes fall { to { transform: translateY(108vh) rotate(720deg); } }

#toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  transform: translateX(-50%) translateY(14px) scale(.92);
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 11px 16px;
  border: 2.5px solid #000;
  border-radius: 14px;
  background: #17122b;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .3s var(--pop);
}
#toast.on { opacity: 1; transform: translateX(-50%); }

/* Parkplatz-Szene */
#app { position: relative; z-index: 1; }
#park-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(#17152a, #3a2a34 45%, #15151c); }
#park-scene:empty { display: none; }
#park-scene svg { display: block; overflow: visible; }
.ps-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: 0; transition: opacity .7s; }
.ps-bg.painted { opacity: 1; }
.ps-float { position: absolute; will-change: transform; animation: ps-a 20s ease-in-out infinite; }
.ps-path-a { animation-name: ps-a; }
.ps-path-b { animation-name: ps-b; }
.ps-path-c { animation-name: ps-c; }
.ps-path-d { animation-name: ps-d; }
.ps-tumble { width: 100%; height: auto; will-change: transform; animation: ps-roll-l 40s linear infinite; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
.ps-tumble-r { animation-name: ps-roll-r; }
@keyframes ps-a { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(13vw, -8vh); } 50% { transform: translate(-7vw, -13vh); } 75% { transform: translate(-13vw, 5vh); } }
@keyframes ps-b { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-14vw, 7vh); } 50% { transform: translate(9vw, 12vh); } 75% { transform: translate(15vw, -5vh); } }
@keyframes ps-c { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(17vw, -12vh); } 60% { transform: translate(-11vw, -17vh); } 80% { transform: translate(-16vw, -4vh); } }
@keyframes ps-d { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-11vw, 12vh); } 66% { transform: translate(11vw, 17vh); } }
@keyframes ps-roll-l { to { transform: rotate(-360deg); } }
@keyframes ps-roll-r { to { transform: rotate(360deg); } }
.ps-flicker { position: absolute; inset: 0; background: radial-gradient(circle at 72% 55%, rgba(255, 170, 90, .16), rgba(255, 170, 90, 0) 42%); animation: ps-flicker 9s steps(1) infinite; }
@keyframes ps-flicker { 0%, 61%, 64%, 66%, 100% { opacity: 1; } 62%, 65% { opacity: .15; } }
body[data-v=park] { --bg: #15131f; }
body[data-v=park] #app > h1, body[data-v=park] #app > .lede { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .85); }
body[data-v=park] .top-actions { color: #fff; filter: drop-shadow(0 1px 3px #000); }
body[data-v=park] nav.tabs button[aria-current=page] { background: #ffb864; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .confetti, .burst, .cele-rays { display: none; }
}
:root {
  --ink: #20143b;
  --ink-2: #594d69;
  --line: #20143b;
  --accent: #ff3f8e;
  --go: #b8f23d;
  --display: "Arial Black", Impact, ui-rounded, sans-serif;
  --sans: "Trebuchet MS", "Arial", sans-serif;
}
body {
  background-color: #261b55;
  background-image: radial-gradient(#ffdf48 1px, transparent 1px), linear-gradient(145deg,#3b2678,#171535 68%);
  background-size: 8px 8px, auto;
}
#app { max-width: 600px; }
h1,h2,h3 { text-transform: uppercase; letter-spacing: .025em; text-shadow: 2px 2px 0 #ffdb43; }
.card {
  border: 3px solid #20143b;
  border-radius: 4px;
  box-shadow: 5px 5px 0 #ff3f8e, 8px 8px 0 #20143b;
  background-image: radial-gradient(rgba(32,20,59,.07) .7px, transparent .7px);
  background-size: 5px 5px;
}
.card.warm { background-color:#ffdf48; }
.btn,.mode,.level-chip,.badge-item,.dot {
  border-radius: 4px;
  border-width: 3px;
  box-shadow: 4px 4px 0 #20143b;
}
.btn { text-transform: uppercase; letter-spacing: .03em; }
.btn.primary { background:#b8f23d; }
nav.tabs { border-radius: 4px 4px 0 0; border-top:3px solid #ffdf48; background:#20143b; }
nav.tabs button { color:#eee6ff; border-radius:3px; }
nav.tabs button[aria-current=page] { color:#20143b; }
.mode { background:#fff8df; }
.mode:nth-child(3n+1) { box-shadow:4px 4px 0 #ff3f8e; }
.mode:nth-child(3n+2) { box-shadow:4px 4px 0 #30d9ed; }
.mode:nth-child(3n) { box-shadow:4px 4px 0 #b8f23d; }
#toast { border-radius:3px; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }

/* 80s arcade cabinet: vivid, layered, readable and deliberately graphic. */
:root {
  --bg:#21144b; --card:#fff8dc; --card-2:#d8f8ff; --ink:#21143d; --ink-2:#584b69;
  --line:#21143d; --accent:#fa398b; --go:#a9ed38;
  --v-home:#24134d; --v-park:#111a3b; --v-garden:#143a37; --v-rewards:#37164e; --v-stats:#24205c; --v-more:#402047; --v-sleep:#141a3f;
  --display:Impact,"Arial Black",sans-serif; --sans:"Trebuchet MS",Arial,sans-serif;
}
body { background-image:linear-gradient(135deg,#2d1b67,#10152f 75%); }
body[data-v=home],body[data-v=park],body[data-v=garden],body[data-v=rewards],body[data-v=stats],body[data-v=more] { --bg:#20154b; }
#app { padding-top:calc(env(safe-area-inset-top) + 22px); }
#app > h1,#app > .lede,.top-actions { color:#fff4c7; text-shadow:2px 3px 0 #e92d8c,4px 5px 0 #11102b; }
h1,h2,h3 { text-shadow:1px 2px 0 #f8c843; }
.card { background-color:#fff8dc; background-image:linear-gradient(135deg,rgba(255,255,255,.38),transparent 50%); border:3px solid #17102e; border-radius:8px; box-shadow:5px 5px 0 #ef3b91,8px 8px 0 #17102e; }
.card.warm { background:#f9d64b; }
.btn,.mode,.level-chip { border:3px solid #17102e; border-radius:5px; box-shadow:0 5px 0 #17102e,0 8px 0 #ef3b91; }
.btn { background:#fff4ce; }
.btn.primary { background:#adf13a; }
.mode { background:linear-gradient(120deg,#fff4ce 0 70%,#f9d64b 70%); }
.btn:active:not([disabled]),.mode:active,.chip:active,.garden-link:active,.level-chip:active { transform:translateY(4px); box-shadow:0 1px 0 #17102e; }
nav.tabs { background:#17102e; border:3px solid #f5d34a; border-bottom:0; border-radius:8px 8px 0 0; }
nav.tabs button { color:#d8f8ff; }
nav.tabs button[aria-current=page] { background:#f5d34a; }
#park-scene { background:#121331 url('parking-comic.png') center 56%/cover no-repeat; }
.ps-flicker { display:none; }
.bed { background:#215941 url('meadow-comic.png') center 68%/cover no-repeat; border:3px solid #17102e; border-radius:5px; }
.bed canvas,.bed .gn-base,.bed .gn-vignette,.bed .gn-bloom { opacity:.16; }
.bed svg { filter:drop-shadow(0 1px 2px #10102c); }
.bed .gn-base,.bed .gn-canvas,.bed .gn-tree,.bed .gn-bloom,.bed .gn-vignette { display:none !important; }
.bed .gn-layer { position:absolute; inset:0; width:100%; height:100%; }
.bed { background-image:url('meadow-comic.png') !important; background-position:center 68% !important; background-size:cover !important; }

/* Contrast pass and 1980s supernatural arcade art direction */
:root {
  --bg:#11152f; --card:#f8f0d6; --card-2:#d9f6f2; --ink:#17162d; --ink-2:#48445d;
  --line:#17162d; --accent:#c92752; --accent-ink:#fff8e9; --go:#c9ec68;
  --display:Impact,"Arial Black",sans-serif; --sans:"Trebuchet MS",Arial,sans-serif;
}
body { background-color:#11152f; background-image:radial-gradient(ellipse at 50% -10%,#39335e 0,transparent 55%),linear-gradient(160deg,#151a39,#101128 75%); }
body[data-v] { --bg:#141733; }
#app > h1 { color:#fff0d2; font-family:Georgia,"Times New Roman",serif; font-weight:900; letter-spacing:.04em; text-transform:uppercase; text-shadow:0 0 2px #fff,0 0 9px #ff4668,0 0 24px #ff274f,3px 4px 0 #47172e; }
#app > .lede,.top-actions { color:#f8f0d6; text-shadow:0 2px 5px #0b0d20; }
h1,h2,h3 { color:#21152f; text-shadow:1px 2px 0 #e3b8b4; }
.card { color:#21152f; background:#f8f0d6; border:2px solid #11152b; border-radius:7px; box-shadow:0 5px 0 #822d50,0 7px 0 #11152b; }
.muted,.small,.tip,.legend,.url { color:#48445d; }
.mode { color:#17162d !important; background:#f8f0d6 !important; text-shadow:none !important; border-color:#11152b; box-shadow:0 5px 0 #15132e,0 7px 0 #e63b5b; }
.mode b { color:#17162d !important; font-family:Impact,"Arial Black",sans-serif; font-size:27px; letter-spacing:.045em; text-transform:uppercase; text-shadow:1px 1px 0 #f4b83e; }
.mode span span { color:#3b3650 !important; }
.mode-kaufen svg { background:#f0b42f !important; color:#222047; }
.mode-essen svg { background:#f39a8f !important; color:#252044; }
.mode-medien svg { background:#77d5d5 !important; color:#252044; }
.btn { color:#20172f; }
.btn.primary { color:#17162d; background:#c9ec68; }
nav.tabs { background:#11132a; border-color:#e64a65; box-shadow:0 -3px 18px #e63b5b55; }
nav.tabs button { color:#f6ead0; }
nav.tabs button[aria-current=page] { background:#e64a65; color:#15142e; }
.level-chip { color:#20172f; background:#f8f0d6; }
.card.warm,.badge-item.on,.dot.on { color:#21152f; }
input,textarea,select { color:#17162d; }
::placeholder { color:#625d70; opacity:1; }
button:focus-visible,input:focus-visible,textarea:focus-visible,label.file:focus-within { outline-color:#e33e62; }
@media (prefers-color-scheme: dark) {
 .card,.mode,.level-chip { color:#17162d; }
 .mode b,.mode span span { color:#17162d !important; }
 .muted,.small,.tip,.legend { color:#48445d; }
}
body[data-v=park] #app > h1,body[data-v=park] #app > .lede { color:#fff4c7; text-shadow:2px 3px 0 #ef3b91; }
body[data-v=park] .card { background:rgba(255,248,220,.94); }

/* Neonschild für nachträgliche Einträge */
.neon-retro { display: block; width: 100%; min-height: 48px; margin: 14px 0 22px; padding: 11px 14px; color: #fff6fb; font-family: var(--display); font-size: 16px; line-height: 1.2; letter-spacing: .09em; text-align: center; text-transform: uppercase; background: rgba(18, 12, 42, .72); border: 2px solid #ff4fa3; border-radius: 12px; text-shadow: 0 0 3px #ff7ac0, 0 0 10px #ff2f92, 0 0 20px #ff2f92; box-shadow: 0 0 6px #ff4fa3, 0 0 18px rgba(255, 47, 146, .6), inset 0 0 10px rgba(255, 47, 146, .4); animation: neon-flicker 7s steps(1) infinite; cursor: pointer; }
.neon-retro:active { transform: translateY(1px); }
@keyframes neon-flicker { 0%, 58%, 61%, 64%, 100% { opacity: 1; } 59%, 62% { opacity: .55; } }

.topbar .eyebrow { color: #f8f0d6; text-shadow: 0 1px 4px #0b0d20; }
#app > .btn.quiet { color: #f8f0d6; text-shadow: 0 1px 4px #0b0d20; }

/* Level-Abzeichen und Tiere */
.level-chip { display: inline-flex; align-items: center; gap: 6px; }
.lvl-chip-img { width: 30px; height: 30px; margin: -4px 0; }
.garden-link > .lvl-row { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; }
.lvl-img { flex: none; width: 60px; height: 60px; filter: drop-shadow(0 1px 2px rgba(16, 16, 44, .45)); }
.lvl-next { width: 44px; height: 44px; filter: saturate(.25) brightness(.8); opacity: .75; }
.lvl-mid { display: block; flex: 1; min-width: 0; }
.lvl-mid .track { display: block; margin-top: 6px; }
.lvl-big { flex: none; width: 84px; height: 84px; margin-right: 10px; }
.cele-img { display: block; width: 170px; height: 170px; margin: 0 auto; object-fit: contain; }
.legend-plants img { width: 100%; height: auto; }
.guest-pic { display: block; width: 130px; margin: 0 auto 6px; }
.bed .gn-animal { position: absolute; height: auto; filter: drop-shadow(0 3px 2px rgba(5, 15, 10, .55)); animation: gn-walk 60s linear infinite; will-change: transform; }
.bed.mini .gn-animal { will-change: auto; }
@keyframes gn-walk { 0%, 4% { transform: translateX(calc(var(--walk) * -1)) scaleX(1); } 48%, 50% { transform: translateX(var(--walk)) scaleX(1); } 50.01%, 54% { transform: translateX(var(--walk)) scaleX(-1); } 98%, 99.99% { transform: translateX(calc(var(--walk) * -1)) scaleX(-1); } 100% { transform: translateX(calc(var(--walk) * -1)) scaleX(1); } }
.done > h1, .done > .lede, .done > .small { color: #fff0d2; text-shadow: 0 1px 2px #0b0d20, 0 0 10px #ff2f92; }

/* Parkplatz-Figuren als Bilder */
#park-scene .ps-float { filter: none; }
#park-scene .ps-tumble { display: block; filter: none; }
.ps-figure { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 70px); width: clamp(84px, 24vw, 118px); height: auto; transform-origin: 50% 100%; will-change: transform; }
.ps-sway { animation: ps-fig-sway 5s ease-in-out infinite alternate; }
@keyframes ps-fig-sway { from { transform: skewX(-1.2deg); } to { transform: skewX(1.2deg); } }

/* Einkaufsliste */
.mode-shop { width: 100%; margin-bottom: 20px; box-shadow: 0 5px 0 #15132e, 0 7px 0 #f4b83e; }
.mode-shop svg { background: #c9ec68 !important; color: #252044; }
.shop-add { margin: 0; padding: 12px; }
.shop-row { gap: 6px; }
.shop-tick { display: flex; flex: 1; min-width: 0; min-height: 40px; align-items: center; gap: 12px; padding: 0; color: var(--ink); font: inherit; text-align: left; overflow-wrap: anywhere; background: none; border: 0; cursor: pointer; }
.shop-box { display: grid; flex: none; place-items: center; width: 26px; height: 26px; color: #17162d; font-weight: 800; background: #fff; border: 2px solid #17162d; border-radius: 5px; }
.shop-tick[aria-pressed=true] .shop-box { background: #c9ec68; }
.shop-done { color: #625d70; text-decoration: line-through; }
.shop-note { color: #f8f0d6; text-shadow: 0 1px 4px #0b0d20; }
body[data-v=shop]::before { content: ""; position: fixed; inset: 0; z-index: 0; background: #141733 url('shop-quer.jpg') center/cover no-repeat; }
@media (max-width: 600px) and (orientation: portrait) {
  body[data-v=shop]::before { background-image: url('shop-hochkant.jpg'); }
}
body[data-v=shop] #app > .lede, body[data-v=shop] .shop-note { text-shadow: 0 1px 2px #0b0d20, 0 0 8px #0b0d20, 0 0 16px #0b0d20; }
.spontan-steps { margin: 0; padding-left: 22px; }
.spontan-steps li { padding: 8px 0; }
.spontan-breath { width: 96px; margin: 12px auto 4px; }
/* Atemkreis als Neonpunkt: leuchtet ruhig und atmet langsam */
.spontan-breath::before { inset: 4%; background: transparent; border: 3px solid #ff4fa3; opacity: 1; box-shadow: 0 0 8px #ff4fa3, 0 0 22px #ff2f92, inset 0 0 12px rgba(255, 47, 146, .55); animation: breathe 8s ease-in-out infinite; }
.spontan-breath::after { inset: 30%; background: #fff6fb; border: 0; box-shadow: 0 0 6px #fff, 0 0 14px #ff7ac0, 0 0 28px #ff2f92, 0 0 44px #ff2f92; animation: breathe 8s ease-in-out infinite; animation-delay: -.25s; }
@media (prefers-color-scheme: dark) { .spontan-breath::after { background: #fff6fb; } }

/* Eigene Sicherheitsabfrage */
.ask-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(8, 8, 24, .72); }
.ask-card { width: min(100%, 400px); padding: 20px; color: #21152f; background: #f8f0d6; border: 3px solid #17102e; border-radius: 8px; box-shadow: 0 6px 0 #822d50, 0 9px 0 #11152b; }
.ask-text { margin: 0 0 16px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.ask-input { width: 100%; margin-bottom: 14px; }

/* Gedanken und Pläne */
.mode-tools { margin-bottom: 14px; box-shadow: 0 5px 0 #15132e, 0 7px 0 #77d5d5; }
.mode-tools svg { background: #f39ad0 !important; }
.thought-list { display: grid; gap: 10px; }
.thought-chip { width: 100%; min-height: 48px; padding: 12px 14px; color: #17162d; font: inherit; font-weight: 600; text-align: left; background: #f8f0d6; border: 2px solid #17162d; border-radius: 7px; box-shadow: 0 3px 0 #17162d; cursor: pointer; }
.thought-chip[aria-pressed=true] { background: #c9ec68; }
.thought-answer { border-color: #ff4fa3; box-shadow: 0 0 8px #ff4fa3, 0 0 20px rgba(255, 47, 146, .55); }
.thought-big { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.2; }
.plan-row p { overflow-wrap: anywhere; }
.thought-open { margin: 0 0 12px; color: #f8f0d6; text-shadow: 0 1px 4px #0b0d20; }
.tool-head { margin: 10px 0 0; color: #fff0d2; text-shadow: 0 1px 4px #0b0d20; }
.tool-sub, .tool-empty { margin: 4px 0 0; color: #f8f0d6; text-shadow: 0 1px 4px #0b0d20; }
.tool-sub { font-size: 16px; }
.tool-card p { overflow-wrap: anywhere; }
.tool-bad { margin: 0; font-weight: 700; }
.tool-answer { margin: 6px 0 0; }
.tool-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; margin-top: 6px; }
.tool-foot > span:last-child { display: flex; gap: 2px; margin-left: auto; }

/* Knitterpapier auf allen cremefarbenen Flächen. Die Farbe bleibt, das Bild legt nur Falten darüber. */
.card:not(.warm), .mode, .level-chip, .btn:not(.primary):not(.quiet):not(.danger), .chip:not([aria-pressed=true]), .tile, .badge-item:not(.on), .dot:not(.on), .cele-card, .ask-card, .thought-chip:not([aria-pressed=true]) {
  background-image: linear-gradient(rgba(248, 240, 214, .42), rgba(248, 240, 214, .42)), url('papier.jpg') !important;
  background-size: auto, 460px 460px !important;
  background-blend-mode: normal, multiply !important;
}

/* Abzeichen als Bilder */
.badge-e { position: relative; width: 56px; height: 56px; margin: 0 auto; font-size: inherit !important; line-height: 0 !important; opacity: 1 !important; }
.badge-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.badge-item:not(.on) .badge-img { filter: grayscale(1) brightness(.55); opacity: .55; }
.badge-lock { position: absolute; right: -2px; bottom: -2px; font-size: 18px; line-height: 1; }

/* Startseiten-Icons als Bilder */
.home-icon { display: block; flex: none; width: 58px; height: 58px; object-fit: contain; }

/* Wiese als Hintergrund der Wiesen-Seite */
#meadow-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #215941 url('meadow-comic.png') center 68%/cover no-repeat; }
#meadow-scene:empty { display: none; }
@media (orientation: portrait) {
  #meadow-scene { background: #215941 url('wiese-hochkant.jpg') center bottom/cover no-repeat; }
}
#meadow-scene .meadow-column { position: absolute; left: 50%; bottom: 0; width: min(100%, 560px); height: 100%; aspect-ratio: auto; margin: 0; overflow: hidden; background: none !important; border: 0; border-radius: 0; transform: translateX(-50%); }
#meadow-scene .gn-animal { max-width: 220px; }
.meadow-spacer { height: calc(100dvh - 300px); min-height: 220px; }
@media (orientation: landscape) { #meadow-scene .meadow-column { height: 52%; } }

/* Eigene Landschaft je Wiese */
.bed.t-forest { background-image: url('wiese-waldrand-quer.jpg') !important; }
.bed.t-alpine { background-image: url('wiese-bergwiese-quer.jpg') !important; }
.bed.t-coast { background-image: url('wiese-kueste-quer.jpg') !important; }
#meadow-scene.t-forest { background-image: url('wiese-waldrand-quer.jpg'); background-position: center center; }
#meadow-scene.t-alpine { background-image: url('wiese-bergwiese-quer.jpg'); background-position: center center; }
#meadow-scene.t-coast { background-image: url('wiese-kueste-quer.jpg'); background-position: center center; }
@media (orientation: portrait) {
  #meadow-scene.t-forest { background-image: url('wiese-waldrand-hochkant.jpg'); background-position: center bottom; }
  #meadow-scene.t-alpine { background-image: url('wiese-bergwiese-hochkant.jpg'); background-position: center bottom; }
  #meadow-scene.t-coast { background-image: url('wiese-kueste-hochkant.jpg'); background-position: center bottom; }
}

/* Stapel auf dem Parkplatz */
.park-stack { position: relative; isolation: isolate; margin-bottom: 16px; }
.park-stack::before, .park-stack::after { content: ''; position: absolute; left: 6px; right: 6px; top: 8px; bottom: -8px; z-index: -1; background: #e8dfc2; border: 2px solid #11152b; border-radius: 7px; transform: rotate(1.2deg); }
.park-stack::after { left: 12px; right: 12px; top: 14px; bottom: -14px; z-index: -2; background: #d9cfae; transform: rotate(-1.4deg); }
.park-stack-top { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; box-shadow: none !important; }
.park-stack-top .grow { display: grid; gap: 2px; min-width: 0; flex: 1; }
.park-stack-top b { font-size: 1.1em; }
.park-stack-hint { flex: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.park-stack-close { display: block; width: 100%; color: #21152f !important; text-shadow: none !important; background: #f8f0d6 !important; border: 2px solid #11152b !important; }

/* Verlauf bearbeiten */
.hist-form { display: block; }
.hist-feel { cursor: pointer; }
.hist-feel input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hist-feel:has(input:checked) { background: #4326e6; color: #fff; }
.hist-feel:has(input:focus-visible) { outline: 3px solid #4326e6; outline-offset: 2px; }
.hist-form input[type=datetime-local] { display: block; width: 100%; min-width: 0; box-sizing: border-box; -webkit-appearance: none; appearance: none; }

/* Schlafen */
.sleep-target { margin: 0 0 12px; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1.1; }
.sleep-table td, .sleep-table th, .rank td, .rank th { padding: 7px 4px; }
.sleep-table td:last-child { width: 1%; text-align: right; }
.rank td:first-child { width: 1%; font-weight: 800; }
input[type=time], .stack input[type=datetime-local] { display: block; width: 100%; min-width: 0; box-sizing: border-box; -webkit-appearance: none; appearance: none; }

.sleep-chart { display: block; width: 100%; height: auto; margin: 4px 0 0; overflow: visible; }
.sleep-chart + p + .tip + table, .sleep-chart ~ table { margin-top: 12px; }
.sc-band { fill: rgba(67, 38, 230, .13); }
.sc-grid { stroke: rgba(33, 21, 47, .14); stroke-width: 1; }
.sc-target { stroke: #4326e6; stroke-width: 1.5; stroke-dasharray: 4 4; }
.sc-ax { font: 600 10.5px var(--sans); fill: #5b5470; text-anchor: end; }
.sc-ax[text-anchor=middle] { text-anchor: middle; }
.sc-ax-t { fill: #4326e6; font-weight: 800; }
.sc-line { fill: none; stroke: #8a82a6; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sc-on { fill: #4326e6; stroke: #f8f0d6; stroke-width: 2; }
.sc-off { fill: #8a8299; stroke: #f8f0d6; stroke-width: 2; }
.sleep-chart g[data-tip] { cursor: pointer; }
.sc-key { display: inline-block; width: 14px; height: 10px; margin-right: 4px; vertical-align: -1px; background: rgba(67, 38, 230, .25); border-radius: 2px; }
.rank .rank-bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: #4326e6; }
.rank th, .rank td { text-align: left; }
.rank th:last-child, .rank td:last-child { text-align: right; }

.sleep-edit { margin-top: 14px; padding: 14px; border: 2px dashed rgba(33, 21, 47, .35); border-radius: 10px; }
.sleep-edit input[type=datetime-local] { display: block; width: 100%; min-width: 0; box-sizing: border-box; -webkit-appearance: none; appearance: none; }

/* Einkaufsliste: Der Laden bleibt oben frei sichtbar, die Liste beginnt darunter */
.shop-spacer { height: clamp(140px, 34dvh, 340px); }
@media (orientation: landscape) { .shop-spacer { height: clamp(100px, 26dvh, 260px); } }

/* Abgleich */
.sync-code { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; }

/* Während der Eingabe keine Leiste unten (iOS schiebt sie sonst mit der Tastatur hoch) */
body.kb-open nav.tabs { display: none; }

/* Versionsnummer ganz unten unter „Mehr“ */
.app-version { margin: 6px 0 0; text-align: center; font-size: 15px; font-weight: 700; color: #f6ead0; text-shadow: 0 1px 3px #000; }

/* Werkzeuge auf der Startseite */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
.tool-tile { display: grid; justify-items: center; gap: 4px; padding: 14px 10px 12px; color: #17162d; text-align: center; background: #f8f0d6; border: 2px solid #11152b; border-radius: 12px; box-shadow: 0 5px 0 #15132e, 0 7px 0 #8fd3ff; }
.tool-tile:active { transform: translateY(4px); box-shadow: 0 1px 0 #15132e; }
.tool-tile .home-icon { width: 54px; height: 54px; }
.tool-tile b { font-family: var(--display); font-size: 17px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.tool-tile span:not(.home-icon) { font-size: 13px; color: #48445d; line-height: 1.25; }
.home-emoji { display: grid; place-items: center; font-size: 38px; line-height: 1; }

/* Bremse */
.brake-text { margin: 0; padding: 10px 12px; white-space: pre-wrap; background: rgba(33, 21, 47, .06); border-radius: 8px; }
.brake-tips { margin: 0 0 12px; padding-left: 20px; }

/* Checkliste und Medikamente */
.checklist .chip[aria-pressed=true] { background: #2f9e5b; color: #fff; }
.meds-card { box-shadow: 0 5px 0 #15132e, 0 7px 0 #8fd3ff; }
/* Reizpause: ruhig, dunkel, ohne Leiste */
body.calm-mode nav.tabs, body.calm-mode .topbar { display: none; }
body.calm-mode { background: #0f1424 !important; background-image: none !important; }
body.calm-mode::before { display: none !important; }
.calm-page { min-height: 80dvh; display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center; }
.calm-page h1, .calm-page .lede { color: #cfd6ee !important; text-shadow: none !important; }
.calm-circle { width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 211, 255, .55), rgba(143, 211, 255, .08) 70%); animation: calm-breath 10s ease-in-out infinite; }
@keyframes calm-breath { 0%, 100% { transform: scale(.6); } 40% { transform: scale(1); } }
.calm-since { color: #8d96b5; }
.calm-page .btn { min-width: 200px; }

/* Kacheln: ungerade Anzahl, die letzte geht über die ganze Breite */
.tool-grid > .tool-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile-tools { box-shadow: 0 5px 0 #15132e, 0 7px 0 #77d5d5; }
.tile-shop { box-shadow: 0 5px 0 #15132e, 0 7px 0 #f4b83e; }
.tile-sleep { box-shadow: 0 5px 0 #15132e, 0 7px 0 #b79cff; }
.tool-tile { align-content: start; }

/* Karten mit Icon im Kopf */
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head .home-icon { width: 44px; height: 44px; }
.card-head .home-emoji { font-size: 30px; }

/* Impuls-Kacheln: Kaufen, Essen, Medien, Nachtragen */
.impulse-grid { margin-top: 18px; }
.tile-kaufen { box-shadow: 0 5px 0 #15132e, 0 7px 0 #ff8a00; }
.tile-essen { box-shadow: 0 5px 0 #15132e, 0 7px 0 #e0006e; }
.tile-medien { box-shadow: 0 5px 0 #15132e, 0 7px 0 #4326e6; }
.tile-retro { box-shadow: 0 5px 0 #15132e, 0 7px 0 #ff4fa8; }

/* Kurzbeschreibung beim ersten Besuch */
.intro h2 { margin-top: 0; }
.intro-steps { margin: 0; padding-left: 22px; }
.intro-steps li { margin: 0 0 6px; }

/* Als App aufs Handy legen */
.install-card { box-shadow: 0 5px 0 #15132e, 0 7px 0 #c9ec68; }
.install-os { margin-top: 12px; }
.install-os h3 { margin: 0 0 6px; }
.install-more { margin-top: 12px; }
.install-more summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.tile-brake { box-shadow: 0 5px 0 #15132e, 0 7px 0 #e23b3b; }
.tile-meds { box-shadow: 0 5px 0 #15132e, 0 7px 0 #3ec27a; }

/* Belohnungsstufen */
.tier-head { margin: 14px 0 8px; color: #f6ead0 !important; text-shadow: 0 1px 3px #000 !important; }
.tier-head .small { color: #d8d0ee !important; font-family: var(--sans); font-weight: 600; text-transform: none; letter-spacing: 0; }
.num .up { color: #b0306a; }

/* Hab ich alles? */
.checklist { position: relative; overflow: hidden; }
.checklist.all-done { box-shadow: 0 5px 0 #15132e, 0 7px 0 #3ec27a; }
.check-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.check-tabs button { padding: 5px 12px; font-size: 14px; font-weight: 700; color: #21152f; background: rgba(33, 21, 47, .07); border: 2px solid transparent; border-radius: 999px; }
.check-tabs button[aria-pressed=true] { background: #f8f0d6; border-color: #11152b; }
.check-cheer { margin: 10px 0 0; font-weight: 800; color: #2f7d50; }
.checklist .confetti { position: absolute; inset: 0; pointer-events: none; }
.check-tabs .check-add { background: transparent; border: 2px dashed rgba(33, 21, 47, .35); color: #4a3d63; }
