/* Clique 2 – Design-System „Squishy Pop“
   Schriften lokal: Fredoka (Display) & Figtree (Text), beide SIL OFL 1.1 – siehe assets/fonts/LICENSE-*.txt */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  /* Marke */
  --brand: #6A35F0;          /* Traube */
  --brand-ink: #4C1FC4;
  --brand-soft: #EFE7FF;
  --accent: #FF4F9A;         /* Kaugummi */
  --lime: #C6F24E;
  --sky: #5CC8FF;
  --sun: #FFC94A;
  --brand-2: var(--sky);
  --brand-3: #2FD3B4;
  --ok: #17A673;
  --warn: #F59E0B;
  --danger: #E5395B;
  --grad: linear-gradient(135deg, #7A45FF 0%, #6A35F0 45%, #5126D9 100%);
  --grad-pop: linear-gradient(135deg, #FF6FB0 0%, #A15CFF 55%, #5CC8FF 100%);
  --grad-ring: conic-gradient(from 210deg, #FF4F9A, #FFC94A, #C6F24E, #5CC8FF, #6A35F0, #FF4F9A);
  /* Flächen (hell) */
  --bg: #FBF7FF;
  --surface: #FFFFFF;
  --surface-2: #F4EEFF;
  --surface-3: #E8DEFB;
  --text: #26173F;
  --muted: #6D6189;
  --border: #EDE5FA;
  --shadow: 0 18px 40px -18px rgba(76, 31, 196, .32), 0 2px 6px -2px rgba(76, 31, 196, .10);
  --shadow-sm: 0 6px 18px -10px rgba(76, 31, 196, .30), 0 1px 2px rgba(76, 31, 196, .06);
  --r-xl: 30px;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 13px;
  --nav-h: 66px;
  --head-h: 56px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --font: "Figtree", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fredoka", "Figtree", ui-rounded, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #8C63FF;
  --brand-ink: #6A35F0;
  --brand-soft: #2C2050;
  --bg: #140D25;
  --surface: #1E1535;
  --surface-2: #281D45;
  --surface-3: #352858;
  --text: #F7F2FF;
  --muted: #AA9CCB;
  --border: #2C2149;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 2px 6px -2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; touch-action: manipulation; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; height: 100dvh; overflow: hidden;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; -webkit-text-size-adjust: 100%; font-feature-settings: "ss01";
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); }
input, textarea { caret-color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button, .tap { -webkit-user-select: none; user-select: none; }
a { color: var(--brand); text-decoration: none; }
img, video { display: block; max-width: 100%; }
input, textarea, select { font: inherit; font-size: 16px; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 12px; }
.ic { flex: none; display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }

/* ---------- App-Rahmen ---------- */
#app { height: 100dvh; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; position: relative; background: var(--bg); }
.topbar {
  flex: none; height: calc(var(--head-h) + var(--sat)); padding: var(--sat) 12px 0 16px; display: flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  position: relative; z-index: 20; box-shadow: 0 1px 0 transparent; transition: box-shadow .25s var(--ease);
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--border), 0 10px 24px -20px rgba(76, 31, 196, .4); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--brand); }
.brand svg { display: block; }
.brand .mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(106, 53, 240, .9); }
.topbar .title { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.2px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--text); transition: background .2s var(--ease), transform .25s var(--spring); }
.icon-btn:active { transform: scale(.88); background: var(--surface-2); }
.badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2.5px solid var(--bg); animation: badgeIn .4s var(--spring); }
@keyframes badgeIn { from { transform: scale(.3); } }
#view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; position: relative; }
#view.page-enter { animation: pageIn .36s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.bottomnav {
  flex: none; height: calc(var(--nav-h) + var(--sab)); padding: 0 6px var(--sab); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-radius: 26px 26px 0 0; box-shadow: 0 -1px 0 var(--border), 0 -14px 30px -24px rgba(76, 31, 196, .45); z-index: 20;
}
.bottomnav a { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 700; position: relative; font-family: var(--font-display); letter-spacing: .1px; }
.bottomnav a .ic { transition: transform .35s var(--spring); }
.bottomnav a::before { content: ""; position: absolute; top: 9px; width: 50px; height: 32px; border-radius: 16px; background: var(--brand-soft); transform: scale(.4); opacity: 0; transition: transform .35s var(--spring), opacity .2s; z-index: -1; }
.bottomnav a.active { color: var(--brand); }
.bottomnav a.active::before { transform: none; opacity: 1; }
.bottomnav a.active .ic { stroke-width: 2.4; transform: translateY(-1px); }
.bottomnav a[data-sec="camera"]::before, .bottomnav a[data-sec="me"]::before { display: none; }
.bottomnav .cam-btn {
  width: 56px; height: 56px; border-radius: 20px; background: var(--grad-pop); color: #fff; display: grid; place-items: center; margin-top: -8px;
  box-shadow: inset 0 -4px 0 rgba(40, 0, 90, .22), inset 0 2px 0 rgba(255, 255, 255, .35), 0 12px 22px -10px rgba(161, 92, 255, .9);
  transition: transform .3s var(--spring);
}
.bottomnav a:active .cam-btn { transform: scale(.9) rotate(-4deg); }
.bottomnav .badge { top: 5px; right: calc(50% - 25px); }
.bottomnav .av { width: 28px; height: 28px; }
.bottomnav a.active .av { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--brand); }
body.fullscreen .topbar, body.fullscreen .bottomnav { display: none; }
body.no-nav .bottomnav { display: none; }

/* ---------- Grundelemente ---------- */
.page { padding: 16px; padding-bottom: 32px; }
.page-narrow { max-width: 440px; margin: 0 auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.3px; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px; }
.stack > * + * { margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: .1px; background: var(--surface-2); color: var(--text);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--surface-3) 90%, var(--text) 6%);
  transition: transform .25s var(--spring), box-shadow .2s var(--ease), filter .2s, opacity .2s;
}
.btn:active { transform: translateY(2px) scale(.98); box-shadow: inset 0 -1px 0 var(--surface-3); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary {
  background: var(--brand); color: #fff;
  box-shadow: inset 0 -4px 0 rgba(30, 0, 90, .28), inset 0 2px 0 rgba(255, 255, 255, .22), 0 12px 22px -12px color-mix(in srgb, var(--brand) 90%, transparent);
}
.btn.primary:active { box-shadow: inset 0 -1px 0 rgba(30, 0, 90, .28), 0 6px 14px -10px var(--brand); }
.btn.pop { background: var(--accent); color: #fff; box-shadow: inset 0 -4px 0 rgba(120, 0, 50, .25), inset 0 2px 0 rgba(255, 255, 255, .25), 0 12px 22px -12px var(--accent); }
.btn.danger { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--danger) 18%, var(--surface)); }
.btn.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--ok) 20%, var(--surface)); }
.btn.block { display: flex; width: 100%; }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14.5px; border-radius: 13px; }
.btn.xs { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 11px; box-shadow: inset 0 -2px 0 var(--surface-3); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--border); transition: background .2s, color .2s, transform .25s var(--spring); }
.chip:active { transform: scale(.95); }
.chip.active { background: var(--text); color: var(--bg); box-shadow: none; }
.chip .ic { opacity: .85; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--surface-2); color: var(--muted); letter-spacing: .1px; }
.pill.warn { background: color-mix(in srgb, var(--sun) 26%, transparent); color: #8A5200; }
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
:root[data-theme="dark"] .pill.warn { color: #FFD27A; }

.field { display: block; }
.field > span { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); margin: 0 0 6px 6px; }
.input, textarea.input, select.input {
  width: 100%; height: 52px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); padding: 0 16px; outline: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 92px; padding: 13px 16px; resize: none; line-height: 1.45; }
