/* twoyo Web-App – gleiche Sprache wie die iPhone-App (DuoChat/DesignSystem/Theme.swift):
   schwarz, ruhig, klare Schrift, weiße Haupt-Knöpfe, Glas über Video. */
:root {
  --bg: #000;
  --surface: #171717;          /* Color(white: 0.09) */
  --surface-raised: #242424;   /* 0.14 */
  --surface-pressed: #2e2e2e;  /* 0.18 */
  --line: rgba(255, 255, 255, 0.10);
  --overlay: rgba(0, 0, 0, 0.55);
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.60);
  --text-3: rgba(255, 255, 255, 0.38);
  --signature: #ffc7de;
  --danger: #ff5454;
  --online: #30d158;
  --verified: #4299ff;
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --pad: 20px;
  --max: 440px;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --glass: rgba(44, 44, 44, 0.62);
  --app-h: 100dvh;
  --cell: #1c1c1e;          /* Listen-Zelle wie in iOS (secondarySystemGroupedBackground) */
  --r-list: 26px;
  /* Laufende Animationen sollen beim Neuzeichnen nicht von vorn beginnen: app.js setzt --t = −(Sekunden seit Start) */
  --t: 0s;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.3 var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
a { color: inherit; }
.i { width: 1em; height: 1em; flex: none; display: block; }
.spacer { flex: 1; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.row2 { display: flex; gap: 8px; }
.row2 > * { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; text-align: left; }
.row-between { display: flex; justify-content: space-between; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mirror { transform: scaleX(-1); }

/* ---------- Grundgerüst: eine Spalte wie auf dem Handy ---------- */
#app { max-width: var(--max); min-height: var(--app-h); margin: 0 auto; display: flex; flex-direction: column; position: relative; }
.screen {
  flex: 1; min-height: var(--app-h);
  display: flex; flex-direction: column;
  padding: calc(var(--top) + 8px) var(--pad) calc(var(--bottom) + 8px);
  animation: fade .3s ease-out;
}
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Schrift (Größen aus Theme.swift) ---------- */
.large-title { font-size: 32px; font-weight: 700; margin: 0; letter-spacing: -0.4px; }
.title { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -0.3px; }
.title2 { font-size: 20px; font-weight: 600; margin: 0; }
.headline { font-size: 17px; font-weight: 600; }
.sub { font-size: 15px; color: var(--text-2); margin: 4px 0 0; line-height: 1.35; }
.caption { font-size: 13px; color: var(--text-2); }
.caption.strong { font-weight: 600; }

/* ---------- Knöpfe (DuvoButtonStyle) ---------- */
.btn {
  height: 54px; width: 100%; padding: 0 20px;
  border-radius: var(--r-m);
  font-size: 17px; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), opacity .2s, background .2s;
}
.btn .i { font-size: 18px; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:active:not(:disabled) { background: rgba(255, 255, 255, 0.85); }
.btn-secondary { background: var(--surface-raised); color: #fff; }
.btn-secondary:active:not(:disabled) { background: var(--surface-pressed); }
.btn.medium { height: 44px; }
.btn.medium .i { font-size: 16px; }
.btn.small { height: 34px; border-radius: var(--r-s); font-size: 15px; padding: 0 12px; }
.btn.inline { width: auto; padding: 0 24px; }
.btn-report { height: 50px; margin-top: 20px; background: var(--danger); color: #fff; }
.btn-report:disabled { opacity: 1; background: var(--surface-raised); color: var(--text-3); }
.circle-btn {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--surface-raised); display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.circle-btn.placeholder { visibility: hidden; }
.glass-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--overlay); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #fff;
}
.glass-btn.small { width: 44px; height: 44px; font-size: 13px; flex: none; }
.text-btn { margin: 18px auto 0; display: block; color: var(--text-2); font-size: 15px; font-weight: 600; padding: 8px 12px; }
button:not(.btn):active:not(:disabled) { opacity: .85; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.2); border-top-color: #000; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Drei ruhig pulsierende Punkte (LoadingDots) */
.loading-dots { display: inline-flex; gap: 3.5px; align-items: center; vertical-align: middle; margin-left: 4px; }
.loading-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .3; animation: dot 1.14s infinite var(--t); }
.loading-dots i:nth-child(2) { animation-delay: calc(var(--t) + .38s); }
.loading-dots i:nth-child(3) { animation-delay: calc(var(--t) + .76s); }
@keyframes dot { 0%, 30% { opacity: 1; } 34%, 100% { opacity: .3; } }

/* ---------- Avatar ---------- */
.avatar {
  width: var(--s); height: var(--s); border-radius: 50%; flex: none; overflow: hidden;
  background: var(--surface-raised); box-shadow: inset 0 0 0 .5px var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: calc(var(--s) * 0.38); font-weight: 600; color: var(--text-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ring { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }

/* ---------- Videokachel (VideoTile) ---------- */
.tile { position: relative; overflow: hidden; background: var(--surface); min-width: 0; }
.sim { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sim img {
  position: absolute; inset: -9%; width: 118%; height: 118%; object-fit: cover;
  filter: blur(.6px) saturate(.9); animation: drift var(--d, 3s) ease-in-out infinite alternate var(--t);
}
@keyframes drift { from { transform: translate(-6px, 5px) scale(1.0) rotate(-.6deg); } to { transform: translate(6px, -4px) scale(1.05) rotate(.6deg); } }
.sim-initial { font-size: 56px; font-weight: 600; color: var(--text-3); }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.45) 100%); }
.vignette::after {
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.tile-label {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--overlay); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 600;
}
.tile-label.top { top: 8px; bottom: auto; }
/* „Kamera an“ auf dem eigenen Bild, solange der Browser die Kamera noch nicht gegeben hat */
.cam-chip {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 2;
  height: 36px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  background: var(--overlay); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #fff;
}
.cam-chip .i { font-size: 15px; }
.tile-blur { position: absolute; inset: 0; background: linear-gradient(160deg, #262626, #121212); overflow: hidden; }
.tile-blur img { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; filter: blur(30px); }
.tile-blur::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.tile-off {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 0 12px; text-align: center; animation: fadeIn .25s;
}
.tile-off.at-top { justify-content: flex-start; padding-top: 64px; }
.off-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); line-height: 1.25; }
.off-note .i { font-size: 15px; flex: none; }

/* ---------- Willkommen ---------- */
.welcome-desktop { display: none; }
.welcome-copy { display: contents; }
.welcome-actions .btn-primary .i { order: 2; width: 16px; height: 16px; }
.welcome-auth-note { margin: 0; text-align: center; font-size: 12px; color: var(--text-2); }
.welcome-test-link { align-self: center; min-height: 36px; padding: 6px 12px; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 4px; }
.welcome-visual { display: contents; }
.welcome-portrait { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.welcome-top { padding-top: 4px; }
.brand-home-link { display: inline-flex; align-items: center; flex: none; min-height: 44px; color: inherit; text-decoration: none; border-radius: 8px; }
.brand-home-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.brand-home-link[aria-disabled="true"] { cursor: wait; }
.wordmark { height: 32px; width: auto; filter: invert(1); display: block; }
.face-grid {
  margin: 0 20px; aspect-ratio: 1; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border-radius: var(--r-xl); overflow: hidden;
  animation: float 2.4s ease-in-out infinite alternate var(--t);
}
@keyframes float { from { transform: translateY(4px); } to { transform: translateY(-4px); } }
.face-logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: #000; display: flex; align-items: center; justify-content: center;
}
.face-logo img { width: 40px; filter: invert(1); }
.welcome-text { text-align: center; margin-top: 24px; }
.welcome-text h1 { font-size: 30px; font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.4px; }
.welcome-text .sub { margin-top: 12px; }
.legal { margin: 16px 16px 0; text-align: center; font-size: 13px; color: var(--text-3); line-height: 1.4; }
.legal a { color: var(--text-2); text-decoration: none; }

/* ---------- Onboarding (StepLayout) ---------- */
.step .nav { height: 44px; display: flex; align-items: center; justify-content: space-between; }
.nav-back {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); font-size: 18px;
}
.nav-back.placeholder { visibility: hidden; }
.progress { width: 150px; height: 4px; border-radius: 4px; background: var(--surface-raised); overflow: hidden; }
.progress div { height: 100%; background: #fff; border-radius: 4px; }
.step-head { padding: 16px 0 32px; display: flex; flex-direction: column; gap: 12px; animation: fade .35s ease-out; }
.step-head h1 { font-size: 30px; font-weight: 700; margin: 0; letter-spacing: -0.4px; line-height: 1.15; }
.step-head .sub { margin: 0; }
.step-icon {
  width: 48px; height: 48px; border-radius: var(--r-m); background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 4px;
}
.step-footer { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--text-3); }
.step-footer .i { font-size: 12px; }

