/* ═══════════════════════════════════════════════════════════════════════
   KinkMatch — Designsystem im iOS-27-Stil
   Eine Datei für die ganze App (ersetzt app.css, m3-palettes.css, ios.css).

   iOS 27 verfeinert Liquid Glass: mehr Streuung für bessere Lesbarkeit,
   ein Regler für die Glas-Stärke (getönt ↔ klar) und Anpassung an
   „Kontrast erhöhen“ / „Transparenz reduzieren“.

   Gliederung
     1  Farben & Tokens (hell/dunkel, Akzente)
     2  Liquid-Glass-Material
     3  Grundlagen & Typografie
     4  App-Rahmen: Kopfzeile, Tab-Leiste, Bildschirme
     5  Bedienelemente: Knöpfe, Chips, Segmente, Suche, Schalter, Felder
     6  Listen, Karten, Leerzustände
     7  Entdecken
     8  Matches
     9  Chat
    10  Tracker & Challenges
    11  Ebenen: Sheets, Seiten, Dialoge, Toasts
    12  Ideen-Ansicht, Konto, Sonstiges
    13  Sperrbildschirm
    14  Login
    15  Mobile-Feinschliff, Barrierefreiheit, Animationen
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══ 1  Farben & Tokens ═══════════════════════════════════════════════ */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --g: .5;                                   /* Glas-Stärke: 0 getönt … 1 klar (per JS) */

  /* Akzent (Standard Violett) */
  --tint: #BF5AF2; --tint-2: #FF375F;

  /* Dunkel */
  --bg: #000000;               /* Systemhintergrund */
  --bg-2: #1C1C1E;             /* Gruppierter Inhalt (Karten, Listen) */
  --bg-3: #2C2C2E;             /* Darüberliegend */
  --bg-4: #3A3A3C;
  --label: #FFFFFF;
  --label-2: rgba(235, 235, 245, .62);
  --label-3: rgba(235, 235, 245, .32);
  --sep: rgba(84, 84, 88, .62);
  --fill: rgba(118, 118, 128, .26);
  --fill-2: rgba(118, 118, 128, .18);
  --fill-3: rgba(118, 118, 128, .12);
  --bubble-them: #26252A;
  --red: #FF453A; --green: #30D158; --yellow: #FFD60A; --orange: #FF9F0A;
  --shadow-1: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow-2: 0 12px 40px rgba(0, 0, 0, .45);

  /* Glas (Werte für g = 0 … 1 werden unten verrechnet) */
  --glass-rgb: 40 40 44;
  --glass-a-min: .32;  --glass-a-max: .78;      /* Deckkraft klar … getönt */
  --glass-rim: rgba(255, 255, 255, .14);
  --glass-hi: rgba(255, 255, 255, .24);
  --glass-shadow: 0 12px 36px rgba(0, 0, 0, .42), 0 1px 3px rgba(0, 0, 0, .3);

  /* Maße */
  --r-xs: 10px; --r-sm: 14px; --r-md: 20px; --r-lg: 26px; --r-xl: 36px; --r-full: 999px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-h: 100dvh;
  --vgap: 0px;                  /* iOS-Webapp: beim Start fehlende Höhe (per JS) */
  --nav-safe: max(0px, calc(var(--safe-bottom) - 22px)); /* Leiste sitzt knapp über der Home-Anzeige */
  --topbar-h: 56px;
  --nav-h: 86px;                /* Tab-Leiste + Abstand */
  --content-max: 680px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.45, .5, 1);

  color-scheme: dark;

  /* Kompatibilität: Namen, die der App-Code direkt verwendet */
  --md-primary: var(--tint);
  --md-secondary: var(--tint);
  --md-tertiary: var(--tint-2);
  --md-error: var(--red);
  --md-success: var(--green);
  --md-star: var(--yellow);
  --md-star-container: color-mix(in srgb, var(--yellow) 22%, transparent);
  --md-on-star-container: var(--yellow);
  --md-surface: var(--bg);
}
:root[data-theme="light"] {
  --tint: #AF52DE; --tint-2: #FF2D55;
  --bg: #F2F2F7; --bg-2: #FFFFFF; --bg-3: #FFFFFF; --bg-4: #E5E5EA;
  --label: #000000;
  --label-2: rgba(60, 60, 67, .62);
  --label-3: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .29);
  --fill: rgba(120, 120, 128, .2);
  --fill-2: rgba(120, 120, 128, .16);
  --fill-3: rgba(118, 118, 128, .12);
  --bubble-them: #E9E9EB;
  --red: #FF3B30; --green: #34C759; --yellow: #FFCC00; --orange: #FF9500;
  --shadow-1: 0 2px 12px rgba(0, 0, 0, .07);
  --shadow-2: 0 12px 40px rgba(0, 0, 0, .14);
  --glass-rgb: 255 255 255;
  --glass-a-min: .4;  --glass-a-max: .86;
  --glass-rim: rgba(255, 255, 255, .75);
  --glass-hi: rgba(255, 255, 255, .95);
  --glass-shadow: 0 12px 36px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .07);
  --md-on-star-container: #9A7400;
  color-scheme: light;
}
/* Akzente als iOS-Systemfarben */
:root[data-accent="pink"]   { --tint: #FF375F; --tint-2: #BF5AF2; }
:root[data-accent="violet"] { --tint: #BF5AF2; --tint-2: #FF375F; }
:root[data-accent="blue"]   { --tint: #0A84FF; --tint-2: #64D2FF; }
:root[data-accent="orange"] { --tint: #FF9F0A; --tint-2: #FF375F; }
:root[data-accent="green"]  { --tint: #30D158; --tint-2: #64D2FF; }
:root[data-accent="red"]    { --tint: #FF453A; --tint-2: #FF9F0A; }
:root[data-theme="light"][data-accent="pink"]   { --tint: #FF2D55; --tint-2: #AF52DE; }
:root[data-theme="light"][data-accent="violet"] { --tint: #AF52DE; --tint-2: #FF2D55; }
:root[data-theme="light"][data-accent="blue"]   { --tint: #007AFF; --tint-2: #32ADE6; }
:root[data-theme="light"][data-accent="orange"] { --tint: #FF9500; --tint-2: #FF2D55; }
:root[data-theme="light"][data-accent="green"]  { --tint: #34C759; --tint-2: #32ADE6; }
:root[data-theme="light"][data-accent="red"]    { --tint: #FF3B30; --tint-2: #FF9500; }

/* ═══ 2  Liquid-Glass-Material ════════════════════════════════════════ */
:root {
  /* getönt (g=0) → dicht & gut lesbar, klar (g=1) → transparent */
  --glass-a: calc(var(--glass-a-max) - (var(--glass-a-max) - var(--glass-a-min)) * var(--g));
  --glass: rgb(var(--glass-rgb) / var(--glass-a));
  --glass-strong: rgb(var(--glass-rgb) / calc(var(--glass-a) + .12));
  --glass-blur: blur(calc(16px + 14px * (1 - var(--g)))) saturate(185%);
}
.glass, .topbar-actions, .tab-capsule, .tab-search, .fab, .deck-btn, .snackbar, .sheet, .dialog,
.cx-composer, .cx-jump, .page-bar .icon-btn, .topbar-back, .lock-pad button:not(.lock-aux), .auth-container {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(255, 255, 255, .04), var(--glass-shadow);
}
.sheet, .dialog, .auth-container { background: var(--glass-strong); }
/* Lichtkante: der typische Glanz oben am Glas */
.topbar-actions::before, .tab-capsule::before, .sheet::before, .dialog::before, .snackbar::before, .cx-composer::before, .auth-container::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%, rgba(255,255,255,0) 75%, rgba(255,255,255,.05));
}
:root[data-theme="light"] .topbar-actions::before, :root[data-theme="light"] .tab-capsule::before, :root[data-theme="light"] .sheet::before,
:root[data-theme="light"] .dialog::before, :root[data-theme="light"] .cx-composer::before, :root[data-theme="light"] .auth-container::before {
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 45%);
}
/* Kontrast erhöhen & Transparenz reduzieren (manuell oder per Systemeinstellung) */
:root.hc.hc { --glass-a-min: .9; --glass-a-max: .97; --sep: rgba(127,127,135,.9); --label-2: rgba(235,235,245,.85); --glass-rim: rgba(255,255,255,.5); }
:root.hc.hc[data-theme="light"] { --label-2: rgba(30,30,35,.85); --glass-rim: rgba(0,0,0,.35); }
html.hc .glass, html.hc .tab-capsule, html.hc .sheet, html.hc .dialog, html.hc .topbar-actions, html.hc .cx-composer { border-width: 1.5px; }
@media (prefers-contrast: more) {
  :root { --glass-a-min: .9; --glass-a-max: .97; --sep: rgba(127,127,135,.9); }
}
:root.no-glass.no-glass { --glass: var(--bg-3); --glass-strong: var(--bg-3); --glass-blur: none; }
html.no-glass body::before { display: none; }
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--bg-3); --glass-strong: var(--bg-3); --glass-blur: none; }
  body::before { display: none; }
}

/* ═══ 3  Grundlagen & Typografie ═════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.35; letter-spacing: -0.01em;
  color: var(--label); background: var(--bg);
  min-height: var(--app-h); overflow-x: hidden; overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
/* Farbiges Umgebungslicht hinter dem Inhalt – gibt dem Glas Tiefe */
body::before {
  content: ''; position: fixed; inset: -25vh -25vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 8% 0%, color-mix(in srgb, var(--tint) 24%, transparent), transparent 70%),
    radial-gradient(36vmax 36vmax at 100% 38%, color-mix(in srgb, var(--tint-2) 18%, transparent), transparent 70%),
    radial-gradient(44vmax 44vmax at 30% 105%, color-mix(in srgb, var(--tint) 12%, transparent), transparent 70%);
}
:root[data-theme="light"] body::before { opacity: .7; }
body.layer-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: none; cursor: pointer; touch-action: manipulation; }
a { color: var(--tint); }
img { max-width: 100%; display: block; }
svg.i { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; display: block; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.xs { width: 16px; height: 16px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--tint) 35%, transparent); }
button, .nav-item, .chip, .deck-btn, .match-row, .wish-card, .idea-card, .list-item.clickable { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.t-headline { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.t-title-l { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.t-title { font-size: 17px; font-weight: 600; }
.t-body { font-size: 17px; color: var(--label-2); }
.t-label { font-size: 13px; font-weight: 600; color: var(--label-2); }
.t-small { font-size: 13px; color: var(--label-2); }
.muted { color: var(--label-2); }
.count { font-size: 13px; font-weight: 500; color: var(--label-2); }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

/* ═══ 4  App-Rahmen ══════════════════════════════════════════════════ */
/* Kopfzeile: großer Titel links, Glas-Werkzeugleiste rechts */
.topbar { position: sticky; top: 0; z-index: 50; padding-top: var(--safe-top); transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
html.scrolled .topbar {
  background: rgb(var(--glass-rgb) / calc(var(--glass-a) * .7));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 .5px 0 var(--sep);
}
.topbar-inner { max-width: var(--content-max); margin: 0 auto; height: var(--topbar-h); display: flex; align-items: center; gap: 8px; padding: 0 12px 0 18px; }
.topbar-title { flex: 1; min-width: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: font-size .25s var(--ease); }
html.scrolled .topbar-title { font-size: 20px; letter-spacing: -0.02em; }
.topbar-title small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--label-2); }
.topbar-title small.cx-typing { color: var(--tint); font-style: italic; }
.topbar-back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-left: -6px; }
.topbar-actions { position: relative; display: flex; align-items: center; padding: 3px; border-radius: var(--r-full); }
.topbar-actions > * { position: relative; }
.topbar-actions .icon-btn, .avatar-btn { width: 40px; height: 40px; }
.mode-chip { height: 34px; margin: 0 3px; padding: 0 12px 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-full); background: var(--fill-2); font-size: 14px; font-weight: 600; color: var(--label); }
.mode-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mode-chip.adult { background: var(--tint); color: #fff; }
.mode-chip.adult .dot { background: #fff; }
.avatar-btn { border-radius: 50%; display: grid; place-items: center; }

main.screens { max-width: var(--content-max); margin: 0 auto; padding: 4px 16px calc(var(--nav-h) + var(--nav-safe) + 24px); }
.screen { animation: screenIn .4s var(--ease) both; }

/* Tab-Leiste: schwebende Glas-Kapsel + runder Such-Knopf (iOS 26/27) */
.navbar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-safe) + 10px - var(--vgap)); z-index: 60; pointer-events: none; }
.navbar-inner { max-width: 520px; margin: 0 auto; padding: 0 14px; display: flex; align-items: center; gap: 10px; }
.tab-capsule { position: relative; flex: 1; display: flex; height: 64px; padding: 4px; gap: 2px; border-radius: var(--r-full); pointer-events: auto; }
.tab-search { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: var(--label); pointer-events: auto; position: relative; }
.tab-search:active, .nav-item:active { transform: scale(.94); }
.nav-item { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: var(--r-full); color: var(--label); font-size: 10.5px; font-weight: 600; letter-spacing: 0; transition: background-color .3s var(--ease), color .2s var(--ease); }
.nav-item.active { color: var(--tint); background: var(--fill-2); }
.nav-pill { position: relative; height: 30px; display: grid; place-items: center; }
.nav-item svg.i { width: 26px; height: 26px; }
.nav-item .ic-on { display: none; }
.nav-item.active .ic-on { display: block; }
.nav-item.active .ic-off { display: none; }
.badge { position: absolute; top: -2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: var(--r-full); background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.badge.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 2px; left: calc(50% + 10px); }
.icon-btn .badge { top: 3px; left: auto; right: 3px; }

/* Schwebender Aktionsknopf (z. B. „Aktivität“ im Tracker) */
.fab { position: fixed; right: 16px; z-index: 55; bottom: calc(var(--nav-h) + var(--nav-safe) + 12px - var(--vgap)); height: 50px; padding: 0 20px 0 16px; border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; background: var(--tint); color: #fff; border-color: rgba(255,255,255,.3); }
.fab:active { transform: scale(.95); }

/* ═══ 5  Bedienelemente ══════════════════════════════════════════════ */
.btn, .btn-tonal, .btn-outlined, .btn-text, .btn-danger {
  height: 46px; padding: 0 22px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .15s var(--ease), opacity .15s var(--ease);
}
.btn svg, .btn-tonal svg, .btn-outlined svg, .btn-text svg, .btn-danger svg { width: 19px; height: 19px; margin-left: -4px; }
.btn { background: var(--tint); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 4px 16px color-mix(in srgb, var(--tint) 32%, transparent); }
.btn-tonal { background: color-mix(in srgb, var(--tint) 16%, transparent); color: var(--tint); }
.btn-outlined { background: var(--fill-2); color: var(--tint); }
.btn-text { color: var(--tint); padding: 0 10px; }
.btn-danger { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.btn:active, .btn-tonal:active, .btn-outlined:active, .btn-text:active, .btn-danger:active { transform: scale(.97); opacity: .75; }
.btn[disabled], .btn-tonal[disabled], .btn-outlined[disabled] { opacity: .4; pointer-events: none; }
.btn.lg, .btn-tonal.lg, .btn-outlined.lg, .btn-danger.lg { height: 52px; font-size: 17px; }
.btn.block, .btn-tonal.block, .btn-outlined.block, .btn-danger.block { width: 100%; }

.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--label); position: relative; transition: transform .15s var(--ease), opacity .15s; }
.icon-btn:active { transform: scale(.9); opacity: .6; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.sm svg { width: 20px; height: 20px; }
.icon-btn.tonal { background: var(--fill-2); }
.icon-btn.filled { background: var(--tint); color: #fff; }
.icon-btn.on { color: var(--tint); }
.icon-btn.star-on { background: var(--md-star-container); color: var(--yellow); }
.icon-btn.done-on { background: var(--tint); color: #fff; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-padding: 16px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; flex-shrink: 0; border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 6px; background: var(--fill-2); color: var(--label); font-size: 15px; font-weight: 500; white-space: nowrap; position: relative; }
.chip svg { width: 16px; height: 16px; margin-left: -3px; }
.chip.selected { background: var(--tint); color: #fff; }
.chip.assist { background: color-mix(in srgb, var(--tint) 16%, transparent); color: var(--tint); }
.chip.static { pointer-events: none; }
.chip.selected .count { color: rgba(255,255,255,.8); }

.segmented { display: flex; height: 36px; padding: 2px; border-radius: var(--r-full); background: var(--fill); }
.segmented button { flex: 1; min-width: 0; border-radius: var(--r-full); display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--label); white-space: nowrap; transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.segmented button.on { background: #FFFFFF; color: #000; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
:root:not([data-theme="light"]) .segmented button.on { background: #636366; color: #fff; }
.tab-badge { margin-left: 2px; background: var(--red); color: #fff; border-radius: var(--r-full); padding: 0 6px; font-size: 11px; font-weight: 700; }

.searchbar { height: 40px; width: 100%; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 12px; border-radius: var(--r-full); background: var(--fill); color: var(--label-2); }
.searchbar svg.i { width: 20px; height: 20px; }
.searchbar input { flex: 1; min-width: 0; height: 100%; background: none; border: none; outline: none; font-size: 17px; color: var(--label); }
.searchbar input::placeholder { color: var(--label-2); }
.searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; }

.switch { width: 51px; height: 31px; flex-shrink: 0; border-radius: var(--r-full); background: var(--fill); position: relative; transition: background-color .25s var(--ease); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06); transition: transform .3s var(--spring); }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }
.check { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--label-3); display: grid; place-items: center; color: transparent; }
.check.on { background: var(--tint); border-color: var(--tint); color: #fff; }
.check svg { width: 15px; height: 15px; }
.radio { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--label-3); display: grid; place-items: center; }
.radio.on { background: var(--tint); border-color: var(--tint); }
.radio.on::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.list-item > svg.check-mark, .check-mark { color: var(--tint) !important; width: 20px; height: 20px; }

.field { display: block; position: relative; }
.field-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--label-2); margin: 0 16px 6px; }
.field-hint { font-size: 13px; color: var(--label-2); margin: 6px 16px 0; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: none; outline: none; border-radius: var(--r-sm); background: var(--bg-2); color: var(--label); font-size: 17px; appearance: none; -webkit-appearance: none; transition: box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 35%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--label-3); }
.textarea { min-height: 104px; resize: vertical; line-height: 1.4; }
.select { padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.form { display: flex; flex-direction: column; gap: 18px; }
.file-drop { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1.5px dashed var(--label-3); border-radius: var(--r-sm); color: var(--label-2); cursor: pointer; font-weight: 500; }
.file-drop input { display: none; }
input[type=range] { width: 100%; accent-color: var(--tint); }

/* ═══ 6  Listen, Karten, Leerzustände ════════════════════════════════ */
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--label-2); margin: 26px 16px 7px; }
.section-title:first-child { margin-top: 8px; }
.card { background: var(--bg-2); border-radius: var(--r-lg); padding: 16px; }
.card.filled { background: var(--bg-3); }
.card.outlined { background: var(--bg-2); }
.list { background: var(--bg-2); border-radius: var(--r-lg); overflow: hidden; }
.list.plain { background: transparent; border-radius: 0; overflow: visible; }
.list-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 10px 16px; position: relative; text-align: left; color: var(--label); }
.list-item + .list-item::before { content: ''; position: absolute; top: 0; right: 0; left: 16px; height: .5px; background: var(--sep); }
.list-item:has(> .li-lead) + .list-item:has(> .li-lead)::before, .list-item:has(> .act-icon) + .list-item::before { left: 60px; }
.list-item:has(> .li-lead.emoji)::before, .list-item:has(> .avatar)::before { left: 78px; }
.list.plain .list-item + .list-item::before { left: 16px; }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:active { background: var(--fill-3); }
.li-lead { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; color: var(--tint); border-radius: 8px; }
.li-lead svg.i { width: 22px; height: 22px; }
.li-lead.emoji { width: 48px; height: 48px; border-radius: 13px; background: var(--fill-3); font-size: 26px; overflow: hidden; white-space: nowrap; line-height: 1; }
.li-body { flex: 1; min-width: 0; }
.li-title { font-size: 17px; line-height: 1.3; color: var(--label); }
.li-title.ellipsis, .li-sub.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { font-size: 14px; line-height: 1.35; color: var(--label-2); margin-top: 2px; }
.li-trail { display: flex; align-items: center; gap: 0; flex-shrink: 0; color: var(--label-2); }
.list-item > svg.i:last-child { width: 18px; height: 18px; color: var(--label-3); }
.li-danger .li-lead, .li-danger .li-title { color: var(--red); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 48px 24px; }
.empty-emoji { font-size: 56px; line-height: 1; margin-bottom: 4px; }
.empty-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.empty-text { font-size: 15px; color: var(--label-2); max-width: 320px; }
.empty .row { margin-top: 12px; }
.loading { padding: 40px; text-align: center; }
.spinner { width: 28px; height: 28px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--fill); border-top-color: var(--tint); animation: spin .8s linear infinite; }
.status-line { font-size: 14px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--fill-3); color: var(--label-2); }
.status-line.ok { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.status-line.warn { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-full); background: var(--fill-2); color: var(--label-2); white-space: nowrap; }
.pill.primary { background: color-mix(in srgb, var(--tint) 18%, transparent); color: var(--tint); }
.pill.success { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.pill.star { background: var(--md-star-container); color: var(--md-on-star-container); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--tint) 14%, var(--bg-2)); font-size: 14px; }
.banner > svg { color: var(--tint); }
.avatar { border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 65%, #fff), var(--tint)); color: #fff; font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.s32 { width: 32px; height: 32px; font-size: 13px; }
.avatar.s40 { width: 40px; height: 40px; font-size: 15px; }
.avatar.s56 { width: 56px; height: 56px; font-size: 21px; }
.avatar.s96 { width: 96px; height: 96px; font-size: 36px; }

/* ═══ 7  Entdecken ═══════════════════════════════════════════════════ */
.discover { display: flex; flex-direction: column; gap: 14px; min-height: calc(var(--app-h) - var(--safe-top) - var(--topbar-h) - var(--nav-h) - var(--nav-safe) - 32px); }
.deck { position: relative; flex: 1; display: flex; flex-direction: column; }
.deck > .empty { flex: 1; justify-content: center; }
.idea-card {
  flex: 1; min-height: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 30px 24px 22px; text-align: center; border-radius: var(--r-xl);
  background: rgb(var(--glass-rgb) / calc(var(--glass-a) + .1));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 24px 60px rgba(0,0,0,.18);
  touch-action: pan-y; will-change: transform;
  animation: cardIn .45s var(--ease) both;
}
.idea-card.out-left { animation: outLeft .32s var(--ease) forwards; }
.idea-card.out-right { animation: outRight .32s var(--ease) forwards; }
.idea-emoji { font-size: 84px; line-height: 1.05; }
.idea-image { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-md); }
.idea-title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.idea-desc { font-size: 17px; line-height: 1.45; color: var(--label-2); max-width: 34ch; }
.deck-flag { position: absolute; top: 16px; left: 16px; padding: 4px 10px; border-radius: var(--r-full); background: var(--tint); color: #fff; font-size: 12px; font-weight: 600; }
.swipe-stamp { position: absolute; top: 24px; padding: 4px 14px; border-radius: var(--r-full); border: 3px solid; font-weight: 800; font-size: 18px; letter-spacing: .08em; opacity: 0; pointer-events: none; background: rgb(var(--glass-rgb) / .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.swipe-stamp.like { right: 20px; color: var(--green); border-color: var(--green); transform: rotate(10deg); }
.swipe-stamp.nope { left: 20px; color: var(--red); border-color: var(--red); transform: rotate(-10deg); }
.deck-actions { display: flex; align-items: center; justify-content: center; gap: 24px; padding-top: 16px; }
.deck-btn { position: relative; display: grid; place-items: center; border-radius: 50%; transition: transform .15s var(--ease); }
.deck-btn:active { transform: scale(.9); }
.deck-btn svg { width: 28px; height: 28px; }
.deck-btn.pass { order: 1; width: 64px; height: 64px; color: var(--label); }
.deck-btn.like { order: 2; width: 80px; height: 80px; background: var(--tint); color: #fff; border-color: rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px color-mix(in srgb, var(--tint) 40%, transparent); }
.deck-btn.like svg { width: 34px; height: 34px; }
.deck-btn.star { order: 3; width: 64px; height: 64px; color: var(--yellow); }
.deck-meta { text-align: center; font-size: 13px; color: var(--label-2); padding-top: 4px; }
body.compact .idea-card { padding: 18px 18px 14px; gap: 8px; }
body.compact .idea-emoji { font-size: 64px; }

/* ═══ 8  Matches ═════════════════════════════════════════════════════ */
.matches-head { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 6px; }
.filter-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 0 14px; height: 36px; border-radius: var(--r-full); background: color-mix(in srgb, var(--tint) 12%, var(--bg-2)); font-size: 14px; font-weight: 500; color: var(--tint); }
.filter-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wish-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.wish-strip::-webkit-scrollbar { display: none; }
.wish-card { flex: 0 0 136px; min-height: 120px; padding: 12px; border-radius: var(--r-md); display: flex; flex-direction: column; gap: 6px; text-align: left; background: color-mix(in srgb, var(--yellow) 16%, var(--bg-2)); position: relative; overflow: hidden; }
.wish-card .we { font-size: 28px; line-height: 1; }
.wish-card .wt { font-size: 15px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wish-card .wb { font-size: 12px; color: var(--label-2); margin-top: auto; }
.match-list { display: flex; flex-direction: column; background: var(--bg-2); border-radius: var(--r-lg); overflow: hidden; }
.match-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 8px 10px 12px; position: relative; cursor: pointer; }
.match-row + .match-row::before { content: ''; position: absolute; top: 0; right: 0; left: 72px; height: .5px; background: var(--sep); }
.match-row:active { background: var(--fill-3); }
.match-row.done { opacity: .55; }
.match-row.done .li-title { text-decoration: line-through; }
.match-row .li-title.ellipsis { white-space: normal; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 500; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); display: inline-block; margin-right: 6px; vertical-align: middle; }
.group-head { display: flex; align-items: center; gap: 10px; margin: 18px 6px 8px; font-weight: 600; }
.load-more { margin: 14px auto 0; display: flex; }

/* ═══ 9  Chat ════════════════════════════════════════════════════════ */
body.chat-mode main.screens { padding-bottom: 0; }
.chat { display: flex; flex-direction: column; position: relative; margin: 0 -16px; height: calc(var(--app-h) - var(--safe-top) - var(--topbar-h) - 4px); }
.cx-filters { flex-shrink: 0; margin: 0; padding: 2px 16px 8px; }
.cx-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 4px 14px calc(var(--nav-h) + var(--nav-safe) + 76px); -webkit-overflow-scrolling: touch; }
.cx-msgs > * { flex-shrink: 0; }
.cx-more { margin: 4px 0 8px; }
.cx-day { display: flex; justify-content: center; margin: 16px 0 8px; }
.cx-day span { font-size: 12px; font-weight: 600; color: var(--label-2); }
.cx-new { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--tint); font-size: 12px; font-weight: 700; }
.cx-new::before, .cx-new::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--tint) 45%, transparent); }
.cx-msg { display: flex; flex-direction: column; max-width: 78%; margin-top: 2px; position: relative; transition: transform .2s var(--ease); }
.cx-msg.first { margin-top: 10px; }
.cx-msg.mine { align-self: flex-end; align-items: flex-end; }
.cx-msg.theirs { align-self: flex-start; align-items: flex-start; }
.cx-bubble { padding: 8px 13px; border-radius: 20px; font-size: 17px; line-height: 1.3; word-break: break-word; -webkit-user-select: text; user-select: text; }
.cx-msg.mine .cx-bubble { background: var(--tint); color: #fff; }
.cx-msg.theirs .cx-bubble { background: var(--bubble-them); color: var(--label); }
.cx-msg.mine.last .cx-bubble:not(.media):not(.card):not(.emoji) { border-bottom-right-radius: 6px; }
.cx-msg.theirs.last .cx-bubble:not(.media):not(.card):not(.emoji) { border-bottom-left-radius: 6px; }
.cx-bubble a { color: inherit; text-decoration: underline; }
.cx-bubble.emoji { background: none !important; font-size: 42px; line-height: 1.1; padding: 0 2px; }
.cx-bubble.media { background: none !important; padding: 0; position: relative; }
.cx-bubble.media img, .cx-bubble.media video { display: block; max-width: 100%; max-height: 320px; border-radius: 20px; cursor: zoom-in; }
.cx-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none; }
.cx-uploading { width: 180px; height: 140px; display: grid; place-items: center; background: var(--fill-2); border-radius: 20px; }
.cx-bubble.card { background: none !important; padding: 0; }
.cx-meta { font-size: 11px; color: var(--label-2); margin: 3px 8px 0; }
.cx-flash .cx-bubble { animation: cxFlash 1.4s var(--ease); }
.cx-swiping::before { content: '↩\FE0E'; position: absolute; left: -28px; top: 50%; transform: translateY(-50%); color: var(--tint); font-weight: 700; }
.cx-quote { display: flex; flex-direction: column; gap: 1px; max-width: 100%; margin: 0 0 6px; padding: 4px 9px; border-left: 3px solid currentColor; border-radius: 8px; background: color-mix(in srgb, currentColor 12%, transparent); font-size: 13px; cursor: pointer; }
.cx-quote b { font-size: 12px; }
.cx-quote span { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-reacts { display: flex; gap: 4px; margin-top: -6px; padding: 0 6px; z-index: 1; }
.cx-react { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px; border-radius: var(--r-full); background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--glass-rim); font-size: 14px; }
.cx-react span { font-size: 12px; font-weight: 600; color: var(--label-2); }
.cx-react.mine { background: color-mix(in srgb, var(--tint) 28%, var(--bg-2)); }
.cx-card { min-width: 220px; max-width: 280px; padding: 12px 14px; border-radius: 22px; background: var(--bg-2); border: .5px solid var(--sep); color: var(--label); text-align: left; cursor: pointer; }
.cx-card-head { display: flex; align-items: center; gap: 10px; }
.cx-card-head .e { font-size: 26px; line-height: 1; }
.cx-card-head b { display: block; font-size: 15px; }
.cx-card-head small { display: block; font-size: 12px; color: var(--label-2); }
.cx-card-note { margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: var(--fill-3); font-size: 14px; }
.cx-card-hint { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--tint); }
.cx-upd-wrap { align-self: center; width: min(100%, 420px); margin: 8px 0; border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--bg-2) 80%, transparent); }
.cx-upd-sum, .cx-upd { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; text-align: left; color: var(--label); }
.cx-upd-sum .e, .cx-upd .e { font-size: 20px; min-width: 24px; text-align: center; flex-shrink: 0; }
.cx-upd-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cx-upd-body b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-upd-body small { font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-upd-wrap.open .cx-upd-body small { white-space: normal; }
.cx-chev { color: var(--label-2); transition: transform .2s var(--ease); }
.cx-upd-wrap.open .cx-chev { transform: rotate(180deg); }
.cx-upd-list .cx-upd { box-shadow: inset 0 .5px 0 var(--sep); }
.cx-upd.standalone { align-self: center; width: min(100%, 420px); margin: 4px 0; border-radius: 18px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); }
.cx-upd:active, .cx-upd-sum:active { background: var(--fill-3); }
.cx-jump { position: absolute; right: 14px; bottom: calc(var(--nav-h) + var(--nav-safe) + 74px); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--label); z-index: 3; }
.cx-composer { position: absolute; left: 10px; right: 10px; bottom: calc(var(--nav-h) + var(--nav-safe) + 4px); z-index: 4; padding: 6px; border-radius: 30px; }
.cx-row { display: flex; align-items: flex-end; gap: 6px; position: relative; }
.cx-row textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 140px; padding: 9px 12px; resize: none; border: none; outline: none; background: transparent; color: var(--label); font-size: 17px; line-height: 1.35; }
.cx-row .icon-btn { width: 40px; height: 40px; flex-shrink: 0; }
.cx-row .icon-btn:first-child { background: var(--fill-2); }
.cx-send { background: var(--tint) !important; color: #fff !important; }
.cx-send[disabled] { opacity: .35; }
.cx-reply { display: flex; align-items: center; gap: 6px; margin: 2px 4px 6px; position: relative; }
.cx-reply .cx-quote { flex: 1; min-width: 0; margin: 0; border-left-color: var(--tint); color: var(--label); }
.cx-menu-preview { font-size: 14px; color: var(--label-2); padding: 0 4px 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-menu-reacts { display: flex; justify-content: space-between; gap: 4px; padding: 8px; margin-bottom: 10px; border-radius: var(--r-full); background: var(--fill-2); }
.cx-menu-reacts button { width: 46px; height: 46px; border-radius: 50%; font-size: 26px; }
.cx-menu-reacts button:active { background: var(--fill); transform: scale(1.15); }
.cx-list .list-item { min-height: 76px; }
.cx-list-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.cx-unread-text { color: var(--label) !important; font-weight: 600; }
.cx-viewer, .cx-viewer .page-bar { background: #000 !important; color: #fff; }
.cx-viewer .icon-btn { color: #fff; }
.cx-viewer .page-content { max-width: none; padding: 0; height: 100%; display: grid; place-items: center; }
.cx-viewer img, .cx-viewer video { max-width: 100%; max-height: calc(100dvh - 80px); object-fit: contain; }

/* ═══ 10  Tracker & Challenges ═══════════════════════════════════════ */
#screen-tracker { padding-bottom: 72px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 22px; background: var(--bg-2); text-align: left; position: relative; overflow: hidden; }
.stat .v { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.stat .l { font-size: 13px; font-weight: 500; color: var(--label-2); }
.stat.primary .v { color: var(--tint); }
.stat.success .v { color: var(--green); }
.stat.star .v { color: var(--yellow); }
.stat.tertiary .v { color: var(--tint-2); }
button.stat:active { background: var(--bg-3); }
.quick-log { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-log .btn, .quick-log .btn-tonal { width: 100%; padding: 0 12px; }
.progress-card { display: flex; align-items: center; gap: 18px; }
.ring { width: 76px; height: 76px; position: relative; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--fill); stroke-width: 8; }
.ring .fill { fill: none; stroke: var(--tint); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: var(--tint); }
.bar-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.bar-row .n { width: 42%; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { flex: 1; height: 8px; border-radius: var(--r-full); background: var(--fill); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--tint); border-radius: var(--r-full); transition: width .7s var(--ease); }
.bar-row .c { min-width: 46px; text-align: right; font-size: 12px; color: var(--label-2); white-space: nowrap; }
.act-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.act-icon.sex { background: color-mix(in srgb, var(--tint) 18%, transparent); color: var(--tint); }
.act-icon.solo { background: color-mix(in srgb, var(--tint-2) 18%, transparent); color: var(--tint-2); }
.act-icon.match { background: var(--md-star-container); color: var(--md-on-star-container); }
.act-icon.ch { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.cal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.cal-head .t-title { flex: 1; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-size: 12px; font-weight: 600; color: var(--label-2); text-align: center; padding: 4px 0 6px; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding-top: 7px; font-size: 15px; position: relative; }
.cal-day.has, .cal-day.tap { cursor: pointer; }
.cal-day.has:active, .cal-day.tap:active { background: var(--fill-3); }
.cal-day.today { background: var(--tint); color: #fff; font-weight: 700; }
.cal-dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; max-width: 30px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--sep); font-size: 12px; color: var(--label-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .cal-dot { width: 9px; height: 9px; }
.challenge { display: flex; flex-direction: column; gap: 10px; }
.challenge-head { display: flex; align-items: center; gap: 14px; }
.challenge-head .li-lead.emoji { width: 48px; height: 48px; font-size: 24px; }
.challenge.done { background: color-mix(in srgb, var(--green) 10%, var(--bg-2)); }
.level { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: var(--fill-3); }
.level.active { background: color-mix(in srgb, var(--tint) 10%, var(--fill-3)); }
.level.done { background: color-mix(in srgb, var(--green) 12%, var(--fill-3)); }
.level.locked { opacity: .5; }
.level-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.dayc { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; position: relative; background: var(--fill-3); border: 1.5px solid var(--label-3); transition: transform .1s; }
.dayc::after { content: ''; position: absolute; inset: -4px; }
.dayc:active { transform: scale(.85); }
.dayc.success { background: var(--green); border-color: transparent; }
.dayc.fail { background: var(--red); border-color: transparent; }
.dayc.skip { background: var(--label-3); border-color: transparent; }
.dayc.future { background: transparent; border-style: dashed; opacity: .5; cursor: default; }
.ch-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--label-2); }
.ch-meta .ok { color: var(--green); font-weight: 600; }
.ch-meta .ko { color: var(--red); font-weight: 600; }
.ch-quick { display: flex; align-items: center; gap: 8px; }
.ch-quick-l { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ch-quick-l b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-quick-l span { font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qbtn { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--fill-2); color: var(--label-2); transition: transform .12s var(--ease), background-color .2s var(--ease); }
.qbtn:active { transform: scale(.9); }
.qbtn.ok.on { background: var(--green); color: #fff; }
.qbtn.ko.on { background: var(--red); color: #fff; }
.qbtn.note { width: 38px; background: transparent; }

/* ═══ 11  Ebenen: Sheets, Seiten, Dialoge, Toasts ════════════════════ */
.layer { position: fixed; inset: 0 0 calc(0px - var(--vgap)); z-index: 200; display: flex; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); animation: fadeIn .25s var(--ease) both; }
:root[data-theme="light"] .scrim { background: rgba(0, 0, 0, .22); }
.layer.closing .scrim { animation: fadeOut .2s var(--ease) forwards; }

.layer.sheet-layer { align-items: flex-end; justify-content: center; padding: 0 8px calc(var(--safe-bottom) + 8px); }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - var(--safe-top) - 24px); display: flex; flex-direction: column; border-radius: 38px; animation: sheetIn .45s var(--ease) both; }
.layer.closing .sheet { animation: sheetOut .25s var(--ease) forwards; }
.sheet-handle { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 8px auto 2px; flex-shrink: 0; cursor: grab; position: relative; }
.sheet-drag-zone { touch-action: none; }
.sheet.dragging { animation: none; transition: none; }
.sheet.snap-back { transition: transform .3s var(--ease); }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px 22px; flex-shrink: 0; position: relative; }
.sheet-head .t-title-l { flex: 1; font-size: 20px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px 20px; position: relative; -webkit-overflow-scrolling: touch; }
.sheet .list { background: color-mix(in srgb, var(--bg-2) 75%, transparent); }
.sheet .section-title:first-child { margin-top: 4px; }
.sheet-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: .5px solid var(--sep); flex-shrink: 0; position: relative; }
@media (min-width: 700px) { .layer.sheet-layer { align-items: center; padding: 24px; } .sheet-handle { display: none; } .sheet-head { padding-top: 18px; } }

.layer.page-layer { flex-direction: column; background: var(--bg); animation: pageIn .35s var(--ease) both; }
.layer.page-layer.closing { animation: pageOut .22s var(--ease) forwards; }
.layer.page-layer::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(60vmax 40vmax at 0% 0%, color-mix(in srgb, var(--tint) 14%, transparent), transparent 70%); }
.page-bar { padding-top: var(--safe-top); flex-shrink: 0; transition: background-color .2s, box-shadow .2s; }
.page-bar.scrolled { background: rgb(var(--glass-rgb) / calc(var(--glass-a) * .7)); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 .5px 0 var(--sep); }
.page-bar .topbar-inner { padding-left: 10px; }
.page-bar .topbar-title { font-size: 20px; letter-spacing: -0.02em; }
.page-bar .topbar-actions { background: none; border: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 6px; }
.page-bar .topbar-actions::before { display: none; }
.page-bar .icon-btn { border-radius: 50%; }
.page-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.page-content { max-width: var(--content-max); margin: 0 auto; padding: 8px 16px calc(32px + var(--safe-bottom)); }
.search-page .page-bar .topbar-title { font-size: 17px; }
.search-page .searchbar { height: 40px; }

.layer.dialog-layer { align-items: center; justify-content: center; padding: 32px; z-index: 300; }
.dialog { position: relative; width: 100%; max-width: 320px; max-height: calc(100dvh - 64px); overflow-y: auto; padding: 22px 18px 16px; border-radius: 34px; text-align: center; animation: dialogIn .3s var(--ease) both; }
.layer.closing .dialog { animation: fadeOut .15s var(--ease) forwards; }
.dialog > * { position: relative; }
.dialog-icon { color: var(--tint); display: flex; justify-content: center; margin-bottom: 10px; }
.dialog-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.dialog-text { font-size: 14px; line-height: 1.4; white-space: pre-line; opacity: .85; }
.dialog .input { margin-top: 12px; text-align: center; background: var(--fill-3); }
.dialog-actions { display: flex; gap: 8px; margin-top: 18px; }
.dialog-actions > * { flex: 1; height: 46px; padding: 0 12px; border-radius: var(--r-full); font-size: 16px; font-weight: 600; }
.dialog-actions .btn-text { background: var(--fill-2); color: var(--label); }
.dialog-actions .btn-danger { background: var(--red); color: #fff; }

.snackbar-host { position: fixed; left: 0; right: 0; z-index: 400; bottom: calc(var(--nav-h) + var(--nav-safe) + 12px - var(--vgap)); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 12px; pointer-events: none; }
body.layer-open .snackbar-host { bottom: calc(var(--safe-bottom) + 24px - var(--vgap)); }
body:has(#fab:not([hidden])) .snackbar-host { bottom: calc(var(--nav-h) + var(--nav-safe) + 74px - var(--vgap)); }
.snackbar { position: relative; pointer-events: auto; width: 100%; max-width: 440px; min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 20px; border-radius: var(--r-full); background: var(--glass-strong); font-size: 15px; font-weight: 500; animation: snackIn .35s var(--spring) both; }
.snackbar.out { animation: fadeOut .2s forwards; }
.snackbar .msg-text { flex: 1; min-width: 0; padding: 8px 0; position: relative; }
.snackbar .msg-text b { display: block; }
.snackbar .btn-text { color: var(--tint); font-weight: 700; position: relative; }

/* ═══ 12  Ideen-Ansicht, Konto, Sonstiges ════════════════════════════ */
.idea-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0 16px; text-align: center; }
.idea-hero .idea-emoji { font-size: 72px; }
.idea-hero .idea-title { font-size: 26px; }
.idea-meta { font-size: 13px; color: var(--label-2); text-align: center; }
.idea-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 4px 0 8px; }
.idea-actions .btn, .idea-actions .btn-tonal { padding: 0 18px; }
.comments { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.comment { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-sm); transition: background-color .4s; }
.comment.hl { background: color-mix(in srgb, var(--yellow) 18%, transparent); }
.comment .cb { flex: 1; min-width: 0; }
.comment .cm { font-size: 13px; color: var(--label-2); }
.comment .cm b { color: var(--label); font-weight: 600; margin-right: 6px; }
.comment .ct { font-size: 16px; margin-top: 2px; word-break: break-word; }
.comment.reply { margin-left: 44px; }
.comment-composer { display: flex; gap: 8px; align-items: center; width: 100%; }
.comment-composer input { flex: 1; min-width: 0; height: 44px; padding: 0 18px; border: none; outline: none; border-radius: var(--r-full); background: var(--fill-2); font-size: 17px; }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 20px; text-align: center; }
.profile-head .avatar { position: relative; }
.edit-av { position: absolute; right: -2px; bottom: -2px; background: var(--bg-3) !important; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px !important; }
.profile-stats div { text-align: center; padding: 10px 0; }
.profile-stats b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.profile-stats span { font-size: 12px; color: var(--label-2); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.swatch { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.swatch svg { opacity: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.swatch.on { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--label); }
.swatch.on svg { opacity: 1; }
.glass-card { padding: 14px 16px; }
.glass-scale { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--label-2); }
.glass-scale input { flex: 1; }
.code-display { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 34px; font-weight: 700; letter-spacing: .3em; color: var(--tint); text-align: center; padding: 8px 0; }
.counter { display: flex; align-items: center; gap: 8px; }
.counter b { min-width: 28px; text-align: center; font-size: 18px; }
.crop-stage { width: 280px; height: 280px; margin: 0 auto; border-radius: var(--r-md); overflow: hidden; position: relative; background: #000; touch-action: none; cursor: grab; }
.crop-stage canvas { width: 100%; height: 100%; display: block; }
.crop-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 69.5%, rgba(0,0,0,.55) 70%); }
.celebrate { position: fixed; inset: 0 0 calc(0px - var(--vgap)); z-index: 500; display: grid; place-items: center; pointer-events: none; }
.celebrate .cbox { padding: 26px 34px; border-radius: var(--r-xl); text-align: center; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-rim); box-shadow: var(--shadow-2); animation: pop .6s var(--spring) both; }
.celebrate .cbox .e { font-size: 52px; }
.celebrate .cbox .t { font-size: 22px; font-weight: 700; }
.confetti { position: absolute; top: -10px; width: 9px; height: 16px; border-radius: 3px; animation: fall 1.5s cubic-bezier(.3,.6,.4,1) forwards; }

