:root{
  --ink:#0B0A0F; --lift:#13111B; --surface:#17151F; --hi:#221E2E; --stroke:#2C2739;
  --text:#F7F4FB; --fog:#9A93AB; --dim:#6A6379;
  --ember:#FF3D68; --amber:#FFA13A; --mint:#3FD6A0;
  --heat:linear-gradient(102deg,var(--ember),var(--amber));
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* #sheet and .screen both set display, which outranks the UA rule for [hidden] — without
   this an invisible overlay still swallows every click. */
[hidden]{display:none!important}
html,body{height:100%;overscroll-behavior:none}
body{background:var(--ink);color:var(--text);font:16px/1.5 "Plus Jakarta Sans",-apple-system,system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden}
button,input{font:inherit;color:inherit;border:0;background:none;outline:none}

/* Chrome paints its own near-white slab over an autofilled field and ignores
   background-color there; an inset shadow is the only paint that lands on top of it.
   The absurd transition delay covers the frames before that shadow is applied. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
  -webkit-text-fill-color:var(--text);
  caret-color:var(--text);
  box-shadow:inset 0 0 0 1000px var(--surface);
  transition:background-color 100000s ease-in-out 0s}
/* Firefox and the standardised selector, which do honour background-color. */
input:autofill{
  background-color:var(--surface)!important;
  color:var(--text);
  -webkit-text-fill-color:var(--text);
  box-shadow:inset 0 0 0 1000px var(--surface)}
button{cursor:pointer}

#aurora{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(60vw 60vw at 22% 78%, rgba(255,61,104,.26), transparent 66%),
    radial-gradient(52vw 52vw at 82% 22%, rgba(255,161,58,.17), transparent 66%),
    radial-gradient(46vw 46vw at 12% 12%, rgba(139,92,255,.14), transparent 68%)}
#root{position:relative;z-index:1;height:100%;max-width:520px;margin:0 auto}
.screen{height:100%;display:flex;flex-direction:column}
.pad{flex:1;display:flex;flex-direction:column;justify-content:center;padding:0 26px;gap:0}

.wm{display:inline-block;text-decoration:none;
  font-family:"Instrument Serif",Georgia,serif;font-size:72px;line-height:1;
  background:var(--heat);-webkit-background-clip:text;background-clip:text;color:transparent}
.wm.sm{font-size:30px}
h1{font-size:clamp(28px,8vw,34px);font-weight:800;letter-spacing:-1px;line-height:1.06;margin-top:16px}
h2{font-size:28px;font-weight:800;letter-spacing:-.8px}
.lede{margin-top:10px;color:var(--fog);font-size:15px;line-height:1.55}
.fine{margin-top:12px;color:var(--dim);font-size:13px;text-align:center}
.fine.dim{color:var(--dim);opacity:.8;text-align:left;margin-top:14px}
.err{color:var(--ember);font-size:13.5px;min-height:20px;margin-top:10px}
.glyph{font-size:44px}
.back{font-size:30px;color:var(--fog);align-self:flex-start;line-height:1;margin-bottom:8px}

.field{display:flex;align-items:center;gap:10px;margin-top:26px;padding:0 14px;height:56px;
  background:var(--surface);border:1px solid var(--stroke);border-radius:18px}
