@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Raureif & Mitternacht, mit Metall als einzigem Glanz */
  --frost: #E7ECEF;
  --frost-deep: #D9E0E5;
  --paper: #FBFBFA;
  --well: #F4F4F2;
  --ink: #1D2536;
  --ink-soft: #4E586A;
  --line: #C6CED6;
  --gold: #8E6A2B;
  --gold-bright: #C9A04F;
  --gold-light: #E3CD98;
  --velvet: #3A1C2C;
  --velvet-deep: #24101B;
  --velvet-edge: #5A3249;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --metal-gold: linear-gradient(140deg, #F6E3A8 0%, #D2AA58 38%, #94702E 66%, #E9CF8B 100%);
  --metal-white: linear-gradient(140deg, #FAFAF8 0%, #D3D5D7 38%, #A1A5AA 66%, #ECEDEE 100%);
  --metal-rose: linear-gradient(140deg, #F8DCCD 0%, #DDA187 38%, #A9654F 66%, #F0C7B4 100%);
  --metal-titan: linear-gradient(140deg, #E6E9EC 0%, #AEB4BB 38%, #737A83 66%, #D3D8DC 100%);
  --metal-titan-gold: linear-gradient(140deg, #EADDB4 0%, #C4A563 38%, #8B7238 66%, #DCC791 100%);
  --metal-titan-rose: linear-gradient(140deg, #EED6CB 0%, #CC9C88 38%, #9A6858 66%, #E3C0B2 100%);

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 24px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-s); z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--frost) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.wordmark { font-family: var(--serif); font-style: italic; font-size: 1.35rem; text-decoration: none; }

.mini-box {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px;
  background: var(--velvet); color: var(--gold-light);
  border: 0; border-radius: 999px; cursor: pointer;
}
.mini-slot {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--velvet-edge), var(--velvet-deep) 70%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.6);
  background-size: cover; background-position: center;
}
.mini-slot.filled { box-shadow: 0 0 0 1.5px var(--gold-bright); background-color: #fff; }
.mini-count { font-size: .82rem; margin-left: 4px; white-space: nowrap; }

/* ---------- Hero ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 6vw, 80px) 0 clamp(28px, 5vw, 56px);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.75rem);
  line-height: 1.04; font-variation-settings: "opsz" 96;
  max-width: 13ch; overflow-wrap: break-word;
}
.hero-copy p { margin-top: 1.25rem; max-width: 46ch; color: var(--ink-soft); font-size: 1.075rem; }
.hero-copy .hero-note { font-size: .95rem; }

/* Das Schmuckkästchen */
.box {
  position: relative;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(255,255,255,.07), transparent 60%),
    var(--velvet);
  padding: 22px 22px 26px;
  box-shadow: 0 30px 60px -30px rgba(36,16,27,.65), 0 2px 0 rgba(255,255,255,.06) inset;
  isolation: isolate;
}
.box-lid {
  margin: 0 4px 18px; padding: 2px 0 20px;
  border-bottom: 1px solid rgba(227,205,152,.28);
  display: flex; align-items: center; justify-content: center;
}
.lid-flake { width: 84px; height: 84px; transition: filter .8s var(--ease); }
.box.complete .lid-flake { filter: drop-shadow(0 0 7px rgba(227,205,152,.38)); }

/* Die Wunsch-Schneeflocke (flake.js): wächst mit jeder Auswahl um eine Schicht */
.flake { display: block; width: 100%; height: 100%; overflow: visible; }
.flake-seed { stroke: rgba(227,205,152,.5); }
.flake-layer.is-new path {
  stroke-dasharray: 60;
  animation: flake-grow 1.2s var(--ease) both;
  animation-delay: calc(var(--i, 0) * .3s);
}
.flake-layer.is-new .flake-beads {
  animation: flake-bead .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * .3s + .75s);
}
@keyframes flake-grow { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes flake-bead { from { opacity: 0; } to { opacity: 1; } }
.box-tray {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--velvet-deep);
  border-radius: calc(var(--radius-l) - 8px);
  padding: 22px 14px 16px;
  box-shadow: inset 0 6px 18px rgba(0,0,0,.55);
}
.slot { text-decoration: none; display: grid; justify-items: center; gap: 10px; color: var(--gold-light); position: relative; }
/* kurzes Aufblitzen, wenn ein Stück ins Kästchen gelegt wird */
.slot.just-filled::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  width: 22px; height: 22px; top: 2px; left: calc(50% + min(50%, 64px) * .58);
  background: #FFF6DC;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  animation: glint .9s var(--ease) .25s both;
}
@keyframes glint { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 45% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(0) rotate(25deg); opacity: 0; } }
.slot-well {
  width: 100%; max-width: 128px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--velvet-edge), var(--velvet) 55%, var(--velvet-deep));
  box-shadow: inset 0 4px 10px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.07);
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  transition: box-shadow .3s var(--ease);
}
.slot-well::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.6rem; color: rgba(227,205,152,.45);
}
.slot.filled .slot-well { background-color: #fff; box-shadow: 0 0 0 2px var(--gold-bright), 0 8px 20px -6px rgba(0,0,0,.7); }
.slot.filled .slot-well::after { content: none; }
.slot-label { font-size: .85rem; text-align: center; line-height: 1.25; }
.slot-label small { display: block; color: rgba(227,205,152,.65); font-size: .75rem; }
.slot.just-filled .slot-well { animation: settle .6s var(--ease); }
@keyframes settle { 0% { transform: scale(.7); opacity: .2; } 70% { transform: scale(1.04); } 100% { transform: none; opacity: 1; } }
.box.complete::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 1.5px var(--gold-bright);
}