.input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 16%, transparent); }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); font-size: 14px; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; margin: 0; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: var(--surface-3); transition: background .25s var(--ease); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(40, 10, 90, .3); transition: transform .35s var(--spring); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(20px); }
.list { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.list > .li { display: flex; align-items: center; gap: 13px; padding: 13px 16px; min-height: 58px; border-bottom: 1px solid var(--border); width: 100%; text-align: left; color: var(--text); }
.list > .li:last-child { border-bottom: 0; }
.list > button.li:active, .list > a.li:active { background: var(--surface-2); }
.li .ic-wrap, .li .tile-ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.tile-ic.pink { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.tile-ic.sun { background: color-mix(in srgb, var(--sun) 26%, var(--surface)); color: #A86A00; }
.tile-ic.sky { background: color-mix(in srgb, var(--sky) 22%, var(--surface)); color: #1A84C2; }
.tile-ic.lime { background: color-mix(in srgb, var(--lime) 40%, var(--surface)); color: #4C7A00; }
:root[data-theme="dark"] .tile-ic.sun { color: var(--sun); }
:root[data-theme="dark"] .tile-ic.sky { color: var(--sky); }
:root[data-theme="dark"] .tile-ic.lime { color: var(--lime); }
.section-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--muted); margin: 24px 8px 9px; }

/* Avatare */
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; overflow: hidden; background: var(--surface-2); position: relative; font-size: 15px; font-family: var(--font-display); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 32px; height: 32px; font-size: 12px; }
.av.lg { width: 56px; height: 56px; font-size: 20px; }
.av.xl { width: 96px; height: 96px; font-size: 34px; }
.av.xxl { width: 132px; height: 132px; }
.av-online::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #2BD47D; border: 2.5px solid var(--bg); }
.ring { padding: 3px; border-radius: 50%; background: var(--grad-ring); display: inline-grid; }
.ring > .av { border: 3px solid var(--bg); }
.ring.seen { background: var(--surface-3); }

/* Illustrationen */
.illu { display: block; width: 150px; height: auto; margin: 0 auto; }
.bottomnav a { isolation: isolate; }

/* Leere Zustände / Lader */
.empty { text-align: center; padding: 40px 28px 48px; color: var(--muted); display: flex; flex-direction: column; align-items: center; }
.empty .illu { width: 190px; height: auto; margin-bottom: 14px; animation: illuIn .6s var(--spring) both; }
@keyframes illuIn { from { transform: scale(.85) translateY(8px); opacity: 0; } }
.empty .emoji { font-size: 54px; margin-bottom: 8px; }
.empty h3 { color: var(--text); margin-bottom: 6px; font-size: 19px; }
.empty p { margin: 0; max-width: 30ch; }
.spinner { width: 34px; height: 34px; margin: 34px auto; position: relative; }
.spinner::before, .spinner::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.spinner::before { background: var(--accent); animation: squish 1s var(--ease) infinite; }
.spinner::after { inset: 9px; background: var(--brand); animation: squish 1s var(--ease) infinite reverse; }
@keyframes squish { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.25, .75); } 60% { transform: scale(.85, 1.15); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toast */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--sat) + 10px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1000; pointer-events: none; padding: 0 16px; }
.toast { max-width: 520px; background: var(--text); color: var(--bg); padding: 13px 18px; border-radius: 18px; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow); animation: toastIn .45s var(--spring); pointer-events: auto; }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--brand); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.92); } }

/* Bottom Sheet */
.backdrop { position: fixed; inset: 0; background: rgba(28, 10, 60, .42); z-index: 300; opacity: 0; transition: opacity .3s var(--ease); }
.backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; background: var(--surface); border-radius: 30px 30px 0 0; z-index: 301;
  max-height: 88dvh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .42s var(--ease); padding-bottom: var(--sab);
  box-shadow: 0 -20px 50px -20px rgba(40, 10, 90, .35);
}
.sheet.show { transform: none; }
.sheet .handle { width: 42px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 9px auto 4px; flex: none; }
.sheet .sheet-head { padding: 6px 16px 10px; display: flex; align-items: center; gap: 8px; flex: none; }
.sheet .sheet-head h3 { flex: 1; text-align: center; font-size: 18px; }
.sheet .sheet-body { overflow-y: auto; padding: 0 16px 18px; -webkit-overflow-scrolling: touch; flex: 1; min-height: 0; }
.sheet .sheet-foot { padding: 10px 14px 12px; border-top: 1px solid var(--border); flex: none; }
.action-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 12px; font-size: 16px; font-weight: 700; border-radius: 14px; }
.action-list button .ic { color: var(--brand); }
.action-list button:active { background: var(--surface-2); }
.action-list button.danger, .action-list button.danger .ic { color: var(--danger); }

/* Blockiert-Hinweis */
.blocked-card { text-align: center; padding: 8px 10px 14px; }
.blocked-card .illu { width: 170px; margin: 0 auto 6px; animation: illuIn .6s var(--spring) both; }
.blocked-card .big { font-size: 60px; line-height: 1; margin-bottom: 10px; }
.blocked-card h2 { margin-bottom: 8px; font-size: 24px; }
.blocked-card p { color: var(--muted); margin: 0 auto 18px; max-width: 34ch; }
.help-box { background: color-mix(in srgb, var(--sky) 16%, var(--surface)); border-radius: 20px; padding: 14px 16px; text-align: left; margin-bottom: 14px; }
.help-box strong { font-family: var(--font-display); font-size: 26px; color: var(--brand); }

