/* =========================================================
   DateSwipe — style.css   "Editorial Night"
   1 tokens · 2 reset · 3 shell/topbar · 4 deck+card · 5 actions+dock
   6 sheet · 7 lists · 8 empty/done · 9 toast · 10 match · 11 boot/gate · 12 motion
   ========================================================= */

/* ---------- 1. tokens ---------- */
:root{
  /* surfaces — matte, never glass */
  --bg:        var(--tg-theme-bg-color, #0b0b0f);
  --surface:   #16171d;
  --surface-2: #1f212a;
  --hairline:  rgba(255,255,255,.08);
  --hairline-2:rgba(255,255,255,.14);
  /* ink ramp */
  --ink:   var(--tg-theme-text-color, #f4f4f6);
  --ink-2: #a6abb8;
  --ink-3: #767c8a;
  /* semantic colour — ember is brand/primary ONLY */
  --ember:#ff7a5e; --jade:#43d9a3; --amber:#f5b94a; --iris:#a594f9;
  --t-ember:rgba(255,122,94,.14); --t-jade:rgba(67,217,163,.14);
  --t-amber:rgba(245,185,74,.14); --t-iris:rgba(165,148,249,.14);
  --on-ember:#2a0d06;
  /* radii — four steps, no more */
  --r-xl:28px; --r-lg:20px; --r-md:14px; --r-pill:999px;
  /* elevation — one ambient language */
  --e1:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  --e2:0 2px 6px rgba(0,0,0,.35), 0 26px 54px -22px rgba(0,0,0,.85);
  --e3:0 -12px 48px -16px rgba(0,0,0,.7);
  --sheen:rgba(255,255,255,.05);
  /* insets */
  --sat: max(env(safe-area-inset-top, 0px), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --sal: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px));
  --sar: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px));
  --guard: 6px;            /* clearance under the telegram header controls (JS sets data-host) */
  /* motion */
  --settle: cubic-bezier(.22,.9,.24,1);
  --arrive: cubic-bezier(.22,1.15,.32,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, "Helvetica Neue", sans-serif;
}
:root[data-host="tg"]{ --guard:26px; }
:root[data-scheme="light"]{
  --bg:#f7f5f3; --surface:#ffffff; --surface-2:#f1efec;
  --hairline:rgba(18,18,24,.09); --hairline-2:rgba(18,18,24,.16);
  --ink:#141419; --ink-2:#5a5e68; --ink-3:#868b95;
  --ember:#c8402a; --jade:#0b7a55; --amber:#96590a; --iris:#5645be;
  --t-ember:rgba(200,64,42,.09); --t-jade:rgba(11,122,85,.09);
  --t-amber:rgba(150,89,10,.10); --t-iris:rgba(86,69,190,.09);
  --on-ember:#fff;
  --e1:0 1px 2px rgba(20,20,25,.06), 0 8px 20px -12px rgba(20,20,25,.22);
  --e2:0 2px 6px rgba(20,20,25,.07), 0 26px 50px -24px rgba(20,20,25,.3);
  --e3:0 -12px 44px -18px rgba(20,20,25,.28);
  --sheen:rgba(18,18,24,.03);
}

/* ---------- 2. reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; margin:0; }
body{
  background:var(--bg); color:var(--ink); font-family:var(--font);
  font-size:15px; line-height:1.45; letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overscroll-behavior:none; overflow:hidden; -webkit-tap-highlight-color:transparent;
}
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; padding:0; }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
[hidden]{ display:none !important; }
::-webkit-scrollbar{ width:0; height:0; }
svg{ display:block; width:100%; height:100%; fill:none; stroke:currentColor;
  stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.ico{ display:block; width:20px; height:20px; flex:0 0 auto; }
.ico-sm{ width:14px; height:14px; stroke-width:2; }
.solid svg, .act-yes svg, .stamp-yes svg, .chip-yes svg{ fill:currentColor; stroke:none; }

/* shared media primitives — any box that can hold a photo */
.grad{ position:absolute; inset:0; }
.emoji{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  line-height:1; font-size:34px; }
.veil{ position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(to top, rgba(4,5,8,.92) 0%, rgba(4,5,8,.72) 22%, rgba(4,5,8,.18) 52%, rgba(4,5,8,0) 74%),
    linear-gradient(to bottom, rgba(4,5,8,.42) 0%, rgba(4,5,8,0) 26%); }

