/* ---------- Tokens (Markenfarben aus dem Logo) ---------- */
:root {
  --navy-900: #031530;
  --navy-800: #041C45;
  --navy-700: #062A63;
  --navy-600: #0B3F87;
  --blue: #1E5AB1;
  --mint: #7AF0D7;
  --cyan: #16C5E7;
  --coral: #FF7C6C;
  --coral-soft: #FFD9CB;
  --ice: #DCECF1;
  --brand-grad: linear-gradient(135deg, var(--mint), var(--cyan));
  --coral-grad: linear-gradient(160deg, #FF9F8A, #FF6B6B);

  --bg: #EEF4F8;
  --surface: #FFFFFF;
  --surface-2: #DCE8F1;
  --ink: #062A63;
  --ink-2: #5A7193;
  --line: rgba(6, 42, 99, .12);
  --yes: #12B5D6;
  --no: #FF6F61;
  --danger: #E5534B;
  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 1px 2px rgba(4,28,69,.06), 0 8px 24px -10px rgba(4,28,69,.22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #031530;
    --surface: #0A2550;
    --surface-2: #123468;
    --ink: #EAF4FF;
    --ink-2: #93AACB;
    --line: rgba(234, 244, 255, .12);
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -10px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--body);
  overscroll-behavior: none; -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.app { max-width: 520px; margin: 0 auto; height: 100%; }
.view { display: none; }
.view.active { display: flex; flex-direction: column; }
#view-today {
  height: 100svh;
  padding: calc(var(--safe-t) + 22px) 16px calc(var(--safe-b) + 100px);
  overflow: hidden;
}
.page { min-height: 100svh; padding: calc(var(--safe-t) + 22px) 16px calc(var(--safe-b) + 120px); }

/* ---------- Header ---------- */
.bar { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 12px; }
.bar .page-title { margin-right: auto; }
.logo { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.04em; margin-right: auto; }
.page-title { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; margin: 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface); box-shadow: var(--shadow);
}
.icon-btn:active { transform: scale(.94); }

.seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.seg-btn { flex: 1; border-radius: 999px; padding: 9px 14px; font-weight: 650; font-size: 15px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.seg-btn.active { background: var(--ink); color: var(--bg); }
.seg-mode { margin-bottom: 6px; }
.seg-mode .seg-btn { padding: 9px 8px; font-size: 15px; }
.seg-btn .count { opacity: .6; font-weight: 500; }
.page > .seg { margin-bottom: 12px; }

/* ---------- Deck ---------- */
.deck { position: relative; flex: 1; min-height: 300px; margin: 6px 4px 0; }
.card {
  position: absolute; inset: 0 0 24px 0;
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, var(--g1), var(--g2));
  color: #fff; box-shadow: 0 24px 50px -22px rgba(4,28,69,.55);
  user-select: none; -webkit-user-select: none; touch-action: none;
  transform-origin: 50% 90%;
  will-change: transform;
}
.card.pos-1 { transform: translateY(12px) scale(.95); filter: brightness(.92); }
.card.pos-2 { transform: translateY(24px) scale(.9); filter: brightness(.84); }
.card.pos-1 .info, .card.pos-2 .info, .card.pos-1 .stamp, .card.pos-2 .stamp { visibility: hidden; }
.card.enter { animation: cardIn .35s ease both; }
@keyframes cardIn { from { opacity: 0; } }
.card.top { cursor: grab; }
.card .emoji {
  position: absolute; left: 0; right: 0; top: 14%; text-align: center;
  font-size: clamp(110px, 36vw, 170px); line-height: 1;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,.28));
}
.card .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card .ph.loaded { opacity: 1; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.6) 100%); pointer-events: none; }
.card:not(.has-photo) .shade { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.18) 100%); }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 24px 26px; }
.kicker {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 5px 11px; border-radius: 999px;
}
.card h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(32px, 10vw, 44px); margin: 10px 0 6px; text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.card p { margin: 0; font-size: 15px; font-weight: 550; opacity: .92; }
.stamp {
  position: absolute; top: 28px; padding: 4px 12px; border: 4px solid; border-radius: 12px;
  font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .04em;
  opacity: 0; pointer-events: none; background: rgba(255,255,255,.12);
}
.stamp.yes { left: 22px; color: var(--navy-800); border-color: #fff; transform: rotate(-14deg); background: var(--brand-grad); }
.stamp.no { right: 22px; color: #fff; border-color: #fff; transform: rotate(14deg); background: var(--coral-grad); }
.card.chosen .stamp.yes { opacity: 1; }

/* Leere Zustände im Deck */
.empty-card {
  position: absolute; inset: 0 0 24px 0; border-radius: 32px; background: var(--surface);
  border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; padding: 28px;
}
.empty-card .big { font-size: 72px; line-height: 1; }
.empty-card h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.03em; margin: 14px 0 6px; }
.empty-card p { margin: 0; color: var(--ink-2); }

/* ---------- Controls ---------- */
.controls { display: flex; align-items: center; justify-content: center; gap: 22px; padding-top: 14px; min-height: 104px; flex-wrap: wrap; }
.round {
  width: 64px; height: 64px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center; position: relative; transition: transform .12s;
}
.round:active { transform: scale(.92); }
.round svg { width: 28px; height: 28px; stroke-width: 2.6; }
.round.no { color: var(--no); }
.round.yes { width: 80px; height: 80px; background: var(--brand-grad); color: var(--navy-800); box-shadow: 0 14px 30px -12px rgba(22,197,231,.8); }
.round.yes svg { width: 34px; height: 34px; fill: currentColor; stroke: none; }
.round .badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.hint { width: 100%; text-align: center; font-size: 13px; color: var(--ink-2); margin-top: -6px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; border-radius: 18px; font-weight: 750; font-size: 17px; padding: 0 20px; text-decoration: none;
  transition: transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand-grad); color: var(--navy-800); }