.cc{display:flex;align-items:center;gap:7px;font-size:17px;font-weight:600;padding:6px 4px}
.cc i{font-style:normal;color:var(--fog);font-size:11px}
.sep{width:1px;height:24px;background:var(--stroke)}
#phone{flex:1;font-size:20px;letter-spacing:2px;min-width:0}
.gbtn{margin-top:20px;display:flex;align-items:center;justify-content:center;gap:10px;
  background:#fff;color:#1F1F1F;box-shadow:none}
.gbtn svg{width:19px;height:19px;flex:0 0 auto}
.gbtn:disabled{opacity:.6}
/* A labelled rule, so the pairing code reads as the fallback it now is. */
.orbar{display:flex;align-items:center;gap:12px;margin-top:22px;color:var(--dim);font-size:12px}
.orbar::before,.orbar::after{content:"";flex:1;height:1px;background:var(--stroke)}
.codein{margin-top:22px;width:100%;height:56px;text-align:center;font-size:20px;
  letter-spacing:3px;font-weight:700;background:var(--surface);
  border:1px solid var(--stroke);border-radius:18px;text-transform:uppercase}

.cta{margin-top:16px;width:100%;height:54px;border-radius:18px;background:var(--heat);
  color:#fff;font-weight:700;font-size:16.5px;box-shadow:0 12px 32px rgba(255,61,104,.3)}
.cta:disabled{background:var(--hi);color:var(--dim);box-shadow:none}

.boxes{position:relative;display:flex;gap:9px;margin-top:24px}
.boxes div{flex:1;height:60px;border-radius:16px;background:var(--surface);
  border:1.5px solid var(--stroke);display:grid;place-items:center;font-size:24px;font-weight:700;
  transition:border-color .18s,background .18s}
.boxes div.on{border-color:var(--ember);background:var(--hi)}
/* The field itself is invisible but covers all six boxes, so a tap focuses it for real
   (and raises the keyboard) instead of being a synthetic focus from a click handler.
   16px keeps iOS Safari from zooming the page when it takes focus. */
#code{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px}
/* A real input has a caret; six divs don't, so the live box grows one. */
.boxes.lit div.on:empty::after{content:"";width:2px;height:26px;border-radius:1px;
  background:var(--ember);animation:caret 1.06s steps(1,end) infinite}
@keyframes caret{0%,49%{opacity:1}50%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.boxes.lit div.on:empty::after{animation:none}
  #navPill{transition:none}}

/* ── app shell ───────────────────────────────────────────────────────────── */
.app{padding-top:env(safe-area-inset-top,0px)}
#hdr{display:flex;align-items:center;gap:11px;padding:14px 20px 8px}
.hcount{display:flex;flex-direction:column;line-height:1.25}
.hcount b{font-size:14px;font-weight:700}
.hcount i{font-style:normal;font-size:12px;color:var(--dim)}
.chip{margin-left:auto;font-size:11.5px;font-weight:600;color:var(--fog);
  border:1px solid var(--stroke);border-radius:99px;padding:4px 10px;
  transition:background .3s,border-color .3s,color .3s}
/* Nothing left to swipe with: the count stops being a quiet stat and starts asking. */
.chip.out{background:var(--ember);border-color:var(--ember);color:#fff;
  animation:chipBlink 1.15s ease-in-out infinite}
@keyframes chipBlink{0%,100%{opacity:1}50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.chip.out{animation:none}}
.tab{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 18px}
.th{font-size:24px;font-weight:800;letter-spacing:-.6px;padding-top:6px}
.tsub{color:var(--dim);font-size:13px;margin-bottom:12px}

.deck{position:relative;flex:1;min-height:0;margin:6px 0}
.card{position:absolute;inset:0;border-radius:28px;overflow:hidden;background:var(--surface);
  border:1px solid var(--stroke);display:flex;flex-direction:column;justify-content:flex-end;
  padding:22px;touch-action:none;will-change:transform;
  box-shadow:0 22px 50px rgba(0,0,0,.55)}
.card .bg{position:absolute;inset:0}
.card .ini{position:absolute;left:50%;top:50%;transform:translate(-50%,-58%);
  width:168px;height:168px;border-radius:50%;background:rgba(255,255,255,.07);
  display:grid;place-items:center;font-family:"Instrument Serif",serif;font-size:64px;
  color:rgba(255,255,255,.5)}
.card img.ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* A 96px vault thumbnail can't fill a card, so it becomes a blurred bed plus a crisp
   portrait — the same treatment the phone and Mac use for low-res contact photos. */
.card img.ph.blurbed{filter:blur(34px);opacity:.3;transform:scale(1.2)}
.card .ini.photo{overflow:hidden;padding:0;background:none;
  box-shadow:0 0 0 2px var(--ember), 0 18px 40px rgba(0,0,0,.5)}
.card .ini.photo img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.row .av img{width:100%;height:100%;object-fit:cover}
.card .scrim{position:absolute;inset:0;background:linear-gradient(to top,
  rgba(6,4,8,.95) 0%, rgba(6,4,8,.72) 24%, transparent 56%)}
.card .meta{position:relative}
.card .nm{font-size:26px;font-weight:800;letter-spacing:-.6px;line-height:1.1}
.card .nm span{font-size:19px;font-weight:600;opacity:.62;margin-left:6px}
.card .rz{margin-top:5px;font-size:12.5px;color:#E0CFD9;display:flex;align-items:center;gap:6px}
.card .rz b{color:var(--amber);font-weight:400}
.card .badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800;
  letter-spacing:1.1px;background:var(--heat);color:#fff;padding:3px 9px;border-radius:99px;
  margin-bottom:9px;width:max-content}
.stamp{position:absolute;top:22px;font-size:26px;font-weight:800;letter-spacing:1px;
  padding:3px 12px;border-radius:11px;border:3px solid;opacity:0}
.stamp.y{left:20px;transform:rotate(-11deg);color:var(--mint);border-color:var(--mint)}
.stamp.n{right:20px;transform:rotate(11deg);color:var(--ember);border-color:var(--ember)}

.card.teaser{justify-content:center;align-items:center;text-align:center;gap:0;
  background:linear-gradient(160deg,var(--hi),var(--surface));touch-action:auto}
.card.teaser .redact{position:relative;width:150px;height:150px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,61,104,.35),transparent 72%);
  display:grid;place-items:center;filter:blur(3px)}
.card.teaser .redact::after{content:"";position:absolute;width:96px;height:96px;
  border-radius:50%;background:rgba(255,61,104,.30);filter:blur(14px)}
.card.teaser .q{position:relative;z-index:1;font-family:"Instrument Serif",serif;
  font-size:56px;color:rgba(247,244,251,.9);filter:none}
/* The walkthrough's opening card is not hiding anyone, so nothing on it is redacted. */
.card.teaser.intro .redact{filter:none}
.card.teaser h3{margin-top:24px;font-size:24px;font-weight:800;letter-spacing:-.6px}
.card.teaser p{margin-top:10px;color:var(--fog);font-size:14.5px;line-height:1.55;max-width:30ch}
.card.teaser .bars{display:flex;gap:8px;margin-top:12px}
.card.teaser .bars i{height:14px;border-radius:7px;background:rgba(247,244,251,.18);filter:blur(4px)}
.card.teaser .cta{margin-top:26px;max-width:240px}

.pads{display:flex;justify-content:center;align-items:center;gap:20px;padding:12px 0}
.pad-btn{width:58px;height:58px;border-radius:50%;background:var(--hi);
  border:1px solid var(--stroke);font-size:22px;display:grid;place-items:center;
  transition:transform .25s cubic-bezier(.16,1,.3,1)}
.pad-btn:active{transform:scale(.92)}
.pad-btn.pass{color:#FF8A8A}
.pad-btn.undo{width:46px;height:46px;font-size:18px;color:var(--amber)}
.pad-btn.undo:disabled{opacity:.32}
.pad-btn.like{width:66px;height:66px;background:var(--heat);border-color:transparent;color:#fff;font-size:26px}

.empty{flex:1;display:grid;place-items:center;text-align:center;color:var(--fog);gap:10px;padding:30px}
.empty h3{color:var(--text);font-size:20px;font-weight:800}
.skel{position:absolute;inset:0;border-radius:28px;background:var(--surface);
  border:1px solid var(--stroke);overflow:hidden}
.skel::after{content:"";position:absolute;inset:0;transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.06),transparent);
  animation:sweep 1.4s linear infinite}
@keyframes sweep{to{transform:translateX(100%)}}

.row{display:flex;align-items:center;gap:13px;padding:13px;border-radius:20px;
  background:var(--surface);border:1px solid var(--stroke);margin-bottom:9px}
/* The avatar is a circle wherever it appears — scoping this to .row left the one on the
   You pane, which sizes itself inline, as a bare square. */
.av{border-radius:50%;background:var(--hi);display:grid;place-items:center;
  font-weight:700;color:var(--fog);flex:0 0 auto;overflow:hidden}
.av img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.row .av{width:50px;height:50px;font-size:18px}
.row .nm{font-size:16px;font-weight:700}
.row .wh{font-size:12px;color:var(--dim)}
.row .go{margin-left:auto;width:42px;height:42px;border-radius:50%;background:var(--heat);
  display:grid;place-items:center;color:#fff;font-size:16px;flex:0 0 auto}

.mecard{background:var(--surface);border:1px solid var(--stroke);border-radius:22px;
  padding:18px;margin-top:12px}
.mecard h3{font-size:15px;font-weight:700;margin-bottom:10px}
.mecard li{list-style:none;display:flex;gap:10px;font-size:13.5px;color:var(--fog);padding:4px 0}
.meter{height:8px;border-radius:5px;background:rgba(255,255,255,.09);overflow:hidden;margin:10px 0 8px}
.meter b{display:block;height:100%;background:var(--heat)}
.stats{display:flex;gap:9px;margin-top:14px}
.stats div{flex:1;background:var(--surface);border:1px solid var(--stroke);border-radius:18px;
  padding:14px 8px;text-align:center}
.stats b{display:block;font-size:20px;font-weight:800}
.stats i{font-style:normal;font-size:11px;color:var(--dim)}

#nav{position:relative;display:flex;gap:5px;padding:6px;margin:0 18px calc(12px + var(--safe-b));
  background:var(--lift);border:1px solid var(--stroke);border-radius:24px}
/* The lit pill is one element that slides, rather than a background switching from one
   button to another — the three tabs are equal thirds, so its travel is its own width
   plus one gap, per step. --i is the active index. */
#navPill{position:absolute;top:6px;left:6px;bottom:6px;border-radius:19px;
  width:calc((100% - 22px) / 3);background:var(--hi);
  transform:translateX(calc((100% + 5px) * var(--i, 0)));
  transition:transform .38s cubic-bezier(.16,1,.3,1)}
