/* Amanis Weg, Look "Schatzkarte": Nachtblau, Gold, Pergament, Rosé. */
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --night: #0F1A3A; --night-2: #16244D; --night-3: #1E2F61; --ink: #0B1330;
  --gold: #C9A24A; --gold-soft: rgba(201,162,74,.35); --paper: #F2E8CF; --paper-2: #E7DBBB; --rose: #E39AA0;
  --muted: rgba(242,232,207,.6);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--paper); font-family: var(--sans); font-size: 16px; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body { position: fixed; inset: 0; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#app { position: absolute; left: 0; right: 0; top: 0; height: var(--vh, 100dvh); display: flex; flex-direction: column;
  background: radial-gradient(120% 70% at 50% 0%, #1A2A5C 0%, var(--night) 60%); }

/* ---------- Bühne: Kokon, Einrichtung, Hinweise ---------- */
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--safe-t) + 24px) 28px calc(var(--safe-b) + 24px); gap: 18px; overflow-y: auto; }
.stage h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: .01em; margin: 0; color: var(--paper); }
.stage .line { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 25px; line-height: 1.25; margin: 0; color: var(--paper); }
.stage .small { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0; }
.cocoon { width: 132px; height: 190px; filter: drop-shadow(0 0 26px rgba(201,162,74,.28)); animation: breathe 5.2s ease-in-out infinite; }
.cocoon.small-c { width: 96px; height: 138px; }
@keyframes breathe { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 22px rgba(201,162,74,.22)); } 50% { transform: scale(1.035); filter: drop-shadow(0 0 34px rgba(201,162,74,.4)); } }
.shake { animation: shake .42s ease; }
@keyframes shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.dots { display: flex; gap: 14px; justify-content: center; min-height: 16px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--gold); transition: background .15s, transform .15s; }
.dots i.on { background: var(--gold); transform: scale(1.08); }
.hint { min-height: 22px; font-size: 15px; color: var(--rose); margin: 0; }
.pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px 22px; justify-content: center; }
.pad button { height: 60px; border-radius: 50%; font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--paper); border: 1px solid rgba(201,162,74,.28); background: rgba(255,255,255,.03); }
.pad button:active { background: var(--gold-soft); }
.pad button.ghost { border-color: transparent; background: none; font-family: var(--sans); font-size: 20px; color: var(--muted); }
.pad[aria-busy="true"] { opacity: .45; pointer-events: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 26px; background: var(--gold); color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.btn:active { transform: scale(.98); }
.btn.line-btn { background: none; color: var(--paper); border: 1px solid var(--gold-soft); }
.btn[disabled] { opacity: .5; }
.link { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 10px; }
.steps { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 12px; text-align: left; width: 100%; max-width: 330px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(242,232,207,.06); border: 1px solid rgba(201,162,74,.22); font-size: 15.5px; line-height: 1.35; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; color: var(--ink); background: var(--gold); }
.steps svg { width: 18px; height: 18px; vertical-align: -3px; }
.info-btn { position: absolute; top: calc(var(--safe-t) + 12px); right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold-soft); color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 20px; z-index: 3; }
.field { width: 100%; max-width: 330px; height: 52px; border-radius: 14px; border: 1px solid var(--gold-soft); background: rgba(255,255,255,.05); color: var(--paper); font: inherit; padding: 0 16px; }
.field::placeholder { color: var(--muted); }