.big-field, .field {
  width: 100%; outline: none; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s;
}
.big-field { height: 64px; border-radius: var(--r-l); padding: 0 16px; font-size: 20px; font-weight: 600; }
.field { height: 54px; border-radius: var(--r-m); padding: 0 16px; font-size: 17px; }
.field.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.big-field:focus, .field:focus { border-color: var(--text-2); }
::placeholder { color: var(--text-3); }

.code-boxes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; cursor: text; }
.code-boxes input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .02; border: 0; background: none;
  font-size: 16px; color: transparent; caret-color: transparent; z-index: 1; outline: none;
}
.code-boxes .box {
  height: 64px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font: 700 28px var(--rounded); transition: background .18s, border-color .18s;
}
.code-boxes .box.filled { background: var(--surface-raised); }
.code-boxes:focus-within .box.current { border: 1.5px solid #fff; }
.code-boxes:focus-within .box.current::after { content: ""; width: 2px; height: 26px; border-radius: 1px; background: #fff; animation: caret 1.06s steps(1) infinite var(--t); }
@keyframes caret { 50% { opacity: 0; } }
.link-row { display: flex; justify-content: space-between; margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.link-row button:disabled { opacity: .7; font-variant-numeric: tabular-nums; }

.name-field {
  width: 100%; background: none; border: 0; border-bottom: 1.5px solid var(--line); outline: none;
  font-size: 34px; font-weight: 700; padding: 0 0 8px; transition: border-color .2s;
}
.name-field:focus { border-bottom-color: #fff; }
.preview-card { margin-top: 24px; display: flex; align-items: center; gap: 12px; animation: fade .3s ease-out; }
.registration-region { margin-top: 22px; display: grid; gap: 8px; text-align: left; }
.registration-region label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.registration-region select { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.registration-region select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.registration-region .caption { margin: 0; line-height: 1.45; }

.age-big { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 20px; }
.age-big b { font: 700 64px/1 var(--rounded); font-variant-numeric: tabular-nums; }
.age-big span { font-size: 20px; font-weight: 600; color: var(--text-2); }
.age-big.danger b { color: var(--danger); }
.date-wheel {
  display: grid; grid-template-columns: 1fr 1.7fr 1.25fr; gap: 4px; padding: 8px;
  background: var(--surface); border-radius: var(--r-l);
}
.date-wheel select {
  appearance: none; -webkit-appearance: none; height: 52px; border: 0; border-radius: 12px; outline: none; min-width: 0;
  background: transparent; font-size: 20px; font-weight: 600; text-align: center; text-align-last: center; cursor: pointer;
}
.date-wheel select:focus, .date-wheel select:hover { background: var(--surface-raised); }
.date-wheel option { background: #1c1c1c; font-size: 17px; }
.hint-line { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 20px 0 0; font-size: 13px; color: var(--text-3); }
.hint-line.danger { color: var(--danger); }

.choice {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px;
  background: var(--surface); border-radius: var(--r-l); border: 1px solid var(--line); text-align: left;
  transition: border-color .2s, transform .15s;
}
.choice:active { transform: scale(.98); }
.choice.on { border: 1.5px solid #fff; }
.choice-icon {
  width: 48px; height: 48px; border-radius: var(--r-m); background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center; font-size: 22px; transition: background .2s, color .2s;
}
.choice.on .choice-icon { background: #fff; color: #000; }
.choice > .i:last-child { font-size: 22px; color: var(--text-3); }
.choice.on > .i:last-child { color: #fff; }

.group { background: var(--cell); border-radius: var(--r-list); overflow: hidden; }
.perm-row { display: flex; align-items: center; gap: 16px; padding: 16px; position: relative; }
.perm-row + .perm-row::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; border-top: .5px solid var(--line); }
.perm-icon {
  width: 36px; height: 36px; border-radius: var(--r-s); background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none;
}
.rules { display: flex; flex-direction: column; gap: 20px; }
.rule { display: flex; gap: 16px; align-items: flex-start; }
.rule > .i { font-size: 20px; width: 24px; margin-top: 1px; }
.rule .sub { margin-top: 2px; }
.check-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 17px; width: 100%; text-align: left; }
.checkbox {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--text-3); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #000; transition: background .15s, border-color .15s;
}
.checkbox.on { background: #fff; border-color: #fff; }

/* ---------- Hauptbereich + Tab-Leiste ---------- */
.main { height: var(--app-h); min-height: 0; padding: 0; position: relative; overflow: hidden; }
.tab-content { position: absolute; inset: 0; animation: fadeIn .2s ease-out; }
.same-tab .tab-content { animation: none; }
/* Tab-Leiste wie iOS 26 (Liquid Glass) – Verhalten in tabbar.js */
.tab-bar {
  position: absolute; left: var(--pad); right: var(--pad); bottom: max(8px, calc(var(--bottom) - 12px)); z-index: 30;
  height: 62px; padding: 4px; border-radius: 31px; touch-action: none; user-select: none; -webkit-user-select: none;
  background: linear-gradient(180deg, rgba(60,60,63,.66), rgba(36,36,38,.72));
  backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(0,0,0,.3), inset 0 0 0 .5px rgba(255,255,255,.08),
    0 10px 30px rgba(0,0,0,.45);
  transition: transform .45s cubic-bezier(.3,1.5,.5,1), background .3s;
}
html:not(.framed) .tab-bar { position: fixed; left: max(20px, calc(50% - 200px)); right: max(20px, calc(50% - 200px)); }
.tab-bar[hidden] { display: none; }
/* Beim Antippen/Ziehen: Leiste hebt sich minimal und wird heller */
.tab-bar.lifted { transform: scale(1.025); background: linear-gradient(180deg, rgba(84,84,88,.6), rgba(58,58,62,.66)); }
.tab-row { position: relative; display: flex; height: 100%; z-index: 1; }
.tab {
  flex: 1; height: 100%; border-radius: 27px; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: #fff; -webkit-tap-highlight-color: transparent;
}
.tab .i { font-size: 23px; }
.tab-icon { position: relative; }
.tab-badge {
  position: absolute; top: -4px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #ff3b30; color: #fff; font-size: 12px; font-weight: 600; line-height: 18px; text-align: center;
}
.tab-badge[hidden] { display: none; }
/* Ruhezustand: dunkle Pille unter dem gewählten Tab */
.tab-pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 27px; z-index: 0; will-change: transform;
  background: linear-gradient(180deg, rgba(8,8,9,.86), rgba(16,16,18,.8));
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07), inset 0 1px 1px rgba(255,255,255,.05);
  transition: opacity .2s ease;
}
.tab-pill.off { opacity: 0; }
/* Beim Wechsel: klare Glas-Linse – vergrößert, was darunter liegt, schimmert an den Rändern */
.tab-lens {
  position: absolute; top: 1px; bottom: 1px; left: 0; border-radius: 30px; z-index: 2; pointer-events: none;
  opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; transition: opacity .16s ease;
  background: radial-gradient(120% 90% at 50% 40%, rgba(255,255,255,.06), rgba(255,255,255,.02) 60%, rgba(255,255,255,.08));
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
}
.tab-lens.on { opacity: 1; }
.tab-lens::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow:
    inset 0 2px 2px -1px rgba(255,255,255,.55), inset 0 -2px 3px -1px rgba(255,255,255,.18),
    inset 5px 0 7px -4px rgba(255,70,160,.6), inset -5px 0 7px -4px rgba(60,190,255,.6),
    inset 0 5px 7px -5px rgba(255,220,90,.45), inset 0 -5px 7px -5px rgba(120,120,255,.4),
    inset 0 0 0 .5px rgba(255,255,255,.22);
}
.lens-view {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  /* Linse zeigt nur das vergrößerte Bild – die normalen Symbole darunter scheinen nicht doppelt durch */
  background: radial-gradient(130% 100% at 50% 30%, rgba(96,96,100,.97), rgba(70,70,74,.97));
}
.lens-row { position: absolute; top: 3px; height: 54px; left: 0; display: flex; will-change: transform; }
.lens-row .tab { flex: 1; }
.lens-row .tab-label { font-weight: 700; }
/* Mobil: kleiner Glaswechsel ohne deutliches Aufblähen der ganzen Leiste. */
html:not(.desktop) .tab-bar { transition: transform .2s ease-out, background .2s; }
html:not(.desktop) .tab-bar.lifted { transform: scale(1.005); }
html:not(.desktop) .tab-lens { top: 3px; bottom: 3px; border-radius: 28px; }
html:not(.desktop) .lens-row { top: 1px; }
html:not(.desktop) .tab-lens::after { opacity: .6; }
.tab-page { position: absolute; inset: 0; overflow-y: auto; padding: var(--top) 16px calc(var(--bottom) + 110px); scrollbar-width: none; }
.tab-page::-webkit-scrollbar, .page::-webkit-scrollbar, .chat-scroll::-webkit-scrollbar { display: none; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 32px 8px; }
.empty > .i { font-size: 28px; color: var(--text-3); margin-bottom: 4px; }
.empty .sub { margin: 0; }

.home { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 16px;
  padding: calc(var(--top) + 8px) var(--pad) calc(max(8px, calc(var(--bottom) - 12px)) + 70px); }
.home-header { height: 40px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.live-pill {
  height: 38px; padding: 0 14px 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12);
}
.live-pill b { font: 700 14px var(--rounded); font-variant-numeric: tabular-nums; }
.live-pill .online-label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.75); }
.live-dot { width: 12px; height: 12px; position: relative; flex: none; }
.live-dot::before, .live-dot::after { content: ""; position: absolute; border-radius: 50%; background: var(--online); }
.live-dot::after { inset: 3px; }
.live-dot::before { inset: 0; opacity: .4; animation: pulse 1.4s ease-out infinite var(--t); }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

.hero {
  flex: 1; min-height: 220px; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  border-radius: var(--r-xl); overflow: hidden; background: #000;
}
.hero::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; z-index: 3; }
.partner-slot { display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.partner-slot:disabled { opacity: .6; }
.slot-backdrop {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 85% at 45% 30%, #6a4a42 0%, #47302b 42%, transparent 100%), linear-gradient(#2b1d1a, #120c0b);
}
.slot-backdrop img, .slot-backdrop video { position: absolute; inset: -15%; width: 130%; height: 130%; object-fit: cover; filter: blur(40px); }
.slot-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.slot-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 12px; }
.glass-circle {
  width: 68px; height: 68px; border-radius: 50%; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), inset 0 1px 1px rgba(255,255,255,.25);
  transition: transform .15s;
}
.partner-slot:active .glass-circle { transform: scale(.94); }
.slot-title { font-size: 16px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.slot-sub { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.3; }
.picks { flex: none; display: flex; flex-direction: column; gap: 12px; }
.section-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.pick-row { display: flex; gap: 16px; }
.pick { width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; transition: transform .15s; }
.pick:active { transform: scale(.94); }
.pick:disabled { opacity: .4; }
.pick-circle { width: 60px; height: 60px; border-radius: 50%; background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.home > .btn { flex: none; }
.access-card { display: flex; gap: 12px; align-items: flex-start; flex: none; }
.access-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.access-icon.danger { color: var(--danger); }
.card { background: var(--surface); border-radius: var(--r-l); padding: 16px; }

/* Profil */
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 12px 0 24px; }
.profile-avatar { padding: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; margin-bottom: 4px; }
.profile-head .sub { margin: -6px 0 4px; }
.profile-head .row2 { width: 100%; }
.profile .group { margin-bottom: 24px; }
.list-row {
  width: 100%; min-height: 52px; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-size: 17px; text-align: left; position: relative;
}
.list-row + .list-row::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; border-top: .5px solid var(--line); }
.list-row > .i:first-child { font-size: 20px; }
.list-row > .i:last-child { font-size: 13px; color: var(--text-3); }
.list-row.tall { min-height: 64px; }
.list-row.muted { color: var(--text-2); font-size: 15px; }
.row-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.group-header { font-size: 17px; font-weight: 600; color: var(--text-2); padding: 24px 17px 8px; }
.group-footer { font-size: 13px; color: var(--text-2); padding: 7px 16px 0; margin: 0; line-height: 1.35; }
.group-footer.danger { color: var(--danger); }
.profile > .group-footer { text-align: center; color: var(--text-3); padding-bottom: 16px; }