#nav button{position:relative;z-index:1;flex:1;height:46px;border-radius:19px;display:flex;
  align-items:center;justify-content:center;gap:8px;color:var(--dim);font-size:14px;
  font-weight:600;transition:color .24s ease}
#nav button.on{color:var(--text)}
/* The glyphs read as too small against the label. Size them up without touching the
   bar's height — line-height:1 keeps the taller glyph from growing the row. */
#nav button span{font-size:21px;line-height:1}
#nav button.on span{color:var(--ember)}
#nav button i{font-style:normal;display:none}
#nav button.on i{display:inline}

#sheet{position:fixed;inset:0;z-index:40;background:rgba(8,6,11,.86);backdrop-filter:blur(10px);
  display:flex;flex-direction:column}
#toast{position:fixed;left:50%;bottom:calc(96px + var(--safe-b));transform:translateX(-50%);
  z-index:60;background:var(--hi);border:1px solid var(--stroke);border-radius:14px;
  padding:11px 16px;font-size:13.5px;box-shadow:0 12px 30px rgba(0,0,0,.5)}

.match-take{position:fixed;inset:0;z-index:50;background:rgba(8,6,11,.96);
  display:grid;place-items:center;text-align:center;padding:30px}
.match-take .t{font-size:12px;font-weight:800;letter-spacing:4px;color:var(--amber)}
.match-take h2{font-size:34px;margin-top:10px}
.match-take .faces{display:flex;justify-content:center;margin:24px 0 14px}
.match-take .f{width:104px;height:104px;border-radius:50%;background:var(--heat);
  display:grid;place-items:center;font-size:38px;font-weight:800;color:#fff;
  border:3px solid var(--ink);overflow:hidden}
.match-take .f+.f{margin-left:-20px}
