/* gönn dir nix: eigene Farbwelt (Tinte, Limette, Beere) */
:root {
  --ink: #17131f;
  --ink-2: #2b2536;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --soft: #f0ede6;
  --line: #e7e3da;
  --muted: #736d7d;
  --lime: #c8f03c;
  --lime-deep: #8fb512;
  --lime-soft: #f1fbd2;
  --berry: #e5336d;
  --berry-soft: #fde8ef;
  --gold: #f2b01e;
  --text: #17131f;
  --hi: var(--ink);
  --on-hi: var(--lime);
  --panel: var(--ink);
  --glass: rgba(255, 255, 255, .92);
  --bar-bg: rgba(255, 255, 255, .94);
  --fade: rgba(245, 243, 238, 0);
  --track: #ddd8cd;
  --grip: #d6d1c7;
  --ring: #cfc9bd;
  --dot-ring: #bdb7ab;
  --sk: #e9e5dc;
  --veg-bg: #e7f6dc;
  --veg-fg: #3e7d1f;
  --ok: #4c7a06;
  color-scheme: light;
  --r: 18px;
  --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(23, 19, 31, .05), 0 6px 18px rgba(23, 19, 31, .06);
  --sh-2: 0 2px 6px rgba(23, 19, 31, .08), 0 18px 40px rgba(23, 19, 31, .14);
  --col: 480px;
  --display: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --spring: cubic-bezier(.2, .9, .25, 1.15);
  --out: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.i { width: 22px; height: 22px; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 13px; height: 13px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: 13px; }
.fine { font-size: 12px; line-height: 1.45; margin-top: 18px; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; gap: 12px; }
.gap8 { gap: 8px; }
.pad { padding: 0 16px 28px; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 2px; border-radius: 8px; }
/* Tap-Fläche mindestens 44 px, ohne das Layout zu ändern */
.city-pill::after, .sec-nav button::after, .link::after, .qmark::after { content: ''; position: absolute; }
.city-pill::after { inset: -3px 0; }
.sec-nav button::after { inset: -5px 0; }
.link::after { inset: -12px -6px; }
.qmark::after { inset: -13px; }

/* ---------------------------------------------------------- App-Spalte */
#app {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}
body.has-tabbar #view { padding-bottom: calc(76px + var(--safe-b)); }
#view.enter { animation: viewIn .32s var(--out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.desk-side { display: none; }
@media (min-width: 900px) {
  body {
    background:
      radial-gradient(circle at 12% 18%, rgba(200, 240, 60, .16), transparent 38%),
      radial-gradient(circle at 88% 82%, rgba(229, 51, 109, .14), transparent 36%),
      var(--ink);
  }
  #app { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .45); }
  .desk-side { display: block; position: fixed; left: calc(50% - var(--col) / 2 - 330px); top: 50%; transform: translateY(-50%); width: 280px; color: #fff; }
  .desk-brand strong { display: block; font-family: var(--display); font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--lime); }
  .desk-brand span { display: block; margin-top: 10px; font-size: 17px; color: rgba(255, 255, 255, .7); }
}

.fixed-col { position: fixed; left: 50%; transform: translateX(-50%); width: min(100%, var(--col)); }

/* ---------------------------------------------------------- Boot */
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--ink); color: #fff; }
.boot-logo { animation: pulse 1.2s ease-in-out infinite; }
.boot-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
@keyframes pulse { 50% { transform: scale(.92); } }

/* ---------------------------------------------------------- Bilder mit Fallback */
.pic { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--pa), var(--pb)); display: grid; place-items: center; }
.pic::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 55%); pointer-events: none; }
.pic-emoji { font-size: 44px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); transform: rotate(-6deg); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; z-index: 1; }
.pic img.loaded { opacity: 1; }
.pic:has(img.loaded)::after { display: none; }

/* ---------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .15s var(--out), background .2s, box-shadow .2s, opacity .2s;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--hi); color: var(--on-hi); box-shadow: 0 8px 20px rgba(23, 19, 31, .22); }
.btn.primary.big, .btn.big { height: 58px; font-size: 17px; }
.btn.primary:has(span + span) { justify-content: space-between; padding: 0 24px; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.grow { flex: 1; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.loading { justify-content: center; gap: 12px; }
.btn-col { display: grid; gap: 10px; margin-top: 18px; }
.link { position: relative; color: var(--text); font-weight: 600; font-size: 14px; text-decoration: underline; text-decoration-color: var(--lime-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link.danger { color: var(--berry); text-decoration-color: var(--berry-soft); }
.center-link { display: block; margin: 14px auto 0; text-align: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .15s var(--out), background .2s; }
.icon-btn:active { transform: scale(.9); }
.icon-btn.glass { background: var(--glass); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.icon-btn.soft { background: var(--soft); }
.icon-btn.fav-on { color: var(--berry); }
.icon-btn.fav-on svg { fill: currentColor; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(200, 240, 60, .3); border-top-color: var(--lime); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- Start: Kopf */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); padding: 12px 16px 12px; box-shadow: 0 1px 0 var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addr { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; }
.addr-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; }
.addr-txt { display: grid; min-width: 0; }
.addr-txt small { font-size: 12px; color: var(--muted); font-weight: 500; }
.addr-txt strong { display: flex; align-items: center; gap: 4px; font-size: 17px; font-family: var(--display); }
.city-pill { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 14px; }
.search { margin-top: 12px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--soft); color: var(--muted); }
.search input { flex: 1; align-self: stretch; border: 0; background: none; outline: none; font-size: 15px; color: var(--text); min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--hi); }

.active-order { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--panel); color: #fff; box-shadow: var(--sh-2); }
.active-order span:nth-child(2) { flex: 1; display: grid; }
.active-order small { color: rgba(255, 255, 255, .65); font-size: 13px; }
.ao-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 240, 60, .6); animation: ping 1.6s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(200, 240, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 240, 60, 0); } }

