/* ============================================================
   wochenendr — Swipe Right on Saturday
   Warm dating-app UI: gradient brand, card stack, sheets
   ============================================================ */

:root {
  --bg: #fbf5f2;
  --bg-2: #f2e9e5;
  --card: #ffffff;
  --ink: #1b1720;
  --ink-2: #4a4350;
  --muted: #8a8290;
  --line: rgba(27, 23, 32, .08);
  --scrim: rgba(18, 12, 20, .55);

  --hot-1: #fd267a;
  --hot-2: #ff6036;
  --grad: linear-gradient(135deg, var(--hot-1), var(--hot-2));
  --like: #12cf96;
  --nope: #ff4767;
  --super: #2a9dff;
  --maybe: #9b5cff;
  --gold: #ffb31a;

  --shadow-app: 0 40px 90px -30px rgba(90, 20, 50, .35), 0 0 0 1px rgba(27, 23, 32, .04);
  --shadow-card: 0 22px 40px -20px rgba(60, 15, 40, .55), 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-btn: 0 10px 24px -10px rgba(60, 15, 40, .35), 0 1px 3px rgba(0, 0, 0, .06);

  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --script: 'Pacifico', cursive;
  --ease-out: cubic-bezier(.2, .9, .25, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #130e15;
    --bg-2: #1e1722;
    --card: #241c28;
    --ink: #f8eef5;
    --ink-2: #d2c5cf;
    --muted: #91849a;
    --line: rgba(255, 255, 255, .08);
    --scrim: rgba(0, 0, 0, .62);
    --shadow-app: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05);
    --shadow-btn: 0 10px 24px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05);
  }
}
:root[data-theme="dark"] {
  --bg: #130e15; --bg-2: #1e1722; --card: #241c28; --ink: #f8eef5; --ink-2: #d2c5cf; --muted: #91849a;
  --line: rgba(255, 255, 255, .08); --scrim: rgba(0, 0, 0, .62);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { display: block; }

/* ── Stage (desktop: brand | app | live) ─────────────── */
.stage { min-height: 100dvh; display: grid; justify-items: center; }
.side { display: none; }

@media (min-width: 1100px) {
  body {
    background:
      radial-gradient(700px 500px at 12% 18%, rgba(253, 38, 122, .16), transparent 70%),
      radial-gradient(700px 520px at 88% 85%, rgba(255, 96, 54, .16), transparent 70%),
      var(--bg-2);
  }
  .stage {
    grid-template-columns: minmax(0, 1fr) 430px minmax(0, 1fr);
    gap: 48px; padding: 32px; align-items: center;
  }
  .side { display: block; align-self: center; }
  .side-brand { justify-self: end; max-width: 380px; }
  .side-live { justify-self: start; width: 100%; max-width: 380px; }
}

.brand-big { display: flex; align-items: center; gap: 10px; }
.brand-big svg { width: 46px; height: 46px; fill: url(#gHot); }
.brand-big span, .logo span, .login-logo span {
  font-family: var(--display); font-weight: 800; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-big span { font-size: 44px; }
.brand-claim { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1.02; letter-spacing: -.035em; margin: 22px 0 14px; }
.brand-claim em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-copy { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.brand-keys { list-style: none; margin-top: 22px; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }
kbd {
  display: inline-grid; place-items: center; min-width: 28px; height: 26px; margin-right: 8px; padding: 0 6px;
  font: 600 13px var(--body); border-radius: 7px; background: var(--card); box-shadow: 0 2px 0 var(--line), 0 0 0 1px var(--line);
}

.live-title { font-family: var(--display); font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--like); box-shadow: 0 0 0 0 rgba(18, 207, 150, .6); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(18, 207, 150, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 207, 150, 0); } }
.side-live .feed { max-height: 70vh; overflow-y: auto; padding-right: 6px; }

/* ── App shell ───────────────────────────────────────── */
.app {
  position: relative; width: 100%; max-width: 440px; height: 100dvh;
  display: flex; flex-direction: column; background: var(--bg); overflow: hidden;
}
@media (min-width: 1100px) {
  .app { height: min(880px, calc(100dvh - 64px)); border-radius: 38px; box-shadow: var(--shadow-app); }
}
@media (min-width: 480px) and (max-width: 1099px) {
  body { background: var(--bg-2); }
  .app { box-shadow: var(--shadow-app); }
}

.topbar {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 14px 6px;
}
.logo { display: flex; align-items: center; justify-content: center; gap: 4px; }
.logo svg { width: 26px; height: 26px; fill: url(#gHot); }
.logo span { font-size: 25px; }
.me-btn {
  width: 40px; height: 40px; border-radius: 50%; font-size: 21px; display: grid; place-items: center;
  background: var(--me-grad, var(--bg-2)); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(253, 38, 122, .35);
  transition: transform .2s var(--spring);
}
.me-btn:active { transform: scale(.9); }
.bell-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; justify-self: end; }
.bell-btn svg { width: 24px; height: 24px; fill: var(--muted); }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--hot-1); box-shadow: 0 0 0 2px var(--bg); }

.conn {
  margin: 0 14px 6px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.4;
  background: rgba(255, 179, 26, .14); color: var(--ink-2); border: 1px solid rgba(255, 179, 26, .35);
}

.views { position: relative; flex: 1; min-height: 0; }
.view { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.view-discover { display: flex; flex-direction: column; overflow: hidden; }

.singles {
  align-self: center; margin: 2px 0 10px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; color: var(--ink-2); background: var(--bg-2);
}
.singles b { color: var(--hot-1); }
.singles sup { color: var(--muted); }

/* ── Tab bar ─────────────────────────────────────────── */
.tabbar {
  display: flex; justify-content: space-around; padding: 6px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 18px; font-size: 11px; font-weight: 500; color: var(--muted); }
.tab svg { width: 26px; height: 26px; fill: var(--muted); transition: transform .25s var(--spring); }
.tab.is-active { color: var(--ink); }
.tab.is-active svg { fill: url(#gHot); transform: scale(1.08); }
.tab-badge {
  position: absolute; top: 2px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  font-size: 11px; line-height: 18px; color: #fff; background: var(--grad); box-shadow: 0 0 0 2px var(--bg);
}

/* ── Deck & cards ────────────────────────────────────── */
.deck { position: relative; flex: 1; margin: 0 12px; min-height: 0; }
.card {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #2a1d2c;
  box-shadow: var(--shadow-card); touch-action: none; user-select: none; -webkit-user-select: none;
  transform-origin: 50% 110%; will-change: transform;
  transition: transform .45s var(--ease-out), opacity .3s ease;
}
.card[data-depth="1"] { transform: translateY(10px) scale(.955); }
.card[data-depth="2"] { transform: translateY(20px) scale(.91); opacity: .7; }
.card.is-dragging { transition: none; cursor: grabbing; }
.card.is-top { cursor: grab; }
.card.is-entering { animation: cardIn .5s var(--spring); }
@keyframes cardIn { from { transform: translateY(24px) scale(.93); } }

.photo { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.photo.is-on { opacity: 1; }
.photo-bars { position: absolute; top: 8px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 4px; }
.photo-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.photo-bars i.is-on { background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .2); }
.tap { position: absolute; top: 0; bottom: 38%; width: 45%; z-index: 3; }
.tap-l { left: 0; } .tap-r { right: 0; }

/* Scene illustration (photo 1) */
.scene { background: linear-gradient(165deg, var(--g1), var(--g2)); overflow: hidden; }
.scene::before { /* sun / moon */
  content: ''; position: absolute; width: 190px; height: 190px; right: -40px; top: 40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, .15) 60%, transparent 70%);
}
.scene::after { /* film grain */
  content: ''; position: absolute; inset: 0; opacity: .18; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hill { position: absolute; left: -20%; right: -20%; border-radius: 50% 50% 0 0; }
.hill-1 { bottom: -16%; height: 52%; background: var(--h1); }
.hill-2 { bottom: -26%; height: 50%; left: 10%; right: -40%; background: var(--h2); }
.scene-date {
  position: absolute; left: 18px; top: 26px; z-index: 1; color: #fff; line-height: .86;
  font-family: var(--display); font-weight: 800; letter-spacing: -.05em; text-shadow: 0 4px 30px rgba(0, 0, 0, .18);
}
.scene-date b { display: block; font-size: 64px; }
.scene-date span { display: block; font-size: 30px; opacity: .85; text-transform: uppercase; letter-spacing: -.02em; }
.emo { position: absolute; line-height: 1; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25)); }
.emo-main { left: 50%; top: 44%; font-size: 128px; transform: translate(-50%, -50%) rotate(-6deg); animation: float 6s ease-in-out infinite; }
.emo-a { left: 10%; top: 30%; font-size: 52px; transform: rotate(-14deg); animation: float 7s ease-in-out infinite -2s; }
.emo-b { right: 9%; top: 26%; font-size: 64px; transform: rotate(12deg); animation: float 8s ease-in-out infinite -4s; }
.emo-c { right: 18%; top: 54%; font-size: 40px; transform: rotate(-4deg); animation: float 6.5s ease-in-out infinite -1s; }
@keyframes float { 50% { translate: 0 -8px; } }

.shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, transparent 18%, transparent 42%, rgba(10, 4, 12, .82) 100%); }