/* ---------- 3. shell + topbar ---------- */
#app{ position:fixed; inset:0; display:flex; flex-direction:column;
  padding-left:var(--sal); padding-right:var(--sar); }
#main{ position:relative; flex:1 1 auto; min-height:0; overflow:hidden; }
.view{ position:absolute; inset:0; display:flex; flex-direction:column; }
.scroller{ overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  padding:2px max(18px, calc((100% - 540px) / 2)) 28px; }

/* the entire header is pointer-events:none, so nothing tappable ever lands in
   Telegram's top drag-to-close strip — the deck itself starts well below 60px */
#topbar{ flex:0 0 auto; padding-top:calc(var(--sat) + var(--guard)); pointer-events:none; }
.top-inner{ display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; padding:10px 20px 12px; min-height:56px; }
.vtitle{ font-size:22px; font-weight:670; letter-spacing:-.032em; line-height:1.1; }
.vsub{ font-size:13px; color:var(--ink-3); margin-top:3px; letter-spacing:-.002em; }
.progress{ display:flex; align-items:center; gap:9px; height:20px; }
.progress .bar{ width:52px; height:3px; border-radius:var(--r-pill); background:var(--hairline-2); overflow:hidden; }
.progress .bar i{ display:block; height:100%; width:0; border-radius:inherit;
  background:var(--ember); transition:width .5s var(--settle); }
.pnum{ font-size:12.5px; color:var(--ink-3); font-variant-numeric:tabular-nums; white-space:nowrap; }
.progress.off{ opacity:0; }

/* ---------- 4. deck + card ---------- */
.deck-area{ flex:1 1 auto; min-height:0; position:relative; }
/* -34px keeps the two peeking back cards inside the deck area, clear of the actions */
.stack{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(calc(100% - 36px), 420px); height:min(calc(100% - 34px), 640px); }

.card{
  position:absolute; inset:0; display:flex; flex-direction:column; overflow:hidden;
  background:var(--surface); border-radius:var(--r-xl); border:1px solid var(--hairline);
  box-shadow:var(--e2); transform-origin:50% 140%; will-change:transform;
  touch-action:none; user-select:none; -webkit-user-select:none;
  transition:transform .44s var(--settle), box-shadow .4s ease;
}
.card[data-depth="0"]{ z-index:30; }
.card[data-depth="1"]{ z-index:20; transform:translate3d(0,14px,0) scale(.94); box-shadow:var(--e1); }
.card[data-depth="2"]{ z-index:10; transform:translate3d(0,26px,0) scale(.885); box-shadow:none; }
/* back cards are silhouettes, never a second readable card */
.card[data-depth]:not([data-depth="0"]) .cbody,
.card[data-depth]:not([data-depth="0"]) .lede,
.card[data-depth]:not([data-depth="0"]) .pips{ opacity:0; }
.card[data-depth]:not([data-depth="0"]) .media::after{
  content:""; position:absolute; inset:0; background:var(--bg); opacity:.5; }
.card.is-new{ animation:cardIn .52s var(--arrive); }
@keyframes cardIn{ from{ transform:translate3d(0,16px,0) scale(.94) } to{ transform:none } }
.card.is-gone{ z-index:60; pointer-events:none; }

/* media — the image is absolute, so a photo landing can never reflow the card */
.media{ position:relative; flex:1 1 auto; min-height:46%; overflow:hidden; background:var(--surface-2); }
.media img, .hero img, .m-card img, .row-thumb img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .45s ease; }
.media img.in, .hero img.in, .m-card img.in, .row-thumb img.in{ opacity:1; }
.media > .emoji{ font-size:clamp(54px,16vw,80px); padding-bottom:14%;
  filter:drop-shadow(0 10px 22px rgba(0,0,0,.4)); }
.hero > .emoji{ font-size:56px; }
.m-card > .emoji{ font-size:64px; }
.tint{ position:absolute; inset:0; opacity:0; pointer-events:none; }
.tint-yes{ background:linear-gradient(to left, rgba(67,217,163,.42), rgba(67,217,163,0) 62%); }
.tint-no{ background:linear-gradient(to right, rgba(255,255,255,.16), rgba(255,255,255,0) 62%); }

.pips{ position:absolute; top:14px; left:14px; right:14px; display:flex; gap:6px; flex-wrap:wrap; }
.pip{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600;
  letter-spacing:.005em; padding:5px 10px 5px 8px; border-radius:var(--r-pill); color:#fff;
  background:rgba(10,11,15,.5); border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.pip-solo{ color:#e4dcff; }
.pip-warn{ color:#ffd9a0; }

.lede{ position:absolute; left:0; right:0; bottom:0; padding:0 20px 16px; }
.kicker{ font-size:12.5px; font-weight:640; letter-spacing:.045em; text-transform:uppercase;
  color:rgba(255,255,255,.78); margin-bottom:6px; }
.ctitle{ margin:0; font-size:clamp(23px,6.2vw,29px); font-weight:680; letter-spacing:-.035em;
  line-height:1.1; color:#fff; text-shadow:0 2px 18px rgba(0,0,0,.45);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* body */
.cbody{ flex:0 0 auto; padding:15px 20px 17px; display:flex; flex-direction:column; gap:11px; }
.quote{ margin:0; font-size:14.5px; line-height:1.48; color:var(--ink-2);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.cmeta{ display:flex; flex-wrap:wrap; gap:6px 7px; }
.mi{ display:inline-flex; align-items:center; gap:5px; max-width:100%;
  font-size:12.5px; font-weight:560; color:var(--ink-2);
  background:var(--surface-2); border:1px solid var(--hairline);
  padding:4px 10px 4px 8px; border-radius:var(--r-pill); }
.mi span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mi .ico{ color:var(--ink-3); }
.more{ display:flex; align-items:center; gap:4px; margin-top:-2px;
  font-size:12.5px; font-weight:620; color:var(--ink-3); letter-spacing:-.005em; }

/* drag stamps — soft pills, not rubber stamps */
.stamp{ position:absolute; top:64px; z-index:4; opacity:0; transform:scale(.8);
  display:inline-flex; align-items:center; gap:6px; padding:9px 15px 9px 12px;
  border-radius:var(--r-pill); font-size:14px; font-weight:680; letter-spacing:-.01em;
  color:#08110d; background:var(--jade); box-shadow:0 10px 30px -8px rgba(0,0,0,.6); }
.stamp-yes{ left:18px; }
.stamp-no{ right:18px; color:#fff; background:rgba(20,21,27,.86); border:1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }

/* ---------- 5. actions + dock ---------- */
.actions{ position:relative; z-index:2; flex:0 0 auto; display:flex; align-items:center;
  justify-content:center; gap:10px; padding:12px 18px 4px; max-width:520px; margin:0 auto; width:100%; }
.act{ flex:1 1 0; max-width:104px; height:58px; display:flex; align-items:center; justify-content:center;
  border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--hairline);
  box-shadow:var(--e1); color:var(--ink-2);
  transition:transform .2s var(--arrive), opacity .2s ease, background .2s ease; }
.act .ico{ width:23px; height:23px; }
.act:active{ transform:scale(.93); }
.act-pass{ color:var(--ink); }
.act-maybe{ color:var(--amber); }
.act-undo{ color:var(--ink-3); }
.act-undo .ico{ width:20px; height:20px; }
.act-yes{ background:var(--ember); border-color:transparent; color:var(--on-ember);
  box-shadow:0 10px 30px -10px var(--ember), var(--e1); }
.act-yes .ico{ fill:currentColor; stroke:none; }
.act[disabled]{ opacity:.3; pointer-events:none; box-shadow:none; }

.dock{ flex:0 0 auto; display:flex; gap:2px; padding:6px 14px calc(var(--sab) + 6px);
  background:var(--bg); border-top:1px solid var(--hairline); }
.tab{ position:relative; flex:1 1 0; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:3px; min-height:50px; padding:6px 2px; border-radius:var(--r-md);
  color:var(--ink-3); transition:color .22s ease; }
.tab .ico{ width:22px; height:22px; }
.tab .lab{ font-size:10.5px; font-weight:620; letter-spacing:.01em; }
.tab.on{ color:var(--ink); }
.tab.on .ico{ color:var(--ember); }
.tab .dot{ position:absolute; top:6px; left:calc(50% + 8px); min-width:16px; height:16px;
  padding:0 4px; border-radius:var(--r-pill); background:var(--ember); color:var(--on-ember);
  font-size:10px; font-weight:750; line-height:16px; text-align:center;
  font-variant-numeric:tabular-nums; }

/* ---------- 6. sheet ---------- */
.sheet-layer{ position:fixed; inset:0; z-index:150; }
.sheet-scrim{ position:absolute; inset:0; background:rgba(3,4,7,.62);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  opacity:0; transition:opacity .3s ease; }
:root[data-scheme="light"] .sheet-scrim{ background:rgba(26,26,32,.34); }
.sheet-layer.open .sheet-scrim{ opacity:1; }
.sheet{ position:absolute; left:50%; bottom:0; width:min(100%,560px); height:92%;
  display:flex; flex-direction:column; background:var(--surface);
  border-radius:var(--r-xl) var(--r-xl) 0 0; box-shadow:var(--e3);
  transform:translate(-50%,101%); transition:transform .42s var(--settle); }
.sheet-layer.open .sheet{ transform:translate(-50%,0); }
.sheet-scroll{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain;
  border-radius:var(--r-xl) var(--r-xl) 0 0; }
.sheet-x{ position:absolute; top:14px; right:14px; z-index:3; width:44px; height:44px;
  display:flex; align-items:center; justify-content:center; border-radius:var(--r-pill);
  color:#fff; background:rgba(10,11,15,.5); border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.hero{ position:relative; height:210px; min-height:0; flex:none; overflow:hidden; }
.hero .lede{ padding:0 22px 18px; }
.sheet-body{ padding:18px 22px 26px; display:flex; flex-direction:column; gap:18px; }
.facts{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.facts li{ display:flex; align-items:flex-start; gap:12px; font-size:15px; line-height:1.4; }
.facts .ico{ color:var(--ink-3); margin-top:1px; }
.facts b{ font-weight:560; }
.facts em{ display:block; font-style:normal; font-size:12.5px; color:var(--ink-3); margin-top:1px; }
.pull{ margin:0; padding:16px 18px; border-radius:var(--r-md); background:var(--surface-2);
  font-size:15px; line-height:1.5; color:var(--ink); }
.desc{ margin:0; font-size:15px; line-height:1.62; color:var(--ink-2); white-space:pre-wrap; }
.tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tag{ font-size:11.5px; font-weight:560; color:var(--ink-3); background:var(--surface-2);
  border:1px solid var(--hairline); padding:5px 11px; border-radius:var(--r-pill); }
.srcwrap{ display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.srclink{ display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:0 18px 0 16px;
  border-radius:var(--r-pill); background:var(--surface-2); border:1px solid var(--hairline);
  font-size:14.5px; font-weight:620; color:var(--ink); }
.srcnote{ margin:0; font-size:12px; color:var(--ink-3); }
.sheet-foot{ flex:0 0 auto; padding:12px 18px calc(var(--sab) + 14px);
  border-top:1px solid var(--hairline); background:var(--surface); }
.vrow{ display:flex; gap:9px; }
.vbtn{ flex:1 1 0; min-height:54px; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:3px; border-radius:var(--r-md); background:var(--surface-2);
  border:1px solid transparent; color:var(--ink-2); font-size:11px; font-weight:620;
  transition:transform .2s var(--arrive); }
.vbtn:active{ transform:scale(.95); }
.vbtn.on{ color:var(--ink); border-color:currentColor; }
.vbtn.on.v-yes{ background:var(--t-jade); color:var(--jade); }
.vbtn.on.v-maybe{ background:var(--t-amber); color:var(--amber); }
.vbtn.on.v-no{ background:var(--surface-2); color:var(--ink); border-color:var(--hairline-2); }
.vbtn .ico{ width:21px; height:21px; }
.vhint{ margin:10px 0 0; font-size:12px; color:var(--ink-3); text-align:center; }

/* ---------- 7. lists ---------- */
.lead{ padding:14px 2px 4px; }
.lead h2{ margin:0; font-size:21px; font-weight:670; letter-spacing:-.032em; }
.lead p{ margin:6px 0 0; font-size:13.5px; line-height:1.5; color:var(--ink-3); max-width:34ch; }
.sec-head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  margin:22px 2px 10px; font-size:13.5px; font-weight:640; letter-spacing:-.012em; color:var(--ink); }
.sec-head span:last-child{ font-size:12.5px; font-weight:560; color:var(--ink-3);
  font-variant-numeric:tabular-nums; }
.sec-head:first-child{ margin-top:8px; }
.row{ display:flex; gap:13px; align-items:center; width:100%; text-align:left;
  padding:11px; margin-bottom:9px; border-radius:var(--r-lg); background:var(--surface);
  border:1px solid var(--hairline); box-shadow:var(--e1);
  transition:transform .2s var(--settle); }
.row:active{ transform:scale(.98); }
.row-thumb{ position:relative; flex:0 0 64px; width:64px; height:64px; border-radius:var(--r-md);
  overflow:hidden; background:var(--surface-2); }
.row-thumb > .emoji{ font-size:26px; }
.row-main{ flex:1 1 auto; min-width:0; }
.sk-stack{ display:flex; flex-direction:column; gap:9px; }
.row-title{ font-size:15.5px; font-weight:640; letter-spacing:-.018em; line-height:1.28;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.row-meta{ margin-top:3px; font-size:12.5px; color:var(--ink-3);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row-chips{ display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.chip{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:620;
  padding:4px 9px; border-radius:var(--r-pill); background:var(--surface-2); color:var(--ink-3); }
.chip-yes{ background:var(--t-jade); color:var(--jade); }
.chip-maybe{ background:var(--t-amber); color:var(--amber); }
.chip-solo{ background:var(--t-iris); color:var(--iris); }
.chip-warm{ background:var(--t-amber); color:var(--amber); }
.chip-now{ background:var(--ember); color:var(--on-ember); }
.chip-soon{ background:var(--t-ember); color:var(--ember); }
.chip-went{ background:var(--t-jade); color:var(--jade); }
.line-note{ margin:16px 2px 4px; font-size:13px; color:var(--ink-3); text-align:center; }

/* ---------- 8. empty / done ---------- */
.done{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center;
  justify-content:center; text-align:center; padding:24px 30px; }
.empty{ min-height:62%; display:flex; flex-direction:column; align-items:center;
  justify-content:center; text-align:center; padding:40px 26px; }
.mark{ width:56px; height:56px; display:flex; align-items:center; justify-content:center;
  border-radius:var(--r-lg); background:var(--surface-2); color:var(--ember); margin-bottom:16px; }
.mark .ico{ width:26px; height:26px; }
.mark.jade{ color:var(--jade); }
.done h1,.empty h1{ margin:0; font-size:clamp(26px,7vw,32px); font-weight:690; letter-spacing:-.035em; }
.empty h1{ font-size:21px; letter-spacing:-.028em; }
.done p,.empty p{ margin:9px 0 0; color:var(--ink-3); font-size:14.5px; line-height:1.5; max-width:30ch; }
.done .tally{ color:var(--ink-2); }
.done .matchline{ margin-top:14px; display:inline-flex; align-items:center; gap:7px;
  padding:7px 14px; border-radius:var(--r-pill); background:var(--t-jade); color:var(--jade);
  font-size:13.5px; font-weight:640; }
.done .foot{ margin-top:20px; font-size:12.5px; color:var(--ink-3); opacity:.8; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:54px;
  padding:0 26px; border-radius:var(--r-pill); font-size:15.5px; font-weight:650;
  letter-spacing:-.012em; background:var(--ember); color:var(--on-ember);
  box-shadow:0 14px 34px -12px var(--ember); transition:transform .2s var(--arrive); }
.btn:active{ transform:scale(.96); }
.btn.quiet{ background:transparent; color:var(--ink-2); box-shadow:none; }
.done .btn,.empty .btn{ margin-top:20px; }

/* ---------- 9. toast ---------- */
/* rides just under the header — a bottom toast would sit on top of the card, and
   the header already pushes this clear of Telegram's 60px drag strip */
.toast{ position:fixed; left:50%; top:calc(var(--sat) + var(--guard) + 68px); z-index:170;
  transform:translate(-50%,-12px) scale(.96); opacity:0; pointer-events:none;
  display:flex; align-items:center; gap:12px; max-width:min(90vw,400px);
  padding:11px 8px 11px 15px; border-radius:var(--r-pill);
  background:rgba(22,23,29,.92); color:#f4f4f6; border:1px solid rgba(255,255,255,.1);
  box-shadow:var(--e2); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  font-size:13.5px; font-weight:560;
  transition:opacity .26s ease, transform .38s var(--arrive); }
:root[data-scheme="light"] .toast{ background:rgba(28,28,34,.94); }
.toast.show{ opacity:1; transform:translate(-50%,0) scale(1); }
.toast .msg{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.toast .ico{ width:16px; height:16px; flex:0 0 auto; }
.toast button{ flex:0 0 auto; min-height:34px; padding:0 15px; border-radius:var(--r-pill);
  background:rgba(255,255,255,.12); color:#fff; font-size:13px; font-weight:650; }
.toast.act-on{ pointer-events:auto; }

/* ---------- 10. match moment ---------- */
.match-layer{ position:fixed; inset:0; z-index:200; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:calc(var(--sat) + 40px) 30px calc(var(--sab) + 30px);
  background:var(--bg); opacity:0; transition:opacity .34s ease; }
.match-layer.show{ opacity:1; }
.m-bg{ position:absolute; inset:-12%; background-size:cover; background-position:center;
  filter:blur(46px) saturate(1.35); opacity:.5; transform:scale(1.15); }
.m-bg::after{ content:""; position:absolute; inset:0;
  background:radial-gradient(72% 52% at 50% 40%, rgba(0,0,0,.15), var(--bg) 88%); }
:root[data-scheme="light"] .m-bg{ opacity:.42; }
.m-bloom{ position:absolute; left:50%; top:38%; width:120vw; height:120vw;
  transform:translate(-50%,-50%) scale(.2); opacity:0; pointer-events:none;
  background:radial-gradient(circle, var(--t-ember) 0%, rgba(255,122,94,0) 62%); }
.m-wrap{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; }
.m-eyebrow{ font-size:12.5px; font-weight:660; letter-spacing:.13em; text-transform:uppercase;
  color:var(--ink-3); margin-bottom:18px; }
.m-card{ position:relative; width:min(58vw,216px); aspect-ratio:4/5; border-radius:var(--r-xl);
  overflow:hidden; background:var(--surface-2); box-shadow:0 34px 70px -22px rgba(0,0,0,.7); }
.match-layer h1{ margin:22px 0 0; font-size:clamp(30px,8.4vw,38px); font-weight:720; letter-spacing:-.04em; }
.m-title{ margin:10px 0 0; font-size:17px; font-weight:600; letter-spacing:-.02em; max-width:26ch; }
.m-when{ margin:5px 0 0; color:var(--ink-3); font-size:14px; }
.match-layer .btn{ margin-top:26px; }
.m-cta{ margin:14px 0 0; font-size:13.5px; color:var(--ink-3); max-width:30ch; }
.spark{ position:fixed; inset:0; z-index:201; pointer-events:none; overflow:hidden; }
.spark i{ position:absolute; display:block; border-radius:var(--r-pill); will-change:transform; }

/* ---------- 11. boot / gate ---------- */
.boot{ position:fixed; inset:0; z-index:300; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:26px; background:var(--bg); padding:0 26px; }
.boot-card{ width:min(84vw,340px); aspect-ratio:3/4; border-radius:var(--r-xl); overflow:hidden;
  background:var(--surface); border:1px solid var(--hairline); box-shadow:var(--e2);
  display:flex; flex-direction:column; }
.sk{ position:relative; overflow:hidden; background:var(--surface-2); }
.sk::after{ content:""; position:absolute; inset:0; transform:translateX(-100%);
  background:linear-gradient(90deg, transparent, var(--sheen), transparent);
  animation:shimmer 1.5s infinite; }
.sk-media{ flex:1 1 auto; }
.boot-lines{ flex:0 0 auto; padding:18px 20px 24px; display:flex; flex-direction:column; gap:10px; }
.sk-line{ height:13px; border-radius:var(--r-pill); }
.w70{ width:70%; } .w40{ width:40%; }
@keyframes shimmer{ to{ transform:translateX(100%) } }
.boot-word{ font-size:13px; font-weight:640; letter-spacing:.22em; text-transform:uppercase;
  color:var(--ink-3); }
.gate{ position:fixed; inset:0; z-index:290; display:flex; flex-direction:column; align-items:center;
  justify-content:center; text-align:center; padding:40px 34px; background:var(--bg); }
.gate h1{ margin:0; font-size:25px; font-weight:680; letter-spacing:-.032em; }
.gate p{ margin:10px 0 0; color:var(--ink-3); font-size:14.5px; max-width:30ch; line-height:1.55; }

/* ---------- 12. motion / responsive ---------- */
.stagger{ animation:riseIn .46s var(--settle) both; }
@keyframes riseIn{ from{ opacity:0; transform:translateY(12px) } to{ opacity:1; transform:none } }
@media (max-height: 680px){
  .cbody{ padding:12px 18px 14px; gap:9px; }
  .quote{ -webkit-line-clamp:2; }
  .more{ display:none; }
  .act{ height:52px; }
  .top-inner{ min-height:48px; padding-bottom:8px; }
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important; }
  .media img,.row-thumb img,.m-card img{ opacity:1 !important; }
  .sk::after{ display:none; }
}