.btn-soft { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn-danger { background: transparent; color: var(--danger); border: 1.5px solid currentColor; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.controls .btn { flex: 1; min-width: 140px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row .btn { min-height: 50px; font-size: 16px; white-space: nowrap; padding: 0 12px; }

/* ---------- Sammlung (Raster) ---------- */
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 0 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.search svg { color: var(--ink-2); width: 20px; height: 20px; }
.search input { border: 0; background: transparent; outline: none; flex: 1; padding: 13px 0; font-size: 16px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; text-align: left;
  background: linear-gradient(160deg, var(--g1), var(--g2)); color: #fff; box-shadow: var(--shadow);
}
.tile:active { transform: scale(.98); }
.tile .emoji { position: absolute; left: 0; right: 0; top: 16%; text-align: center; font-size: 64px; line-height: 1; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
.tile .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.tile .ph.loaded { opacity: 1; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); }
.tile .t-info { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.tile .t-name { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -.02em; }
.tile .t-sub { display: block; font-size: 12px; font-weight: 600; opacity: .85; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; }
.mini { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); }
.grid .empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--ink-2); }
.grid .empty .big { font-size: 56px; }
.fab {
  position: fixed; right: max(16px, calc(50% - 244px)); bottom: calc(var(--safe-b) + 106px); z-index: 9;
  display: flex; align-items: center; gap: 6px; padding: 0 22px 0 18px; height: 58px; border-radius: 999px;
  background: var(--brand-grad); color: var(--navy-800); font-weight: 750; font-size: 16px; box-shadow: 0 12px 30px -10px rgba(22,197,231,.7);
}

/* ---------- Mehr ---------- */
.card-box { background: var(--surface); border-radius: 22px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card-box h2 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; }
.card-box p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.card-box p.err { color: var(--danger); }
.card-box .btn { min-height: 48px; font-size: 16px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hist li:last-child { border-bottom: 0; }
.hist .e { font-size: 24px; width: 32px; text-align: center; }
.hist .n { flex: 1; font-weight: 600; }
.hist .d { color: var(--ink-2); font-size: 14px; }
.howto { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.ok { background: var(--yes); }
.dot.bad { background: var(--danger); }

/* ---------- Sheet ---------- */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(3, 21, 48, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 18px calc(var(--safe-b) + 20px);
  animation: up .28s cubic-bezier(.2,.9,.3,1);
}
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-family: var(--display); font-size: 28px; letter-spacing: -.03em; margin: 0 0 16px; }
.field { margin-bottom: 16px; }
.field > label, .field > .lbl { display: block; font-size: 14px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.input { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 13px 14px; font-size: 16px; outline: none; }
.input:focus { border-color: var(--ink); }
textarea.input { min-height: 80px; resize: vertical; }
.name-row { display: flex; gap: 10px; }
.emoji-btn { flex: none; width: 54px; height: 54px; border-radius: 14px; font-size: 30px; background: var(--surface); border: 1.5px solid var(--line); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 10px; }
.emoji-grid button { height: 44px; font-size: 26px; border-radius: 12px; background: var(--surface); }
.emoji-grid button.on { outline: 2px solid var(--ink); }
.photo-pick {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 2px dashed var(--line); color: var(--ink-2); font-weight: 650; text-align: center; cursor: pointer;
}
.field > label.photo-pick { display: grid; margin: 0; font-size: 15px; color: var(--ink-2); }
.photo-pick .cam { font-size: 40px; display: block; }
.photo-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-pick.has { border: 0; }
.photo-actions { display: flex; gap: 8px; margin-top: 8px; }
.photo-actions .btn { flex: 1; min-height: 44px; font-size: 15px; }
.ai-btn { width: 100%; min-height: 46px; font-size: 15px; margin-top: 8px; }
.ai-hint { margin: 6px 2px 0; font-size: 13px; color: var(--ink-2); }
.tag-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 8px; }
.tag-box input { flex: 1; min-width: 120px; border: 0; outline: none; background: transparent; padding: 6px; font-size: 16px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); padding: 5px 6px 5px 11px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.tag button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); font-size: 16px; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-size: 15px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.ghost { background: transparent; color: var(--ink-2); }
.suggest { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.suggest .chip { font-size: 14px; padding: 6px 12px; }
.toggle { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 14px; padding: 12px 14px; border: 1.5px solid var(--line); }
.toggle input { width: 22px; height: 22px; accent-color: var(--ink); }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sheet .note { color: var(--ink-2); font-size: 14px; margin: -6px 0 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 104px); transform: translate(-50%, 20px);
  background: var(--navy-700); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); font-weight: 600; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 360px) { .seg-mode .seg-btn { font-size: 14px; } }

/* Nö-Limit */
.round[disabled] { opacity: .35; pointer-events: none; }
.round.no .badge { background: var(--no); }
.hint.last { color: var(--ink); font-weight: 700; }
.card.final { box-shadow: 0 0 0 4px var(--cyan), 0 24px 50px -22px rgba(0,0,0,.45); }

