/* Willkommen behält seine vorhandenen Abstände. */
html:not(.desktop) .welcome-actions { margin-top: 22px; }
html:not(.desktop) .welcome-actions .btn-primary { justify-content: space-between; padding: 0 22px; }
html:not(.desktop) .welcome .legal { font-size: 12px; line-height: 1.5; }

/* Die Duo-Startseite teilt die Desktop-Markenfarben. Lokale Variablen
   verhindern, dass die Palette in Filter, Nachrichten oder Calls läuft. */
html:not(.desktop) .home {
  --bg: #f8f8f2; --surface: #fff; --surface-raised: #eeefe5;
  --text: #252620; --text-2: #62655b; --text-3: #727569;
  --line: rgba(37,38,32,.14); --online: #687e38;
  color: var(--text); background: var(--bg); color-scheme: light;
  gap: 18px; padding-inline: 18px; scrollbar-width: none;
}
html:not(.desktop):has(.home) #device { background: #f8f8f2; }
html:not(.desktop):not(.framed):has(.home) body { background: #f8f8f2; }
html.framed:has(.home):not(:has(.sheet, .page)) .status-bar { color: #252620; background: #f8f8f2; }
html.framed:has(.home):not(:has(.sheet, .page)) .sb-icons { filter: invert(1); }
html:not(.desktop) .home .home-header {
  height: 50px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
html:not(.desktop) .home .brand-wordmark {
  display: inline-flex; align-items: center; gap: 6px;
  font: 800 29px/1 "Twoyo Display", sans-serif; letter-spacing: -1.6px;
}
html:not(.desktop) .home .brand-period { color: #7b9341; }
html:not(.desktop) .home .brand-mark { display: inline-block; width: 32px; height: 30px; position: relative; transform: rotate(-7deg); }
html:not(.desktop) .home .brand-mark i { position: absolute; width: 18px; height: 26px; border-radius: 11px; top: 1px; left: 0; background: currentColor; }
html:not(.desktop) .home .brand-mark i:last-child { left: 13px; top: 4px; }
html:not(.desktop) .home .brand-mark i::after { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; top: 8px; right: 5px; background: #f8f8f2; }
html:not(.desktop) .home .home-intro { display: none; }
html:not(.desktop) .home .home-intro h1 { margin: 0; font: 750 29px/1.15 "Twoyo Display", sans-serif; letter-spacing: -.8px; }
html:not(.desktop) .home .home-intro h1 > span { display: table; position: relative; isolation: isolate; }
html:not(.desktop) .home .brand-highlight::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 4px; background: #d5fa70; border-radius: 50%; transform: rotate(-1.5deg); }
html:not(.desktop) .home :is(.welcome-eyebrow, .home-mode) { display: none; }
html:not(.desktop) .home .live-pill { min-height: 44px; height: 44px; background: #fff; color: #252620; border: 1px solid var(--line); box-shadow: none; padding-inline: 9px; gap: 4px; }
html:not(.desktop) .home .live-pill .online-label { color: var(--text-2); }
html:not(.desktop) .home .pill-divider { background: var(--line); }
html:not(.desktop) .home > .hero {
  flex: 1 0 270px; min-height: 270px; padding: 6px; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 8px 24px #25262008;
}
html:not(.desktop) .home .hero::after { display: none; }
html:not(.desktop) .home .hero > .tile { border-radius: 20px; min-width: 0; }
html:not(.desktop) .home .hero > .tile:first-child { --text: #fff; --text-2: #ffffffb3; --text-3: #ffffff80; color: #fff; background: #292b26; }
html:not(.desktop) .home .hero > .partner-slot { background: transparent; color: #252620; box-shadow: inset 0 0 0 1px #25262014; }
html:not(.desktop) .home .partner-slot .slot-backdrop { display: none; }
html:not(.desktop) .home .slot-content { padding: 16px 9px; gap: 8px; }
html:not(.desktop) .home .glass-circle { width: 56px; height: 56px; margin-bottom: 6px; background: #d5fa70; box-shadow: none; backdrop-filter: none; }
html:not(.desktop) .home .slot-title { font: 650 18px/1.2 "Twoyo Display", sans-serif; text-shadow: none; }
html:not(.desktop) .home .slot-sub { font-size: 12px; line-height: 1.4; color: #62655b; }
html:not(.desktop) .home .slot-faces .avatar { box-shadow: 0 0 0 2px #fff; }
/* Frosted white glass: softened preview beneath a translucent white layer. */
html .screen.main .home .partner-slot .slot-backdrop {
  display: block; pointer-events: none;
  background: radial-gradient(ellipse at 20% 20%, #e0e6eb, transparent 70%),
    radial-gradient(ellipse at 85% 85%, #e1e5d8, transparent 75%), #f3f4f1;
}
html .screen.main .home .partner-slot .slot-backdrop :is(img, video) {
  filter: blur(32px) saturate(.6); opacity: .75;
}
html .screen.main .home .partner-slot .slot-backdrop::after {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 #ffffffd9, inset 0 0 0 1px #ffffff99;
  border-radius: 20px;
}
html:not(.desktop) .home .picks { gap: 9px; }
html:not(.desktop) .home .pick-row { gap: 12px; flex-wrap: wrap; }
html:not(.desktop) .home .pick { width: 60px; }
html:not(.desktop) .home .pick-avatar { padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
html:not(.desktop) .home .pick-avatar.online { box-shadow: inset 0 0 0 2px var(--online); }
html:not(.desktop) .home .pick-avatar .avatar { width: 48px !important; height: 48px !important; }
html:not(.desktop) .home .pick-circle { width: 54px; height: 54px; background: #e9e5f2; }
/* Shared invitation action on the light home screen. */
html .screen.main .home > .btn.home-invite {
  min-height: 54px; gap: 10px; padding: 13px 20px; border-radius: 16px;
  background: #fff; color: #252620; border: 1px solid #d8dbcf;
  box-shadow: 0 2px 5px #25262006; font-size: 16px; font-weight: 600;
}
html .screen.main .home > .btn.home-invite > .i { font-size: 21px; color: #687e38; }
html .screen.main .home > .btn.home-invite:not(:disabled):is(:hover, :active) {
  background: #eff2e6; border-color: #adb997; box-shadow: none;
}
html .screen.main .home > .btn.home-invite:disabled {
  background: #eeefe8; border-color: #e2e4da; color: #8a8d82; box-shadow: none; opacity: 1;
}
html .screen.main .home > .btn.home-invite:disabled > .i { color: inherit; }
html .screen.main .home > .btn.home-invite:focus-visible { outline: 2px solid #526b29; outline-offset: 3px; }
html:not(.desktop) .home :focus-visible { outline: 2px solid #526b29; outline-offset: 3px; }
@media (max-width: 350px) {
  html:not(.desktop) .home { padding-inline: 14px; }
  html:not(.desktop) .home .home-intro h1 { font-size: 27px; }
  html:not(.desktop) .home .brand-wordmark { font-size: 26px; }
  html:not(.desktop) .home .pick-row { gap: 8px; }
}