/* ---------- Stories-Leiste ---------- */
.stories-bar { display: flex; gap: 12px; overflow-x: auto; padding: 10px 14px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.stories-bar::-webkit-scrollbar { display: none; }
.story-chip { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 74px; flex: none; scroll-snap-align: start; transition: transform .3s var(--spring); }
.story-chip:active { transform: scale(.93); }
.story-chip .ring > .av { width: 64px; height: 64px; font-size: 22px; }
.story-chip span { font-size: 12.5px; font-weight: 700; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-chip .plus { position: absolute; right: -1px; bottom: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 3px solid var(--bg); }
.story-chip .wrap { position: relative; }
.story-chip.pending .ring { background: repeating-conic-gradient(var(--sun) 0 10deg, transparent 10deg 20deg); }

/* ---------- Beiträge ---------- */
.feed-tabs { display: flex; gap: 8px; padding: 4px 14px 12px; }
.post { background: var(--surface); margin: 0 10px 16px; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 11px 8px 11px 13px; }
.post-head .name { font-weight: 800; font-size: 15px; }
.post-head .sub { font-size: 12.5px; color: var(--muted); }
.carousel { position: relative; background: #120A22; margin: 0 8px; border-radius: 22px; overflow: hidden; }
.carousel .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; position: relative; overflow: hidden; display: grid; place-items: center; background: #120A22; }
.carousel .slide img, .carousel .slide video { width: 100%; height: 100%; object-fit: cover; }
.carousel .count { position: absolute; top: 10px; right: 10px; background: rgba(20, 8, 40, .55); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.dots { display: flex; justify-content: center; gap: 5px; padding: 9px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--surface-3); transition: background .25s, width .35s var(--spring); }
.dots i.on { background: var(--brand); width: 16px; }
.heart-pop { position: absolute; left: 50%; top: 50%; pointer-events: none; filter: drop-shadow(0 10px 24px rgba(40, 0, 60, .45)); animation: heartPop .95s var(--ease) forwards; z-index: 3; }
.heart-pop .ic { fill: #fff; color: #fff; }
@keyframes heartPop { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-14deg); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.18) rotate(6deg); opacity: 1; } 34% { transform: translate(-50%, -50%) scale(.94) rotate(-2deg); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -90%) scale(.85); } }
.post-actions { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; }
.post-actions .icon-btn { width: 44px; height: 44px; }
.post-actions .liked { color: var(--accent); }
.post-actions .liked .ic { fill: var(--accent); }
.post-actions .saved .ic { fill: currentColor; }
.liked-anim { animation: likeBump .5s var(--spring); }
@keyframes likeBump { 35% { transform: scale(1.35) rotate(-8deg); } 65% { transform: scale(.9); } }
.post-body { padding: 0 16px 16px; font-size: 15px; }
.post-body .likes { font-weight: 800; margin: 2px 0 4px; display: inline-flex; align-items: center; gap: 8px; min-height: 26px; }
.post-body .caption { line-height: 1.45; }
.post-body .caption b { font-weight: 800; margin-right: 6px; }
.post-body .more-comments { color: var(--muted); margin-top: 6px; display: block; font-weight: 600; }
.status-banner { display: flex; gap: 8px; align-items: center; padding: 10px 14px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--sun) 22%, var(--surface)); color: #8A5200; }
:root[data-theme="dark"] .status-banner { color: #FFD27A; }
.play-badge { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.play-badge span { width: 58px; height: 58px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: grid; place-items: center; color: #fff; backdrop-filter: blur(6px); }
.mute-btn { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(20, 8, 40, .55); color: #fff; display: grid; place-items: center; }

/* ---------- Reaktionen ---------- */
.rx { display: block; flex: none; overflow: visible; }
.react-btn { position: relative; }
.react-btn .rx { width: 30px; height: 30px; }
.react-btn.liked { color: var(--accent); }
.rx-stack { display: inline-flex; align-items: center; }
.rx-stack i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--surface); margin-left: -6px; }
.rx-stack i:first-child { margin-left: 0; }
.rx-total { font-weight: 800; font-variant-numeric: tabular-nums; }
.rx-scrim { position: fixed; inset: 0; z-index: 390; background: rgba(28, 10, 60, .12); opacity: 0; transition: opacity .2s; }
.rx-scrim.show { opacity: 1; }
.rx-bar {
  position: fixed; z-index: 400; display: flex; gap: 0; padding: 7px 8px; border-radius: 999px; background: var(--surface);
  box-shadow: 0 18px 40px -14px rgba(60, 20, 140, .5), 0 0 0 1px var(--border); transform: scale(.4) translateY(12px); opacity: 0;
  transition: transform .42s var(--spring), opacity .18s;
}
.rx-bar.show { transform: none; opacity: 1; }
.rx-bar.dark { background: rgba(30, 18, 56, .92); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); color: #fff; }
.rx-bar button { position: relative; width: 36px; height: 40px; display: grid; place-items: center; transition: transform .3s var(--spring); }
.rx-bar.show button { animation: rxIn .5s var(--spring) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes rxIn { from { transform: translateY(14px) scale(.3); opacity: 0; } }
.rx-bar button .rx { width: 32px; height: 32px; transition: transform .3s var(--spring); }
.rx-bar button.hot .rx, .rx-bar button:active .rx { transform: translateY(-10px) scale(1.45); }
.rx-bar button.on::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--brand); }
.rx-bar button b { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 4px) scale(.8); white-space: nowrap; font-size: 11.5px; font-weight: 800; background: var(--text); color: var(--bg); padding: 3px 8px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .25s var(--spring); }
.rx-bar button.hot b { opacity: 1; transform: translate(-50%, -14px) scale(1); }
.rx-burst { position: fixed; z-index: 410; pointer-events: none; width: 0; height: 0; }
.rx-burst i { position: absolute; left: 0; top: 0; display: block; }
.rx-burst i.dot { width: 9px; height: 9px; border-radius: 50%; }
.rx-burst i.bit { width: 12px; height: 5px; border-radius: 3px; }
.rx-burst i.mini .rx { width: 18px; height: 18px; }
/* Leerlauf-Animationen in der Leiste (sanft, nur solange offen) */
.rx-bar.show .rx-heart { animation: rxBeat 1.4s var(--ease) infinite .4s; }
.rx-bar.show .rx-haha { animation: rxShake 1.6s var(--ease) infinite .5s; }
.rx-bar.show .rx-wow { animation: rxStretch 1.8s var(--ease) infinite .6s; }
.rx-bar.show .rx-fire { animation: rxFlick .9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.rx-bar.show .rx-slay { animation: rxTwinkle 1.6s var(--ease) infinite .3s; }
.rx-bar.show .rx-clap { animation: rxBeat 1s var(--ease) infinite .2s; }
.rx-bar.show .rx-cute { animation: rxBounce 1.3s var(--ease) infinite .5s; }
.rx-bar.show .rx-hug { animation: rxSway 2s ease-in-out infinite; }
.rx-bar.show .rx-thumbs { animation: rxNod 1.6s var(--ease) infinite .7s; transform-origin: 30% 90%; }
.rx-bar.show .rx-party { animation: rxSway 1.2s ease-in-out infinite; }
@keyframes rxBeat { 0%, 60%, 100% { scale: 1; } 20% { scale: 1.16; } 40% { scale: .96; } }
@keyframes rxShake { 0%, 70%, 100% { rotate: 0deg; } 10%, 30%, 50% { rotate: -10deg; } 20%, 40% { rotate: 10deg; } }
@keyframes rxStretch { 0%, 70%, 100% { scale: 1 1; } 20% { scale: .9 1.15; } 40% { scale: 1.08 .94; } }
@keyframes rxFlick { from { scale: 1 1; rotate: -3deg; } to { scale: .94 1.08; rotate: 3deg; } }
@keyframes rxTwinkle { 0%, 60%, 100% { rotate: 0deg; scale: 1; } 30% { rotate: 25deg; scale: 1.15; } }
@keyframes rxBounce { 0%, 60%, 100% { translate: 0 0; } 25% { translate: 0 -4px; } 45% { translate: 0 1px; } }
@keyframes rxSway { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes rxNod { 0%, 60%, 100% { rotate: 0deg; } 25% { rotate: -14deg; } 45% { rotate: 4deg; } }
.reactors-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 2px 10px; scrollbar-width: none; }
.reactors-tabs button { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: var(--surface-2); flex: none; }
.reactors-tabs button.on { background: var(--text); color: var(--bg); }
.member-pick .rx-badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }

/* Kommentare */
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment.reply { margin-left: 42px; }
.comment .bubble-c { flex: 1; min-width: 0; font-size: 15px; background: var(--surface-2); border-radius: 6px 20px 20px 20px; padding: 9px 13px 8px; }
.comment .bubble-c b { font-weight: 800; margin-right: 6px; }
.comment .meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.comment .meta button { font-weight: 800; color: var(--muted); font-size: 12px; }
.comment .meta .rx-mini { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--text); }
.comment .c-react { flex: none; width: 36px; height: 36px; display: grid; place-items: center; align-self: center; color: var(--muted); border-radius: 50%; }
.comment .c-react .rx { width: 22px; height: 22px; }
.comment .c-react.liked { color: var(--accent); }
.comment .c-react .ic { transition: transform .3s var(--spring); }
.composer-bar { display: flex; align-items: flex-end; gap: 8px; }
.composer-bar textarea { flex: 1; border: 2px solid var(--border); border-radius: 24px; padding: 11px 16px; background: var(--surface-2); outline: none; resize: none; max-height: 120px; min-height: 46px; line-height: 1.35; }
.composer-bar textarea:focus { border-color: var(--brand); }
.send-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; box-shadow: inset 0 -3px 0 rgba(30, 0, 90, .28), 0 8px 16px -8px var(--brand); transition: transform .3s var(--spring); }
.send-btn:active { transform: scale(.86) rotate(-12deg); }
.reply-hint { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; padding: 0 6px 8px; font-weight: 600; }