/* ═══ 13  Sperrbildschirm ════════════════════════════════════════════ */
html.app-locked body > *:not(#lockScreen):not(.snackbar-host) { visibility: hidden !important; }
html.app-locked body { overflow: hidden; }
.lock-screen {
  position: fixed; inset: 0 0 calc(0px - var(--vgap)); z-index: 1000; display: grid; place-items: center;
  padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 16px); color: #fff;
  background:
    radial-gradient(60vmax 60vmax at 20% 10%, color-mix(in srgb, var(--tint) 45%, transparent), transparent 70%),
    radial-gradient(60vmax 60vmax at 90% 90%, color-mix(in srgb, var(--tint-2) 40%, transparent), transparent 70%),
    #0b0b10;
}
.lock-box { width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lock-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.lock-icon svg { width: 28px; height: 28px; }
.lock-title { font-size: 20px; font-weight: 500; }
.lock-dots { display: flex; gap: 16px; margin: 6px 0; }
.lock-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); transition: background-color .15s; }
.lock-dots i.on { background: #fff; }
.lock-dots.shake { animation: lockShake .4s; }
.lock-msg { min-height: 20px; font-size: 14px; color: #FF6961; }
.lock-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 26px; }
.lock-pad button { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 400; color: #fff; }
.lock-pad button:not(.lock-aux) { --glass: rgba(255,255,255,.14); --glass-rim: rgba(255,255,255,.22); --glass-hi: rgba(255,255,255,.35); --glass-shadow: none; }
.lock-pad button:active { background: rgba(255,255,255,.42) !important; }
.lock-pad .lock-aux { font-size: 24px; color: #fff; }
.lock-forgot { color: #fff !important; opacity: .85; margin-top: 6px; }

/* ═══ 14  Login ══════════════════════════════════════════════════════ */
body.auth { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-top) + 20px) 16px calc(var(--safe-bottom) + 20px); }
.auth-container { position: relative; width: 100%; max-width: 400px; padding: 28px 22px; border-radius: 38px; }
.auth-container > * { position: relative; }
.auth-container .logo { text-align: center; margin-bottom: 22px; }
.auth-container .logo::before { content: ''; display: block; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 18px; background: url('/assets/icon-192.png') center / cover; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.auth-container .logo h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.auth-container .logo p { font-size: 15px; color: var(--label-2); margin-top: 4px; }
.auth-container .tabs { display: flex; height: 36px; padding: 2px; margin-bottom: 18px; border-radius: var(--r-full); background: var(--fill); }
.auth-container .tab { flex: 1; border-radius: var(--r-full); font-size: 14px; font-weight: 600; color: var(--label); }
.auth-container .tab.active { background: #fff; color: #000; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
:root:not([data-theme="light"]) .auth-container .tab.active { background: #636366; color: #fff; }
.auth-container .form-container { display: none; }
.auth-container .form-container.active { display: block; }
.auth-container .form-group { margin-bottom: 14px; }
.auth-container label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--label-2); margin: 0 14px 6px; }
.auth-container input { width: 100%; height: 50px; padding: 0 16px; border: none; outline: none; border-radius: var(--r-sm); background: var(--fill-2); color: var(--label); font-size: 17px; }
.auth-container input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 35%, transparent); }
.auth-container .button { width: 100%; height: 52px; margin-top: 6px; border-radius: var(--r-full); background: var(--tint); color: #fff; font-size: 17px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 18px color-mix(in srgb, var(--tint) 35%, transparent); }
.auth-container .button:active { transform: scale(.98); opacity: .85; }
.auth-container .button:disabled { opacity: .5; }
.auth-container .info-text { margin-top: 16px; font-size: 14px; text-align: center; color: var(--label-2); }
.auth-container .error, .auth-container .success { display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; }
.auth-container .error.show { display: block; background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.auth-container .success.show { display: block; background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }

/* ═══ 15  Mobile-Feinschliff, Barrierefreiheit, Animationen ═════════ */
body.kb-open .navbar, body.kb-open .fab { display: none; }
body.kb-open .snackbar-host { display: none; }
body.kb-open .chat { height: calc(var(--app-h) - var(--safe-top) - var(--topbar-h) - 4px); }
body.kb-open .cx-composer { bottom: 8px; }
body.kb-open .cx-msgs { padding-bottom: 80px; }
@media (hover: hover) {
  .list-item.clickable:hover, .match-row:hover, .cx-upd:hover { background: var(--fill-3); }
  .icon-btn:hover { background: var(--fill-3); }
}
@media (max-height: 760px) {
  .idea-card .idea-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
  .idea-card .idea-desc.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
}
@media (max-height: 720px) {
  .idea-card { padding: 20px 18px 14px; gap: 8px; }
  .idea-emoji { font-size: 64px; }
  .idea-title { font-size: 23px; }
  .idea-desc { font-size: 15px; }
  .deck-actions { padding-top: 10px; gap: 20px; }
  .deck-btn.pass, .deck-btn.star { width: 56px; height: 56px; }
  .deck-btn.like { width: 70px; height: 70px; }
}
@media (max-height: 620px) {
  .idea-emoji { font-size: 50px; }
  .deck-meta { display: none; }
}
@media (max-width: 360px) {
  main.screens { padding-left: 12px; padding-right: 12px; }
  .chips, .wish-strip, .chat { margin-left: -12px; margin-right: -12px; }
  .chips, .wish-strip { padding-left: 12px; padding-right: 12px; }
  .topbar-inner { padding-left: 14px; }
  .topbar-title { font-size: 27px; }
  .tab-search { width: 58px; height: 58px; }
  .tab-capsule { height: 58px; }
  .nav-label { font-size: 9.5px; }
}
@media (pointer: coarse) {
  .icon-btn.sm { width: 40px; height: 40px; }
  .chip { height: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }

@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes outLeft { to { transform: translateX(-130%) rotate(-16deg); opacity: 0; } }
@keyframes outRight { to { transform: translateX(130%) rotate(16deg); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetIn { from { transform: translateY(105%); } }
@keyframes sheetOut { to { transform: translateY(105%); } }
@keyframes pageIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes pageOut { to { transform: translateX(30px); opacity: 0; } }
@keyframes dialogIn { from { opacity: 0; transform: scale(1.08); } }
@keyframes snackIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .2; } }
@keyframes cxFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--tint-2); } 100% { box-shadow: none; } }
@keyframes lockShake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

/* ═══ 16  Intensität, Filter, Erinnerungsbuch, Rückblick ═══════════════ */
.deck-bar { display: flex; align-items: center; gap: 6px; }
.deck-bar .chips { flex: 1; min-width: 0; margin: 0 -16px 0 0; padding-left: 2px; }
.deck-filter { position: relative; flex-shrink: 0; width: 34px; height: 34px; background: var(--fill-2); }
.deck-filter .badge { top: -5px; right: -5px; left: auto; }
.trait-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.trait-icons { font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.mem { margin-bottom: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.mem-photo { display: block; width: 100%; min-height: 120px; max-height: 340px; object-fit: cover; border-radius: var(--r-md); background: var(--fill-3); margin-bottom: 8px; }
.mem-head { display: flex; align-items: center; gap: 12px; }
.mem-note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.mem-rate { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--label-2); }
.hearts-off { opacity: .35; }
.heart-pick { display: flex; gap: 4px; margin-bottom: 6px; }
.heart-pick button { width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.mb-code { font: 600 20px/1.6 ui-monospace, Menlo, monospace; text-align: center; padding: 16px; border-radius: var(--r-md); background: var(--fill-3); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.recap-hero { text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--tint) 26%, var(--bg-2)), color-mix(in srgb, var(--tint-2) 26%, var(--bg-2))); }
.entry-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.entry-cards button { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 22px; background: var(--bg-2); color: var(--label); text-align: left; font-size: 15px; font-weight: 600; }
.entry-cards span { font-size: 24px; }

/* ═══ 17  Rückblick-Story ═════════════════════════════════════════════ */
.story-cover { display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 16px; padding: 22px 20px; border-radius: 28px; text-align: left; color: #fff; background: linear-gradient(120deg, #5B2BE0, #E0408A 60%, #F59F3A); }
.story-cover b { display: block; font-size: 22px; letter-spacing: -.02em; }
.story-cover i { font-style: normal; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.25); font-size: 20px; flex-shrink: 0; padding-left: 4px; }
.layer.story { background: #000; color: #fff; overflow: hidden; }
.st-bg { position: absolute; inset: -30%; background: radial-gradient(45% 40% at 30% 30%, var(--b), transparent 70%), radial-gradient(50% 45% at 75% 70%, color-mix(in srgb, var(--b) 60%, #fff 10%), transparent 70%), var(--a); animation: stDrift 14s ease-in-out infinite alternate; }
@keyframes stDrift { to { transform: rotate(18deg) scale(1.15); } }
.st-bars { position: absolute; z-index: 3; top: calc(var(--safe-top) + 10px); left: 12px; right: 12px; display: flex; gap: 4px; pointer-events: none; }
.st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.st-bars b { display: block; height: 100%; width: 0; background: #fff; }
.st-close { position: absolute; z-index: 4; top: calc(var(--safe-top) + 20px); right: 8px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.st-stage { position: absolute; inset: 0; z-index: 2; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.st-slide { height: 100%; max-width: 520px; margin: 0 auto; padding: calc(var(--safe-top) + 70px) 26px calc(var(--safe-bottom) + 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; animation: stIn .6s var(--ease) both; }
@keyframes stIn { from { opacity: 0; transform: translateY(28px) scale(.97); } }
.st-slide p { font-size: 18px; line-height: 1.4; opacity: .92; overflow-wrap: anywhere; }
.st-kicker { font-size: 20px; font-weight: 600; }
.st-huge { font-size: clamp(40px, 13vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.st-big { font-size: clamp(28px, 8.5vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; overflow-wrap: anywhere; }
.st-num { font-size: clamp(110px, 38vw, 180px); line-height: .95; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.st-emoji { font-size: 92px; line-height: 1.1; }
.st-emoji.pop, .st-cloud span { animation: stPop .7s var(--spring) both; animation-delay: var(--d, .2s); }
.st-emoji.float { animation: stFloat 3s ease-in-out infinite alternate; }
@keyframes stPop { from { transform: scale(0) rotate(-25deg); } }
@keyframes stFloat { to { transform: translateY(-14px); } }
.st-rank { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.st-rank > div { display: flex; align-items: center; gap: 14px; text-align: left; animation: stSide .5s var(--ease) both; animation-delay: var(--d); }
@keyframes stSide { from { opacity: 0; transform: translateX(-40px); } }
.st-rank b { font-size: 34px; font-weight: 800; width: 30px; }
.st-rank span { flex: 1; min-width: 0; }
.st-rank em { display: block; font-style: normal; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.st-rank i { display: block; height: 8px; margin-top: 6px; border-radius: 4px; width: var(--w); background: rgba(255,255,255,.9); animation: stGrow .9s var(--ease) both; animation-delay: calc(var(--d) + .2s); }
@keyframes stGrow { from { width: 0; } }
.st-rank small { font-size: 16px; white-space: nowrap; }
.st-quiz { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.st-quiz button, .st-btn { min-height: 54px; padding: 12px 22px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font-size: 17px; font-weight: 600; }
.st-quiz .right { background: #fff; color: #0A7A6C; }
.st-quiz .wrong { opacity: .5; }
.st-btn { background: #fff; color: #1C1C1E; min-height: 48px; }
.st-btn.ghost { background: rgba(255,255,255,.2); color: #fff; }
.st-meter { width: 100%; height: 64px; display: flex; border-radius: 32px; overflow: hidden; font-weight: 700; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.st-meter span { display: grid; place-items: center; min-width: 48px; animation: stGrow2 .9s var(--ease) both; }
@keyframes stGrow2 { from { flex: 0; } }
.st-cal { width: 100%; max-width: 330px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.st-cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 14px; opacity: .55; }
.st-cal .on { background: #fff; color: #5B2BE0; font-weight: 700; opacity: 1; }
.st-months { width: 100%; height: 170px; display: flex; gap: 6px; align-items: stretch; }
.st-months div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.st-months i { height: var(--h); min-height: 4px; border-radius: 6px; background: #fff; transform-origin: bottom; animation: stRise .7s var(--ease) both; animation-delay: var(--d); }
@keyframes stRise { from { transform: scaleY(0); } }
.st-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 34px; }
.st-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.st-tags span { padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; animation: stIn .5s var(--ease) both; animation-delay: var(--d); }
.st-photos { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-photos.n1 { grid-template-columns: 1fr; }
.st-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: rgba(255,255,255,.15); border: 4px solid #fff; animation: stPop .6s var(--spring) both; animation-delay: var(--d); }
.st-sum { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-sum div { padding: 18px 10px; border-radius: 24px; background: rgba(255,255,255,.18); }
.st-sum b { display: block; font-size: 42px; line-height: 1.1; letter-spacing: -.03em; }
.story.paused .st-bars { opacity: .3; }

/* ═══ 18  Symbole statt Emojis ════════════════════════════════════════ */
.empty-icon { width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 26px; background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint); }
.empty-icon svg { width: 42px; height: 42px; }
.lv { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; vertical-align: baseline; }
.lv1 { background: var(--green); } .lv2 { background: var(--orange); } .lv3 { background: var(--red); }
.chip .lv, .segmented .lv { margin-right: 2px; }
.trait-icons { display: inline-flex; gap: 8px; color: var(--label-2); }
.hearts { display: inline-flex; gap: 2px; color: var(--tint); }
.hearts-off { display: inline-flex; gap: 2px; color: var(--label-2); }
.heart-pick button { display: grid; place-items: center; color: var(--label-3); }
.heart-pick button.on { color: var(--tint); }
.heart-pick svg { width: 32px; height: 32px; }
.entry-cards svg { width: 26px; height: 26px; color: var(--tint); }
.entry-cards span, .t-small:has(> svg), .pill:has(> svg), .ok:has(> svg), .st-rank small, .st-tags span { display: inline-flex; align-items: center; gap: 4px; }
.cx-play svg { width: 44px; height: 44px; }
.cx-upd .e svg, .cx-upd-sum .e svg { width: 20px; height: 20px; color: var(--tint); display: block; }
.celebrate .cbox .e svg { width: 56px; height: 56px; margin: 0 auto; display: block; }
.act-icon svg { width: 22px; height: 22px; }
.story-cover i { padding-left: 0; }
.st-icon { width: 128px; height: 128px; display: grid; place-items: center; border-radius: 42px; background: rgba(255,255,255,.2); }
.st-icon svg { width: 72px; height: 72px; }
.st-icon.pop { animation: stPop .7s var(--spring) .2s both; }
.st-icon.float { animation: stFloat 3s ease-in-out infinite alternate; }

/* ═══ 19  Kategorie-Farben & Ideen-Stile ══════════════════════════════ */
:root { --cat-l: .8; --cat-c: .068; }
:root[data-theme="light"] { --cat-l: .74; --cat-c: .085; }
.cat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cat); flex-shrink: 0; margin-right: 6px; }
.chip .cat-dot { margin-right: 0; }
.idea-card.cat-tint { background: linear-gradient(165deg, color-mix(in srgb, var(--cat) 24%, var(--bg-2)), color-mix(in srgb, var(--cat) 7%, var(--bg-2)) 75%); border-color: color-mix(in srgb, var(--cat) 34%, transparent); }
.wish-card.cat-tint, .mem.cat-tint, .cx-card.cat-tint { background: color-mix(in srgb, var(--cat) 15%, var(--bg-2)); }
.cx-card.cat-tint { border-color: color-mix(in srgb, var(--cat) 30%, transparent); }
.idea-hero.cat-tint { margin: 0 -4px 12px; padding: 18px 12px; border-radius: 26px; background: linear-gradient(165deg, color-mix(in srgb, var(--cat) 22%, transparent), color-mix(in srgb, var(--cat) 5%, transparent)); }
.match-row.cat-row .li-sub { color: color-mix(in srgb, var(--cat) 62%, var(--label-2)); }
.li-lead.emoji[style] { background: color-mix(in srgb, var(--cat) 20%, transparent); color: var(--cat); }
.cat-tint .trait-row > .chip.assist:first-child, .idea-hero.cat-tint > .chip.assist { background: color-mix(in srgb, var(--cat) 24%, transparent); color: color-mix(in srgb, var(--cat) 60%, var(--label)); }
.bar-row[style] .bar > i { background: var(--cat); }
/* 1 · Symbol */
:root[data-idea="symbol"] .idea-emoji { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 34px; color: color-mix(in srgb, var(--cat) 30%, #17141f); background: linear-gradient(150deg, color-mix(in srgb, var(--cat) 80%, #fff), var(--cat)); box-shadow: 0 8px 24px rgba(0,0,0,.16); flex-shrink: 0; }
:root[data-idea="symbol"] .idea-emoji svg { width: 58px; height: 58px; }
:root[data-idea="symbol"] .idea-hero .idea-emoji { width: 88px; height: 88px; border-radius: 28px; }
:root[data-idea="symbol"] .idea-hero .idea-emoji svg { width: 48px; height: 48px; }
:root[data-idea="symbol"] .li-lead.emoji[style] { color: color-mix(in srgb, var(--cat) 30%, #17141f); background: linear-gradient(150deg, color-mix(in srgb, var(--cat) 80%, #fff), var(--cat)); }
:root[data-idea="symbol"] .we svg, :root[data-idea="symbol"] .cx-card-head .e svg { width: 28px; height: 28px; color: var(--cat); display: block; }
/* 3 · Typografie */
:root[data-idea="type"] .idea-card { align-items: flex-start; text-align: left; background: linear-gradient(160deg, color-mix(in srgb, var(--cat) 42%, var(--bg-2)), color-mix(in srgb, var(--cat) 12%, var(--bg-2)) 80%); }
:root[data-idea="type"] .idea-card .trait-row { justify-content: flex-start; }
:root[data-idea="type"] .idea-card .idea-title { font-size: clamp(34px, 11vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -.045em; hyphens: auto; overflow-wrap: anywhere; text-wrap: initial; }
:root[data-idea="type"] .idea-card .idea-desc { text-align: left; }
:root[data-idea="type"] .idea-hero { align-items: flex-start; text-align: left; padding: 22px 18px; }
:root[data-idea="type"] .idea-hero .trait-row { justify-content: flex-start; }
:root[data-idea="type"] .idea-hero .idea-title { font-size: clamp(30px, 9vw, 40px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; hyphens: auto; overflow-wrap: anywhere; }
:root[data-idea="type"] .idea-hero .idea-desc, :root[data-idea="type"] .idea-hero .idea-meta { text-align: left; }
:root[data-idea="type"] .wish-card .wt { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; -webkit-line-clamp: 4; hyphens: auto; }
/* Auswahl */
.style-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.style-pick button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--label-2); }
.style-pick button.on { color: var(--tint); font-weight: 600; }
.sp-card { width: 100%; height: 138px; padding: 12px 8px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--label); font-size: 13px; line-height: 1.15; background: linear-gradient(165deg, color-mix(in srgb, var(--cat) 28%, var(--bg-2)), color-mix(in srgb, var(--cat) 8%, var(--bg-2))); border: 3px solid transparent; }
.style-pick .on .sp-card { border-color: var(--tint); }
.sp-art { font-size: 42px; line-height: 1; }
.sp-card[data-style="symbol"] .sp-art { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: color-mix(in srgb, var(--cat) 30%, #17141f); background: linear-gradient(150deg, color-mix(in srgb, var(--cat) 80%, #fff), var(--cat)); }
:root[data-theme="light"] .match-row.cat-row .li-sub { color: color-mix(in srgb, var(--cat) 35%, #4a4a50); }


/* Motiv: einfarbige Zeichnung im Pastellton der Kategorie */
.mono { font-family: 'Idea Glyphs', sans-serif; font-weight: 400; font-style: normal; font-variant-emoji: text; line-height: 1; letter-spacing: 0; color: var(--cat); }
:root[data-theme="light"] .mono { color: color-mix(in srgb, var(--cat) 62%, #1c1c1e); }
:root[data-idea="type"] .idea-card { justify-content: flex-end; background: color-mix(in srgb, var(--cat) 19%, var(--bg-2)); }
:root[data-idea="type"] .idea-card .idea-emoji { container-type: size; flex: 1 1 0; min-height: 52px; align-self: stretch; display: block; line-height: 1; overflow: hidden; }
:root[data-idea="type"] .idea-card .idea-emoji .mono { display: block; font-size: min(100cqh, 132px); }
:root[data-idea="type"] .idea-card .idea-title.long { font-size: clamp(25px, 7.6vw, 36px); }
:root[data-idea="type"] .idea-card .idea-title { font-size: clamp(30px, 9.4vw, 46px); }
:root[data-idea="type"] .idea-hero { background: color-mix(in srgb, var(--cat) 17%, transparent); }
:root[data-idea="type"] .idea-hero .idea-emoji { font-size: 92px; line-height: 1; margin-bottom: 6px; }
:root[data-idea="type"] .li-lead.emoji[style] { background: color-mix(in srgb, var(--cat) 20%, transparent); }
:root[data-idea="type"] .wish-card .we { font-size: 44px; }
:root[data-idea="type"] .cx-card-head .e { font-size: 30px; }
:root[data-idea="type"] .cx-upd .e .mono { font-size: 20px; color: var(--label-2); }
.st-icon .mono { font-size: 76px; color: #fff; } .st-cloud .mono { color: #fff; }
.sp-card[data-style="type"] { align-items: flex-start; text-align: left; justify-content: space-between; padding: 14px 12px; background: color-mix(in srgb, var(--cat) 22%, var(--bg-2)); }
.sp-card[data-style="type"] b { font-size: 18px; line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }

/* ═══ 22  Gemeinsam machen ═══════════════════════════════════════════ */
.tg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tg-tiles button { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; padding: 13px 14px; border-radius: 22px; background: var(--bg-2); color: var(--label); text-align: left; min-width: 0; }
.tg-tiles svg { width: 26px; height: 26px; color: var(--tint); grid-row: span 2; }
.tg-tiles b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-tiles small { font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-tiles button.hot, .tg-plan.hot { box-shadow: inset 0 0 0 2px var(--tint); }
.tg-tiles button:active, .tg-plan:active, .tg-week:active { opacity: .7; }
.tg-plan, .tg-week { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 22px; background: var(--bg-2); color: var(--label); text-align: left; }
.tg-plan > svg, .tg-week > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--label-3); }
.tg-list { display: grid; gap: 10px; }
.tg-list .tg-plan { margin: 0; }
.tg-date { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-content: center; text-align: center; background: color-mix(in srgb, var(--tint) 16%, transparent); color: var(--tint); line-height: 1.05; }
.tg-date b { font-size: 19px; } .tg-date small { font-size: 11px; font-weight: 600; }
.tg-week > span:nth-child(2) { flex: 1; min-width: 0; }
.tg-week small { display: block; font-size: 12px; color: var(--label-2); } .tg-week b { display: block; font-size: 16px; }
.tg-week .we { width: 46px; height: 46px; display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.tg-week .we svg { width: 26px; height: 26px; color: var(--tint); }
.tg-week.cat-tint, .tg-idea.cat-tint { background: color-mix(in srgb, var(--cat) 16%, var(--bg-2)); }
.tg-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.tg-acts { display: grid; gap: 10px; margin-top: 20px; }
.tg-acts .row > * { flex: 1; }
.tg-step { flex-wrap: nowrap; } .tg-step .flip svg { transform: rotate(180deg); }
.tg-min.btn-text { height: 28px; padding: 0; font-size: 14px; } .tg-min.btn-text svg { width: 15px; height: 15px; margin: 0; }
.tg-opt small { font-size: 12px; opacity: .7; font-weight: 400; }
.tg-idea { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--bg-2); margin-bottom: 12px; align-items: flex-start; }
.tg-idea > div { flex: 1; min-width: 0; }
.tg-idea b { font-size: 19px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; display: block; overflow-wrap: anywhere; }
.tg-idea p { margin: 6px 0 8px; font-size: 15px; line-height: 1.4; color: var(--label-2); }
.tg-idea .we { font-size: 40px; line-height: 1; flex-shrink: 0; }
.tg-idea.on { box-shadow: inset 0 0 0 3px var(--tint); }
.tg-idea.big { flex-direction: column; padding: 22px; margin-top: 12px; } .tg-idea.big b { font-size: 28px; } .tg-idea.big .we { font-size: 60px; }
.tg-idea .row { margin-top: 12px; }
.tg-result { text-align: center; margin: 8px 0; }
.tg-why { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; color: var(--label-2); }
.tg-pref { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; }
.tg-pref-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tg-pref-row button { min-height: 38px; border-radius: 12px; background: var(--fill-3); color: var(--label-2); font-size: 12px; font-weight: 600; line-height: 1.1; padding: 4px; }
.tg-pref-row .on { color: #fff; } .tg-pref-row .p-love.on { background: var(--tint); } .tg-pref-row .p-curious.on { background: #5E5CE6; } .tg-pref-row .p-talk.on { background: #B25F00; } .tg-pref-row .p-no.on { background: #C5221F; }
.tg-note { margin-bottom: 10px; padding: 12px 14px; } .tg-note p { margin: 6px 0 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; } .tg-note small { display: block; font-size: 12px; color: var(--label-2); }
.cal-dot.plan { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--tint); }
.pl-turn { display: inline-flex; align-items: center; gap: 6px; margin: 16px auto 4px; padding: 8px 16px; border-radius: var(--r-full); background: var(--fill-2); color: var(--label); font-weight: 600; font-size: 15px; }
.play-page .page-content { text-align: center; } .play-page .tg-idea { text-align: left; } .play-page .row { margin-top: 10px; }
.pl-step { margin-top: 16px; font-size: 13px; color: var(--label-2); }
.pl-dice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.pl-dice div { min-height: 118px; padding: 14px; border-radius: var(--r-lg); background: var(--bg-2); display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.pl-dice div:last-child { grid-column: 1 / -1; min-height: 76px; }
.pl-dice small { font-size: 12px; color: var(--label-2); } .pl-dice b { font-size: 20px; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.pl-dice.rolling div { animation: pl-shake .16s linear infinite alternate; }
@keyframes pl-shake { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
.pl-timer { position: relative; width: 170px; height: 170px; margin: 18px auto; } .pl-timer.big { width: 250px; height: 250px; margin: 32px auto; }
.pl-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); } .pl-timer circle { fill: none; stroke-width: 9; } .pl-timer .track { stroke: var(--fill-2); } .pl-timer .fill { stroke: var(--tint); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.pl-timer button { position: absolute; inset: 12px; border-radius: 50%; color: var(--label); display: grid; place-content: center; text-align: center; } .pl-timer b { font-size: 40px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; } .pl-timer.big b { font-size: 60px; } .pl-timer small { font-size: 14px; color: var(--label-2); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .pl-dice.rolling div { animation: none; } }
.tg-idea .trait-row { justify-content: flex-start; }
.tg-idea .row { gap: 6px; } .tg-idea .row .btn, .tg-idea .row .btn-tonal, .tg-idea .row .btn-text { height: 38px; font-size: 14px; padding: 0 12px; }
/* Titel: ganze Wörter statt Silbentrennung; nur sehr lange Wörter dürfen brechen */
:root[data-idea="type"] .idea-card .idea-title, :root[data-idea="type"] .idea-hero .idea-title, :root[data-idea="type"] .wish-card .wt { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
:root[data-idea="type"] .idea-card .idea-title.hy, :root[data-idea="type"] .idea-hero .idea-title.hy, :root[data-idea="type"] .wish-card .wt.hy { hyphens: auto; -webkit-hyphens: auto; }
:root[data-idea="type"] .idea-card .idea-title { text-wrap: balance; }
.idea-card .btn-text { align-self: inherit; }
:root[data-idea="type"] .idea-card > .btn-text { padding-left: 4px; }

/* ═══ Erste Schritte & Ideen-Pakete ═══ */
.pk-intro { margin: 4px 4px 12px; }
.pk-presets { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.pk-presets::-webkit-scrollbar { display: none; }
.pk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pk-head .section-title { margin-left: 4px; }
.pk-all { height: 30px; margin-bottom: 2px; font-size: 15px; flex-shrink: 0; }
.pk-note { margin: 0 4px 10px; color: var(--label-2); }
.pk-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 700px) { .pk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pk-card, .pk-reveal { display: flex; min-width: 0; box-sizing: border-box; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; color: var(--label);
  background: var(--bg-2); border-radius: var(--r-lg); border: 1.5px solid transparent; transition: border-color .2s, background-color .2s, transform .15s; }
.pk-card:active, .pk-reveal:active { transform: scale(.98); }
.pk-card.on { border-color: var(--tint); background: color-mix(in srgb, var(--tint) 10%, var(--bg-2)); }
.pk-reveal { margin-top: 16px; border: 1.5px dashed var(--sep); }
.pk-reveal > svg { width: 20px; height: 20px; color: var(--label-3); flex-shrink: 0; }
.pk-emoji { font-size: 30px; line-height: 1; width: 40px; text-align: center; flex-shrink: 0; }
.pk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-title { font-size: 17px; font-weight: 600; }
.pk-blurb { font-size: 14px; color: var(--label-2); }
.pk-meta { font-size: 12.5px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-foot, .ob-foot { position: sticky; bottom: 0; padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: 18px;
  background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; align-items: center; gap: 10px; }
.ob-foot .btn, .ob-foot .btn-tonal { flex: 1; }
.ob-layer .page-bar .topbar-title { display: none; }
.ob-dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 18px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--fill-2); transition: width .25s var(--ease), background-color .25s; }
.ob-dots i.on { width: 22px; background: var(--tint); }
.ob-hero { text-align: center; padding: 12px 8px 4px; }
.ob-logo { font-size: 64px; line-height: 1; margin-bottom: 10px; }
.ob-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.ob-steps { display: grid; gap: 12px; margin: 22px 0 26px; }
.ob-step { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-2); border-radius: var(--r-lg); padding: 14px 16px; }
.ob-step > span { font-size: 26px; line-height: 1.2; }
.ob-step b { font-size: 17px; }
.ob-step p { margin: 2px 0 0; font-size: 15px; color: var(--label-2); }
.ob-h { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 4px 6px; }
.ob-sub { margin: 0 4px 14px; }
.auth-container label.age-check, .age-check { text-transform: none; letter-spacing: normal; font-weight: 400; display: flex; gap: 10px; align-items: flex-start; margin: 4px 2px 16px; font-size: 14px; color: var(--label-2); line-height: 1.35; cursor: pointer; }
.age-check input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; padding: 0; border-radius: 4px; background: none; box-shadow: none; width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--tint); }

/* Sprachwahl DE | EN */
.lang-switch { display: inline-flex; padding: 2px; border-radius: var(--r-full); background: var(--fill); gap: 2px; }
.lang-switch button { min-width: 40px; height: 28px; padding: 0 10px; border-radius: var(--r-full); font-size: 13px; font-weight: 700; color: var(--label-2); }
.lang-switch button.on { background: var(--tint); color: #fff; }
.auth-container .lang-switch { position: absolute; top: 16px; right: 16px; z-index: 2; }
.ob-lang { display: flex; width: max-content; margin: -6px 0 6px auto; }
.legal-links { text-align: center; font-size: 13px; color: var(--label-3); margin: 18px 0 0; }
.legal-links a, .auth-container .info-text a { color: var(--tint); }
.auth-container .age-check a { color: var(--tint); text-decoration: underline; }

/* ═══ Spiel „Funken“ ═══ */
.game-page .page-content { text-align: left; }
.gm-wrap { display: flex; flex-direction: column; gap: 12px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.gm-hero { text-align: center; padding: 8px 4px 4px; }
.gm-hero h2, .gm-stage h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0; }
.gm-logo, .gm-stage-e { font-size: 54px; line-height: 1; background: linear-gradient(135deg, var(--tint), var(--tint-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gm-stage-e { color: initial; background: none; }
.gm-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gm-opt { padding: 12px 8px; border-radius: var(--r-lg); background: var(--bg-2); border: 1.5px solid transparent; display: flex; flex-direction: column; gap: 2px; align-items: center; color: var(--label); }
.gm-opt b { font-size: 16px; } .gm-opt small { font-size: 12px; color: var(--label-2); }
.gm-opt.on { border-color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, var(--bg-2)); }
.gm-rules { margin: 8px 4px; padding-left: 18px; color: var(--label-2); font-size: 14px; line-height: 1.5; }
.gm-rules b { color: var(--label); }
.gm-heat-bar { position: relative; height: 12px; border-radius: 6px; background: var(--fill); overflow: hidden; }
.gm-heat-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, #f6b73c, #f45d48 55%, var(--tint)); transition: width .6s var(--ease); box-shadow: 0 0 14px color-mix(in srgb, var(--tint) 50%, transparent); }
.gm-heat-bar em { position: absolute; top: 2px; bottom: 2px; width: 2px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.gm-heat-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--label-2); margin-top: 6px; }
.gm-score { display: flex; gap: 8px; }
.gm-score span { flex: 1; text-align: center; padding: 6px 8px; border-radius: var(--r-full); background: var(--fill-2); font-size: 14px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, color .2s; }
.gm-score span.on { background: color-mix(in srgb, var(--tint) 20%, transparent); color: var(--label); font-weight: 600; }
.gm-score.big span { display: flex; flex-direction: column; padding: 14px; border-radius: var(--r-lg); background: var(--bg-2); color: var(--label); font-size: 15px; }
.gm-score.big b { font-size: 26px; }
.gm-turn { text-align: center; font-size: 20px; margin-top: 6px; }
.gm-banner { text-align: center; font-size: 14px; padding: 8px 12px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--tint-2) 18%, transparent); }
.gm-offer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; perspective: 900px; }
.gm-back { aspect-ratio: 3 / 4.2; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; padding: 12px;
  background: linear-gradient(155deg, var(--k1), var(--k2)); box-shadow: 0 10px 30px color-mix(in srgb, var(--k2) 40%, transparent), inset 0 1px 0 rgba(255,255,255,.3); animation: gm-deal .45s var(--ease) both; }
.gm-back:nth-child(2) { animation-delay: .08s; }
.gm-back svg { width: 34px; height: 34px; }
.gm-back b { font-size: 19px; } .gm-back small { font-size: 13px; opacity: .85; }
.gm-back:active { transform: scale(.96); }
.k-q { --k1: #6a8dff; --k2: #7b4dff; } .k-d { --k1: #ff7a59; --k2: #ff2d6f; } .k-m { --k1: #ff5fa2; --k2: #c13dff; } .k-w { --k1: #19c3a6; --k2: #2f7bff; }
@keyframes gm-deal { from { opacity: 0; transform: translateY(18px) rotate(-3deg) scale(.95); } }
.gm-card { position: relative; border-radius: 24px; padding: 18px 18px 20px; background: var(--bg-2); border: 1.5px solid color-mix(in srgb, var(--k2) 50%, transparent);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--k2) 22%, transparent); animation: gm-flip .5s var(--ease) both; transform-origin: center; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.gm-card.finale { border-color: var(--tint); background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 18%, var(--bg-2)), var(--bg-2)); }
@keyframes gm-flip { from { opacity: 0; transform: rotateY(80deg) scale(.96); } }
.gm-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--k2); text-transform: uppercase; letter-spacing: .03em; }
.gm-card-top span:first-child { display: inline-flex; gap: 6px; align-items: center; } .gm-card-top svg { width: 16px; height: 16px; }
.gm-card-top span:last-child { color: var(--label-2); text-transform: none; letter-spacing: 0; }
.gm-text { font-size: 23px; line-height: 1.35; font-weight: 600; margin: 4px 0; letter-spacing: -0.01em; }
.gm-text b { color: var(--tint); font-weight: 700; }
.gm-match { display: flex; flex-direction: column; gap: 6px; }
.gm-match .we { width: 56px; height: 56px; } .gm-match b { font-size: 22px; } .gm-match p { color: var(--label-2); margin: 0; font-size: 15px; line-height: 1.45; }
.gm-note { font-size: 12px; color: var(--label-2); }
.gm-timer { align-self: center; position: relative; width: 108px; height: 108px; display: grid; place-items: center; }
.gm-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gm-timer circle { fill: none; stroke-width: 6; } .gm-timer .track { stroke: var(--fill); } .gm-timer .fill { stroke: var(--k2, var(--tint)); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.gm-timer span { display: flex; flex-direction: column; align-items: center; } .gm-timer b { font-size: 24px; font-variant-numeric: tabular-nums; } .gm-timer small { font-size: 12px; color: var(--label-2); }
.gm-timer.on b { color: var(--k2, var(--tint)); }
.gm-actions { display: flex; flex-direction: column; gap: 10px; }
.gm-actions .row { display: flex; gap: 10px; margin: 0; }
.gm-fav { flex: 0 0 56px; padding: 0; } .gm-fav.on { color: var(--tint); background: color-mix(in srgb, var(--tint) 20%, transparent); }
.gm-stage { text-align: center; padding: 30px 8px 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; animation: gm-deal .5s var(--ease) both; }
.gm-stage .btn { margin-top: 10px; }
.gm-tool { display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 8px 0 16px; }
.gm-big-time { width: 170px; height: 170px; border-radius: 50%; background: var(--bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid var(--fill); }
.gm-big-time.on { border-color: var(--tint); } .gm-big-time b { font-size: 40px; font-variant-numeric: tabular-nums; } .gm-big-time small { color: var(--label-2); }
.reduce-motion .gm-back, .reduce-motion .gm-card, .reduce-motion .gm-stage { animation: none; }

/* ── Lexikon ── */
.lex-wrap { padding-bottom: 24px; }
.lex-intro { color: var(--label-2); margin: 4px 4px 12px; }
.lex-search { margin-bottom: 10px; }
.lex-cats { margin-bottom: 10px; }
.lex-tools { align-items: center; justify-content: space-between; margin: 4px 0 6px; }
.lex-lead { display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint); border-radius: 12px; }
.lex-lead svg { width: 22px; height: 22px; }
.lex-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.lex-entry { padding: 4px 2px 20px; }
.lex-title { font-size: 28px; font-weight: 700; line-height: 1.15; margin: 12px 0 4px; letter-spacing: -.01em; }
.lex-alt { margin-bottom: 8px; }
.lex-text { font-size: 17px; line-height: 1.5; margin: 10px 0 8px; }
.lex-figure { margin: 12px 0; display: flex; flex-direction: column; align-items: center; }
.lex-figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(62vh, 520px); border-radius: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.lex-figure figcaption { font-size: 12px; color: var(--label-2); margin-top: 8px; text-align: center; }
.lex-figure a { color: var(--tint); }
.lex-links { margin-top: 12px; text-align: left; }
.lex-links-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--label-2); margin: 0 2px 6px; }
.lex-links .chip, .lex-entry .row.wrap .chip { height: 30px; font-size: 14px; margin: 0 6px 6px 0; }

/* Lexikon: Übersicht mit Bereichen */
.lex-c-basics { --lx: #30D158; } .lex-c-body { --lx: #FF375F; } .lex-c-prac { --lx: #FF9F0A; } .lex-c-pos { --lx: #BF5AF2; }
.lex-c-bdsm { --lx: #FF453A; } .lex-c-kink { --lx: #AC8E68; } .lex-c-toy { --lx: #64D2FF; } .lex-c-scene { --lx: #5E5CE6; }
.lex-day { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 24px; margin: 4px 0 6px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lx) 28%, var(--bg-2)), var(--bg-2)); color: var(--label); }
.lex-day-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--lx); }
.lex-day-kicker svg { width: 14px; height: 14px; }
.lex-day-term { font-size: 24px; font-weight: 700; line-height: 1.2; }
.lex-day-text { font-size: 15px; color: var(--label-2); line-height: 1.4; }
.lex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lex-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; min-height: 104px; border-radius: 22px; text-align: left; color: var(--label);
  background: color-mix(in srgb, var(--lx) 13%, var(--bg-2)); min-width: 0; }
.lex-tile-icon { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--lx); color: #fff; margin-bottom: 8px; }
.lex-tile-icon svg { width: 20px; height: 20px; }
.lex-tile b { font-size: 15px; font-weight: 600; line-height: 1.2; }
.lex-tile small { font-size: 12px; color: var(--label-2); }
.lex-tile:active, .lex-day:active { opacity: .7; }
.lex-recent { margin-bottom: 4px; }
.lex-more { margin: 18px 0 8px; }
.lex-cathead { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 2px 0 12px; }
.lex-cathead h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; margin: 0; }
.lex-cathead h2 svg { width: 28px; height: 28px; color: var(--lx); }
.lex-letter { font-size: 13px; font-weight: 700; color: var(--lx, var(--tint)); margin: 14px 6px 6px; }
.lex-row .li-title { font-weight: 600; }
.lex-entry .chip.assist.static:first-child { background: color-mix(in srgb, var(--lx) 18%, transparent); color: var(--lx); }

/* ── App-Tour ── */
.tour { position: fixed; inset: 0; z-index: 900; animation: fadeIn .2s var(--ease) both; }
.tour.out { opacity: 0; transition: opacity .2s; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .74), 0 0 0 3px var(--tint); transition: left .3s var(--ease), top .3s var(--ease), width .3s var(--ease), height .3s var(--ease); pointer-events: none; }
.tour-hole.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .74); }
.tour-card { position: fixed; max-width: calc(100vw - 32px); padding: 18px 18px 14px; border-radius: 26px; background: var(--bg-2, #1c1c1e); color: var(--label); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transition: top .3s var(--ease), left .3s var(--ease); }
.tour-card.mid { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(360px, calc(100vw - 32px)) !important; text-align: center; }
.tour-card h3 { font-size: 20px; font-weight: 700; margin: 2px 0 6px; line-height: 1.25; }
.tour-card p { font-size: 15px; line-height: 1.45; color: var(--label-2); margin: 0 0 12px; }
.tour-emoji { font-size: 44px; line-height: 1; margin: 4px 0 10px; }
.tour-top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.tour-card.mid .tour-top { justify-content: center; position: relative; }
.tour-card.mid .tour-skip { position: absolute; right: 0; }
.tour-step { font-size: 12px; font-weight: 600; color: var(--tint); letter-spacing: .03em; }
.tour-skip { font-size: 14px; color: var(--label-2); padding: 4px 2px; }
.tour-card { box-sizing: border-box; }
.tour-dots { display: flex; gap: 5px; justify-content: center; margin: 0 0 12px; flex-wrap: wrap; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--fill, rgba(127,127,127,.35)); transition: width .2s; }
.tour-dots i.on { width: 18px; background: var(--tint); }
.tour-foot { display: flex; align-items: center; gap: 8px; }
.tour-foot .spacer { flex: 1; }
.reduce-motion .tour-hole, .reduce-motion .tour-card { transition: none; }

/* Lexikon: ausführliche Abschnitte und Bilder */
.lex-sec { margin: 14px 0 4px; padding: 14px 16px; border-radius: 18px; background: var(--bg-2); }
.lex-sec h3 { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--lx, var(--tint)); margin: 0 0 6px; }
.lex-sec h3 svg { width: 16px; height: 16px; }
.lex-sec p { font-size: 16px; line-height: 1.5; margin: 0; color: var(--label); }
.lex-admin { margin: -4px 0 4px; }
.lex-preview { display: block; width: auto; height: auto; max-width: 100%; max-height: 220px; margin: 0 auto; border-radius: 14px; }

/* Lexikon: Bild per Link */
.lex-linkrow { gap: 8px; align-items: center; }
.lex-linkrow .input { flex: 1; min-width: 0; }
#lexFetchMsg.err { color: var(--danger, #FF453A); }
.lex-manual summary { cursor: pointer; color: var(--tint); font-weight: 600; font-size: 15px; padding: 6px 2px; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: -3px; margin-right: 8px; }
