/* ==========================================================================
   Friending Pass — Quiz, please!
   Мобильный прототип. Тёмный "игровой" бренд-стиль: чёрный + кислотный жёлтый,
   фуксия и фиолет как акценты.
   ========================================================================== */

:root {
  --bg: #0b0714;
  --bg-2: #120c20;
  --card: #1a1130;
  --card-2: #221743;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);

  --ink: #ffffff;
  --ink-2: #b9aed6;
  --ink-3: #7e739c;

  --yellow: #ffe14d;
  --yellow-deep: #ffb800;
  --pink: #ff2e78;
  --violet: #7b5cff;
  --mint: #2ee6a8;
  --coin: #ffd233;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --tab-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  overscroll-behavior-y: none;
}

body {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(123, 92, 255, .40), transparent 62%),
    radial-gradient(760px 480px at 96% 4%, rgba(255, 46, 120, .30), transparent 60%),
    radial-gradient(700px 500px at 50% 108%, rgba(46, 230, 168, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; }

/* ---------- каркас "телефона" ---------- */

.phone {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 560px) {
  body { padding: 18px 0; }
  .phone {
    min-height: calc(100dvh - 36px);
    border: 1px solid var(--line);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
    background: rgba(11, 7, 20, .35);
  }
}

/* ---------- верхняя панель ---------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(11, 7, 20, .92), rgba(11, 7, 20, .55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.appbar__back {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: grid; place-items: center;
  font-size: 18px;
  transition: transform .15s, background .15s;
}
.appbar__back:active { transform: scale(.9); background: rgba(255, 255, 255, .16); }

.appbar__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.brand__logo {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.02em;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--yellow);
  color: #16091f;
  transform: rotate(-3deg);
  box-shadow: 0 6px 18px rgba(255, 225, 77, .28);
}
.brand__sub {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}

.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 210, 51, .22), rgba(255, 184, 0, .10));
  border: 1px solid rgba(255, 210, 51, .38);
  font-weight: 800;
  font-size: 15px;
  color: var(--yellow);
  white-space: nowrap;
  transition: transform .2s;
}
.coin-pill.bump { animation: bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump {
  40% { transform: scale(1.22) rotate(-4deg); }
  100% { transform: scale(1); }
}

/* ---------- контент ---------- */

.screen {
  flex: 1;
  padding: 4px 16px calc(var(--tab-h) + var(--safe-b) + 24px);
  animation: screen-in .28s ease both;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.section-title {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 800;
  margin: 22px 2px 10px;
}

.muted { color: var(--ink-2); }
.tiny { font-size: 13px; }

/* ---------- карточка игрока (главная) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 20px;
  background: linear-gradient(140deg, #2a1a5c 0%, #4a1f6b 48%, #7a1f52 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255, 225, 77, .32), transparent 65%);
  pointer-events: none;
}
.hero__row { display: flex; align-items: center; gap: 14px; position: relative; }
.avatar {
  width: 58px; height: 58px;
  flex: 0 0 58px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 30px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
}
.hero__name { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.hero__team {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-size: 13px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
}
.hero__coins {
  position: relative;
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.hero__coins b { font-size: 40px; font-weight: 900; letter-spacing: -.04em; color: var(--yellow); }
.hero__coins span { font-size: 14px; color: rgba(255, 255, 255, .78); font-weight: 600; }

/* ---------- кнопки ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  transition: transform .12s ease, filter .15s, opacity .15s;
  text-align: center;
}
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .42; pointer-events: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: #17091f;
  box-shadow: 0 14px 30px rgba(255, 200, 40, .28);
}
.btn--hero {
  padding: 24px 18px;
  border-radius: var(--r-lg);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.btn--ghost {
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-strong);
  color: #fff;
}
.btn--pink {
  background: linear-gradient(135deg, var(--pink), #b41ae0);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 46, 120, .3);
}
.btn--sm { padding: 11px 16px; font-size: 14px; border-radius: 13px; width: auto; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.stack > * + * { margin-top: 12px; }

/* ---------- прогресс ---------- */

.progress-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
}
.progress-card__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}
.progress-card__top small { color: var(--ink-2); font-weight: 700; font-size: 12.5px; white-space: nowrap; }

.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--yellow));
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 0 16px rgba(46, 230, 168, .5);
}
.bar--pink .bar__fill { background: linear-gradient(90deg, var(--violet), var(--pink)); box-shadow: 0 0 16px rgba(255, 46, 120, .45); }

.dots { display: flex; gap: 6px; margin-top: 12px; }
.dots i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}
.dots i.on { background: var(--mint); box-shadow: 0 0 10px rgba(46, 230, 168, .6); }

/* ---------- ачивки ---------- */

