/* ===== Einführung mit Bienchen und Blümchen ===== */
.onboard {
  --sky1: #fff3fa; --sky2: #e4f1ff; --sky3: #f3ffe9; --hill1: #b8ecb0; --hill2: #8fd99a;
  position: fixed; inset: 0; z-index: 90; overflow: hidden; overflow: clip; opacity: 0; transition: opacity .45s ease;
  background: linear-gradient(180deg, var(--sky1), var(--sky2) 55%, var(--sky3));
  display: flex; flex-direction: column; touch-action: manipulation;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .onboard { --sky1: #2a2150; --sky2: #352a63; --sky3: #2d3f4a; --hill1: #2f6b45; --hill2: #255638; }
}
:root[data-theme="dark"] .onboard { --sky1: #2a2150; --sky2: #352a63; --sky3: #2d3f4a; --hill1: #2f6b45; --hill2: #255638; }
.onboard.show { opacity: 1; }

.ob-sky { position: absolute; inset: 0; pointer-events: none; }
.ob-sun, .ob-moon { position: absolute; right: 22px; top: calc(var(--safe-top) + 54px); font-size: 52px; animation: spin 40s linear infinite; filter: drop-shadow(0 0 18px rgba(255, 210, 90, .7)); }
.ob-moon { display: none; animation: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ob-sun { display: none; } :root:not([data-theme="light"]) .ob-moon { display: block; } }
@keyframes spin { to { transform: rotate(360deg); } }
.ob-cloud { position: absolute; font-size: 46px; opacity: .85; animation: cloud 38s linear infinite; }
.ob-cloud.c1 { top: calc(var(--safe-top) + 110px); animation-duration: 42s; }
.ob-cloud.c2 { top: calc(var(--safe-top) + 30px); font-size: 34px; animation-duration: 55s; animation-delay: -20s; }
.ob-cloud.c3 { top: 38%; font-size: 28px; opacity: .6; animation-duration: 64s; animation-delay: -40s; }
@keyframes cloud { from { transform: translateX(-80px); } to { transform: translateX(calc(100vw + 80px)); } }

.ob-bees { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ob-bee { position: absolute; left: 0; top: 0; font-size: 30px; will-change: transform; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .12)); }
.ob-trail { position: absolute; width: 5px; height: 5px; margin: -2px; border-radius: 50%; background: rgba(255, 190, 60, .7); animation: trail 1s ease-out forwards; }
@keyframes trail { to { transform: scale(.2); opacity: 0; } }

.ob-skip { position: absolute; z-index: 5; right: 16px; top: calc(var(--safe-top) + 12px); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted);
  background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ob-skip { background: rgba(255, 255, 255, .12); } }

.ob-garden { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--safe-bottom) + 170px); z-index: 2; pointer-events: none; }
.ob-hill { position: absolute; left: -15%; right: -15%; bottom: -70px; height: calc(var(--safe-bottom) + 220px); border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at 50% 20%, var(--hill1), var(--hill2)); }
.ob-flowers { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 112px); height: 60px; }
.ob-flower { position: absolute; transform-origin: 50% 100%; }
.ob-flower.pop { animation: grow .6s cubic-bezier(.3, 1.7, .5, 1) both, wilt 2.6s ease-in forwards; }
@keyframes wilt { 0%, 70% { opacity: 1; rotate: 0deg; } 85% { rotate: -6deg; } 100% { opacity: 0; transform: scale(.6) translateY(8px); } }
.ob-flower::after { content: ""; position: absolute; left: 50%; top: 82%; width: 3px; height: 26px; margin-left: -1.5px; background: #5cbf7a; border-radius: 2px; z-index: -1; }
@keyframes grow { from { transform: scale(0); } }
@keyframes sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }

/* Illustrationen */
.ob-hello { position: relative; }
.ob-pet { width: 170px; height: 170px; margin: 0 auto; }
.ob-pet.hop .body-g { animation: hop 1.6s ease-in-out infinite; }
.ob-pet.jumpy .body-g { animation: hop 1s ease-in-out infinite; }
.ob-speech { position: absolute; top: -8px; right: -70px; padding: 8px 14px; border-radius: 18px 18px 18px 4px; background: #fff; color: #3a2a45; font-weight: 800; font-size: 15px; box-shadow: var(--shadow); animation: bubbleIn .5s .6s cubic-bezier(.3, 1.6, .5, 1) both, bob 3s 1.2s ease-in-out infinite; white-space: nowrap; }

.ob-demo-list { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.ob-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow); text-align: left; transition: transform .3s; }
.ob-row .emo { font-size: 26px; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--glass); }
.ob-row .t { flex: 1; font-weight: 800; font-size: 16px; display: flex; flex-direction: column; position: relative; }
.ob-row .t small { font-weight: 600; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ob-row .ck { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--check-off); display: grid; place-items: center; transition: all .3s; }
.ob-row .ck svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 3.2; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s .1s; }
.ob-row.done .ck { background: var(--grad); border-color: transparent; animation: boing .55s cubic-bezier(.3, 1.8, .5, 1); }
.ob-row.done .ck svg { stroke-dashoffset: 0; }
.ob-row.done .t { color: var(--muted); }

.ob-door { width: 150px; height: 180px; margin: 10px auto; animation: none !important; }
.ob-door .door-behind { font-size: 70px; }
.ob-door .door-num b { width: 64px; height: 64px; font-size: 30px; }