/* Squad photo (photo 2) */
.p-squad { background: linear-gradient(160deg, #2b1c33, #170f1c); padding: 40px 14px 0; color: #fff; }
.p-squad h3, .p-cal h3 { font-family: var(--display); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.p-squad .sub, .p-cal .sub { font-size: 12.5px; color: rgba(255, 255, 255, .65); margin-bottom: 10px; }
.sq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sq-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .07); min-width: 0; }
.sq-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; flex: none; }
.sq-name { font-size: 13px; font-weight: 700; line-height: 1.15; }
.sq-st { display: block; font-size: 11px; font-weight: 500; opacity: .8; }

/* Calendar photo (photo 3) */
.p-cal { background: linear-gradient(160deg, #fff5ef, #ffe3ea); padding: 40px 14px 0; color: #1b1720; }
.p-cal .sub { color: #8a8290; }
.days { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; }
.day { border-radius: 14px; background: #fff; padding: 10px 6px; text-align: center; box-shadow: 0 6px 16px -10px rgba(60, 15, 40, .4); }
.day small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #8a8290; }
.day b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; margin: 2px 0; }
.day em { display: block; font-style: normal; font-size: 10.5px; line-height: 1.2; color: var(--hot-1); font-weight: 700; min-height: 13px; }
.day.is-off { background: linear-gradient(160deg, #fff, #ffeef4); box-shadow: inset 0 0 0 2px rgba(253, 38, 122, .35); }
.ferien { margin-top: 12px; display: grid; gap: 6px; font-size: 13px; }
.ferien div { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .7); }

/* Photos 2 and 3 keep only the name visible */
.card:not([data-photo="0"]) :is(.card-meta, .card-bio, .chips) { display: none; }
.card:not([data-photo="0"]) .shade { background: linear-gradient(180deg, transparent 70%, rgba(10, 4, 12, .7) 100%); }

/* Card info */
.card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 18px 18px; color: #fff; pointer-events: none; }
.card-name { font-family: var(--display); font-weight: 800; font-size: 31px; letter-spacing: -.03em; line-height: 1.05; display: flex; align-items: baseline; gap: 8px; }
.card-name .age { font-weight: 500; font-size: 26px; opacity: .92; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13.5px; opacity: .92; }
.card-bio { margin-top: 8px; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.info-btn {
  position: absolute; right: 16px; bottom: 20px; z-index: 4; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); pointer-events: auto;
}
.ribbon {
  position: absolute; z-index: 4; top: 22px; right: 14px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #fff; background: rgba(20, 10, 24, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Stamps */
.stamp {
  position: absolute; z-index: 5; opacity: 0; pointer-events: none;
  font-family: var(--display); font-weight: 800; font-size: 46px; letter-spacing: .02em; line-height: 1;
  padding: 4px 14px; border: 5px solid currentColor; border-radius: 12px; background: rgba(255, 255, 255, .06);
}
.stamp-like { top: 54px; left: 22px; color: var(--like); transform: rotate(-18deg); }
.stamp-nope { top: 54px; right: 22px; color: var(--nope); transform: rotate(18deg); }
.stamp-super { left: 50%; bottom: 34%; color: var(--super); transform: translateX(-50%) rotate(-6deg); text-align: center; font-size: 38px; }
.stamp-maybe { left: 50%; top: 38%; color: var(--maybe); transform: translateX(-50%) rotate(4deg); font-size: 26px; }

/* Deck empty state */
.empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.empty-pulse { position: relative; width: 120px; height: 120px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 46px; }
.empty-pulse::before, .empty-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--grad); opacity: .18; animation: ping 2.4s var(--ease-out) infinite; }
.empty-pulse::after { animation-delay: 1.2s; }
.empty h3 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.empty p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; max-width: 300px; }
.empty .pill { margin-top: 18px; }

/* ── Action buttons ──────────────────────────────────── */
.actions { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 12px; }
.ab {
  position: relative; display: grid; place-items: center; border-radius: 50%; background: var(--card);
  box-shadow: var(--shadow-btn); transition: transform .2s var(--spring), box-shadow .2s ease;
}
.ab:hover { transform: scale(1.08); }
.ab:active { transform: scale(.88); }
.ab:disabled { opacity: .4; pointer-events: none; }
.ab-lg { width: 66px; height: 66px; }
.ab-sm { width: 48px; height: 48px; }
.ab-lg svg { width: 32px; height: 32px; }
.ab-sm svg { width: 22px; height: 22px; }
.ab-nope { color: var(--nope); }
.ab-like svg { fill: var(--like); }
.ab-super svg { fill: var(--super); }
.ab-rewind { color: var(--gold); }
.ab-maybe span { font-family: var(--display); font-weight: 800; font-size: 25px; color: var(--maybe); }
.ab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 20px; color: #fff; background: var(--super); box-shadow: 0 0 0 2px var(--bg);
}
.ab.is-hit-like { box-shadow: 0 0 0 4px rgba(18, 207, 150, .35), var(--shadow-btn); }
.ab.is-hit-nope { box-shadow: 0 0 0 4px rgba(255, 71, 103, .35), var(--shadow-btn); }

/* ── Pills & generic ─────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .2s var(--spring);
}
.pill:active { transform: scale(.95); }
.pill-hot { color: #fff; background: var(--grad); box-shadow: 0 12px 24px -12px rgba(253, 38, 122, .8); }
.pill-nope { color: #fff; background: var(--nope); }
.pill-ghost { color: var(--ink); background: var(--bg-2); }
.pill-glass { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hot-1); }
.av {
  display: grid; place-items: center; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--a, #ffc3d6), var(--b, #ff8a65));
}

/* ── Matches view ────────────────────────────────────── */
.view-matches, .view-squad { padding: 4px 16px 24px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 10px; }
.sec-h h3 { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.sec-h span { font-size: 12.5px; color: var(--muted); }

.hero {
  position: relative; border-radius: 22px; padding: 18px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--g1, #fd267a), var(--g2, #ff6036)); box-shadow: var(--shadow-card);
}
.hero::after { content: attr(data-emoji); position: absolute; right: -6px; bottom: -22px; font-size: 120px; opacity: .9; transform: rotate(-10deg); }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero h2 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; margin: 4px 0 2px; max-width: 70%; }
.hero p { font-size: 14px; opacity: .92; max-width: 68%; }
.hero .pill { margin-top: 14px; background: #fff; color: var(--ink); padding: 9px 16px; font-size: 14px; position: relative; z-index: 1; }
.hero-empty { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.hero-empty .eyebrow { color: var(--hot-1); }
.hero-empty::after { opacity: .25; }

.mrow { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.mrow::-webkit-scrollbar { display: none; }
.mav { flex: none; width: 72px; text-align: center; font-size: 12.5px; font-weight: 600; }
.mav .ring { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: var(--grad); margin-bottom: 6px; }
.mav .ring > span { width: 100%; height: 100%; font-size: 30px; box-shadow: 0 0 0 3px var(--bg); }
.mav-none { color: var(--muted); font-size: 13.5px; padding: 6px 2px; }

.convs { list-style: none; display: grid; }
.conv { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conv:last-child { border-bottom: 0; }
.conv .av { width: 58px; height: 58px; font-size: 27px; }
.conv-name { font-weight: 700; font-size: 15.5px; }
.conv-name small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.conv-prev { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.conv-body { min-width: 0; }
.chem { --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--hot-1) calc(var(--p) * 1%), var(--bg-2) 0); }
.chem b { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; }

.ghosts summary { list-style: none; cursor: pointer; }
.ghosts summary::-webkit-details-marker { display: none; }
.ghosts summary .sec-h span::after { content: ' ▾'; }
.ghosts[open] summary .sec-h span::after { content: ' ▴'; }
.ghost { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 9px 2px; cursor: pointer; opacity: .85; }
.ghost .av { width: 44px; height: 44px; font-size: 20px; filter: grayscale(.8); }
.ghost-name { font-weight: 700; font-size: 14.5px; }
.ghost-why { font-size: 12.5px; color: var(--muted); }

/* ── Squad view ──────────────────────────────────────── */
.me-card { border-radius: 22px; padding: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-btn); }
.me-top { display: flex; align-items: center; gap: 14px; }
.me-top .av { width: 64px; height: 64px; font-size: 32px; }
.me-top h2 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.me-top p { color: var(--muted); font-size: 13.5px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.stat { text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--bg-2); }
.stat b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; }
.stat span { font-size: 11px; color: var(--muted); }
.progress { height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; margin-top: 14px; }
.progress b { display: block; height: 100%; background: var(--grad); border-radius: 8px; transition: width .5s var(--ease-out); }
.progress-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

.deckel { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px; border-radius: 16px; background: linear-gradient(150deg, rgba(255, 179, 26, .14), rgba(255, 96, 54, .1)); }
.deckel-mat {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #f5e6c8 0 3px, #efdcb6 3px 6px); box-shadow: inset 0 0 0 3px #d9b77a, 0 4px 10px -4px rgba(0, 0, 0, .35);
  font-family: var(--display); font-weight: 800; color: #8a5a12; font-size: 20px; letter-spacing: 2px;
}
.deckel p { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.deckel b { color: var(--ink); }

.friends { list-style: none; display: grid; gap: 4px; }
.friend { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 8px 2px; }
.friend .av { width: 46px; height: 46px; font-size: 23px; }
.friend-name { font-weight: 700; font-size: 15px; }
.friend-name .badges { margin-left: 4px; font-size: 14px; }
.friend-sub { font-size: 12.5px; color: var(--muted); }
.friend-bar { height: 5px; border-radius: 5px; background: var(--bg-2); margin-top: 5px; overflow: hidden; }
.friend-bar b { display: block; height: 100%; background: var(--grad); }
.friend-n { font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: right; }
.friend.is-me .friend-name { color: var(--hot-1); }

.box { border-radius: 18px; padding: 14px 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.notes { list-style: none; display: grid; gap: 8px; }
.notes li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.notes li::before { content: '✦'; color: var(--hot-1); }
.settings { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ── Feed ────────────────────────────────────────────── */
.feed { list-style: none; display: grid; gap: 4px; }
.feed li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 8px 6px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.feed li:hover { background: var(--bg-2); }
.feed .av { width: 34px; height: 34px; font-size: 17px; }
.feed b { color: var(--ink); }
.feed time { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.combo { display: block; margin-top: 3px; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feed-empty { color: var(--muted); font-size: 13.5px; padding: 8px 6px; }

/* ── Overlays & sheets ───────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; overflow-y: auto; }
.overlay-sheet { background: var(--scrim); place-items: end center; animation: fade .2s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@media (min-width: 700px) { .overlay-sheet { place-items: center; padding: 24px; } }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: min(440px, 100%); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 26px 26px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4); animation: sheetUp .38s var(--ease-out);
}
@media (min-width: 700px) { .sheet { border-radius: 26px; } }
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } }
.sheet-x {
  position: absolute; top: 14px; right: 14px; z-index: 6; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2);
}
.sheet-x svg { width: 16px; height: 16px; }
.sheet-h { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin-bottom: 12px; }

/* Profile sheet */
.sheet-profile { padding: 0 0 calc(22px + env(safe-area-inset-bottom)); }
.sheet-profile .sheet-x { background: rgba(0, 0, 0, .35); color: #fff; }
.p-head { position: relative; height: 300px; border-radius: 26px 26px 0 0; overflow: hidden; }
.p-head .photo { opacity: 1; }
.p-head .card-info { pointer-events: auto; }
.p-body { padding: 4px 18px 0; }
.p-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.p-sec:last-child { border-bottom: 0; }
.p-sec h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.p-sec p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.basics { display: flex; flex-wrap: wrap; gap: 8px; }
.basics span { font-size: 13.5px; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.flags { list-style: none; display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); }
.flags li { padding: 9px 12px; border-radius: 12px; }
.flags-green li { background: rgba(18, 207, 150, .1); }
.flags-red li { background: rgba(255, 71, 103, .09); }
.vote-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vote {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 16px;
  background: var(--bg-2); font-size: 12px; font-weight: 700; color: var(--ink-2); transition: transform .2s var(--spring);
}
.vote span { font-size: 22px; line-height: 1.1; }
.vote:active { transform: scale(.94); }
.vote.is-on { color: #fff; }
.vote.v-yes.is-on { background: var(--like); }
.vote.v-drop.is-on { background: var(--super); }
.vote.v-maybe.is-on { background: var(--maybe); }
.vote.v-no.is-on { background: var(--nope); }
.vote:disabled { opacity: .4; }
.who-list { list-style: none; display: grid; gap: 6px; }
.who-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.who-list .av { width: 36px; height: 36px; font-size: 18px; }
.who-list .st { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.who-list .st-yes { background: rgba(18, 207, 150, .14); color: var(--like); }
.who-list .st-drop { background: rgba(42, 157, 255, .14); color: var(--super); }
.who-list .st-maybe { background: rgba(155, 92, 255, .14); color: var(--maybe); }
.who-list .st-no { background: rgba(255, 71, 103, .12); color: var(--nope); }

.chat { display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.4; background: var(--bg-2); color: var(--ink-2); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.is-me { align-self: flex-end; background: var(--grad); color: #fff; border-radius: 18px; border-bottom-right-radius: 6px; }
.bubble.is-me b { color: #fff; }
.bubble.is-sys { align-self: center; background: none; color: var(--muted); font-size: 12px; text-align: center; }
.bubble time { display: block; font-size: 10.5px; opacity: .7; margin-top: 2px; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Nope sheet */
.nope-title { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 16px; padding-right: 40px; }
.lesung-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.lesung-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lesung-btns .pill { padding: 10px 14px; font-size: 14px; }

/* Login */
.overlay-login { background: var(--grad); place-items: center; padding: 24px 16px; color: #fff; }
.login { width: min(440px, 100%); text-align: center; animation: sheetUp .5s var(--ease-out); }
.login-logo { display: flex; align-items: center; justify-content: center; gap: 6px; }
.login-logo svg { width: 46px; height: 46px; fill: #fff; }
.login-logo span { font-size: 46px; background: none; color: #fff; }
.login-claim { font-size: 17px; opacity: .9; margin-top: 2px; }
.login-q { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 30px 0 16px; letter-spacing: -.02em; }
.who { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.who-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px;
  border-radius: 20px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
  transition: transform .2s var(--spring), background .2s ease;
}
.who-btn:hover { background: rgba(255, 255, 255, .24); transform: translateY(-3px); }
.who-btn:active { transform: scale(.95); }
.who-btn .av { width: 58px; height: 58px; font-size: 30px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.who-btn b { font-size: 14px; }
.who-btn small { font-size: 11px; opacity: .8; }
.who-btn .tick { position: absolute; top: 8px; right: 8px; font-size: 12px; }
.login-warn { margin-top: 20px; display: inline-block; padding: 7px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); font-size: 13px; font-weight: 500; }
.login-fine { margin-top: 14px; font-size: 12px; opacity: .78; line-height: 1.5; }

/* Radar */
.overlay-radar { background: var(--bg); place-items: center; padding: 24px; text-align: center; }
.radar { width: min(380px, 100%); }
.radar-pulse { position: relative; width: 220px; height: 220px; margin: 0 auto 26px; display: grid; place-items: center; }
.radar-pulse i { position: absolute; inset: 0; border-radius: 50%; background: var(--grad); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
.radar-pulse i:nth-child(2) { animation-delay: .8s; }
.radar-pulse i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ping { 0% { transform: scale(.35); opacity: .45; } 100% { transform: scale(1); opacity: 0; } }
.radar-av { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 48px; background: var(--me-grad, var(--bg-2)); box-shadow: 0 0 0 5px var(--bg), 0 0 0 9px rgba(253, 38, 122, .35); }
.radar-greet { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.02em; line-height: 1.2; }
.radar-status { color: var(--muted); margin-top: 6px; font-size: 14px; }
.radar-tip { margin-top: 22px; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

/* It's a Match */
.overlay-match {
  place-items: center; padding: 24px 16px; color: #fff; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, rgba(253, 38, 122, .55), transparent 60%), rgba(14, 6, 16, .94);
  animation: fade .3s ease;
}
.match { width: min(440px, 100%); }
.match-title {
  font-family: var(--script); font-weight: 400; font-size: clamp(48px, 15vw, 70px); line-height: 1.15;
  background: linear-gradient(90deg, #ffe0ec, #fff, #ffd1a8); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(253, 38, 122, .7)); transform: rotate(-4deg); animation: matchPop .8s var(--spring);
}
@keyframes matchPop { from { transform: rotate(-4deg) scale(.3); opacity: 0; } }
.match-sub { margin-top: 10px; font-size: 15.5px; opacity: .9; line-height: 1.5; }
.match-orbit { position: relative; width: 280px; height: 280px; margin: 24px auto 10px; }
.orb-center {
  position: absolute; left: 50%; top: 50%; width: 118px; height: 118px; margin: -59px 0 0 -59px; border-radius: 50%;
  display: grid; place-items: center; font-size: 56px; box-shadow: 0 0 0 4px #fff, 0 0 60px rgba(253, 38, 122, .8);
  animation: matchPop .7s var(--spring) .1s backwards;
}
.orb { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; font-size: 26px; box-shadow: 0 0 0 3px #fff; animation: orbIn .6s var(--spring) backwards; }
@keyframes orbIn { from { transform: translate(0, 0) scale(0); } }
.match-synergy { font-size: 13px; opacity: .72; line-height: 1.5; max-width: 360px; margin: 8px auto 0; }
.match-btns { display: grid; gap: 10px; margin-top: 22px; }

/* Toasts */
.toasts { position: fixed; z-index: 70; top: calc(66px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(400px, calc(100vw - 24px)); display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: 18px; font-size: 13.5px; line-height: 1.4; color: #fff;
  background: rgba(27, 20, 30, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  animation: toastIn .4s var(--spring), toastOut .35s ease 3.9s forwards;
}
.toast .av { width: 30px; height: 30px; font-size: 15px; }
.toast b { color: #fff; }
.toast-big { grid-template-columns: 1fr; text-align: center; font-family: var(--display); font-weight: 800; font-size: 18px; background: var(--grad); }
@keyframes toastIn { from { transform: translateY(-16px) scale(.96); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-10px); opacity: 0; } }

.float-emoji { position: fixed; z-index: 80; pointer-events: none; font-size: 44px; transition: transform 1.6s var(--ease-out), opacity 1.6s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Profile photos ──────────────────────────────────── */
.pic { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.scene .pic ~ .emo, .scene .pic ~ .scene-date { display: none; }
.date-pill {
  position: absolute; z-index: 3; top: 20px; left: 12px; padding: 5px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(20, 10, 24, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.scene:not(:has(.pic)) .date-pill { display: none; }
.p-head .date-pill { top: 16px; }
.av { position: relative; overflow: hidden; }
.av .pic { border-radius: 50%; object-position: 50% 22%; }
.hero.has-pic {
  color: #fff; box-shadow: var(--shadow-card);
  background: linear-gradient(90deg, rgba(14, 6, 16, .82) 0%, rgba(14, 6, 16, .45) 55%, rgba(14, 6, 16, .1) 100%), var(--pic) center / cover, linear-gradient(150deg, var(--g1), var(--g2));
}
.hero.has-pic::after { content: none; }
.hero.has-pic .eyebrow { color: #ffd1e0; }

/* ── Help (hover / long-press explanations) ──────────── */
button, .card, [data-profile] { -webkit-touch-callout: none; }
.help-i {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; background: var(--grad);
}
.help-card {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 14px 16px; border-radius: 18px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 15px; line-height: 1.5; color: var(--muted);
  min-height: 96px; transition: box-shadow .2s ease, color .2s ease;
}
.help-card.is-active { color: var(--ink); box-shadow: 0 0 0 2px rgba(253, 38, 122, .45), var(--shadow-btn); }
.helpbar {
  position: fixed; z-index: 75; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px)); display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; color: #fff; pointer-events: none;
  background: rgba(27, 20, 30, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55);
}
@media (min-width: 1100px) { .helpbar { display: none !important; } }
.login-tip { margin-top: 12px; font-size: 13px; line-height: 1.5; background: rgba(0, 0, 0, .16); padding: 8px 12px; border-radius: 12px; display: inline-block; }