/* ---------- Lobby ---------- */
.lobby { padding-left: 0; padding-right: 0; height: var(--app-h); min-height: 0; }
.lobby-top { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; padding: 0 var(--pad); margin-bottom: 16px; }
.lobby-title { text-align: center; }
.lobby-title .caption { font-variant-numeric: tabular-nums; }
.lobby-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--pad) 16px; display: flex; flex-direction: column; gap: 20px; scrollbar-width: none; }
.lobby-tiles { display: flex; gap: 8px; height: 280px; flex: none; }
.lobby-tiles.ready { height: 200px; }
.lobby-tiles .tile { flex: 1; border-radius: var(--r-xl); }
.ready-check {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 24px; height: 24px; border-radius: 50%;
  background: var(--online); color: #000; display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.wait-circle { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 26px; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.wait-text { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.invite-card { display: flex; flex-direction: column; gap: 16px; }
.code-chars { display: flex; gap: 6px; }
.code-chars span {
  flex: 1; height: 52px; border-radius: var(--r-s); background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center; font: 600 24px var(--mono);
}
.lobby-bottom { padding: 8px var(--pad) 0; }
.friend-code { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Call ---------- */
.call {
  position: fixed; inset: 0; max-width: var(--max); margin: 0 auto; z-index: 10;
  background: #000; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.half { flex: 1; position: relative; min-height: 0; overflow: hidden; }
.half.top { z-index: 2; }
.swipe-layer { position: absolute; inset: 0; }
.call-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.call-x { position: absolute; top: calc(var(--top) + 8px); left: 12px; z-index: 5; }
.call-flag { position: absolute; top: calc(var(--top) + 8px); right: 12px; z-index: 5; }
.name-tag-row { position: absolute; left: 8px; bottom: 8px; z-index: 3; display: flex; align-items: center; gap: 6px; }
.name-tag {
  height: 30px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
  background: var(--overlay); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.verified { color: var(--verified); font-size: 12px; display: inline-flex; }
.country-flag { display: inline-block; width: 20px; height: 20px; flex: none; object-fit: contain; vertical-align: -4px; }
.flag-big .country-flag { width: 28px; height: 28px; }
.add-btn {
  width: 30px; height: 30px; border-radius: 50%; position: relative; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: background .2s, color .2s, transform .15s;
}
.add-btn .i { stroke-width: 3; }
.add-btn.locked { background: var(--overlay); color: rgba(255,255,255,.85); }
.add-btn.unlocked { background: #fff; color: #000; }
.add-btn.added { background: var(--online); color: #fff; }
.add-btn.sending { background: var(--overlay); color: #fff; }
.add-btn:disabled { opacity: 1; }
.add-spinner { width: 13px; height: 13px; border: 1.5px solid #ffffff40; border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite; }
.add-btn.just-ready { animation: addReady .28s ease-out both; animation-delay: var(--feedback-delay, 0ms); }
.add-btn.just-confirmed .i { animation: addConfirmed .42s ease-out both; animation-delay: var(--feedback-delay, 0ms); }
@keyframes addReady { from { transform: scale(.94); } to { transform: scale(1); } }
@keyframes addConfirmed { 0% { opacity: 0; transform: scale(.7); } 65% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }
.add-btn .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.add-btn .ring circle {
  fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--from)); animation: ring linear forwards;
}
.add-btn .ring .ring-track { stroke: #ffffff30; stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .add-btn, .add-btn.just-confirmed .i { animation: none; transition: none; }
  .add-btn .ring circle { animation: none; }
}
@keyframes ring { to { stroke-dashoffset: 0; } }

/* Duo-Karte */
.proposal { position: absolute; inset: 0; }
.proposal .lifted .name-tag-row { bottom: 180px; }
.proposal-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.75)); }
.proposal-actions { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 3; }
.accepted-badge {
  height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: var(--online);
  display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600;
}
.waiting-pill { height: 52px; padding: 0 20px; border-radius: 999px; background: rgba(0,0,0,.55); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; max-width: calc(100% - 40px); }
.waiting-pill span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skip-btn { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .15s; }
.accept-btn { height: 52px; padding: 0 24px; border-radius: 999px; background: #fff; color: #000; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; transition: transform .15s; }
.accept-btn .i { font-size: 20px; }
.skip-btn:active, .accept-btn:active { transform: scale(.94); }
.proposal-caption { font-size: 13px; color: rgba(255,255,255,.7); text-align: center; line-height: 1.4; }
.proposal-timer { position: absolute; top: calc(var(--top) + 60px); left: 64px; right: 64px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; z-index: 4; pointer-events: none; }
.proposal-timer div { height: 100%; background: rgba(255,255,255,.85); border-radius: 3px; transform-origin: left; transform: scaleX(var(--from)); animation: shrink linear forwards; }
@keyframes shrink { from { transform: scaleX(var(--from)); } to { transform: scaleX(0); } }

/* Suche */
.searching {
  position: absolute; inset: 0; background: #0b0d0c; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 44px 24px 28px; text-align: center;
}
.search-mark { display: inline-flex; align-items: center; gap: 5px; flex: none; color: #d9dbd7; font: 800 27px/1 "Twoyo Display", Arial, sans-serif; letter-spacing: -1.5px; margin-bottom: clamp(24px, 5vh, 48px); }
.search-mark svg { display: block; flex: none; }
.search-status {
  max-width: 100%; font-size: 14px; line-height: 1.4; font-weight: 600; color: #c4c6c3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; overflow-wrap: anywhere;
}
.search-status .loading-dots { margin: 0; gap: 5px; color: #999e97; height: 5px; }
.search-status .loading-dots i { width: 4px; height: 4px; }
.search-online { margin-top: 14px; font-size: 12px; line-height: 1.4; color: #9ca196; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.search-online .dot { width: 5px; height: 5px; border-radius: 50%; background: #9cab70; }
@media (prefers-reduced-motion: reduce) {
  .search-status .loading-dots i { animation: none; opacity: .65; }
}

/* Unten: euer Duo, Chat und Steuerung */
.chat-overlay { position: absolute; left: 12px; right: 12px; bottom: calc(var(--bottom) + 78px); z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.bubble {
  display: flex; gap: 6px; align-items: flex-start; max-width: 88%;
  padding: 7px 10px; border-radius: 16px; background: rgba(36,36,36,.92); animation: bubbleIn .25s ease-out;
}
.bubble .avatar { margin-top: 1px; }
.bubble .who { font-size: 11px; font-weight: 600; color: var(--text-2); }
.bubble .text { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.bubble.fades { animation: bubbleOut .4s ease-in forwards; }   /* Verzögerung steht direkt an der Blase */
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bubbleOut { to { opacity: 0; transform: translateY(-4px); } }
.control-bar {
  position: absolute; left: 50%; bottom: calc(var(--bottom) + 10px); transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12);
}
.cam-btn { height: 50px; padding: 0 20px; border-radius: 999px; background: #fff; color: #000; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; transition: transform .15s; }
.cam-btn .i { font-size: 19px; }
.bar-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; transition: transform .15s, background .2s; }
.cam-btn:active, .bar-btn:active { transform: scale(.94); }
.swipe-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom) + 82px); z-index: 3; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.7); text-shadow: 0 0 4px rgba(0,0,0,.5); pointer-events: none; }
.swipe-hint .i { font-size: 10px; animation: nudge .7s ease-in-out infinite alternate var(--t); }
@keyframes nudge { to { transform: translateX(-4px); } }

.composer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 16px 0 calc(var(--bottom) + 8px);
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.6) 30%); animation: slideUp .25s ease-out;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-feed { padding: 0 12px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-height: calc(var(--app-h) * .38); overflow-y: auto; scrollbar-width: none; }
.composer-row { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.composer-row input {
  flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 0; outline: none; padding: 0 16px;
  background: rgba(70,70,70,.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 17px;
}
.send-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }

.call-hint {
  position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); z-index: 7; pointer-events: none;
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 20px;
  background: rgba(40,40,40,.72); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  font-size: 15px; font-weight: 600; line-height: 1.3; animation: popIn .3s ease-out;
}
.call-hint .i { font-size: 18px; margin-top: 1px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-50%) scale(.9); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.tutorial {
  position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.72);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px; animation: fadeIn .3s;
}
.tutorial .center .sub { margin-top: 8px; }
.tutorial-hand { font-size: 52px; height: 80px; display: flex; align-items: center; animation: swipeHand 1.1s ease-in-out infinite var(--t); }
@keyframes swipeHand { from { transform: translateX(40px); opacity: 1; } to { transform: translateX(-60px); opacity: .2; } }

/* ---------- Hinweise ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bottom) + 110px); transform: translateX(-50%); z-index: 60;
  max-width: calc(100% - 48px); width: max-content;
  display: flex; align-items: center; gap: 8px; padding: 12px 20px; min-height: 48px; border-radius: 24px;
  background: rgba(44,44,44,.86); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  font-size: 15px; font-weight: 600; line-height: 1.3; animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast .i { font-size: 18px; }
.toast.center { bottom: auto; top: 50%; transform: translate(-50%, -50%); font-size: 17px; animation-name: toastInCenter; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastInCenter { from { opacity: 0; transform: translate(-50%, -50%) scale(.8); } to { opacity: 1; transform: translate(-50%, -50%); } }
.dev-badge { position: fixed; bottom: 2px; right: 6px; font-size: 10px; color: var(--text-3); z-index: 70; pointer-events: none; }

/* ---------- Fenster (Sheets, Alerts, Aktionsblatt) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s;
}
.sheet {
  width: 100%; max-width: var(--max); max-height: calc(var(--app-h) * .92); display: flex; flex-direction: column;
  background: #000; border-radius: 32px 32px 0 0; box-shadow: 0 -.5px 0 rgba(255,255,255,.14);
  animation: sheetUp .35s cubic-bezier(.2,.9,.2,1);
}
.sheet.large { height: calc(var(--app-h) * .92); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-nav { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; height: 60px; padding: 0 16px; flex: none; text-align: center; }
.sheet-scroll { overflow-y: auto; padding: 0 16px calc(var(--bottom) + 20px); scrollbar-width: none; }
.sheet-scroll > .group:first-child { margin-top: 4px; }
.sheet-form { display: flex; flex-direction: column; gap: 20px; padding: 4px 20px calc(var(--bottom) + 20px); }
.sheet-form .sub { margin: 0; }
.report-head { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.reason-icon { width: 24px; display: flex; justify-content: center; font-size: 17px; color: var(--text-2); flex: none; }
.reason-icon.on { color: #fff; }
.radio { font-size: 22px; color: var(--text-3); display: flex; }
.radio.on { color: #fff; }
.sheet .list-row + .list-row::before { left: 52px; }
textarea { width: 100%; display: block; background: none; border: 0; outline: none; padding: 14px 16px; font-size: 17px; resize: none; line-height: 1.35; }
.report-sent { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 32px; }
.report-sent > .i { font-size: 52px; color: var(--online); }
.report-sent .sub { margin: 0; padding: 0 12px; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; animation: fadeIn .2s; padding: 20px; }
.dialog {
  width: 300px; border-radius: 30px; overflow: hidden; padding: 8px;
  background: rgba(38,38,38,.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12); animation: dialogIn .25s cubic-bezier(.2,.9,.3,1.15);
}
@keyframes dialogIn { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
.dialog-text { padding: 16px 14px 16px; text-align: center; }
.dialog-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.dialog-message { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 6px; line-height: 1.35; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dialog-actions.stacked { grid-template-columns: 1fr; }
.dialog-actions button { height: 48px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 17px; font-weight: 500; }
.dialog-actions button.bold { font-weight: 600; background: #fff; color: #000; }
.dialog-actions button.destructive { color: var(--danger); }

.action-sheet { width: 100%; max-width: var(--max); padding: 0 8px calc(var(--bottom) + 8px); display: flex; flex-direction: column; gap: 8px; animation: sheetUp .3s cubic-bezier(.2,.9,.2,1); }
.action-group { border-radius: 16px; overflow: hidden; background: rgba(38,38,38,.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.action-title { font-size: 13px; color: var(--text-2); text-align: center; padding: 14px 16px; font-weight: 600; }
.action-group button { width: 100%; height: 56px; font-size: 19px; border-top: .5px solid rgba(255,255,255,.1); }
.action-group > button:first-child { border-top: 0; }
.action-group button.destructive { color: var(--danger); }
.action-group button.cancel { font-weight: 600; color: #fff; -webkit-text-fill-color: #fff; background: #262626; }

/* ---------- Start ---------- */
.boot { align-items: center; justify-content: center; gap: 6px; flex-direction: row; color: var(--text-2); }
.boot-mark { width: 56px; filter: invert(1); opacity: .9; animation: fadeIn .6s; }

/* Neu zeichnen ohne Neu-Einblenden (sonst flackert es bei jedem Tastendruck/Abgleich) */
.same-screen .screen, .same-screen .step-head, .same-screen .preview-card, .same-screen .tile-off,
.same-screen .bubble:not(.fades), .same-screen .boot-mark,
.same-toast .toast, .same-sheet .sheet-backdrop, .same-sheet .sheet, .same-sheet .report-sent,
.same-dialog .dialog-backdrop, .same-dialog .dialog, .same-actionSheet .sheet-backdrop, .same-actionSheet .action-sheet,
.same-hint .call-hint, .same-tutorial .tutorial, .same-composing .composer { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- Am Computer: genau wie ein iPhone (402 × 874 pt, gleiche Ränder) ----------
   Das ganze Handy wird nur verkleinert, wenn das Fenster zu klein ist – Größen und Abstände bleiben wie in der App. */
html.framed, html.framed body { height: 100%; overflow: hidden; }
html.framed body { display: flex; align-items: center; justify-content: center; background: #111; }
#device { position: relative; }
html.framed #device {
  width: 402px; height: 874px; flex: none; overflow: hidden; background: #000;
  border-radius: 62px; transform: scale(var(--scale, 1));
  box-shadow: 0 0 0 11px #1c1c1e, 0 0 0 12.5px #3a3a3c, 0 40px 90px rgba(0,0,0,.7);
  --top: 62px; --bottom: 34px; --app-h: 874px; --max: 402px;
}
html.framed #app { max-width: none; height: 100%; min-height: 0; }
.status-bar { display: none; }
html.framed .status-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 100; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 50px;
  font: 600 17px/1 var(--font); color: #fff; letter-spacing: -.2px;
}
.island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; }
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons svg { display: block; }
html.framed .dev-badge { bottom: 10px; right: 50%; transform: translateX(50%); }

