:root {
  /* Abstände für Notch, Kamera-Loch und Home-Leiste. Ältere Android-WebViews kennen env(safe-area-inset-*) nicht –
     dort setzt die App-Hülle (Capacitor, SystemBars) dieselben Werte als --safe-area-inset-*; es zählt der größere. */
  --sa-top: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --sa-bottom: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  --sa-right: max(env(safe-area-inset-right, 0px), var(--safe-area-inset-right, 0px));
  --bg: #000;
  --surface: #141414;
  --surface-2: #1f1f1f;
  --border: #2a2a2a;
  --text: #fff;
  --muted: #9a9a9a;
  --accent: #fff;
  --accent-text: #000;
  --hot: #ff3b5c;
  --ok: #3ddc84;
  --radius: 16px;
  --tabbar-h: 68px;
  --line: var(--border); /* (Trennlinien, z. B. in der Verwaltung) */
  /* Für den hellen Modus umschaltbar (siehe unten: :root[data-theme="light"]) */
  --text-2: #cfcfcf;
  --bar-bg: rgba(10,10,10,.92);
  --glass: rgba(12,12,12,.92);
  --top-glass: rgba(0,0,0,.9);
  --toggle-off: #444;
  --focus: #555;
  --toast-bg: #fff;
  --toast-text: #000;
  --banner-bg: #17110d;
  --recap-bg: radial-gradient(120% 120% at 0% 0%, #3a0d1a 0%, #1a0f05 55%, var(--surface) 100%);
  --recap-line: #3a2a1a;
  --recap-sub: #e2c9b4;
  color-scheme: dark;
}
/* Heller Modus (Nutzereinstellungen → Darstellung): Schwarz wird hell, Orange und die anderen Farben bleiben */
:root[data-theme="light"] {
  --bg: #fff;
  --surface: #f2f2f2;
  --surface-2: #e5e5e5;
  --border: #dadada;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --accent: #0a0a0a;
  --accent-text: #fff;
  --text-2: #3d3d3d;
  --bar-bg: rgba(255,255,255,.94);
  --glass: rgba(255,255,255,.94);
  --top-glass: rgba(255,255,255,.92);
  --toggle-off: #cfcfcf;
  --focus: #999;
  --toast-bg: #111;
  --toast-text: #fff;
  --banner-bg: #fff4eb;
  --recap-bg: radial-gradient(120% 120% at 0% 0%, #ffe1e7 0%, #fff1e3 55%, var(--surface) 100%);
  --recap-line: #f0d6c0;
  --recap-sub: #8a5a3c;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overscroll-behavior-y: none; /* kein Gummiband/Pull-to-Refresh wie in einer echten App */
}
/* Handy-App: Knöpfe reagieren sofort (kein Doppeltipp-Zoom), kein Markieren/Kontextmenü beim langen Drücken */
button, .tabbar, .chip, .person-open { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
h2 { font-size: 1.05rem; margin: 28px 0 8px; }
.sub, .muted, small { color: var(--muted); }
.sub { margin: -4px 0 12px; font-size: .9rem; }
.error { color: var(--hot); min-height: 1.2em; margin: 4px 0; font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.load-error { display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--muted); padding: 32px 16px; }
.load-error p { margin: 0; }

.logo { font-weight: 900; letter-spacing: -0.04em; font-size: 1.6rem; }
.logo.big { font-size: min(3.6rem, 26vw); margin: 0; } /* (große Schrift, z. B. 200 %: nicht breiter als der Bildschirm) */
.logo .lit { background: linear-gradient(120deg, var(--hot), #ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Logo als Vorschau unter Einstellungen → Darstellung (zeigt gleich, wie der Modus aussieht) */
.theme-logo { display: block; margin: 2px 0 10px; font-size: 1.9rem; line-height: 1.1; }
/* Beim Umschalten des Modus: ein Lichtreflex läuft einmal über das Logo (nicht bei "Bewegung reduzieren") */
@keyframes logo-shine { from { background-position: 130% 0, 0 0; } to { background-position: -30% 0, 0 0; } }
.logo.logo-shine { background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%) 130% 0 / 250% 100% no-repeat,
  linear-gradient(var(--text), var(--text)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: logo-shine .9s ease-out 1; }
.logo.logo-shine .lit { background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.9) 50%, transparent 65%) 130% 0 / 250% 100% no-repeat,
  linear-gradient(120deg, var(--hot), #ff8a00); -webkit-background-clip: text; background-clip: text; animation: logo-shine .9s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .logo.logo-shine, .logo.logo-shine .lit { animation: none; } }

/* ---------- Buttons & Inputs */
.btn {
  appearance: none; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 12px 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.danger { color: var(--hot); width: 100%; margin: 32px 0; }
.btn.small { min-height: 44px; min-width: 44px; padding: 7px 14px; font-size: .85rem; } /* Tippfläche mindestens 44 × 44 px (auch kurze Wörter wie türkisch „Sil“) */
.btn.link { background: none; border: none; color: var(--muted); font-weight: 500; }
.btn.round { width: 44px; height: 44px; padding: 0; background: rgba(0,0,0,.45); border: none; font-size: 1.1rem; }
.btn:disabled { opacity: .5; }
input:not([type=checkbox]) {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
input:focus { outline: 2px solid var(--focus); }

.card { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.form { display: grid; gap: 10px; }

/* ---------- Auth */
/* Anmelden/Registrieren: senkrecht mittig, mit Abstand zu Notch und Home-Leiste. Ist der Inhalt höher als der
   Bildschirm (Tastatur offen, lange Sprachen), wächst die Seite einfach mit und scrollt. */
.auth { max-width: 420px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; box-sizing: border-box; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--sa-top) + 24px) 20px calc(var(--sa-bottom) + 16px); }
.auth[hidden] { display: none; }
.tagline { color: var(--muted); margin: 4px 0 24px; }
/* Wenig Höhe (Tastatur offen, kleines Handy): Logo kleiner, damit Felder und Knopf sichtbar bleiben */
@media (max-height: 700px) {
  .auth .logo.big { font-size: 2.2rem; }
  .auth .tagline { margin-bottom: 14px; }
}
.auth-form .error:empty { display: none; }
.auth-help-mail { justify-self: center; }

/* ---------- Layout */
#app { min-height: 100%; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--sa-top) + 10px) 16px 10px; background: var(--bg); /* deckend: nichts scheint durch */
}
.pill { font-size: .8rem; color: var(--muted); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
main { padding: 0 16px calc(var(--tabbar-h) + var(--sa-bottom) + 24px); max-width: 560px; margin: 0 auto; }
/* Fokus mit Tab/Shift+Tab (und scrollIntoView) nicht unter Kopfzeile oder Tab-Leiste – nur in der App, nicht auf der Anmeldung */
html:has(#app:not([hidden])) {
  scroll-padding-top: calc(var(--topbar-h, calc(var(--sa-top) + 64px)) + 8px);
  scroll-padding-bottom: calc(var(--tabbar-h) + var(--sa-bottom) + 8px);
}
/* (darunter klebt das Lit-Banner, darüber der Aufnahme-Knopf – beide verdecken ebenfalls) */
html:has(#app:not([hidden])):has(#lit-banner.lit:not([hidden])) { /* (nur lit klebt es; sonst scrollt es mit) */
  scroll-padding-top: calc(var(--topbar-h, calc(var(--sa-top) + 64px)) + var(--lit-banner-h, 0px) + 8px);
}
html:has(#app:not([hidden])):has(body.has-fab) {
  scroll-padding-bottom: calc(var(--tabbar-h) + var(--sa-bottom) + 16px + max(58px, 2.415rem) + 8px);
}


/* Signal-Banner (Lit-Modus) */
.moment-banner {
  position: sticky; top: var(--topbar-h, calc(var(--sa-top) + 64px)); z-index: 19; /* direkt unter der Topbar, auch mit Notch (Höhe misst die App, große Schrift eingeschlossen) */ margin: 0 16px 12px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--banner-bg); border: 1px solid rgba(255,138,0,.45); box-shadow: 0 0 18px rgba(255,90,40,.18);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  animation: pop .35s ease-out; isolation: isolate; overflow: hidden;
}
/* Lit: das Banner "fängt Feuer" – der Verlauf blendet über den dunklen Grund */
.moment-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #ff3b5c, #ff8a00);
  opacity: 0; transition: opacity .6s ease;
}
.moment-banner.lit { border-color: transparent; color: #fff; } /* auf dem Flammen-Verlauf immer weiß */
.moment-banner.lit::before { opacity: 1; }
.moment-banner span { display: block; font-size: .85rem; opacity: .9; font-variant-numeric: tabular-nums; }
.moment-banner .btn { flex: none; }
.moment-banner .banner-go { background: var(--lit-grad); color: #fff; border: none; font-weight: 700; }
.banner-actions { display: grid; gap: 6px; flex: none; justify-items: stretch; }
/* Nicht lit: "Lit gehen" ist der Hauptknopf – breit unter dem Text, warm leuchtend, aber ruhig.
   Das Banner scrollt mit (klebt nicht oben), damit es nicht nervt. */
.moment-banner:not(.lit) { position: relative; top: auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
.moment-banner:not(.lit) .banner-actions { justify-items: stretch; }
.moment-banner:not(.lit) .banner-go {
  position: relative; overflow: hidden; width: 100%; min-height: 48px; padding: 12px 18px; border-radius: 14px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 22px rgba(255,80,40,.32);
  animation: lit-breathe 3.2s ease-in-out infinite;
}
/* Ab und zu ein langsamer Lichtstreif über den Knopf */
.moment-banner:not(.lit) .banner-go::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); transform: skewX(-18deg);
  animation: lit-shine 5.5s ease-in-out infinite;
}
.moment-banner:not(.lit) .banner-go:active { transform: scale(.98); }
@keyframes lit-breathe { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 30px rgba(255,80,40,.5); } }
@keyframes lit-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .moment-banner:not(.lit) .banner-go, .moment-banner:not(.lit) .banner-go::after { animation: none; }
}
/* Lit an: Titel und Countdown oben über die ganze Breite (passt meist in eine Zeile; ist eine
   Sprache zu lang, bricht der Text sauber um statt gekürzt zu werden),
   darunter nebeneinander "Du bist lit" (Status) und "Lit-Modus ausschalten" */
.moment-banner.lit { flex-direction: column; align-items: stretch; gap: 10px; }
.moment-banner.lit > div:first-child { min-width: 0; }
.moment-banner #lit-banner-title, .moment-banner #lit-banner-countdown { display: block; overflow-wrap: anywhere; }
.moment-banner.lit .banner-actions { display: flex; flex-wrap: wrap; gap: 8px; text-align: center; }
.moment-banner.lit .banner-actions > * { flex: 1 1 0; min-width: max-content; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: .3em; }
.moment-banner .lit-status {
  display: block; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.55);
}
.moment-banner .lit-off {
  padding: 6px 12px; font-size: .78rem; font-weight: 700; color: #fff; /* (bricht bei großer Schrift um statt abgeschnitten zu werden) */
  background: rgba(0,0,0,.5); border: none;
}

/* Countdown bis zum nächsten Zeitfenster: Name links, Countdown rechts. Wird der Kasten im Verhältnis zur Schrift zu
   schmal (große Schrift, lange Sprachen), rutscht der Countdown in eine eigene Zeile, statt die Seite zu verbreitern
   (Container-Abfrage in rem: gilt erst bei großer Schrift, bei normaler bleibt alles wie gehabt) */
.next-window {
  container-type: inline-size; margin: 0 16px 12px; padding: 10px 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); animation: pop .35s ease-out;
}
.next-window-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.next-window small { display: block; color: var(--muted); font-size: .75rem; }
.next-window strong { font-size: .95rem; white-space: nowrap; }
.next-window-time { text-align: right; margin-left: auto; } /* (passt die Zeile nicht, rechts in einer eigenen Zeile) */
.next-window-time b { font-size: 1.05rem; font-variant-numeric: tabular-nums; background: var(--lit-grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
@container (max-width: 18.5rem) {
  .next-window-row { flex-wrap: wrap; }
  .next-window-row > div:first-child { min-width: 0; }
  .next-window strong { white-space: normal; overflow-wrap: anywhere; }
  .next-window-time b { white-space: normal; }
}

/* Lit gehen: Flammen steigen vom Knopf auf, unten glüht der Bildschirm */
.lit-burst { position: fixed; inset: 0; z-index: 2500; pointer-events: none; overflow: hidden; }
.lit-burst .glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,120,0,.55), rgba(255,59,92,.25) 45%, transparent 75%);
  animation: burst-glow 1.6s ease-out forwards;
}
.lit-burst .flame {
  position: absolute; font-size: var(--s, 28px); line-height: 1; transform: translate(-50%, -50%);
  animation: flame-rise var(--d, 1.2s) cubic-bezier(.2,.7,.3,1) var(--delay, 0s) forwards; opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255,120,0,.8));
}
.lit-burst .ring {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 3px solid #ff8a00; box-shadow: 0 0 24px #ff3b5c; animation: burst-ring .7s ease-out forwards;
}
@keyframes flame-rise {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -220px))) scale(1.15) rotate(var(--r, 0deg)); }
}
@keyframes burst-ring { to { transform: scale(7); opacity: 0; } }
@keyframes burst-glow { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.ignite { animation: ignite .6s ease-out; }
@keyframes ignite { 30% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255,138,0,.35), 0 0 30px 8px rgba(255,59,92,.7); } }
@media (prefers-reduced-motion: reduce) { .lit-burst .flame, .lit-burst .ring { display: none; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; align-items: center;
  height: calc(var(--tabbar-h) + var(--sa-bottom)); padding-bottom: var(--sa-bottom);
  background: var(--bar-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
}
.tabbar button {
  position: relative; background: none; border: none; color: var(--muted); font: inherit; font-size: .7rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; min-width: 56px;
}
.tabbar button.active { color: var(--text); }
.tabbar button b { font-weight: inherit; }
/* Icons wie in großen Social-Media-Apps: einfarbige Linien, ausgewählt weiß und gefüllt */
.tabbar .ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.active .ico { fill: currentColor; stroke-width: 2; }
/* Großer Aufnahme-Knopf im Lit-Modus (ersetzt den Knopf in der Tab-Leiste) */
.rec-fab {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--sa-bottom) + 14px); transform: translateX(-50%);
  z-index: 600; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 26px 0 12px;
  border: none; border-radius: 999px; background: var(--lit-grad); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800;
  cursor: pointer; white-space: nowrap; box-shadow: 0 8px 28px rgba(255,59,92,.45);
  animation: fab-in .4s cubic-bezier(.2,1.4,.4,1), fab-glow 1.8s ease-in-out .4s infinite;
  /* (große Schrift bzw. lange Übersetzungen: höchstens so breit wie der Bildschirm, dann zweizeilig statt abgeschnitten) */
  height: auto; min-height: 58px; width: max-content; max-width: calc(100vw - 24px); white-space: normal; line-height: 1.15;
}
.rec-fab-dot { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; position: relative; flex: none; }
.rec-fab-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.rec-fab:active { transform: translateX(-50%) scale(.96); }
@keyframes fab-in { from { transform: translateX(-50%) translateY(30px) scale(.6); opacity: 0; } }
@keyframes fab-glow { 50% { box-shadow: 0 8px 28px rgba(255,59,92,.45), 0 0 0 8px rgba(255,138,0,.18), 0 0 34px 6px rgba(255,59,92,.5); } }
@media (prefers-reduced-motion: reduce) { .rec-fab { animation: none; } }
/* Pfeil zu eigenen Posts mit Neuem weiter unten im Feed: rechts unten, mit Aufnahme-Knopf darüber */
.news-jump {
  position: fixed; right: calc(max(16px, 50% - 264px) + var(--sa-right)); bottom: calc(var(--tabbar-h) + var(--sa-bottom) + 16px);
  z-index: 590; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); animation: pop .25s ease-out;
}
/* (über dem Aufnahme-Knopf – bei großer Schrift ist er zweizeilig und höher: 2 × 1.15 × 1.05rem) */
body.has-fab .news-jump { bottom: calc(var(--tabbar-h) + var(--sa-bottom) + 26px + max(58px, 2.415rem)); }
.news-jump .i { width: 24px; height: 24px; transition: transform .2s ease; }
.news-jump.up .i { transform: rotate(180deg); } /* darunter nichts mehr, Ungelesenes liegt weiter oben */
.news-jump .badge { top: -5px; right: -5px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .news-jump { animation: none; } }
body.has-fab main { padding-bottom: calc(var(--tabbar-h) + var(--sa-bottom) + 96px); }
body.has-fab .toast { bottom: calc(var(--tabbar-h) + var(--sa-bottom) + 90px); }
.badge {
  position: absolute; top: -2px; right: 10px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--hot);
  color: #fff; font-style: normal; font-size: .7rem; line-height: 18px; padding: 0 5px;
}

