/* 🎄 Adventskalender – Weihnachtlich, hochwertig, süß */
:root {
  --night: #0e1830; --night2: #1a2950; --gold: #e8c170; --gold2: #f6dea0; --red: #a3192f; --red2: #c8324a; --cream: #fbf5ea; --ink: #3a2417; --soft: rgba(255,255,255,.72);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif; --hand: "Noteworthy", "Bradley Hand", "Segoe Print", "Marker Felt", cursive; --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(120% 80% at 50% 0%, #22335e 0%, var(--night) 55%, #080f20 100%) fixed; color: #fff; font-family: var(--sans); }
body { overscroll-behavior-y: none; }
button { font: inherit; color: inherit; cursor: pointer; }
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); }
.hidden { display: none !important; }

/* ---------- Login ---------- */
.login { min-height: 86vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; }
.login .wreath { font-size: 76px; filter: drop-shadow(0 8px 30px rgba(232,193,112,.35)); animation: bob 3.2s ease-in-out infinite; }
.login h1 { margin: 0; font: 600 34px/1.15 var(--serif); letter-spacing: -.01em; }
.login h1 em { font-style: italic; color: var(--gold); }
.login p { margin: 0; color: var(--soft); }
.login form { display: grid; gap: 10px; width: min(320px, 86vw); margin-top: 10px; }
.login input { padding: 15px 18px; border-radius: 16px; border: 1px solid rgba(232,193,112,.35); background: rgba(255,255,255,.08); color: #fff; font-size: 18px; text-align: center; outline: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.login input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232,193,112,.18); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border: 0; border-radius: 16px; background: linear-gradient(180deg, var(--red2), var(--red)); color: #fff; font-weight: 700; font-size: 17px; box-shadow: 0 8px 24px rgba(163,25,47,.45), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .12s; }
.btn:active { transform: scale(.97); } .btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #3a2417; box-shadow: 0 8px 24px rgba(232,193,112,.35); }
.btn.ghost { background: rgba(255,255,255,.1); box-shadow: none; } .btn.small { padding: 9px 14px; font-size: 14px; border-radius: 12px; } .btn[disabled] { opacity: .45; }
.err { color: #ffb4b4; min-height: 20px; font-size: 14px; }

/* ---------- Kalender ---------- */
.hero { text-align: center; margin: 6px 0 22px; }
.hero .kicker { font: italic 500 15px var(--serif); color: var(--gold); letter-spacing: .04em; }
.hero h1 { margin: 6px 0 10px; font: 600 30px/1.15 var(--serif); }
.hero p { margin: 0 auto; max-width: 420px; color: var(--soft); line-height: 1.55; white-space: pre-line; }
.hero .deco { font-size: 13px; letter-spacing: .5em; color: var(--gold); opacity: .8; margin-top: 12px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: 14px; font-weight: 600; }
.testbar { margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: rgba(232,193,112,.12); border: 1px dashed rgba(232,193,112,.6); font-size: 14px; display: grid; gap: 8px; }
.testbar .row { display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.door { position: relative; aspect-ratio: 3 / 4; perspective: 700px; border: 0; padding: 0; background: none; }
.door.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.door .inside { position: absolute; inset: 0; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #fff6df, #f1d9a6); display: grid; place-items: center; font-size: 30px; box-shadow: inset 0 0 18px rgba(120,70,20,.3); }
.door .leaf { position: absolute; inset: 0; border-radius: 14px; transform-origin: left center; transition: transform .9s cubic-bezier(.5,.05,.2,1); transform-style: preserve-3d;
  background: linear-gradient(155deg, var(--c1, #b3213a), var(--c2, #7d1023)); box-shadow: inset 0 0 0 1.5px rgba(246,222,160,.55), inset 0 0 0 5px rgba(0,0,0,.08), 0 8px 18px rgba(0,0,0,.35);
  display: grid; place-content: center; justify-items: center; overflow: hidden; }
.door .leaf::before { content: ""; position: absolute; inset: 6px; border-radius: 10px; border: 1px dashed rgba(246,222,160,.35); }
.door .leaf::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.25), transparent 45%); }
.door .num { position: relative; z-index: 1; font: 600 30px/1 var(--serif); color: var(--gold2); text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.door.big .num { font-size: 64px; }
.door .knob { position: absolute; right: 9px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 1px 2px rgba(0,0,0,.4); z-index: 1; }
.door .bow { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 15px; z-index: 1; }
.door.t1 .leaf { --c1: #b3213a; --c2: #7d1023; } .door.t2 .leaf { --c1: #1f6b4d; --c2: #0f4532; } .door.t3 .leaf { --c1: #27407c; --c2: #15264f; } .door.t4 .leaf { --c1: #c9a254; --c2: #9b7531; } .door.t4 .num { color: #fff7e3; }
.door.open .leaf { transform: rotateY(-108deg); box-shadow: inset 0 0 0 1.5px rgba(246,222,160,.55); }
.door.locked .leaf { filter: saturate(.75) brightness(.85); }
.door.today .leaf { animation: glow 2.2s ease-in-out infinite; }
.door.shake { animation: shake .45s; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 1.5px rgba(246,222,160,.9), 0 0 0 3px rgba(232,193,112,.55), 0 0 28px rgba(232,193,112,.6); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px) rotate(-2deg); } 40%, 80% { transform: translateX(5px) rotate(2deg); } }
@keyframes bob { 50% { transform: translateY(-6px); } }
.footer { text-align: center; margin-top: 24px; display: grid; gap: 10px; justify-items: center; color: var(--soft); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 99px; background: rgba(20,28,52,.92); border: 1px solid rgba(232,193,112,.4); color: #fff; font-weight: 600; font-size: 15px; z-index: 100; transition: .35s var(--spring); pointer-events: none; text-align: center; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tagesansicht ---------- */
.day { position: fixed; inset: 0; z-index: 50; overflow-y: auto; -webkit-overflow-scrolling: touch; background: radial-gradient(120% 70% at 50% 0%, #24365f, #0e1830 60%, #070d1c); animation: dayIn .5s var(--spring); }
@keyframes dayIn { from { opacity: 0; transform: scale(.96); } }
.day-inner { max-width: 560px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); min-height: 100%; display: flex; flex-direction: column; }
.day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.day-head .close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); font-size: 20px; }
.day-head .t { text-align: center; } .day-head .t small { display: block; font: italic 14px var(--serif); color: var(--gold); } .day-head .t b { font: 600 22px var(--serif); }
.day-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lead { text-align: center; color: var(--soft); margin: 0; line-height: 1.5; max-width: 440px; }
.card { width: 100%; background: var(--cream); color: var(--ink); border-radius: 20px; padding: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.paper { font: 18px/1.65 var(--serif); white-space: pre-line; }
.paper .to { font: italic 600 22px var(--serif); margin-bottom: 12px; color: var(--red); }
.paper .from { font: 28px var(--hand); color: var(--red); text-align: right; margin-top: 14px; }

/* Brief / Umschlag */
.envelope { position: relative; width: min(340px, 88vw); aspect-ratio: 1.5; margin: 30px auto 10px; cursor: pointer; }
.envelope .back { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(160deg, #f3e2c4, #e2c79a); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.envelope .front { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(160deg, #f6e8cd, #e9d1a8); clip-path: polygon(0 100%, 0 35%, 50% 72%, 100% 35%, 100% 100%); z-index: 3; }
.envelope .flap { position: absolute; left: 0; right: 0; top: 0; height: 62%; background: linear-gradient(180deg, #ead2a6, #dcc08e); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .7s ease, z-index 0s .35s; z-index: 4; }
.envelope .seal { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d84a5f, #8d0f25); z-index: 5; display: grid; place-items: center; font-size: 28px; box-shadow: 0 4px 12px rgba(0,0,0,.35), inset 0 -3px 6px rgba(0,0,0,.25); transition: opacity .3s, transform .4s; }
.envelope .peek { position: absolute; left: 8%; right: 8%; top: 10%; bottom: 8%; background: var(--cream); border-radius: 6px; z-index: 2; transition: transform .8s .3s var(--spring); }
.envelope.open .flap { transform: rotateX(180deg); z-index: 1; } .envelope.open .seal { opacity: 0; transform: translate(-50%, -50%) scale(1.4); } .envelope.open .peek { transform: translateY(-38%); }
.hint { font: italic 15px var(--serif); color: var(--gold); text-align: center; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.letter-in { animation: letterIn .8s var(--spring) both; }
@keyframes letterIn { from { opacity: 0; transform: translateY(40px) scale(.95); } }
.youare { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.youare li { animation: letterIn .6s var(--spring) both; } .youare b { color: var(--red); font-style: italic; }
.choice { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.choice label { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; border: 2px solid rgba(58,36,23,.2); font: 600 18px var(--sans); cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: var(--red); }
.choice label.on { border-color: var(--red); background: rgba(163,25,47,.08); }

/* Gutschein */
.voucher { position: relative; width: 100%; border-radius: 22px; padding: 20px; color: #fff; background: linear-gradient(140deg, var(--vc, #a3192f), color-mix(in srgb, var(--vc, #a3192f) 55%, #000)); box-shadow: 0 18px 40px rgba(0,0,0,.4); overflow: hidden; }
.voucher::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.1); }
.voucher small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; } .voucher h3 { margin: 6px 0 4px; font: 600 26px var(--serif); } .voucher p { margin: 0; opacity: .9; line-height: 1.45; }
.voucher .vi { position: absolute; right: 18px; bottom: 14px; font-size: 44px; } .voucher .vf { margin-top: 16px; font-size: 12px; opacity: .7; display: flex; justify-content: space-between; }
.vlist { display: grid; gap: 12px; width: 100%; }

/* Glücksrad */
.wheel-wrap { position: relative; width: min(340px, 86vw); aspect-ratio: 1; margin: 8px auto; }
.wheel-wrap canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 8px #e8c170, 0 0 0 12px #9b7531, 0 20px 50px rgba(0,0,0,.5); transition: transform 5.2s cubic-bezier(.12,.75,.12,1); }
.wheel-wrap .pin { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #fff; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); z-index: 2; }
.wheel-wrap .hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3d2, #e8c170); display: grid; place-items: center; font-size: 28px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.tag20 { position: fixed; right: 0; top: 34%; z-index: 60; padding: 10px 10px 10px 16px; border-radius: 14px 0 0 14px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #3a2417; font: 700 22px var(--serif); box-shadow: -4px 6px 16px rgba(0,0,0,.35); transform-origin: right; animation: tag 3s ease-in-out infinite; }
@keyframes tag { 50% { transform: rotate(-4deg); } }

/* Rubbellose */
.scratch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
.ticket { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--cream); box-shadow: 0 10px 26px rgba(0,0,0,.4); touch-action: none; }
.ticket img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ticket .msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; color: var(--red); font: 600 17px/1.35 var(--serif); background: radial-gradient(circle, #fff, #f6e6c6); }
.ticket canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s; }
.ticket.done canvas { opacity: 0; pointer-events: none; }

/* Puzzle */
.board { position: relative; width: min(340px, 86vw); aspect-ratio: 1; display: grid; gap: 2px; background: rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; touch-action: none; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.tile { position: relative; background-repeat: no-repeat; border-radius: 3px; transition: transform .2s, box-shadow .2s, outline .15s; }
.tile.sel { outline: 3px solid var(--gold); outline-offset: -3px; transform: scale(.94); z-index: 2; }
.tile.ok { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.board.solved { gap: 0; } .board.solved .tile { border-radius: 0; }
.slide { position: relative; width: min(310px, 82vw); aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.45); touch-action: manipulation; }
.slide .tile { position: absolute; width: calc(100% / 3); height: calc(100% / 3); transition: left .18s ease, top .18s ease; border: 1px solid rgba(0,0,0,.25); border-radius: 4px; }
.progress { color: var(--soft); font-size: 14px; }

/* Wortsuche */
.ws { position: relative; width: min(370px, 94vw); aspect-ratio: 1; display: grid; border-radius: 16px; background: var(--cream); color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.45); touch-action: none; user-select: none; -webkit-user-select: none; padding: 6px; }
.ws span { display: grid; place-items: center; font: 600 19px var(--serif); position: relative; z-index: 1; }
.ws span.sel { color: #fff; } .ws span.found { color: var(--red); }
.ws svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; }
.wlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .wlist span { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); font-weight: 700; letter-spacing: .05em; font-size: 14px; } .wlist span.ok { background: var(--gold); color: #3a2417; text-decoration: line-through; }
.reveal-img { width: 100%; border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.5); animation: letterIn .9s var(--spring) both; display: block; }

/* Memory */
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.mc { aspect-ratio: 3 / 4; perspective: 600px; border: 0; padding: 0; background: none; }
.mc i { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .45s; }
.mc { position: relative; } .mc .b { background: linear-gradient(150deg, #b3213a, #7d1023); box-shadow: inset 0 0 0 2px rgba(246,222,160,.55); display: grid; place-items: center; font-size: 24px; font-style: normal; }
.mc .f { background-size: cover; background-position: center; transform: rotateY(180deg); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.mc.up .b { transform: rotateY(-180deg); } .mc.up .f { transform: none; } .mc.done .f { box-shadow: 0 0 0 3px var(--gold); }

/* Mastermind */
.mm { width: 100%; display: grid; gap: 6px; }
.mm-row { display: grid; grid-template-columns: 26px repeat(4, 1fr) 64px; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 14px; background: rgba(255,255,255,.06); }
.mm-row.cur { background: rgba(232,193,112,.14); box-shadow: inset 0 0 0 1.5px rgba(232,193,112,.5); }
.mm-row em { font-style: normal; font-size: 12px; color: var(--soft); text-align: center; }
.slot { aspect-ratio: 1; max-height: 44px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.2); display: grid; place-items: center; font-size: 28px; background: none; padding: 0; justify-self: center; width: 100%; max-width: 44px; }
.slot.f { border: 0; }
.pins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; justify-items: center; font-size: 13px; }
.palette { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; } .palette button { width: 50px; height: 50px; border-radius: 14px; border: 0; background: rgba(255,255,255,.1); font-size: 30px; transition: transform .1s; } .palette button:active { transform: scale(.9); } .palette button.used { opacity: .3; }

/* Spiele (Canvas) */
.game { position: relative; width: 100%; max-width: 420px; aspect-ratio: 3 / 4.6; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.5); touch-action: none; background: #0b1630; }
.game canvas { width: 100%; height: 100%; display: block; }
.overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 20px; background: rgba(8,14,30,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.overlay h2 { margin: 0; font: 600 28px var(--serif); } .overlay p { margin: 0; color: var(--soft); }
.hud { display: flex; justify-content: space-between; width: 100%; max-width: 420px; font-weight: 700; color: var(--soft); font-size: 15px; } .hud b { color: #fff; }

/* Nikolaus */
.santa { width: min(300px, 80vw); margin-top: 10px; }
.santa .arm { transform-origin: 152px 152px; animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(22deg); } }
.bubble { position: relative; background: var(--cream); color: var(--ink); padding: 16px 20px; border-radius: 22px; font: 600 21px/1.35 var(--serif); text-align: center; box-shadow: 0 14px 40px rgba(0,0,0,.4); animation: letterIn .8s .3s var(--spring) both; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); border: 14px solid transparent; border-top-color: var(--cream); border-bottom: 0; }
.bubble small { display: block; font: 500 16px var(--sans); color: var(--red); margin-top: 6px; }

/* Post-its */
.wall { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 18px 12px; border-radius: 20px; background: linear-gradient(135deg, #b8875a, #9a6c41); box-shadow: inset 0 0 40px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.4); }
.postit { position: relative; aspect-ratio: 1; padding: 14px 12px; color: #3a2a12; font: 18px/1.3 var(--hand); display: grid; place-items: center; text-align: center; box-shadow: 0 8px 14px rgba(0,0,0,.3); transform: rotate(var(--r)); background: var(--pc); border: 0; transition: transform .3s var(--spring); }
.postit::before { content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 16px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,255,255,.45); }
.postit .cover { position: absolute; inset: 0; background: var(--pc); display: grid; place-items: center; font-size: 30px; transition: transform .6s ease, opacity .6s; transform-origin: top; }
.postit.peeled .cover { transform: rotateX(80deg) translateY(-20px); opacity: 0; }

/* Flaschenpost */
.sea { position: relative; width: 100%; max-width: 420px; height: 320px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #16305f 0%, #1d4f82 50%, #133a66 100%); box-shadow: 0 18px 50px rgba(0,0,0,.5); cursor: pointer; }
.sea .wave { position: absolute; left: -50%; width: 200%; height: 120px; border-radius: 45%; background: rgba(255,255,255,.08); animation: waves 7s linear infinite; }
@keyframes waves { to { transform: rotate(360deg); } }
.bottle { position: absolute; left: 50%; top: 48%; font-size: 78px; transform: translate(-50%, -50%) rotate(-25deg); animation: float 3s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(0,0,0,.35)); }
@keyframes float { 50% { transform: translate(-50%, -62%) rotate(-12deg); } }
.moon { position: absolute; right: 30px; top: 24px; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8dc, #f0d68a); box-shadow: 0 0 40px rgba(246,222,160,.6); }

/* Zeitkapsel */
.capsule textarea { width: 100%; min-height: 220px; border-radius: 16px; border: 1px solid rgba(58,36,23,.2); padding: 14px; font: 17px/1.55 var(--serif); color: var(--ink); background: #fffdf8; resize: vertical; outline: none; }
.sealed { display: grid; justify-items: center; gap: 10px; text-align: center; }
.sealed .wax { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d84a5f, #8d0f25); display: grid; place-items: center; font-size: 46px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: letterIn .8s var(--spring) both; }

/* Herzschloss */
.lockheart { position: relative; width: min(280px, 76vw); aspect-ratio: 1; display: grid; place-items: center; }
.lockheart .heart { font-size: min(240px, 66vw); line-height: 1; filter: drop-shadow(0 20px 40px rgba(163,25,47,.55)); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 15%, 35% { transform: scale(1.06); } 25% { transform: scale(.98); } }
.lockheart .padlock { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); font-size: 64px; transition: transform .8s var(--spring), opacity .8s; }
.lockheart.open .padlock { transform: translate(-50%, 60%) rotate(30deg); opacity: 0; }
.codebox { display: flex; gap: 6px; justify-content: center; }
.codebox span { width: 38px; height: 50px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(232,193,112,.4); display: grid; place-items: center; font: 600 24px var(--serif); }
.codebox.bad { animation: shake .45s; } .codebox span.f { border-color: var(--gold); }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; justify-content: center; }
.keypad button { height: 58px; border-radius: 18px; border: 0; background: rgba(255,255,255,.1); font: 600 24px var(--serif); } .keypad button:active { background: rgba(255,255,255,.22); }
.player { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(232,193,112,.35); }
.player button { width: 60px; height: 60px; border-radius: 50%; border: 0; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #3a2417; font-size: 24px; flex: none; }
.player .bar { flex: 1; height: 6px; border-radius: 9px; background: rgba(255,255,255,.15); overflow: hidden; } .player .bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.glow13 { font: 700 18px var(--serif); color: var(--gold); text-shadow: 0 0 12px rgba(232,193,112,.9); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; }