/* ---------- Schritte ---------- */
.steps { position: sticky; top: 56px; z-index: 10; background: var(--frost); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.steps ol {
  list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.steps ol::-webkit-scrollbar { display: none; }
.step {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 9px 16px 9px 10px; border-radius: 999px; text-decoration: none;
  color: var(--ink-soft); transition: background .2s, color .2s;
}
.step:hover { background: var(--frost-deep); color: var(--ink); }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: .8rem; font-variant-numeric: tabular-nums;
}
.step.is-done .step-num { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.step[aria-current="step"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.step[aria-current="step"] .step-num { border-color: var(--gold); }

/* ---------- Bühne ---------- */
.stage { padding: clamp(28px, 4vw, 48px) 0 72px; min-height: 60vh; }
.stage-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; margin-bottom: 28px; }
.stage-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; }
.stage-head p { color: var(--ink-soft); max-width: 52ch; margin-top: .5rem; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 14px 7px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font-size: .9rem; color: var(--ink-soft);
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .dot { width: 16px; height: 16px; }
.chip-all { padding-left: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--paper); border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius-m); overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}
.card-img { aspect-ratio: 1; background: var(--well); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.035); }
.card-body { padding: 14px 16px 18px; display: grid; gap: 8px; }
.card-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: .85rem; }
.dots { display: inline-flex; gap: 5px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.card.chosen { box-shadow: 0 0 0 2px var(--gold-bright); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--velvet); color: var(--gold-light);
  font-size: .78rem; padding: 4px 10px; border-radius: 999px;
}

.m-gold { background: var(--metal-gold); }
.m-white { background: var(--metal-white); }
.m-rose { background: var(--metal-rose); }
.m-titan { background: var(--metal-titan); }
.m-titan-gold { background: var(--metal-titan-gold); }
.m-titan-rose { background: var(--metal-titan-rose); }

/* Fotos, die es im Shop nur in Silber gibt, farblich angleichen */
.tint-gold, [data-tint="gold"] { filter: sepia(.8) saturate(1.5) hue-rotate(-6deg) brightness(1.14) contrast(1.08); }
.tint-rose, [data-tint="rose"] { filter: sepia(.6) saturate(1.4) hue-rotate(-30deg) brightness(1.12) contrast(1.08); }

.empty { padding: 48px 0; color: var(--ink-soft); }
.empty button { margin-top: 12px; }