/* ---------- Chat ---------- */
.top { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 14px 10px; background: rgba(15,26,58,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(201,162,74,.22); z-index: 2; }
.top .who { flex: 1; min-width: 0; }
.top .name { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.1; margin: 0; }
.top .sub { font-size: 12px; color: var(--muted); margin: 2px 0 0; min-height: 15px; }
.top .sub.warn { color: var(--rose); }
.top .info-btn { position: static; flex: none; }
.pill { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--gold-soft); color: var(--gold); font-size: 13px; font-weight: 600; }
.bfly { flex: none; width: 34px; height: 34px; }
.list { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.empty { margin: auto; text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 21px; padding: 20px; }
.day { align-self: center; margin: 12px 0 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.row { display: flex; flex-direction: column; max-width: 82%; align-self: flex-start; align-items: flex-start; }
.row.me { align-self: flex-end; align-items: flex-end; }
.row + .row.swap { margin-top: 8px; }
.bub { position: relative; padding: 9px 13px 8px; border-radius: 18px 18px 18px 6px; background: var(--paper); color: var(--ink); font-size: 16.5px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.me .bub { border-radius: 18px 18px 6px 18px; background: var(--night-3); color: var(--paper); border: 1px solid rgba(201,162,74,.3); }
.bub.photo { padding: 4px; }
.bub.photo img { display: block; max-width: min(64vw, 300px); max-height: 46vh; border-radius: 14px; background: rgba(0,0,0,.15); min-width: 120px; min-height: 90px; object-fit: cover; }
.bub.photo .cap { padding: 6px 8px 2px; }
.bub a { color: inherit; text-decoration: underline; }
.quote { display: block; margin: -2px -4px 6px; padding: 6px 9px; border-left: 3px solid var(--gold); border-radius: 8px; background: rgba(15,26,58,.08); font-size: 13.5px; line-height: 1.3; overflow: hidden; opacity: .85; }
.quote .qt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.me .quote { background: rgba(242,232,207,.09); }
.quote b { display: block; font-size: 12px; color: var(--gold); font-weight: 600; }
.bub .quote b { color: #8a6a1f; } .me .bub .quote b { color: var(--gold); }
.meta { display: flex; gap: 6px; align-items: center; margin: 3px 6px 0; font-size: 11px; color: var(--muted); min-height: 14px; }
.meta .fail { color: var(--rose); font-size: 13px; font-weight: 500; }
.reacts { display: flex; gap: 4px; margin: -7px 8px 0; z-index: 1; }
.reacts span { font-size: 15px; line-height: 1; padding: 4px 6px; border-radius: 12px; background: var(--night-2); border: 1px solid rgba(201,162,74,.35); }
.row.pending .bub { opacity: .62; } .row.failed .bub { opacity: .8; border: 1px dashed var(--rose); }

.reply-bar { flex: none; display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 8px 10px 8px 12px; border-left: 3px solid var(--gold); border-radius: 10px; background: rgba(242,232,207,.08); font-size: 13.5px; }
.reply-bar div { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar b { color: var(--gold); font-weight: 600; display: block; font-size: 12px; }
.reply-bar button { width: 30px; height: 30px; font-size: 20px; color: var(--muted); }
.composer { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(var(--safe-b) + 8px); }
.composer textarea { flex: 1; min-height: 44px; max-height: 132px; resize: none; border-radius: 22px; border: 1px solid var(--gold-soft); background: rgba(255,255,255,.06); color: var(--paper); font: inherit; font-size: 16.5px; line-height: 1.35; padding: 10px 16px; }
.composer textarea::placeholder { color: var(--muted); }
.icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.send { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.icon-btn.send[disabled] { opacity: .4; }
.banner { flex: none; text-align: center; font-size: 13px; padding: 6px 12px; color: var(--ink); background: var(--rose); }

/* ---------- Blatt von unten, Bildansicht, Toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5,9,24,.62); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; background: var(--night-2); border: 1px solid rgba(201,162,74,.3); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 14px 16px calc(var(--safe-b) + 16px); animation: up .2s ease; max-height: 86%; overflow-y: auto; }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
.sheet h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 6px 4px 8px; }
.sheet p { margin: 6px 4px 12px; font-size: 15.5px; line-height: 1.5; color: var(--paper); }
.sheet p.dim { color: var(--muted); font-size: 14px; }
.emojis { display: flex; justify-content: space-between; padding: 4px 2px 12px; }
.emojis button { width: 46px; height: 46px; font-size: 26px; border-radius: 50%; }
.emojis button.on { background: var(--gold-soft); }
.act { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px; font-size: 16.5px; border-top: 1px solid rgba(242,232,207,.08); text-align: left; }
.act.danger { color: var(--rose); }
.sheet .btn { width: 100%; margin-top: 8px; }
.viewer { position: fixed; inset: 0; z-index: 30; background: rgba(4,7,18,.96); display: grid; place-items: center; }
.viewer img { max-width: 100%; max-height: 100%; }
.viewer button { position: absolute; top: calc(var(--safe-t) + 10px); right: 14px; width: 44px; height: 44px; font-size: 28px; color: var(--paper); }
.toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 84px); transform: translateX(-50%); z-index: 40; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 20px; box-shadow: 0 6px 24px rgba(0,0,0,.4); animation: fade .15s ease; max-width: 86%; text-align: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 4px 12px; font-size: 14.5px; }
.kv span { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 700px) { #app { max-width: 520px; left: 50%; transform: translateX(-50%); border-left: 1px solid rgba(201,162,74,.15); border-right: 1px solid rgba(201,162,74,.15); } }
[hidden] { display: none !important; }

/* Nichts in der App lässt sich als Text markieren (sonst markiert langes Drücken die Smileys); Eingabefelder bleiben normal. */
body, .sheet, .sheet * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
textarea, input { user-select: text; -webkit-user-select: text; }
.emojis button { outline: none; }

.sheet input, .sheet textarea { user-select: text; -webkit-user-select: text; }
.scrim { inset: auto; top: 0; left: 0; right: 0; height: var(--vh, 100dvh); }
.bub.held { filter: brightness(1.12); transform: scale(.975); transition: transform .12s; }
.emojis button { font-family: "Apple Color Emoji", "Noto Color Emoji", "Samsung Color Emoji", sans-serif; }
.preview { display: block; max-width: 100%; max-height: 42vh; margin: 4px auto 12px; border-radius: 14px; }
.cap-in { max-width: none; margin-bottom: 4px; font-size: 16.5px; }

/* ---------- Paket 11: erster Abend ---------- */
.home-ic { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 26px rgba(0,0,0,.45); border: 1px solid rgba(201,162,74,.3); }
.sound-ic { font-size: 54px; line-height: 1; filter: drop-shadow(0 0 22px rgba(201,162,74,.5)); }
.spk { font-family: "Apple Color Emoji", "Noto Color Emoji", "Samsung Color Emoji", sans-serif; }
.scene { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: calc(var(--safe-t) + 18px) 22px calc(var(--safe-b) + 18px); gap: 12px; overflow: hidden; }
.botin { flex: none; width: 150px; height: 107px; margin-top: 6px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); animation: hover 3.4s ease-in-out infinite; transition: filter .8s; }
.botin.rose { filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)) sepia(.55) saturate(2.2) hue-rotate(-28deg); }
@keyframes hover { 0%,100% { transform: translateY(0) rotate(-2deg) scaleX(1); } 25% { transform: translateY(-7px) rotate(1.500deg) scaleX(.94); } 50% { transform: translateY(-2px) rotate(2.500deg) scaleX(1); } 75% { transform: translateY(-9px) rotate(-1deg) scaleX(.93); } }
.says { flex: 1 1 auto; min-height: 60px; width: 100%; max-width: 380px; overflow-y: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 4px 2px; scrollbar-width: none; }
.says::-webkit-scrollbar { display: none; }
.says::before { content: ""; flex: 1; }
.say { margin: 0; background: var(--paper); color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.3; padding: 10px 16px; border-radius: 20px 20px 20px 6px; animation: pop .28s cubic-bezier(.2,.9,.3,1.3); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
@keyframes pop { from { transform: translateY(10px) scale(.92); opacity: 0; } }
.foot { flex: none; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; opacity: 0; min-height: 52px; position: relative; }
.foot.in { opacity: 1; transition: opacity .35s; }
.foot .field { max-width: none; }
.foot .hint:empty { display: none; }
.pair { display: flex; gap: 10px; } .pair .btn { flex: 1; padding: 0 12px; }
.cap-line { margin: 2px 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--paper); }
.voice { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px; border-radius: 27px; border: 1px solid var(--gold); color: var(--paper); font-weight: 600; font-size: 16px; background: rgba(201,162,74,.12); }
.voice.on { background: var(--gold-soft); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(201,162,74,.14); } }
/* Video */
.film-scene { justify-content: center; }
.film-wrap { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; display: grid; place-items: center; }
.film { max-width: 100%; max-height: 100%; height: 100%; aspect-ratio: 9 / 16; border-radius: 18px; background: #050918; border: 1px solid rgba(201,162,74,.3); object-fit: cover; }
.bigplay { position: absolute; width: 78px; height: 78px; border-radius: 50%; background: rgba(15,26,58,.72); border: 1.500px solid var(--gold); color: var(--gold); font-size: 30px; padding-left: 5px; }
/* Goldene Karten und Entwurf */
.cards { display: grid; gap: 9px; }
.gold-card { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 54px; padding: 10px 16px; border-radius: 16px; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--ink); background: linear-gradient(135deg, #F0DFA8, #C9A24A 70%, #B48B34); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.gold-card.on { outline: 2px solid var(--paper); outline-offset: 2px; }
.gold-card[disabled] { opacity: .5; }
.draft { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 24px; border: 1px solid var(--gold-soft); background: rgba(255,255,255,.06); transform-origin: 85% 50%; }
.draft-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.draft-t b { font-weight: 500; font-size: 16.500px; } .draft-t span { font-size: 13px; color: var(--muted); }
.draft.fold { animation: fold .7s ease-in forwards; }
@keyframes fold { 60% { transform: scale(.5, .18) rotate(-8deg); opacity: .9; } 100% { transform: scale(.08) rotate(-20deg); opacity: 0; } }
.fly { position: absolute; right: 18px; bottom: 30px; width: 54px; pointer-events: none; opacity: 0; animation: flyoff 1.500s .55s ease-in forwards; }
@keyframes flyoff { 0% { opacity: 0; transform: translate(0,0) scale(.3); } 15% { opacity: 1; transform: translate(-10px,-20px) scale(1) rotate(-10deg); } 55% { transform: translate(-90px,-180px) scale(.9) rotate(12deg); opacity: 1; } 100% { transform: translate(40px,-520px) scale(.5) rotate(-6deg); opacity: 0; } }
/* Karte */
.map-scene { overflow-y: auto; justify-content: flex-start; }
.map { flex: none; width: min(100%, 300px, 38vh); transform-origin: 50% 0; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.map svg { display: block; width: 100%; height: auto; }
.map.roll { animation: roll 1.100s cubic-bezier(.2,.8,.2,1); }
@keyframes roll { from { transform: scaleY(.04); opacity: .4; } }
.map .lbl { font: 600 13px var(--serif); fill: #0F1A3A; } .map .n780 { font: 600 12px var(--serif); fill: #B5616B; }
.map.lit .here circle { animation: glow 1.800s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glow { 50% { transform: scale(1.7); opacity: .12; } }
.map-body { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.map-body .line { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.25; margin: 4px 0 0; }
.map-body .field { max-width: none; }
.map-body .hint:empty { display: none; }
.oath { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--gold); background: rgba(201,162,74,.1); }
.oath b { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--gold); } .oath span { font-size: 13px; color: var(--muted); }
.sticker { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 26px; border-radius: 50% / 46%; background: var(--paper); color: var(--ink); border: 2px dashed #B89B5E; transform: rotate(-3deg); animation: pop .4s cubic-bezier(.2,.9,.3,1.4); }
.sticker b { font-family: var(--serif); font-size: 22px; } .sticker span { font-size: 13px; } .sticker .pin { font-size: 20px; }
/* Umschlag und Brief */
.envelope { position: relative; align-self: center; width: 250px; height: 150px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding-bottom: 18px; color: var(--ink); background: linear-gradient(160deg, #F0DFA8, #C9A24A 75%); box-shadow: 0 10px 26px rgba(0,0,0,.4); overflow: hidden; animation: drop .5s cubic-bezier(.3,1.4,.5,1); }
.envelope::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 78px; background: linear-gradient(180deg, #E6CF8E, #C39A3F); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .5s; transform-origin: top; }
.envelope b { font-family: var(--serif); font-size: 21px; } .envelope span { font-size: 14px; }
.envelope .seal { position: absolute; left: 50%; top: 56px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F0B7BC, #C4636E); box-shadow: 0 2px 5px rgba(0,0,0,.35); z-index: 1; transition: transform .45s, opacity .45s; }
.envelope.open .seal { transform: scale(1.6) rotate(40deg); opacity: 0; } .envelope.open::before { transform: rotateX(160deg); }
@keyframes drop { from { transform: translateY(-120px) rotate(-14deg); opacity: 0; } }
.letter { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 16px 18px; max-height: 34vh; overflow-y: auto; animation: pop .4s ease; text-align: left; }
.let-h { margin: 0 0 8px; font-size: 11.500px; letter-spacing: .12em; text-transform: uppercase; color: #8A6A1F; font-weight: 600; }
.let-b { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.32; font-weight: 500; white-space: pre-wrap; }
/* Ton-Zeichen, Zeit */
.phone-row { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; } .phone { width: 78px; flex: none; } .phone-row .small { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.field.time { text-align: center; font-size: 22px; font-family: var(--serif); color-scheme: dark; }
.chips { display: flex; gap: 8px; justify-content: center; }
.chips button { height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--gold-soft); font-size: 14.500px; color: var(--paper); }
/* Abendpost-Leiste */
.postbar { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; margin: 8px 12px 0; border-radius: 23px; background: linear-gradient(135deg, #F0DFA8, #C9A24A); color: var(--ink); font-weight: 600; font-size: 15px; box-shadow: 0 4px 16px rgba(0,0,0,.35); animation: pop .4s ease; }
.sheet .voice { width: 100%; margin: 6px 0; }
@media (max-height: 640px) { .botin { width: 110px; height: 78px; } .say { font-size: 16px; padding: 8px 14px; } }

/* Paket 12a: Antippen (C04) */
.bub.de .w { border-bottom: 1px dotted rgba(15,26,58,.32); cursor: pointer; padding: 2px 0; -webkit-tap-highlight-color: transparent; }
.bub.de .w.on { background: var(--gold); border-radius: 5px; border-bottom-color: transparent; box-shadow: 0 0 0 3px var(--gold); }
.gloss { flex: none; margin: 4px 12px 6px; padding: 10px 12px; border-radius: 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--gold); box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.gloss[hidden] { display: none; }
.g-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.g-say, .g-x { flex: none; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; color: var(--ink); background: rgba(15,26,58,.07); }
.g-x { background: none; font-size: 26px; line-height: 1; opacity: .55; margin-left: auto; }
.g-word { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.1; }
.g-mean { font-size: 16px; opacity: .8; min-width: 0; overflow-wrap: anywhere; }
.g-more { margin-top: 6px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(15,26,58,.25); color: var(--ink); font-size: 14px; font-weight: 600; }
.g-more[hidden], .g-sent[hidden] { display: none; }
.g-sent { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(15,26,58,.14); }
.g-sent p { margin: 0; } .g-de { font-size: 14px; opacity: .65; } .g-en { font-family: var(--serif); font-size: 20px; line-height: 1.25; margin-top: 2px !important; }

/* Paket 12b-1: "In German?" */
.ig-row { flex: none; display: flex; justify-content: flex-end; padding: 0 12px; min-height: 0; }
.ig-btn { height: 34px; margin: 4px 0 0; padding: 0 16px; border-radius: 17px; background: linear-gradient(135deg, #F0DFA8, #C9A24A 75%); color: var(--ink); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 17px; box-shadow: 0 2px 10px rgba(0,0,0,.3); animation: pop .25s ease; }
.ig-btn:disabled { opacity: .7; }
.ig { flex: none; margin: 6px 12px 0; padding: 10px 12px 12px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,.35); animation: pop .22s ease; max-height: 46vh; overflow-y: auto; }
.ig.done { box-shadow: 0 0 0 2px var(--gold), 0 6px 24px rgba(0,0,0,.35); }
.ig-head { display: flex; align-items: center; gap: 8px; }
.ig-head b { flex: 1; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.ig-peek { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid #B89B5E; color: #6b5215; font-size: 13px; font-weight: 600; }
.ig .g-x { width: 32px; height: 32px; font-size: 22px; color: #6b5215; }
.ig-en { margin: 2px 0 8px; font-size: 13.5px; font-style: italic; opacity: .7; }
.ig-line { display: flex; flex-wrap: wrap; gap: 4px 7px; min-height: 30px; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.25; }
.ig-line .gap { color: #9a8a63; letter-spacing: .04em; font-weight: 500; }
.ig-line .ok { color: #8a6a1f; }
.ig-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ig-chip { display: flex; flex-direction: column; align-items: center; min-height: 44px; padding: 6px 13px; border-radius: 12px; background: #fff8e3; border: 1px solid #B89B5E; color: var(--ink); font-size: 16.5px; font-weight: 600; }
.ig-chip small { font-size: 11.5px; font-weight: 400; opacity: .65; }
.ig-chip.no { animation: igno .3s ease; }
@keyframes igno { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* C08 Korrektur: der richtige Satz unter der Blase */
.corr { max-width: 100%; margin: 3px 4px 0; padding: 7px 11px 6px; border-radius: 12px; border: 1px solid var(--gold-soft); background: rgba(201,162,74,.08); font-size: 14.5px; line-height: 1.4; color: var(--paper); }
.row.me .corr { align-self: flex-end; }
.corr.quiet { border-style: dotted; background: none; opacity: .85; }
.corr-line b.gold { color: var(--gold); font-weight: 600; } .corr-line b.gold.main { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.corr-line .dot { border-bottom: 1.5px dotted rgba(242,232,207,.55); }
.corr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.corr-by { font-size: 11px; letter-spacing: .08em; opacity: .7; } .corr-done { font-size: 12.5px; color: var(--gold); }
.corr-btn { min-height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--gold-soft); color: var(--gold); font-size: 13px; font-weight: 600; }
.corr-show { font-family: var(--serif); font-size: 21px; color: var(--gold); text-align: center; margin: 0 0 12px; }
.corr-small { margin-top: 4px; font-size: 12px; opacity: .7; }
textarea.corr-edit { height: auto; min-height: 84px; padding: 12px 14px; line-height: 1.35; resize: none; }
.corr-i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold-soft); color: var(--gold); font-family: var(--serif); font-size: 13px; font-style: italic; line-height: 1; }

/* ---------- Paket 13a: Karte, Schlüssel, Keepsakes, Brief ---------- */
.bfly-btn { flex: none; width: 40px; height: 40px; margin: -3px; border-radius: 50%; display: grid; place-items: center; }
.bfly-btn:active { background: var(--gold-soft); }
.pill.keys { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; }
.pill.keys.grew { animation: grew .9s cubic-bezier(.2,.9,.3,1.4); }
@keyframes grew { 30% { transform: scale(1.25); background: var(--gold-soft); } }
.back-btn { position: absolute; top: calc(var(--safe-t) + 12px); left: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-soft); color: var(--gold); font-size: 28px; line-height: 1; padding-bottom: 4px; z-index: 3; }
.world { padding-top: calc(var(--safe-t) + 60px); }
.world-map { width: min(100%, 360px, 52vh); }
.map .n780 { cursor: pointer; }
.map .bf { transform-box: fill-box; transform-origin: center; animation: drift 4s ease-in-out infinite; }
.map .bf.salto { animation: salto 1.1s cubic-bezier(.4,0,.2,1) 1, drift 4s 1.1s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes salto { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-26px) rotate(-200deg) scale(1.2); } 75% { transform: translateY(-6px) rotate(-360deg); } 100% { transform: translateY(0) rotate(-360deg); } }
.miles { margin: 2px 0 0; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--paper); text-align: center; }
.count-chip { align-self: center; padding: 8px 18px; border-radius: 20px; border: 1px solid var(--gold-soft); color: var(--paper); font-size: 15px; }
.count-chip b { color: var(--gold); font-family: var(--serif); font-size: 22px; }
.letter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.letter-chip { padding: 9px 16px; border-radius: 18px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 14px; }
.letter-chip.new { background: linear-gradient(135deg, #F0DFA8, #C9A24A); animation: pulse 1.6s ease-in-out infinite; }
.world .btn.line-btn { align-self: center; min-width: 200px; }
.mail-line { text-align: center; } .mail-line .link { padding: 4px; font-size: 14px; color: var(--gold); }
.keyring { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 4px; }
.keyring .spk { font-size: 40px; } .keyring b { font-family: var(--serif); font-size: 54px; color: var(--gold); line-height: 1; }
.sheet p.center { text-align: center; }
.sheet .field.time { max-width: none; margin-top: 4px; }
.sheet .chips { margin: 8px 0; }
.sheet .link { display: block; margin: 6px auto 0; }
.sheet .sticker { margin: 10px auto 16px; }
.ks-scene, .letter-scene { overflow-y: auto; justify-content: flex-start; padding-top: calc(var(--safe-t) + 62px); }
.ks-h { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 32px; }
.ks-list { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; }
.ks-sec { margin: 12px 4px 2px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ks-tile { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 58px; padding: 10px 14px; border-radius: 16px; border: 1px solid rgba(201,162,74,.25); background: rgba(255,255,255,.04); color: var(--paper); }
.ks-tile:active { background: var(--gold-soft); }
.ks-ic { flex: none; width: 34px; font-size: 24px; text-align: center; }
.ks-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ks-t b { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; }
.ks-t span { font-size: 12.5px; color: var(--muted); }
.ks-tile.kept .ks-t b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; white-space: normal; }
.ks-tile.sealed { justify-content: center; height: 96px; background: linear-gradient(160deg, #F0DFA8, #C9A24A 75%); border: 0; position: relative; overflow: hidden; }
.ks-tile.sealed::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52px; background: linear-gradient(180deg, #E6CF8E, #C39A3F); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ks-tile.sealed .ks-t { display: none; }
.rose-seal { position: relative; z-index: 1; width: 34px; height: 34px; margin-top: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F0B7BC, #C4636E); box-shadow: 0 2px 5px rgba(0,0,0,.35); }
.botin.small-b { display: block; width: 110px; height: 78px; margin: 4px auto 8px; animation: hover 3.4s ease-in-out infinite; }
.sheet p.say { display: table; margin: 0 0 8px; color: var(--ink); }
.ks-film { display: block; width: 100%; max-height: 60vh; border-radius: 14px; background: #050918; }
.paper { width: 100%; max-width: 420px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 20px 20px 24px; font-family: var(--serif); font-size: 20px; line-height: 1.55; white-space: pre-wrap; box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.lw { background: #1d2440; color: transparent; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lw.on { background: none; color: #9A7424; font-weight: 600; animation: pop .4s ease; }
.sheet .letter p { color: var(--ink); }
.sheet h2.sub-h { font-size: 19px; margin-top: 18px; }

/* ---------- Paket 14: Cockpit ---------- */
.cp-list { max-width: 460px; }
.cp-list .small { font-size: 14px; color: var(--muted); margin: 2px 4px; line-height: 1.5; }
.cp-h { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cp-kv { margin: 0 4px; }
.cp-row { width: 100%; }
.cp-row .ks-t b { white-space: normal; }
.cp-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.cp-dot.grn { background: #7FBF8E; } .cp-dot.yel { background: #E8C55A; } .cp-dot.red { background: var(--rose); }
.cp-go { flex: none; color: var(--gold); font-size: 22px; line-height: 1; }
.cp-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid rgba(201,162,74,.25); background: rgba(255,255,255,.04); }
.cp-card p { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cp-card p.dim, .sheet .cp-item .t span { color: var(--muted); font-size: 13px; }
.cp-card p.gold { color: var(--gold); font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.cp-card label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cp-card .field, .sheet .field { max-width: none; color-scheme: dark; }
.sheet .field { margin-top: 8px; }
.cp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.cp-btns button { flex: 1 1 0; min-height: 46px; padding: 0 12px; border-radius: 23px; border: 1px solid var(--gold-soft); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.cp-btns button.go { background: var(--gold); color: var(--ink); border: 0; }
.cp-btns button:disabled, .cp-item button:disabled { opacity: .35; }
.cp-foot { text-align: center; margin-top: 14px !important; }
.cp-list > .btn { width: 100%; }
.cp-item { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 6px 4px; border-top: 1px solid rgba(242,232,207,.08); }
.cp-item.used { opacity: .55; }
.cp-item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cp-item .t b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cp-item button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold-soft); color: var(--gold); font-size: 16px; }
.cp-file { width: 100%; margin: 8px 0 0; color: var(--paper); font: inherit; font-size: 14px; }

/* Paket 15: Woche 1 (Warum, Late-night thought, Geheimnisse, Zahl, Wochenrückblick), Herzerl, Ruhezeit */
.postbar.ln { background: linear-gradient(135deg, #F3C4C8, #E39AA0); }
.say.me { align-self: flex-end; background: var(--night-3); color: var(--paper); border: 1px solid var(--gold); border-radius: 20px 20px 6px 20px; }
.field.why-in { height: auto; min-height: 64px; padding: 12px 16px; resize: none; line-height: 1.35; }
.why-card { width: 100%; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 18px; text-align: left; animation: pop .4s ease; }
.why-big { font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; }
.why-small { margin: 4px 0 0; font-size: 14px; color: #5b5540; overflow-wrap: anywhere; }
.sheet .say { align-self: flex-start; width: fit-content; }
.ln-card { position: relative; background: linear-gradient(160deg, #16244D, #0B1330); border: 1px solid var(--gold); border-radius: 16px; padding: 18px; text-align: center; margin: 8px 0; }
.ln-card .let-h { color: var(--gold); margin: 0; }
.ln-no { font-family: var(--serif); font-style: italic; font-size: 24px; margin: 8px 0 4px; color: var(--paper); }
.ln-foot { display: flex; flex-direction: column; gap: 10px; }
.rx { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rx-row { display: flex; gap: 10px; width: 100%; }
.rx-row .btn { flex: 1; }
.rx-row.big button { flex: 1; height: 56px; font-size: 28px; border-radius: 16px; border: 1px solid var(--gold-soft); }
.sec-env { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 74px; padding: 0 16px 0 62px; border-radius: 14px; color: var(--ink); background: linear-gradient(160deg, #F0DFA8, #C9A24A 75%); text-align: left; box-shadow: 0 6px 16px rgba(0,0,0,.35); overflow: hidden; }
.sec-env .seal { position: absolute; left: 16px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F0B7BC, #C4636E); box-shadow: 0 2px 5px rgba(0,0,0,.35); transition: transform .45s, opacity .45s; }
.sec-env.open .seal { transform: scale(1.5) rotate(40deg); opacity: .25; }
.sec-env b { flex: 1; font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.sec-env .lock { flex: none; font-size: 13.5px; font-weight: 600; padding: 5px 10px; border-radius: 12px; background: rgba(11,19,48,.14); }
.sec-env.locked { filter: saturate(.55) brightness(.82); }
.sec-env[disabled] { opacity: .6; }
.num-big { align-self: center; text-align: center; font-family: var(--serif); font-size: 26px; color: var(--paper); margin: 8px 0; animation: pop .5s cubic-bezier(.2,.9,.3,1.3); }
.num-big b { display: block; font-size: 84px; line-height: 1.22; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; color: var(--gold); }
.num-big span { display: block; margin-top: 6px; font-family: inherit; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scene.rv-scene { overflow-y: auto; justify-content: flex-start; }
.rv-body { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.rv-says { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.rv-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rv-row::-webkit-scrollbar { display: none; }
.rv-card { flex: 0 0 86%; scroll-snap-align: center; min-height: 210px; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.rv-card .let-h { margin: 0 0 4px; }
.rv-then { margin: 0; font-family: var(--serif); font-size: 20px; color: #6b644c; overflow-wrap: anywhere; }
.rv-arrow { margin: 0; text-align: center; color: #8A6A1F; }
.rv-now { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.rv-cap { margin: 0; font-size: 12.5px; color: #8A6A1F; }
.rv-nums { display: flex; justify-content: space-between; gap: 8px; text-align: center; }
.rv-nums div { flex: 1; }
.rv-nums b { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: #8A6A1F; }
.rv-nums span { font-size: 12px; color: #5b5540; }
.rv-rec { margin: 0; text-align: center; font-weight: 600; color: #8A6A1F; }
.rv-line { margin: 0; font-size: 16px; }
.rv-card .voice { color: var(--ink); }
.rv-fb { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rv-fb .btn, .rv-fb .field { align-self: stretch; max-width: none; }
.chips.wrap { flex-wrap: wrap; justify-content: flex-start; }
.chips button.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.herz { position: relative; display: block; align-self: center; width: 200px; height: 180px; margin: 4px auto; animation: pop .45s cubic-bezier(.2,.9,.3,1.3); }
.herz svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
.herz span { position: absolute; left: 22px; right: 22px; top: 50px; text-align: center; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.1; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.herz-more { text-align: center; }
.herz-more p { margin: 2px 0; }
.q-lab { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cp-item button.on { background: var(--gold); color: var(--ink); }
.dg-day { flex: none; width: 112px; font-size: 12px; color: var(--muted); }
.btn.line-btn.spicy { border-color: var(--rose); color: var(--rose); }
.sheet .why-card p { color: var(--ink); margin: 0 0 8px; }
.sheet .why-card p.why-small { color: #5b5540; }
.sheet .rx { margin: 6px 0; }