.ob-streak { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ob-flame { font-size: 68px; line-height: 1; transition: font-size .4s cubic-bezier(.3, 1.6, .5, 1); animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; filter: drop-shadow(0 6px 16px rgba(255, 120, 40, .45)); }
.ob-count { display: flex; align-items: baseline; gap: 8px; }
.ob-count b { font-size: 40px; font-weight: 900; }
.ob-count span { color: var(--muted); font-weight: 700; }

.ob-road { position: relative; width: 100%; max-width: 330px; height: 150px; }
.ob-line { position: absolute; left: 30px; right: 30px; top: 50px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, #ffc66b 0 12px, transparent 12px 20px); }
.ob-stop { position: absolute; top: 18px; width: 70px; display: flex; flex-direction: column; align-items: center; }
.ob-stop.s0 { left: 0; } .ob-stop.s1 { left: calc(50% - 35px); } .ob-stop.s2 { right: 0; }
.ob-stop .gift { font-size: 40px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--glass-strong); border: 2px solid var(--glass-border); box-shadow: var(--shadow); animation: stopGlow 4s infinite; }
.ob-stop.s1 .gift { animation-delay: 1.3s; } .ob-stop.s2 .gift { animation-delay: 2.6s; }
@keyframes stopGlow { 0%, 20%, 100% { transform: scale(1); } 8% { transform: scale(1.25) rotate(-8deg); box-shadow: 0 0 0 10px rgba(255, 198, 107, .35); } }
.ob-stop b { font-size: 20px; font-weight: 900; margin-top: 6px; }
.ob-stop small { color: var(--muted); font-weight: 700; font-size: 12px; }
.ob-walker { position: absolute; top: 4px; left: 0; font-size: 30px; animation: walk 4s linear infinite; }
@keyframes walk { 0% { transform: translate(18px, 30px) scaleX(-1); } 45% { transform: translate(150px, 0) scaleX(-1); } 90%, 100% { transform: translate(280px, 30px) scaleX(-1); opacity: 1; } }

.ob-feed { position: relative; }
.ob-snack { position: absolute; left: -60px; top: 40px; font-size: 40px; animation: snack 2s ease-in infinite; }
@keyframes snack { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 15% { opacity: 1; } 60% { transform: translate(120px, 50px) rotate(200deg) scale(.6); opacity: 1; } 70%, 100% { transform: translate(130px, 55px) scale(0); opacity: 0; } }

.ob-extras { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.ob-mini { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow); text-align: left; animation: bob 3s ease-in-out infinite; }
.ob-mini:nth-child(2) { animation-delay: 1.4s; }
.ob-mini.green { background: linear-gradient(135deg, rgba(111, 227, 193, .35), var(--glass-strong)); }
.ob-mini > span { font-size: 32px; }
.ob-mini b { display: block; font-size: 16px; }
.ob-mini small { color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.35; display: block; margin-top: 2px; }

.ob-lock { font-size: 64px; animation: bob 3s ease-in-out infinite; }
.ob-dots-pin { margin: 18px 0 18px; }
.ob-pinpad { grid-template-columns: repeat(3, 66px); gap: 12px 22px; }
.ob-pinpad button { width: 66px; height: 66px; font-size: 27px; }

.ob-phone { position: relative; width: 120px; height: 200px; border-radius: 26px; border: 5px solid #3a2a45; background: linear-gradient(160deg, #ffe3f0, #e4dcff); }
.ob-screen { position: absolute; inset: 14px 10px; display: grid; place-items: start center; }
.ob-app-icon { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; margin-top: 18px; animation: pop 1.6s ease-in-out infinite; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.ob-app-icon img { width: 100%; height: 100%; }
.ob-share { position: absolute; bottom: -26px; left: 50%; margin-left: -24px; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #2f7bf6; box-shadow: 0 0 0 0 rgba(47, 123, 246, .5); animation: pulse 1.8s infinite; }
.ob-share svg { width: 26px; height: 26px; }
.ob-steps { text-align: left; margin: 6px auto 0; padding-left: 22px; max-width: 320px; }
.ob-steps li { margin: 8px 0; }
.ob-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: rgba(47, 123, 246, .12); color: #2f7bf6; vertical-align: middle; }
.ob-ic svg { width: 16px; height: 16px; }

/* ===== Dialog wie in einem Spiel ===== */
.ob-stage { position: relative; z-index: 4; flex: 1; display: grid; place-items: center; padding: calc(var(--safe-top) + 56px) 20px 12px; min-height: 0; }
.ob-stage > * { max-width: 100%; }
.ob-stage.in > * { animation: artIn .55s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes artIn { from { opacity: 0; transform: translateY(14px) scale(.92); } }
.ob-dialog { position: relative; z-index: 6; margin: 0 14px calc(var(--safe-bottom) + 14px); padding: 16px 16px 14px; border-radius: 26px;
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 12px 34px rgba(90, 50, 120, .2); color: #2d2340; min-height: 150px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ob-dialog { background: rgba(40, 30, 66, .92); border-color: rgba(255, 255, 255, .14); color: #f6f0ff; } }
:root[data-theme="dark"] .ob-dialog { background: rgba(40, 30, 66, .92); border-color: rgba(255, 255, 255, .14); color: #f6f0ff; }
.ob-speaker { position: absolute; top: -14px; left: 16px; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; box-shadow: 0 4px 12px rgba(192, 139, 255, .35); }
.ob-speaker i { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #c06bd6; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 12px; }
.ob-speaker.you { background: linear-gradient(135deg, #4fd6a5, #2fb5c9); }
.ob-speaker.you i { color: #2fb5c9; }
.ob-text { margin: 10px 2px 4px; font-size: 17px; line-height: 1.45; font-weight: 600; min-height: 3em; }
.ob-text.you { font-style: italic; color: #2f9f7c; }
.ob-more { position: absolute; right: 18px; bottom: 10px; font-size: 16px; color: var(--accent); animation: bob 1.2s ease-in-out infinite; }
.ob-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ob-choice { display: flex; align-items: center; gap: 8px; text-align: left; padding: 12px 14px; border-radius: 16px; font-weight: 700; font-size: 15.5px; background: rgba(192, 139, 255, .12); border: 1.5px solid rgba(192, 139, 255, .35); color: inherit; transition: transform .15s, opacity .3s, background .2s; animation: choiceIn .35s both; }
.ob-choice span { color: var(--accent2); font-size: 13px; }
.ob-choice:active { transform: scale(.97); }
.ob-choice.picked { background: var(--grad); color: #fff; border-color: transparent; }
.ob-choice.picked span { color: #fff; }
.ob-choice.fade { opacity: 0; }
.ob-choice:nth-child(2) { animation-delay: .08s; }
@keyframes choiceIn { from { opacity: 0; transform: translateY(8px); } }
.ob-goals { display: flex; flex-wrap: wrap; gap: 7px; max-height: 26vh; overflow-y: auto; }
.ob-goals .chip { font-size: 14px; padding: 8px 12px; }
.ob-own { display: flex; gap: 8px; margin: 4px 0 4px; }
.ob-own .input { padding: 11px 14px; border-radius: 14px; font-size: 15px; }
.ob-own .pill-btn { padding: 0 16px; font-size: 20px; }

/* Bilder */
.oa-letter .env { position: relative; width: 150px; height: 100px; border-radius: 12px; background: #fff; box-shadow: 0 10px 26px rgba(90, 50, 120, .2); display: grid; place-items: center; }
.oa-letter .flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; background: #ffe0ec; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 12px 12px 0 0; animation: flap 1s .4s both; transform-origin: 50% 0; }
@keyframes flap { to { transform: rotateX(180deg); } }
.oa-letter .heart { font-size: 50px; animation: rise 1s .9s both; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.oa-shelf { position: relative; width: 240px; padding: 10px; border-radius: 14px; background: #c98b6b; box-shadow: 0 10px 26px rgba(90, 50, 30, .25); }
.oa-shelf .row { display: flex; align-items: flex-end; gap: 3px; height: 54px; padding: 0 6px; margin-bottom: 8px; border-bottom: 6px solid #a86f52; }
.oa-shelf .row:last-of-type { margin-bottom: 0; }
.oa-shelf .row i { flex: 1; border-radius: 3px 3px 0 0; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .08); }
.oa-shelf .fly { position: absolute; width: 16px; height: 40px; border-radius: 3px; animation: bookIn 1.4s both; }
.oa-shelf .b1 { left: -40px; top: -30px; animation-delay: .3s; } .oa-shelf .b2 { right: -40px; top: 20px; animation-delay: .8s; } .oa-shelf .b3 { left: 40%; top: -60px; animation-delay: 1.3s; }
@keyframes bookIn { 0% { transform: rotate(-30deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(0, 0) rotate(0); opacity: 0; } }
.oa-shelf .glitter { position: absolute; right: -10px; top: -14px; font-size: 30px; animation: glitter 1.6s 1.6s both; }
@keyframes glitter { 0% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: .9; transform: scale(1); } }
.oa-build { position: relative; }
.oa-build img { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 12px 30px rgba(90, 50, 120, .25); }
.oa-build span { position: absolute; font-size: 34px; animation: rise .8s both; }
.oa-build .t1 { left: -34px; top: 6px; animation-delay: .3s; } .oa-build .t2 { right: -30px; top: -14px; animation-delay: .6s; } .oa-build .t3 { right: -26px; bottom: 0; animation-delay: .9s; }
.oa-why { font-size: 84px; position: relative; } .oa-why span { position: absolute; right: -40px; top: -20px; font-size: 44px; }
.oa-big { font-size: 96px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(90, 50, 120, .2)); }
.oa-egg { width: 170px; height: 170px; display: grid; place-items: center; }
.oa-egg .egg { font-size: 110px; }
.oa-egg .egg.crack { animation: crack .9s ease-in-out both; }
@keyframes crack { 20%, 60% { transform: rotate(-12deg); } 40%, 80% { transform: rotate(12deg); } 100% { transform: scale(1.2); opacity: 0; } }
.oa-scene { width: min(300px, 80vw); border-radius: 22px; overflow: hidden; box-shadow: 0 12px 30px rgba(90, 50, 120, .25); }
.oa-road { display: flex; gap: 10px; }
.oa-road div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.oa-road span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--glass-strong); box-shadow: var(--shadow); }
.oa-road div:nth-child(1) span { animation: pop .6s .3s both; } .oa-road div:nth-child(2) span { animation: pop .6s .5s both; } .oa-road div:nth-child(3) span { animation: pop .6s .7s both; }
.oa-road div:nth-child(4) span { animation: pop .6s .9s both; } .oa-road div:nth-child(5) span { animation: pop .6s 1.1s both; }
.oa-road b { font-size: 16px; font-weight: 900; }
.oa-pol { position: relative; }
.oa-pol .pol { width: min(220px, 60vw); padding: 8px 8px 0; background: #fff; border-radius: 4px; box-shadow: 0 12px 30px rgba(70, 40, 80, .25); transform: rotate(-4deg); }
.oa-pol .pol small { display: block; text-align: center; padding: 8px 0 10px; color: #4a3a55; font-family: "Bradley Hand", "Segoe Print", cursive; }
.oa-pol .mail { position: absolute; right: -20px; bottom: -10px; font-size: 44px; animation: rise .8s .5s both; }
.oa-name { margin: 6px 0 0; font-weight: 900; font-size: 20px; text-align: center; }
.oa-gift .gift { font-size: 120px; background: none; border: 0; animation: wiggle 1.6s ease-in-out infinite; }
.oa-gift .ob-pet { width: 180px; height: 180px; }
.ob-pinbox { display: flex; flex-direction: column; align-items: center; }
.ob-pinbox .pin-dots { gap: 12px; }
.ob-pinbox .pin-dots i { width: 13px; height: 13px; }
.ob-pinpad { grid-template-columns: repeat(3, 62px); gap: 10px 22px; }
.ob-pinpad button { width: 62px; height: 62px; font-size: 26px; }
@media (max-height: 720px) { .ob-pinpad button { width: 54px; height: 54px; font-size: 23px; } .ob-pinpad { grid-template-columns: repeat(3, 54px); gap: 8px 18px; } .ob-dots-pin { margin: 6px 0 10px; } }

/* ===== Leons Brief: der Abschluss ===== */
.onboard::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .55), transparent 60%), linear-gradient(180deg, #ffd6e6 0%, #ffe4d6 48%, #fff1e2 100%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .onboard::before { background: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 12%, #fff, transparent), radial-gradient(1px 1px at 46% 30%, #fff, transparent), radial-gradient(1px 1px at 88% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 24% 48%, #fff, transparent), linear-gradient(180deg, #24183f 0%, #43264f 55%, #6a3654 100%); }
}
:root[data-theme="dark"] .onboard::before { background: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 12%, #fff, transparent), radial-gradient(1px 1px at 46% 30%, #fff, transparent), radial-gradient(1px 1px at 88% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 24% 48%, #fff, transparent), linear-gradient(180deg, #24183f 0%, #43264f 55%, #6a3654 100%); }
.onboard.love-mode::before { opacity: 1; }
.onboard.love-mode .ob-stage, .onboard.love-mode .ob-dialog, .onboard.love-mode .ob-skip, .onboard.love-mode .ob-garden { opacity: 0; pointer-events: none; transition: opacity .6s ease; }

.love { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: calc(var(--safe-top) + 18px) 16px calc(var(--safe-bottom) + 16px); animation: loveIn .8s ease both; }
@keyframes loveIn { from { opacity: 0; } }
.love.reading { justify-content: flex-start; }
.love-hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.love-hearts span { position: absolute; bottom: -40px; opacity: 0; animation: heartUp 11s linear forwards; }
@keyframes heartUp { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: .55; } 80% { opacity: .45; } 100% { opacity: 0; transform: translate(var(--dx, 0), -105vh); } }

/* Umschlag zum Antippen */
.love-env { position: relative; width: 230px; height: 154px; background: none; border: 0; padding: 0; perspective: 600px; animation: envFloat 3.2s ease-in-out infinite; }
@keyframes envFloat { 50% { transform: translateY(-6px); } }
.love-env span { position: absolute; display: block; }
.le-back { inset: 0; border-radius: 14px; background: #f7a9c4; box-shadow: 0 18px 40px rgba(170, 60, 110, .3); }
.le-paper { left: 14px; right: 14px; top: 12px; height: 120px; border-radius: 8px; background: #fffaf3; transition: transform .8s .35s cubic-bezier(.3, 1.2, .5, 1); }
.le-front { inset: 0; border-radius: 14px; background: linear-gradient(160deg, #ffd1e1, #ffbfd5); clip-path: polygon(0 34%, 50% 70%, 100% 34%, 100% 100%, 0 100%); }
.le-flap { left: 0; right: 0; top: 0; height: 62%; z-index: 3; background: linear-gradient(180deg, #ffc4d8, #ffaecb); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 14px 14px 0 0; transform-origin: 50% 0; transition: transform .55s ease, z-index 0s .3s; }
.le-seal { left: 50%; top: 56%; z-index: 4; font-size: 36px; transform: translate(-50%, -50%); transition: opacity .3s, transform .3s; filter: drop-shadow(0 3px 6px rgba(170, 60, 110, .35)); }
.love-env.open { animation: none; }
.love-env.open .le-flap { transform: rotateX(180deg); z-index: 0; }
.love-env.open .le-seal { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
.love-env.open .le-paper { transform: translateY(-74px); }
.love.reading .love-env { display: none; }
.love-hint { margin: 0; text-align: center; font-weight: 700; color: #a3527a; line-height: 1.45; transition: opacity .4s; }
.love-hint.gone { opacity: 0; }
.love.reading .love-hint { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .love-hint { color: #ffc7dd; } }
:root[data-theme="dark"] .love-hint { color: #ffc7dd; }

/* Der Brief */
.love-paper { position: relative; width: 100%; max-width: 420px; min-height: 0; flex: 0 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  margin-top: 8px; padding: 34px 24px 18px; border-radius: 22px; background: #fffaf3; color: #3a2a45;
  box-shadow: 0 22px 54px rgba(140, 50, 100, .28), inset 0 0 0 1px rgba(255, 190, 210, .6); animation: paperIn .8s cubic-bezier(.3, 1.25, .5, 1) both; }
@keyframes paperIn { from { opacity: 0; transform: translateY(60px) scale(.7); } }
.love-paper .tape { position: absolute; top: 10px; left: 50%; width: 86px; height: 20px; margin-left: -43px; border-radius: 3px; background: rgba(255, 160, 195, .55); transform: rotate(-3deg); }
.lp { margin: 0 0 14px; font-size: 17px; line-height: 1.55; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 1s ease, transform 1s ease; }
.lp.show { opacity: 1; transform: none; }
.lp.greet, .lp.sign { font-family: "Bradley Hand", "Snell Roundhand", "Segoe Print", cursive; font-size: 26px; font-weight: 700; color: #c2457a; line-height: 1.3; }
.lp.sign { text-align: right; margin: 8px 4px 4px; }
.love-actions { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.love-actions .ob-choice { background: rgba(255, 255, 255, .72); border-color: rgba(255, 150, 190, .55); color: #3a2a45; }
.love-actions .pill-btn { animation: choiceIn .4s both; }
.love-reply { margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .72); color: #2f9f7c; font-style: italic; font-weight: 700; animation: choiceIn .35s both; }
.love-reply b { font-style: normal; color: #2fb5c9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .love-actions .ob-choice, :root:not([data-theme="light"]) .love-reply { background: rgba(255, 255, 255, .14); color: #fff3f8; border-color: rgba(255, 170, 205, .35); }
}
:root[data-theme="dark"] .love-actions .ob-choice, :root[data-theme="dark"] .love-reply { background: rgba(255, 255, 255, .14); color: #fff3f8; border-color: rgba(255, 170, 205, .35); }
@media (prefers-reduced-motion: reduce) {
  .love-env, .love-paper, .love { animation: none; }
  .lp { transition: none; }
}