/* Profil */
.profile-head { padding: 14px 16px 6px; position: relative; }
.profile-cover { position: absolute; inset: 0 0 auto 0; height: 92px; background: var(--grad-pop); opacity: .16; border-radius: 0 0 40px 40px; pointer-events: none; }
.profile-top { display: flex; align-items: center; gap: 16px; position: relative; }
.profile-top [data-av] { position: relative; border-radius: 50%; }
.profile-top [data-av] .av { box-shadow: 0 0 0 4px var(--bg), 0 14px 30px -14px rgba(76, 31, 196, .6); }
.stats { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.stats b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.profile-name { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 21px; display: flex; align-items: center; gap: 8px; }
.profile-bio { margin-top: 3px; white-space: pre-wrap; }
.profile-actions { display: flex; gap: 8px; margin-top: 14px; }
.profile-actions .btn { flex: 1; height: 44px; font-size: 15px; border-radius: 15px; }
.av-edit { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.tabs { display: flex; margin: 14px 12px 8px; position: sticky; top: 0; z-index: 5; background: var(--surface-2); border-radius: 18px; padding: 4px; }
.tabs button { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-weight: 800; font-size: 14px; border-radius: 14px; transition: background .25s var(--ease), color .2s; }
.tabs button.active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 12px 20px; }
.grid3 .cell { aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; border-radius: 14px; }
.grid3.clips .cell { aspect-ratio: 9 / 16; }
.grid3 .cell img { width: 100%; height: 100%; object-fit: cover; }
.grid3 .cell .ic { position: absolute; top: 7px; right: 7px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.grid3 .cell .pend { position: absolute; left: 6px; bottom: 6px; }

/* ---------- Clips ---------- */
.clips { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; background: #0E0820; scrollbar-width: none; }
.clips::-webkit-scrollbar { display: none; }
.clip { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden; display: grid; place-items: center; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip .shade { position: absolute; inset: auto 0 0 0; height: 48%; background: linear-gradient(transparent, rgba(14, 6, 32, .75)); pointer-events: none; }
.clip .info { position: absolute; left: 14px; right: 84px; bottom: calc(20px + var(--sab) + var(--nav-h)); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); font-size: 15px; }
.clip .info .who { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.clip .side { position: absolute; right: 8px; bottom: calc(26px + var(--sab) + var(--nav-h)); display: flex; flex-direction: column; gap: 14px; align-items: center; color: #fff; }
.clip .side button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); min-width: 52px; }
.clip .side .ic { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.clip .side .rx { width: 38px; height: 38px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.clip .side .liked .ic { fill: var(--accent); color: var(--accent); }
.clip .progress { position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + var(--nav-h)); height: 3px; background: rgba(255, 255, 255, .22); }
.clip .progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 0 2px 2px 0; }
.clips-top { position: absolute; top: calc(var(--sat) + 8px); left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; z-index: 5; color: #fff; pointer-events: none; }
.clips-top > * { pointer-events: auto; }
.clips-top h2 { text-shadow: 0 1px 6px rgba(0, 0, 0, .5); font-size: 24px; }
body.clips-mode .bottomnav { position: fixed; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; background: rgba(14, 6, 32, .62); box-shadow: none; }
body.clips-mode .bottomnav a { color: rgba(255, 255, 255, .7); }
body.clips-mode .bottomnav a.active { color: #fff; }
body.clips-mode .bottomnav a::before { background: rgba(255, 255, 255, .14); }
body.clips-mode .topbar { display: none; }

/* ---------- Vollbild-Ebenen (Kamera, Story, Anruf, Snap) ---------- */
.layer { position: fixed; inset: 0; z-index: 200; background: #0E0820; color: #fff; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; animation: layerIn .35s var(--ease); }
@keyframes layerIn { from { opacity: 0; transform: scale(.97); } }
.layer .top-ctrls { position: absolute; top: calc(var(--sat) + 8px); left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 10px; z-index: 10; }
.glass-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(24, 12, 48, .42); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .3s var(--spring), background .2s; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.glass-btn:active { transform: scale(.86); }
.glass-btn.on { background: #fff; color: var(--brand); }

/* Kamera */
.cam-stage-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding-top: var(--sat); min-height: 0; }
.cam-stage { position: relative; aspect-ratio: 9 / 16; height: 100%; max-height: 100%; max-width: 100%; border-radius: 26px; overflow: hidden; background: #1A1030; touch-action: none; }
.cam-stage canvas, .cam-stage .cam-overlay, .cam-stage > img, .cam-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-stage > img, .cam-stage > video { object-fit: cover; }
.cam-overlay { overflow: hidden; }
.cam-item { position: absolute; left: 0; top: 0; transform-origin: center; touch-action: none; user-select: none; -webkit-user-select: none; white-space: pre; line-height: 1.15; cursor: grab; }
.cam-item.emoji { font-size: 64px; }
.cam-item.sticker { width: 112px; height: 112px; }
.cam-item.sticker img { width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.cam-item.text { font-size: 30px; font-weight: 600; font-family: var(--font-display); padding: 6px 14px; border-radius: 14px; text-align: center; }
.cam-item.active { outline: 2px dashed rgba(255, 255, 255, .75); outline-offset: 4px; border-radius: 12px; }
.cam-item.pop-in { animation: stickIn .5s var(--spring); }
@keyframes stickIn { from { scale: .2; rotate: -20deg; } }
.cam-trash { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(20, 8, 40, .55); display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .3s var(--spring), background .2s; pointer-events: none; }
.cam-trash.show { opacity: 1; }
.cam-trash.hot { background: var(--danger); transform: translateX(-50%) scale(1.22); }
.cam-side { position: absolute; right: 10px; top: calc(var(--sat) + 70px); display: flex; flex-direction: column; gap: 10px; z-index: 10; }
.cam-bottom { flex: none; padding: 10px 0 calc(14px + var(--sab)); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.filter-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px calc(50% - 31px); width: 100%; scroll-snap-type: x mandatory; scrollbar-width: none; }
.filter-strip::-webkit-scrollbar { display: none; }
.filter-chip { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; scroll-snap-align: center; font-size: 11.5px; font-weight: 800; color: rgba(255, 255, 255, .72); font-family: var(--font-display); }
.filter-chip i { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-style: normal; border: 2.5px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1) center / cover no-repeat; transition: transform .35s var(--spring), border-color .2s, border-radius .35s var(--ease); overflow: hidden; }
.filter-chip i img { width: 100%; height: 100%; object-fit: cover; }
.filter-chip.on { color: #fff; }
.filter-chip.on i { border-color: #fff; transform: scale(1.12); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.cam-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 26px; }
.shutter { width: 80px; height: 80px; border-radius: 50%; border: 5px solid #fff; display: grid; place-items: center; position: relative; transition: transform .3s var(--spring); }
.shutter::after { content: ""; width: 62px; height: 62px; border-radius: 50%; background: #fff; transition: all .35s var(--spring); }
.shutter.video::after { background: var(--accent); }
.shutter.recording::after { width: 30px; height: 30px; border-radius: 9px; background: var(--danger); }
.shutter:active { transform: scale(.92); }
.shutter svg.prog { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); }
.mode-switch { display: flex; gap: 18px; font-size: 13.5px; font-weight: 800; color: rgba(255, 255, 255, .55); font-family: var(--font-display); }
.mode-switch button.on { color: #fff; }
.thumb-btn { width: 46px; height: 46px; border-radius: 15px; border: 2px solid rgba(255, 255, 255, .9); overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.rec-time { position: absolute; top: calc(var(--sat) + 14px); left: 50%; transform: translateX(-50%); background: var(--danger); color: #fff; font-weight: 800; padding: 5px 13px; border-radius: 999px; font-size: 14px; z-index: 11; font-variant-numeric: tabular-nums; }
.tool-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 12px calc(14px + var(--sab)); background: rgba(20, 10, 42, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 28px 28px 0 0; z-index: 30; animation: panelIn .4s var(--ease); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
@keyframes panelIn { from { transform: translateY(40%); opacity: 0; } }
.tool-panel b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.emoji-grid, .sticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; max-height: 38dvh; overflow-y: auto; padding: 2px; }
.emoji-grid { grid-template-columns: repeat(7, 1fr); font-size: 30px; }
.emoji-grid button, .sticker-grid button { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; transition: transform .3s var(--spring), background .2s; }
.sticker-grid button img { width: 92%; height: 92%; pointer-events: none; }
.emoji-grid button:active, .sticker-grid button:active { background: rgba(255, 255, 255, .12); transform: scale(.86); }
.sticker-cats { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.sticker-cats button { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; font-weight: 800; font-size: 13.5px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.sticker-cats button.on { background: #fff; color: var(--brand); }
.frame-row { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; padding: 2px; }
.frame-row button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: rgba(255, 255, 255, .75); }
.frame-row button i { width: 46px; height: 64px; border-radius: 12px; overflow: hidden; border: 2.5px solid transparent; display: block; background: rgba(255, 255, 255, .1); }
.frame-row button i img { width: 100%; height: 100%; }
.frame-row button.on { color: #fff; }
.frame-row button.on i { border-color: #fff; }
.colors { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.colors button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); transition: transform .3s var(--spring); }
.sheet .colors button { border-color: var(--surface-3); }
.colors button.on { border-color: #fff; transform: scale(1.18); }
.sheet .colors button.on { border-color: var(--text); }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: rgba(255, 255, 255, .88); }
.cam-msg .illu { width: 150px; margin: 0 auto 10px; }
.check-overlay { position: absolute; inset: 0; z-index: 40; background: rgba(14, 6, 32, .7); display: grid; place-items: center; text-align: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; padding: 0 14px; }
.share-row button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; font-family: var(--font-display); transition: transform .3s var(--spring); }
.share-row button:active { transform: scale(.9); }
.share-row button i { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-style: normal; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.share-row button.primary i { background: var(--grad-pop); box-shadow: inset 0 -4px 0 rgba(40, 0, 90, .25), 0 10px 22px -10px rgba(161, 92, 255, .9); }

/* Stories-Ansicht */
.story-view { position: fixed; inset: 0; z-index: 210; background: #0E0820; color: #fff; max-width: 640px; margin: 0 auto; touch-action: none; animation: layerIn .3s var(--ease); }
.story-frame { position: absolute; inset: var(--sat) 0 0 0; border-radius: 20px; overflow: hidden; }
.story-frame img, .story-frame video { width: 100%; height: 100%; object-fit: cover; }
.story-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px 28px; text-align: center; font-size: 32px; font-weight: 600; font-family: var(--font-display); line-height: 1.2; white-space: pre-wrap; word-break: break-word; text-wrap: balance; }
.bg-sunset { background: radial-gradient(120% 80% at 20% 10%, #FFC36B 0%, transparent 55%), linear-gradient(160deg, #FF8A5B, #FF4F9A 50%, #8F5CFF); }
.bg-ocean { background: radial-gradient(120% 80% at 80% 0%, #7FE3FF 0%, transparent 50%), linear-gradient(160deg, #38A0F8, #6A35F0); }
.bg-mint { background: radial-gradient(120% 80% at 20% 0%, #D4FF8A 0%, transparent 50%), linear-gradient(160deg, #2FD3B4, #38A0F8); }
.bg-berry { background: radial-gradient(120% 80% at 80% 10%, #FF9AD0 0%, transparent 55%), linear-gradient(160deg, #D24CF5, #6A35F0); }
.bg-lemon { background: radial-gradient(120% 80% at 20% 10%, #FFFBD0 0%, transparent 55%), linear-gradient(160deg, #FDE047, #FB923C); color: #3B2400; }
.bg-night { background: radial-gradient(80% 60% at 70% 20%, #4B2FA8 0%, transparent 60%), linear-gradient(160deg, #1A1146, #3B1A7A); }
.bg-candy { background: radial-gradient(120% 80% at 20% 10%, #FFFFFF 0%, transparent 45%), linear-gradient(160deg, #FFB3D9, #B9C3FF); color: #2B1650; }
.bg-forest { background: radial-gradient(120% 80% at 80% 0%, #B7F27A 0%, transparent 50%), linear-gradient(160deg, #16A34A, #0F766E); }
.story-bars { position: absolute; top: calc(var(--sat) + 8px); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 5; }
.story-bars i { flex: 1; height: 3.5px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.story-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.story-head { position: absolute; top: calc(var(--sat) + 20px); left: 12px; right: 6px; display: flex; align-items: center; gap: 10px; z-index: 5; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.story-head .name { font-weight: 800; }
.story-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px calc(14px + var(--sab)); z-index: 5; background: linear-gradient(transparent, rgba(14, 6, 32, .6)); }
.react-row { display: flex; justify-content: space-between; gap: 2px; padding: 6px 4px; border-radius: 999px; background: rgba(24, 12, 48, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.react-row button { width: 34px; height: 38px; display: grid; place-items: center; transition: transform .3s var(--spring); }
.react-row button .rx { width: 30px; height: 30px; }
.react-row button:active { transform: scale(1.35); }
.react-row button.on { transform: translateY(-4px) scale(1.2); filter: drop-shadow(0 0 8px rgba(255, 255, 255, .7)); }
.story-tap { position: absolute; top: 80px; bottom: 120px; width: 35%; z-index: 4; }
.story-tap.l { left: 0; }
.story-tap.r { right: 0; width: 65%; }
.fly-emoji { position: fixed; z-index: 260; pointer-events: none; animation: fly 1.1s var(--ease) forwards; }
.fly-emoji .rx { width: 56px; height: 56px; }
@keyframes fly { to { transform: translateY(-280px) scale(1.7) rotate(-12deg); opacity: 0; } }

/* ---------- Chat ---------- */
.chat-item { display: flex; align-items: center; gap: 13px; padding: 10px 16px; width: 100%; text-align: left; color: var(--text); border-radius: 18px; }
.chat-item:active { background: var(--surface-2); }
.chat-item .t { font-weight: 800; }
.chat-item .p { font-size: 14px; color: var(--muted); }
.chat-item.unread .p { color: var(--text); font-weight: 700; }
.unread-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.group-av { position: relative; width: 54px; height: 54px; flex: none; }
.group-av .av { position: absolute; width: 38px; height: 38px; border: 2.5px solid var(--bg); font-size: 13px; }
.group-av .av:first-child { top: 0; left: 0; }
.group-av .av:last-child { bottom: 0; right: 0; }
.conv { display: flex; flex-direction: column; height: 100dvh; background: var(--bg); }
.conv-head { flex: none; padding: calc(var(--sat) + 6px) 8px 8px; display: flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--border); z-index: 2; }
.conv-head .t { font-weight: 800; font-family: var(--font-display); font-size: 17px; }
.conv-head .s { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.conv-head .icon-btn { color: var(--brand); }
.msgs { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 82%; position: relative; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { padding: 9px 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); white-space: pre-wrap; word-break: break-word; font-size: 15.5px; position: relative; }
.msg:not(.mine) .bubble { border-bottom-left-radius: 8px; }
.msg.mine .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 8px; box-shadow: inset 0 -2px 0 rgba(30, 0, 90, .2), 0 6px 14px -10px var(--brand); }
.msg.cont .bubble { margin-top: -1px; }
.msg .bubble.media { padding: 4px; overflow: hidden; }
.msg .bubble.media img { border-radius: 18px; max-height: 300px; max-width: 240px; object-fit: cover; }
.msg .bubble.big-emoji { background: none !important; box-shadow: none !important; font-size: 44px; padding: 0 4px; }
.msg .bubble.sticker-msg { background: none !important; box-shadow: none !important; padding: 0; }
.msg .bubble.sticker-msg img { width: 132px; height: 132px; animation: stickIn .5s var(--spring); }
.msg .who { font-size: 11.5px; color: var(--muted); margin: 6px 0 2px 46px; }
.msg-gap { height: 8px; }
.msg-time { text-align: center; font-size: 11.5px; color: var(--muted); margin: 14px 0 6px; font-weight: 700; }
.msg .reacts { position: absolute; bottom: -12px; right: 8px; background: var(--surface); border-radius: 999px; padding: 2px 7px 2px 4px; font-size: 12px; font-weight: 800; box-shadow: var(--shadow-sm), 0 0 0 1.5px var(--bg); display: inline-flex; align-items: center; gap: 3px; color: var(--text); }
.msg .reacts .rx { width: 18px; height: 18px; margin-right: -3px; }
.msg.has-react { margin-bottom: 14px; }
.msg .state { font-size: 11px; color: var(--muted); align-self: flex-end; margin: 0 4px 2px; white-space: nowrap; font-weight: 600; }
.msg.pending .bubble { opacity: .65; }
.snap-bubble { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 20px; font-weight: 800; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); }
.snap-bubble.opened { border-style: dashed; color: var(--muted); border-color: var(--border); font-weight: 600; }
.snap-bubble .sq { width: 16px; height: 16px; border-radius: 5px; background: var(--accent); }
.snap-bubble.opened .sq { background: none; border: 2px solid var(--muted); }
.audio-bubble { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.audio-bubble .pbtn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; flex: none; }
.msg:not(.mine) .audio-bubble .pbtn { background: var(--brand-soft); color: var(--brand); }
.audio-bubble .wave { flex: 1; height: 26px; display: flex; align-items: center; gap: 2px; }
.audio-bubble .wave i { flex: 1; border-radius: 2px; background: currentColor; opacity: .5; }
.audio-bubble .wave i.on { opacity: 1; }
.typing { display: flex; gap: 4px; padding: 13px 15px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: bob 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; background: var(--accent); }
.typing i:nth-child(3) { animation-delay: .3s; background: var(--sky); }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: .55; } 30% { transform: translateY(-5px); opacity: 1; } }
.conv-foot { flex: none; padding: 8px 8px calc(8px + var(--sab)); display: flex; align-items: flex-end; gap: 4px; background: var(--surface); box-shadow: 0 -1px 0 var(--border); }
.conv-foot .icon-btn { width: 42px; height: 46px; color: var(--brand); }
.conv-foot textarea { flex: 1; border: 2px solid transparent; border-radius: 24px; padding: 11px 16px; background: var(--surface-2); outline: none; resize: none; max-height: 120px; min-height: 46px; line-height: 1.35; }
.conv-foot textarea:focus { border-color: var(--brand); background: var(--surface); }
.rec-bar { flex: 1; height: 46px; border-radius: 23px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--danger); font-weight: 800; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.react-picker { position: fixed; z-index: 400; display: flex; gap: 2px; background: var(--surface); padding: 6px 8px; border-radius: 999px; box-shadow: var(--shadow); animation: toastIn .3s var(--spring); }
.react-picker button { width: 34px; height: 40px; display: grid; place-items: center; transition: transform .25s var(--spring); }
.react-picker button .rx { width: 30px; height: 30px; }
.react-picker button:active { transform: scale(1.3); }
.react-picker button.on { transform: translateY(-3px) scale(1.15); }
.member-pick { display: flex; align-items: center; gap: 12px; padding: 10px 6px; width: 100%; text-align: left; color: var(--text); border-radius: 16px; }
.member-pick:active { background: var(--surface-2); }
.member-pick .tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; color: #fff; transition: background .2s, transform .3s var(--spring); }
.member-pick.on .tick { background: var(--brand); border-color: var(--brand); transform: scale(1.08); }
.stk-sheet .sticker-grid { max-height: 52dvh; grid-template-columns: repeat(4, 1fr); }
.stk-sheet .sticker-grid button:active { background: var(--surface-2); }
.stk-sheet .sticker-cats button { background: var(--surface-2); color: var(--muted); }
.stk-sheet .sticker-cats button.on { background: var(--text); color: var(--bg); }

/* Snap-Ansicht */
.snap-view { position: fixed; inset: 0; z-index: 260; background: #0E0820; display: grid; place-items: center; max-width: 640px; margin: 0 auto; }
.snap-view img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.snap-timer { position: absolute; top: calc(var(--sat) + 14px); right: 14px; width: 46px; height: 46px; border-radius: 50%; background: rgba(20, 8, 40, .55); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); font-size: 18px; }
.snap-note { position: absolute; bottom: calc(var(--sab) + 18px); left: 16px; right: 16px; text-align: center; color: rgba(255, 255, 255, .75); font-size: 12.5px; }

/* ---------- Anruf ---------- */
.call { position: fixed; inset: 0; z-index: 280; background: radial-gradient(90% 60% at 50% 0%, #5B2EE6 0%, transparent 70%), radial-gradient(70% 50% at 100% 100%, rgba(255, 79, 154, .35), transparent 70%), #130A2A; color: #fff; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; }
.call-grid { flex: 1; display: grid; gap: 6px; padding: calc(var(--sat) + 6px) 6px 6px; min-height: 0; }
.call-grid.n1 { grid-template-columns: 1fr; }
.call-grid.n2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.call-grid.n3, .call-grid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tile { position: relative; border-radius: 24px; overflow: hidden; background: #22164A; display: grid; place-items: center; min-height: 0; }
.tile video { width: 100%; height: 100%; object-fit: cover; }
.tile .name { position: absolute; left: 10px; bottom: 10px; background: rgba(20, 8, 40, .5); padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; backdrop-filter: blur(8px); }
.tile .av { width: 96px; height: 96px; font-size: 32px; }
.self-view { position: absolute; right: 14px; top: calc(var(--sat) + 14px); width: 106px; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); background: #22164A; z-index: 3; border: 2px solid rgba(255, 255, 255, .3); }
.self-view video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.self-view.back video { transform: none; }
.call-info { text-align: center; padding: 20px; }
.call-info .av { margin: 0 auto 16px; width: 128px; height: 128px; font-size: 40px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .07), 0 0 0 22px rgba(255, 255, 255, .035); }
.call-info.ringing .av { animation: ringPulse 1.6s infinite; }
@keyframes ringPulse { 50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, .09), 0 0 0 34px rgba(255, 255, 255, .035); transform: scale(1.03); } }
.call-info h2 { font-size: 30px; }
.call-ctrls { flex: none; display: flex; justify-content: center; gap: 16px; padding: 18px 10px calc(22px + var(--sab)); }
.call-ctrls button { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; transition: transform .3s var(--spring); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.call-ctrls button:active { transform: scale(.9); }
.call-ctrls button.off { background: #fff; color: var(--brand); }
.call-ctrls .hang { background: var(--danger); }
.call-ctrls .accept { background: #22C55E; }
.call-status { text-align: center; font-size: 14px; color: rgba(255, 255, 255, .75); padding-bottom: 4px; font-weight: 600; }

/* ---------- Admin (ruhiger, gleiches System) ---------- */
.admin-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 12px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: 20px; padding: 14px 15px; box-shadow: var(--shadow-sm); color: var(--text); display: block; }
.stat b { color: var(--brand); font-family: var(--font-display); font-size: 30px; font-weight: 600; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.stat.hot b { color: var(--accent); }
.q-card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 14px; }
.q-card .q-head { display: flex; align-items: center; gap: 10px; padding: 12px; }
.q-card .q-media { display: flex; gap: 4px; overflow-x: auto; background: #120A22; }
.q-card .q-media img, .q-card .q-media video { height: 260px; width: auto; max-width: 100%; object-fit: contain; flex: none; margin: 0 auto; }
.q-card .q-text { padding: 10px 14px; font-size: 15px; white-space: pre-wrap; }
.q-card .q-reason { margin: 0 12px 10px; padding: 9px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.q-card .q-reason .ic { margin-top: 1px; }
.q-card .q-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.q-card .q-actions .btn { flex: 1 1 auto; height: 46px; white-space: nowrap; }
.q-card .q-actions .btn.sm { height: 40px; font-size: 13.5px; padding: 0 10px; }
.ctx { margin: 0 12px 10px; border-radius: 14px; background: var(--surface-2); padding: 8px 12px; font-size: 13.5px; }
.ctx div { padding: 2px 0; }
.ctx .rep { background: color-mix(in srgb, var(--danger) 14%, transparent); border-radius: 8px; padding: 2px 6px; }
.log-item { padding: 11px 15px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.log-item .a { font-weight: 800; }
.invite-link { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--surface-2); padding: 11px 13px; border-radius: 14px; word-break: break-all; }
.setting { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--border); }
.setting:last-child { border-bottom: 0; }
.setting .txt { flex: 1; }
.setting .txt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.setting input[type="time"], .setting input[type="number"] { width: 110px; height: 42px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2); padding: 0 8px; }

/* ---------- Einstieg / Auth ---------- */
.auth { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--sat) + 22px) 20px calc(var(--sab) + 24px); position: relative; overflow-x: hidden; }
.auth::before { content: ""; position: absolute; inset: -30% -40% auto; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent), radial-gradient(closest-side at 70% 60%, color-mix(in srgb, var(--sky) 26%, transparent), transparent); pointer-events: none; }
.auth .floaty { position: absolute; width: 58px; pointer-events: none; animation: floaty 6s ease-in-out infinite; opacity: .95; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, -8deg)); } 50% { transform: translateY(-10px) rotate(calc(var(--r, -8deg) * -1)); } }
.auth-logo { width: 96px; height: 96px; margin: 0 auto 12px; display: block; filter: drop-shadow(0 18px 30px rgba(106, 53, 240, .45)); animation: logoIn .7s var(--spring) both; }
@keyframes logoIn { from { transform: scale(.6) rotate(-10deg); opacity: 0; } }
.auth .wordmark { display: flex; justify-content: center; color: var(--brand); margin-bottom: 4px; }
.auth h1 { text-align: center; font-size: 32px; }
.auth .lead { text-align: center; color: var(--muted); margin: 8px auto 22px; max-width: 32ch; font-size: 16px; }
.auth .card { position: relative; border-radius: var(--r-xl); padding: 20px; }
.av-pick { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; background: var(--surface-2); }
.av-pick .av { width: 76px; height: 76px; box-shadow: 0 10px 20px -12px rgba(76, 31, 196, .7); }
.av-pick .txt { flex: 1; min-width: 0; }
.av-pick .txt b { font-family: var(--font-display); font-weight: 600; font-size: 17px; display: block; }
.av-pick .row { gap: 6px; margin-top: 8px; }

/* Nachtruhe / Zeit um */
.restrict { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; text-align: center; padding: 30px; background: radial-gradient(90% 60% at 50% 10%, #3A2490 0%, transparent 70%), linear-gradient(180deg, #160E36, #0D0820); color: #fff; overflow: hidden; }
.restrict .night-art { width: min(300px, 78vw); height: auto; margin: 0 auto 6px; overflow: visible; }
.restrict .night-art .tw { animation: twinkle 3.2s ease-in-out infinite; }
.restrict .night-art .moon { animation: moonBob 6s ease-in-out infinite; transform-origin: 90px 90px; }
.restrict .night-art .zz { animation: zz 3s ease-in-out infinite; }
.restrict .night-art .cloud { animation: drift 9s ease-in-out infinite alternate; }
.restrict .night-art .c2 { animation-duration: 11s; animation-direction: alternate-reverse; }
@keyframes twinkle { 0%, 100% { opacity: .35; scale: .8; } 50% { opacity: 1; scale: 1.1; } }
@keyframes moonBob { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -6px; rotate: 2deg; } }
@keyframes zz { 0% { opacity: 0; translate: -6px 8px; } 40% { opacity: 1; } 100% { opacity: 0; translate: 8px -14px; } }
@keyframes drift { to { translate: 14px 0; } }
.restrict h1 { font-size: 38px; margin-bottom: 6px; }
.restrict .big { font-size: 80px; margin-bottom: 10px; }
.restrict p { color: rgba(255, 255, 255, .78); max-width: 30ch; margin: 8px auto; font-size: 16px; }
.restrict .help-line { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.restrict .clock-art { width: 180px; margin: 0 auto 10px; }

/* Composer (neuer Beitrag) */
.compose-preview { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.compose-preview .pv { flex: none; width: 112px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; position: relative; background: var(--surface-2); }
.compose-preview .pv img, .compose-preview .pv video { width: 100%; height: 100%; object-fit: cover; }
.compose-preview .pv .x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(20, 8, 40, .6); color: #fff; display: grid; place-items: center; }
.compose-preview .add { flex: none; width: 112px; aspect-ratio: 4 / 5; border-radius: 18px; border: 2.5px dashed var(--surface-3); display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.progress-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--grad-pop); width: 0; transition: width .2s; border-radius: 4px; }

.notif { display: flex; align-items: center; gap: 12px; padding: 12px 16px; width: 100%; text-align: left; color: var(--text); }
.notif.unread { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.notif .emoji-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 20px; flex: none; }
.notif .av-wrap { position: relative; flex: none; }
.notif .av-wrap .rx, .notif .av-wrap .kind { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--surface); display: grid; place-items: center; color: var(--brand); }
.notif .av-wrap .kind .ic { width: 13px; height: 13px; }

.searchbar { position: relative; margin: 8px 14px 6px; }
.searchbar .input { padding-left: 44px; height: 48px; background: var(--surface-2); border-color: transparent; border-radius: 999px; }
.searchbar .ic { position: absolute; left: 15px; top: 14px; color: var(--muted); }

/* Hilfe */
.hero-help { border-radius: var(--r-xl); padding: 20px; color: #fff; background: radial-gradient(120% 90% at 90% 0%, #FF8AC4 0%, transparent 55%), var(--grad); box-shadow: 0 20px 40px -20px rgba(106, 53, 240, .8); position: relative; overflow: hidden; }
.hero-help .illu { position: absolute; right: -10px; top: -6px; width: 120px; opacity: .95; }
.hero-help h2 { color: #fff; font-size: 26px; max-width: 12ch; }
.hero-help .num { background: rgba(255, 255, 255, .16); border-radius: 18px; padding: 12px 14px; margin-top: 14px; }
.hero-help .num strong { font-family: var(--font-display); font-weight: 600; font-size: 34px; display: block; line-height: 1.1; letter-spacing: .5px; }

/* ---------- Avatar-Baukasten ---------- */
.creator { position: fixed; inset: 0; z-index: 320; background: var(--bg); display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; animation: layerIn .35s var(--ease); }
.creator-top { display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 8px) 10px 6px; flex: none; }
.creator-top h2 { flex: 1; text-align: center; font-size: 20px; }
.creator-stage { flex: none; height: min(36dvh, 300px); position: relative; display: grid; place-items: center; }
.creator-stage::before { content: ""; position: absolute; width: min(58vw, 260px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); filter: blur(6px); }
.creator-stage .preview { width: min(54vw, 236px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; box-shadow: 0 0 0 6px var(--surface), 0 24px 50px -22px rgba(76, 31, 196, .7); }
.creator-stage .preview svg { width: 100%; height: 100%; display: block; }
.creator-stage .preview.bump { animation: avBump .45s var(--spring); }
@keyframes avBump { 40% { transform: scale(1.06) rotate(-2deg); } 70% { transform: scale(.98); } }
.creator-stage .dice { position: absolute; left: 16px; bottom: 10px; }
.creator-stage .undo { position: absolute; right: 16px; bottom: 10px; }
.creator-stage .glass-btn { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); width: 50px; height: 50px; }
.creator-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border-radius: 32px 32px 0 0; box-shadow: 0 -16px 40px -26px rgba(76, 31, 196, .45); padding-bottom: var(--sab); }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 14px 10px; flex: none; scrollbar-width: none; scroll-snap-type: x proximity; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: 14px; background: var(--surface-2); color: var(--muted); scroll-snap-align: start; transition: background .2s, color .2s, transform .3s var(--spring); }
.cat-tabs button:active { transform: scale(.94); }
.cat-tabs button.on { background: var(--text); color: var(--bg); }
.opt-scroll { flex: 1; overflow-y: auto; padding: 4px 14px 18px; -webkit-overflow-scrolling: touch; }
.opt-label { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--muted); margin: 10px 4px 8px; }
.opt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.opt-grid button { position: relative; aspect-ratio: 1; border-radius: 22px; background: var(--surface-2); overflow: hidden; transition: transform .3s var(--spring), box-shadow .2s; }
.opt-grid button img { width: 100%; height: 100%; display: block; }
.opt-grid button:active { transform: scale(.92); }
.opt-grid button.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--brand); }
.opt-grid button.on::after { content: ""; position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.opt-grid button span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10.5px; font-weight: 800; padding: 10px 2px 4px; background: linear-gradient(transparent, rgba(30, 14, 60, .55)); color: #fff; text-align: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; padding: 2px 2px 6px; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .06); transition: transform .3s var(--spring), box-shadow .2s; position: relative; }
.swatches button:active { transform: scale(.88); }
.swatches button.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--brand); transform: scale(1.06); }
.creator-foot { flex: none; padding: 10px 14px calc(10px + var(--sab)); background: var(--surface); box-shadow: 0 -1px 0 var(--border); }

@media (min-width: 641px) {
  body { background: var(--surface-2); }
  #app { box-shadow: 0 0 60px rgba(76, 31, 196, .1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