.promo {
  margin-top: 14px; position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px;
  padding: 20px 18px; border-radius: 22px; background: var(--panel); color: #fff;
}
.promo::before { content: ''; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 240, 60, .35), transparent 65%); }
.promo-txt { position: relative; flex: 1; }
.kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.promo h2 { margin-top: 6px; font-size: 23px; line-height: 1.08; }
.promo p { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.promo-art { position: relative; transform: rotate(10deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }

.hunger {
  margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 20px;
  background: var(--lime); color: var(--ink); box-shadow: 0 8px 22px rgba(143, 181, 18, .28), inset 0 -3px 0 rgba(23, 19, 31, .12);
  transition: transform .15s var(--out);
}
.hunger:active { transform: scale(.98); }
.hunger-ic { width: 48px; height: 48px; border-radius: 15px; background: var(--ink); color: var(--lime); display: grid; place-items: center; flex: none; transition: transform .4s var(--spring); }
.hunger-ic .i { width: 26px; height: 26px; }
.hunger:hover .hunger-ic, .hunger:focus-visible .hunger-ic { transform: rotate(-14deg); }
.hunger-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hunger-txt strong { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.hunger-txt small { font-size: 13px; color: rgba(23, 19, 31, .72); }
.hunger-go { width: 36px; height: 36px; border-radius: 50%; background: rgba(23, 19, 31, .1); display: grid; place-items: center; flex: none; }

.roulette { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; background: rgba(23, 19, 31, 0); transition: background .25s; }
.roulette.show { background: rgba(23, 19, 31, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rl-card { width: min(100%, 360px); text-align: center; color: #fff; opacity: 0; transform: scale(.94); transition: all .35s var(--spring); }
.roulette.show .rl-card { opacity: 1; transform: none; }
.rl-window { margin-top: 14px; height: 76px; border-radius: 20px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); display: grid; place-items: center; overflow: hidden; padding: 0 14px; }
.rl-name { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rl-name span { font-size: 28px; }
.rl-name.spin { animation: rlSpin .12s var(--out); }
.rl-name.final { color: var(--lime); animation: pop .45s var(--spring); }
@keyframes rlSpin { from { transform: translateY(-60%); opacity: .2; } to { transform: none; opacity: 1; } }
.rl-result { min-height: 64px; margin-top: 14px; font-weight: 700; font-size: 17px; display: grid; gap: 4px; }
.rl-result small { font-weight: 500; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.rl-result:not(:empty) { animation: msgIn .4s var(--out); }
.rl-banner { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--lime-soft); font-size: 13.5px; }
.rl-banner > .i { color: var(--lime-deep); }
.rl-banner span { flex: 1; }
.rl-banner .btn { height: 44px; padding: 0 16px; font-size: 14px; flex: none; }

.promo-night { background: linear-gradient(160deg, #221a3a, #120f1a 70%); }
.promo-night::before { background: radial-gradient(circle, rgba(170, 150, 255, .28), transparent 65%); }
.promo-night .kicker { color: #c9bcff; }
.promo-art.moon { transform: none; filter: drop-shadow(0 0 22px rgba(255, 236, 170, .35)); }
.moon-body { fill: #ffeeb0; }
.moon-crater { fill: #eed98f; }
.star { fill: #fff; animation: twinkle 2.6s ease-in-out infinite; }
.star:nth-child(2n) { animation-delay: 1.1s; }
.star:nth-child(3n) { animation-delay: .5s; }
@keyframes twinkle { 50% { opacity: .25; } }

.global { margin-top: 12px; }
.global-in { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--lime-soft); box-shadow: inset 0 0 0 1px rgba(143, 181, 18, .25); }
.global-in div { display: grid; }
.global-in small { font-size: 12.5px; color: var(--muted); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime-deep); animation: ping 1.6s infinite; flex: none; }

.chips-row { display: flex; gap: 6px; overflow-x: auto; margin: 16px -16px 0; padding: 4px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips-row::-webkit-scrollbar { display: none; }
.cat { display: grid; justify-items: center; gap: 6px; min-width: 70px; font-size: 12.5px; font-weight: 600; scroll-snap-align: start; }
.cat-ic { width: 60px; height: 60px; border-radius: 20px; background: var(--surface); display: grid; place-items: center; font-size: 30px; box-shadow: var(--sh-1); transition: transform .2s var(--spring), background .2s, box-shadow .2s; }
.cat:active .cat-ic { transform: scale(.9); }
.cat.on .cat-ic { background: var(--lime); box-shadow: 0 0 0 2px var(--text); transform: translateY(-2px); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 12px; }
.sec-head h2 { font-size: 21px; }

.carousel { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.shop-list { display: grid; gap: 18px; }

.shop-card { display: block; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); transition: transform .18s var(--out), box-shadow .2s; }
.shop-card:active { transform: scale(.985); }
.shop-card.small { flex: 0 0 72%; scroll-snap-align: start; }
.shop-img { position: relative; }
.shop-img .pic { aspect-ratio: 16 / 8.4; }
.shop-card.small .shop-img .pic { aspect-ratio: 16 / 9; }
.shop-img .pic-emoji { font-size: 64px; }
.badge-nie { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.badge-nie .i { width: 13px; height: 13px; }
.badge-free { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 4px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.shop-body { padding: 12px 14px 14px; }
.shop-body h3 { font-size: 17.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.rating .i { width: 15px; height: 15px; color: var(--gold); }
.rating .muted { font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta .i { width: 15px; height: 15px; }
.meta.sub { margin-top: 4px; font-size: 13px; }

.empty { text-align: center; padding: 36px 20px; display: grid; justify-items: center; gap: 6px; }
.empty.tall { min-height: 60vh; align-content: center; }
.empty .btn { margin-top: 14px; }
.empty-emoji { font-size: 44px; margin-bottom: 6px; }

.foot { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: -8px 0; font-size: 14px; font-weight: 600; }
.foot-links a { display: inline-block; padding: 12px 0; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot-social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--muted); }
.foot-social strong { color: var(--text); }

/* ---------------------------------------------------------- Tabbar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--col)); z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; padding: 6px 12px calc(6px + var(--safe-b));
  background: var(--bar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line);
}
.tab { position: relative; display: grid; justify-items: center; gap: 3px; padding: 7px 0 5px; font-size: 12px; font-weight: 600; color: var(--muted); border-radius: 14px; transition: color .2s; }
.tab .i { width: 25px; height: 25px; transition: transform .25s var(--spring); }
.tab.on { color: var(--text); }
.tab.on .i { color: var(--ink); }
.tab.on .i { transform: translateY(-1px) scale(1.06); }
.tab.on::before { content: ''; position: absolute; top: 3px; width: 46px; height: 32px; border-radius: 12px; background: var(--lime); z-index: -1; }
.tab-badge { position: absolute; top: 2px; left: calc(50% + 10px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--berry); color: #fff; font-size: 10.5px; display: grid; place-items: center; }

/* ---------------------------------------------------------- Laden */
.shop-hero { position: relative; height: 236px; }
.shop-hero.sk { height: 236px; border-radius: 0; }
.shop-hero .pic { position: absolute; inset: 0; }
.shop-hero .pic-emoji { font-size: 96px; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 40%); z-index: 2; pointer-events: none; }
.hero-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; justify-content: space-between; padding: 14px 14px; }
.shop-head { position: relative; margin-top: -24px; z-index: 4; background: var(--surface); border-radius: 24px 24px 0 0; padding: 22px 16px 16px; display: grid; gap: 6px; }
.shop-logo { position: absolute; right: 16px; top: -30px; width: 62px; height: 62px; border-radius: 18px; background: var(--surface); display: grid; place-items: center; font-size: 32px; box-shadow: var(--sh-2); }
.shop-head h1 { font-size: 27px; padding-right: 70px; }
.shop-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.shop-facts .dot { opacity: .6; }
.seg { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--soft); }
.seg button { height: 44px; border-radius: 11px; text-align: center; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.info-pills { margin-top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.info-pills div { padding: 10px 10px; display: grid; gap: 1px; }
.info-pills div + div { border-left: 1px solid var(--line); }
.info-pills small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-pills strong { font-size: 14.5px; }
.nie-banner { margin-top: 8px; display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; background: var(--lime-soft); font-size: 13.5px; }
.nie-banner .i { color: var(--lime-deep); }

.sec-nav { position: sticky; top: 0; z-index: 15; display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: var(--surface); scrollbar-width: none; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.sec-nav::-webkit-scrollbar { display: none; }
.sec-nav.stuck { box-shadow: 0 6px 14px rgba(23, 19, 31, .07); }
.sec-nav button { position: relative; flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.sec-nav button.on { background: var(--hi); color: var(--on-hi); }

.menu { background: var(--surface); padding: 4px 16px calc(110px + var(--safe-b)); }
.menu-sec { padding-top: 18px; scroll-margin-top: 60px; }
.menu-sec h2 { font-size: 20px; margin-bottom: 4px; }
.menu-item { width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background .2s; border-radius: 4px; }
.menu-item:active { background: var(--soft); }
.mi-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mi-txt strong { font-size: 15.5px; font-weight: 600; }
.mi-txt p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.price { font-weight: 700; font-size: 15px; }
.price.big { font-size: 20px; }
.tag-pop, .tag-veg { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.tag-pop { background: var(--berry-soft); color: var(--berry); }
.tag-veg { background: var(--veg-bg); color: var(--veg-fg); }
.mi-img { position: relative; flex: none; width: 104px; height: 104px; }
.mi-img .pic { width: 100%; height: 100%; border-radius: 14px; }
.mi-img .pic-emoji { font-size: 50px; }
.mi-add { position: absolute; right: -4px; bottom: -4px; z-index: 2; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; background: var(--surface); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); font-weight: 800; font-size: 14px; }
.mi-add .i { width: 19px; height: 19px; }
.mi-add.has { background: var(--hi); color: var(--on-hi); }
.mi-add.pop { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); z-index: 25;
  width: calc(min(100%, var(--col)) - 32px); height: 58px; border-radius: 999px; padding: 0 20px 0 10px;
  display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 12px 30px rgba(23, 19, 31, .35); animation: barIn .4s var(--spring);
}
.cart-bar span:nth-child(2) { flex: 1; }
.cart-bar.other { background: var(--ink-2); font-size: 14px; }
.cart-bar.other span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cart-bar.bump { animation: bump .5s var(--spring); }
.cb-count { min-width: 38px; height: 38px; border-radius: 19px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 16px; }
@keyframes barIn { from { transform: translate(-50%, 90px); } to { transform: translate(-50%, 0); } }
@keyframes bump { 0% { transform: translate(-50%, 0) scale(1); } 35% { transform: translate(-50%, -4px) scale(1.04); } 100% { transform: translate(-50%, 0) scale(1); } }
.fly-dot { position: fixed; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--ink); z-index: 90; pointer-events: none; }

/* ---------------------------------------------------------- Skeleton */
.sk { position: relative; overflow: hidden; background: var(--sk); border-radius: 10px; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.1s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 13px; margin-top: 10px; }
.sk-pill { width: 90px; height: 34px; border-radius: 999px; }
.sk-thumb { width: 104px; height: 104px; border-radius: 14px; flex: none; }
.sk-circle { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.sk-item { border-bottom: 1px solid var(--line); }
.sk-menu { background: var(--surface); min-height: 60vh; }

/* ---------------------------------------------------------- Sheets */
#overlay-root { position: relative; z-index: 60; }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 20, .5); opacity: 0; transition: opacity .3s ease; }
.sheet {
  position: absolute; bottom: 0; left: 50%; width: min(100%, var(--col)); margin-left: calc(min(100%, var(--col)) / -2);
  max-height: 92dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 24px 24px 0 0;
  transform: translateY(105%); transition: transform .42s cubic-bezier(.2, .95, .3, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
  touch-action: pan-y;
}
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-wrap.closing .sheet { transition-duration: .28s; transition-timing-function: cubic-bezier(.4, 0, 1, 1); }
.sheet-grip { position: absolute; top: 0; left: 0; right: 0; height: 22px; display: grid; place-items: center; z-index: 5; cursor: grab; }
.sheet-grip span { width: 40px; height: 5px; border-radius: 3px; background: var(--grip); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 26px 16px calc(20px + var(--safe-b)); }
.sheet-title { font-size: 22px; margin-bottom: 14px; }

.opt-list, .pay-list { display: grid; gap: 8px; }
.opt-row, .pay, .addr-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background .2s, transform .15s; }
.opt-row:active, .pay:active { transform: scale(.985); }
.opt-row.on, .pay.on { box-shadow: inset 0 0 0 2px var(--hi); background: var(--lime-soft); }
.opt-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; flex: none; }
.opt-txt { flex: 1; display: grid; min-width: 0; }
.opt-txt small { color: var(--muted); font-size: 13px; }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ring); flex: none; transition: box-shadow .2s var(--spring); }
.on > .radio { box-shadow: inset 0 0 0 7px var(--hi); }

/* Artikel-Sheet */
.sheet-item .sheet-body { padding: 0 0 0; }
.item-hero { position: relative; }
.item-hero .pic { aspect-ratio: 16 / 10; }
.item-hero .pic-emoji { font-size: 96px; }
.item-close { position: absolute; right: 14px; top: 14px; z-index: 3; }
.item-body { padding: 18px 16px 12px; display: grid; gap: 8px; }
.item-body h2 { font-size: 24px; }
.item-meta { flex-wrap: wrap; }
.og { border: 0; margin: 14px 0 0; padding: 0; }
.og legend { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px; font-size: 16px; }
.og-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.og-tag.req { background: var(--hi); color: var(--on-hi); }
.oc { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.oc input { position: absolute; opacity: 0; pointer-events: none; }
.oc-box { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ring); flex: none; transition: box-shadow .2s var(--spring), background .2s; position: relative; }
.oc input[type=checkbox] + .oc-box { border-radius: 7px; }
.oc input:checked + .oc-box { box-shadow: inset 0 0 0 7px var(--hi); }
.oc input[type=checkbox]:checked + .oc-box { box-shadow: none; background: var(--hi); }
.oc input[type=checkbox]:checked + .oc-box::after { content: ''; position: absolute; left: 7.5px; top: 3.5px; width: 5px; height: 10px; border: solid var(--on-hi); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.oc input:focus-visible + .oc-box { outline: 3px solid var(--lime-deep); outline-offset: 2px; }
.oc-lbl { flex: 1; }
.oc-price { color: var(--muted); font-size: 14px; }
.note { display: grid; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 15px; }
.note input { height: 46px; border-radius: 12px; border: 0; background: var(--soft); padding: 0 14px; font-weight: 400; outline: none; }
.note input:focus { box-shadow: inset 0 0 0 2px var(--hi); }
.item-foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 12px 16px calc(12px + var(--safe-b)); background: var(--bar-bg); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line); }
.stepper { display: inline-flex; align-items: center; height: 50px; border-radius: 999px; background: var(--soft); }
.stepper button { width: 46px; height: 50px; display: grid; place-items: center; border-radius: 999px; transition: transform .15s; }
.stepper button:active { transform: scale(.85); }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 17px; }
.stepper.sm { height: 44px; }
.stepper.sm button { width: 44px; height: 44px; }
.stepper.sm .i { width: 17px; height: 17px; }
.stepper.sm span { font-size: 15px; min-width: 16px; }

/* Warenkorb */
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cl-img { width: 56px; height: 56px; flex: none; }
.cl-img .pic { width: 100%; height: 100%; border-radius: 12px; }
.cl-img .pic-emoji { font-size: 26px; }
.cl-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cl-txt strong { font-size: 15px; font-weight: 600; }
.cl-txt small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-txt .price { font-size: 14px; margin-top: 2px; }
.minbar { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--soft); }
.minbar.ok { display: flex; align-items: center; gap: 6px; background: var(--lime-soft); font-weight: 600; }
.bar { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--hi); border-radius: 3px; transition: width .4s var(--out); }
.upsell-h { font-size: 17px; margin: 20px 0 10px; }
.upsell { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.up-card { position: relative; display: grid; gap: 3px; font-size: 13px; }
.up-card strong { font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-card > span:not(.up-plus) { color: var(--muted); }
.up-img .pic { aspect-ratio: 1; border-radius: 12px; }
.up-img .pic-emoji { font-size: 30px; }
.up-plus { position: absolute; right: 6px; top: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.up-plus .i { width: 16px; height: 16px; }
.cart-sum { margin: 18px 0 12px; font-size: 16px; }
.sheet-cart .btn { width: 100%; }

/* ---------------------------------------------------------- Kasse */
.bar-head { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 10px 12px; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.bar-head h1 { font-size: 18px; text-align: center; }
.bar-head.plain { background: var(--bg); box-shadow: none; }
.checkout { padding-bottom: calc(110px + var(--safe-b)); }
.shop-line { margin: 14px 2px 4px; }
.card { background: var(--surface); border-radius: var(--r); padding: 16px; margin-top: 12px; box-shadow: var(--sh-1); }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card > p + * { margin-top: 10px; }
.addr-row { box-shadow: none; padding: 4px 0; }
.addr-row > .i { color: var(--muted); }
.deliv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.dopt { display: flex; gap: 8px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.dopt input { position: absolute; opacity: 0; pointer-events: none; }
.dopt span { display: grid; }
.dopt small { color: var(--muted); font-size: 12.5px; }
.dopt.on { box-shadow: inset 0 0 0 2px var(--hi); background: var(--lime-soft); }
.sum-lines { list-style: none; margin: 0; padding: 0; }
.sum-lines li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; }
.sum-lines .q { color: var(--muted); min-width: 24px; }
.sum-lines .n { flex: 1; display: grid; }
.sum-lines small { color: var(--muted); font-size: 12.5px; }
.tip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.tip { height: 44px; border-radius: 12px; text-align: center; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line); transition: all .2s var(--spring); }
.tip.on { background: var(--hi); color: var(--on-hi); box-shadow: none; transform: translateY(-1px); }
.cp-form { display: flex; gap: 8px; }
.cp-form input { flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 0; background: var(--soft); padding: 0 14px; font-family: 'Space Mono', ui-monospace, monospace; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; outline: none; }
.cp-form input::placeholder { font-family: var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cp-form input:focus { box-shadow: inset 0 0 0 2px var(--hi); }
.cp-form .btn { height: 48px; padding: 0 18px; font-size: 15px; flex: none; }
.cp-msg { font-size: 13.5px; margin-top: 0; }
.cp-msg:not(:empty) { margin-top: 10px; }
.cp-msg.ok { color: var(--ok); font-weight: 600; }
.cp-msg.bad { color: var(--berry); font-weight: 600; }
.cp-msg.shake { animation: shake .45s; }
.cp-applied { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px var(--lime-deep); }
.cp-applied > .i { color: var(--lime-deep); }
.cp-applied span { flex: 1; display: grid; }
.cp-applied strong { font-family: 'Space Mono', ui-monospace, monospace; letter-spacing: .05em; }
.cp-applied small { font-size: 13px; color: var(--muted); }
.totals .row.cp-line, .totals .row.cp-line > span:first-child { color: var(--ok); font-weight: 600; }
.pay { padding: 12px; }
.pay-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 24px; flex: none; }
.pay.on .pay-ic { background: var(--surface); }
.totals .row { padding: 5px 0; font-size: 14.5px; }
.totals .row > span:first-child { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.totals .total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 17px; }
.totals .saving { color: var(--ok); }
.totals .saving span:first-child { color: var(--ok); font-weight: 600; }
.qmark { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--soft); font-size: 11px; font-weight: 700; display: grid; place-items: center; text-align: center; color: var(--muted); }
.checkout-foot { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(100%, var(--col)); padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(180deg, var(--fade), var(--bg) 30%); z-index: 20; }
.checkout-foot .btn { width: 100%; }

.success-ov { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(23, 19, 31, 0); transition: background .3s; pointer-events: none; }
.success-ov.show { background: rgba(23, 19, 31, .88); }
.success-in { display: grid; justify-items: center; gap: 8px; color: #fff; text-align: center; opacity: 0; transform: scale(.9); transition: all .35s var(--spring); }
.success-ov.show .success-in { opacity: 1; transform: none; }
.success-in strong { font-family: var(--display); font-size: 26px; margin-top: 8px; }
.success-in span { color: rgba(255, 255, 255, .7); }
.success-check svg { width: 96px; height: 96px; }
.success-check circle { fill: var(--lime); stroke: none; transform-origin: center; animation: pop .5s var(--spring); }
.success-check path { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .2s var(--out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------- Tracking */
.trk { min-height: 100dvh; background: var(--bg); }
.trk-map { position: sticky; top: 0; height: calc(min(100vw, var(--col)) * .8); overflow: hidden; background: #e8ebdf; z-index: 1; }
.map { width: 100%; height: 100%; display: block; }
.m-land { fill: #eceee3; }
.m-block { fill: #e1e4d6; }
.m-bld { fill: #d9dccc; }
.m-park { fill: #cfe6b6; }
.m-tree { fill: #b3d696; }
.m-water { fill: none; stroke: #b9dcef; stroke-linecap: round; }
.m-st-o { stroke: #d3d6c6; stroke-width: 9; }
.m-st-i { stroke: #fff; stroke-width: 6; }
.m-st-o.m-main { stroke-width: 13; stroke: #d0d3c0; }
.m-st-i.m-main { stroke-width: 10; stroke: #fffdf4; }
.m-st-o.m-diag { stroke-width: 11; }
.m-st-i.m-diag { stroke-width: 8; stroke: #fff7de; }
.m-lbl { font: 600 8.5px var(--body); fill: #8b8f7d; paint-order: stroke; stroke: #fff; stroke-width: 3px; letter-spacing: .02em; }
.m-river-lbl { fill: #6fa6c5; font-style: italic; stroke: none; }
.m-plan { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .45; }
.m-trail { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.m-shop-bg { fill: var(--ink); }
.m-emoji { font-size: 14px; }
.m-pulse { fill: none; stroke: var(--ink); stroke-width: 2; opacity: .3; }
.m-home-bg { fill: var(--lime); stroke: var(--ink); stroke-width: 2.5; }
.m-home-ring { fill: rgba(200, 240, 60, .35); }
.m-home-ic { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-home.near .m-home-ring { animation: ring 1.1s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.m-driver { transition: opacity .4s; }
.m-drv-halo { fill: rgba(23, 19, 31, .14); animation: halo 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.m-drv-bg { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
@keyframes halo { 50% { transform: scale(1.25); } }
.trk.twist .m-drv-bg { stroke: var(--berry); }

.trk-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; z-index: 2; }
.trk-top-title { height: 38px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.glass { background: var(--glass); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.trk-panel { position: relative; z-index: 2; margin-top: -22px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 12px 16px 36px; box-shadow: 0 -8px 26px rgba(23, 19, 31, .1); }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--grip); margin: 0 auto 12px; }
.trk-eta { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.trk-eta-time { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; }
.eta-right { display: grid; justify-items: end; gap: 4px; }
.eta-pill { padding: 7px 12px; border-radius: 999px; background: var(--hi); color: var(--on-hi); font-weight: 700; font-size: 14px; white-space: nowrap; }
.eta-pill.bad { background: var(--berry); color: #fff; }
.eta-pill.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.eta-bump { font-size: 12.5px; font-weight: 800; color: var(--berry); opacity: 0; }
.eta-bump.show { animation: bumpUp 2.6s var(--out); }
@keyframes bumpUp { 0% { opacity: 0; transform: translateY(8px); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 16px; }
.steps span { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.steps span i { display: block; height: 100%; width: 0; background: var(--hi); border-radius: 3px; transition: width .3s linear; }
.steps span.done i { width: 100% !important; }
.steps span.cur i { background: var(--hi); }
.trk.twist .steps span.cur i { background: var(--berry); }
.trk-status { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; }
.trk-status strong { font-family: var(--display); font-size: 21px; letter-spacing: -0.02em; }
.trk-status strong.pop { animation: statusIn .45s var(--spring); }
@keyframes statusIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.trk.twist .trk-status strong { color: var(--berry); }
.trk-msg { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); min-height: 60px; position: relative; }
.trk-msg::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--lime-deep); }
.trk.twist .trk-msg::before { background: var(--berry); }
.trk-msg-in { animation: msgIn .45s var(--out); font-size: 15px; font-weight: 500; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.driver-card { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.drv-wait, .drv-real { display: flex; align-items: center; gap: 12px; }
.drv-real { display: none; }
.driver-card.assigned .drv-wait { display: none; }
.driver-card.assigned .drv-real { display: flex; animation: msgIn .45s var(--out); }
.drv-av { position: relative; width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 55% 55%), hsl(calc(var(--h) + 40) 55% 38%)); }
.drv-av span { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.drv-info { flex: 1; min-width: 0; }
.drv-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.drv-rating { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; }
.drv-rating .i { width: 13px; height: 13px; color: var(--gold); }
.trk-order { padding: 14px 16px; }
.mini-lines { list-style: none; margin: 8px 0; padding: 0; font-size: 14px; display: grid; gap: 3px; }
.mini-lines span { color: var(--muted); display: inline-block; min-width: 22px; }
.trk-order-foot { padding-top: 10px; border-top: 1px solid var(--line); }
.trk-order-foot .muted { display: inline-flex; align-items: center; gap: 4px; }
.updates { margin-top: 20px; }
.updates h3 { font-size: 17px; margin-bottom: 8px; }
.updates ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.updates li { position: relative; display: grid; gap: 1px; padding: 8px 0 8px 12px; font-size: 14px; animation: msgIn .4s var(--out); }
.updates li::before { content: ''; position: absolute; left: -21px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--dot-ring); }
.updates li:first-child::before { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.updates time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Support-Chat */
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-head > div:last-child { display: grid; }
.chat-av { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.chat-log { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; max-height: 42dvh; overflow-y: auto; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; animation: msgIn .3s var(--out); }
.bubble.bot { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.typing { display: flex; gap: 4px; padding: 14px 16px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ring); animation: dot 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); opacity: .6; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chip { min-height: 44px; padding: 9px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--text); font-weight: 600; font-size: 14px; transition: transform .15s; }
.chip:active { transform: scale(.95); }

/* ---------------------------------------------------------- Ende */
.ende { position: relative; min-height: 100dvh; padding: 30px 16px 40px; overflow: hidden; background: linear-gradient(180deg, var(--panel) 0, var(--panel) 330px, var(--bg) 330px); }
.coins { position: absolute; inset: 0 0 auto 0; height: 360px; pointer-events: none; }
.coins i { position: absolute; top: -30px; left: calc(var(--x) * 1%); width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--ink); font-style: normal; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); animation: coin 2.4s var(--d) cubic-bezier(.3, .6, .5, 1) both; }
@keyframes coin { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(360px) rotate(var(--r)); opacity: 0; } }
.ende-top { position: relative; color: #fff; padding: 14px 4px 0; }
.ende-top h1 { margin-top: 10px; font-size: 38px; line-height: 1.02; letter-spacing: -0.035em; animation: statusIn .6s var(--spring); }
.twist-card { position: relative; margin-top: 22px; display: flex; gap: 14px; padding: 18px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-2); animation: msgIn .6s .15s var(--out) both; }
.twist-emoji { width: 54px; height: 54px; border-radius: 16px; background: var(--lime-soft); display: grid; place-items: center; font-size: 30px; flex: none; }
.twist-card strong { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; display: block; line-height: 1.2; }
.twist-card p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.save-card { margin-top: 14px; padding: 22px 18px; border-radius: 22px; background: var(--lime); color: var(--ink); text-align: center; animation: msgIn .6s .3s var(--out) both; }
.save-card small { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.save-big { font-family: var(--display); font-weight: 800; font-size: 58px; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 4px; }
.save-card p { font-size: 16px; margin-top: 4px; }
.save-month { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(23, 19, 31, .08); font-size: 13.5px; }
.rate-card { margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); animation: msgIn .6s .38s var(--out) both; }
.rate-head { display: flex; align-items: center; gap: 12px; }
.rate-head > div:last-child { display: grid; gap: 1px; }
.rate-head strong { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }
.rate-head small { font-size: 13px; }
.drv-av.sm { width: 42px; height: 42px; font-size: 17px; }
.drv-av.sm span { width: 21px; height: 21px; font-size: 11px; }
.stars { display: flex; justify-content: space-between; gap: 4px; margin-top: 10px; }
.star-btn { flex: 1; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--ring); transition: color .15s, transform .15s var(--spring), background .2s; }
.star-btn .i { width: 34px; height: 34px; }
.star-btn:active { transform: scale(.88); }
.star-btn.on { color: var(--gold); }
.star-btn.pop { animation: pop .45s var(--spring) both; }
.rate-reply { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14.5px; }
.rate-reply.pop { animation: msgIn .35s var(--out); }
.rate-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rate-tags .chip { min-height: 44px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13.5px; }
.rate-tags .chip.on { background: var(--hi); color: var(--on-hi); box-shadow: none; }
.rate-profile h3 { margin-bottom: 12px; }
.rp-row { display: flex; gap: 14px; align-items: stretch; }
.rp-avg { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 10px 14px; border-radius: 16px; background: var(--soft); min-width: 108px; }
.rp-avg strong { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.rp-stars { font-size: 15px; letter-spacing: 1px; background: linear-gradient(90deg, var(--gold) var(--p), var(--track) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-avg small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rp-facts { flex: 1; min-width: 0; display: grid; gap: 8px; align-content: center; }
.rp-facts div { display: grid; }
.rp-facts small { font-size: 12px; color: var(--muted); }
.rp-facts strong { font-size: 14.5px; overflow-wrap: anywhere; }
.rate-profile > p { margin-top: 12px; }
.h-stars { color: var(--gold); letter-spacing: 1px; }
.ende-actions { display: grid; gap: 10px; margin-top: 18px; animation: msgIn .6s .45s var(--out) both; }
.ende-actions .btn.primary { justify-content: center; }

.sheet-share .sheet-body { display: grid; }
.share-prev { display: grid; place-items: center; }
.share-prev img, .share-sk { width: auto; height: min(52dvh, 460px); aspect-ratio: 9 / 16; border-radius: 16px; box-shadow: var(--sh-2); }
.share-prev img { animation: pop .5s var(--spring); }

/* ---------------------------------------------------------- Sparschwein */
.piggy { padding-top: 4px; }
.pig-hero { position: relative; overflow: hidden; text-align: center; padding: 26px 16px 22px; border-radius: 24px; background: var(--panel); color: #fff; }
.pig-hero::before { content: ''; position: absolute; left: 50%; top: -80px; width: 280px; height: 280px; margin-left: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 240, 60, .28), transparent 65%); }
.pig-art { position: relative; font-size: 64px; line-height: 1; animation: wobble 3s ease-in-out infinite; display: inline-block; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-3px); } }
.pig-hero small { position: relative; display: block; margin-top: 10px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); }
.pig-total { position: relative; font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pig-hero p { position: relative; margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tile { padding: 14px 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); display: grid; gap: 2px; }
.tile-ic { font-size: 18px; height: 22px; color: var(--berry); }
.tile strong { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.tile small { color: var(--muted); font-size: 12px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); transition: transform .15s; }
.history a:active { transform: scale(.985); }
.h-img { width: 52px; height: 52px; flex: none; }
.h-img .pic { width: 100%; height: 100%; border-radius: 12px; }
.h-img .pic-emoji { font-size: 24px; }
.h-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.h-txt small { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-amt { font-weight: 800; color: var(--ok); white-space: nowrap; }
.st-nie { color: var(--berry); font-weight: 600; }
.st-run { color: var(--ok); font-weight: 600; }

/* Sparziel */
.goal-strip { width: 100%; margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; animation: msgIn .6s .34s var(--out) both; }
.goal-strip.empty { box-shadow: none; border: 1.5px dashed var(--ring); background: transparent; }
.goal-strip.empty > span { flex: 1; display: grid; }
.goal-strip.empty small { color: var(--muted); font-size: 13px; }
.goal-strip.empty > .i:first-child { color: var(--berry); }
.gs-emoji { width: 44px; height: 44px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; font-size: 24px; flex: none; color: var(--berry); }
.gs-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.gs-main strong { font-size: 15px; line-height: 1.25; }
.gs-main small { font-size: 12.5px; color: var(--muted); }
.gs-bar { display: block; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.gs-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--lime-deep), var(--lime)); transition: width 1.2s var(--out); }
.gs-bar.big { height: 12px; border-radius: 6px; margin: 12px 0 10px; }
.goal-strip.done .gs-emoji, .goal-card.done .gs-emoji { background: var(--lime); }
.goal-card .gc-top { display: flex; align-items: center; gap: 12px; }
.goal-card .gc-top > div { flex: 1; min-width: 0; }
.goal-card h3 { margin: 0; }
.goal-card.empty .btn { width: 100%; margin-top: 14px; }
.goal-card .row { gap: 10px; align-items: flex-start; }
.goal-card .row .muted { white-space: nowrap; }
.goal-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.goal-type { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 12.5px; text-align: center; min-height: 84px; transition: box-shadow .2s, background .2s; }
.goal-type span { font-size: 26px; }
.goal-type.on { box-shadow: inset 0 0 0 2px var(--hi); background: var(--lime-soft); }
.goal-form .note { margin-top: 14px; }
.eur-in { position: relative; display: block; }
.eur-in input { width: 100%; height: 46px; border-radius: 12px; border: 0; background: var(--soft); padding: 0 40px 0 14px; font-weight: 700; font-size: 17px; outline: none; }
.eur-in input:focus { box-shadow: inset 0 0 0 2px var(--hi); }
.eur-in em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--muted); }

/* Abzeichen */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.badge { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); min-height: 104px; transition: transform .15s var(--out); }
.badge:active { transform: scale(.95); }
.b-medal { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--soft); color: var(--muted); }
.badge.on .b-medal { background: var(--lime); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--lime-deep); }
.b-name { font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--muted); overflow-wrap: break-word; hyphens: manual; }
.badge.on .b-name { color: var(--text); }
.badge-sheet { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 6px 4px 4px; }
.badge-sheet h2 { font-size: 26px; }
.badge-sheet p { max-width: 34ch; }
.bs-medal { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 58px; background: var(--soft); color: var(--muted); margin-bottom: 6px; }
.bs-medal .i { width: 40px; height: 40px; }
.badge-sheet.on .bs-medal { background: var(--lime); box-shadow: 0 0 0 5px var(--surface), 0 0 0 8px var(--lime-deep); animation: pop .5s var(--spring); }
.badge-sheet .kicker { color: var(--ok); }
.badge-sheet .btn-col { width: 100%; }
.bs-prog { width: 100%; max-width: 280px; display: grid; gap: 6px; margin-top: 4px; }
.bs-prog small { color: var(--muted); font-size: 13px; }
.badge-toast { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 97; width: calc(min(100%, var(--col)) - 24px); transform: translate(-50%, -140%); transition: transform .5s var(--spring); }
.badge-toast.show { transform: translate(-50%, 0); }
.bt-in { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--panel); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); text-align: left; }
.bt-medal { width: 52px; height: 52px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 28px; flex: none; animation: pop .6s .15s var(--spring) both; }
.bt-txt { flex: 1; min-width: 0; display: grid; }
.bt-txt small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.bt-txt strong { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.bt-txt em { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, .65); }
.bt-go { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); flex: none; }
.confetti { position: fixed; inset: 0; z-index: 98; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: 70px; display: block; }

/* Einstellungen */
.settings { padding: 10px 14px; margin-top: 22px; }
.switch-row { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 32px; border-radius: 16px; background: var(--track); flex: none; margin: 0; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .25s var(--spring); }
.switch:checked { background: var(--hi); }
.switch:checked::after { transform: translateX(20px); background: var(--on-hi); }
.switch:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 2px; }

/* ---------------------------------------------------------- Rechtliches */
.legal { padding-top: 14px; }
.legal > p { font-size: 14.5px; }
.legal .card p { font-size: 14.5px; }
.credits { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.credits li { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-1); }
.cr-img { width: 56px; height: 56px; flex: none; }
.cr-img .pic { width: 100%; height: 100%; border-radius: 10px; }
.cr-img .pic-emoji { font-size: 24px; }
.cr-txt { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.cr-txt small { font-size: 12.5px; overflow-wrap: anywhere; }
.cr-txt a { text-decoration: underline; }
.info-list { display: grid; gap: 14px; }
.info-list div { display: flex; gap: 12px; font-size: 14.5px; }
.info-list .i { color: var(--muted); }

/* ---------------------------------------------------------- Install-Hinweis */
.install-hint {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); z-index: 40; width: calc(min(100%, var(--col)) - 24px);
  display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px; border-radius: 20px; background: var(--panel); color: #fff;
  box-shadow: 0 16px 40px rgba(23, 19, 31, .35); transform: translate(-50%, 24px); opacity: 0; transition: transform .45s var(--spring), opacity .3s;
}
.install-hint.show { transform: translate(-50%, 0); opacity: 1; }
.ih-ic { width: 44px; height: 44px; flex: none; }
.ih-txt { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.ih-txt strong { font-size: 15px; color: #fff; }
.ih-txt .i { vertical-align: -2px; color: var(--lime); }
.ih-go.btn.primary { height: 44px; padding: 0 16px; background: var(--lime); color: var(--ink); box-shadow: none; flex: none; }
.ih-x { width: 44px; height: 44px; color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------- Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 99; width: max-content; max-width: min(92vw, 440px);
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--panel); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--sh-2); opacity: 0; transform: translate(-50%, 16px) scale(.96); pointer-events: none; transition: opacity .25s, transform .35s var(--spring);
}
.toast .i { color: var(--lime); width: 18px; height: 18px; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------------------------------------------------------- Content-Modus (?demo=1): nichts, was vom Video ablenkt */
.demo .tab-badge, .demo .install-hint, .demo .badge-toast { display: none !important; }

/* ---------------------------------------------------------- Dunkles Theme (System oder Nachthunger) */
:root[data-theme="dark"] {
  --bg: #0f0d13;
  --surface: #1a1621;
  --soft: #26212e;
  --line: #312a3b;
  --muted: #a8a1b2;
  --text: #f4f1f8;
  --hi: var(--lime);
  --on-hi: var(--ink);
  --panel: #221c2c;
  --lime-deep: #a9d62b;
  --lime-soft: #252f10;
  --berry-soft: #3d1a28;
  --glass: rgba(34, 28, 44, .9);
  --bar-bg: rgba(22, 19, 28, .94);
  --fade: rgba(15, 13, 19, 0);
  --track: #3a3345;
  --grip: #4a4256;
  --ring: #5f576c;
  --dot-ring: #5f576c;
  --sk: #221d2a;
  --veg-bg: #1d3014;
  --veg-fg: #9fd873;
  --ok: #a9d62b;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .28);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
[data-theme="dark"] body { background: #09070c; }
[data-theme="dark"] .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
[data-theme="dark"] .top, [data-theme="dark"] .bar-head:not(.plain) { box-shadow: 0 1px 0 var(--line); }
[data-theme="dark"] .promo, [data-theme="dark"] .active-order, [data-theme="dark"] .pig-hero { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
[data-theme="dark"] .cart-bar { background: var(--lime); color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
[data-theme="dark"] .cart-bar.other { background: var(--panel); color: #fff; }
[data-theme="dark"] .cart-bar:not(.other) .cb-count { background: var(--ink); color: var(--lime); }
[data-theme="dark"] .bubble.me { background: var(--lime); color: var(--ink); }
[data-theme="dark"] .toast, [data-theme="dark"] .install-hint { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--sh-2); }
[data-theme="dark"] .tab-badge { box-shadow: 0 0 0 2px var(--surface); }
[data-theme="dark"] .shop-card, [data-theme="dark"] .card, [data-theme="dark"] .tile, [data-theme="dark"] .history a, [data-theme="dark"] .trk-msg, [data-theme="dark"] .driver-card { box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .cat-ic { box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .cat.on .cat-ic { box-shadow: 0 0 0 2px var(--text); }
[data-theme="dark"] .hunger { box-shadow: 0 8px 22px rgba(0, 0, 0, .4), inset 0 -3px 0 rgba(23, 19, 31, .18); }
[data-theme="dark"] .checkout-foot .btn.primary, [data-theme="dark"] .ende-actions .btn.primary { box-shadow: 0 8px 24px rgba(200, 240, 60, .16); }
/* Karte bei Nacht */
[data-theme="dark"] .trk-map { background: #15131b; }
[data-theme="dark"] .m-land { fill: #17151d; }
[data-theme="dark"] .m-block { fill: #1e1b26; }
[data-theme="dark"] .m-bld { fill: #25212e; }
[data-theme="dark"] .m-park { fill: #1a2616; }
[data-theme="dark"] .m-tree { fill: #24371d; }
[data-theme="dark"] .m-water { stroke: #1b2c3b; }
[data-theme="dark"] .m-st-o { stroke: #0e0c12; }
[data-theme="dark"] .m-st-i { stroke: #2e2a37; }
[data-theme="dark"] .m-st-o.m-main { stroke: #0c0a10; }
[data-theme="dark"] .m-st-i.m-main { stroke: #3a3444; }
[data-theme="dark"] .m-st-i.m-diag { stroke: #36303f; }
[data-theme="dark"] .m-lbl { fill: #8c8598; stroke: #17151d; }
[data-theme="dark"] .m-river-lbl { fill: #5f8fb0; }
[data-theme="dark"] .m-plan { stroke: #f4f1f8; opacity: .35; }
[data-theme="dark"] .m-trail { stroke: var(--lime); }
[data-theme="dark"] .m-shop-bg { fill: #2b2536; stroke: var(--lime); stroke-width: 1.5; }
[data-theme="dark"] .m-pulse { stroke: var(--lime); }
[data-theme="dark"] .m-drv-halo { fill: rgba(200, 240, 60, .18); }
[data-theme="dark"] .m-home-ring { fill: rgba(200, 240, 60, .22); }
[data-theme="dark"] .trk-panel { box-shadow: 0 -8px 26px rgba(0, 0, 0, .45); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===================================================================== Spiel: Deals, Tagesbonus, Treuekarte, Nimmerzahl, Sammeln */
:root { --nz-bg: #2a1f1a; --nz-acc: #f0b429; --nz-cream: #fbf1dc; --leg-a: #f2b01e; --leg-b: #ffe28a; }
.sp-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; flex: none; }
.sp-chip.on-dark { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
.sp-bar { display: block; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; margin-top: 8px; }
.sp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--lime-deep); transition: width .6s var(--out); }
.sp-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--berry); color: #fff; font-family: var(--body); font-size: 11px; font-weight: 700; vertical-align: 2px; }

/* Tagesbonus */
.sp-daily { margin-top: 12px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); }
.sp-daily-top { display: flex; align-items: center; gap: 12px; }
.sp-daily-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none; background: var(--lime); color: var(--ink); }
.sp-daily-ic .i { width: 26px; height: 26px; }
.sp-daily-txt { display: grid; gap: 1px; min-width: 0; }
.sp-daily-txt .kicker { color: var(--ok); }
.sp-daily-txt strong { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; line-height: 1.15; }
.sp-daily-txt small { font-size: 13px; color: var(--muted); }
.sp-daily-go { width: 100%; margin-top: 12px; }
.sp-daily.done { padding: 12px 14px; }
.sp-daily.done .sp-daily-ic { background: var(--soft); color: var(--ok); }
.sp-daily-next { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sp-cal { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sp-cal li { display: grid; justify-items: center; gap: 3px; }
.sp-cal span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); font-weight: 700; font-size: 13px; }
.sp-cal span .i { width: 16px; height: 16px; }
.sp-cal small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.sp-cal li.done span { background: var(--lime); color: var(--ink); }
.sp-cal li.cur span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--hi); }
.sp-cal li.cur:not(.done) span { background: var(--hi); color: var(--on-hi); animation: pop .5s var(--spring); }
.sp-cal li.gift:not(.done) span { color: var(--gold); }
.sp-cal li.cur small { color: var(--text); font-weight: 700; }
.sp-cal.big span { width: 38px; height: 38px; }
.sp-daily-sheet { display: grid; justify-items: center; text-align: center; gap: 8px; }
.sp-daily-sheet h2 { font-size: 26px; }
.sp-daily-sheet p { max-width: 36ch; }
.sp-daily-sheet .kicker { color: var(--ok); }
.sp-daily-sheet .sp-cal { width: 100%; margin: 8px 0 0; }
.sp-daily-sheet .btn-col { width: 100%; }
.sp-daily-medal { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); box-shadow: 0 0 0 5px var(--surface), 0 0 0 8px var(--lime-deep); margin-bottom: 6px; animation: pop .55s var(--spring); }
.sp-daily-medal .i { width: 46px; height: 46px; }

/* Blitzangebote */
.sp-deals-head h2 { display: inline-flex; align-items: center; gap: 6px; }
.sp-deals-head h2 .i { color: var(--berry); width: 20px; height: 20px; }
.sp-timer { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sp-timer b { display: inline-block; min-width: 34px; padding: 2px 6px; border-radius: 8px; background: var(--hi); color: var(--on-hi); font-variant-numeric: tabular-nums; text-align: center; }
.sp-timer.hot b { background: var(--berry); color: #fff; animation: pulse .9s ease-in-out infinite; }
.sp-deal-row.flip .sp-deal { animation: dealIn .45s var(--spring) both; }
.sp-deal-row.flip .sp-deal:nth-child(2) { animation-delay: .06s; }
.sp-deal-row.flip .sp-deal:nth-child(3) { animation-delay: .12s; }
@keyframes dealIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.sp-deal { position: relative; flex: none; width: 196px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; scroll-snap-align: start; text-align: left; transition: transform .15s var(--out); }
.sp-deal:active { transform: scale(.97); }
.sp-deal-img { position: relative; }
.sp-deal-img .pic { height: 104px; }
.sp-deal-img .pic-emoji { font-size: 40px; }
.sp-deal-badge { position: absolute; left: 8px; top: 8px; z-index: 2; max-width: calc(100% - 16px); padding: 4px 9px; border-radius: 999px; background: var(--berry); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-deal-txt { display: grid; gap: 1px; padding: 10px 12px 12px; min-width: 0; }
.sp-deal-txt strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-deal-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-deal-price { margin-top: 4px; display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.sp-deal-price s { color: var(--muted); }
.sp-deal-price b { color: var(--ok); }
.sp-deal-add { position: absolute; right: 8px; top: 74px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--hi); color: var(--on-hi); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }

/* Treuekarte */
.sp-treue { margin-top: 8px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); min-height: 52px; }
.sp-treue-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--berry); flex: none; }
.sp-treue-ic .i { width: 19px; height: 19px; }
.sp-treue-txt { flex: 1; min-width: 0; display: grid; }
.sp-treue-txt strong { font-size: 14px; }
.sp-treue-txt small { font-size: 12.5px; color: var(--muted); }
.sp-mini-dots { display: grid; grid-template-columns: repeat(5, 8px); gap: 3px; flex: none; }
.sp-mini-dots i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ring); }
.sp-mini-dots i.on { background: var(--berry); box-shadow: none; }
.sp-treue-sheet .kicker { color: var(--berry); }
.sp-treue-sheet .sheet-title { margin-top: 4px; }
.sp-treue-sheet > p { margin-top: 12px; }
.sp-treue-card { padding: 16px; border-radius: 18px; background: var(--soft); background-image: radial-gradient(circle at 1px 1px, rgba(23, 19, 31, .06) 1px, transparent 0); background-size: 10px 10px; }
.sp-treue-card .row { margin-top: 12px; }
.sp-stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sp-stamps li { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--ring); background: var(--surface); }
.sp-stamps li.last { border-color: var(--berry); border-style: solid; }
.sp-stamps li small { font-size: 9.5px; font-weight: 700; color: var(--berry); text-align: center; line-height: 1.1; padding: 2px; overflow-wrap: anywhere; }
.sp-stamps li.on { border: 0; background: var(--berry); }
.sp-ink { font-family: 'Space Mono', ui-monospace, monospace; font-weight: 700; font-size: 13px; color: #fff; transform: rotate(-16deg); letter-spacing: .04em; }
.sp-stamps li.on .sp-ink { animation: pop .4s var(--spring); }

/* Nimmerzahl */
.pay[data-pay="nie"] .pay-ic { background: var(--nz-bg); color: var(--nz-acc); }
.pay[data-pay="nie"].on .pay-ic { background: var(--nz-bg); }
.pay-ic .nz-logo { width: 26px; height: 26px; }
.nz-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--nz-bg); color: var(--nz-acc); flex: none; }
.nz-mark .nz-logo { width: 26px; height: 26px; }
.nz-mark.sm { width: 36px; height: 36px; border-radius: 10px; }
.nz-mark.sm .nz-logo { width: 21px; height: 21px; }
.nz-preview { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--nz-cream); color: var(--nz-bg); }
.nz-preview-head { display: flex; align-items: center; gap: 10px; }
.nz-preview-head strong { flex: 1; font-size: 15px; }
.nz-preview .sp-chip { background: rgba(42, 31, 26, .1); color: var(--nz-bg); }
.nz-preview .fine { margin-top: 10px; color: rgba(42, 31, 26, .7); }
.nz-rates { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nz-rates li { display: grid; gap: 1px; padding: 8px; border-radius: 10px; background: rgba(42, 31, 26, .06); min-width: 0; }
.nz-rates span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.nz-rates b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.nz-rates small { font-size: 11.5px; line-height: 1.25; opacity: .8; overflow-wrap: anywhere; }
.nz-page { padding-top: 12px; }
.nz-hero { position: relative; overflow: hidden; padding: 18px 16px; border-radius: 22px; background: var(--nz-bg); color: var(--nz-cream); }
.nz-hero::before { content: ''; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 180, 41, .28), transparent 65%); }
.nz-brand { position: relative; display: flex; align-items: center; gap: 12px; }
.nz-brand > div { flex: 1; display: grid; }
.nz-brand strong { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; color: var(--nz-acc); }
.nz-brand small { font-size: 13px; opacity: .75; }
.nz-brand .nz-mark { background: var(--nz-acc); color: var(--nz-bg); }
.nz-sums { position: relative; margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nz-sums > div { display: grid; gap: 1px; padding: 12px; border-radius: 14px; background: rgba(251, 241, 220, .08); min-width: 0; }
.nz-sums small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.nz-sums b { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nz-sums em { font-style: normal; font-size: 12px; opacity: .7; }
.nz-sums .real { background: var(--lime); color: var(--ink); }
.nz-sums .real small, .nz-sums .real em { opacity: .75; }
.nz-note { position: relative; margin-top: 12px; font-size: 12.5px; line-height: 1.45; opacity: .78; }
.nz-owed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nz-owed li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.nz-owed li .i { color: var(--berry); margin-top: 2px; }
.nz-owed p { margin-top: 10px; }
.nz-plans { list-style: none; margin: 0; padding: 0; }
.nz-plans li.card:first-child { margin-top: 0; }
.nz-plans .row strong { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nz-amt { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.nz-plans small.muted { display: block; margin-top: 2px; font-size: 12.5px; }
.nz-plans .nz-rates li { background: var(--soft); }
.nz-zins { margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.nz-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nz-feed li { padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); border-left: 4px solid var(--nz-acc); }
.nz-feed time { display: block; font-size: 11.5px; color: var(--muted); }
.nz-feed strong { display: block; margin-top: 2px; font-size: 14.5px; }
.nz-feed p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.nz-pause { width: 100%; margin-top: 14px; }
.nz-page .empty .nz-mark { margin: 0 auto 6px; }

/* Zeilen (Ende, Sparschwein, Album) */
.sp-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 60px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; transition: transform .15s var(--out); }
.sp-row + .sp-row { margin-top: 8px; }
.sp-row:active { transform: scale(.985); }
.sp-row > .i-sm { color: var(--muted); flex: none; }
.sp-row-emoji { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); font-size: 22px; color: var(--berry); flex: none; }
.sp-row-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sp-row-txt strong { font-size: 14.5px; line-height: 1.25; }
.sp-row-txt small { font-size: 12.5px; color: var(--muted); }
.sp-row.is-new { box-shadow: inset 0 0 0 2px var(--lime-deep); background: var(--lime-soft); }
.sp-row.is-new .sp-row-emoji { background: var(--surface); }
.sp-ende { margin-top: 14px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); animation: msgIn .6s .34s var(--out) both; }
.sp-ende-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sp-ende-head .kicker { color: var(--ok); }

/* Sparschwein: Sammlung */
.sp-collect .sec-head { align-items: center; }
.sp-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.sp-col-tile { display: grid; align-content: start; gap: 1px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); min-width: 0; }
.sp-col-tile strong { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; margin-top: 10px; }
.sp-col-tile small { font-size: 12.5px; color: var(--muted); }
.sp-col-art { display: flex; height: 42px; align-items: center; }
.sp-col-art.cards .drv-av + .drv-av { margin-left: -12px; }
.sp-col-art.cards .drv-av { box-shadow: 0 0 0 2px var(--surface); }
.sp-col-art.ends span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); font-size: 20px; }
.sp-col-art.ends span + span { margin-left: 4px; }
.sp-col-q { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); font-family: var(--display); font-weight: 800; font-size: 20px; }

/* Album */
.sp-album { padding-top: 12px; }
.sp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: var(--soft); }
.sp-tabs a { height: 44px; display: grid; place-items: center; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--muted); }
.sp-tabs a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.sp-album-head { margin: 16px 0 12px; display: grid; gap: 10px; }
.sp-album-head > div { display: grid; gap: 2px; }
.sp-album-head strong { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.sp-rar-row { display: flex !important; flex-wrap: wrap; gap: 6px; }
.sp-rar { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; background: var(--soft); color: var(--muted); white-space: nowrap; }
.sp-rar.r-selten { background: var(--lime-soft); color: var(--ok); box-shadow: inset 0 0 0 1px var(--lime-deep); }
.sp-rar.r-legendaer { background: linear-gradient(135deg, var(--leg-a), var(--leg-b)); color: #3d2a00; }
.sp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 26px 6px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--line); text-align: center; min-width: 0; overflow: hidden; transition: transform .15s var(--out); }
button.sp-card:active { transform: scale(.96); }
.sp-card strong { font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
.sp-card small { font-size: 11.5px; color: var(--muted); line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; }
.sp-card .sp-rar { margin-top: 4px; }
.sp-card-no { position: absolute; left: 8px; top: 6px; font-family: 'Space Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--muted); }
.sp-card.r-selten { box-shadow: var(--sh-1), inset 0 0 0 2px var(--lime-deep); background: linear-gradient(180deg, var(--lime-soft), var(--surface) 60%); }
.sp-card.r-legendaer { box-shadow: var(--sh-1), inset 0 0 0 2px var(--leg-a); background: linear-gradient(160deg, #fff6d6, var(--surface) 55%); }
.sp-card.r-legendaer:not(.locked)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%); transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.sp-card.locked { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.sp-card.locked.r-selten { box-shadow: inset 0 0 0 1.5px var(--lime-deep); }
.sp-card.locked.r-legendaer { box-shadow: inset 0 0 0 1.5px var(--leg-a); }
.sp-card-q { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); font-family: var(--display); font-weight: 800; font-size: 22px; box-shadow: inset 0 0 0 2px var(--line); }
.sp-card.locked strong { color: var(--muted); }
.sp-card-sheet { display: grid; justify-items: center; gap: 12px; }
.sp-card.big { width: min(260px, 100%); padding: 22px 16px 20px; gap: 6px; }
.sp-card.big .drv-av { width: 104px; height: 104px; font-size: 44px; margin-top: 10px; }
.sp-card.big .drv-av span { width: 40px; height: 40px; font-size: 22px; right: -6px; bottom: -6px; }
.sp-card.big strong { font-size: 28px; }
.sp-card.big small { font-size: 13.5px; }
.sp-card.big .sp-rar { position: absolute; left: 12px; top: 12px; margin: 0; }
.sp-facts { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sp-facts div { padding: 10px 6px; border-radius: 12px; background: var(--soft); text-align: center; }
.sp-facts dt { font-size: 11.5px; color: var(--muted); }
.sp-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; }
.sp-card-sheet .btn-col { width: 100%; margin-top: 4px; }
.sp-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-end { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 64px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; min-width: 0; }
.sp-end-emoji { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); font-size: 22px; flex: none; }
.sp-end-txt { display: grid; gap: 1px; min-width: 0; }
.sp-end-txt strong { font-size: 13.5px; line-height: 1.2; }
.sp-end-txt small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.sp-end.locked { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.sp-end.locked .sp-end-emoji { background: var(--surface); }
.sp-end.locked strong { color: var(--muted); letter-spacing: .1em; }
.sp-end.locked.special { box-shadow: inset 0 0 0 1.5px var(--leg-a); }
.sil { filter: brightness(0); opacity: .2; }
.sp-end-sheet { display: grid; justify-items: center; text-align: center; gap: 8px; }
.sp-end-sheet h2 { font-size: 24px; max-width: 22ch; }
.sp-end-sheet p { max-width: 36ch; }
.sp-end-sheet .kicker { color: var(--ok); }
.sp-end-sheet .btn-col { width: 100%; }
.sp-end-big { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--lime-soft); font-size: 52px; animation: pop .5s var(--spring); }
.sp-stamplist .sp-row-emoji { font-size: 22px; }

/* Neue Fahrer-Karte (Hinweis oben) */
.sp-cardtoast { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 96; width: calc(min(100%, var(--col)) - 24px); transform: translate(-50%, -150%); transition: transform .5s var(--spring); }
.sp-cardtoast.show { transform: translate(-50%, 0); }
.sp-ct-in { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--panel); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); text-align: left; }
.sp-ct-card { width: 52px; height: 64px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; animation: pop .6s .1s var(--spring) both; }
.sp-ct-in.r-selten .sp-ct-card { background: var(--lime); }
.sp-ct-in.r-legendaer .sp-ct-card { background: linear-gradient(135deg, var(--leg-a), var(--leg-b)); }
.sp-ct-txt { flex: 1; min-width: 0; display: grid; }
.sp-ct-txt small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.sp-ct-txt strong { font-family: var(--display); font-size: 18px; }
.sp-ct-txt em { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, .65); }
.demo .sp-cardtoast { display: none !important; }

/* Spiel im dunklen Theme */
[data-theme="dark"] { --nz-cream: #2f261e; }
[data-theme="dark"] .sp-daily, [data-theme="dark"] .sp-deal, [data-theme="dark"] .sp-ende, [data-theme="dark"] .sp-col-tile, [data-theme="dark"] .sp-end:not(.locked), [data-theme="dark"] .nz-feed li { box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .nz-feed li { border-left-color: var(--nz-acc); }
[data-theme="dark"] .nz-preview { color: #f3e6cc; }
[data-theme="dark"] .nz-preview .sp-chip { background: rgba(255, 255, 255, .1); color: #f3e6cc; }
[data-theme="dark"] .nz-preview .fine { color: rgba(243, 230, 204, .7); }
[data-theme="dark"] .nz-rates li { background: rgba(255, 255, 255, .06); }
[data-theme="dark"] .nz-hero { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); color: #fbf1dc; }
[data-theme="dark"] .pay[data-pay="nie"] .pay-ic, [data-theme="dark"] .nz-mark { box-shadow: inset 0 0 0 1px rgba(240, 180, 41, .35); }
[data-theme="dark"] .sp-card.r-legendaer { background: linear-gradient(160deg, #3a2e10, var(--surface) 55%); }
[data-theme="dark"] .sp-card.r-legendaer:not(.locked)::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 226, 138, .18) 45%, transparent 60%); }
[data-theme="dark"] .sp-card.locked.r-legendaer { background: var(--soft); }
[data-theme="dark"] .sp-card.r-selten:not(.locked) { background: linear-gradient(180deg, var(--lime-soft), var(--surface) 60%); }
[data-theme="dark"] .sil { filter: brightness(0) invert(1); opacity: .22; }
[data-theme="dark"] .sp-treue-card { background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0); }
[data-theme="dark"] .sp-stamps li { background: var(--surface); }
[data-theme="dark"] .sp-stamps li.on { background: var(--berry); }
@media (max-width: 359px) {
  .sp-cards { grid-template-columns: repeat(2, 1fr); }
  .sp-ends { grid-template-columns: 1fr; }
}
.sp-deal-left { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(23, 19, 31, .82); color: #fff; font-size: 11.5px; font-weight: 600; }
.sp-deal-left b { font-variant-numeric: tabular-nums; }
.sp-card > * { position: relative; z-index: 1; }
.sp-card > .sp-card-no { position: absolute; }
.sp-card.big > .sp-rar { position: absolute; }
.sp-card.locked .sp-rar.r-gewoehnlich { background: var(--surface); }
/* ===================================================================   Gruppenbestellung und Städte-Duell (group.js, duel.js)
   ========================================================================== */
/* Einstieg im Laden und im Warenkorb */
.grp-cta { width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; transition: transform .15s var(--out); }
.grp-cta:active { transform: scale(.985); }
.grp-cta-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--hi); color: var(--on-hi); display: grid; place-items: center; flex: none; }
.grp-cta-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.grp-cta-txt strong { font-size: 15px; }
.grp-cta-txt small { font-size: 12.5px; color: var(--muted); }
.grp-cart-btn { width: 100%; margin-top: 10px; }
.grp-banner-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; }

/* Screen */
.grp { padding-top: 12px; }
.grp-sk { height: 120px; border-radius: var(--r); margin-top: 12px; }
.grp-sk.short { height: 220px; }
.grp-kicker { color: var(--lime-deep); }
.grp-join { text-align: center; padding-top: 0; overflow: hidden; }
.grp-join-pic { margin: 0 -16px 14px; }
.grp-join-pic .pic { aspect-ratio: 16 / 7; }
.grp-join h2 { font-size: 22px; margin: 6px 0 6px; }
.grp-form .note { margin-top: 0; }
.grp-conn { position: sticky; top: 72px; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 12px 16px 0; border-radius: 14px; background: var(--berry-soft); box-shadow: var(--sh-2); }
.grp-conn > span { flex: 1; display: grid; gap: 2px; font-size: 14px; }
.grp-conn small { color: var(--muted); font-size: 12.5px; }
.grp-conn .btn { height: 44px; padding: 0 14px; font-size: 14px; flex: none; }
.grp-hero { display: flex; gap: 12px; align-items: center; }
.grp-hero-pic { width: 64px; height: 64px; flex: none; }
.grp-hero-pic .pic { width: 100%; height: 100%; border-radius: 14px; }
.grp-hero-pic .pic-emoji { font-size: 30px; }
.grp-hero-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.grp-hero-txt strong { font-family: var(--display); font-size: 18px; }
.grp-hero-txt small { font-size: 13px; }
.grp-live { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; font-weight: 600; }
.grp-live .live-dot { width: 8px; height: 8px; }
.grp-live.off .live-dot { background: var(--berry); animation: none; }
.grp-invite h3 { margin-bottom: 4px; }
.grp-link { margin-top: 12px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 12px; background: var(--soft); }
.grp-link input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--muted); text-overflow: ellipsis; }
.grp-code { flex: none; padding: 6px 10px; border-radius: 8px; background: var(--surface); font-family: 'Space Mono', ui-monospace, monospace; font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.grp-invite-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.grp-invite-btns .btn { height: 48px; }
.grp-people-h { margin-bottom: 4px; }
.grp-people-h h3 { margin-bottom: 0; }
.grp-m { padding: 12px 0; border-top: 1px solid var(--line); }
.grp-m:first-of-type { border-top: 0; }
.grp-m-head { display: flex; align-items: center; gap: 10px; }
.grp-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 55% 55%), hsl(calc(var(--h) + 40) 55% 38%)); }
.grp-m-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.grp-m-name strong { font-size: 15px; overflow-wrap: anywhere; }
.grp-tag { padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.grp-tag.me { background: var(--hi); color: var(--on-hi); }
.grp-m-sum { flex: none; font-size: 13px; font-weight: 600; text-align: right; }
.grp-lines { list-style: none; margin: 8px 0 0; padding: 0; }
.grp-lines li { display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 44px; font-size: 14.5px; }
.grp .card > .grp-lines li { padding-left: 0; }
.grp-l-txt { flex: 1; min-width: 0; display: grid; }
.grp-l-txt small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-l-price { flex: none; font-weight: 600; font-size: 14px; }
.grp-hint { margin: 6px 0 0 44px; }
.grp-menu { margin-top: 16px; }
.grp-menu-h { font-size: 22px; padding-top: 16px; }
.grp-foot { display: grid; gap: 6px; }
.grp-foot-note { text-align: center; font-size: 12.5px; color: var(--muted); }
.grp-wait { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--panel); color: #fff; box-shadow: var(--sh-2); }
.grp-wait > span:last-child { display: grid; gap: 2px; min-width: 0; }
.grp-wait small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.grp-watch { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--lime-soft); font-size: 13.5px; }
.grp-end { margin-top: 14px; display: grid; gap: 8px; }
.grp-end-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.grp-end-top > div { display: grid; gap: 1px; min-width: 0; }
.grp-sum { margin-top: 4px; }

/* Städte-Duell */
.duel { margin-top: 12px; }
.duel-card { padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.piggy .duel-card { margin-top: 0; }
.duel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px -4px 2px 0; }
.duel-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime-deep); }
.duel-share { width: 40px; height: 40px; }
.duel-share .i { width: 19px; height: 19px; }
.duel-card h3 { font-size: 19px; }
.duel-sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.duel-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.duel-list li { display: grid; grid-template-columns: 22px 1fr auto; grid-template-areas: 'r c a' '. b b'; align-items: center; column-gap: 8px; row-gap: 5px; padding: 8px 10px; border-radius: 12px; }
.duel-list li.me { background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px var(--lime-deep); }
.duel-rank { grid-area: r; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--muted); }
.duel-list li:first-child .duel-rank { color: var(--text); }
.duel-city { grid-area: c; font-weight: 600; font-size: 15px; min-width: 0; }
.duel-city em { font-style: normal; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--hi); color: var(--on-hi); font-size: 11px; font-weight: 700; white-space: nowrap; }
.duel-amt { grid-area: a; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.duel-bar { grid-area: b; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.duel-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width .8s var(--out); }
.duel-list li:first-child .duel-bar i, .duel-list li.me .duel-bar i { background: var(--lime-deep); }
.duel-foot { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.duel-wait h3 { font-size: 17px; margin-top: 2px; }
[data-theme="dark"] .grp-cta, [data-theme="dark"] .duel-card { box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .duel-bar i { background: var(--muted); }
[data-theme="dark"] .duel-list li:first-child .duel-bar i, [data-theme="dark"] .duel-list li.me .duel-bar i { background: var(--lime); }
[data-theme="dark"] .grp-wait { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--sh-2); }
[data-theme="dark"] .grp-code { background: var(--panel); }
.duel-list li.gap { position: relative; margin-top: 14px; }
.duel-list li.gap::before { content: '· · ·'; position: absolute; left: 0; right: 0; top: -15px; text-align: center; font-size: 12px; line-height: 1; color: var(--muted); }
/* ================================================================ Echtzeit-Lieferung (echtzeit.js, push.js) */
/* Express nur per Ticket (stufen.js): Knopf "Express-Ticket einlösen (n)" */
.rt-mode { margin-top: 12px; }
.rt-tk { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-1); text-align: left; animation: unIn .45s var(--spring) both; transition: transform .15s var(--out); }
.rt-tk:active { transform: scale(.98); }
.rt-tk-ic, .rt-tk-on > span:first-child { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ink); font-size: 20px; }
.rt-tk-txt, .rt-tk-on > span:last-child { display: grid; gap: 1px; min-width: 0; }
.rt-tk-txt strong, .rt-tk-on strong { font-size: 14.5px; line-height: 1.25; }
.rt-tk-txt small, .rt-tk-on small { font-size: 12.5px; color: var(--muted); }
.rt-tk-on { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px var(--lime-deep); animation: unIn .45s var(--spring) both; }
.push-card { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.push-card.on { background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px var(--lime-deep); }
.push-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); }
.push-card.on .push-ic { background: var(--surface); }
.push-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.push-txt strong { font-size: 14.5px; line-height: 1.25; }
.push-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.push-txt small .i { vertical-align: -2px; }
.push-go { flex: none; height: 44px; padding: 0 16px; font-size: 14px; }
.push-go .spinner { width: 18px; height: 18px; }
.push-off { flex: none; padding: 10px 4px; }
.push-note { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.push-note .i { width: 16px; height: 16px; margin-top: 1px; }

/* ===================================================================== Warte-Erlebnis (warten.js, anruf.js, wette.js, rad.js) */
#w-slot { display: grid; gap: 10px; margin-top: 10px; }
#w-slot > div:empty { display: none; }
#w-slot > div:empty + * { margin-top: 0; }
#w-slot:has(> div:not(:empty)) { margin-bottom: 2px; }

/* Ticker der Zentrale */
.w-ticker { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--panel); color: #fff; font-size: 13.5px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--out); }
.w-ticker.in { opacity: 1; transform: none; }
.w-ticker-k { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 1px; }

/* Wettschein im Panel */
.w-strip { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; font-size: 13.5px; }
.w-strip-k { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.w-strip-t { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-strip-q { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--hi); color: var(--on-hi); font-weight: 800; font-variant-numeric: tabular-nums; }
.w-strip-q.out { background: var(--berry); color: #fff; }
.w-retip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Funk-Karte */
.w-funk { padding: 12px 12px 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--lime-deep), var(--sh-1); opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .3s, transform .35s var(--spring); }
.w-funk.show { opacity: 1; transform: none; }
.w-funk.done { box-shadow: inset 0 0 0 1.5px var(--line); }
.w-funk-head { display: flex; align-items: center; gap: 10px; }
.w-funk-who { flex: 1; display: grid; gap: 1px; }
.w-funk-who .kicker { color: var(--lime-deep); }
.w-funk-who small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.w-funk-live { width: 10px; height: 10px; border-radius: 50%; background: var(--berry); animation: ping 1.4s infinite; box-shadow: 0 0 0 0 rgba(229, 51, 109, .5); }
.w-funk.done .w-funk-live { display: none; }
.w-funk-rueck { margin: 10px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }
.w-funk-q { margin: 8px 0 10px; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--soft); font-size: 15px; line-height: 1.38; font-weight: 500; }
.w-funk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.w-opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 15px; border-radius: 999px; background: var(--hi); color: var(--on-hi); font-weight: 700; font-size: 14.5px; transition: transform .15s var(--out), opacity .2s; }
.w-opt:active { transform: scale(.95); }
.w-opt b:empty { display: none; }
.w-opt b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 12px; }
.w-opt.on { box-shadow: 0 0 0 3px var(--lime); }
.w-funk.done .w-opt { opacity: .4; }
.w-funk.done .w-opt.on { opacity: 1; }
.w-funk-meta { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.w-funk-meta:empty { display: none; }
.w-funk-reply { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px 4px 14px 14px; background: var(--lime-soft); font-size: 14px; line-height: 1.38; animation: msgIn .4s var(--out); }
.updates li.w-upd-funk span::before { content: 'Funk · '; font-weight: 700; color: var(--lime-deep); }
.updates li.w-upd-karte span::before { content: 'Karte · '; font-weight: 700; color: var(--berry); }

/* Anfeuern */
.w-cheer { display: flex; align-items: center; gap: 12px; }
.w-cheer-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 14.5px; box-shadow: inset 0 -3px 0 rgba(23, 19, 31, .14); touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform .08s; }
.w-cheer-btn:active { transform: scale(.93); }
.w-cheer-btn.paused { background: var(--soft); color: var(--muted); box-shadow: none; }
.w-cheer-ic { font-size: 20px; }
.w-cheer-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.w-cheer-info strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.w-cheer-info strong:empty { display: none; }
.w-cheer-info small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.w-cheer-info small.pop { animation: msgIn .35s var(--out); color: var(--text); }
.w-press { height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; }
.w-press i { display: block; height: 100%; width: 0; background: var(--lime-deep); border-radius: 3px; transition: width .2s; }
.w-press.hot i { background: var(--berry); }

/* Kartenschicht */
.w-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.w-ov { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.w-ov > * { pointer-events: auto; }
.w-drv-hit { width: 46px; height: 46px; border-radius: 50%; background: transparent; touch-action: manipulation; }
.w-bubble { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px 12px 12px 3px; display: grid; place-items: center; background: var(--berry); color: #fff; font-weight: 900; font-size: 14px; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); animation: pop .5s var(--spring), wBob 1.2s ease-in-out .5s infinite; pointer-events: none; }
@keyframes wBob { 50% { transform: translateY(-4px); } }
.w-heart { display: block; font-size: 18px; pointer-events: none; animation: wHeart .9s var(--out) forwards; }
.w-heart.remote { font-size: 15px; }
@keyframes wHeart { from { transform: translate(0, -6px) scale(.6); opacity: 1; } to { transform: translate(var(--dx), -58px) scale(1.15); opacity: 0; } }
.w-fig { display: block; font-size: 15px; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); animation: pop .4s var(--spring); }
.w-sur { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 3px var(--ink), 0 6px 16px rgba(0, 0, 0, .28); font-size: 28px; animation: pop .5s var(--spring), wBob 1.6s ease-in-out .5s infinite; touch-action: manipulation; }
.w-sur::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--lime-deep); animation: ring 1.4s ease-out infinite; pointer-events: none; }
.w-sur.r-selten { box-shadow: 0 0 0 3px #7c6cff, 0 6px 16px rgba(0, 0, 0, .28); }
.w-sur.r-legendaer { box-shadow: 0 0 0 3px var(--gold), 0 0 18px var(--gold); }
.w-sur i { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.w-sur.r-legendaer i { background: var(--gold); color: var(--ink); }
.w-scene { position: absolute; left: 12px; right: 12px; bottom: 34px; z-index: 3; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--sh-2); font-size: 13px; line-height: 1.35; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .35s var(--spring); }
.w-scene.show { opacity: 1; transform: none; }
.w-scene-emoji { font-size: 28px; flex: none; }
.w-scene-txt { display: grid; gap: 3px; }
.w-scene-top { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.w-scene-top i { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.w-scene.r-selten .w-scene-top i { color: #7c6cff; }
.w-scene.r-legendaer .w-scene-top i { color: var(--gold); }
.w-scene-top b { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--lime); color: var(--ink); }

/* Wette: Auswahl */
.w-bet { position: fixed; left: 50%; bottom: 0; z-index: 45; width: min(100%, var(--col)); padding: 0 10px calc(10px + var(--safe-b)); transform: translate(-50%, 110%); transition: transform .45s var(--spring); }
.w-bet.show { transform: translate(-50%, 0); }
.w-bet-in { padding: 14px 14px 12px; border-radius: 24px; background: var(--panel); color: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); }
.w-bet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-x { min-height: 44px; margin: -4px -4px -4px 0; padding: 0 10px; border-radius: 999px; color: rgba(255, 255, 255, .7); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.w-bet-q { display: block; margin-top: 4px; font-family: var(--display); font-size: 21px; letter-spacing: -0.02em; }
.w-bet-sub { margin: 4px 0 12px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.w-bet-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.w-card { position: relative; min-height: 132px; border-radius: 16px; padding: 0; background: linear-gradient(160deg, #3a3048, #241d2f); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); color: #fff; transition: transform .25s var(--spring), box-shadow .2s, opacity .3s; overflow: hidden; }
.w-card::before { content: ''; position: absolute; inset: 6px; border-radius: 11px; border: 1.5px dashed rgba(200, 240, 60, .35); pointer-events: none; }
.w-card-back { position: relative; height: 100%; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 14px 6px; text-align: center; }
.w-card-q { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--lime); line-height: 1; }
.w-card-hint { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.w-card-quote { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-variant-numeric: tabular-nums; }
.w-card-who { font-size: 10.5px; color: var(--lime); min-height: 12px; }
.w-card.on { transform: translateY(-6px); box-shadow: inset 0 0 0 2.5px var(--lime), 0 10px 24px rgba(200, 240, 60, .2); }
.w-card.picked { animation: wPick .6s var(--spring); }
.w-card.out { opacity: .3; }
@keyframes wPick { 40% { transform: translateY(-10px) rotate(-3deg) scale(1.05); } }
.w-bet-act { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 12px; }
.w-bet-act .btn { height: 48px; font-size: 15px; white-space: nowrap; padding: 0 12px; }
[data-theme="dark"] .w-bet-in, [data-theme="dark"] .w-reveal-in, [data-theme="dark"] .w-ticker { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 -10px 40px rgba(0, 0, 0, .5); }
.w-bet-act .btn.primary { background: var(--lime); color: var(--ink); }
.w-bet-act .btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.w-bet-fine { margin: 8px 0 0; color: rgba(255, 255, 255, .55); text-align: center; }

/* Wette: Auflösung */
.w-reveal { position: fixed; inset: 0; z-index: 94; display: grid; place-items: center; padding: 20px; background: rgba(15, 12, 20, 0); transition: background .3s; }
.w-reveal.show { background: rgba(15, 12, 20, .72); }
.w-reveal-in { width: min(100%, 400px); padding: 18px 16px; border-radius: 24px; background: var(--panel); color: #fff; text-align: center; transform: scale(.9); opacity: 0; transition: transform .4s var(--spring), opacity .3s; }
.w-reveal.show .w-reveal-in { transform: none; opacity: 1; }
.w-reveal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px; perspective: 600px; }
.w-rc { position: relative; height: 112px; transform-style: preserve-3d; transition: transform .7s var(--spring) calc(var(--i) * .15s); }
.w-reveal.flip .w-rc { transform: rotateY(180deg); }
.w-rc span { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.w-rc-back { background: linear-gradient(160deg, #3a3048, #241d2f); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.w-rc-front { transform: rotateY(180deg); background: #2f2839; color: rgba(255, 255, 255, .6); }
.w-rc.win .w-rc-front { background: var(--lime); color: var(--ink); }
.w-rc.mine .w-rc-front, .w-rc.mine .w-rc-back { box-shadow: inset 0 0 0 3px var(--gold); }
.w-rc.out .w-rc-front { opacity: .45; }
.w-reveal-t { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.w-reveal-in.hit .w-reveal-t { color: var(--lime); }
.w-reveal-in p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.w-reveal-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; font-size: 13px; }
.w-reveal-group .ok { color: var(--lime); font-weight: 700; }

/* Anruf */
.w-call { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; background: linear-gradient(180deg, #1d1726, #0b0910); color: #fff; opacity: 0; transition: opacity .3s; }
.w-call.show { opacity: 1; }
.w-call-in { width: min(100%, var(--col)); display: flex; flex-direction: column; justify-content: space-between; padding: calc(48px + env(safe-area-inset-top, 0px)) 20px calc(34px + var(--safe-b)); }
.w-call-top { display: grid; justify-items: center; gap: 8px; text-align: center; }
.w-call-ring { position: relative; margin-bottom: 8px; }
.w-call-ring::before, .w-call-ring::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(200, 240, 60, .55); animation: ring 1.6s ease-out infinite; }
.w-call-ring::after { animation-delay: .8s; }
.w-call.live .w-call-ring::before, .w-call.live .w-call-ring::after { display: none; }
.w-call-av { width: 112px; height: 112px; font-size: 46px; }
.w-call-av span { width: 40px; height: 40px; font-size: 22px; right: -4px; bottom: -4px; }
.w-call-name { font-family: var(--display); font-size: 32px; letter-spacing: -0.02em; }
.w-call-sub { font-size: 15px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.w-call-cc { flex: 1; display: grid; align-content: center; min-height: 120px; padding: 18px 4px; }
.w-cc { margin: 0; font-size: 21px; line-height: 1.38; font-weight: 600; text-align: center; animation: msgIn .35s var(--out); }
.w-cc em { font-style: italic; font-weight: 500; color: rgba(255, 255, 255, .5); }
.w-cc.quiet { font-size: 17px; font-weight: 500; color: rgba(255, 255, 255, .55); font-style: italic; }
.w-cc.hint { font-size: 14px; color: rgba(255, 255, 255, .6); font-weight: 500; }
.w-cc.bubble { font-size: 16px; font-weight: 500; text-align: left; padding: 12px 14px; border-radius: 4px 18px 18px 18px; background: rgba(255, 255, 255, .1); }
.w-call.forgot .w-call-sub::after { content: ' · noch verbunden'; color: var(--lime); }
/* Sprechen: dezente Wellen unter dem Namen, solange eine Zeile läuft (mit Aufnahme oder nur Untertitel) */
.w-call-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 14px; opacity: 0; transition: opacity .25s; }
.w-call-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--lime); transform: scaleY(.25); transform-origin: center; }
.w-call.talking .w-call-wave { opacity: .75; }
.w-call.talking .w-call-wave i { animation: wTalk .9s ease-in-out infinite; }
.w-call.talking .w-call-wave i:nth-child(2) { animation-delay: -.6s; }
.w-call.talking .w-call-wave i:nth-child(3) { animation-delay: -.3s; }
.w-call.talking .w-call-wave i:nth-child(4) { animation-delay: -.75s; }
.w-call.talking .w-call-wave i:nth-child(5) { animation-delay: -.15s; }
@keyframes wTalk { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .w-call.talking .w-call-wave i { animation: none; transform: scaleY(.6); } }
.w-call-btns { display: flex; justify-content: space-around; gap: 20px; }
.w-call-btn { display: grid; justify-items: center; gap: 8px; color: #fff; font-size: 13px; }
.w-call-btn span { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; }
.w-call-btn span .i { width: 30px; height: 30px; }
.w-call-btn.yes span { background: #2fb45a; animation: wJiggle 1.2s ease-in-out infinite; }
.w-call-btn.no span { background: #e5334b; }
.w-call-btn.no span .i { transform: rotate(135deg); }
.w-call.live .w-call-btn.no span { width: 78px; height: 78px; }
.w-call-ok { width: 100%; background: #fff !important; color: var(--ink) !important; }
@keyframes wJiggle { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-12deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-8deg); } }

/* Während du weg warst */
.w-away { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 18px; background: rgba(15, 12, 20, 0); transition: background .3s; }
.w-away.show { background: rgba(15, 12, 20, .6); }
.w-away-in { width: min(100%, 400px); display: grid; gap: 12px; transform: translateY(20px); opacity: 0; transition: transform .4s var(--spring), opacity .3s; }
.w-away.show .w-away-in { transform: none; opacity: 1; }
.w-bon { position: relative; padding: 16px 16px 18px; background: #fffdf7; color: #1d1a22; border-radius: 6px; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px; box-shadow: var(--sh-2); -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; }
.w-bon .kicker { color: #1d1a22; font-family: var(--display); font-size: 13px; }
.w-bon-sub { display: block; color: #6c6672; margin-top: 2px; }
.w-bon ul { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1.5px dashed #cfc8bb; display: grid; gap: 8px; }
.w-bon li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; line-height: 1.38; }
.w-bon time { color: #6c6672; }
.w-bon-sum { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1.5px dashed #cfc8bb; font-weight: 700; }
.w-beilage { position: relative; min-height: 132px; border-radius: 18px; perspective: 700px; padding: 0; background: none; text-align: left; }
.w-beilage > span { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--spring); }
.w-beilage-back { display: grid; place-content: center; justify-items: center; gap: 4px; background: var(--lime); color: var(--ink); text-align: center; animation: wBob 1.6s ease-in-out infinite; }
.w-beilage-back strong { font-family: var(--display); font-size: 18px; }
.w-beilage-front { transform: rotateY(180deg); display: grid; align-content: center; gap: 2px; padding: 12px 14px 12px 76px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--line); font-size: 13px; line-height: 1.35; }
.w-beilage.r-selten .w-beilage-front { box-shadow: inset 0 0 0 2.5px #7c6cff; }
.w-beilage.r-legendaer .w-beilage-front { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 22px rgba(242, 176, 30, .35); }
.w-beilage-front small { color: var(--muted); font-size: 11.5px; }
.w-beilage-front strong { font-size: 15.5px; }
.w-beilage-emoji { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); font-size: 28px; }
.w-beilage.open .w-beilage-back { transform: rotateY(-180deg); }
.w-beilage.open .w-beilage-front { transform: none; }

/* Ende-Screen */
.w-ende { margin-top: 16px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); display: grid; gap: 8px; }
.w-ende-head { display: flex; justify-content: space-between; align-items: center; }
.w-ende-head .kicker { color: var(--lime-deep); }
.w-row, .w-pig-row { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--soft); text-align: left; }
.w-row.is-hit { background: var(--lime-soft); }
.w-row-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface); font-size: 20px; }
.w-row-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.w-row-txt strong { font-size: 14.5px; line-height: 1.25; }
.w-row-txt small { font-size: 12.8px; color: var(--muted); line-height: 1.38; }
.w-row-txt .w-row-meta { color: var(--text); }
.w-zettel { position: relative; padding: 12px 14px; border-radius: 4px; background: #fff6c9; color: #3b3220; font-family: 'Bricolage Grotesque', var(--display); font-size: 14.5px; line-height: 1.4; transform: rotate(-1.2deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.w-zettel small { display: block; font-family: var(--body); font-size: 11px; color: #7a6b45; margin-bottom: 4px; }
.w-zettel p { margin: 0; }
.w-zettel.end { margin: 2px 6px 4px; }
.w-rad-cta { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 18px; background: var(--hi); color: var(--on-hi); text-align: left; }
.w-rad-cta span { display: grid; gap: 2px; }
.w-rad-cta strong { font-family: var(--display); font-size: 18px; }
.w-rad-cta small { font-size: 12.5px; opacity: .8; }
.w-rad-cta-ic { font-size: 30px; animation: spin 6s linear infinite; }

/* Vorderrad */
.w-rad { text-align: center; }
.w-rad .sheet-title { margin: 4px 0 6px; }
.w-rad-stage { position: relative; width: min(78vw, 300px); margin: 12px auto 6px; }
.w-rad-svg { display: block; width: 100%; height: auto; overflow: visible; }
.w-rad-wheel { transform-origin: 130px 130px; transform-box: view-box; }
.w-rad-tire { fill: none; stroke: var(--ink); stroke-width: 10; }
[data-theme="dark"] .w-rad-tire { stroke: #000; }
.w-rad-seg { stroke: var(--ink); stroke-width: 1.2; }
.w-rad-spoke { stroke: rgba(23, 19, 31, .18); stroke-width: 1; }
.w-rad-hub { fill: var(--ink); stroke: var(--lime); stroke-width: 3; }
.w-rad-lbl { font-family: var(--body); font-size: 9.5px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.w-rad-lbl.light { fill: #fff; }
[data-theme="dark"] .w-rad-seg { stroke: #000; }
[data-theme="dark"] .w-rad-lbl:not(.light) { fill: #f4f1f8; }
.w-rad-clip { fill: var(--berry); stroke: var(--ink); stroke-width: 2; }
.w-rad-live { min-height: 40px; margin: 4px 0 8px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.w-rad-res { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--lime-soft); text-align: left; animation: msgIn .4s var(--out); }
.w-rad-res strong { font-family: var(--display); font-size: 18px; }
.w-rad-res p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
.w-rad-odds { margin-top: 12px; text-align: left; font-size: 13.5px; }
.w-rad-odds summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.w-rad-odds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.w-rad-odds li { display: flex; align-items: center; gap: 6px; }
.w-rad-odds li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.w-rad-odds li i { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--ink); flex: none; }

/* Kasse: Notiz */
.w-note-chips { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 10px; padding: 2px 16px 4px; scrollbar-width: none; }
.w-note-chips::-webkit-scrollbar { display: none; }
.w-note-chips .chip { flex: none; white-space: nowrap; min-height: 44px; padding: 8px 12px; font-size: 13.5px; box-shadow: inset 0 0 0 1.5px var(--line); }
.w-note-chips .chip.on { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.w-note-in { width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--soft); color: var(--text); font: inherit; font-size: 15px; outline: none; }
.w-note-in:focus { box-shadow: inset 0 0 0 2px var(--hi); }
.w-note .w-zettel { margin: 10px 4px 2px; }

/* Sparschwein */
.w-pig { display: grid; gap: 8px; }
.w-pig .sec-head { margin-bottom: 4px; }
.w-pig-row { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.w-bb-wrap { display: block; }
.w-bb-wrap summary { display: flex; gap: 12px; align-items: flex-start; list-style: none; cursor: pointer; }
.w-bb-wrap summary::-webkit-details-marker { display: none; }
.w-bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 10px; }
.w-bb { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--soft); text-align: center; }
.w-bb b { font-size: 22px; color: var(--muted); font-family: var(--display); }
.w-bb small { font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.w-bb.on { background: var(--lime-soft); }
.w-bb.on small { color: var(--text); font-weight: 600; }
.w-bb.r-selten.on { box-shadow: inset 0 0 0 1.5px #7c6cff; }
.w-bb.r-legendaer.on { box-shadow: inset 0 0 0 1.5px var(--gold); }
@media (max-width: 370px) {
  .w-card { min-height: 120px; }
  .w-card-hint { font-size: 11.5px; }
  .w-cc { font-size: 19px; }
  .w-cheer-btn { padding: 0 12px 0 10px; }
  .w-bet-act .btn { font-size: 14px; }
  .w-bet-act { grid-template-columns: 1.2fr 1fr; }
}

/* ===================================================================== Schrittweises Freischalten (stufen.js) */
@keyframes unIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes unPop { 0% { opacity: 0; transform: scale(.3) rotate(-25deg); } 60% { opacity: 1; transform: scale(1.18) rotate(8deg); } 100% { transform: none; } }
@keyframes unSweep { 0% { transform: translateX(-120%) skewX(-18deg); } 55%, 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes unRing { 0% { box-shadow: 0 0 0 0 rgba(200, 240, 60, .55); } 100% { box-shadow: 0 0 0 14px rgba(200, 240, 60, 0); } }
/* Ende-Screen: "Neu freigeschaltet" */
.un-card { position: relative; overflow: hidden; margin-top: 16px; padding: 14px; border-radius: 22px; background: var(--panel); color: #fff; box-shadow: var(--sh-2), inset 0 0 0 1.5px rgba(200, 240, 60, .35); display: grid; gap: 10px; animation: unIn .6s .5s var(--spring) both; }
.un-card .kicker { position: relative; }
.un-glow { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); animation: unSweep 2.6s 1s ease-in-out 2; pointer-events: none; }
.un-items { position: relative; display: grid; gap: 8px; }
.un-item { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .07); text-align: left; color: inherit; animation: unIn .5s calc(.8s + var(--i) * .18s) var(--spring) both; }
button.un-item:active { transform: scale(.98); }
.un-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--lime); font-size: 23px; animation: unPop .7s calc(.95s + var(--i) * .18s) var(--spring) both, unRing 1.2s calc(1.4s + var(--i) * .18s) ease-out 2; }
.un-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.un-txt strong { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }
.un-txt small { font-size: 12.8px; line-height: 1.38; color: rgba(255, 255, 255, .72); }
.un-n { font-family: var(--body); font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--ink); vertical-align: 2px; }
.un-go { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 13.5px; }
/* Tracking: kleiner Hinweis oben */
.un-toast { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 96; width: calc(min(100%, var(--col)) - 24px); transform: translate(-50%, -150%); transition: transform .5s var(--spring); pointer-events: none; }
.un-toast.show { transform: translate(-50%, 0); }
.un-t-in { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--panel); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 0 0 1.5px rgba(200, 240, 60, .4); text-align: left; }
.un-t-in::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); animation: unSweep 2.4s .5s ease-in-out 1 both; pointer-events: none; }
.un-t-ic { flex: none; display: flex; }
.un-t-ic i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); font-style: normal; font-size: 24px; animation: unPop .7s .25s var(--spring) both; }
.un-t-ic i + i { margin-left: -12px; box-shadow: 0 0 0 3px var(--panel); animation-delay: .4s; }
.un-t-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.un-t-txt small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.un-t-txt strong { font-family: var(--display); font-size: 17px; line-height: 1.2; }
.un-t-txt em { font-style: normal; font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .7); }
.demo .un-toast { display: none !important; }
/* Start: Tagesbonus zum ersten Mal */
.sp-daily.un-fresh { position: relative; animation: unIn .6s .2s var(--spring) both, unRing 1.3s .9s ease-out 2; }
.un-ribbon { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--berry); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; animation: unPop .6s .5s var(--spring) both; }
/* Sparschwein: was noch kommt */
.un-bar { margin-top: 16px; padding: 12px 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 10px; }
.un-bar.only-tk { padding: 10px 14px; }
.un-bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.un-bar-head .kicker { color: var(--lime-deep); }
.un-bar-head small { font-size: 12.5px; color: var(--muted); }
.un-sils { display: flex; gap: 8px; flex-wrap: wrap; }
.un-sil { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); font-size: 22px; box-shadow: inset 0 0 0 1.5px var(--line); }
.un-sil.on { background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px var(--lime-deep); }
.un-sil i { position: absolute; right: -3px; top: -3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); font-style: normal; font-size: 10.5px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--line); }
.un-next { font-size: 13px; color: var(--muted); line-height: 1.38; }
.un-next b { color: var(--text); font-weight: 600; }
.un-tk { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.un-tk > span:first-child { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ink); font-size: 16px; }
/* Gruppe: Host löst Express-Ticket ein */
.grp-tk { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-1); text-align: left; }
.grp-tk-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ink); font-size: 20px; }
.grp-tk-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.grp-tk-txt strong { font-size: 14.5px; line-height: 1.25; }
.grp-tk-txt small { font-size: 12.5px; color: var(--muted); }
.grp-tk-box { width: 24px; height: 24px; flex: none; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--ring); transition: background .2s; }
.grp-tk.on { background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px var(--lime-deep); }
.grp-tk.on .grp-tk-box { background: var(--lime-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: none; }
[data-theme="dark"] .un-card, [data-theme="dark"] .un-t-in { box-shadow: var(--sh-2), inset 0 0 0 1.5px rgba(200, 240, 60, .3); }
[data-theme="dark"] .un-ic, [data-theme="dark"] .un-t-ic i { color: var(--ink); }
[data-theme="dark"] .rt-tk-ic, [data-theme="dark"] .rt-tk-on > span:first-child, [data-theme="dark"] .un-tk > span:first-child, [data-theme="dark"] .grp-tk-ic { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