.ach {
  position: relative;
  display: flex;
  gap: 13px;
  padding: 15px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ach--done {
  background: linear-gradient(135deg, rgba(46, 230, 168, .14), rgba(26, 17, 48, .9));
  border-color: rgba(46, 230, 168, .38);
}
.ach__icon {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 23px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
}
.ach--done .ach__icon { background: rgba(46, 230, 168, .18); border-color: rgba(46, 230, 168, .4); }
.ach__body { flex: 1; min-width: 0; }
.ach__title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.ach--done .ach__title { padding-right: 76px; }
.ach__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 9px;
}
.reward {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 800;
  color: var(--yellow);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 210, 51, .13);
  border: 1px solid rgba(255, 210, 51, .3);
}
.ach__hint { margin-top: 7px; font-size: 12.5px; color: var(--ink-3); }
.ach__with {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
}
.badge-done {
  position: absolute; top: 12px; right: 12px;
  font-size: 12px; font-weight: 800;
  color: #06231a;
  background: var(--mint);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---------- QR ---------- */

.qr-card {
  margin-top: 8px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #ffffff, #efe9ff);
  color: #14091d;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.qr-card__frame {
  position: relative;
  width: min(252px, 68vw);
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
}
.qr-card__frame canvas, .qr-card__frame img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-card__frame::before,
.qr-card__frame::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 4px solid var(--pink);
  border-radius: 8px;
}
.qr-card__frame::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.qr-card__frame::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.qr-card__name { font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.qr-card__team { font-size: 13px; font-weight: 700; color: #6a5a86; margin-top: 3px; }
.qr-card__id {
  margin-top: 10px;
  display: inline-block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #8b7aa8;
  background: rgba(20, 9, 29, .06);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------- кошелёк ---------- */

.wallet {
  border-radius: var(--r-lg);
  padding: 22px;
  text-align: center;
  background: linear-gradient(150deg, #3a1f6e, #6b1f5a 60%, #8c3a12);
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
}
.wallet__label { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.wallet__value {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.05;
  margin-top: 4px;
  color: var(--yellow);
  text-shadow: 0 8px 30px rgba(255, 210, 51, .35);
}
.wallet__coin { font-size: 28px; margin-left: 8px; vertical-align: 12px; }
.wallet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stat {
  padding: 14px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
}
.stat b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.03em; margin-top: 4px; }
.stat small { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.stat--green b { color: var(--mint); }

.tx { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx__ico {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  font-size: 18px;
}
.tx__t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.tx__t small { display: block; color: var(--ink-3); font-weight: 600; font-size: 12px; margin-top: 2px; }
.tx__v { font-weight: 900; font-size: 15px; }
.tx__v.plus { color: var(--mint); }
.tx__v.minus { color: var(--ink-2); }

/* ---------- магазин ---------- */

.shop-item {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
}
.shop-item--locked { opacity: .56; }
.shop-item--bought { border-color: rgba(46, 230, 168, .4); background: linear-gradient(135deg, rgba(46, 230, 168, .12), var(--card)); }
.shop-item__top { display: flex; align-items: center; gap: 13px; }
.shop-item__ico {
  width: 50px; height: 50px; flex: 0 0 50px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 25px;
  background: linear-gradient(135deg, rgba(123, 92, 255, .35), rgba(255, 46, 120, .25));
  border: 1px solid var(--line);
}
.shop-item__b { flex: 1; min-width: 0; }
.shop-item__b b { font-size: 15px; letter-spacing: -.01em; }
.shop-item__b small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.btn--wide { width: 100%; }
.price {
  flex: 0 0 auto;
  font-weight: 900;
  color: var(--yellow);
  font-size: 15px;
  white-space: nowrap;
}

/* ---------- friendcoin ---------- */

.fc-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 26px 22px;
  text-align: center;
  background: linear-gradient(160deg, #4a0f3a, #7a1046 55%, #24123f);
  border: 1px solid rgba(255, 46, 120, .45);
  box-shadow: 0 24px 60px rgba(255, 46, 120, .18);
}
.fc-coin {
  width: 128px; height: 128px;
  margin: 6px auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 58px;
  background: radial-gradient(circle at 34% 28%, #ff9bc2, var(--pink) 55%, #a30f46);
  box-shadow: 0 0 0 8px rgba(255, 46, 120, .16), 0 18px 44px rgba(255, 46, 120, .5);
  animation: fc-float 3.2s ease-in-out infinite;
}
@keyframes fc-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}
.fc-title {
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  font-weight: 900; color: #ffd0e2;
}
.fc-text { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.fc-locked { filter: grayscale(.7) brightness(.8); }

/* ---------- список людей ---------- */

.person {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform .12s, background .15s;
}
.person:active { transform: scale(.98); background: rgba(255, 255, 255, .1); }
.person--used { opacity: .45; }
.person__ava {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, .08);
}
.person__b { flex: 1; min-width: 0; }
.person__b b { font-size: 15px; }
.person__b small {
  display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.person__tag { font-size: 11px; font-weight: 800; color: var(--ink-3); }

/* ---------- нижняя навигация ---------- */

.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  max-width: 480px;
  margin: 0 auto;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(14, 9, 26, .93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) {
  .tabbar { border-radius: 0 0 36px 36px; bottom: 18px; }
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  transition: color .15s;
}
.tab i { font-style: normal; font-size: 21px; line-height: 1; transition: transform .2s; }
.tab.is-active { color: var(--yellow); }
.tab.is-active i { transform: translateY(-2px) scale(1.12); }
.tab__badge {
  position: absolute;
  transform: translate(15px, -22px);
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 999px;
}

/* ---------- шторка / модалка ---------- */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6, 3, 12, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--card-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  padding: 10px 16px calc(24px + var(--safe-b));
  animation: sheet-up .32s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet__grip { width: 44px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .22); margin: 4px auto 14px; }
.sheet__title { font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.sheet__sub { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.sheet__list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }

/* имитация камеры */
.scanner {
  position: relative;
  height: 172px;
  margin-top: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(123, 92, 255, .22), rgba(255, 46, 120, .18)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px),
    #0d0818;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.scanner__box {
  width: 106px; height: 106px;
  margin-bottom: 18px;
  border-radius: 16px;
  box-shadow: 0 0 0 2000px rgba(5, 2, 10, .45);
  position: relative;
}
.scanner__box::before,
.scanner__box::after {
  content: "";
  position: absolute; width: 30px; height: 30px;
  border: 3px solid var(--yellow);
}
.scanner__box::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scanner__box::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scanner__line {
  position: absolute;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  box-shadow: 0 0 14px var(--mint);
  animation: scan 2.1s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 18%; }
  50% { top: 80%; }
}
.scanner__hint {
  position: absolute; bottom: 10px; left: 0; right: 0;
  text-align: center; font-size: 12px; color: var(--ink-2); font-weight: 600;
}

/* ---------- успех ---------- */

.fx {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(6, 3, 12, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade .18s ease both;
  text-align: center;
  padding: 24px;
}
.fx__coin {
  width: 130px; height: 130px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 62px;
  background: radial-gradient(circle at 35% 28%, #fff3b0, var(--coin) 52%, #cf8b00);
  box-shadow: 0 0 0 10px rgba(255, 210, 51, .14), 0 20px 50px rgba(255, 200, 40, .45);
  animation: coin-pop .8s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes coin-pop {
  0% { transform: scale(.2) rotateY(0deg); opacity: 0; }
  55% { transform: scale(1.14) rotateY(540deg); opacity: 1; }
  100% { transform: scale(1) rotateY(720deg); }
}
.fx__coin--pink { background: radial-gradient(circle at 35% 28%, #ffa8c9, var(--pink) 55%, #a30f46); box-shadow: 0 0 0 10px rgba(255, 46, 120, .16), 0 20px 50px rgba(255, 46, 120, .45); }
.fx__plus {
  font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: var(--yellow);
  animation: rise .7s .15s cubic-bezier(.22, 1, .36, 1) both;
}
.fx__title { font-size: 20px; font-weight: 900; margin-top: 8px; animation: rise .7s .22s cubic-bezier(.22, 1, .36, 1) both; }
.fx__sub { margin-top: 8px; color: var(--ink-2); font-size: 14px; animation: rise .7s .3s cubic-bezier(.22, 1, .36, 1) both; max-width: 320px; }
.fx__btn { margin-top: 22px; animation: rise .7s .38s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.confetti {
  position: fixed;
  top: -14px;
  width: 9px; height: 14px;
  z-index: 90;
  pointer-events: none;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(104dvh) rotate(760deg); opacity: .1; }
}

/* ---------- тост ---------- */

#toast-root {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  z-index: 95;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}
.toast {
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 15px;
  background: rgba(30, 20, 54, .97);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  font-size: 14px;
  font-weight: 600;
  animation: toast-in .25s cubic-bezier(.22, 1, .36, 1) both;
}
.toast--warn { border-color: rgba(255, 46, 120, .5); }
.toast.out { animation: toast-out .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- мелочи ---------- */

.note {
  display: flex; gap: 10px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  background: rgba(123, 92, 255, .13);
  border: 1px solid rgba(123, 92, 255, .32);
  font-size: 13px;
  color: #d9d0ff;
  line-height: 1.4;
}
.note b { color: #fff; }

.reset-btn {
  display: block;
  margin: 26px auto 0;
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