/* ---------- Feed */
.lock-hint { text-align: center; padding: 18px 8px 8px; color: var(--muted); }
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 8px; } /* minmax: lange Namen werden abgeschnitten statt die Seite zu verbreitern */
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post-head .meta { flex: 1; min-width: 0; }
.post-head .name { font-weight: 700; overflow-wrap: anywhere; } /* (lange Namen ohne Leerzeichen: umbrechen, sonst wird der große Clip bzw. das Recap breiter als der Bildschirm) */
.post-head small { display: block; }
.video-wrap {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Posts passen aufs Handy: Das Bild ist höchstens gut halb so hoch wie der Bildschirm (52 %), damit man Kopf, Bild und schon
   den nächsten Post sieht. Auf Handys wird der ganze Post dadurch etwas schmaler und steht mittig (Feed und Recap). */
#feed-list .post, #recap-list .post { width: min(100%, max(250px, 52vh * 0.75)); margin-inline: auto; }
@supports (height: 1svh) {
  #feed-list .post, #recap-list .post { width: min(100%, max(250px, 52svh * 0.75)); }
}
.loc-toggle input { accent-color: #fff; } /* Häkchen farblos */
/* Moderation */
.mod-note { margin: 0 4px 12px; font-size: .85rem; }
/* Moderation: Grund fürs Löschen/Sperren wählen (die Person sieht ihn) */
.mod-reasons { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; } /* (fieldset ist sonst mindestens so breit wie sein Inhalt) */
.mod-reasons legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.mod-reason { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .95rem; cursor: pointer; overflow-wrap: anywhere; }
.mod-reason input { width: 20px; height: 20px; accent-color: var(--text); flex: none; }
.mod-case { display: grid; gap: 10px; margin-bottom: 12px; min-width: 0; overflow-wrap: anywhere; } /* (lange Namen) */
.mod-meta { display: block; }
/* Schon verwarnt: rot wie andere Warnungen, damit die Moderation beim nächsten Mal an Sperren denkt */
.mod-warned { display: flex; align-items: center; gap: 4px; color: var(--hot); font-weight: 600; }
.mod-warned .i { width: 14px; height: 14px; flex: none; }
.notice-warning { color: var(--hot); font-weight: 700; }
.mod-reasons { margin: 0; font-size: .9rem; }
.mod-post { position: relative; width: 60%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #111; }
.mod-post video, .mod-post .main-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.mod-post .selfie { position: absolute; top: 8px; left: 8px; width: 32%; border-radius: 8px; border: 2px solid #000; }
/* Schlichte Linien-Icons statt Emojis: einfarbig, Farbe vom Text */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Suchfelder: Lupe als Linien-Icon im Feld */
#search-input, #party-search { padding-left: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px 50%; background-size: 18px; }
/* (im hellen Modus in dessen --muted: #9a9a9a wäre auf dem hellen Feld zu blass) */
:root:is([data-theme="light"], [data-theme="silver"], [data-theme="gold"]) #search-input, :root:is([data-theme="light"], [data-theme="silver"], [data-theme="gold"]) #party-search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E"); }
.video-wrap .sound {
  position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center;
  border: none; border-radius: 50%; background: var(--media-overlay); color: var(--on-media);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 6px rgba(0,0,0,.25); z-index: 3; /* (wie .no-sound: auch über dem getauschten, großen Selfie) */
}
.video-wrap .sound .i { width: 17px; height: 17px; }
.caption { margin: 8px 2px 0; overflow-wrap: anywhere; } /* (lange Wörter oder Links ohne Leerzeichen) */
.chip {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); border: none; font: inherit; font-size: .8rem; cursor: pointer;
}

/* ---------- Avatare & Listen */
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  color: #000; font-size: 15px; text-transform: uppercase; white-space: nowrap;
  /* (Initialen in px: die Kreise haben feste Größen – bei großer Schrift passten sie sonst nicht hinein) */
}
.avatar.large { width: 64px; height: 64px; font-size: 22px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
.person .meta { flex: 1; min-width: 0; }
.person .name { font-weight: 600; }
.person .actions { display: flex; gap: 6px; }
.count { color: var(--muted); font-weight: 500; }

.search { margin-top: 12px; display: flex; align-items: center; gap: 4px; }
.search input { flex: 1; min-width: 0; }
.search-cancel { flex: none; min-height: 44px; padding: 0 6px 0 10px; border: none; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Freunde: wie bei Snapchat – Gruppen-Karten mit kompakten Zeilen */
.f-section { margin-top: 22px; }
.f-head { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; font-size: 1rem; }
.count-pill { background: var(--hot); color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.count-pill:empty, .count:empty { display: none; }
.f-info { flex: none; margin-left: auto; width: 44px; height: 44px; margin-right: -7px; border-radius: 50%; border: none; background: none; color: var(--muted); font-size: 1.05rem; cursor: pointer; }
.f-info[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.f-note { margin: 0 4px 10px; font-size: .85rem; }
.f-card { background: var(--surface); border-radius: var(--radius); padding: 0 12px; }
.f-card:empty { display: none; }
.f-card .person { gap: 8px; padding: 10px 0; flex-wrap: wrap; }
#blocked-list .person { flex-wrap: wrap; } /* (wie in den Freundeslisten, siehe unten) */
#blocked-list .person-open { flex: 1 1 8rem; }
#blocked-list .person > .actions { margin-left: auto; }
/* Bei großer Schrift (bzw. sehr langen Übersetzungen) rutschen die Knöpfe unter Name und Text, statt sie zu überdecken
   oder zusammenzudrücken: unter 8rem Platz für Bild und Text bricht die Zeile um */
.f-card .person-open { flex: 1 1 8rem; }
.f-card .person > .actions { margin-left: auto; }
.f-card .person:last-child { border-bottom: none; }
.f-card .avatar { width: 44px; height: 44px; font-size: 15px; } /* (Initialen passen zur festen Größe, auch bei großer Schrift) */
.f-card .empty { margin: 0; padding: 14px 0; font-size: .9rem; }
.person-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 0; border: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.person-open .meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; min-width: 0; }
/* höchstens zwei Zeilen, dann "…" (einzeilig blieb in langen Sprachen neben "+ Toevoegen" nur der Vorname übrig) */
.person-open .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.person-open small { font-size: .8rem; line-height: 1.3; overflow-wrap: anywhere; } /* (große Schrift: umbrechen statt unter die Knöpfe) */
.f-card .actions { align-items: center; gap: 2px; }
.f-card .btn.small { padding: 6px 12px; }
.person-open .partied { margin: 0; color: var(--text-2); }
.f-card .person.pop { animation: pop .35s ease-out; }
.btn.icon { width: 44px; height: 44px; margin-right: -8px; padding: 0; display: grid; place-items: center; background: none; border-color: transparent; color: var(--muted); }
.letter { padding: 10px 0 4px; font-size: .75rem; font-weight: 800; color: var(--muted); border-bottom: 1px solid var(--surface-2); }
.f-section .list-more { margin-top: 8px; }
/* Personen-Karte */
.person-sheet { display: grid; gap: 12px; }
.person-head { display: flex; align-items: center; gap: 14px; }
.person-head > div { min-width: 0; }
.person-head h3 { margin: 0 0 2px; overflow-wrap: anywhere; } /* (lange Namen umbrechen) */
.person-sheet .story { margin: 0; font-size: .92rem; }
.person-sheet .more, .person-sheet .mutual, .person-sheet .pending { font-size: .85rem; color: var(--muted); }
.person-sheet .partied { margin: 0; font-size: .9rem; }
.sheet-actions, .sheet-safety { display: grid; gap: 8px; }
.center { margin: 0; text-align: center; }

/* ---------- Profil */
.profile-head { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.profile-head .name { font-size: 1.2rem; font-weight: 800; min-width: 0; overflow-wrap: anywhere; } /* (lange Namen umbrechen) */
.settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 12px; } /* (eine Spalte in Kartenbreite: ein breites Element – große Schrift, Android-Textzoom – verbreitert sonst die ganze Karte) */
.toggle { display: flex; gap: 12px; align-items: center; justify-content: space-between; cursor: pointer; }
.toggle input { width: 46px; height: 28px; appearance: none; background: var(--toggle-off); border-radius: 999px; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { transform: translateX(18px); }
.loc-setting { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lang-select { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 1rem; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.loc-setting small { color: var(--muted); }
.seg { display: flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 2px; }
/* (Bei großer Schrift bzw. langen Übersetzungen umbrechen statt die Karte breiter als den Bildschirm zu machen) */
.seg button { flex: 1 1 auto; min-width: 44px; border: none; background: none; color: var(--muted); font: inherit; font-size: .8rem; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; min-height: 44px; padding: 4px; border-radius: 999px; cursor: pointer; }
.seg button.active { background: var(--lit-grad); color: #fff; font-weight: 700; }
.loc-friends { display: grid; gap: 8px; }
.loc-friend { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; } /* (Tippfläche) */
.loc-friend .avatar { width: 32px; height: 32px; font-size: 12px; }
.loc-friend span { flex: 1; min-width: 0; overflow-wrap: anywhere; } /* (lange Namen umbrechen statt die Einstellungen zu verbreitern) */
.loc-friend input { width: 20px; height: 20px; accent-color: var(--lit); }
.memories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.memory { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--surface); }
.memory video { width: 100%; height: 100%; object-fit: cover; }
.memory span { position: absolute; left: 6px; bottom: 4px; font-size: .7rem; font-weight: 700; text-shadow: 0 1px 3px #000; }
.memory span.mem-when { line-height: 1.2; color: #fff; font-size: min(.7rem, 5vw); } /* liegt auf dem Bild: in beiden Modi weiß (bei großer Schrift nicht breiter als die Kachel) */
.memory[data-clip-id] { cursor: pointer; }
.memories-open { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 18px; text-align: left; color: inherit; font: inherit; cursor: pointer; border: 1px solid var(--border); }
#open-memories { flex-direction: column; align-items: stretch; }
/* Vorschau: die letzten drei Posts nebeneinander, komplett mit zweitem Bild und Play bei Videos */
.mem-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mem-prev { border-radius: 8px; background: var(--surface-2); }
.mem-prev video, .mem-prev img.main-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.mem-prev .mem-selfie { top: 4px; left: 4px; border-radius: 5px; }
.memory .mem-play { position: absolute; left: 50%; bottom: auto; text-shadow: none; top: 50%; translate: -50% -50%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--media-overlay); color: var(--on-media); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.memory .mem-play .i { width: 16px; height: 16px; fill: currentColor; stroke-width: 1.4; margin-left: 2px; }
.mem-open-text { flex: 1; display: grid; min-width: 0; }
.mem-open-text strong { overflow-wrap: anywhere; } /* lange Wörter (nl, sv) bei großer Schrift */
.mem-open-text small { color: var(--muted); }
.settings-open .settings-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.settings-open strong { font-size: 1rem; }
.settings-body { max-width: 560px; margin: 4px auto 0; }
.settings-logout { width: 100%; margin: 16px 0 0; }
.settings-delete { width: 100%; margin: 12px 0 calc(var(--sa-bottom) + 16px); }
.delete-form { display: grid; gap: 12px; }
.delete-form .error { margin: 0; min-height: 0; }
.memories-view { position: fixed; inset: 0; z-index: 1050; background: var(--bg); overflow-y: auto; padding: 0 12px calc(var(--sa-bottom) + 24px);
  scroll-padding-top: calc(var(--sa-top) + 72px); } /* (Fokus mit Shift+Tab nicht unter der klebenden Kopfzeile .memories-top) */
.memories-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: calc(var(--sa-top) + 10px) 4px 10px; background: var(--top-glass); backdrop-filter: blur(10px); } /* (über allem, was darunter durchscrollt, z. B. ⋯ der Memories-Kacheln mit z-index 2) */
.memories-top strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 1.1rem; }
.memories-top .btn.round { flex: none; } /* ← bleibt 44 × 44, auch neben einem langen Titel */
.mem-month { grid-column: 1 / -1; margin: 14px 2px 2px; font-size: .95rem; }
.memories-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 560px; margin: 0 auto; }
.memories-gallery .memory { border-radius: 6px; }
.memories-gallery .memory video, .memories-gallery .memory img.main-photo { width: 100%; height: 100%; object-fit: cover; }
.mem-selfie { position: absolute; top: 5px; left: 5px; width: 34%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 1.5px solid #000; z-index: 1; pointer-events: none; }
.party-search { width: 100%; margin: 4px 0 10px; }
.pending { display: block; font-size: .78rem; color: var(--muted); }
.toast { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; } /* (lange Namen im Hinweis umbrechen) */
.toast-action { background: none; border: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.list-more { margin-top: 10px; }
.loc-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; }
.loc-summary .btn { flex: 0 1 auto; } /* (große Schrift: darf schrumpfen und umbrechen statt die Einstellungen zu verbreitern) */
.loc-done { justify-self: end; }
.memory span.mem-when small { display: block; font-weight: 600; opacity: .9; color: inherit; }
.night-item { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--surface-2); }
.party-hint { margin: -6px 0 4px; font-size: .85rem; }
.night-item .night-row { border-bottom: none; flex: 1; }
.night-del { background: none; border: none; color: var(--muted); font-size: 1.05rem; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; }
.night-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; flex: 1; justify-content: space-between; min-width: 0; }
.night-confirm > span:first-child { flex: 1 1 0; min-width: min(min-content, 100%); }
/* (große Schrift bzw. lange Übersetzungen: Knöpfe in die nächste Zeile bzw. untereinander, nicht rechts abgeschnitten) */
.night-confirm > span:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; align-items: center; margin-left: auto; max-width: 100%; }
.night-confirm .btn { width: auto; flex: none; white-space: nowrap; padding: 7px 12px; border-radius: 999px; margin: 0; } /* (nicht der Rand des alleinstehenden .btn.danger) */

/* ---------- Kamera */
.camera { position: fixed; inset: 0; z-index: 2000; background: #000; }
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera video.mirror { transform: scaleX(-1); }
.cam-top { position: absolute; top: calc(var(--sa-top) + 12px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.cam-timer { font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 999px; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: calc(var(--sa-bottom) + 24px); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; }
.cam-mode { display: flex; gap: 4px; background: rgba(0,0,0,.45); border-radius: 999px; padding: 4px; }
.cam-mode button { border: none; background: none; color: #ddd; font: inherit; font-size: .85rem; padding: 6px 14px; min-height: 44px; border-radius: 999px; cursor: pointer; }
.cam-mode button.active { background: #fff; color: #000; font-weight: 600; }
.cam-mode.hidden-mode { visibility: hidden; }
.camera .cam-main-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-wrap img.main-photo, .memory img.main-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-hint { margin: 0; font-size: .8rem; color: #ddd; text-shadow: 0 1px 3px #000; }
.shutter { position: relative; width: 86px; height: 86px; border: none; background: none; padding: 0; cursor: pointer; }
.shutter svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.shutter circle { fill: none; stroke-width: 6; }
.shutter .ring-bg { stroke: rgba(255,255,255,.9); }
.shutter .ring { stroke: var(--hot); stroke-dasharray: 289; stroke-dashoffset: 289; }
.shutter-inner { position: absolute; inset: 14px; border-radius: 50%; background: var(--hot); transition: all .2s; }
.shutter.recording .shutter-inner { inset: 28px; border-radius: 8px; }
.cam-bottom.review { gap: 10px; max-width: 480px; margin: 0 auto; z-index: 2; } /* (über dem Selfie: bei wenig Höhe reicht es bis in die Bildunterschrift) */
/* Wenig Höhe (Tastatur offen bei der Bildunterschrift): Steuerung nicht über die obere Leiste schieben, Selfie weg */
.cam-bottom.review { max-height: calc(100% - var(--sa-top) - var(--sa-bottom) - 104px); overflow-y: auto; }
@media (max-height: 520px) { .camera:has(#cam-review-controls:not([hidden])) .selfie { display: none; } }
.cam-bottom.review input:not([type=checkbox]) { background: rgba(0,0,0,.6); }
.loc-toggle { align-self: flex-start; font-size: .9rem; display: flex; gap: 8px; align-items: center; text-shadow: 0 1px 3px #000; }
.row { display: flex; gap: 10px; width: 100%; }
.row .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--sa-bottom) + 20px); transform: translateX(-50%);
  background: var(--toast-bg); color: var(--toast-text); padding: 10px 16px; border-radius: 999px; font-weight: 600; z-index: 2100; width: max-content; max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
/* Ist ein Blatt von unten offen (Melden, Kommentare, Kamera …), steht der Hinweis oben – sonst läge er auf dessen Knöpfen
   bzw. dem Eingabefeld (und bei offener Tastatur darunter) */
.toast.toast-top { bottom: auto; top: calc(var(--sa-top) + 64px); }
/* Fehler in der Kamera (z. B. "Keine Verbindung" beim Posten): auf dunklem Grund, wie die Knöpfe auf dem Bild – lesbar
   auf jeder Aufnahme */
.camera #cam-error:not(:empty) { justify-self: stretch; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--media-overlay); color: #ff8a9b; }

/* ================================================================ StayLit-Erweiterungen */
:root { --lit: #ff8a00; --lit-grad: linear-gradient(120deg, #ff3b5c, #ff8a00); }
/* Krone (gegeben): Gold – im hellen Modus etwas dunkler, damit Zahl und Rand lesbar bleiben */
:root { --crown: #ffc93c; --crown-deep: #f2a100; --crown-edge: #b77800; --crown-text: #ffc93c; --lit-text: var(--lit); }
:root[data-theme="light"] { --crown-text: #b77800; --lit-text: #a35200; } /* (Orange als Text auf Weiß: dunkler, wie die Krone) */
/* Knöpfe auf Videos und Fotos (Ton, „ohne Ton“): in beiden Modi dunkel mit weißem Icon, wie die Kamera */
:root { --media-overlay: rgba(0, 0, 0, .58); --on-media: #fff; }
.top-right { display: flex; gap: 8px; align-items: center; }
.field { display: grid; gap: 6px; text-align: left; font-size: .9rem; color: var(--muted); }
/* Eingaben mindestens 16 px – sonst zoomt das iPhone beim Antippen */
.field input, .field textarea, .field select, textarea { font-size: 16px; }
textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; resize: vertical; }
.field input { color-scheme: dark; }

.btn.lit { background: var(--lit-grad); color: #fff; border: none; flex: none; }

/* Bottom-Sheets */
.bottom-sheet { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card {
  width: 100%; max-width: 560px; max-height: 80vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(var(--sa-bottom) + 18px); display: grid; gap: 12px;
  overflow-wrap: anywhere; /* lange Namen in Überschriften und Erklärungen umbrechen (sonst wird das Blatt breiter) */
  /* Zeilen so hoch wie ihr Inhalt – auch wenn das Blatt höher als 80vh ist und scrollt (sonst schrumpften sie auf ihre
     Mindesthöhe, z. B. „Mitteilung, wenn … lit geht“ auf 44 px, und der Text lag über den Clips und „Schließen“) */
  grid-auto-rows: max-content;
}
.sheet-card h3 { margin: 0; font-size: 1.1rem; }
.sheet-card .btn { width: 100%; }
.sheet-card .sheet-note { margin: -6px 0 2px; font-size: .82rem; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.seen-list { display: grid; gap: 10px; }
.seen-row { display: flex; align-items: center; gap: 10px; }
.seen-row .avatar { width: 36px; height: 36px; font-size: 13px; flex: none; }
.seen-row strong { display: block; font-size: .95rem; }
.seen-row small { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.seen-dot { width: 8px; height: 8px; border-radius: 50%; background: #666; flex: none; }
.seen-dot.fresh { background: #3ddc84; box-shadow: 0 0 6px #3ddc84; }
.avatars .who { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.avatars .avatar { width: 30px; height: 30px; font-size: 11px; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

/* Selfie im Post (andere Kamera) */
.selfie {
  position: absolute; top: 10px; left: 10px; width: 30%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px;
  border: 2px solid #000; z-index: 2; cursor: pointer; background: #222;
}
.video-wrap.swapped .selfie { inset: 0; width: 100%; height: 100%; border: none; border-radius: 0; z-index: 1; cursor: default; }
.video-wrap.swapped video, .video-wrap.swapped img.main-photo { cursor: pointer; object-fit: cover; }
.video-wrap.swapped img.main-photo { position: absolute; top: 10px; left: 10px; width: 30%; height: auto; aspect-ratio: 3 / 4; border-radius: 12px; border: 2px solid #000; z-index: 2; }
.video-wrap.swapped video { position: absolute; top: 10px; left: 10px; width: 30%; height: auto; aspect-ratio: 3 / 4; border-radius: 12px; border: 2px solid #000; z-index: 2; }
.camera .selfie { top: calc(var(--sa-top) + 70px); left: 16px; width: 28%; }
.countdown {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; gap: 6px;
  background: rgba(0,0,0,.35); font-size: 1.3rem; text-shadow: 0 2px 8px #000; pointer-events: none;
}
.countdown span { font-size: 5.5rem; font-weight: 900; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .countdown span { animation: tick 1s ease-out; }
  @keyframes tick { from { transform: scale(1.6); opacity: 0; } }
}
.camera.flash::after {
  content: ""; position: absolute; inset: 0; z-index: 4; background: #fff; pointer-events: none;
  animation: flash .35s ease-out forwards;
}
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
.row.redo .btn { padding: 9px 8px; font-size: .82rem; min-width: 0; overflow-wrap: anywhere; hyphens: auto; } /* (ru: "Переснять всё") */
.btn.wide { width: 100%; }
.post-head .more { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; min-width: 44px; min-height: 44px; margin-right: -10px; padding: 0; }

/* Rückblick */
.win-friends { display: flex; flex-wrap: wrap; gap: 10px; }
.win-friends .who { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.win-friends .avatar { width: 28px; height: 28px; font-size: 10px; }
.win-friends small { color: var(--muted); }
.recap-card {
  background: var(--recap-bg);
  border: 1px solid var(--recap-line); border-radius: var(--radius); padding: 16px; margin: 8px 0 14px; display: grid; gap: 6px; cursor: pointer;
}
.recap-card strong { font-size: 1.05rem; }
.recap-card small { color: var(--recap-sub); }
.recap h1 { font-size: 1.8rem; letter-spacing: -0.02em; margin: 16px 0 2px; }
.recap .back { margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.stat { background: var(--surface); border-radius: 14px; padding: 10px 8px; text-align: center; }
.stat b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin: 0 -6px; font-size: .72rem; color: var(--muted); overflow-wrap: anywhere; hyphens: auto; } /* (große Schrift: pl „Znajomych“ umbrechen statt unter die Nachbarkachel) */
.night-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--surface-2); cursor: pointer; background: none; border-left: none; border-right: none; border-top: none; width: 100%; color: inherit; font: inherit; text-align: left; }

.btn.danger-inline { color: var(--hot); }

/* Profilbild */
img.avatar { object-fit: cover; background: var(--surface-2); display: block; }
.me-avatar { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--border); background: none; cursor: pointer; flex: none; overflow: hidden; }
.me-avatar .avatar { width: 100%; height: 100%; font-size: 12px; }
.view-profile-active .me-avatar { border-color: var(--text); }
.profile-head { align-items: center; }
.profile-photo { position: relative; cursor: pointer; flex: none; padding: 0; border: none; background: none; color: inherit; font: inherit; border-radius: 50%; }
/* Frage vor dem Zugriff auf die Galerie */
.permission { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 6px 4px 2px; }
.permission-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.permission-icon .i { width: 28px; height: 28px; stroke-width: 1.7; }
.permission h3 { font-size: 1.05rem; }
.permission p { margin: 0; font-size: .9rem; }
.photo-edit { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: .8rem; border: 2px solid var(--surface); }
.photo-edit::after { content: ""; position: absolute; inset: -6px -16px -16px -6px; } /* Tippfläche 44 px (vom Polsterbereich aus: 22 px + 22), nur nach außen (die Bildmitte öffnet das große Bild) */
.photo-edit .i { width: 14px; height: 14px; stroke-width: 2.1; vertical-align: 0; }
.profile-meta { display: grid; gap: 2px; min-width: 0; }
/* Beschreibung unterm Namen (wie bei Instagram): lange Wörter umbrechen */
.profile-bio { margin: 2px 0 4px; font-size: .95rem; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.person-bio { margin: 0; max-width: 100%; font-size: .92rem; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.bio-hint { display: flex; justify-content: space-between; gap: 12px; margin-top: -4px; font-size: .8rem; color: var(--muted); }
.bio-count { flex: none; font-variant-numeric: tabular-nums; }
.bio-add { justify-self: start; min-height: 44px; margin: -6px 0 -8px; padding: 0 2px; font-size: .92rem; text-align: left; } /* Tippfläche 44 px */
.profile-head { flex-wrap: wrap; }
/* Score und Streak: unter Bild und Name über die ganze Breite der Karte */
.profile-stats { flex: 1 1 100%; display: grid; gap: 8px; min-width: 0; }
.stat-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-width: 0; }
.stat-row.center { justify-content: center; }
.streak-line { display: flex; align-items: center; gap: 4px; }
.streak-line > div { flex: 1; min-width: 0; }
.streak-line .f-info { flex: none; margin: -8px -7px -8px 0; }
/* Score im Oval: dunkel mit Lit-Verlauf als Rand und leichtem Leuchten – hervorgehoben, aber leiser als der Lit-Knopf */
.score-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--lit-grad) border-box; box-shadow: 0 0 14px rgba(255, 138, 0, .2);
  color: var(--muted); font-size: .88rem; white-space: nowrap; }
.score-pill strong, .streak-best strong { color: var(--text); font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.streak-best { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; max-width: 100%; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; } /* große Schrift: umbrechen statt die Seite zu verbreitern */
.streak-best .i { width: 18px; height: 18px; color: var(--lit); }
.stat-row.center .streak-best { justify-content: center; } /* (umgebrochen bei großer Schrift: mittig wie Bild, Name und Score) */
.streak-now { color: var(--muted); font-size: .85rem; }
.streak-now p, p.streak-now { margin: 0; }
.streak-now b { color: var(--text); font-variant-numeric: tabular-nums; }
.streak-bar { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.streak-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lit-grad); }
.lit-score { margin-top: 6px; }
/* Rekord geknackt: Flamme im Lit-Verlauf, große Zahl */
.permission-icon.record-icon { border-radius: 50%; background: var(--lit-grad); color: #fff; box-shadow: 0 0 24px rgba(255, 138, 0, .45); }
.streak-record .record-num { margin: 4px 0 0; font-size: 3rem; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums;
  background: var(--lit-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.streak-record .record-label { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 700; }
/* Personen-Karte von Freunden: kleine Profil-Übersicht (Bild, Name, Zahlen) */
.person-overview { display: grid; justify-items: center; gap: 8px; text-align: center; padding-top: 4px; }
.person-overview .avatar.large { width: 88px; height: 88px; font-size: 29px; }
/* Personen-Karte mittig im Bildschirm (wie ein kleines Profil) statt von unten: Profilbild groß, unten zwei kleine Knöpfe */
.bottom-sheet.pop { align-items: center; padding: calc(var(--sa-top) + 16px) 16px calc(var(--sa-bottom) + 16px); }
.bottom-sheet.pop > .sheet-card { max-width: 400px; max-height: 100%; border-radius: 24px; padding: 24px 18px 16px; animation: pop-in .2s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes pop-in { from { transform: scale(.92); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bottom-sheet.pop > .sheet-card { animation: none; } }
.bottom-sheet.pop .person-sheet { text-align: center; }
.bottom-sheet.pop .person-sheet > small { justify-self: center; }
.bottom-sheet.pop .person-overview { gap: 10px; }
.bottom-sheet.pop .person-overview .avatar.large, .bottom-sheet.pop .person-overview .lit-ring.large .avatar { width: 128px; height: 128px; font-size: 42px; }
.bottom-sheet.pop .person-overview h3 { font-size: 1.35rem; }
.person-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.person-foot .btn { min-height: 44px; }
.person-overview h3 { margin: 0; font-size: 1.15rem; max-width: 100%; overflow-wrap: anywhere; }
.score-note { margin: 8px 4px 0; display: grid; gap: 6px; }
.score-note p { margin: 0; }
.score-note b { color: var(--text); }
/* Name eines Freundes im Post: antippen öffnet seine Personen-Karte (Name + Uhrzeit zusammen mind. 44 px hoch) */
.post-head .meta:has(.person-link) { cursor: pointer; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.person-link { display: block; max-width: 100%; padding: 0; border: none; background: none; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-actions { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.photo-actions .btn.link { padding: 7px 4px; }
.visually-hidden { position: absolute; width: 1px !important; height: 1px; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ton */
.no-sound {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: 999px; background: var(--media-overlay); color: var(--on-media); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 6px rgba(0,0,0,.25); font-size: .75rem; font-weight: 600; z-index: 3;
}
.no-sound .i { width: 14px; height: 14px; }
.review-toggles { display: flex; gap: 0 18px; flex-wrap: wrap; align-self: flex-start; } /* (die 44 px hohen Schalter genügen als Abstand) */
.review-toggles .loc-toggle { min-height: 44px; } /* Tippfläche */

/* Eigene Posts */
/* Kleine Knöpfe auf Bildern: sichtbar klein, Tippfläche 44 px */
.memory-more::after, .video-wrap .sound::after { content: ""; position: absolute; inset: -6px; } /* (.memory-more 6 px vom Rand: sonst schnitte overflow der Kachel die Fläche auf 42 px) */
.clip-own { position: relative; }
.clip-own .clip-tile { width: 100%; }
.memory-more { position: absolute; right: 6px; top: 6px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: .9rem; }
.btn.danger-solid { background: var(--hot); border-color: var(--hot); color: #fff; }

/* Gemeinsam gefeiert */
.partied { font-size: .8rem; color: var(--text-2); margin-top: 3px; }
.same-party {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
}

/* Clip-Kacheln mit Absender, großer Clip */
.clip-tile { border: none; padding: 0; cursor: pointer; color: #fff; font: inherit; text-align: left; }
.clip-tile .clip-who { position: absolute; left: 6px; right: 6px; bottom: 22px; display: flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; text-shadow: 0 1px 3px #000; overflow: hidden; white-space: nowrap; }
.clip-tile .clip-who .avatar { width: 20px; height: 20px; font-size: 8px; flex: none; }
.clip-tile .clip-time { position: absolute; left: 6px; bottom: 4px; font-size: .68rem; font-weight: 700; opacity: .85; text-shadow: 0 1px 3px #000; }
.clip-viewer { position: fixed; inset: 0; z-index: 1150; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: calc(var(--sa-top) + 16px) 16px calc(var(--sa-bottom) + 16px); }
.clip-card { width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto; background: var(--surface); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px;
  grid-auto-rows: max-content; } /* (Zeilen so hoch wie ihr Inhalt – sonst schrumpfte die Bild-Zeile, das 3:4-Bild ragte in die Bildunterschrift, und die Karte scrollte nicht) */
.clip-card .post-head { margin: 0; }
.clip-card .video-wrap { max-height: 65vh; }

/* ---------- Jetzt lit (statt Karte) */
.page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 10px 2px 14px; }
/* Profilbild mit Flammen-Ring: zeigt "lit" wie ein Story-Ring */
.lit-ring { display: inline-grid; place-items: center; flex: none; padding: 2.5px; border-radius: 50%; background: var(--lit-grad); }
.lit-ring .avatar { display: grid; width: 44px; height: 44px; border: 2.5px solid var(--bg); border-radius: 50%; }
.lit-ring.large .avatar { width: 64px; height: 64px; }
.sheet-card .lit-ring .avatar { border-color: var(--surface); }
.lit-me { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px; border-radius: var(--radius); background: var(--surface); }
.lit-me > .avatar { width: 49px; height: 49px; flex: none; opacity: .6; }
.lit-me-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 49px; padding: 0; border: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lit-me .meta { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; overflow-wrap: anywhere; } /* (große Schrift: Text bricht um statt unter „Lit gehen“) */
.lit-me small { font-size: .8rem; line-height: 1.3; }
.lit-me .btn { flex: none; min-height: 44px; }
.push-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 4px 12px 12px; margin-bottom: 12px; border-radius: var(--radius); border: 1px solid var(--border); }
.push-card .meta { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; padding-top: 2px; }
.push-card strong { font-size: .92rem; }
.push-card small { font-size: .8rem; line-height: 1.3; }
.push-card .btn.primary { margin-top: 8px; min-height: 44px; }
.push-card .btn.icon { flex: none; width: 44px; height: 44px; margin-top: -8px; }
.push-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.lit-list { display: grid; gap: 8px; }
.lit-group {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 10px 12px; border: none; border-radius: var(--radius);
  background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.lit-group:active { background: var(--surface-2); }
.lit-group .meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lit-group .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* immer eine Zeile */
.lit-group small { font-size: .82rem; line-height: 1.3; }
/* Mehrere Leute: Ringe leicht übereinander wie bei Gruppen-Storys */
.faces { display: flex; flex: none; }
.faces .lit-ring + .lit-ring { margin-left: -18px; }
.faces.n2 .lit-ring .avatar, .faces.n3 .lit-ring .avatar { width: 38px; height: 38px; font-size: 12px; }
.lit-sub { margin: -4px 0 0; font-size: .88rem; }
.seen-row { width: 100%; min-height: 48px; padding: 0; border: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.seen-row .lit-ring .avatar { width: 38px; height: 38px; font-size: 12px; }
/* (ohne Post öffnet das Bild groß: 44 × 44 px Tippfläche, Aussehen unverändert – der durchsichtige Rand trägt den Überstand, der
   Hintergrund reicht wie vorher bis unter den Rand um das Bild; 2 px wie der vom Browser auf ganze Pixel gerundete alte
   2,5-px-Rand – sonst würde das Bild 1 px kleiner und unten/rechts gerade abgeschnitten) */
.seen-row .lit-ring.no-post > .avatar { width: 44px; height: 44px; border-width: 3px; padding: 2px; margin: -3px; background-clip: padding-box !important; }
/* (mit Post öffnet der Ring die Clips: 38 + 2 × 2,5 px Ring sind 43 px – unsichtbar 1 px rundum mehr Tippfläche) */
.seen-row .lit-ring:not(.no-post) { position: relative; }
.seen-row .lit-ring:not(.no-post)::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; }
.notify-toggle { padding: 10px 0; border-top: 1px solid var(--surface-2); font-size: .92rem; min-height: 44px; }
.notify-toggle > span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; } /* (enthält den Namen) */
.dot-list > span:not(:empty) ~ span:not(:empty)::before { content: " · "; }
.theme-seg { margin-top: 2px; }
:root:is([data-theme="light"], [data-theme="silver"], [data-theme="gold"]) .btn.round { background: var(--surface-2); color: var(--text); }
/* Kamera bleibt auch im hellen Modus dunkel (wie bei Instagram/Snapchat) */
:root:is([data-theme="light"], [data-theme="silver"], [data-theme="gold"]) .camera {
  --bg: #000; --surface: #141414; --surface-2: #1f1f1f; --border: #2a2a2a; --text: #fff; --muted: #9a9a9a;
  --accent: #fff; --accent-text: #000; --focus: #555; color: var(--text); color-scheme: dark;
}
.notify-hint { display: block; margin-top: 8px; color: var(--muted); font-size: .85rem; }
#notify-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.notify-row { min-height: 44px; }
.notify-row > span:first-child { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; } /* (große Schrift: „Freundschaften“ umbrechen statt den Schalter hinauszuschieben) */
.notify-title { display: inline-flex; align-items: center; gap: 6px; }
#notify-box .notify-hint:not([hidden]) { margin-top: 10px; }
#notify-box .loc-friends { margin-top: 10px; }
.notify-sub { display: block; font-weight: 700; margin-bottom: 8px; }
/* Jeder weitere Schalter mit gleichem Abstand und Trennlinie */
.notify-row ~ .notify-row { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.lit-notify-box { margin-top: 10px; }
.lit-ring.more { background: var(--surface-2); }
/* Lit, aber heute noch nichts gepostet: kein Ring (gleich groß, damit nichts springt) */
.lit-ring.no-post { background: transparent; }
.lit-ring.no-post .avatar { border-color: transparent; }
.lit-ring.more .avatar { background: var(--surface-2); color: var(--text); font-weight: 800; font-size: 13px; }
.radar-off { display: grid; gap: 10px; justify-items: start; padding: 4px 2px; }
.radar-off p { margin: 0; }

/* ---------- Anmelden / Registrieren */
.auth-form { text-align: left; gap: 12px; }
.auth-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin-top: 18px; }
.auth-legal-links .btn.link { color: var(--muted); font-size: .88rem; min-height: 44px; min-width: 44px; padding: 0 4px; width: auto; }
.auth-title { margin: 0; font-size: 1.25rem; }
.auth-hint { margin: -4px 0 0; font-size: .9rem; }
/* "Passwort erfolgreich geändert" über dem Anmelden: deutlich, aber ohne Farbe (Farbe nur für Lit und Warnungen) */
.auth-hint.auth-success { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text); font-weight: 600; }
.auth-field { display: grid; gap: 10px; }
.auth-form .btn.link { justify-self: center; }
.phone-row { display: flex; gap: 8px; }
.phone-row input { flex: 1; min-width: 0; }
.auth-newnumber { display: grid; gap: 4px; margin-top: -6px; }
.newnumber-btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: none; background: none; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; }
.newnumber-btn[aria-expanded="true"] { color: var(--text); }
.newnumber-i { font-size: 1.05rem; }
.newnumber-note { margin: 0 2px 4px; font-size: .88rem; }
/* Sichtbar nur "DE +49"; darüber unsichtbar das System-Auswahlfeld mit allen Ländern (öffnet die native Liste) */
.country-pick {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; min-width: 92px; min-height: 48px;
  padding: 0 12px; border-radius: 12px; background: var(--input-bg, var(--surface-2)); border: 1px solid var(--border); color: var(--text);
  font-weight: 700; font-size: 1rem; cursor: pointer;
}
.country-pick::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.country-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.country-pick:focus-within { outline: 2px solid var(--focus); }
.code-input { letter-spacing: .4em; font-size: 1.3rem !important; text-align: center; font-variant-numeric: tabular-nums; }
.code-input:placeholder-shown { letter-spacing: normal; font-size: 1rem !important; }
.auth-small { margin: -4px 2px 0; font-size: .8rem; }
.auth-label { font-size: .85rem; font-weight: 700; margin: 2px 2px -4px; }
.auth-photo { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.auth-photo-preview { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.auth-photo-preview svg { width: 30px; height: 30px; }
.auth-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.auth-photo-main { display: grid; gap: 8px; min-width: 0; }
.auth-photo-main .auth-label { margin: 0; }
.auth-photo-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-photo-buttons .btn { min-height: 44px; }
.auth-photo-main .auth-label { justify-self: start; text-align: left; }
/* ✕ als kleiner Kreis an der Ecke des Bildes, Tippfläche trotzdem 44 × 44 */
.auth-photo-pic { position: relative; flex: none; }
.auth-photo-remove { position: absolute; top: -12px; right: -14px; width: 44px; height: 44px; display: grid; place-items: center;
  padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.auth-photo-remove[hidden] { display: none; }
.auth-photo-remove span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: var(--surface-2); border: 1px solid var(--border); }
.account-card { margin-bottom: 12px; }
.account-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; } /* große Schrift: Knopf in die nächste Zeile */
/* (Ausgangsbreite 0, mindestens das längste Wort: umgebrochen wird nur, wenn neben dem Knopf nicht einmal das Platz hat) */
.account-line > span { display: grid; gap: 2px; flex: 1 1 0; min-width: min(min-content, 100%); }
.account-value { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-line.toggle { min-height: 44px; } /* (ganze Zeile ist die Tippfläche des Schalters – auch wenn der Hinweis in eine Zeile passt, z. B. tr bei 430 px) */
.account-line .btn { flex: none; max-width: 100%; } /* (lange Knopftexte, z. B. fr, umbrechen statt überlaufen) */
/* Geburtsdatum: Tag · Monat · Jahr in eigenen Feldern (statt Datumsfeld des Browsers), Zahlentastatur, 16 px Schrift */
.birth { border: none; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.birth legend { padding: 0; margin-bottom: 6px; font-size: .9rem; color: var(--muted); }
.birth-row { display: grid; grid-template-columns: 1fr 1fr 1.5fr 48px; gap: 8px; }
/* Kalender-Knopf: öffnet wahlweise die Datumsauswahl des Handys */
.birth-pick { display: grid; grid-template-rows: auto 1fr; gap: 4px; width: 48px; font-size: .78rem; }
.birth-pick-btn { position: relative; }
.birth-pick button { width: 48px; height: 100%; min-height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.birth-pick button .i { width: 22px; height: 22px; }
.birth-pick input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; pointer-events: none; color-scheme: dark; }
:root:is([data-theme="light"], [data-theme="silver"], [data-theme="gold"]) .birth-pick input { color-scheme: light; }
.birth-pick.direct input { pointer-events: auto; }
.birth-row label { display: grid; gap: 4px; min-width: 0; font-size: .78rem; color: var(--muted); }
.birth-row input { min-height: 48px; font-size: 1rem; text-align: center; font-variant-numeric: tabular-nums; padding: 12px 8px; }
.birth-row input[aria-invalid="true"] { border-color: var(--hot); outline-color: var(--hot); }

/* ---------- Rechtstexte */
.legal-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 4px 2px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.legal-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--lit); }
.legal-check a, .legal-page a { color: var(--text); text-decoration: underline; }
/* Größere Tippflächen über mehr Zeilenabstand – die Polsterung der Links bleibt im Zwischenraum der Zeilen (12 px
   reichten über das Wort der Zeile darüber: ein Tipp auf "Nutzungsbedingungen" öffnete sonst die Datenschutzerklärung) */
.legal-check > span { line-height: 1.7; }
.legal-check a { display: inline-block; padding: 3px 0; margin: -3px 0; }
.legal-view { z-index: 2060; } /* (über der Zustimmung und der Kamera – geöffnet z. B. aus der Zustimmung) */
.legal-page { max-width: 640px; margin: 0 auto; padding: 4px 6px 24px; line-height: 1.55; overflow-wrap: anywhere; }
.legal-page h2, .legal-page h3, .legal-page h4 { margin: 22px 0 6px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; hyphens: auto; }
.legal-standalone { background: var(--bg); color: var(--text); }
.legal-standalone .legal-page { padding: calc(var(--sa-top) + 20px) 16px calc(var(--sa-bottom) + 32px); }
.legal-consent { position: fixed; inset: 0; z-index: 2050; /* über der Kamera: neue Rechtstexte beim Posten */ background: var(--bg); display: grid; place-items: center; overflow-y: auto;
  padding: calc(var(--sa-top) + 16px) 16px calc(var(--sa-bottom) + 16px); }
.legal-consent-inner { max-width: 420px; width: 100%; min-width: 0; display: grid; gap: 12px; text-align: center; }
.legal-consent-inner h2 { margin: 4px 0 0; overflow-wrap: anywhere; hyphens: auto; } /* (große Schrift: "Nutzungsbedingungen") */
.legal-consent-inner .permission-icon { justify-self: center; }
.legal-card { display: grid; gap: 10px; margin: 12px 0 0; }
.legal-card .btn { overflow-wrap: anywhere; } /* (große Schrift: „Nutzungsbedingungen“ im Knopf umbrechen) */
.contacts-open { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; text-align: left; color: inherit; font: inherit; border: 1px solid var(--border); cursor: pointer; min-height: 44px; }
.contacts-open .meta { display: grid; gap: 2px; }
.contacts-open small { color: var(--muted); }
.contact-results { display: grid; gap: 10px; max-height: 55vh; overflow-y: auto; margin-inline: -2px; padding-inline: 2px; } /* (Rand: die 44-px-Tippfläche der Profilbilder ragt 2 px über – der Bildlauf-Bereich schnitte sie sonst ab) */
.contact-results .person { display: flex; align-items: center; gap: 10px; }
.contact-results .meta { flex: 1; min-width: 0; display: grid; }
.contact-results .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Freunde einladen */
.invite-actions { display: grid; gap: 10px; }
.invite-actions .btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none; }
.contact-head { margin: 14px 0 2px; font-size: .95rem; }
.contact-search { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; }
/* Suchfelder: kein eingebautes ✕ des Browsers (zu klein zum Tippen, im hellen Modus blau) – "Abbrechen" leert */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
/* Bis das Formular aufgebaut ist (Länderliste lädt noch): nicht alle Felder ungeordnet zeigen */
#auth-form:not([data-ready]) { display: none; }
.auth-invite { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
.invite-landing { max-width: 420px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center;
  padding: calc(var(--sa-top) + 24px) 20px calc(var(--sa-bottom) + 24px); }
.invite-landing h2 { margin: 0; font-size: 1.35rem; font-weight: 600; overflow-wrap: anywhere; max-width: 100%; }
.invite-landing h2 strong { font-weight: 800; }
.invite-landing p { margin: 0; }
.invite-avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; background: var(--surface-2); border: 3px solid var(--hot); }
.invite-buttons { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
.invite-buttons .btn { display: flex; justify-content: center; align-items: center; min-height: 48px; text-decoration: none; }
/* Öffentliche Seiten (Impressum, Datenschutz, Hilfe, "Gibt es nur als App"): Links zu den anderen ganz unten */
.public-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .9rem; }
.public-footer a { color: var(--muted); text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.invite-landing .public-footer { width: 100%; margin-top: 24px; }
/* Account löschen ohne App: das Formular wie die Anmeldung in der App */
.web-delete { margin: 12px 0 20px; }
.web-delete h3, .web-delete p { margin: 0; }
.web-delete .btn.link { justify-self: center; min-height: 44px; }

/* ---------- Kommentare: unter dem Post und im Blatt "Kommentare" */
.avatar.small { width: 32px; height: 32px; font-size: 12px; }

.comment-btn {
  display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 2px; background: none; border: none;
  color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.comment-btn .i { width: 1.35em; height: 1.35em; }
.comment-btn span:empty { display: none; }
.clip-card .post-actions { margin-top: 4px; }

#comments-sheet { z-index: 1200; } /* auch über dem großen Clip */
#action-sheet { z-index: 1250; }   /* Löschen/Melden über den Kommentaren */
.sheet-card.comments-card {
  display: flex; flex-direction: column; gap: 0; height: min(78svh, 640px); overflow: hidden;
  padding: 6px 0 calc(var(--sa-bottom) + 10px);
}
.comments-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 6px 16px; border-bottom: 1px solid var(--border); }
#comments-sheet .comments-top .btn.round { width: 44px; flex: none; background: none; color: var(--text); }
.comments-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 4px 6px 16px; }
.comments-empty { text-align: center; margin: 32px 12px; }
.comment { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.comment .avatar { margin-top: 2px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font-size: .88rem; }
.comment-meta small { color: var(--muted); margin-left: 4px; }
.comment-text { margin: 2px 0 0; overflow-wrap: anywhere; line-height: 1.38; }
.avatar.tiny { width: 24px; height: 24px; font-size: 10px; }
/* Antippbare Profilbilder (öffnen groß) mit mindestens 44 × 44 px Tippfläche, ohne dass sie größer aussehen oder anders
   stehen: Innenabstand um das Bild, gleich großer negativer Rand, Hintergrund nur im Inhalt (!important: die Farbe der
   Initialen kommt als Inline-Stil, der background-clip sonst zurücksetzt) (CLAUDE.md: Tippflächen) */
.post-head > .avatar { width: 44px; height: 44px; padding: 2px; margin: -2px; background-clip: content-box !important; }
.comment > .avatar.small { width: 44px; height: 44px; padding: 6px; margin: -4px -6px -6px; background-clip: content-box !important; }
.comment > .avatar.tiny { width: 44px; height: 44px; padding: 10px; margin: -8px -10px -10px; background-clip: content-box !important; }
.react-row > .avatar, .loc-friend > .avatar { width: 44px; height: 44px; padding: 6px; margin: -6px; background-clip: content-box !important; }
.contact-results .person > .avatar, .mod-case .person-head > .avatar, #blocked-list .person-open > .avatar { width: 44px; height: 44px; padding: 2px; margin: -2px; background-clip: content-box !important; }
.comment-reply, .replies-toggle {
  min-height: 44px; margin: -10px 0 -12px; padding: 0; background: none; border: none; color: var(--muted);
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.comment-reply { min-width: 44px; text-align: left; position: relative; } /* (kurze Übersetzungen wie "Reply": trotzdem 44 px breit zum Tippen; position: über der durchsichtigen Tippfläche des Profilbilds der ersten Antwort darunter) */
.replies { padding-left: 42px; }
.replies .comment { padding: 6px 0; }
.replies-toggle { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; } /* (nicht in die Fläche von „Antworten“ darüber) */
.replies-toggle::before { content: ""; width: 22px; height: 1px; background: var(--border); }
.replies-toggle .badge { position: static; font-weight: 700; }
.mention { font-weight: 700; }
.comment.flash { animation: comment-flash 1.6s ease-out; border-radius: 12px; }
@keyframes comment-flash { from { background: var(--surface-2); } to { background: transparent; } }
.reply-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 0 16px;
  background: var(--surface-2); color: var(--muted); font-size: .88rem;
}
.reply-bar[hidden] { display: none; }
#reply-name { min-width: 0; overflow-wrap: anywhere; }
.reply-cancel { flex: none; width: 44px; height: 44px; background: none; border: none; color: var(--text); font-size: 1rem; cursor: pointer; }
.comment-more { flex: none; width: 44px; height: 44px; margin-top: -8px; background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.comment-form { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0 16px; border-top: 1px solid var(--border); }
.comment-form input { flex: 1; min-width: 0; font-size: 16px; padding: 11px 16px; border-radius: 999px; background: var(--surface-2); }
#comment-form .comment-send { flex: none; width: 44px; height: 44px; background: var(--text); color: var(--bg); }
#comment-form .comment-send:disabled { background: var(--surface-2); color: var(--muted); opacity: 1; }
.comment-quote { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mod-comment { display: grid; gap: 2px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); overflow-wrap: anywhere; }
.mod-comment small { color: var(--muted); }

/* ---------- Flammen (wie Likes) und der Top-Post im Feed */
.post-actions { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.flame-btn {
  display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 2px; background: none; border: none;
  color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.flame-btn .i { width: 1.45em; height: 1.45em; }
.flame-btn.on { color: var(--lit-text); } /* (die Zahl als Text: im hellen Modus dunkleres Orange, wie .top-tag) */
.flame-btn.on .i { fill: var(--lit); stroke: var(--lit); } /* (die Flamme selbst bleibt orange, auch ihr Umriss) */
.flame-btn.own { cursor: default; color: var(--muted); }
.flame-btn.pop .i { animation: flame-pop .38s ease-out; }
@keyframes flame-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
.flame-burst {
  /* Doppeltipp wie das Herz bei TikTok: dort, wo der Finger tippt, ohne Rand, mit weichem Schein */
  position: absolute; width: 92px; height: 92px; margin: -60px 0 0 -46px; pointer-events: none; z-index: 4;
  filter: drop-shadow(0 6px 14px rgba(255, 70, 40, .45)); animation: flame-burst 1s cubic-bezier(.2, .8, .3, 1) forwards;
}
.flame-burst svg { width: 100%; height: 100%; display: block; }
@keyframes flame-burst {
  0% { transform: rotate(var(--rot)) scale(0); opacity: 0; }
  15% { transform: rotate(var(--rot)) scale(1.25); opacity: 1; }
  28% { transform: rotate(var(--rot)) scale(.92); }
  40% { transform: rotate(var(--rot)) scale(1.04); }
  70% { transform: rotate(var(--rot)) scale(1) translateY(0); opacity: 1; }
  100% { transform: rotate(var(--rot)) scale(1.35) translateY(-70px); opacity: 0; }
}

/* Top-Post des Tages: nur etwas größer als die anderen Posts – das Bild ist genauso groß wie dort, der Rahmen mit
   schmalem Rand und dezentem orangem Neon-Schein liegt knapp drumherum (Box nur um Innenabstand und Rand breiter). "Top-Post des Tages"
   steht klein neben der Uhrzeit statt in einer eigenen Zeile. */
#feed-list .post.top-post {
  /* (Breite des Inhalts = Breite der anderen Posts; Innenabstand und Rand kommen außen dazu – reicht der Platz nicht,
     ragt der Rahmen beidseits in den Rand der Seite, damit das Bild trotzdem so breit ist wie bei den anderen Posts) */
  --top-w: min(100%, max(250px, 52vh * 0.75));
  box-sizing: content-box; width: var(--top-w); margin-inline: calc((100% - var(--top-w)) / 2 - 7.5px);
  padding: 5px 6px 0; border-radius: 22px; border: 1.5px solid var(--lit);
  box-shadow: 0 0 4px rgba(255, 138, 0, .6), 0 0 14px rgba(255, 138, 0, .3), 0 0 26px rgba(255, 59, 92, .14);
}
@supports (height: 1svh) {
  #feed-list .post.top-post { --top-w: min(100%, max(250px, 52svh * 0.75)); }
}
@media (prefers-reduced-motion: no-preference) {
  #feed-list .post.top-post { animation: top-glow 2.6s ease-in-out infinite alternate; }
}
@keyframes top-glow {
  from { box-shadow: 0 0 3px rgba(255, 138, 0, .5), 0 0 10px rgba(255, 138, 0, .25), 0 0 20px rgba(255, 59, 92, .1); }
  to { box-shadow: 0 0 5px rgba(255, 138, 0, .75), 0 0 16px rgba(255, 138, 0, .38), 0 0 30px rgba(255, 59, 92, .18); }
}
.top-post .post-head { margin-bottom: 6px; }
/* Uhrzeit und "Top-Post des Tages" nebeneinander; ist es zu lang (z. B. Türkisch), rutscht der Hinweis sauber in die nächste Zeile */
.post-head small.top-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.top-tag { display: inline-flex; align-items: center; gap: 3px; color: var(--lit-text); font-weight: 700; overflow-wrap: anywhere; } /* große Schrift: umbrechen statt die Seite zu verbreitern */
.top-tag .i { fill: var(--lit-text); stroke: var(--lit-text); width: .95em; height: .95em; }

/* Moderation: Kommentare der gemeldeten Person an dem Tag (gelöschte durchgestrichen markiert) */
.mod-day { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.mod-day-title { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.mod-day-comment { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface); overflow-wrap: anywhere; }
.mod-day-comment p { margin: 0; }
.mod-day-comment small { color: var(--muted); }
.mod-day-comment.deleted { border: 1px dashed var(--border); }
.mod-day-comment.deleted p { color: var(--muted); }

/* Benutzername ändern: "@" fest vor dem Feld */
.username-field { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding-left: 10px; }
.username-field span { color: var(--muted); font-weight: 700; }
.username-field input { border: none; background: none; padding-left: 4px; font-size: 16px; }
.username-field input:focus { outline: none; }
.username-field:focus-within { outline: 2px solid var(--focus); }

/* Krone: eine pro Tag; aktiv gefüllt in Textfarbe (keine eigene Farbe – Farbe gibt es nur für die Flamme) */
.crown-btn {
  display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 2px; background: none; border: none;
  color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.crown-btn .i { width: 1.45em; height: 1.45em; }
.crown-btn.on { color: var(--crown-text); }
/* Gegebene Krone: Gold mit Glanz, ein roter und zwei grüne Steine – wie die Flamme, die orange wird */
.crown-on .crown-gold { fill: url(#crown-gold); stroke: var(--crown-edge); stroke-width: 1.3; }
.crown-on .crown-band { stroke: var(--crown-edge); stroke-width: 2; }
.crown-on .crown-tip { fill: var(--crown); stroke: var(--crown-edge); stroke-width: .8; }
.crown-on .gem-red { fill: #ff3b5c; stroke: #a8142f; stroke-width: .6; }
.crown-on .gem-green { fill: #2fd27a; stroke: #12733d; stroke-width: .6; }
.crown-btn.on .i { filter: drop-shadow(0 0 4px rgba(245, 179, 1, .45)); }
.crown-btn.own { cursor: default; color: var(--muted); }
.crown-btn.pop .i { animation: crown-pop .5s ease-out; }
@keyframes crown-pop { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(1.4) rotate(-8deg); } 65% { transform: scale(1.1) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.post-actions { gap: 10px; }

/* Eigener Post: wer hat Flammen und Kronen gegeben */
.flame-btn.own, .crown-btn.own { cursor: pointer; }
.react-group { display: grid; gap: 2px; grid-template-columns: minmax(0, 1fr); min-width: 0; } /* (lange Namen: Ellipse statt breiterem Blatt) */
.react-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: .95rem; }
.react-head .i, .react-head svg { width: 1.3em; height: 1.3em; }
.flame-head .i { fill: var(--lit); stroke: var(--lit); }
.react-row { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; }
.react-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.react-row small { color: var(--muted); flex: none; }

/* Neues auf eigenen Posts: rote Zahl im Kopf des Posts (Tippfläche 44 px) */
.news-slot { display: contents; }
.news-badge { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-right: -6px;
  padding: 0; border: none; background: none; cursor: pointer; }
.news-badge .badge { position: static; display: block; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px;
  font-size: .75rem; font-weight: 700; padding: 0 6px; animation: news-pop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes news-pop { from { transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) { .news-badge .badge { animation: none; } }
.react-row .new-tag { flex: none; color: var(--hot); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.btn.new-comments { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.new-comments .badge { position: static; font-weight: 700; }

/* Vibration (Nutzereinstellungen, unter "Darstellung") */
.haptics-row { min-height: 44px; }
.haptics-row > span:first-child { display: grid; gap: 2px; }
.haptics-row small { color: var(--muted); }

/* Profilbild groß in der Mitte (wie bei Instagram): dunkler, unscharfer Hintergrund, Bild springt sanft auf */
.avatar-view { position: fixed; inset: 0; z-index: 2400; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: av-fade .18s ease-out; }
.avatar-view[hidden] { display: none; }
.avatar-view-close { position: absolute; top: calc(var(--sa-top) + 10px); right: 12px; min-width: 44px; min-height: 44px; }
.avatar-view-fig { margin: 0; display: grid; justify-items: center; gap: 14px; }
.avatar-view-fig figcaption { font-weight: 700; font-size: 1.1rem; text-align: center; max-width: 80vw; overflow-wrap: anywhere; }
.avatar.avatar-big { width: min(76vw, 320px); height: min(76vw, 320px); font-size: clamp(3rem, 22vw, 7rem); object-fit: cover;
  box-shadow: 0 18px 60px rgba(0,0,0,.45); animation: av-pop .26s cubic-bezier(.2,1.3,.4,1); }
@keyframes av-fade { from { opacity: 0; } }
@keyframes av-pop { from { transform: scale(.35); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .avatar-view, .avatar.avatar-big { animation: none; } }
.avatar { cursor: pointer; }

/* Sicherung (Moderation): Stand der letzten Sicherung und "Jetzt sichern" */
.mod-backup { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
/* (lange Fehlermeldungen mit Pfaden, große Schrift: Text bricht um, „Jetzt sichern“ rutscht sonst darunter) */
.mod-backup-text { flex: 1 1 0; min-width: min(9rem, 100%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; overflow-wrap: anywhere; }
.mod-backup-head { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mod-backup small { color: var(--muted); }
.mod-backup-error, .mod-backup small.mod-backup-error { color: var(--hot); } /* (auch als kleiner Text: sonst gewönne das Grau darüber) */
/* Verwaltung: Kennzahlen oben (drei große Zahlen, darunter eine Tabelle 24 Std. / 7 / 30 Tage) */
.mod-stats { display: grid; gap: 10px; margin-bottom: 4px; }
.mod-stats small { color: var(--muted); }
.mod-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mod-tiles > div { background: var(--surface-2); border-radius: 12px; padding: 10px 8px; display: grid; gap: 2px; text-align: center; min-width: 0; }
.mod-tiles b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mod-tiles span { font-size: .75rem; color: var(--muted); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; } /* (lange Wörter mit Trennstrich, z. B. Freund-schaften) */
.mod-table-wrap { overflow-x: auto; }
.mod-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mod-table th, .mod-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.mod-table th[scope="row"], .mod-table thead th:first-child { text-align: left; font-weight: 500; color: var(--text); }
.mod-table thead th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.mod-table tr:last-child th, .mod-table tr:last-child td { border-bottom: none; }
.mod-top { flex-wrap: wrap; row-gap: 8px; }
.mod-tabs { flex: 1 1 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px; }
.mod-tabs::-webkit-scrollbar { display: none; }
.mod-tabs button { flex: none; position: relative; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mod-tabs button[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.mod-tab-badge { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.mod-panel { display: grid; gap: 12px; min-width: 0; }
/* Diagramme: eine Reihe, eine Farbe (Text), dünne Säulen; Antippen zeigt den Wert oben */
.mod-chart-card { display: grid; gap: 6px; min-width: 0; }
.mod-chart-card .chart-readout { margin: 0; font-size: .9rem; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.mod-chart-card .chart-readout b { font-size: 1.05rem; }
.mod-chart { width: 100%; height: auto; display: block; overflow: visible; color: var(--text); }
.mod-chart .col { fill: currentColor; opacity: .55; }
.mod-chart .col.sel { opacity: 1; }
.mod-chart .hit { fill: transparent; cursor: pointer; }
.mod-chart .base { stroke: var(--line); stroke-width: 1; }
.mod-chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.mod-chart text { fill: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.mod-chart-card .chart-note { color: var(--muted); }
.hbar-list { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .88rem; }
.hbar-label { overflow-wrap: anywhere; }
.hbar-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: 4px; background: var(--text); opacity: .7; }
.hbar-val { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 2.5ch; text-align: right; }
/* Nutzer: Filter "Alle" / "Gesperrt" (wie die Reiter, kleiner) und "Mehr anzeigen" am Ende langer Listen */
.mod-filter { display: flex; gap: 6px; margin: 0 0 4px; }
.mod-filter button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.mod-filter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
/* Meldungen nach Grund: Chips umbrechen (lange Übersetzungen), Zahl dahinter etwas leiser */
.mod-reason-filter { flex-wrap: wrap; margin: 0 0 12px; }
.mod-reason-filter button { max-width: 100%; text-align: left; }
.mod-chip-n { font-weight: 500; opacity: .75; margin-left: 2px; }
/* Verlauf: Knopf rechts im Kopf des Falls; im Blatt die Listen wie die Kommentare des Tages */
.mod-case .person-head > div:not(.avatar) { flex: 1 1 auto; } /* (nicht das Profilbild: das bleibt rund und fest) */
.mod-history-btn { flex: none; align-self: flex-start; }
.mod-history { display: grid; gap: 6px; margin: 4px 0 8px; }
.mod-history .mod-day-title { margin-top: 6px; }
.mod-history .mod-day-comment { background: var(--surface-2); }
.mod-count-line { margin: 4px 0 0; font-size: .85rem; }
.mod-more { width: 100%; margin-top: 12px; }
.mod-user { flex-wrap: wrap; }
.mod-user .meta { display: grid; gap: 1px; min-width: 0; flex: 1 1 10rem; }
.mod-user .meta small { color: var(--muted); }
.mod-user .actions { flex-wrap: wrap; margin-left: auto; }
.mod-user .tag-banned { color: var(--hot); font-weight: 700; }
.mod-confirm-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; }
.mod-backup .btn { flex: none; min-height: 44px; max-width: 100%; display: inline-grid; place-items: center; }
.mod-backup .btn > span { grid-area: 1 / 1; }
.mod-backup .btn > .off { visibility: hidden; }
/* Links, die wie Knöpfe aussehen (z. B. "Support kontaktieren"): ohne Unterstreichung, Text mittig */
a.btn { display: inline-flex; align-items: center; text-decoration: none; justify-content: center; text-align: center; }
.legal-page a.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; }
.nowrap { white-space: nowrap; }
/* "Ist das deins?" beim Registrieren: zwei Knöpfe untereinander, darunter der Hinweis */
.auth-taken { display: grid; gap: 10px; }
/* Moderation: Begründungen der Meldenden */
.mod-detail { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--border); background: var(--surface-2); border-radius: 0 10px 10px 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.mod-detail small { color: var(--muted); }
/* ================================================================ Flamme: leuchtet, flackert, glitzert
   Gegebene Flamme mit Verlauf (#flame-outer – in Silber und Gold Metall) und Schein; sie flackert sanft wie eine echte
   Flamme, zwei Glitzer-Sterne funkeln abwechselnd. Beim Geben: heller Blitz, die Sterne springen nach außen. Bewegt wird
   nur transform/opacity (schont den Akku); bei "Bewegung reduzieren" bleibt nur der Schein. */
:root { --flame-glow: rgba(255, 110, 40, .8); --sparkle: #fff1b8; --sparkle-edge: rgba(255, 110, 30, .95); }
:root[data-theme="light"] { --flame-glow: rgba(255, 80, 30, .5); --sparkle: #ffc21a; --sparkle-edge: rgba(214, 70, 0, .85); }
:root[data-theme="silver"] { --flame-glow: rgba(60, 70, 84, .32); --sparkle: #ffffff; --sparkle-edge: rgba(40, 46, 54, .85); }
:root[data-theme="gold"] { --flame-glow: rgba(176, 112, 0, .42); --sparkle: #fffbe6; --sparkle-edge: rgba(122, 82, 8, .9); }
.flame-btn { position: relative; }
.flame-btn.on .i {
  fill: url(#flame-outer); stroke: var(--lit); filter: drop-shadow(0 0 4px var(--flame-glow)) drop-shadow(0 0 1px var(--flame-glow));
  transform-origin: 50% 90%; animation: flame-flicker 2.6s ease-in-out infinite;
}
@keyframes flame-flicker {
  0%, 100% { transform: scale(1) rotate(0deg); } 20% { transform: scale(1.05, 1.1) rotate(-3deg); }
  40% { transform: scale(.98, 1.02) rotate(2deg); } 60% { transform: scale(1.04, 1.08) rotate(-1.5deg); } 80% { transform: scale(1, 1.03) rotate(1deg); }
}
.flame-btn.on::before, .flame-btn.on::after {
  content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, var(--sparkle) 0 1.3px, transparent 2.2px), linear-gradient(var(--sparkle), var(--sparkle)) center / 1.6px 100% no-repeat, linear-gradient(var(--sparkle), var(--sparkle)) center / 100% 1.6px no-repeat, linear-gradient(var(--sparkle-edge), var(--sparkle-edge)) center / 3.4px 70% no-repeat, linear-gradient(var(--sparkle-edge), var(--sparkle-edge)) center / 70% 3.4px no-repeat;
  animation: flame-sparkle 2.6s ease-in-out infinite;
}
.flame-btn.on::before { left: calc(1.15em + 1px); top: calc(50% - 1.05em); }
.flame-btn.on::after { left: -3px; top: calc(50% + .05em); width: 8px; height: 8px; animation-delay: 1.3s; }
@keyframes flame-sparkle {
  0%, 52%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 66% { opacity: 1; transform: scale(1.15) rotate(45deg); }
  82% { opacity: .55; transform: scale(.7) rotate(90deg); }
}
/* Gerade gegeben: Blitz und Sterne, die nach außen springen – danach weiter flackern und funkeln */
.flame-btn.pop .i { animation: flame-pop .42s ease-out, flame-flash .55s ease-out, flame-flicker 2.6s ease-in-out .55s infinite; }
@keyframes flame-flash {
  0% { filter: drop-shadow(0 0 4px var(--flame-glow)) brightness(1); }
  25% { filter: drop-shadow(0 0 14px var(--flame-glow)) drop-shadow(0 0 4px var(--flame-glow)) brightness(1.9); }
  100% { filter: drop-shadow(0 0 4px var(--flame-glow)) drop-shadow(0 0 1px var(--flame-glow)) brightness(1); }
}
.flame-btn.pop::before { animation: flame-spark-out-1 .6s ease-out, flame-sparkle 2.6s ease-in-out .6s infinite; }
.flame-btn.pop::after { animation: flame-spark-out-2 .6s ease-out, flame-sparkle 2.6s ease-in-out 1.9s infinite; }
@keyframes flame-spark-out-1 { 0% { opacity: 1; transform: translate(-8px, 10px) scale(.4); } 60% { opacity: 1; transform: translate(4px, -6px) scale(1.4) rotate(60deg); } 100% { opacity: 0; transform: translate(7px, -10px) scale(.6) rotate(90deg); } }
@keyframes flame-spark-out-2 { 0% { opacity: 1; transform: translate(9px, -6px) scale(.4); } 60% { opacity: 1; transform: translate(-4px, 5px) scale(1.3) rotate(-60deg); } 100% { opacity: 0; transform: translate(-8px, 9px) scale(.6) rotate(-90deg); } }
/* Große Flamme beim Doppeltipp: blitzt beim Erscheinen auf, Glitzer-Sterne sprühen ringsum heraus */
.flame-burst svg { animation: burst-flash .65s ease-out; }
@keyframes burst-flash { 0% { filter: brightness(2.3) saturate(1.3); } 35% { filter: brightness(1.5); } 100% { filter: brightness(1); } }
.flame-burst .burst-spark {
  position: absolute; left: 50%; top: 58%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, var(--sparkle) 0 1.3px, transparent 2.2px), linear-gradient(var(--sparkle), var(--sparkle)) center / 1.6px 100% no-repeat, linear-gradient(var(--sparkle), var(--sparkle)) center / 100% 1.6px no-repeat, linear-gradient(var(--sparkle-edge), var(--sparkle-edge)) center / 3.4px 70% no-repeat, linear-gradient(var(--sparkle-edge), var(--sparkle-edge)) center / 70% 3.4px no-repeat; transform: rotate(var(--a)) translateY(-8px) scale(.2);
  animation: burst-spark .85s cubic-bezier(.2, .8, .3, 1) var(--t) forwards;
}
@keyframes burst-spark {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(-8px) scale(.3); }
  45% { opacity: 1; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(var(--s)) rotate(45deg); }
  70% { opacity: .9; transform: rotate(var(--a)) translateY(calc(-1.12 * var(--d))) scale(calc(var(--s) * .6)) rotate(80deg); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1.25 * var(--d))) scale(.2) rotate(120deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flame-btn.on .i, .flame-btn.pop .i { animation: none; }
  .flame-burst svg, .flame-burst .burst-spark { animation: none; }
  .flame-btn.on::before, .flame-btn.on::after { animation: none; opacity: 0; }
}
/* Lit-Banner klebt beim Scrollen unter der Kopfzeile (.stuck, setzt app.js): dahinter ein Streifen wie die Kopfzeile,
   damit seitlich, an den runden Ecken und darunter nichts hervorschaut – er wirkt dann wie ein Teil von ihr */
.moment-banner.lit { overflow: visible; }
.moment-banner.lit::before { border-radius: inherit; }
.moment-banner.lit.stuck::after { content: ""; position: absolute; inset: -1px -17px -12px; z-index: -2; pointer-events: none; background: var(--bg); }
:root:is([data-theme="silver"], [data-theme="gold"]) .moment-banner.lit.stuck::after { background: var(--disco-soft), var(--surface); }

/* ================================================================ Silber und Gold (Nutzereinstellungen → Darstellung)
   Wie eine Discokugel, aber fließend: Grund aus flüssigem Metall mit Lichtflecken, darüber ziehen langsam schimmernde
   Farbreflexe, Karten und Knöpfe in Chrom bzw. Gold mit Glanzreflexen. In beiden Modi wird alles Farbige zu Metall –
   auch Flamme, Krone, rote Zähler und grüne Schalter –, aber dunkel genug, dass es sichtbar bleibt. Die Kamera bleibt
   dunkel. Beide Modi teilen alle Regeln; sie unterscheiden sich nur in den Farben (Variablen je Modus, unten). */
:root:is([data-theme="silver"], [data-theme="gold"]) {
  --disco-spots: radial-gradient(circle at 18% 10%, rgba(255,255,255,.95), rgba(255,255,255,0) 20%),
    radial-gradient(circle at 86% 46%, rgba(255,255,255,.7), rgba(255,255,255,0) 17%),
    radial-gradient(circle at 34% 88%, rgba(255,255,255,.6), rgba(255,255,255,0) 19%);
  --glint: linear-gradient(125deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,.45) 52%, rgba(255,255,255,0) 70%, rgba(255,255,255,.35) 100%);
}
:root[data-theme="silver"] {
  --bg: #dfe2e6; --surface: #eef0f3; --surface-2: #d5d9de; --border: #aeb4bc;
  --text: #121519; --muted: #3c424b; color-scheme: light;
  --hot: #2b3037; --ok: #3a4049; --lit: #5b626c; --lit-text: #2b3037; --lit-grad: linear-gradient(120deg, #6d747e 0%, #f9fafb 28%, #9aa1ab 48%, #ffffff 66%, #7b828c 100%);
  --crown: #eef0f3; --crown-deep: #aeb4bc; --crown-edge: #4d545e; --crown-text: #3a4048;
  --m-crown-1: #ffffff; --m-crown-2: #c9ced5; --m-crown-3: #7d848e;
  --m-flame-1: #ffffff; --m-flame-2: #3d434b; --m-core-1: #e9ecef; --m-core-2: #ffffff;
  --toggle-off: #bcc2c9; --m-toast: #1d2126;
  --disco-tiles: linear-gradient(115deg, #c5cad1 0%, #f6f8fa 14%, #bec4cb 28%, #eef1f4 42%, #d2d6dc 56%, #ffffff 70%, #c2c7ce 84%, #e9ebee 100%); /* (flüssiges Metall – der Name ist von früher) */
  --disco-soft: linear-gradient(160deg, #fdfdfe 0%, #eceff2 42%, #f8f9fb 68%, #e5e8ec 100%);
  --iris: linear-gradient(125deg, rgba(255,170,210,.22) 0%, rgba(175,205,255,.24) 28%, rgba(190,255,228,.18) 52%, rgba(255,228,170,.2) 76%, rgba(212,180,255,.22) 100%);
  --m-flow: radial-gradient(22% 16% at 30% 32%, rgba(255,255,255,.9), transparent 70%), radial-gradient(20% 15% at 68% 58%, rgba(170,205,255,.55), transparent 70%),
    radial-gradient(18% 14% at 42% 74%, rgba(255,175,215,.5), transparent 70%), radial-gradient(17% 13% at 76% 28%, rgba(185,255,225,.45), transparent 70%),
    radial-gradient(16% 12% at 22% 62%, rgba(255,230,165,.45), transparent 70%), radial-gradient(14% 11% at 58% 42%, rgba(215,185,255,.45), transparent 70%);
  --metal-btn: linear-gradient(180deg, #ffffff 0%, #e6e9ed 46%, #c8cdd4 52%, #eef0f3 100%);
  --metal-edge: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(20,24,30,.08), 0 2px 6px rgba(20,24,30,.16);
  --m-btn-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(20,24,30,.18);
  --m-accent-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(20,24,30,.12), 0 3px 12px rgba(255,255,255,.9), 0 2px 8px rgba(20,24,30,.22);
  --m-glass: rgba(226,229,233,.84); --m-tab: rgba(230,232,236,.88); --m-accent-base: #c9ced5; --m-accent-border: #8c929b;
  --m-top-glow: 0 0 4px #fff, 0 0 14px rgba(255,255,255,.9), 0 0 26px rgba(20,24,30,.25);
  --chrome-text: linear-gradient(180deg, #4d545e 0%, #c3c8cf 32%, #262a30 55%, #737a84 76%, #121519 100%);
  --chrome-text-dark: linear-gradient(180deg, #3a4048 0%, #6f7680 42%, #15181c 60%, #2b3037 100%);
  --m-logo-lit: linear-gradient(180deg, #59606a 0%, #d9dde2 30%, #23272d 56%, #7f8690 76%, #15181c 100%);
  --m-avatar: linear-gradient(160deg, #ffffff 0%, #d5d9de 50%, #b4bac2 100%);
  --m-dark-grad: linear-gradient(120deg, #2b3037 0%, #6f7680 45%, #22262c 100%);
  --m-emoji: grayscale(1) contrast(1.15);
  --recap-bg: var(--glint), var(--disco-soft), #eef0f3;
  --recap-line: #aeb4bc; --recap-sub: #3c424b;
}
:root[data-theme="gold"] {
  --bg: #efe2bf; --surface: #fbf5e3; --surface-2: #eedfb6; --border: #c4a256;
  --text: #221702; --muted: #4f3c12; color-scheme: light;
  --hot: #4a3208; --ok: #8a6414; --lit: #93650f; --lit-text: #4a3408; --lit-grad: linear-gradient(120deg, #9c6f1d 0%, #fff3c4 28%, #c08f2c 48%, #fff9e3 66%, #a87a22 100%);
  --crown: #ffd75e; --crown-deep: #e0a200; --crown-edge: #6e4a0c; --crown-text: #6e4a0c;
  --m-crown-1: #fff3b0; --m-crown-2: #f2c040; --m-crown-3: #c78a00;
  --m-flame-1: #fff6c8; --m-flame-2: #8a5c06; --m-core-1: #fff1c2; --m-core-2: #ffffff;
  --toggle-off: #d9c48e; --m-toast: #2a1d05;
  --disco-tiles: linear-gradient(115deg, #e0c27a 0%, #fff4cf 14%, #dbbb6f 28%, #f8e7b4 42%, #e8cd8c 56%, #fffaf0 70%, #dfbf74 84%, #f4e3b1 100%); /* (flüssiges Metall – der Name ist von früher) */
  --disco-soft: linear-gradient(160deg, #fffdf6 0%, #f7edd0 42%, #fffaf0 68%, #f2e5c0 100%);
  --iris: linear-gradient(125deg, rgba(255,185,150,.24) 0%, rgba(255,240,170,.26) 28%, rgba(255,210,190,.2) 52%, rgba(245,255,200,.2) 76%, rgba(255,195,220,.2) 100%);
  --m-flow: radial-gradient(22% 16% at 30% 32%, rgba(255,252,235,.9), transparent 70%), radial-gradient(20% 15% at 68% 58%, rgba(255,205,150,.5), transparent 70%),
    radial-gradient(18% 14% at 42% 74%, rgba(255,180,190,.42), transparent 70%), radial-gradient(17% 13% at 76% 28%, rgba(250,255,200,.45), transparent 70%),
    radial-gradient(16% 12% at 22% 62%, rgba(255,235,160,.5), transparent 70%), radial-gradient(14% 11% at 58% 42%, rgba(240,200,255,.35), transparent 70%);
  --metal-btn: linear-gradient(180deg, #fffdf5 0%, #f4e6bd 46%, #dcc07a 52%, #f7ecce 100%);
  --metal-edge: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(60,40,5,.08), 0 2px 6px rgba(60,40,5,.16);
  --m-btn-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(60,40,5,.18);
  --m-accent-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(60,40,5,.12), 0 3px 12px rgba(255,255,255,.9), 0 2px 8px rgba(60,40,5,.22);
  --m-glass: rgba(244,233,204,.84); --m-tab: rgba(246,237,212,.88); --m-accent-base: #e2c47a; --m-accent-border: #a8812c;
  --m-top-glow: 0 0 4px #fff, 0 0 14px rgba(255,255,255,.9), 0 0 26px rgba(60,40,5,.25);
  --chrome-text: linear-gradient(180deg, #6b4a12 0%, #e9c977 32%, #432d06 55%, #9f7726 76%, #221702 100%);
  --chrome-text-dark: linear-gradient(180deg, #553a08 0%, #94702a 42%, #221702 60%, #432d06 100%);
  --m-logo-lit: linear-gradient(180deg, #7a5414 0%, #f3d98f 30%, #3b2806 56%, #b8913e 76%, #221702 100%);
  --m-avatar: linear-gradient(160deg, #fffaf0 0%, #ecd697 50%, #cfa955 100%);
  --m-dark-grad: linear-gradient(120deg, #3b2806 0%, #8a6420 45%, #2a1d05 100%);
  --m-emoji: grayscale(1) sepia(1) saturate(3.2) hue-rotate(-10deg) brightness(.92);
  --recap-bg: var(--glint), var(--disco-soft), #fbf5e3;
  --recap-line: #c4a256; --recap-sub: #4f3c12;
}

:root:is([data-theme="silver"], [data-theme="gold"]) body, :root:is([data-theme="silver"], [data-theme="gold"]) .memories-view, :root:is([data-theme="silver"], [data-theme="gold"]) .legal-consent { background: var(--disco-spots), var(--iris), var(--disco-tiles), var(--bg); }
/* (Kein Lichtschein um Schrift: weiße Schrift auf Fotos, Plaketten und dunklen Knöpfen verschwamm sonst. Der Grund ist
   hell genug, dass dunkle Schrift auch so überall mindestens 4,5 : 1 Kontrast hat.) */
/* Farbreflexe: große weiche Flecken auf einer übergroßen Ebene, die sich langsam dreht (nur transform) */
@keyframes disco-spin { 0% { transform: rotate(0deg) translate(0, 0); } 50% { transform: rotate(180deg) translate(4%, -3%); } 100% { transform: rotate(360deg) translate(0, 0); } }
:root:is([data-theme="silver"], [data-theme="gold"]) body::before, :root:is([data-theme="silver"], [data-theme="gold"]) .memories-view::before {
  content: ""; position: fixed; inset: -60%; z-index: -1; pointer-events: none; opacity: .9;
  background: var(--m-flow); animation: disco-spin 70s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { :root:is([data-theme="silver"], [data-theme="gold"]) body::before, :root:is([data-theme="silver"], [data-theme="gold"]) .memories-view::before { animation: none; } }
/* Kopfzeilen deckend (wie in Dunkel und Hell): beim Scrollen scheint nichts durch */
:root:is([data-theme="silver"], [data-theme="gold"]) :is(.topbar, .memories-top) { background: var(--disco-soft), var(--surface); backdrop-filter: none; box-shadow: 0 1px 0 var(--surface-2), 0 2px 8px rgba(0,0,0,.06); }
:root:is([data-theme="silver"], [data-theme="gold"]) .tabbar { background: var(--m-tab) linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0) 50%); border-top-color: #fff; box-shadow: 0 -1px 0 var(--surface-2); }
:root:is([data-theme="silver"], [data-theme="gold"]) .toast { background: var(--m-toast); color: #fff; }
/* Flamme, Krone und Flamme beim Doppeltipp: Metall (Verläufe der SVG-Vorlagen) */
:root:is([data-theme="silver"], [data-theme="gold"]) #crown-gold stop:nth-child(1) { stop-color: var(--m-crown-1); }
:root:is([data-theme="silver"], [data-theme="gold"]) #crown-gold stop:nth-child(2) { stop-color: var(--m-crown-2); }
:root:is([data-theme="silver"], [data-theme="gold"]) #crown-gold stop:nth-child(3) { stop-color: var(--m-crown-3); }
:root:is([data-theme="silver"], [data-theme="gold"]) #flame-outer stop:nth-child(1) { stop-color: var(--m-flame-1); }
:root:is([data-theme="silver"], [data-theme="gold"]) #flame-outer stop:nth-child(2) { stop-color: var(--m-flame-2); }
:root:is([data-theme="silver"], [data-theme="gold"]) #flame-core stop:nth-child(1) { stop-color: var(--m-core-1); }
:root:is([data-theme="silver"], [data-theme="gold"]) #flame-core stop:nth-child(2) { stop-color: var(--m-core-2); }
:root:is([data-theme="silver"], [data-theme="gold"]) .crown-on :is(.gem-red, .gem-green) { fill: #fff; stroke: var(--crown-edge); }
/* Profilbild ohne Foto: Metall statt bunter Farbe (die Initialen bleiben) */
:root:is([data-theme="silver"], [data-theme="gold"]) div.avatar { background: var(--m-avatar) !important; color: var(--text); text-shadow: none; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--surface-2); }
/* 🔥 und ✨ (Zeichen im Text): einfarbig in Metall */
:root:is([data-theme="silver"], [data-theme="gold"]) :is(.moment-banner :is(.lit-status, .banner-go), .lit-burst, .rec-fab, .lit-status) { filter: var(--m-emoji); }

:root:is([data-theme="silver"], [data-theme="gold"]) :is(.card:not(.recap-card), .f-card, .next-window, .sheet-card, .mod-tiles > div) {
  background-image: var(--glint), var(--disco-soft); background-color: var(--surface); box-shadow: var(--metal-edge);
}
:root:is([data-theme="silver"], [data-theme="gold"]) :is(.btn:not(.primary):not(.lit):not(.link):not(.icon):not(.danger-solid), .chip, .seg,
  .mod-tabs button:not([aria-selected="true"]), .mod-filter button:not([aria-pressed="true"])):not(:is(.camera, .clip-viewer, .avatar-view, .moment-banner) *) {
  background-image: var(--metal-btn); box-shadow: var(--m-btn-shadow);
}
/* Hauptknöpfe und alles, was sonst farbig ist: flüssiges Metall mit Farbschimmer und Glanz, Schrift dunkel */
:root:is([data-theme="silver"], [data-theme="gold"]) :is(.btn.primary, .btn.lit, .seg button.active, .rec-fab, .moment-banner .banner-go, .permission-icon.record-icon,
  .mod-tabs button[aria-selected="true"], .mod-filter button[aria-pressed="true"]):not(:is(.camera, .clip-viewer, .avatar-view) *) {
  background: var(--glint), var(--iris), var(--disco-tiles), var(--m-accent-base); color: var(--text); border-color: var(--m-accent-border);
  box-shadow: var(--m-accent-shadow); text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
:root:is([data-theme="silver"], [data-theme="gold"]) .rec-fab { animation: fab-in .4s cubic-bezier(.2,1.4,.4,1); }
:root:is([data-theme="silver"], [data-theme="gold"]) .moment-banner { background: var(--glint), var(--disco-soft), var(--surface); border-color: var(--surface-2); box-shadow: var(--metal-edge); }
:root:is([data-theme="silver"], [data-theme="gold"]) .moment-banner::before { background: var(--disco-spots), var(--iris), var(--disco-tiles); }
:root:is([data-theme="silver"], [data-theme="gold"]) .moment-banner.lit { color: var(--text); text-shadow: 0 1px 0 rgba(255,255,255,.85); }
:root:is([data-theme="silver"], [data-theme="gold"]) .moment-banner .lit-status { background: rgba(255,255,255,.55); border-color: #fff; color: var(--text); }
:root:is([data-theme="silver"], [data-theme="gold"]) .moment-banner .lit-off { background: rgba(0,0,0,.74); text-shadow: none; }
:root:is([data-theme="silver"], [data-theme="gold"]) .score-pill { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--lit-grad) border-box; box-shadow: 0 0 12px rgba(255,255,255,.9); }
:root:is([data-theme="silver"], [data-theme="gold"]) #feed-list .post.top-post { border-color: var(--m-accent-border); box-shadow: var(--m-top-glow); }
:root:is([data-theme="silver"], [data-theme="gold"]) :is(.next-window-time b, .streak-record .record-num) { background: var(--chrome-text-dark); -webkit-background-clip: text; background-clip: text; }
:root:is([data-theme="silver"], [data-theme="gold"]) .streak-best .i { color: var(--lit-text); }

/* Logo ganz in Metall (auch "Lit"); alle paar Sekunden huscht ein Glanzlicht darüber */
@keyframes logo-glint { 0%, 78% { background-position: 130% 0, 0 0; } 100% { background-position: -30% 0, 0 0; } }
:root:is([data-theme="silver"], [data-theme="gold"]) .logo, :root:is([data-theme="silver"], [data-theme="gold"]) .logo.logo-shine {
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%) 130% 0 / 250% 100% no-repeat, var(--chrome-text);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 0 2px rgba(255,255,255,.9));
  animation: logo-glint 6s ease-in-out infinite;
}
:root:is([data-theme="silver"], [data-theme="gold"]) .logo .lit, :root:is([data-theme="silver"], [data-theme="gold"]) .logo.logo-shine .lit {
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%) 130% 0 / 250% 100% no-repeat, var(--m-logo-lit);
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: logo-glint 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { :root:is([data-theme="silver"], [data-theme="gold"]) .logo, :root:is([data-theme="silver"], [data-theme="gold"]) .logo .lit { animation: none; } }