/* ---------- Produkt-Ansicht (Rückseite inline & Dialog) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { display: grid; gap: 10px; }
.gallery-main { aspect-ratio: 1; background: var(--well); border-radius: var(--radius-m); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.thumb { flex: 0 0 64px; height: 64px; border: 0; padding: 0; border-radius: var(--radius-s); overflow: hidden; background: var(--well); cursor: pointer; opacity: .6; transition: opacity .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.thumb:hover { opacity: 1; }

.info { display: grid; gap: 22px; }
.info h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; }
.info .kicker { color: var(--ink-soft); font-size: .95rem; margin-bottom: .4rem; }

.swatches { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.swatches legend { padding: 0; font-size: .95rem; color: var(--ink-soft); margin-bottom: 10px; }
.swatches legend strong { color: var(--ink); font-weight: 600; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .dot { width: 30px; height: 30px; }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }

.prose { display: grid; gap: .8rem; max-width: 60ch; }
.prose p { line-height: 1.65; }

.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; border-top: 1px solid var(--line); padding-top: 18px; font-size: .95rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 500; text-decoration: none; transition: background .2s, color .2s, transform .1s;
}
.btn:hover { background: #2C3650; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--frost-deep); }
.btn-velvet { background: var(--velvet); border-color: var(--velvet); color: var(--gold-light); }
.btn-velvet:hover { background: var(--velvet-edge); }
.link-btn { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-soft); }
.link-btn:hover { color: var(--ink); }
.hint { font-size: .9rem; color: var(--ink-soft); }

/* Dialog */
.sheet {
  width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: var(--radius-l);
  background: var(--frost); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(29,37,54,.55);
}
.sheet::backdrop { background: rgba(29,37,54,.45); backdrop-filter: blur(3px); }
.sheet[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { padding: clamp(18px, 3.5vw, 40px); position: relative; }
.close {
  position: sticky; top: 0; float: right; z-index: 2; margin: -6px -6px 0 12px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; display: grid; place-items: center;
}
.close svg { width: 16px; height: 16px; }

/* ---------- Abschluss ---------- */
.summary { display: grid; gap: 12px; margin-bottom: 28px; max-width: 760px; }
.sum-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center;
  background: var(--paper); border-radius: var(--radius-m); padding: 12px 18px 12px 12px;
}
.sum-row img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-s); background: var(--well); mix-blend-mode: multiply; }
.sum-img { background: var(--well); border-radius: var(--radius-s); }
.sum-cat { color: var(--ink-soft); font-size: .85rem; }
.sum-title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.sum-color { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; margin-top: 2px; }
.sum-row.missing { background: transparent; border: 1px dashed var(--line); grid-template-columns: 84px 1fr auto; }
.sum-row.missing .sum-img { height: 84px; border-radius: var(--radius-s); background: var(--frost-deep); }

.seal { margin: 0; display: flex; align-items: center; gap: 16px; max-width: 360px; }
.seal-disc {
  flex: 0 0 auto; width: 124px; height: 124px; padding: 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, var(--velvet-edge), var(--velvet) 58%, var(--velvet-deep));
  box-shadow: 0 0 0 1.5px var(--gold-bright), 0 0 0 5px var(--velvet), 0 14px 28px -14px rgba(36,16,27,.7);
}
.seal figcaption { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }

.done {
  max-width: 760px; margin-top: 8px; padding: clamp(22px, 4vw, 36px);
  border-radius: var(--radius-l); background: var(--velvet); color: var(--gold-light);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(18px, 3vw, 34px);
}
.done-text { display: grid; gap: 14px; }
.done h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #F4E7C8; }
.done p { color: rgba(244,231,200,.82); max-width: 54ch; }
.done .btn-ghost { border-color: rgba(227,205,152,.5); color: var(--gold-light); }
.done .btn-ghost:hover { background: var(--velvet-edge); }
.done.shine { animation: shine 1.4s var(--ease); }
@keyframes shine { from { box-shadow: 0 0 0 0 rgba(201,160,79,.0); } 35% { box-shadow: 0 0 0 6px rgba(201,160,79,.35); } to { box-shadow: 0 0 0 0 rgba(201,160,79,0); } }

/* ---------- Toast & Fuß ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); font-size: .95rem;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s var(--ease); }
.toast a { color: var(--gold-light); white-space: nowrap; }
.foot { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }

/* ---------- Bewegung: Auswahl, Abwahl, Schleife, Flockenschauer ---------- */
/* Auswahl: das Foto fliegt ins Kästchen (app.js: flyToBox) */
.flyer { position: fixed; z-index: 80; pointer-events: none; }
.flyer > div {
  width: 100%; height: 100%; transform-origin: 0 0;
  background: #fff center / cover no-repeat;
  box-shadow: 0 0 0 2px var(--gold-bright), 0 18px 40px -12px rgba(29,37,54,.45);
}
.mini-slot.just-filled { animation: settle .6s var(--ease); }
.card.just-chosen { animation: chosen 1.1s var(--ease); }
.card.just-chosen .badge { animation: badge-in .5s var(--ease) .2s both; }
@keyframes chosen {
  from { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 0 0 rgba(201,160,79,.55); }
  to { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 0 16px rgba(201,160,79,0); }
}
@keyframes badge-in { from { transform: translateY(-6px) scale(.8); opacity: 0; } }