/* =====================================================================
   Tabs Nachrichten · Freunde · Profil (wie MessagesView, FriendsView, ProfileView)
   Listen wie iOS 26 „insetGrouped“: 16 pt Rand, Zelle #1c1c1e, Ecken 26 pt, Überschriften 17 pt halbfett grau
   ===================================================================== */
.list-page { padding-left: 16px; padding-right: 16px; }
.nav-row { height: 44px; display: flex; align-items: center; justify-content: space-between; }
.list-page .large-title { font-size: 34px; letter-spacing: .3px; margin: 2px 0 0 4px; line-height: 1.2; }
.nav-glass {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 19px; color: #fff;
  background: rgba(58, 58, 60, .55); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14);
  transition: transform .15s;
}
.nav-glass:active { transform: scale(.92); }
.nav-glass .i { stroke-width: 2.2; }
.list-header { font-size: 17px; font-weight: 600; color: var(--text-2); padding: 24px 17px 8px; display: flex; align-items: center; }
.list-header.row-between { justify-content: space-between; }
.list-group { background: var(--cell); border-radius: var(--r-list); overflow: hidden; }
.list-header + .list-group { margin-top: 0; }
.list-group + .list-group, .list-footer + .list-group, .list-footer + .list-header { margin-top: 0; }
.list-page > .list-group:not(:first-child) { margin-top: 24px; }
.list-page > .list-header + .list-group { margin-top: 0; }
.list-footer { font-size: 13px; color: var(--text-2); padding: 8px 17px 0; margin: 0; line-height: 1.35; }
.list-footer .danger, .danger { color: var(--danger); }
.list-group .list-row { min-height: 52px; padding: 11px 17px; font-size: 17px; }
.list-group .list-row + .list-row::before, .list-group .user-row + .user-row::before, .list-group .user-row-btn + .user-row-btn::before {
  content: ""; position: absolute; top: 0; right: 0; left: 56px; border-top: .5px solid rgba(84, 84, 88, .6);
}
.list-group .list-row > .i:first-child { font-size: 22px; width: 24px; }
.list-group .list-row > .i:last-child { font-size: 14px; color: var(--text-3); stroke-width: 2.6; }
.list-row.destructive { color: #ff453a; }
.list-row.disabled { opacity: .45; }
.list-row.column { flex-direction: column; align-items: stretch; gap: 8px; }
.list-row .grow { display: flex; flex-direction: column; gap: 1px; }
.row-value { color: var(--text-2); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.row-icon-plain { font-size: 20px; width: 24px; display: flex; justify-content: center; flex: none; }
.lock-small { color: var(--text-3); font-size: 11px; display: flex; }
.row-name { display: inline-flex; align-items: center; gap: 4px; }
.seal { flex: none; display: inline-block; vertical-align: -2px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nowrap { white-space: nowrap; flex: none; }
.loading { display: flex; justify-content: center; padding: 40px 0; color: var(--text-2); }
.empty.in-list { padding: 32px 16px; }
.empty.in-list > .i { font-size: 32px; }

/* Person in einer Liste (UserRow) */
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 17px; position: relative; min-height: 64px; }
.user-row .caption { margin-top: 1px; }
.user-row-btn { display: block; width: 100%; text-align: left; position: relative; }
.row-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.circle-34 { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.circle-34 .i { stroke-width: 3; }
.circle-34.accent { background: #fff; color: #000; }
.circle-40 { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.circle-44 { width: 44px; height: 44px; border-radius: 50%; background: #242424; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; cursor: pointer; }
.circle-44.send { background: #fff; color: #000; }
.circle-28 { width: 28px; height: 28px; border-radius: 50%; background: #242424; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.btn.small.inline { width: auto; padding: 0 12px; }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.online-dot {
  position: absolute; right: -1px; bottom: -1px; width: var(--d, 12px); height: var(--d, 12px); border-radius: 50%;
  background: var(--online); box-shadow: 0 0 0 2.5px #000;
}
.list-group .online-dot { box-shadow: 0 0 0 2px var(--cell); }
.online-dot.big { width: 16px; height: 16px; box-shadow: 0 0 0 3px #000; }
.duo-av { width: var(--s); height: var(--s); display: inline-flex; align-items: center; }
.duo-av .avatar + .avatar { margin-left: calc(var(--s) * -0.16); box-shadow: 0 0 0 4px #000; }
.list-group .duo-av .avatar + .avatar { box-shadow: 0 0 0 4px var(--cell); }

/* Nachrichten */
.msg-page { padding-left: 0; padding-right: 0; }
.msg-header { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--pad) 0; min-height: 44px; }
.msg-header h1 { font-size: 32px; font-weight: 700; margin: 0; letter-spacing: -.4px; }
.search-field {
  display: flex; align-items: center; gap: 8px; height: 40px; margin: 12px var(--pad) 0; padding: 0 12px;
  background: var(--surface); border-radius: var(--r-m); color: var(--text-3); font-size: 17px; cursor: text;
}
.search-field .i { font-size: 17px; }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-size: 17px; }
.search-field.in-page { margin: 8px 0 0; }
.search-clear { color: var(--text-3); font-size: 17px; display: flex; }
.active-now { display: flex; gap: 16px; overflow-x: auto; padding: 16px var(--pad) 0; scrollbar-width: none; }
.active-person { width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); flex: none; }
.active-person > span:last-child { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; gap: 8px; padding: 16px var(--pad) 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: transform .15s; }
.chip:active { transform: scale(.94); }
.chip.on { background: #fff; color: #000; }
.chip-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: #000; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.chip.on .chip-count { background: #000; color: #fff; }
.conv-row { display: flex; align-items: center; gap: 12px; padding: 8px var(--pad); cursor: pointer; -webkit-user-select: none; user-select: none; }
.conv-row:active { background: rgba(255,255,255,.04); }
.conv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.conv-title { display: flex; align-items: center; gap: 4px; font-size: 17px; }
.conv-title.unread { font-weight: 600; }
.muted-bell { color: var(--text-3); font-size: 11px; display: inline-flex; }
.conv-sub { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--text-2); }
.conv-sub.unread { color: #fff; font-weight: 600; }
.conv-sub .preview { display: inline-flex; align-items: center; gap: 4px; }
.conv-sub .preview .i { font-size: 13px; }
.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--verified); flex: none; }
.unread-dot.muted { background: var(--text-3); }
.conv-call { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 21px; color: var(--text-2); flex: none; }
.ticks { display: inline-flex; color: var(--text-3); font-size: 10px; min-width: 14px; }
.ticks .i { stroke-width: 3.4; }
.ticks.double .i + .i { margin-left: -5px; }
.ticks.read { color: var(--verified); }
.ticks.failed { color: var(--danger); font-size: 12px; }

/* Neuer Chat & Navigationsleisten mit Text-Knöpfen */
.sheet-nav.text-buttons { grid-template-columns: 64px 1fr 64px; gap: 4px; }
.nav-text { font-size: 17px; color: #fff; padding: 8px 0; text-align: left; }
.nav-text.bold { font-weight: 600; text-align: right; }
.nav-text:disabled { opacity: .35; }
.sheet .list-header:first-child { padding-top: 4px; }
.radio .i { font-size: 22px; }

/* Chat (ConversationView) */
.chat-page { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; }
.chat-nav {
  flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  padding: calc(var(--top) + 4px) 12px 8px; background: #000; z-index: 2;
}
.chat-title { display: flex; align-items: center; gap: 8px; min-width: 0; justify-self: center; max-width: 100%; text-align: left; }
.chat-title-text { display: flex; flex-direction: column; min-width: 0; }
.chat-title-text .headline { display: flex; align-items: center; gap: 4px; }
.online-text { color: var(--online); }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 8px; scrollbar-width: none; overscroll-behavior: contain; }
.chat-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 16px 0 24px; }
.chat-head .caption { max-width: 280px; }
.chat-head .btn { margin-top: 4px; }
.day-chip { display: flex; justify-content: center; padding: 12px 0; }
.day-chip span { height: 24px; padding: 0 12px; border-radius: 12px; background: var(--surface); color: var(--text-3); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; }
.msg.starts { margin-top: 12px; }
.msg.mine { justify-content: flex-end; }
.msg-av { width: 28px; height: 28px; flex: none; }
.msg.has-reactions .msg-av { margin-bottom: 16px; }
.msg-col { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 290px; min-width: 0; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-name { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 0 12px; }
.bubble-wrap { position: relative; max-width: 100%; }
.msg.has-reactions .bubble-wrap { margin-bottom: 16px; }
.dm-bubble { padding: 9px 14px; border-radius: 18px; background: #242424; color: #fff; display: flex; flex-direction: column; gap: 6px; -webkit-user-select: text; user-select: text; }
.msg.mine .dm-bubble { background: #fff; color: #000; }
.dm-line { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; column-gap: 8px; }
.dm-text { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; white-space: pre-wrap; flex: 1 1 auto; }
.meta { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; padding-top: 2px; }
.msg.mine .dm-bubble .meta { color: rgba(0,0,0,.5); }
.msg.mine .dm-bubble .ticks:not(.read):not(.failed) { color: rgba(0,0,0,.45); }
.dm-image { position: relative; display: block; width: 220px; border-radius: 18px; overflow: hidden; background: #242424; min-height: 120px; }
.dm-image img { display: block; width: 100%; max-height: 308px; object-fit: cover; }
.dm-image .meta { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; }
.img-loading { display: flex; height: 220px; align-items: center; justify-content: center; color: var(--text-2); }
.reaction-badge {
  position: absolute; bottom: -16px; right: -8px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: #242424; box-shadow: 0 0 0 2px #000; display: inline-flex; align-items: center; gap: 1px; font-size: 13px;
}
.msg.mine .reaction-badge { right: auto; left: -8px; }
.reaction-badge b { font-size: 11px; color: var(--text-2); margin-left: 2px; }
.quote { display: flex; gap: 8px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.07); text-align: left; min-width: 0; }
.quote.on-accent { background: rgba(0,0,0,.07); }
.quote-bar { width: 3px; border-radius: 2px; background: var(--text-2); flex: none; }
.quote.on-accent .quote-bar { background: rgba(0,0,0,.4); }
.quote-name { font-size: 13px; font-weight: 600; }
.quote-text { font-size: 13px; opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-input { flex: none; background: #000; padding: 8px 16px calc(var(--bottom) + 8px); }
.input-row { display: flex; align-items: flex-end; gap: 8px; }
.dm-compose { display: contents; }
html.desktop .dm-compose .send.is-empty { display: none; }
.dm-field { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 0; outline: none; padding: 0 16px; background: #242424; color: #fff; font-size: 17px; }
.reply-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; color: var(--text-2); font-size: 17px; }
.reply-bar .quote { flex: 1; }
.photo-pick .i { stroke-width: 1.8; }

/* Chat-Info, Hinweis-Fenster */
.info-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 8px; text-align: center; }
.info-sheet { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 24px; }
.info-sheet .sub, .info-sheet .caption { max-width: 320px; margin: 0; }
.info-sheet .btn { margin-top: 12px; }
.plus-sheet { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.plus-brand { gap: 10px; }
.plus-brand .wordmark { height: 37px; }
.sub-strong { color: var(--text-2); }
.benefits { display: flex; flex-direction: column; gap: 20px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit-icon { width: 36px; height: 36px; border-radius: var(--r-s); background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.plus-badge { height: 18px; padding: 0 6px; border-radius: 5px; background: #fff; color: #000; font-size: 11px; font-weight: 700; letter-spacing: .6px; display: inline-flex; align-items: center; margin-left: 4px; }
.sheet-backdrop.full { background: #000; align-items: center; }
.image-viewer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.image-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-close { position: absolute; top: calc(var(--top) + 8px); right: 16px; }

/* Freund hinzufügen */
.add-friend { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px; }
.qr-card { width: 212px; height: 212px; padding: 16px; background: #fff; border-radius: var(--r-l); }
.qr-card .qr { width: 100%; height: 100%; display: block; }
.my-code { font: 600 26px var(--mono); letter-spacing: 4px; margin-top: 4px; -webkit-user-select: text; user-select: text; }
.friend-code-form { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.friend-code-form .row { gap: 8px; }
.friend-code-form .field { flex: 1; min-width: 0; }
.send-code { width: 100px; height: 54px; padding: 0; }

/* Profil */
.profile-head { padding: 8px 0 8px; gap: 16px; }
.profile-head > div:not(.row2) { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.profile-head .sub { margin: 0; }
.profile-avatar { position: relative; }
.avatar-badge {
  position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 0 0 3px #000;
}
.avatar-badge.big { width: 32px; height: 32px; }
.center-row { justify-content: center; }
.bio { font-size: 15px; margin: 4px 24px 0; text-align: center; }
.profile > .list-group { margin-top: 24px; }
.profile > .list-footer { text-align: left; color: var(--text-2); }
.promo { min-height: 66px; }
.promo .grow .headline { font-size: 17px; }
.promo-icon { width: 30px; display: flex; justify-content: center; flex: none; }
.star-box { width: 28px; height: 28px; border-radius: 8px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.faces { display: inline-flex; }
.faces .avatar { box-shadow: 0 0 0 2px var(--cell); }
.faces .avatar + .avatar { margin-left: -8px; }

/* Unterseiten (Profil bearbeiten, Einstellungen …) */
.page { position: absolute; inset: 0; overflow-y: auto; padding-top: var(--top); padding-bottom: calc(var(--bottom) + 110px); scrollbar-width: none; }
.page-nav { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; height: 52px; position: sticky; top: 0; z-index: 3; }
.page-title { text-align: center; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-right { display: flex; justify-content: flex-end; }
.photo-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0 8px; }
.photo-btn { position: relative; border-radius: 50%; }
.link-blue { color: var(--verified); font-size: 15px; font-weight: 600; }
.form-row { gap: 16px; cursor: text; }
.form-row.top { align-items: flex-start; }
.row-label { width: 64px; flex: none; color: var(--text-2); }
.form-row input, .form-row textarea { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-size: 17px; padding: 0; }
.form-row textarea { resize: none; line-height: 1.3; }
.counter { font-size: 11px; font-weight: 600; color: var(--text-3); }
.form-row:not(:focus-within) .counter { visibility: hidden; }
.check-blue { color: var(--verified); font-size: 15px; display: flex; }
.check-blue .i { stroke-width: 3; }
.row-select {
  appearance: none; -webkit-appearance: none; background: none; border: 0; outline: none; color: var(--text-2);
  font-size: 17px; text-align: right; text-align-last: right; cursor: pointer; padding-right: 2px;
}
.row-select + .i { font-size: 13px; color: var(--text-2); margin-left: -6px; }
.row-select option { background: #1c1c1e; color: #fff; }
/* Schalter (Toggle) – an in Rosa wie in der App (Theme.signature) */
.switch { width: 51px; height: 31px; border-radius: 16px; background: rgba(120,120,128,.32); position: relative; flex: none; transition: background .2s; }
.switch span { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); transition: transform .25s cubic-bezier(.3,1.3,.5,1); }
.switch.on { background: var(--signature); }
.switch.on span { transform: translateX(20px); }
input[type="range"] { width: 100%; accent-color: #fff; }
.thumbs { display: inline-flex; gap: 12px; }
.thumb { color: var(--text-3); font-size: 15px; display: flex; }
.thumb.on { color: #fff; }
.ellipsis-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; flex: none; }

/* Menüs: Emoji-Leiste über dem Aktionsblatt (Reaktionen wie im Kontextmenü der App) */
.emoji-palette { display: flex; justify-content: space-around; padding: 8px; border-radius: 999px; background: rgba(38,38,38,.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.emoji-palette button { font-size: 28px; width: 44px; height: 44px; border-radius: 50%; transition: transform .15s; }
.emoji-palette button:active { transform: scale(1.25); }
.action-title { display: flex; flex-direction: column; gap: 2px; }
.action-title b { font-weight: 600; }
.action-title span { font-weight: 400; }

/* Startseite: Freunde online & „Mit wem?“ */
.slot-faces { display: inline-flex; }
.slot-faces .avatar { box-shadow: 0 0 0 1.5px rgba(0,0,0,.35); }
.slot-faces .avatar + .avatar { margin-left: -8px; }
.pick-avatar { padding: 3px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); display: inline-flex; }
.pick-avatar.online { box-shadow: inset 0 0 0 2px var(--online); }
.pick-name { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-note { font-size: 11px; font-weight: 500; color: var(--text-2); margin-top: -5px; }
.pick-row { overflow-x: auto; scrollbar-width: none; }

/* Lobby: Einladen, Anrufen, Hinweise */
.lobby-notice { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-m); background: var(--surface); font-size: 15px; font-weight: 600; flex: none; }
.lobby-notice .i { font-size: 17px; }
.wait-avatar { display: inline-flex; margin-bottom: 8px; }
.wait-avatar .avatar { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.code-row { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 12px; border-radius: var(--r-l); background: var(--surface); font-size: 15px; font-weight: 600; flex: none; text-align: left; }
.code-row-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.code-row > .i:last-child { font-size: 12px; color: var(--text-3); }
.quick-invite { display: flex; flex-direction: column; gap: 12px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.friend-chip { height: 38px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--surface); display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; flex: none; }
.calling-card { display: flex; align-items: center; gap: 12px; }

/* Banner oben: Einladung, Anruf, kein Internet */
.invite-banner {
  position: fixed; left: 12px; right: 12px; top: calc(var(--top) + 8px); z-index: 45; padding: 16px; border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(44,44,44,.86); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), 0 8px 40px rgba(0,0,0,.4); animation: bannerIn .4s cubic-bezier(.2,.9,.3,1.1);
}
.same-invite .invite-banner { animation: none; }
@keyframes bannerIn { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
.ring-av { padding: 2px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--online); display: inline-flex; }
.ringing { color: var(--online); font-size: 20px; display: flex; animation: wiggle .5s ease-in-out infinite alternate var(--t); }
@keyframes wiggle { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.offline-banner {
  position: fixed; left: 50%; top: calc(var(--top) + 4px); transform: translateX(-50%); z-index: 55; height: 32px; padding: 0 12px;
  border-radius: 999px; background: rgba(255, 84, 84, .9); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.offline-banner .i { font-size: 12px; }
.call-notice {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 8; height: 48px; padding: 0 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; pointer-events: none;
  background: rgba(44,44,44,.8); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); animation: toastInCenter .3s cubic-bezier(.2,.9,.3,1.2);
}
.same-notice .call-notice { animation: none; }
.call-notice .i { font-size: 18px; }
.toast-slot { display: contents; }

/* Tabs blenden beim Wechsel nur den Inhalt ein – die Leiste bleibt stehen */
.same-screen .screen.main { animation: none; }
.sheet-scroll > .list-group + .list-group, .sheet-scroll > .list-footer + .list-group, .sheet-scroll > .info-head + .list-group { margin-top: 24px; }
.flag { margin-right: 6px; }
/* Trennlinie beginnt am Text – bei Zeilen ohne Symbol also am linken Rand (wie iOS) */
.list-group .list-row + .list-row:not(:has(> .i:first-child, > .row-icon-plain))::before { left: 17px; }
.list-row .grow.row-name { flex-direction: row; align-items: center; gap: 6px; }

/* Filter (FilterSheet, MatchPreferences) */
button.live-pill { padding: 0 14px 0 10px; color: #fff; }
.pill-divider { width: 1px; height: 16px; background: rgba(255,255,255,.25); margin: 0 4px; }
.filter-icon { position: relative; display: flex; font-size: 16px; }
.filter-dot { position: absolute; top: -3px; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.composition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-group { padding: 12px; }
.composition { height: 46px; border-radius: var(--r-m); background: var(--surface-raised); display: flex; align-items: center; justify-content: center; gap: 6px; padding-inline: 8px; min-width: 0; font-size: 15px; font-weight: 600; transition: transform .15s; }
.composition-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; font-size: 20px; }
.composition-icon + span { min-width: 0; }
.composition:active { transform: scale(.96); }
.composition.on { background: #fff; color: #000; }
.lock-tiny { font-size: 10px; color: var(--text-3); display: flex; }
.prefs-card { display: flex; flex-direction: column; gap: 16px; }
.prefs-block { display: flex; flex-direction: column; gap: 8px; }
.country-btn { height: 48px; padding: 0 16px; border-radius: var(--r-m); background: var(--surface-raised); display: flex; align-items: center; gap: 8px; font-size: 17px; text-align: left; }
.country-btn > .i:last-child { font-size: 12px; color: var(--text-3); }
.stepper { display: inline-flex; align-items: center; height: 32px; border-radius: 9px; background: rgba(120,120,128,.24); margin-left: 8px; }
.stepper button { width: 46px; height: 32px; font-size: 20px; color: #fff; }
.stepper button:disabled { opacity: .3; }
.stepper i { width: 1px; height: 18px; background: rgba(255,255,255,.2); }
.header-value { font-weight: 400; }
.flag-big { font-size: 24px; width: 28px; text-align: center; flex: none; }
.center-text .grow { align-items: center; }
.search-field.in-page + .list-group, .search-field.in-page + .list-header { margin-top: 16px; }

/* Start-Animation (SplashView) */
#splash { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.splash-auth-status { display: none; }
html.auth-return #splash { display: grid; place-items: center; background: var(--bg); color: var(--text-2); }
html.auth-return #splash .splash-cover, html.auth-return #splash .splash-logo { display: none; }
html.auth-return .splash-auth-status { display: block; padding: 24px; text-align: center; font-size: 16px; }
html.framed #splash { position: absolute; }
.splash-cover { position: absolute; inset: 0; background: #000; transform-origin: 50% 50%; }
#splash.ready .splash-cover {
  -webkit-mask-image: url(/assets/launch.png), linear-gradient(#000 0 0);
  -webkit-mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: xor;
  mask-image: url(/assets/launch.png), linear-gradient(#000 0 0);
  mask-repeat: no-repeat, no-repeat;
  mask-composite: exclude;
}
.splash-logo {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 61px; margin: -30.5px 0 0 -36px;
  transform-origin: 34% 32%; transition: transform .14s ease-in-out, opacity .06s linear;
}
#app { transition: transform .7s cubic-bezier(.2,.9,.3,1); }
#app.settling { transform: scale(1.12); transition: none; }

/* Schritt „Dein Profilbild“ (PhotoStep) */
.photo-pick-big {
  position: relative; width: 176px; height: 176px; margin: 0 auto; border-radius: 50%; cursor: pointer;
  background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 30px;
  box-shadow: inset 0 0 0 1.5px var(--line); outline: 1.5px dashed rgba(255,255,255,.18); outline-offset: -1.5px;
}
.photo-pick-big.has-photo { outline: none; }
.photo-pick-big img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.photo-badge {
  position: absolute; right: 6px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 0 0 3px #000;
}
.photo-badge .i { stroke-width: 3; }
.guidelines { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.guideline { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); }
.guide-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; flex: none; }
.guide-icon.no { color: var(--text-3); }
.guide-icon .i { stroke-width: 3.2; }
.splash-retry { position: absolute; left: 0; right: 0; top: calc(50% + 60px); text-align: center; color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------- Ergänzungen (Abgleich mit der iPhone-App) ---------- */
/* Willkommen: Impressum unter dem Rechtstext */
.legal .legal-imprint { display: inline-block; margin-top: 6px; }
/* Regeln: Nutzungsbedingungen akzeptieren (Pflicht) + Datenschutz zur Kenntnis */
.check-row.terms-row { margin-top: 16px; gap: .28em; flex-wrap: wrap; }
.terms-toggle { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; text-align: left; }
.terms-row a, .rules-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.rules-legal { margin: 16px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.4; }
/* Duo: noch kein Stand vom Server („Verbinde …“) mit Ausgang */
.duo-connecting { position: relative; }
.duo-connecting .connecting-x { position: absolute; top: calc(var(--top) + 12px); left: var(--pad); }
.connecting-slow { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; text-align: center; color: var(--text); }
.connecting-slow .sub { margin: 0 0 8px; }
/* Dialog mit nur einem Knopf (z. B. „Erneut versuchen“) */
.dialog-actions > button:only-child { grid-column: 1 / -1; }
/* Konto löschen: Fortschritt in der Zeile, Abmelden solange gesperrt */
.spinner.light { border-color: rgba(255,255,255,.2); border-top-color: #fff; }
.list-row:disabled:not(:has(.spinner)) { opacity: .45; }
.action-sheet button:disabled { color: var(--text-2); opacity: .55; cursor: default; }
.report-evidence{margin:18px 0;padding:12px;border:1px solid var(--separator,#ddd);border-radius:16px}.report-evidence-preview{display:block;width:100%;max-height:220px;object-fit:contain;margin:12px 0;border-radius:12px}.report-evidence .check-row{margin-top:12px}.report-evidence .btn{white-space:normal;height:auto;min-height:44px;padding:12px}
.marketing-consent{position:fixed;inset:0;z-index:10000;display:grid;place-items:end center;padding:20px;background:#0008}.marketing-consent[hidden],.marketing-consent-reopen[hidden]{display:none}.marketing-consent-card{width:min(620px,100%);padding:20px;border-radius:20px;background:#fff;color:#1d1e1a;box-shadow:0 18px 70px #0008;font:15px/1.45 system-ui,sans-serif}.marketing-consent-card strong{font-size:18px}.marketing-consent-card p{margin:8px 0 16px}.marketing-consent-card div{display:flex;flex-wrap:wrap;gap:10px}.marketing-consent-card button{min-height:44px;padding:10px 16px;border:1px solid #292b24;border-radius:999px;background:#fff;color:#1d1e1a;font:inherit;font-weight:700}.marketing-consent-card button[data-consent="analytics"],.marketing-consent-card button[data-consent="marketing"]{background:#ccfa52}.marketing-consent-card a{display:inline-block;margin-top:14px;color:inherit}.marketing-consent-reopen{position:fixed;z-index:9000;left:10px;bottom:10px;padding:7px 10px;border:1px solid #ffffff40;border-radius:999px;background:#171814dd;color:#fff;font:11px system-ui,sans-serif}
