/* v8 «Дроп для фанатів»: общее — темы, типографика, компоненты.
   Композиция телефона — v8-m.css ([data-layout="m"]), компьютера — v8-d.css. */

:root {
  --bg: #fbf2e8;
  --bg2: #f5e4d3;
  --ink: #2a1c16;
  --muted: #6d5649;
  --card: #fffaf4;
  --line: rgba(42, 28, 22, .13);
  --acc: #d9542b;
  --acc-ink: #fff;
  --honey: #e8a23f;
  --rose: #c94d6d;
  --ok: #2f7d4f;
  --bad: #b3261e;
  --shadow: 0 18px 50px -24px rgba(80, 36, 16, .45);
  --r: 20px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #170f0c;
    --bg2: #22160f;
    --ink: #f8ebdf;
    --muted: #c8ae9b;
    --card: #241812;
    --line: rgba(248, 235, 223, .14);
    --acc: #ff7a4d;
    --acc-ink: #1f120b;
    --honey: #f2b54b;
    --rose: #ff8fae;
    --ok: #7bd39b;
    --bad: #ff8a80;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans);
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }

/* ---------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; line-height: 1.15; text-align: center; transition: transform .15s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.cta { background: var(--acc); color: var(--acc-ink); box-shadow: 0 10px 26px -12px var(--acc); }
.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- верхняя строка */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand-w { font: 800 22px/1 var(--display); letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--honey), var(--acc) 55%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 2px 2px 3px 0; }
.brand-by { font-size: 13px; color: var(--muted); font-weight: 600; }
.ad-chip {
  font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px;
  background: var(--ink); color: var(--bg); white-space: nowrap;
}
.lang { font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px 8px; min-width: 40px; text-align: center; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cart-n { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font-size: 12px; line-height: 20px; text-align: center; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cart-btn.has .cart-n { transform: scale(1); }
.cart-btn.gulp { animation: gulp .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes gulp { 30% { transform: scale(1.22, .86); } 60% { transform: scale(.92, 1.1); } }

/* ---------- обложка */
.hero { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--honey) 32%, transparent), transparent 60%),
              radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--rose) 22%, transparent), transparent 60%), var(--bg); }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.embers i { position: absolute; bottom: -20px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #ffd08a, rgba(255, 140, 70, 0) 70%); opacity: 0; animation: ember 9s linear infinite; }
.embers i:nth-child(1) { left: 8%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 22%; animation-delay: 2.1s; width: 14px; height: 14px; }
.embers i:nth-child(3) { left: 37%; animation-delay: 4.3s; }
.embers i:nth-child(4) { left: 51%; animation-delay: 1.2s; width: 7px; height: 7px; }
.embers i:nth-child(5) { left: 64%; animation-delay: 5.6s; width: 16px; height: 16px; }
.embers i:nth-child(6) { left: 76%; animation-delay: 3.1s; }
.embers i:nth-child(7) { left: 88%; animation-delay: 6.8s; width: 12px; height: 12px; }
.embers i:nth-child(8) { left: 95%; animation-delay: 7.7s; width: 6px; height: 6px; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(30px, -110vh); opacity: 0; } }

.glow-word { position: absolute; z-index: -1; pointer-events: none; width: min(120%, 1100px); opacity: .9; }
.glow-word text { font: 900 190px/1 var(--display); letter-spacing: -.04em; fill: url(#gw); fill-opacity: 0; stroke: url(#gw); stroke-width: 1.6;
  stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s .2s ease forwards, fillin 1.6s 1.9s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: .2; } }

.persona { display: flex; align-items: center; gap: 12px; }
.ava { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 0deg, var(--honey), var(--acc), var(--rose), var(--honey)); animation: spin 8s linear infinite; }
.ava i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg);
  background: radial-gradient(circle at 30% 30%, #ffd7a8, #c4613d); color: #fff; font: 800 22px/1 var(--display); font-style: normal; animation: spin 8s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-name { font-weight: 800; font-size: 17px; }
.p-handle { color: var(--muted); font-size: 14px; }
.demo-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--honey); color: #2a1c16; vertical-align: 2px; }
.ad-line { margin-top: 14px; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 14px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--card) 80%, transparent); box-shadow: inset 0 0 0 1.5px var(--line); }
.ad-line b { font-weight: 900; }
.kicker { margin-top: 16px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.kin { margin-top: 8px; font-weight: 900; letter-spacing: -.035em; line-height: 1.02; }
.kin .w { display: inline-block; overflow: hidden; clip-path: inset(-0.12em -0.18em -0.2em -0.12em); vertical-align: top; padding-bottom: .06em; }
.kin .wi { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2, .9, .2, 1) forwards; animation-delay: calc(.25s + var(--i) * .14s); }
@keyframes rise { to { transform: none; } }
.story { margin-top: 16px; font-size: 17px; max-width: 34em; }
.sig { font-style: italic; color: var(--muted); white-space: nowrap; }
.demo-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* отсчёт */
.clock-l { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.clock-d { display: flex; gap: 8px; margin-top: 6px; }
.clock .u { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 10px 4px 8px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.clock .u b { font: 800 32px/1 var(--display); font-variant-numeric: tabular-nums; display: inline-block; }
.clock .u b.tick { animation: tick .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes tick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.clock .u small { font-size: 12px; color: var(--muted); font-weight: 600; }
.is-closed .clock .u b { color: var(--muted); }

/* счётчик партии: воск наливается, волна гуляет */
.meter { margin-top: 18px; }
.m-track { position: relative; height: 26px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15); }
.m-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--k, 0) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--honey), var(--acc) 70%, var(--rose)); transition: width 1.2s cubic-bezier(.2, .9, .2, 1); overflow: hidden; }
.m-wave { max-width: none; position: absolute; top: -4px; left: 0; width: 200%; height: 12px; fill: rgba(255, 255, 255, .35); animation: wave 2.6s linear infinite; }
@keyframes wave { to { transform: translateX(-50%); } }
.m-goal { position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--ink); opacity: .35; }
.meter.full .m-fill { box-shadow: 0 0 22px var(--honey); }
.m-nums { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.m-count { font: 900 40px/1 var(--display); font-variant-numeric: tabular-nums; display: inline-block; }
.m-count.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.18); color: var(--acc); } }
.m-of { color: var(--muted); font-weight: 700; }
.m-left { font: 800 19px/1.25 var(--display); margin-top: 2px; }
.refund { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; }
.refund svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; margin-top: 1px; }
.refund.done { color: var(--ok); }

/* ---------- секции */
.sec { padding: 48px 16px; }
.sec h2, .sec-h h2 { font-size: clamp(26px, 6vw, 40px); font-weight: 900; }
.sec-lead, .sec-h p { margin-top: 8px; color: var(--muted); max-width: 40em; }

/* ---------- сцена */
.stage { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 50% 30%, var(--bg2), var(--bg)); }
.stage.on-dark { background: radial-gradient(80% 70% at 50% 35%, #3b2820, #120b09 75%); color: #f8ebdf; }
.stage.on-light { background: radial-gradient(80% 70% at 50% 35%, #fffaf3, #efe0cf 80%); color: #2a1c16; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 100%, color-mix(in srgb, var(--c, #ff8a5c) 30%, transparent), transparent); }
.st-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.st-thumb { position: absolute; inset: 8% 10%; width: 80%; height: 84%; object-fit: contain; z-index: 2; transition: opacity .5s; pointer-events: none; }
.st-thumb.gone { opacity: 0; }
.st-thumb.missing { display: none; }
.stage.loading .st-thumb { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.st-pill { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 14px; max-width: calc(100% - 120px);
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: clip;
  background: rgba(20, 12, 9, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.st-prev, .st-next { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; cursor: pointer;
  background: rgba(20, 12, 9, .35); color: #fff; display: grid; place-items: center; }
.st-prev { left: 0; border-radius: 0 16px 16px 0; }
.st-next { right: 0; border-radius: 16px 0 0 16px; }
.st-prev svg, .st-next svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.st-hint { position: absolute; z-index: 3; top: 30px; left: 50%; transform: translateX(-50%); font-size: 13px; opacity: .75; pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.stage.touched .st-hint { opacity: 0; }
.st-bars { position: absolute; z-index: 4; top: 10px; left: 12px; right: 12px; display: flex; gap: 5px; pointer-events: none; }
.st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.st-bars i.seen::after, .st-bars i.on::after { content: ""; position: absolute; inset: 0; background: #fff; }
.st-bars.run i.on::after { animation: bar 8s linear; transform-origin: left; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.attr { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 52px; font-size: 10px; line-height: 1.3; opacity: .7; text-align: center; pointer-events: none; }
.no-webgl .st-hint { display: none; }

/* ---------- карточки */
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); position: relative; }
.card::before { content: ""; position: absolute; left: 18px; top: 0; width: 46px; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.c-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.c-idx { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.c-price { font: 900 22px/1 var(--display); }
.c-name { margin-top: 6px; font-size: 24px; font-weight: 900; }
.c-line { margin-top: 6px; color: var(--muted); }
.c-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; font-weight: 700; }
.c-limit { padding: 3px 9px; border-radius: 8px; background: color-mix(in srgb, var(--honey) 28%, transparent); }
.c-limit.hit { background: color-mix(in srgb, var(--acc) 25%, transparent); }
.c-ord { color: var(--muted); padding: 3px 0; }
.c-field { display: block; margin-top: 14px; }
.c-field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.c-field input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 18px; font-weight: 700; }
.c-field input:focus { border-color: var(--acc); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.c-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.c-chk { margin-top: 12px; font-size: 14px; min-height: 22px; }
.chk-wait { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--acc); animation: spin .8s linear infinite; flex: none; }
.chk-h { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.s-bad .chk-h { color: var(--bad); }
.chk-p { margin: 6px 0 0; padding-left: 18px; color: var(--bad); }
.chk-down { color: var(--muted); }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.facts li { position: relative; padding-left: 20px; }
.facts li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.facts .f-ok::before { background: var(--ok); width: 9px; height: 9px; left: 3px; top: .5em; }
.facts .f-wait::before { background: var(--honey); }
.facts .f-adv { color: var(--muted); font-size: 13px; }
.c-btns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.c-buy { flex: 1 1 180px; }
.c-buy.is-limit { background: var(--muted); box-shadow: none; }
.c-pay { margin-top: 10px; font-size: 12px; color: var(--muted); }
.c-ad { color: var(--ink); }

/* ---------- лента заказов */
.feed-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.fd { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.fd-dot { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); }
.fd-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.fd-what { min-width: 0; }
.fd-t { color: var(--muted); font-size: 13px; white-space: nowrap; }
.fd.you { box-shadow: inset 0 0 0 2px var(--acc); }
.fd.fresh { animation: slidein .7s cubic-bezier(.2, .9, .2, 1); }
@keyframes slidein { from { transform: translateY(-14px) scale(.97); opacity: 0; background: color-mix(in srgb, var(--honey) 30%, var(--card)); } }

/* ---------- таймлайн */
.tl { list-style: none; margin: 22px 0 0; padding: 0; position: relative; max-width: 640px; }
.tl-i { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 22px; }
.tl-i::before { content: ""; position: absolute; left: 13px; top: 24px; bottom: -2px; width: 2px; background: var(--line); }
.tl-i:last-child::before { display: none; }
.tl-i.done::before { background: var(--ok); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); position: relative; z-index: 1; }
.tl-i.done .tl-dot { background: var(--ok); border-color: var(--ok); }
.tl-i.done .tl-dot::after { content: ""; position: absolute; left: 8px; top: 4px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tl-i.now .tl-dot { border-color: var(--acc); background: var(--acc); box-shadow: 0 0 0 0 var(--acc); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.tl-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tl-t b { font-size: 17px; }
.tl-st { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; background: var(--line); }
.tl-i.now .tl-st { background: var(--acc); color: var(--acc-ink); }
.tl-i.done .tl-st { background: color-mix(in srgb, var(--ok) 22%, transparent); }
.tl-s { color: var(--muted); font-size: 15px; margin-top: 2px; }
.tl-d { font-size: 13px; margin-top: 2px; font-weight: 600; }

/* ---------- новости блогера — отдельная галочка */
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; font-weight: 700; font-size: 17px; max-width: 640px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--muted); position: relative; transition: background .2s, border-color .2s; }
.check input:checked + .box { background: var(--acc); border-color: var(--acc); }
.check input:checked + .box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid var(--acc-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.check input:focus-visible + .box { outline: 3px solid var(--honey); outline-offset: 2px; }
.news-note { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 640px; }
.news-state { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ok); min-height: 1.5em; }

/* ---------- вопросы */
.faq-list { margin-top: 16px; display: grid; gap: 8px; max-width: 720px; }
.fq { background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.fq summary { cursor: pointer; padding: 14px 16px; font-weight: 800; list-style: none; min-height: 48px; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary::after { content: "+"; float: right; font-weight: 900; color: var(--acc); }
.fq[open] summary::after { content: "–"; }
.fq p { padding: 0 16px 14px; color: var(--muted); }

/* ---------- подвал */
.foot { padding: 32px 16px 120px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; gap: 10px; }
.foot-ad b { color: var(--ink); }
.states { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.states a { padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.states a[aria-current] { background: var(--ink); color: var(--bg); }

/* ---------- лист «добавлено», ролик, тост, эффекты */
.sheet { position: fixed; z-index: 40; left: 50%; bottom: 0; width: min(100%, 520px); transform: translate(-50%, 110%); transition: transform .35s cubic-bezier(.2, .9, .2, 1);
  background: var(--card); border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5); }
.sheet.on { transform: translate(-50%, 0); }
.sh-drip { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); margin-bottom: 10px; box-shadow: 0 6px 18px -6px var(--c); }
.sh-h { font: 900 22px/1.2 var(--display); }
.sh-line { margin-top: 4px; color: var(--muted); padding-right: 30px; }
.sh-btns { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.sh-btns .btn { flex: 1 1 140px; }
.sh-x, .clip-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: inherit; }
.sh-x svg, .clip-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.clip-dlg { padding: 0; border: 0; border-radius: 22px; background: #000; color: #fff; width: min(92vw, 560px); overflow: hidden; }
.clip-dlg::backdrop { background: rgba(10, 6, 4, .75); backdrop-filter: blur(4px); }
.clip-dlg video { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.clip-x { background: rgba(0, 0, 0, .45); }
.toast { position: fixed; z-index: 45; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .3s;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.drip, .plop { position: fixed; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .8), var(--c) 45%); box-shadow: 0 6px 18px -4px var(--c); }
.drip { transform: translate(-50%, -50%); rotate: -45deg; }
.plop { width: 16px; height: 16px; rotate: -45deg; }
.splash { position: fixed; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fatal { padding: 40px 16px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .embers { display: none; }
  .kin .wi { transform: none; }
  .glow-word text { stroke-dashoffset: 0; fill-opacity: .2; }
}
