/* ========== Schmetterlingsfutter – Stylesheet ========== */
@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:400 700; font-display:swap; src:url('../fonts/PlayfairDisplay-400.woff2') format('woff2'); }
@font-face { font-family:'Playfair Display'; font-style:italic; font-weight:400; font-display:swap; src:url('../fonts/PlayfairDisplay-400i.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/Lato-300.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/Lato-400.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/Lato-700.woff2') format('woff2'); }

/* ---------- Themes ---------- */
:root {
  --bg0:#1a0a1e; --bg1:#2d1133; --bg2:#1a0a1e;
  --accent:#ff6496; --accent-2:#ff85a1; --accent-deep:#e8305a; --accent-dark:#9b1a38;
  --text:#fff1f5; --text-soft:#f6dbe6; --text-muted:#f2bfd0;
  --line:rgba(255,150,180,.3); --line-soft:rgba(255,150,180,.18);
  --glass:rgba(255,255,255,.05); --glass-2:rgba(255,255,255,.03);
  --glow:rgba(255,100,150,.5);
  --petal:#fffde7; --petal-stroke:#f0e060; --petal-hover:#fff176;
  --radius:20px; --radius-s:14px;
  --nav-h:68px;
  --serif:'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
[data-theme="rose"] {
  --bg0:#2a0710; --bg1:#4a0f22; --bg2:#2a0710;
  --accent:#ff4d7a; --accent-2:#ff7aa0; --accent-deep:#d81b4a; --accent-dark:#8a0f2e;
  --line:rgba(255,120,160,.32); --line-soft:rgba(255,120,160,.18); --glow:rgba(255,77,122,.5);
}
[data-theme="ozean"] {
  --bg0:#061522; --bg1:#0c2a40; --bg2:#061522;
  --accent:#4fd1c5; --accent-2:#7ee8dc; --accent-deep:#1aa39a; --accent-dark:#0d6b66;
  --text:#eefcff; --text-soft:#d3f1f4; --text-muted:#a9e4df;
  --line:rgba(100,210,200,.3); --line-soft:rgba(100,210,200,.18);
  --glass:rgba(255,255,255,.05); --glow:rgba(79,209,197,.45);
}
[data-theme="sonne"] {
  --bg0:#2a1004; --bg1:#5a2510; --bg2:#2a1004;
  --accent:#ff8c5a; --accent-2:#ffb080; --accent-deep:#f0582a; --accent-dark:#9c2f10;
  --text:#fff7ef; --text-soft:#ffe4d2; --text-muted:#ffcdb0;
  --line:rgba(255,160,120,.32); --line-soft:rgba(255,160,120,.18); --glow:rgba(255,140,90,.5);
}

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { -webkit-text-size-adjust:100%; height:100%; }
body {
  min-height:100%; background:var(--bg0); color:var(--text);
  font-family:var(--sans); font-weight:400; line-height:1.5;
  display:flex; justify-content:center;
  -webkit-font-smoothing:antialiased;
}
button { font:inherit; color:inherit; -webkit-tap-highlight-color:transparent; cursor:pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline:2px solid var(--accent-2); outline-offset:2px;
}
input, textarea, select { font:inherit; color:var(--text); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.hidden { display:none !important; }

#app {
  width:100%; max-width:430px; min-height:100vh; min-height:100dvh;
  background:linear-gradient(160deg,var(--bg0) 0%,var(--bg1) 40%,var(--bg2) 100%);
  position:relative; overflow:hidden;
  display:flex; flex-direction:column;
  padding-top:env(safe-area-inset-top);
}
.stars { position:absolute; inset:0; pointer-events:none; z-index:0; }
.star { position:absolute; background:#fff; border-radius:50%; animation:twinkle var(--d,3s) ease-in-out infinite var(--delay,0s); }
@keyframes twinkle { 0%,100%{opacity:.2;transform:scale(1)} 50%{opacity:1;transform:scale(1.5)} }
.floating-hearts { position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:5; }
.float-heart { position:absolute; opacity:0; animation:floatUp 2.5s ease-out forwards; }
@keyframes floatUp { 0%{opacity:.9;transform:translateY(0) scale(1)} 100%{opacity:0;transform:translateY(-180px) scale(.3)} }

/* ---------- Header ---------- */
.header { z-index:1; padding:22px 24px 10px; display:flex; align-items:center; justify-content:center; gap:12px; }
.name-pill {
  padding:7px 16px; border-radius:24px; border:.5px solid var(--line);
  background:var(--glass); font-size:19px; letter-spacing:1px; color:var(--text-soft);
  max-width:46%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.name-sep { font-size:22px; color:var(--accent); animation:heartbeat 2.5s ease-in-out infinite; }

/* ---------- Views ---------- */
main { z-index:1; flex:1; padding:8px 24px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
.view { display:none; flex-direction:column; align-items:center; width:100%; animation:fadeUp .35s ease both; }
.view.active { display:flex; }
.view-title { font-family:var(--serif); font-style:italic; font-size:20px; color:var(--text-soft); text-align:center; margin-bottom:4px; letter-spacing:.5px; }
.view-sub { font-size:16px; color:var(--text-muted); letter-spacing:1.5px; text-transform:uppercase; text-align:center; margin-bottom:18px; }
.eyebrow { font-size:16px; color:var(--text-muted); letter-spacing:3px; text-transform:uppercase; margin-bottom:12px; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ---------- Bottom nav ---------- */
.nav {
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:430px; height:calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding:8px 10px env(safe-area-inset-bottom); z-index:10;
  background:linear-gradient(to top, var(--bg0) 60%, rgba(0,0,0,0));
  display:flex; justify-content:space-around; gap:4px;
}
.nav button {
  flex:1; border:0; background:transparent; border-radius:var(--radius-s);
  display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:8px 2px; color:var(--text-muted); font-size:16px; letter-spacing:.3px;
  transition:color .2s, background .2s;
}
.nav button .ico { font-size:22px; line-height:1; filter:grayscale(.6) opacity(.75); transition:filter .2s, transform .2s; }
.nav button.active { color:var(--text); background:var(--glass); }
.nav button.active .ico { filter:none; transform:translateY(-2px); }

/* ---------- Cards & buttons ---------- */
.card {
  width:100%; background:var(--glass); border:.5px solid var(--line);
  border-radius:var(--radius); padding:20px 22px; margin-bottom:16px; position:relative; overflow:hidden;
}
.card.soft { background:var(--glass-2); border-color:var(--line-soft); }
.btn {
  padding:15px 10px; border-radius:16px; border:.5px solid var(--line); background:var(--glass-2);
  color:var(--text); font-size:18px; letter-spacing:.3px; transition:all .2s;
  display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;
}
.btn:active { background:rgba(255,255,255,.1); border-color:var(--accent-2); transform:scale(.96); }
.btn-icon { font-size:24px; }
.btn-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; margin-bottom:16px; }
.btn-row.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.btn-row.three .btn { padding:12px 6px; font-size:16px; }
.pill-btn {
  padding:12px 24px; border-radius:24px; border:.5px solid var(--line);
  background:rgba(255,255,255,.06); color:var(--text); font-size:18px; letter-spacing:1px; transition:all .2s;
}
.pill-btn.primary { background:var(--accent-deep); border-color:var(--accent-2); color:#fff; font-weight:400; box-shadow:0 6px 24px var(--glow); }
.pill-btn:active { transform:scale(.97); }
.pill-btn.small { padding:8px 16px; font-size:16px; }
.pill-btn.ghost { background:transparent; }
.pill-btn:disabled { opacity:.4; cursor:default; }
.icon-btn {
  width:40px; height:40px; border-radius:50%; border:.5px solid var(--line); background:var(--glass-2);
  display:inline-flex; align-items:center; justify-content:center; font-size:20px; transition:all .2s;
}
.icon-btn:active { transform:scale(.9); background:rgba(255,255,255,.1); }
.icon-btn.on { background:var(--accent-deep); border-color:var(--accent-2); }
.row { display:flex; gap:10px; align-items:center; justify-content:center; width:100%; }
.row.between { justify-content:space-between; }
.row.wrap { flex-wrap:wrap; }
.hint { font-size:16px; color:var(--text-muted); letter-spacing:1px; text-align:center; margin-top:8px; }
.tag { display:inline-block; font-size:16px; letter-spacing:1.5px; text-transform:uppercase; color:var(--accent-2); border:.5px solid var(--line); border-radius:10px; padding:2px 8px; }

/* ---------- Home ---------- */
.heart-wrap { position:relative; margin:4px 0 20px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.pulse-ring { position:absolute; width:130px; height:130px; border-radius:50%; border:1px solid var(--line); top:0; left:0; animation:pulseOut 2.5s ease-out infinite; }
@keyframes pulseOut { 0%{transform:scale(1);opacity:.5} 100%{transform:scale(2.4);opacity:0} }
.big-heart { width:130px; height:130px; display:block; filter:drop-shadow(0 0 22px var(--glow)); animation:heartbeat 2.5s ease-in-out infinite; transition:transform .15s; }
.heart-wrap:active .big-heart { transform:scale(.88); }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 14%{transform:scale(1.13)} 28%{transform:scale(1)} 42%{transform:scale(1.07)} 56%{transform:scale(1)} }
.msg-card { text-align:center; min-height:150px; display:flex; flex-direction:column; justify-content:center; }
.msg-card::before { content:'"'; position:absolute; top:-12px; left:14px; font-family:var(--serif); font-size:72px; color:var(--accent); opacity:.12; font-style:italic; line-height:1; }
.msg-label { font-size:16px; letter-spacing:2.5px; text-transform:uppercase; color:var(--text-muted); margin-bottom:10px; min-height:14px; }
.msg-text { font-family:var(--serif); font-style:italic; font-size:20px; line-height:1.65; color:var(--text); position:relative; z-index:1; transition:opacity .35s; }
.msg-sig { font-size:16px; color:var(--text-muted); letter-spacing:2.5px; text-transform:uppercase; margin-top:14px; }
.msg-actions { display:flex; justify-content:center; gap:10px; margin-top:16px; }
.counter-chip { font-size:16px; color:var(--text-muted); letter-spacing:1px; margin:-6px 0 14px; }

.reason-list { width:100%; }
.reason-item { display:flex; align-items:flex-start; gap:12px; margin-bottom:11px; animation:fadeUp .4s ease both; }
.reason-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); flex-shrink:0; margin-top:7px; }
.reason-text { font-size:19px; color:var(--text); line-height:1.55; flex:1; }
.reason-del { border:0; background:transparent; color:var(--text-muted); font-size:19px; padding:0 4px; }

.fav-item { padding:10px 0; border-bottom:.5px solid var(--line-soft); font-family:var(--serif); font-style:italic; font-size:19px; display:flex; gap:10px; align-items:flex-start; }
.fav-item:last-child { border-bottom:0; }
.fav-item span { flex:1; }
.empty { font-size:18px; color:var(--text-muted); text-align:center; padding:8px 0; }

/* ---------- Oracle ---------- */
.daisy-wrap { position:relative; width:230px; height:230px; margin-bottom:10px; -webkit-tap-highlight-color:transparent; }
.daisy-wrap svg { width:100%; height:100%; overflow:visible; }
.daisy-wrap svg path.petal { cursor:pointer; transition:fill .15s; }
.oracle-status { min-height:64px; text-align:center; margin-bottom:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; }
.oracle-phrase { font-family:var(--serif); font-style:italic; font-size:21px; color:var(--text); transition:opacity .25s; }
.oracle-phrase.loves { color:var(--accent-2); }
.oracle-phrase.loves-not { color:var(--text-muted); }
.oracle-count { font-size:16px; letter-spacing:2px; color:var(--text-muted); text-transform:uppercase; }
.oracle-result { display:none; flex-direction:column; align-items:center; gap:12px; margin-bottom:20px; animation:fadeUp .5s ease both; }
.oracle-result.visible { display:flex; }
.oracle-result-emoji { font-size:52px; }
.oracle-result-text { font-family:var(--serif); font-size:24px; color:var(--accent-2); text-align:center; }
.oracle-result-sub { font-size:18px; color:var(--text-muted); text-align:center; letter-spacing:1px; }
.oracle-stats { font-size:16px; color:var(--text-muted); letter-spacing:1px; margin-top:4px; }

/* ---------- Time ---------- */
.big-number { font-family:var(--serif); font-size:56px; line-height:1; color:var(--accent-2); text-align:center; text-shadow:0 0 30px var(--glow); }
.big-number small { display:block; font-family:var(--sans); font-size:16px; letter-spacing:3px; text-transform:uppercase; color:var(--text-muted); margin-top:10px; }
.time-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; width:100%; margin-bottom:16px; }
.time-cell { background:var(--glass-2); border:.5px solid var(--line-soft); border-radius:var(--radius-s); padding:12px 6px; text-align:center; }
.time-cell b { display:block; font-family:var(--serif); font-size:22px; font-weight:400; color:var(--text); }
.time-cell span { font-size:16px; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-muted); }
.milestone { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:.5px solid var(--line-soft); font-size:19px; }
.milestone:last-child { border-bottom:0; }
.milestone.done { color:var(--text-muted); }
.milestone.done .ms-label::before { content:'✓ '; color:var(--accent-2); }
.milestone .ms-date { font-size:16px; color:var(--text-muted); }
.milestone.next { color:var(--accent-2); }
.progress { height:6px; border-radius:3px; background:var(--glass); overflow:hidden; margin:12px 0 6px; }
.progress i { display:block; height:100%; background:linear-gradient(90deg,var(--accent-deep),var(--accent-2)); border-radius:3px; transition:width .6s ease; }

/* ---------- Coupons ---------- */
.coupon {
  width:100%; display:flex; gap:14px; align-items:center; padding:14px 16px; margin-bottom:10px;
  background:var(--glass); border:.5px dashed var(--line); border-radius:var(--radius-s); position:relative; text-align:left;
}
.coupon::before, .coupon::after { content:''; position:absolute; width:16px; height:16px; border-radius:50%; background:var(--bg1); top:50%; transform:translateY(-50%); border:.5px dashed var(--line); }
.coupon::before { left:-9px; } .coupon::after { right:-9px; }
.coupon .c-ico { font-size:30px; flex-shrink:0; }
.coupon .c-body { flex:1; min-width:0; }
.coupon .c-title { font-family:var(--serif); font-size:19px; color:var(--text); }
.coupon .c-desc { font-size:16px; color:var(--text-soft); margin-top:2px; }
.coupon .c-state { font-size:16px; letter-spacing:1.5px; text-transform:uppercase; color:var(--accent-2); margin-top:6px; }
.coupon.used { opacity:.5; border-style:solid; }
.coupon.used .c-title { text-decoration:line-through; }

/* ---------- Forms ---------- */
.field { width:100%; margin-bottom:14px; }
.field label { display:block; font-size:16px; letter-spacing:2px; text-transform:uppercase; color:var(--text-muted); margin-bottom:6px; }
.field input, .field textarea, .field select {
  width:100%; padding:12px 14px; border-radius:var(--radius-s); border:.5px solid var(--line);
  background:rgba(0,0,0,.2); color:var(--text); font-size:19px; font-weight:400;
}
.field input::placeholder, .field textarea::placeholder { color:var(--text-muted); }
.field textarea { min-height:90px; resize:vertical; font-family:var(--serif); font-style:italic; }
.field select option { color:#000; }
.emoji-grid { display:grid; grid-template-columns:repeat(8,1fr); gap:6px; }
.emoji-grid button { font-size:22px; padding:6px 0; border-radius:10px; border:.5px solid transparent; background:transparent; }
.emoji-grid button.sel { border-color:var(--accent-2); background:var(--glass); }
.theme-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.theme-sw { height:44px; border-radius:12px; border:2px solid transparent; position:relative; overflow:hidden; }
.theme-sw.sel { border-color:#fff; }
.theme-sw span { position:absolute; bottom:3px; left:0; right:0; font-size:16px; letter-spacing:.5px; color:#fff; text-align:center; text-shadow:0 1px 2px #000; }
.theme-sw[data-t="nacht"] { background:linear-gradient(135deg,#2d1133,#ff6496); }
.theme-sw[data-t="rose"] { background:linear-gradient(135deg,#4a0f22,#ff4d7a); }
.theme-sw[data-t="ozean"] { background:linear-gradient(135deg,#0c2a40,#4fd1c5); }
.theme-sw[data-t="sonne"] { background:linear-gradient(135deg,#5a2510,#ff8c5a); }
.switch { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:.5px solid var(--line-soft); font-size:19px; }
.switch:last-child { border-bottom:0; }
.switch small { display:block; font-size:16px; color:var(--text-muted); }
.toggle { width:46px; height:26px; border-radius:13px; background:var(--glass); border:.5px solid var(--line); position:relative; transition:background .2s; flex-shrink:0; }
.toggle::after { content:''; position:absolute; width:20px; height:20px; border-radius:50%; background:#fff; top:2px; left:2px; transition:transform .2s; }
.toggle[aria-checked="true"] { background:var(--accent-deep); }
.toggle[aria-checked="true"]::after { transform:translateX(20px); }
.settings-list .card { padding:6px 18px; }
.about { font-size:18px; color:var(--text-soft); line-height:1.6; }
.about a { color:var(--accent-2); }
.danger { color:#ff8a8a; }

/* ---------- Onboarding / Gift ---------- */
.overlay {
  position:fixed; inset:0; z-index:50; display:flex; justify-content:center; overflow-y:auto;
  background:linear-gradient(160deg,var(--bg0) 0%,var(--bg1) 40%,var(--bg2) 100%);
}
.overlay .inner { width:100%; max-width:430px; padding:48px 28px 40px; display:flex; flex-direction:column; align-items:center; }
.logo { font-family:var(--serif); font-size:34px; color:var(--text); text-align:center; margin-bottom:6px; }
.logo em { color:var(--accent-2); font-style:italic; }
.lead { font-size:19px; color:var(--text-soft); text-align:center; margin-bottom:28px; line-height:1.6; }
.step-dots { display:flex; gap:6px; margin-bottom:22px; }
.step-dots i { width:6px; height:6px; border-radius:50%; background:var(--line); }
.step-dots i.on { background:var(--accent-2); width:18px; border-radius:3px; }
.ob-step { display:none; width:100%; flex-direction:column; align-items:center; animation:fadeUp .35s ease both; }
.ob-step.active { display:flex; }
.ob-nav { display:flex; gap:10px; width:100%; margin-top:10px; }
.ob-nav .pill-btn { flex:1; }

.envelope-scene { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:70vh; }
.envelope { width:200px; height:140px; position:relative; cursor:pointer; -webkit-tap-highlight-color:transparent; animation:envFloat 3s ease-in-out infinite; }
@keyframes envFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.env-body { position:absolute; inset:0; background:linear-gradient(160deg,#fff6f8,#ffd6e2); border-radius:10px; box-shadow:0 20px 50px rgba(0,0,0,.4); }
.env-flap { position:absolute; left:0; right:0; top:0; height:50%; background:linear-gradient(180deg,#ffc0d2,#ff9ab8); clip-path:polygon(0 0,100% 0,50% 100%); border-radius:10px 10px 0 0; transform-origin:top; transition:transform .7s ease; z-index:3; }
.env-seal { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:44px; height:44px; border-radius:50%; background:var(--accent-deep); display:flex; align-items:center; justify-content:center; font-size:22px; z-index:4; box-shadow:0 4px 14px rgba(0,0,0,.3); transition:opacity .4s; }
.env-letter { position:absolute; left:14px; right:14px; bottom:10px; height:110px; background:#fff; border-radius:6px; z-index:2; transition:transform .8s ease .4s, color .4s .8s; display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-style:italic; color:transparent; font-size:19px; padding:12px; text-align:center; }
.envelope.open .env-flap { transform:rotateX(180deg); }
.envelope.open .env-seal { opacity:0; }
.envelope.open .env-letter { transform:translateY(-120px); color:#7a2040; }
.env-hint { margin-top:40px; font-size:18px; color:var(--text-soft); letter-spacing:1px; text-align:center; }

/* ---------- Toast ---------- */
.toast {
  position:fixed; left:50%; bottom:calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform:translateX(-50%) translateY(20px);
  background:rgba(0,0,0,.75); color:#fff; padding:10px 18px; border-radius:20px; font-size:18px;
  opacity:0; transition:all .3s; pointer-events:none; z-index:60; max-width:90%; text-align:center;
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ---------- Modal ---------- */
.modal { position:fixed; inset:0; z-index:55; background:rgba(0,0,0,.6); display:none; align-items:flex-end; justify-content:center; }
.modal.open { display:flex; }
.modal .sheet { width:100%; max-width:430px; background:var(--bg1); border-radius:24px 24px 0 0; padding:22px 22px calc(24px + env(safe-area-inset-bottom)); border-top:.5px solid var(--line); animation:sheetUp .3s ease both; max-height:88vh; overflow-y:auto; }
@keyframes sheetUp { from{transform:translateY(40px);opacity:0} to{transform:translateY(0);opacity:1} }
.sheet h3 { font-family:var(--serif); font-weight:400; font-size:20px; margin-bottom:14px; }

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation:none !important; }
@media (min-width: 480px) {
  body { align-items:flex-start; padding:24px 0; }
  #app { min-height:calc(100vh - 48px); border-radius:32px; box-shadow:0 30px 80px rgba(0,0,0,.5); }
  .nav { position:absolute; left:0; transform:none; max-width:none; border-radius:0 0 32px 32px; }
  .toast { bottom:120px; }
}

/* ---------- Segmented control & sub panels ---------- */
.seg { display:flex; width:100%; padding:4px; border-radius:16px; background:var(--glass-2); border:.5px solid var(--line-soft); margin-bottom:18px; gap:4px; }
.seg button { flex:1; border:0; background:transparent; border-radius:12px; padding:9px 6px; font-size:16px; color:var(--text-muted); letter-spacing:.3px; transition:all .2s; }
.seg button.active { background:var(--glass); color:var(--text); border:.5px solid var(--line); }
.sub { display:none; width:100%; flex-direction:column; align-items:center; animation:fadeUp .3s ease both; }
.sub.active { display:flex; }

/* ---------- Occasion chip ---------- */
.occasion-chip { z-index:1; align-self:center; margin:-4px 24px 10px; border:.5px solid var(--line); background:var(--glass-2); color:var(--text-soft); border-radius:20px; padding:6px 14px; font-size:16px; letter-spacing:.5px; }
.occasion-chip b { color:var(--accent-2); font-weight:400; }

/* ---------- Occasions ---------- */
.occ { width:100%; display:flex; gap:12px; align-items:center; padding:12px 14px; margin-bottom:10px; background:var(--glass); border:.5px solid var(--line-soft); border-radius:var(--radius-s); }
.occ.soon { border-color:var(--accent-2); box-shadow:0 0 18px var(--glow); }
.occ .o-ico { font-size:28px; flex-shrink:0; }
.occ .o-body { flex:1; min-width:0; }
.occ .o-title { font-family:var(--serif); font-size:19px; }
.occ .o-date { font-size:16px; color:var(--text-muted); }
.occ .o-days { font-family:var(--serif); font-size:20px; color:var(--accent-2); white-space:nowrap; }
.occ .o-actions { display:flex; flex-direction:column; gap:6px; }
.occ .o-actions button { width:34px; height:34px; border-radius:50%; border:.5px solid var(--line); background:var(--glass-2); font-size:19px; }
.gift-item { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:.5px solid var(--line-soft); text-align:left; width:100%; background:transparent; border-left:0; border-right:0; border-top:0; color:var(--text); }
.gift-item:last-child { border-bottom:0; }
.gift-item .g-ico { font-size:22px; }
.gift-item .g-t { flex:1; font-size:19px; }
.gift-item .g-s { font-size:16px; color:var(--text-muted); display:block; }

/* ---------- Wishes ---------- */
.wish { width:100%; display:flex; gap:12px; align-items:flex-start; padding:12px 14px; margin-bottom:10px; background:var(--glass); border:.5px solid var(--line-soft); border-radius:var(--radius-s); text-align:left; }
.wish .w-star { font-size:20px; flex-shrink:0; margin-top:2px; }
.wish .w-body { flex:1; min-width:0; }
.wish .w-text { font-size:19px; }
.wish .w-meta { font-size:16px; color:var(--text-muted); margin-top:3px; }
.wish .w-note { font-size:16px; color:var(--text-soft); margin-top:3px; font-style:italic; }
.wish.done { opacity:.5; }
.wish.done .w-text { text-decoration:line-through; }

/* ---------- Music pad ---------- */
.pad { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; width:100%; }
.pad button { aspect-ratio:1; border-radius:18px; border:.5px solid var(--line); background:var(--glass); font-size:26px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; transition:transform .08s, background .15s; color:var(--text-muted); }
.pad button small { font-size:16px; letter-spacing:1px; }
.pad button.hit { transform:scale(.92); background:var(--accent-deep); color:#fff; border-color:var(--accent-2); box-shadow:0 0 20px var(--glow); }
.pill-btn.rec { background:#c62828; border-color:#ff8a80; color:#fff; animation:recBlink 1s ease-in-out infinite; }
@keyframes recBlink { 50%{opacity:.6} }
.song { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:.5px solid var(--line-soft); }
.song:last-child { border-bottom:0; }
.song .s-t { flex:1; font-family:var(--serif); font-size:19px; }
.song .s-m { font-size:16px; color:var(--text-muted); display:block; font-family:var(--sans); }

/* ---------- Piek & Dankbarkeit & Chips ---------- */
.piek-card { border-color:var(--accent-2); background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.piek-text { font-size:19px; line-height:1.55; margin-top:10px; }
.piek-card.done { opacity:.75; }
.piek-card.done .piek-text { text-decoration:line-through; text-decoration-color:var(--accent-2); }
.chips { display:flex; gap:6px; flex-wrap:wrap; width:100%; margin-bottom:12px; }
.chips button { border:.5px solid var(--line-soft); background:transparent; color:var(--text-muted); border-radius:14px; padding:5px 10px; font-size:16px; letter-spacing:.3px; }
.chips button.on { background:var(--glass); color:var(--text); border-color:var(--accent-2); }
.thank { width:100%; padding:12px 14px; margin-bottom:10px; background:var(--glass); border:.5px solid var(--line-soft); border-radius:var(--radius-s); display:flex; gap:10px; align-items:flex-start; }
.thank .t-body { flex:1; }
.thank .t-text { font-family:var(--serif); font-style:italic; font-size:19px; }
.thank .t-meta { font-size:16px; color:var(--text-muted); margin-top:3px; }
.ad-note { font-size:16px; letter-spacing:1px; text-transform:uppercase; color:var(--text-muted); }

/* ---------- Passend dazu (Werbelinks) ---------- */
.tips-slot { width:100%; }
.tips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:12px; width:100%; }
.tips-label { width:100%; font-size:16px; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-muted); display:flex; justify-content:space-between; align-items:center; }
.tips-label .ad-note { font-size:16px; border:.5px solid var(--line-soft); border-radius:8px; padding:1px 6px; font-style:normal; }
.tip { border:.5px solid var(--line-soft); background:var(--glass-2); color:var(--text-soft); border-radius:14px; padding:6px 11px; font-size:16px; letter-spacing:.2px; text-align:left; transition:all .2s; }
.tip span { color:var(--accent-2); }
.tip:active { background:var(--glass); border-color:var(--accent-2); }
.tip.inline { border:0; background:transparent; padding:0; font-size:16px; color:var(--accent-2); }
.msg-card .tips { justify-content:center; }
.msg-card .tips-label { justify-content:center; gap:8px; }

/* ---------- Partner-Verbindung ---------- */
.partner-card { border-color:var(--accent-2); }
.badge { display:inline-flex; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:#fff; color:var(--accent-deep); font-size:16px; font-weight:700; align-items:center; justify-content:center; margin-left:4px; }
.nav .ico { position:relative; display:inline-block; }
.nav-badge { position:absolute; top:-2px; right:-8px; width:9px; height:9px; border-radius:50%; background:var(--accent-deep); border:1.5px solid var(--bg1); box-shadow:0 0 8px var(--glow); }
.paircode { font-family:var(--serif); font-size:22px; letter-spacing:3px; text-align:center; padding:14px; border:.5px dashed var(--accent-2); border-radius:var(--radius-s); margin:10px 0 14px; user-select:all; -webkit-user-select:all; }
.inbox-item { display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:.5px solid var(--line-soft); cursor:pointer; }
.inbox-item:last-of-type { border-bottom:0; }
.inbox-item.new .ii-t { color:var(--text); }
.inbox-item.new .ii-e::after { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--accent-deep); margin-left:2px; vertical-align:top; }
.inbox-item .ii-e { font-size:20px; }
.inbox-item .ii-b { flex:1; min-width:0; }
.inbox-item .ii-t { font-family:var(--serif); font-style:italic; font-size:19px; color:var(--text-soft); }
.inbox-item .ii-m { font-size:16px; color:var(--text-muted); margin-top:2px; }

/* ---------- Gleichklang ---------- */
.deck { width:100%; display:flex; gap:12px; align-items:center; padding:14px; margin-bottom:10px; background:var(--glass); border:.5px solid var(--line); border-radius:var(--radius-s); text-align:left; color:var(--text); }
.deck.adult { border-color:var(--accent-2); }
.deck .d-ico { font-size:30px; flex-shrink:0; }
.deck .d-body { flex:1; min-width:0; }
.deck .d-title { font-family:var(--serif); font-size:19px; }
.deck .d-sub { font-size:16px; color:var(--text-muted); margin-top:2px; }
.deck .d-go { font-size:22px; color:var(--accent-2); }
.overlay.match { align-items:flex-start; overflow-y:auto; }
.overlay.match .inner { max-width:430px; width:100%; padding:calc(16px + env(safe-area-inset-top)) 22px calc(30px + env(safe-area-inset-bottom)); text-align:left; }
.match-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; min-height:40px; }
.match-head .eyebrow { text-align:center; flex:1; }
.match-head > span:empty { width:40px; }
.match-intro { text-align:center; padding:10px 0 20px; }
.match-intro h2 { font-family:var(--serif); font-weight:400; font-size:24px; margin:6px 0 10px; }
.match-intro .about { font-size:19px; }
.match-emoji { font-size:54px; line-height:1; margin-bottom:10px; }
.match-card { background:var(--glass); border:.5px solid var(--line); border-radius:var(--radius); padding:34px 22px; text-align:center; min-height:220px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:14px; animation:fadeUp .3s ease both; }
.match-q { font-family:var(--serif); font-size:22px; line-height:1.35; }
.match-opts { display:flex; gap:8px; margin-top:18px; }
.match-opts .pill-btn { flex:1; padding:14px 6px; font-size:19px; letter-spacing:.3px; }
.match-list { width:100%; }
.match-item { display:flex; gap:12px; align-items:flex-start; padding:12px 14px; margin-bottom:8px; background:var(--glass); border:.5px solid var(--line-soft); border-radius:var(--radius-s); animation:fadeUp .35s ease both; }
.match-item .mi-e { font-size:24px; }
.match-item .mi-b { flex:1; min-width:0; }
.match-item .mi-t { font-size:19px; }
.match-item .mi-s { font-size:16px; color:var(--text-muted); margin-top:2px; }
.overlay.match .inner > * { width:100%; }
.partner-card .pill-btn { white-space:nowrap; }

/* ---------- Version 3.1: Klartext, Jingle-Box, Kritzel-Gruß, Nah dran ---------- */
.seg { overflow-x:auto; scrollbar-width:none; }
.seg::-webkit-scrollbar { display:none; }
.seg button { white-space:nowrap; flex:1 0 auto; padding:9px 10px; }
.match-opts.stack { flex-direction:column; }
.match-item .mi-q { font-family:var(--serif); font-style:italic; font-size:19px; color:var(--text-soft); margin:6px 0 4px; line-height:1.45; }
.match-item.gap { border-color:var(--accent-2); }
.match-item .wx { font-size:22px; white-space:nowrap; align-self:center; letter-spacing:4px; }
.weather { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-top:18px; }
.weather button { border:.5px solid var(--line); background:var(--glass-2); border-radius:14px; padding:12px 2px 8px; display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--text-muted); transition:all .15s; }
.weather button b { font-size:28px; font-weight:400; line-height:1; }
.weather button small { font-size:16px; letter-spacing:.3px; }
.weather button:active { background:var(--accent-deep); border-color:var(--accent-2); color:#fff; transform:scale(.95); }
.zw-time { font-family:var(--serif); font-size:64px; line-height:1.1; margin:14px 0 6px; color:var(--accent-2); font-variant-numeric:tabular-nums; }
.jingle { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:.5px solid var(--line-soft); }
.jingle:last-child { border-bottom:0; }
.jingle .j-b { flex:1; min-width:0; }
.jingle .j-t { font-family:var(--serif); font-size:19px; }
.jingle .j-t small { font-family:var(--sans); font-size:16px; color:var(--text-muted); letter-spacing:.5px; margin-left:4px; }
.jingle .j-x { font-size:16px; color:var(--text-soft); margin-top:2px; }
.kritzel { display:block; width:100%; max-width:320px; aspect-ratio:1; margin:0 auto 10px; border-radius:18px; border:.5px solid var(--line); touch-action:none; cursor:crosshair; }
.kz-tools { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:center; }
.kz-c { width:30px; height:30px; border-radius:50%; border:2px solid transparent; }
.kz-c.on { border-color:var(--text); box-shadow:0 0 0 2px var(--bg1), 0 0 0 4px var(--accent-2); }
.kz-s { width:36px; height:36px; border-radius:12px; border:.5px solid var(--line-soft); background:var(--glass-2); font-size:21px; }
.kz-s.on { border-color:var(--accent-2); background:var(--glass); }
.kz-sep { width:1px; height:24px; background:var(--line-soft); }
.pic-big { display:block; width:100%; max-width:300px; margin:0 auto; border-radius:16px; border:.5px solid var(--line); }
.inbox-item .ii-img { width:72px; height:72px; object-fit:cover; border-radius:10px; border:.5px solid var(--line-soft); display:block; margin-bottom:6px; }
.from-partner { border-color:var(--accent-2); box-shadow:0 0 26px var(--glow); text-align:center; }
.from-partner .fp-text { font-family:var(--serif); font-style:italic; font-size:20px; line-height:1.55; margin-top:8px; }
.qr { width:190px; max-width:70%; margin:6px auto 12px; padding:8px; background:#fff; border-radius:14px; }
.qr svg { display:block; width:100%; height:auto; }
#jingleChips { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; margin-right:-18px; padding-right:18px; }
#jingleChips::-webkit-scrollbar { display:none; }
#jingleChips button { white-space:nowrap; flex:0 0 auto; padding:7px 12px; font-size:16px; }

/* 3.2.0: Spielweise umschalten, große Auswahl-Chips, Themenfrage, Sag's-sanft-Ausgabe */
.seg-mode { display:flex; gap:8px; justify-content:center; margin:18px 0 6px; }
.seg-mode button { flex:1; max-width:190px; border:1.5px solid var(--line-soft); background:transparent; color:var(--text); border-radius:16px; padding:12px 10px; font-size:20px; font-weight:600; }
.seg-mode button.on { background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; }
.mode-line { font-size:19px; margin-top:8px; }
.chips.big { gap:8px; }
.chips.big button { font-size:19px; font-weight:600; padding:10px 14px; border-width:1.5px; color:var(--text); border-radius:16px; letter-spacing:0; }
.chips.big button.on { background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; }
.chips.big button:disabled { opacity:.75; }
.match-prompt { text-align:center; font-size:20px; font-weight:600; margin:0 0 12px; color:var(--text); }
.soft-out { font-family:var(--serif); font-style:italic; font-size:21px; line-height:1.5; }
input:disabled { opacity:.75; }

/* 3.3.0 Lesbarkeit */
/* Maßstab: Fließtext 18–19 px, nichts unter 16 px, kein dünner Schnitt, gedämpfter Text mit Kontrast ≥ 7:1,
   Beschriftungen ohne Sperrung, Tippflächen mindestens 48 px hoch. */
body { font-weight:400; font-size:19px; line-height:1.55; }
.eyebrow, .view-sub, .field label, .msg-label, .msg-sig, .oracle-count, .hint, .tag, .big-number small { letter-spacing:.6px; font-weight:700; }
.eyebrow { margin-bottom:10px; }
.about { line-height:1.55; }
.pill-btn { font-size:18px; font-weight:700; letter-spacing:.2px; padding:13px 22px; min-height:48px; border-width:1.5px; }
.pill-btn.primary { font-weight:700; }
.pill-btn.small { font-size:16px; padding:10px 16px; min-height:44px; }
.pill-btn.ghost { color:var(--text-soft); }
.row.wrap { gap:10px; }
input, textarea, select { font-size:19px; }
.field input, .field textarea, .field select { min-height:50px; }
.chips button { font-size:16px; font-weight:700; padding:9px 13px; color:var(--text-soft); border-width:1.5px; letter-spacing:0; border-radius:16px; }
.chips { gap:8px; }
/* Navigation: kurze Wörter, groß genug */
.nav { height:calc(78px + env(safe-area-inset-bottom)); }
.nav button { font-size:16px; font-weight:700; letter-spacing:0; padding:8px 0; gap:2px; color:var(--text-soft); }
.nav button .ico { font-size:24px; filter:grayscale(.35) opacity(.9); }
.view { padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
/* Umschalter mit vier Einträgen: zwei Zeilen statt gequetscht oder seitlich scrollen */
.seg { flex-wrap:wrap; overflow:visible; }
.seg button { flex:1 1 40%; white-space:normal; font-size:17px; font-weight:700; padding:12px 8px; color:var(--text-soft); letter-spacing:0; }
.seg button.active { color:var(--text); border-width:1.5px; }
.seg.two button, .seg.three button { flex:1 1 0; }
.deck { padding:16px 14px; border-width:1px; }
.deck .d-title { font-size:20px; line-height:1.3; }
.deck .d-sub { color:var(--text-soft); line-height:1.4; margin-top:4px; }
.match-opts .pill-btn { font-size:18px; padding:16px 8px; }
.match-q { font-size:24px; }
.toast { font-size:17px; font-weight:700; }
.sheet h3 { font-size:24px; }
.card { border-width:1px; }
.switch small { color:var(--text-soft); }
.tip { font-size:16px; font-weight:700; }
/* Hauptknopf: weiße Schrift braucht den dunklen Akzent (Kontrast ≥ 7:1) */
.pill-btn.primary { background:var(--accent-dark); border-color:var(--accent-2); }
[data-theme="ozean"] { --accent-dark:#0a5a56; }

/* Kopfzeile: Namen nicht abschneiden, lieber umbrechen */
.header { flex-wrap:wrap; gap:8px 10px; padding:18px 16px 8px; }
.name-pill { max-width:100%; letter-spacing:.2px; font-weight:700; border-width:1px; }
/* Unterzeilen: normale Schreibweise statt gesperrter Großbuchstaben */
.view-sub { text-transform:none; font-weight:400; font-size:17px; letter-spacing:0; color:var(--text-soft); line-height:1.4; }
/* Jingle-Anlässe: umbrechen statt seitlich scrollen; eingeklappt zwei Zeilen, der gewählte Anlass steht vorn */
#jingleChips { flex-wrap:wrap; overflow:hidden; max-height:104px; margin-right:0; padding-right:0; }
#jingleChips.open { max-height:none; }
#jingleChips button.on { order:-1; }

/* Gesungene Jingles */
.j-sung { font-size:17px; }

/* Idee spenden */
label.check { display:flex; align-items:center; gap:10px; font-size:18px; margin:2px 0 8px; }
label.check input { width:24px; height:24px; accent-color:var(--accent-dark); }
.field textarea { min-height:96px; }

/* Melden */
.msg-actions { flex-wrap:wrap; }
#ideaRow2 .row { flex-wrap:wrap; gap:10px; }

/* 3.8.0 Stimmen-Schalter */
#jingleVoice { margin:0 0 6px; }
#jingleVoice button { font-size:17px; font-weight:700; padding:11px 8px; color:var(--text-soft); }
#jingleVoice button.active { background:var(--accent-dark); color:#fff; border-color:var(--accent-dark); }
.jingle .j-t small { white-space:nowrap; }

/* 3.9.0 Gründe antippen und verschicken */
button.reason-text { background:transparent; border:0; padding:0; text-align:left; font-family:inherit; cursor:pointer; }
.reason-item { align-items:center; }
.reason-item .icon-btn { flex:none; }

/* 3.11.0 Schmetterling, Gedicht, Futter */
.bfly { display:flex; align-items:center; gap:14px; width:100%; background:transparent; border:0; padding:0; text-align:left; color:var(--text); font-family:inherit; cursor:pointer; }
.bfly-pic { font-size:54px; line-height:1; width:68px; text-align:center; flex:none; }
.bfly.froh .bfly-pic { animation:bflyFloat 2.6s ease-in-out infinite; }
.bfly.schlaf .bfly-pic { opacity:.55; }
.bfly-b { flex:1; min-width:0; display:flex; flex-direction:column; }
.bfly-t { font-family:var(--serif); font-size:21px; }
.bfly-s, .bfly-n { font-size:16px; color:var(--text-soft); }
.bfly .progress { margin:8px 0 4px; height:8px; border-radius:4px; }
.bfly-big { font-size:96px; line-height:1.1; text-align:center; margin:4px 0 8px; }
.bfly-party { text-align:center; }
.fly { display:inline-block; }
.swarm { display:flex; flex-wrap:wrap; gap:10px; }
.swarm-i { display:flex; flex-direction:column; align-items:center; width:92px; font-size:40px; }
.swarm-i small { font-size:16px; color:var(--text-soft); text-align:center; line-height:1.25; }
.futter-dots { display:flex; gap:8px; }
.futter-dots i { width:22px; height:22px; border-radius:50%; border:2px solid var(--accent-2); }
.futter-dots i.on { background:var(--accent-2); }
.futter-pop { position:fixed; left:50%; bottom:110px; transform:translateX(-50%); z-index:60; background:var(--accent-dark); color:#fff; font-weight:700; font-size:19px; padding:8px 16px; border-radius:20px; pointer-events:none; animation:futterPop 1.7s ease forwards; }
@keyframes futterPop { 0% { opacity:0; transform:translate(-50%,10px) scale(.8); } 15% { opacity:1; transform:translate(-50%,0) scale(1.08); } 70% { opacity:1; transform:translate(-50%,-26px) scale(1); } 100% { opacity:0; transform:translate(-50%,-60px) scale(1); } }
@keyframes bflyFloat { 0%,100% { transform:translateY(0) rotate(-4deg); } 50% { transform:translateY(-6px) rotate(5deg); } }
[data-motion="off"] .bfly.froh .bfly-pic { animation:none; }
.poem { display:flex; flex-direction:column; gap:10px; margin:4px 0 16px; }
.poem-part { display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:var(--glass); border:1.5px solid var(--line-soft); border-radius:16px; padding:12px 14px; color:var(--text); font-family:var(--serif); font-style:italic; font-size:19px; line-height:1.5; cursor:pointer; }
.poem-part span { flex:1; }
.poem-part i { font-style:normal; font-size:22px; color:var(--accent-2); flex:none; }
a.pill-btn { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
#pmTrait button.on, #pmMood button.on { background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; }
.msg-text, .fp-text, #sheet .about { white-space:pre-line; }

/* 3.11.1 Schmetterlings-Grafik und Schwarm-Raster */
.fly-svg { display:inline-block; vertical-align:middle; }
.fly-svg.rare { filter:drop-shadow(0 0 6px #ffd76a); }
.swarm { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 8px; }
.swarm-i { width:auto; font-size:46px; }
.swarm-i small { hyphens:manual; overflow-wrap:anywhere; }
.bfly-pic svg, .bfly-big svg { filter:drop-shadow(0 2px 8px rgba(0,0,0,.35)); }

/* 3.12.0 Verbinden-Hinweis */
.promo-title { font-family:var(--serif); font-size:23px; margin-bottom:10px; }
.promo-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.promo-list li { display:flex; gap:10px; align-items:flex-start; font-size:18px; line-height:1.4; color:var(--text); }
.promo-list li span { flex:none; width:26px; text-align:center; }

/* 3.12.1 Herz mit Flügeln – 3.36.0: Schmetterling aus Herzen (App-Logo) */
.big-heart { width:180px; height:149px; }
.sf-logo .sf-lw, .sf-logo .sf-rw { transform-box:view-box; animation:sfFlapL 2.5s ease-in-out infinite; }
.sf-logo .sf-lw { transform-origin:252px 290px; } .sf-logo .sf-rw { transform-origin:260px 290px; }
@keyframes sfFlapL { 0%,100% { transform:scaleX(1); } 50% { transform:scaleX(.8); } }
[data-motion="off"] .sf-logo .sf-lw, [data-motion="off"] .sf-logo .sf-rw { animation:none; }
.pulse-ring { left:50%; margin-left:-65px; }
.heart-wings { transform-box:fill-box; transform-origin:center; animation:wingFlap 2.5s ease-in-out infinite; }
@keyframes wingFlap { 0%,100% { transform:scaleX(1); } 50% { transform:scaleX(.84); } }
[data-motion="off"] .heart-wings { animation:none; }

/* 3.15.0 Frag Papillon und Kachel-Gruppen */
.frag-bar { position:sticky; top:0; z-index:30; padding:10px 16px 8px; background:linear-gradient(var(--bg0) 72%, transparent); }
.frag-bar button { width:100%; min-height:48px; border-radius:24px; border:1.5px solid var(--line); background:var(--bg1); color:var(--text-soft); font-family:inherit; font-size:18px; font-weight:700; text-align:left; padding:0 18px; display:flex; gap:10px; align-items:center; cursor:pointer; }
.header { padding-top:6px; }
.tile-head { margin:8px 0 10px; }
.frag-row { display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:transparent; border:0; border-bottom:.5px solid var(--line-soft); color:var(--text); padding:12px 2px; font-family:inherit; font-size:19px; cursor:pointer; }
.frag-e { width:30px; text-align:center; flex:none; font-size:22px; }
.frag-b { flex:1; min-width:0; display:flex; flex-direction:column; }
.frag-a { font-size:16px; color:var(--text-soft); line-height:1.4; }
.frag-go { color:var(--accent-2); font-size:26px; flex:none; }
.frag-g { margin:16px 0 2px; }
#fragOut { max-height:52vh; overflow-y:auto; }

/* 3.15.0 Suchleiste fest oben */
.frag-bar { position:fixed; top:0; left:0; right:0; max-width:430px; margin:0 auto; }
#app { padding-top:62px; }
.futter-pop { bottom:190px; }
.piek-card > .row.between { flex-wrap:wrap; gap:6px 10px; }

/* 3.16.0 Gemeinsam */
.match-item.off { opacity:.5; }
#commonBox .tips { margin-top:12px; }

/* 3.16.1 Einblendung: antippbar, solange sie sichtbar ist */
.toast { pointer-events:none; }
.toast.show { pointer-events:auto; cursor:pointer; }

/* 3.19.0 Zusammen sichtbar: wer ist dran, was wartet, was ist fertig */
.chip-st { display:inline-block; margin-top:5px; font-size:15px; font-weight:700; line-height:1.3; border-radius:12px; padding:3px 10px; border:1px solid var(--line); color:var(--text-soft); background:var(--glass-2); }
.chip-st.turn { background:var(--accent-deep); border-color:var(--accent-2); color:#fff; box-shadow:0 0 14px var(--glow); }
.chip-st.ready { background:rgba(255,214,102,.16); border-color:rgba(255,214,102,.7); color:#ffe08a; }
.chip-st.wait { color:var(--text-muted); }
.deck.st-turn { border-color:var(--accent-2); box-shadow:0 0 0 1px var(--accent-2), 0 6px 22px var(--glow); }
.deck.st-ready { border-color:rgba(255,214,102,.7); }
[data-motion="on"] .deck.st-turn .d-ico { animation:stPulse 1.8s ease-in-out infinite; }
@keyframes stPulse { 50% { transform:scale(1.15) rotate(-6deg); } }
.d-prog { height:5px; border-radius:3px; background:var(--glass-2); margin-top:8px; overflow:hidden; }
.d-prog i { display:block; height:100%; background:linear-gradient(90deg,var(--accent-2),var(--accent)); border-radius:3px; }
.d-meta { font-size:15px; color:var(--text-muted); margin-top:4px; }
.act-row { width:100%; display:flex; gap:10px; align-items:center; text-align:left; color:var(--text); background:var(--glass); border:1px solid var(--line); border-radius:var(--radius-s); padding:10px 12px; margin-top:8px; }
.act-row.st-turn { border-color:var(--accent-2); }
.act-row .ai { font-size:26px; flex-shrink:0; }
.act-row .ab { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.act-row .at { font-family:var(--serif); font-size:18px; line-height:1.25; }
.act-row .d-go { font-size:22px; color:var(--accent-2); }
.act-note { font-size:16px; color:var(--text-soft); margin-top:8px; line-height:1.4; }
.act-note.sent { color:var(--text-muted); }
.act-note.sent.seen { color:var(--accent-2); }
.act-note i { font-style:normal; color:var(--text-muted); }
.pstat { display:inline-block; margin:2px 0 12px; font-size:16px; font-weight:700; border-radius:12px; padding:4px 12px; border:1px solid var(--line); color:var(--text-soft); }
.pstat.seen { color:var(--accent-2); border-color:var(--accent-2); }
.round-note { font-size:16px; color:var(--text-soft); margin-top:14px; line-height:1.45; }
#navBadgePlay, #navBadge { width:11px; height:11px; }
.sub-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--accent-deep); margin-left:5px; vertical-align:middle; box-shadow:0 0 8px var(--glow); }
.own-search { display:flex; gap:8px; margin-top:12px; }
.own-search input { flex:1; min-width:0; font-size:17px; padding:9px 12px; border-radius:14px; border:1px solid var(--line); background:var(--glass-2); color:var(--text); }

/* Papillon fliegt vorbei */
.fly { position:fixed; right:14px; bottom:96px; z-index:60; display:flex; flex-direction:row-reverse; align-items:flex-end; gap:8px; max-width:calc(100vw - 28px); pointer-events:none; transition:opacity .3s; }
.fly > * { pointer-events:auto; }
.fly-b { background:none; border:0; padding:4px; font-size:40px; line-height:1; cursor:pointer; }
.fly-w { display:inline-block; animation:flap .22s ease-in-out infinite alternate; }
.fly.landed .fly-w { animation:flap .9s ease-in-out infinite alternate; }
[data-motion="off"] .fly-w { animation:none; }
@keyframes flap { from { transform:scaleX(1); } to { transform:scaleX(.45); } }
.fly-bubble { background:var(--bg1, #2a1430); border:1px solid var(--accent-2); border-radius:18px 18px 4px 18px; padding:12px 14px; max-width:250px; box-shadow:0 10px 30px rgba(0,0,0,.45); opacity:0; transform:translateY(8px) scale(.96); transition:all .35s; visibility:hidden; }
.fly.landed .fly-bubble { opacity:1; transform:none; visibility:visible; }
.fly-bubble.gone { opacity:0 !important; }
.fly-t { font-size:17px; line-height:1.4; color:var(--text); }
@media (prefers-reduced-motion: reduce) { .fly-w, .fly.landed .fly-w { animation:none; } }

/* 3.20.0 Schmetterlings-Kamera */
html.cam-open, html.cam-open body { overflow:hidden; }
.cam { position:fixed; inset:0; z-index:80; background:#0b0410; display:flex; flex-direction:column; color:#fff; padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.cam-top { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; gap:8px; }
.cam-title { font-family:var(--serif); font-size:19px; }
.cam-stage { position:relative; flex:1; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.cam-stage canvas { max-width:100%; max-height:100%; width:auto; height:auto; display:block; touch-action:none; border-radius:14px; }
.cam-hint { position:absolute; left:50%; top:12px; transform:translateX(-50%); width:max-content; max-width:88%; text-align:center; font-size:15px; font-weight:700; background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.25); border-radius:14px; padding:6px 12px; pointer-events:none; }
.cam-msg { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; padding:24px; text-align:center; font-size:17px; line-height:1.5; background:#0b0410; }
.cam-flash { position:absolute; inset:0; background:#fff; opacity:0; pointer-events:none; }
.cam-flash.go { animation:camFlash .35s ease-out; }
@keyframes camFlash { from { opacity:.85; } to { opacity:0; } }
.cam-fx { display:flex; gap:8px; overflow-x:auto; padding:10px 12px 4px; scrollbar-width:none; }
.cam-fx::-webkit-scrollbar { display:none; }
.cam-fx button { flex:0 0 auto; border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.08); color:#fff; border-radius:16px; padding:8px 14px; font-size:16px; font-weight:700; }
.cam-fx button.on { background:var(--accent-deep); border-color:var(--accent-2); box-shadow:0 0 14px var(--glow); }
.cam-bar { display:flex; align-items:center; justify-content:space-around; padding:12px 16px 16px; }
.cam-side { width:54px; height:54px; border-radius:50%; border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.08); font-size:24px; }
.cam-shot { width:76px; height:76px; border-radius:50%; border:5px solid #fff; background:var(--accent-deep); box-shadow:0 0 22px var(--glow); }
.cam-shot:active { transform:scale(.94); }
.cam-rec.on { background:conic-gradient(#e8305a var(--p,0%), rgba(255,255,255,.12) 0); border-color:#e8305a; animation:recPulse 1s ease-in-out infinite; }
@keyframes recPulse { 50% { box-shadow:0 0 0 8px rgba(232,48,90,.25); } }
.cam-prev { position:absolute; inset:0; z-index:2; background:#0b0410; overflow-y:auto; padding:calc(14px + env(safe-area-inset-top)) 16px 20px; }
.cam-prev img, .cam-prev video { width:100%; max-height:58vh; object-fit:contain; border-radius:16px; background:#000; display:block; }
.cam-prev .row { justify-content:flex-start; gap:10px; }
.cam-note { font-size:15px; color:rgba(255,255,255,.7); margin-top:10px; line-height:1.45; }

/* 3.21.0 Anonym mithelfen */
.stats-list { margin:6px 0 0 20px; font-size:16px; line-height:1.5; color:var(--text-soft); }
.stats-list li { margin-bottom:3px; }

/* 3.23.0 Koppeln in der App */
.pair-choice { width:100%; display:flex; align-items:center; gap:14px; text-align:left; color:var(--text); background:var(--glass); border:1.5px solid var(--accent-2); border-radius:var(--radius-s); padding:14px 16px; margin:0 0 10px; box-shadow:0 6px 22px var(--glow); }
.pair-choice .pc-i { font-size:34px; flex-shrink:0; }
.pair-choice .pc-b { display:flex; flex-direction:column; }
.pair-choice b { font-family:var(--serif); font-size:20px; font-weight:400; }
.pair-choice small { font-size:15px; color:var(--text-soft); margin-top:2px; }
.pair-choice:active { transform:scale(.98); }
.pair-manual { margin:6px 0 4px; font-size:16px; color:var(--text-soft); }
.pair-manual summary { cursor:pointer; padding:6px 0; }
.ob-pair-title { font-family:var(--serif); font-size:24px; text-align:center; margin:4px 0 12px; }
.qr-wrap { position:relative; width:max-content; margin:6px auto 4px; padding:22px; }
.qr-b { position:absolute; left:50%; top:50%; font-size:26px; offset-path:none; animation:qrOrbit 7s linear infinite; animation-delay:var(--d); }
@keyframes qrOrbit {
  0% { transform:translate(-50%,-50%) rotate(0deg) translateX(118px) rotate(0deg) scaleX(1); }
  25% { transform:translate(-50%,-50%) rotate(90deg) translateX(118px) rotate(-90deg) scaleX(.5); }
  50% { transform:translate(-50%,-50%) rotate(180deg) translateX(118px) rotate(-180deg) scaleX(1); }
  75% { transform:translate(-50%,-50%) rotate(270deg) translateX(118px) rotate(-270deg) scaleX(.5); }
  100% { transform:translate(-50%,-50%) rotate(360deg) translateX(118px) rotate(-360deg) scaleX(1); }
}
[data-motion="off"] .qr-b { display:none; }
.pair-wait { text-align:center; font-size:16px; font-weight:700; color:var(--accent-2); margin:4px 0; animation:waitPulse 1.6s ease-in-out infinite; }
@keyframes waitPulse { 50% { opacity:.45; } }
.scan .cam-stage { flex-direction:column; }
.scan video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.scan-frame { position:relative; width:min(68vw, 300px); aspect-ratio:1; z-index:1; box-shadow:0 0 0 2000px rgba(11,4,16,.55); border-radius:18px; }
.scan-frame i { position:absolute; width:38px; height:38px; border:5px solid var(--accent-2); }
.scan-frame i:nth-child(1) { left:-3px; top:-3px; border-right:0; border-bottom:0; border-radius:16px 0 0 0; }
.scan-frame i:nth-child(2) { right:-3px; top:-3px; border-left:0; border-bottom:0; border-radius:0 16px 0 0; }
.scan-frame i:nth-child(3) { left:-3px; bottom:-3px; border-right:0; border-top:0; border-radius:0 0 0 16px; }
.scan-frame i:nth-child(4) { right:-3px; bottom:-3px; border-left:0; border-top:0; border-radius:0 0 16px 0; }
.scan-frame.hit i { border-color:#7ef0a8; }
.scan-frame.hit { box-shadow:0 0 0 2000px rgba(11,4,16,.55), 0 0 40px #7ef0a8; }
.scan-b { position:absolute; left:50%; top:50%; font-size:28px; animation:scanOrbit 6.6s linear infinite; animation-delay:var(--d); }
@keyframes scanOrbit {
  0% { transform:translate(-50%,-50%) rotate(0deg) translateX(min(42vw, 185px)) rotate(0deg) scaleX(1); }
  25% { transform:translate(-50%,-50%) rotate(90deg) translateX(min(42vw, 185px)) rotate(-90deg) scaleX(.45); }
  50% { transform:translate(-50%,-50%) rotate(180deg) translateX(min(42vw, 185px)) rotate(-180deg) scaleX(1); }
  75% { transform:translate(-50%,-50%) rotate(270deg) translateX(min(42vw, 185px)) rotate(-270deg) scaleX(.45); }
  100% { transform:translate(-50%,-50%) rotate(360deg) translateX(min(42vw, 185px)) rotate(-360deg) scaleX(1); }
}
[data-motion="off"] .scan-b { animation:none; display:none; }
.scan-hint { position:relative; z-index:1; margin-top:28px; max-width:86%; text-align:center; font-size:17px; font-weight:700; background:rgba(0,0,0,.5); border-radius:14px; padding:8px 14px; }
.scan-bar { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; padding:14px 16px 20px; }
.party { position:fixed; inset:0; z-index:90; display:flex; align-items:center; justify-content:center; background:rgba(11,4,16,.72); backdrop-filter:blur(3px); transition:opacity .35s; overflow:hidden; }
.party.gone { opacity:0; }
.party-card { position:relative; z-index:2; text-align:center; background:var(--bg1); border:1.5px solid var(--accent-2); border-radius:24px; padding:26px 24px 22px; max-width:320px; margin:16px; box-shadow:0 20px 60px rgba(0,0,0,.5), 0 0 40px var(--glow); animation:partyIn .5s cubic-bezier(.2,1.4,.4,1); }
.party-card h2 { font-family:var(--serif); font-size:30px; font-weight:400; margin:6px 0 8px; }
.party-card p { font-size:17px; color:var(--text-soft); line-height:1.45; margin-bottom:16px; }
.party-big { font-size:56px; }
@keyframes partyIn { from { transform:scale(.6); opacity:0; } to { transform:none; opacity:1; } }
.party-b { position:absolute; left:50%; top:50%; font-size:34px; z-index:1; pointer-events:none; }

/* 3.24.0 Spiele zu zweit */
.hub-h { margin:18px 0 8px; }
.hub-soon .chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip.soon { display:inline-block; font-size:15px; font-weight:700; color:var(--text-soft); border:1.5px dashed var(--line); border-radius:16px; padding:7px 12px; opacity:.85; }
.lg-row { position:relative; }
.lg-lie { display:flex; align-items:center; gap:6px; font-size:15px; color:var(--text-soft); margin-top:6px; }
.lg-lie input { width:18px; height:18px; accent-color:var(--accent-deep); }
.lg-pick { display:block; width:100%; text-align:left; font-size:18px; line-height:1.4; color:var(--text); background:var(--glass); border:1.5px solid var(--line); border-radius:var(--radius-s); padding:12px 14px; margin-bottom:8px; }
.lg-pick.true { border-color:rgba(126,240,168,.6); }
.lg-pick.lie { border-color:#ff8a8a; background:rgba(255,100,120,.12); }
.lg-pick.lie::before { content:'🤥 '; }
.lg-pick.picked { box-shadow:0 0 0 2px var(--accent-2); }
.lg-res { font-size:18px; text-align:center; margin:8px 0; }
.lg-score { text-align:center; font-size:16px; font-weight:700; color:var(--accent-2); }
.story { font-family:var(--serif); font-size:20px; line-height:1.6; background:var(--glass); border:1px solid var(--line); border-radius:var(--radius-s); padding:14px 16px; }
.st-me { color:var(--text); }
.st-them { color:var(--accent-2); }
.st-count { font-size:15px; color:var(--text-muted); margin-top:6px; }
.jg-hint { display:flex; gap:10px; align-items:flex-start; font-size:18px; line-height:1.4; background:var(--glass); border:1px solid var(--line); border-radius:var(--radius-s); padding:12px 14px; margin-bottom:8px; }
.jg-hint span { flex-shrink:0; width:28px; height:28px; border-radius:50%; background:var(--accent-deep); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; }
.jg-hint.locked { color:var(--text-muted); border-style:dashed; }
.fg-duel { display:flex; align-items:center; justify-content:center; gap:16px; margin:10px 0; }
.fg-duel > div:not(.vs) { text-align:center; min-width:90px; background:var(--glass); border:1px solid var(--line); border-radius:var(--radius-s); padding:10px; }
.fg-duel span { display:block; font-size:15px; color:var(--text-soft); }
.fg-duel b { font-family:var(--serif); font-size:34px; font-weight:400; }
.fg-duel .vs { font-size:14px; color:var(--text-muted); text-transform:uppercase; letter-spacing:2px; }
.fg-week { text-align:center; font-size:16px; font-weight:700; color:var(--accent-2); }
.fang { position:fixed; inset:0; z-index:85; background:radial-gradient(ellipse at 50% 120%, #4f7a3a 0%, #2b4d2a 35%, #1a2f22 70%, #0f1a14 100%); touch-action:none; }
.fang canvas { display:block; }
.fg-hud { position:absolute; top:calc(12px + env(safe-area-inset-top)); left:0; right:0; display:flex; justify-content:center; gap:22px; pointer-events:none; }
.fg-hud span { font-family:var(--serif); font-size:30px; color:#fff; background:rgba(0,0,0,.35); border-radius:16px; padding:4px 16px; min-width:64px; text-align:center; }
.fg-pts::before { content:'🦋 '; font-size:22px; }
.fg-time::before { content:'⏱ '; font-size:22px; }
.fg-x { position:absolute; top:calc(12px + env(safe-area-inset-top)); left:12px; }