/* Abwahl: das Stück hebt sich heraus, seine Schicht der Schneeflocke schmilzt */
.slot.leaving .slot-well, .mini-slot.leaving { animation: lift .42s cubic-bezier(.5,0,.8,.4) forwards; }
@keyframes lift { to { transform: translateY(-16px) scale(.55); opacity: 0; } }
.flake-layer.is-leaving path { stroke-dasharray: 60; animation: flake-melt .42s ease-in forwards; }
.flake-layer.is-leaving .flake-beads { animation: flake-bead .2s ease-in reverse forwards; }
@keyframes flake-melt { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 60; } }

/* Schleife: nach dem Speichern wird das Kästchen zugebunden */
.box-lid { position: relative; }
.lid-bow { display: none; }
.box.wrapped .box-lid { border-bottom-color: transparent; }
.box.wrapped .box-lid::after {
  content: ""; position: absolute; left: -26px; right: -26px; bottom: -5px; height: 9px;
  background: linear-gradient(180deg, #9C7630, #F6E3A8 35%, #D2AA58 65%, #8E6A2B);
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
  animation: wrap-x .6s var(--ease) both;
}
.box.wrapped .lid-bow { display: block; position: absolute; z-index: 1; left: 50%; bottom: -1px; width: 52px; transform: translate(-50%, 50%); }
.bow { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.lid-bow .bow { animation: bow-pop .6s cubic-bezier(.3,1.5,.5,1) .5s both; }
@keyframes wrap-x { from { transform: scaleX(0); } }
@keyframes wrap-y { from { transform: scaleY(0); } }
@keyframes bow-pop { from { transform: scale(0) rotate(-20deg); } }

.gift {
  position: relative; width: 136px; aspect-ratio: 1; border-radius: 18px;
  background: radial-gradient(130% 130% at 22% 12%, #73415E, var(--velvet-edge) 52%, #43233A);
  box-shadow: 0 20px 30px -18px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 7px rgba(36,16,27,.18);
}
.gift-flake { position: absolute; right: 8%; bottom: 8%; width: 54%; height: 54%; }
.gift-ribbon { position: absolute; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.gift-ribbon-v {
  left: 25%; width: 9%; top: 0; bottom: 0; transform-origin: 50% 0;
  background: linear-gradient(90deg, #9C7630, #F6E3A8 35%, #D2AA58 65%, #8E6A2B);
  animation: wrap-y .55s var(--ease) .35s both;
}
.gift-ribbon-h {
  top: 25%; height: 9%; left: 0; right: 0; transform-origin: 0 50%;
  background: linear-gradient(180deg, #9C7630, #F6E3A8 35%, #D2AA58 65%, #8E6A2B);
  animation: wrap-x .55s var(--ease) .8s both;
}
.gift .bow {
  position: absolute; left: 29.5%; top: 29.5%; width: 58%;
  transform: translate(-50%, -50%) rotate(-8deg);
  animation: bow-tie .65s cubic-bezier(.3,1.5,.5,1) 1.25s both;
}
@keyframes bow-tie { from { transform: translate(-50%, -50%) rotate(-30deg) scale(0); } }

/* Finale: kurzer Schauer aus der eigenen Schneeflocke (app.js: flurry) */
.flurry { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.flurry span { position: absolute; top: -70px; animation: flurry-fall linear both; will-change: transform; }
.flurry i {
  display: block; width: 100%; height: 100%;
  background: center / contain no-repeat;
  filter: drop-shadow(0 1px 1.5px rgba(29,37,54,.3));
  animation: flurry-sway ease-in-out infinite alternate;
}
@keyframes flurry-fall { to { transform: translate3d(0, calc(100vh + 140px), 0); } }
@keyframes flurry-sway {
  from { transform: translateX(calc(var(--sway) * -1)) rotate(calc(var(--tilt) * -1)); }
  to { transform: translateX(var(--sway)) rotate(var(--tilt)); }
}

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mini-count { display: none; }
  .box { padding: 14px 14px 18px; }
  .box-lid { margin-bottom: 14px; padding-bottom: 16px; }
  .box.wrapped .box-lid::after { left: -18px; right: -18px; }
  .box.wrapped .lid-bow { width: 44px; }
  .done { grid-template-columns: 1fr; }
  .gift { width: 112px; }
  .lid-flake { width: 64px; height: 64px; }
  .seal-disc { width: 96px; height: 96px; padding: 11px; }
  .box-tray { gap: 10px; padding: 16px 10px 12px; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .sum-row, .sum-row.missing { grid-template-columns: 64px 1fr; }
  .sum-row img, .sum-row.missing .sum-img { width: 64px; height: 64px; }
  .sum-row > :last-child { grid-column: 1 / -1; justify-self: start; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slot.just-filled::before { content: none; }
}