/* ---------- Detailansicht ---------- */
.card.tappable { cursor: pointer; }
.d-hero { position: relative; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(160deg, var(--g1), var(--g2)); }
.d-hero .emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; filter: drop-shadow(0 16px 20px rgba(0,0,0,.25)); }
.d-hero .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.d-hero .ph.loaded { opacity: 1; }
.kicker.dark { background: var(--surface-2); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet h2.d-title { margin: 8px 0 12px; font-size: 32px; line-height: 1; }
.d-tags { margin-bottom: 6px; }
.d-tags .chip { font-size: 13px; padding: 5px 11px; }
.d-sec { background: var(--surface); border-radius: 20px; padding: 16px; margin: 12px 0; box-shadow: var(--shadow); }
.d-sec h3 { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; margin: 0 0 10px; }
.d-sec h3 small { font-family: var(--body); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.d-sec p { margin: 0; color: var(--ink-2); }
.ingr { list-style: none; margin: 0 0 14px; padding: 0; }
.ingr li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ingr li:last-child { border-bottom: 0; }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 40px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.empty-recipe { text-align: center; }
.empty-recipe p { margin-bottom: 12px; }
.info-list > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 0; }
.info-list span { width: 84px; flex: none; color: var(--ink-2); font-size: 14px; }
.info-list b { font-weight: 600; }
.pre { white-space: pre-line; }
.map { border-radius: 20px; overflow: hidden; margin: 12px 0; aspect-ratio: 16 / 10; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.closed-banner { background: var(--no); color: #fff; font-weight: 800; text-align: center; border-radius: 14px; padding: 10px; margin: 6px 0 4px; }
.note.center { text-align: center; margin: 0 0 4px; }
.sub-lbl { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 12px 0 6px; }
.recipe-box textarea#f-ingr, .recipe-box textarea#f-steps { min-height: 110px; }
.sheet .stack .btn, .sheet > .btn { width: 100%; }

/* ---------- Einkaufsliste ---------- */
.icon-btn { position: relative; }
.icon-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--no); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.icon-badge[hidden] { display: none; }
.shop-add { display: flex; gap: 8px; margin-bottom: 14px; }
.shop-add .btn { min-height: 50px; width: 56px; padding: 0; font-size: 26px; flex: none; }
.shop-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.shop-list li + li { border-top: 1px solid var(--line); }
.shop-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; }
.shop-row .box { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.shop-row .txt { display: flex; flex-direction: column; font-weight: 600; }
.shop-row small { font-weight: 500; font-size: 12px; color: var(--ink-2); }
.shop-list li.done .box { background: var(--yes); border-color: var(--yes); color: #fff; }
.shop-list li.done .txt { color: var(--ink-2); text-decoration: line-through; }
.shop-h { font-family: var(--display); font-size: 18px; margin: 22px 4px 8px; color: var(--ink-2); }
#view-shop .empty { text-align: center; padding: 40px 16px; color: var(--ink-2); }
#view-shop .empty .big { font-size: 56px; }
.check-list { list-style: none; margin: 0 0 12px; padding: 0; background: var(--surface); border-radius: 20px; overflow: hidden; }
.check-list li + li { border-top: 1px solid var(--line); }
.check-list label { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.check-list input { width: 22px; height: 22px; accent-color: var(--yes); flex: none; }

.photo-pick img.ph { opacity: 1; }

/* ---------- Einkaufsliste im Bring-Stil ---------- */
.shop-search { position: sticky; top: calc(var(--safe-t) + 6px); z-index: 5; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 18px; padding: 0 8px 0 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.shop-search svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.shop-search input { flex: 1; border: 0; outline: none; background: transparent; padding: 15px 0; font-size: 17px; font-weight: 600; }
.shop-search .clear { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-size: 20px; line-height: 1; color: var(--ink-2); }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.stile { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 8px 6px; text-align: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .12s, opacity .2s; }
.stile:active { transform: scale(.94); }
.stile .st-emoji { font-size: 36px; line-height: 1; }
.stile .st-name { font-size: 13px; font-weight: 750; line-height: 1.25; padding-top: 2px; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.stile .st-spec { font-size: 11px; font-weight: 600; opacity: .85; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stile.open { background: var(--coral-grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(255,107,107,.8); }
.stile.open.dim { opacity: .45; }
.stile.recent, .stile.cat { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.stile.recent .st-emoji, .stile.cat .st-emoji { filter: saturate(.85); }
.stile.new { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--coral); }
.stile.bought { transform: scale(.6); opacity: 0; transition: transform .22s ease-in, opacity .22s; }
#view-shop .shop-h { font-family: var(--display); font-size: 17px; margin: 18px 4px 8px; color: var(--ink); }
#view-shop .shop-h.muted { color: var(--ink-2); }
.browse { margin-top: 22px; }
.browse summary { list-style: none; cursor: pointer; text-align: center; font-weight: 700; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.browse summary::-webkit-details-marker { display: none; }
#view-shop .note.center { margin-top: 16px; }
.se-emoji { font-size: 30px; vertical-align: -3px; }
.check-list .ci-emoji { font-size: 22px; width: 28px; text-align: center; flex: none; }
.check-list .ci-txt { display: flex; flex-direction: column; font-weight: 600; }
.check-list .ci-txt small { font-weight: 500; font-size: 12px; color: var(--ink-2); }
.toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
#toast-action { color: var(--mint); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Startseite / Anmeldung ---------- */
body.locked .app, body.locked .backdrop, body.locked .tabbar { display: none !important; }
body:not(.locked) .gate { display: none; }
.gate {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--safe-t) + 24px) 24px calc(var(--safe-b) + 24px); text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, #0B3F87 0%, #041C45 55%, #020E26 100%); color: #fff;
}
.gate-fan { position: relative; width: 220px; height: 230px; margin-bottom: 30px; }
.gf { position: absolute; left: 50%; top: 0; width: 140px; height: 190px; margin-left: -70px; border-radius: 28px;
  display: grid; place-items: center; box-shadow: 0 24px 40px -18px rgba(0,0,0,.7); }
.gf svg { width: 64px; height: 64px; fill: none; stroke-width: 2.4; }
.gf1 { background: linear-gradient(160deg, var(--coral-soft), var(--coral)); transform: translateX(-66px) rotate(-16deg); }
.gf1 { place-items: start start; padding: 26px 0 0 20px; }
.gf1 svg { stroke: #fff; width: 52px; height: 52px; }
.gf2 { background: linear-gradient(160deg, #fff, var(--ice)); transform: translateX(66px) rotate(14deg); }
.gf2 { place-items: start end; padding: 26px 20px 0 0; }
.gf2 svg { stroke: var(--navy-700); width: 52px; height: 52px; }
.gf3 { background: var(--brand-grad); transform: translateY(16px); }
.gf3 svg { width: 76px; height: 76px; stroke: var(--navy-800); stroke-width: 3.2; }
@media (prefers-reduced-motion: no-preference) {
  .gf3 { animation: gfIn .9s cubic-bezier(.2,1.4,.4,1) both .1s; }
  .gf1, .gf2 { animation: fade .6s ease both; }
}
@keyframes gfIn { from { transform: translateY(70px) rotate(8deg); opacity: 0; } }
.gate-logo { font-family: var(--display); font-weight: 800; font-size: 64px; letter-spacing: -.05em; margin: 0; line-height: 1; }
.gate-slogan { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 12px 0 4px; color: var(--mint); }
.gate-sub { margin: 0 0 26px; color: rgba(255,255,255,.7); max-width: 30ch; }
.gate-form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.gate-form .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.gate-form .input::placeholder { color: rgba(255,255,255,.5); }
.gate-form .input:focus { border-color: #fff; }
.gate-form .btn-primary { min-height: 54px; margin-top: 4px; }
.gate-err { margin: 0; color: var(--coral-soft); font-weight: 600; font-size: 14px; }
.gate-err[hidden] { display: none; }
.gate-foot { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.45); }

.logo img { width: 30px; height: 30px; margin-left: -2px; }
.gate-logo { display: flex; align-items: center; justify-content: center; gap: 4px; }
.gate-logo img { width: 56px; height: 56px; }

/* ---------- Leiste unten ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 12px); z-index: 20;
  width: min(496px, calc(100% - 24px)); height: 70px; border-radius: 26px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 4px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 30px -12px rgba(4,28,69,.45); border: 1px solid var(--line);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0;
  font-size: 11px; font-weight: 700; color: var(--ink-2); border-radius: 18px; }
.tab .ti { font-size: 22px; line-height: 1; filter: grayscale(1) opacity(.65); transition: filter .2s, transform .2s; }
.tab.active { color: var(--ink); background: var(--surface-2); }
.tab.active .ti { filter: none; transform: translateY(-1px); }
.tab-badge { position: absolute; top: 0; right: calc(50% - 22px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.tab-badge[hidden] { display: none; }

/* ---------- Startseite Heute ---------- */
.avatars { display: flex; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; border: 3px solid var(--bg); }
.av + .av { margin-left: -12px; }
.av.c0, .mini-av.c0 { background: var(--navy-700); }
.av.c1, .mini-av.c1 { background: var(--coral); }
.av.both, .mini-av.both { background: var(--brand-grad); color: var(--navy-800); }
@media (prefers-color-scheme: dark) { .av.c0, .mini-av.c0 { background: var(--blue); } }
.home-date { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.home-hi { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: 32px; line-height: 1.05; margin: 2px 0 0; }
.now { position: relative; overflow: hidden; display: block; width: 100%; text-align: left; margin-top: 16px; border-radius: 26px; background: var(--navy-700); color: #fff; padding: 18px; }
.now::after { content: ""; position: absolute; right: -36px; top: -36px; width: 150px; height: 150px; border-radius: 50%; background: rgba(122,240,215,.16); }
.now .k { font-size: 12px; font-weight: 800; color: var(--mint); letter-spacing: .03em; text-transform: uppercase; }
.now .t { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 12px; position: relative; z-index: 1; }
.now .b { position: relative; z-index: 1; display: inline-flex; gap: 6px; background: var(--brand-grad); color: var(--navy-800); font-weight: 800; padding: 10px 16px; border-radius: 14px; font-size: 15px; }
.home-h { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; margin: 22px 2px 10px; }
.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mod { position: relative; border-radius: 22px; padding: 14px; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between;
  text-align: left; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transition: transform .1s; }
.mod:active { transform: scale(.97); }
.mod .e { font-size: 30px; line-height: 1; }
.mod .n { display: block; font-weight: 800; font-size: 16px; }
.mod .s { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.3; }
.mod.mint { background: var(--brand-grad); color: var(--navy-800); } .mod.mint .s { color: rgba(4,28,69,.72); }
.mod.coral { background: var(--coral-grad); color: #fff; } .mod.coral .s { color: rgba(255,255,255,.88); }
.mod.navy { background: var(--navy-700); color: #fff; } .mod.navy .s { color: #A9BEDC; }
.mod.soon { opacity: .6; }
.mod .soon-tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }

/* ---------- Alle ---------- */
.all-list { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.all-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; font-weight: 650; }
.all-row + .all-row { border-top: 1px solid var(--line); }
.all-row .e { font-size: 24px; width: 30px; text-align: center; }
.all-row .s { margin-left: auto; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.all-row.soon { opacity: .55; }

/* ---------- Aufgaben ---------- */
#view-tasks > .seg { margin-bottom: 12px; }
.tcard { position: relative; border-radius: 28px; padding: 22px; min-height: 220px; display: flex; flex-direction: column;
  background: var(--brand-grad); color: var(--navy-800); box-shadow: 0 20px 40px -20px rgba(22,197,231,.8); transition: transform .28s, opacity .28s; }
.tcard .tk { align-self: flex-start; background: rgba(4,28,69,.12); color: var(--navy-800); backdrop-filter: none; }
.tcard .tc-who { position: absolute; top: 16px; right: 16px; }
.tcard .tc-who .av { border-color: rgba(255,255,255,.6); }
.tcard h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: 31px; line-height: 1.05; margin: auto 0 6px; padding-top: 24px; text-wrap: balance; }
.tcard p { margin: 0; font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; }
.tcard.running { background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); color: #fff; box-shadow: 0 20px 40px -20px rgba(4,28,69,.9); }
.tcard.running .tk { background: rgba(255,255,255,.14); color: #fff; }
.tcard.running p { opacity: 1; font-size: 20px; color: var(--mint); }
.tcard.fly-done { transform: translateX(110%) rotate(12deg); opacity: 0; }
.tcard.empty { align-items: center; justify-content: center; text-align: center; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tcard.empty .big { font-size: 56px; }
.tcard.empty h2 { margin: 10px 0 4px; padding: 0; font-size: 24px; }
.tcard.empty p { color: var(--ink-2); }
.tctrl { min-height: 0; padding-top: 16px; }
.tctrl .round { font-size: 26px; color: var(--ink); font-weight: 800; }
.tctrl .round:first-child { color: var(--coral); }
.tctrl .round.on { background: var(--navy-700); color: #fff; }
.tlist { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.trow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.trow + .trow { border-top: 1px solid var(--line); }
.tchk { width: 28px; height: 28px; flex: none; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; color: var(--navy-800); }
.trow.done .tchk { background: var(--brand-grad); border-color: transparent; }
.ttxt { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; padding: 4px 0; }
.ttxt span { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttxt small { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.trow.done .ttxt span { text-decoration: line-through; color: var(--ink-2); }
.trow.late .ttxt small { color: var(--coral); }
.mini-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: -.02em; }
.date-in { width: auto; padding: 7px 12px; font-size: 15px; border-radius: 999px; min-height: 0; }
.date-in.on { border-color: var(--ink); }
.who-row { display: flex; flex-wrap: wrap; gap: 10px; }
.who-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.who-chip .av { width: 34px; height: 34px; font-size: 13px; border-width: 0; }
.who-chip small { color: var(--ink-2); font-weight: 600; }

.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.toast.has-action { text-align: left; }

/* ---------- iPhone-Statusleiste (Uhrzeit, Akku) ----------
   Die App liegt randlos unter der Statusleiste; dieser dunkle Glasstreifen hält Uhrzeit und Akku lesbar. */
.status-shade { position: fixed; top: 0; left: 0; right: 0; height: var(--safe-t); z-index: 45; pointer-events: none;
  background: rgba(4, 28, 69, .9); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
body.locked .status-shade { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- Pick-Duell ---------- */
.duel-pill { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: var(--coral-grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(255,107,107,.9); transition: transform .12s; }
.duel-pill:active { transform: scale(.94); }
.duel-pill[hidden] { display: none; }
.duel {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 14px;
  padding: calc(var(--safe-t) + 18px) max(16px, calc((100% - 520px) / 2 + 16px)) calc(var(--safe-b) + 22px);
  animation: duelIn .3s cubic-bezier(.2,.9,.3,1);
}
.duel[hidden] { display: none; }
@keyframes duelIn { from { opacity: 0; transform: translateY(24px); } }
.duel-top { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.duel-title { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; margin: 0; }
.duel-sub, .duel-rule { margin: 0; color: var(--ink-2); }
.duel-rule { font-size: 14px; text-align: center; }
.duel-cta { margin-top: auto; }

.duel-list, .duel-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.duel-row, .duel-res { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.duel-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; font-size: 30px; background: linear-gradient(160deg, var(--g1), var(--g2)); }
.duel-thumb .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.duel-thumb .ph.loaded { opacity: 1; }
.duel-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.duel-name b { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-name small { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.duel .icon-btn[disabled] { opacity: .35; }

/* Bewerten */
.duel-dots { flex: 1; display: flex; justify-content: center; gap: 6px; }
.duel-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .25s, background .25s; }
.duel-dots i.done { background: var(--cyan); }
.duel-dots i.on { width: 26px; background: var(--ink); }
.duel-who { display: flex; align-items: center; gap: 6px; font-weight: 750; font-size: 15px; }
.duel-card {
  position: relative; flex: 1; min-height: 240px; max-height: 54svh; border-radius: 32px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--g1), var(--g2)); box-shadow: 0 24px 50px -22px rgba(4,28,69,.55);
  animation: cardIn .35s ease both;
}
.duel-card .emoji { position: absolute; left: 0; right: 0; top: 12%; text-align: center; font-size: clamp(90px, 28vw, 140px); line-height: 1; filter: drop-shadow(0 22px 28px rgba(0,0,0,.28)); }
.duel-card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.duel-card .ph.loaded { opacity: 1; }
.duel-card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.6) 100%); }
.duel-card:not(.has-photo) .shade { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.18) 100%); }
.duel-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px 22px; }
.duel-card h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; font-size: clamp(28px, 9vw, 40px); margin: 8px 0 0; text-wrap: balance; }

.duel-rate { padding: 4px 4px 0; }
.duel-read { display: flex; align-items: center; justify-content: center; gap: 14px; }
.duel-face { font-size: 54px; line-height: 1; display: inline-block; }
.duel-face.pop { animation: facePop .25s cubic-bezier(.3,1.6,.5,1); }
@keyframes facePop { from { transform: scale(.7) rotate(-8deg); } }
.duel-pct { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; min-width: 3.6em; }
.duel-pct b { font-size: 48px; }
#duel-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 10px 0 2px; background: transparent; touch-action: pan-y; }
#duel-range::-webkit-slider-runnable-track { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--coral), var(--cyan)) 0 / var(--v) 100% no-repeat, var(--surface-2); }
#duel-range::-moz-range-track { height: 14px; border-radius: 7px; background: var(--surface-2); }
#duel-range::-moz-range-progress { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--coral), var(--cyan)); }
#duel-range::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; margin-top: -12px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); box-shadow: 0 6px 16px -4px rgba(4,28,69,.5); }
#duel-range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); }
.duel-scale { display: flex; justify-content: space-between; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.duel-actions { display: flex; gap: 10px; }
.duel-actions .btn { flex: 1; }
.duel-actions .btn-soft { flex: 0 0 auto; }

/* Handy weitergeben */
.duel-hand { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.duel-hand .big { font-size: 88px; line-height: 1; animation: facePop .6s cubic-bezier(.3,1.6,.5,1); }
.duel-hand h2 { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.03em; margin: 8px 0 0; text-wrap: balance; }
.duel-hand p { margin: 0 0 18px; color: var(--ink-2); max-width: 30ch; }
.duel-hand .btn { align-self: stretch; }

/* Aufdecken */
.duel-res { opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .4s, transform .5s cubic-bezier(.2,1.4,.4,1), box-shadow .2s; }
.duel-res.shown { opacity: 1; transform: none; }
.duel-res.lot { box-shadow: 0 0 0 3px var(--coral), var(--shadow); }
.duel-res.win.shown { box-shadow: 0 0 0 3px var(--cyan), 0 18px 40px -16px rgba(22,197,231,.7); }
.duel-rank { flex: none; width: 22px; text-align: center; font-family: var(--display); font-weight: 800; color: var(--ink-2); }
.duel-res.win .duel-rank { color: var(--cyan); }
.duel-bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.duel-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--cyan)); transition: width .8s cubic-bezier(.2,.9,.3,1) .15s; }
.duel-res.shown .duel-bar i { width: var(--w); }
.duel-score { flex: none; text-align: right; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; line-height: 1; }
.duel-score small { display: block; font-family: var(--body); font-size: 11px; font-weight: 650; color: var(--ink-2); letter-spacing: 0; }
.duel-tie { margin: 0; text-align: center; font-weight: 750; color: var(--coral); }
.duel-tie[hidden], .duel-final[hidden] { display: none; }
.duel-final { margin-top: auto; display: flex; flex-direction: column; gap: 10px; text-align: center; animation: duelIn .5s cubic-bezier(.2,1.2,.4,1); }
.duel-final h2 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 8px; }
.duel-final h2 span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.25em; }
.confetti { position: fixed; top: -14px; z-index: 56; width: 8px; height: 14px; border-radius: 2px; pointer-events: none; animation: confetti var(--d) cubic-bezier(.25,.6,.5,1) forwards; }
@keyframes confetti { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }
