/* Приложение покупателя — «Станция метро» (макет Claude Design, файл Metro Shop):
   бетонно-тёмный фон, у каждого раздела свой цвет линии (сопроводы — оранжевый,
   предметы — бирюзовый, конструктор — жёлтый), цены крупно, как номер на табло.
   Шрифты: Manrope 800 — цены и заголовки, Inter — текст (лежат у нас, fonts.css). */

:root {
  --bg: #1e2022;
  --panel: #292c2f;
  --panel-2: #34383c;
  --text: #f3f2ef;
  --muted: #a8abaf;
  --dim: #7c8085;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .18);
  --escort: #ff7f45;
  --item: #5cd3c4;
  --custom: #f3c94a;
  --ok: #5ec47a;
  --err: #ef5f5f;
  --blue: #5aa4ff;
  --warn: #ffb03b;
  --ink: #1a1208;
  --c: var(--escort);              /* цвет текущей линии — переопределяется по месту */
  --display: 'Manrope', 'Inter', system-ui, sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  --pad: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.4 var(--body); min-height: 100vh; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
input::placeholder, textarea::placeholder { color: var(--dim); }
h1, h2, h3, p { margin: 0; }
b { font-weight: 600; }
.num, .price, .sum, .from, .big-sum, .kpis b, .step input, .qty span { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }

#root { max-width: 560px; margin: 0 auto; padding: 14px var(--pad) calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }

/* ---------- шапка ---------- */

.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .06em; white-space: nowrap; }
/* каталог: марка ровно по центру между «Назад» и аватаркой */
.top .brand.c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
/* главная: подпись игры над маркой */
.top .mark { flex: 1; min-width: 0; }
.top .mark small { display: block; font-size: 11px; color: var(--escort); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.top .mark .brand { display: block; font-size: 26px; letter-spacing: .04em; line-height: 1.1; }
.top .mark + .face-btn .face { width: 38px; height: 38px; }
.top h1 { flex: 1; min-width: 0; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top h1 small { margin-left: 8px; font: 600 14px var(--body); color: var(--dim); }
.back { height: 40px; padding: 0 10px 0 4px; color: var(--blue); font-size: 15px; display: flex; align-items: center; gap: 2px; }
.back i { font-style: normal; font-size: 22px; line-height: 1; }
.face-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex: none; }
.face { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 16px; object-fit: cover; }
img.face { display: block; }

/* ---------- линии-разделы ---------- */

.lines { display: flex; gap: 6px; }
.lines button { flex: 1; min-width: 0; height: 46px; padding: 0 4px; border-radius: 8px 8px 3px 3px; border-bottom: 3px solid rgba(255, 255, 255, .08);
  color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
@media (min-width: 400px) { .lines button { gap: 8px; font-size: 14px; } }
.lines button svg { width: 18px; height: 18px; display: block; flex: none; }
.lines button.on { background: var(--panel); color: var(--text); border-bottom-color: var(--c); }
.lines button.on svg { color: var(--c); }

.notice { padding: 12px 14px; border-radius: 10px; background: #2a2620; border: 1px solid rgba(255, 176, 59, .35); color: var(--warn);
  font-size: 13px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.notice::before { content: '●'; font-weight: 700; }

/* ---------- главная: плитки разделов и приглашение в конструктор ---------- */

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.htile { text-align: left; border: 1px solid var(--line); border-bottom: 3px solid var(--c); border-radius: 16px; background: var(--panel);
  padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 14px; min-height: 128px; }
.htile:active { border-color: var(--c); }
.htile .ibox { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--c); display: flex; align-items: center; justify-content: center; }
.htile svg { display: block; }
.htile b { display: block; font-weight: 700; font-size: 16px; }
.htile small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.promo { width: 100%; text-align: left; border-radius: 16px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.promo .stripe { display: block; height: 6px; width: 100%; background: repeating-linear-gradient(-45deg, var(--custom) 0 10px, var(--bg) 10px 20px); }
.promo .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.promo .eyebrow { font-size: 11px; color: var(--custom); font-weight: 600; letter-spacing: .1em; }
.promo b { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.2; }
.promo .text { font-size: 13px; color: var(--muted); }
.promo .steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.chip { padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }
@media (min-width: 400px) { .promo .steps { gap: 8px; } .chip { padding: 4px 10px; } }
.chip.on { background: var(--custom); border-color: var(--custom); color: var(--ink); font-weight: 600; }

/* ---------- каталог: карточка на каждый вариант ---------- */

.cards { display: flex; flex-direction: column; gap: 12px; }
.pcard { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px;
  display: flex; gap: 12px; align-items: stretch; }
.pcard.escort { flex-direction: column; }
.pcard:active { border-color: var(--c); }
.pcard .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pcard .title { font-weight: 700; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .spec { font-size: 13px; color: var(--c); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .brief { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .price { margin-top: auto; padding-top: 8px; font-size: 20px; }
.pcard .pic { flex: none; width: 104px; aspect-ratio: 1 / 1; border-radius: 10px; object-fit: cover; display: block; background: var(--bg); }
.pcard.escort .pic { width: 100%; aspect-ratio: 16 / 9; }
/* Вырезка — предмет на прозрачном фоне (класс ставит pic.js): целиком, не обрезая. */
.pic.cut { object-fit: contain; padding: 8px; }
.pic.none { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--dim); }
.empty-box { padding: 40px 20px; border: 1px dashed rgba(255, 255, 255, .16); border-radius: 12px; text-align: center; color: var(--dim);
  display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 13px; }
.empty-box b { font-size: 15px; color: var(--muted); font-weight: 400; }
.empty-box .ic { display: flex; margin-bottom: 4px; }
.empty-box .zero { width: 44px; height: 44px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 20px; }

/* ---------- конструктор ---------- */

.fhead { padding: 14px 16px; border-radius: 12px; background: var(--panel); border-top: 6px solid var(--custom); }
.fhead b { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; }
.fhead small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.fmt { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fmt .what { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fmt .what b { display: block; font-size: 15px; }
.fmt .what small { display: block; font-size: 13px; color: var(--muted); }
.fmt .from { flex: none; font-size: 17px; color: var(--custom); white-space: nowrap; }
.numc { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--custom); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.numc.s { width: 30px; height: 30px; font-size: 15px; }
.numc.xs { width: 26px; height: 26px; font-size: 13px; }
.link { color: var(--blue); font-size: 14px; }
.backlink { align-self: flex-start; height: 40px; padding: 0 4px; color: var(--blue); font-size: 14px; }
.pickhead { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.pickhead .what { display: flex; align-items: center; gap: 10px; }
.pickhead .what b { font-family: var(--display); font-weight: 800; font-size: 18px; }
.pickhead .link { height: 44px; padding: 0 6px; }
.params { border-radius: 12px; background: var(--panel); padding: 4px 16px; display: flex; flex-direction: column; }
.param { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.param:last-child { border-bottom: 0; }
.param .q { font-weight: 600; font-size: 15px; }
.param .ctl { display: flex; align-items: center; gap: 10px; }
.step { display: flex; align-items: center; border-radius: 8px; background: var(--bg); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.step button { width: 44px; height: 44px; font-size: 22px; }
.step input { width: 56px; height: 44px; border: 0; background: transparent; text-align: center; font-size: 18px; outline: 0; padding: 0; }
.param .unit { font-size: 13px; color: var(--muted); flex: none; }
.param .cost { margin-left: auto; text-align: right; line-height: 1.2; }
.param .cost b { display: block; font-family: var(--display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.param .cost small { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.param .hint { font-size: 12px; color: var(--dim); }
.totals { border-radius: 12px; background: var(--panel); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.totals div.big { color: var(--text); padding-top: 6px; border-top: 1px solid var(--line); }
.totals div.big span:first-child { font-weight: 600; }
.totals div.big .sum { font-size: 28px; color: var(--c); }
.totals .minus { color: var(--ok); }
.totals div[hidden] { display: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { font-size: 12px; color: var(--dim); }
.note.c { text-align: center; }
.note.ok { color: var(--ok); }
.note.err { color: var(--err); }

/* ---------- формы и кнопки ---------- */

.box { border-radius: 12px; background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.box.tight { gap: 10px; }
.box h3 { font-family: var(--display); font-weight: 800; font-size: 18px; }
.box .lead { font-size: 13px; color: var(--muted); margin-top: -8px; }
label.field { display: flex; flex-direction: column; gap: 6px; }
label.field > span { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
label.field > span i { font-style: normal; color: var(--dim); }
.in { width: 100%; height: 52px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 14px; outline: 0; font-size: 16px; }
.in:focus { border-color: var(--line-3); }
.in.err { border-color: var(--err); }
.in.ok { border-color: var(--ok); }
.in.mono { font-variant-numeric: tabular-nums; }
.in.code { text-transform: uppercase; letter-spacing: .04em; }
textarea.in { height: auto; min-height: 120px; padding: 12px 14px; resize: none; font-size: 15px; line-height: 1.4; }
.row { display: flex; gap: 8px; }
.row > .in { flex: 1; min-width: 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; padding: 0 18px; border-radius: 8px;
  background: var(--escort); color: var(--ink); font-weight: 700; font-size: 16px; white-space: nowrap; }
.btn.yellow { background: var(--custom); font-weight: 600; font-size: 15px; height: 52px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-3); font-weight: 600; font-size: 15px; height: 52px; }
.btn.small { width: auto; height: 52px; padding: 0 18px; font-size: 14px; flex: none; }
.btn.mid { height: 48px; font-size: 15px; }
.btn.danger { background: transparent; color: var(--err); border: 1px solid rgba(239, 95, 95, .5); font-weight: 600; font-size: 14px; height: 48px; }
.btn:disabled { opacity: .55; }
.stack { display: flex; flex-direction: column; gap: 10px; }
label.check { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
label.check input { width: 22px; height: 22px; flex: none; accent-color: var(--escort); margin: 0; }
label.check small { display: block; font-size: 12px; font-weight: 400; color: var(--dim); }

/* ---------- корзина ---------- */

.cartlist { border-radius: 12px; background: var(--panel); padding: 0 16px; display: flex; flex-direction: column; }
.cline { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.cline:last-child { border-bottom: 0; }
.cline .name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.cline .name small { display: block; font-size: 12px; color: var(--dim); }
.cline .sum { flex: none; width: 76px; text-align: right; font-size: 16px; }
.qty { display: flex; align-items: center; border-radius: 8px; background: var(--bg); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; flex: none; }
.qty button { width: 38px; height: 40px; font-size: 20px; }
.qty span { width: 28px; text-align: center; font-size: 16px; }
.rm { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: var(--bg); font-size: 18px; color: var(--muted); flex: none; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--pad) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 65%, rgba(30, 32, 34, 0)); z-index: 5; }
.cartbar .btn { max-width: 528px; margin: 0 auto; justify-content: space-between; border-radius: 10px; box-shadow: 0 8px 24px rgba(255, 127, 69, .25); }
.cartbar .btn .sum { font-size: 18px; }

/* ---------- заказ ---------- */

.hero { position: relative; border-radius: 14px; background: var(--panel); padding: 18px 16px 16px; overflow: hidden; border-top: 6px solid var(--c); }
.eyebrow { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.hero .big-sum { font-size: 36px; letter-spacing: -.01em; margin-top: 4px; line-height: 1.1; }
.pill { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 15px;
  border: 1.5px solid var(--c); color: var(--c); font-size: 13px; font-weight: 600; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hero .hint { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.stamp { position: absolute; right: 14px; top: 14px; padding: 6px 12px; border: 3px solid var(--ok); border-radius: 6px; color: var(--ok);
  font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .12em; transform: rotate(-6deg);
  animation: stamp .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.olist { border-radius: 12px; background: var(--panel); padding: 0 16px; font-variant-numeric: tabular-nums; }
.olist div { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.olist div:last-child { border-bottom: 0; }
.olist div span:first-child { min-width: 0; line-height: 1.35; }
.olist div span:first-child.dim { color: var(--muted); }
.olist .sum { flex: none; font-size: 14px; }
.olist .minus { color: var(--ok); }
.olist .minus .sum { color: var(--ok); }
.desc-box { border-radius: 12px; background: var(--panel); padding: 12px 16px; font-size: 14px; line-height: 1.45; }
.desc-box small { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.write-note { text-align: center; font-size: 12px; color: var(--dim); }

/* ---------- профиль ---------- */

.who { display: flex; align-items: center; gap: 12px; }
.who .face { width: 44px; height: 44px; font-size: 18px; }
.who div b { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; }
.who small { display: block; font-size: 13px; color: var(--dim); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpis .tile { border-radius: 12px; background: var(--panel); padding: 14px 16px; }
.kpis b { display: block; font-size: 28px; }
.kpis small { display: block; font-size: 12px; color: var(--muted); }
.kpis.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis.three .tile { padding: 12px; background: var(--bg); }
.kpis.three b { font-size: 18px; }
.kpis.three small { font-size: 11px; }
.eyebrow.sec { font-weight: 600; font-size: 13px; margin-top: 6px; }
.orow { width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.orow:last-child { border-bottom: 0; }
.orow .what { flex: 1; min-width: 0; }
.orow .what b { display: block; font-size: 15px; }
.orow .what small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow .right { text-align: right; flex: none; }
.orow .right .sum { font-size: 16px; }
.orow .right small { display: block; font-size: 12px; font-weight: 600; color: var(--c); }
.refbox .eyebrow { color: var(--escort); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.refbox h2 { font-family: var(--display); font-weight: 800; font-size: 22px; margin-top: -8px; }
.refbox p { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: -6px; }
.reflink { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--line-2); color: var(--escort); font-size: 14px; font-weight: 600; text-align: left; }
.reflink span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reflink .ic { flex: none; display: flex; color: var(--muted); }

/* ---------- шторка товара ---------- */

#sheet-layer { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; z-index: 10; }
#sheet-layer[hidden] { display: none; }
.sheet { width: 100%; max-width: 560px; margin: 0 auto; max-height: 92vh; overflow-y: auto; background: var(--panel); border-radius: 20px 20px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.sheet .handle { width: 40px; height: 4px; border-radius: 2px; background: #4a4f54; align-self: center; }
.sheet .pic { width: 100%; height: 170px; border-radius: 12px; object-fit: cover; display: block; background: var(--bg); }
/* вырезка в шторке — целиком, высота по самой картинке (правило ниже .pic.cut, иначе
   верх берёт cover из строки выше) */
.sheet .pic.cut { height: auto; max-height: 240px; object-fit: contain; padding: 16px; }
.sheet .kind { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sheet .kind svg { width: 14px; height: 14px; }
.sheet h2 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15; margin-top: 6px; }
.sheet .lead { font-size: 15px; margin-top: 8px; line-height: 1.45; }
.sheet .desc { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; white-space: pre-line; }
.sheet .foot { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.sheet .foot .qty { border-radius: 10px; }
.sheet .foot .qty button { width: 48px; height: 56px; font-size: 24px; }
.sheet .foot .qty span { width: 32px; font-size: 18px; }
.sheet .foot .btn { flex: 1; border-radius: 10px; background: var(--c); }
.sheet .foot .btn .sum { font-size: 17px; }

/* ---------- служебное ---------- */

.splash { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 0 40px; }
.splash .brand { font-size: 24px; }
.splash .loader { width: 160px; height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; position: relative; }
.splash .loader::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: 2px; background: var(--escort); animation: dash 1.1s ease-in-out infinite; }
.splash small { font-size: 13px; color: var(--dim); }
.splash .bang { width: 56px; height: 56px; border-radius: 50%; background: var(--panel-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--err); }
.splash h2 { font-family: var(--display); font-weight: 800; font-size: 20px; }
.splash p { font-size: 14px; color: var(--muted); }
.splash .btn { width: auto; height: 48px; padding: 0 24px; border-radius: 6px; font-size: 15px; font-weight: 600; }
/* шаг перед входом: подписка на канал */
.gate { min-height: 80vh; padding: 24px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.gate .ava { width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--escort); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 32px; }
.gate .eyebrow { font-size: 12px; color: var(--escort); font-weight: 600; }
.gate h2 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15; margin-top: 6px; }
.gate p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.gate .stack { width: 100%; margin-top: 6px; }
.gate .btn { border-radius: 10px; }
#toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); max-width: min(340px, calc(100% - 32px));
  padding: 10px 16px; border-radius: 8px; background: var(--text); color: #1a1c1e; font-size: 14px; font-weight: 500; text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4); z-index: 20; animation: toast .25s ease-out both; }
#toast[hidden] { display: none; }

@keyframes dash { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }
@keyframes stamp { 0% { transform: scale(1.6) rotate(-14deg); opacity: 0; } 60% { transform: scale(.96) rotate(-6deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
@keyframes toast { 0% { transform: translate(-50%, -12px); opacity: 0; } 100% { transform: translate(-50%, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp, #toast, .splash .loader::after { animation: none; } }
