/* =====================================================================
   MEGA SPIN GIFTS — дизайн-система (общая для всех разделов)
   Разделы пишут свои стили в отдельных файлах css/<раздел>.css
   с собственным префиксом классов (см. docs/AGENT_GUIDE.md).
   ===================================================================== */

:root {
  --bg: #07040f;
  --bg-2: #0d0820;
  --surface: rgba(32, 20, 66, 0.55);
  --surface-2: rgba(50, 32, 98, 0.55);
  --surface-3: rgba(70, 46, 132, 0.5);
  --surface-solid: #160e2e;
  --well: rgba(8, 5, 20, 0.55);
  --stroke: rgba(196, 170, 255, 0.1);
  --stroke-2: rgba(196, 170, 255, 0.2);
  --text: #f6f3ff;
  --text-2: #c7bfe8;
  --text-3: #8f86b6;

  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --violet-3: #6d28d9;
  --magenta: #e14eca;
  --pink: #ff6ad5;
  --cyan: #2fd9f5;
  --mint: #3df5c2;
  --green: #46f08f;
  --gold: #ffc53d;
  --gold-2: #ff9f1c;
  --orange: #ff8a3d;
  --red: #ff4d6d;

  --grad-primary: linear-gradient(135deg, #a974ff 0%, #7c3aed 52%, #c13bd6 100%);
  --grad-gold: linear-gradient(135deg, #fff2a8 0%, #ffd34d 34%, #ffac1f 72%, #ff8a00 100%);
  --grad-mint: linear-gradient(135deg, #8bffe0 0%, #2fd9f5 100%);
  --grad-red: linear-gradient(135deg, #ff9aac 0%, #ff3b6b 100%);
  --grad-card: linear-gradient(160deg, rgba(76, 49, 150, 0.5) 0%, rgba(30, 18, 62, 0.62) 58%, rgba(17, 10, 38, 0.72) 100%);
  --grad-text: linear-gradient(90deg, #ffffff 0%, #d8c8ff 55%, #b39bff 100%);

  --r-xs: 10px;
  --r-s: 14px;
  --r: 18px;
  --r-l: 24px;
  --r-xl: 30px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.16s;
  --t: 0.28s;
  --t-slow: 0.5s;

  --sh-1: 0 10px 30px rgba(4, 1, 16, 0.45);
  --sh-2: 0 18px 46px rgba(4, 1, 16, 0.55);
  --sh-glow: 0 10px 34px rgba(139, 92, 246, 0.4);
  --hl: inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-d: 'Unbounded', 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 70px;
}

/* Редкость: RGB-тройка для подсветки (rgba(var(--rc), .5)) */
.r-common { --rc: 158, 170, 210; }
.r-rare { --rc: 92, 170, 255; }
.r-epic { --rc: 186, 120, 255; }
.r-legendary { --rc: 255, 186, 48; }
.r-mythic { --rc: 255, 84, 128; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font: 500 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior: none;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(139, 92, 246, 0.45); }
input::placeholder { color: var(--text-3); }

/* ---------- Анимированный фон ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(130% 80% at 50% -10%, #23104f 0%, #0d0724 46%, #07040f 100%);
}
.bg .blob {
  position: absolute;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  will-change: transform;
}
.bg .b1 { top: -38vmax; left: -30vmax; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.5), rgba(124, 58, 237, 0)); animation: drift1 28s ease-in-out infinite alternate; }
.bg .b2 { top: 8vmax; right: -44vmax; background: radial-gradient(closest-side, rgba(225, 78, 202, 0.32), rgba(225, 78, 202, 0)); animation: drift2 34s ease-in-out infinite alternate; }
.bg .b3 { bottom: -50vmax; left: -18vmax; background: radial-gradient(closest-side, rgba(47, 217, 245, 0.2), rgba(47, 217, 245, 0)); animation: drift3 40s ease-in-out infinite alternate; }
.bg canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Заставка ---------- */
#boot {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 26px;
  background: radial-gradient(90% 60% at 50% 40%, #22104c 0%, #0b0620 60%, #07040f 100%);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#boot.out { opacity: 0; visibility: hidden; }
.boot-stage { position: relative; width: 132px; height: 132px; perspective: 700px; }
.boot-glow { position: absolute; inset: -45%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 197, 61, 0.42) 0%, rgba(139, 92, 246, 0.24) 42%, transparent 70%); animation: glow 2.6s ease-in-out infinite; }
.boot-mascot { position: absolute; inset: 0; width: 100%; height: 100%; animation: bootSpin 3.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.boot-orbit { position: absolute; inset: -34px; animation: spin 7s linear infinite; }
.boot-orbit img { position: absolute; width: 34px; height: 34px; animation: spin 7s linear infinite reverse; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.boot-orbit img:nth-child(1) { top: 0; left: 50%; margin-left: -17px; }
.boot-orbit img:nth-child(2) { bottom: 14px; right: 0; }
.boot-orbit img:nth-child(3) { bottom: 14px; left: 0; }
.boot-name {
  font: 800 20px/1 var(--font-d);
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #ffffff 0%, #c4b5fd 30%, #ffffff 60%, #c4b5fd 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 2.6s linear infinite;
}
.boot-bar { width: 170px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.boot-bar i { display: block; width: 42%; height: 100%; border-radius: 4px; background: var(--grad-primary); animation: bootBar 1.25s var(--ease) infinite; }

/* ---------- Каркас ---------- */
.app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; min-height: 100dvh; }
.view { position: relative; padding: 4px 14px calc(var(--tabbar-h) + 34px + var(--safe-b)); }
.screen { animation: screenIn 0.46s var(--ease) backwards; }

/* Шапка */
.topbar { position: sticky; top: 0; z-index: 40; padding: calc(8px + var(--safe-t)) 12px 8px; }
.topbar-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 8px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(70, 44, 140, 0.62), rgba(28, 17, 60, 0.62));
  border: 1px solid var(--stroke-2);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--sh-1), var(--hl);
}
.brand { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; container-type: inline-size; }
/* Мало места (огромный баланс на узком экране) — остаётся только логотип, без обрезанного названия */
@container (max-width: 104px) { .brand .brand-name { display: none; } }
.brand-logo {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.brand-logo img { width: 28px; height: 28px; animation: logoSpin 9s var(--ease) infinite; }
.brand-name { display: flex; flex-direction: column; min-width: 0; font-family: var(--font-d); text-transform: uppercase; line-height: 1.02; }
.brand-name small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 8.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--text-2); white-space: nowrap; }
.brand-name b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wallet {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 4px 0 11px;
  border-radius: 999px;
  background: rgba(10, 6, 26, 0.6);
  border: 1px solid var(--stroke-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.wallet .amt b { font-size: 15px; }
.wallet-add {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #3b2200;
  background: var(--grad-gold);
  box-shadow: 0 4px 14px rgba(255, 166, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform var(--t-fast) var(--spring);
}
.wallet-add svg { width: 18px; height: 18px; stroke-width: 3; }
.wallet-add:active { transform: scale(0.88); }
.flag-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: none;
  flex: none;
  transition: transform var(--t-fast) var(--spring);
}
.flag-btn:active { transform: scale(0.9); }
.flag-btn svg, .flag svg { width: 100%; height: 100%; display: block; }
.flag { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; border: 1.5px solid rgba(255, 255, 255, 0.2); }

/* Нижнее меню (стеклянная «таблетка» с бегающим индикатором) */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(10px + var(--safe-b));
  z-index: 50;
  width: calc(100% - 22px);
  max-width: 498px;
  height: var(--tabbar-h);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(64, 40, 128, 0.66), rgba(22, 13, 48, 0.72));
  border: 1px solid var(--stroke-2);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 18px 44px rgba(3, 1, 12, 0.62), var(--hl);
}
.tab-ind {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 5);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(178, 150, 255, 0.42), rgba(124, 58, 237, 0.36));
  border: 1px solid rgba(206, 186, 255, 0.4);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.55s var(--spring);
}
.tabbar a {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  transition: color var(--t) var(--ease);
}
.tabbar a .ico svg { width: 23px; height: 23px; transition: transform 0.45s var(--spring), filter var(--t); }
.tabbar a.on { color: #fff; }
.tabbar a.on .ico svg { transform: translateY(-1px) scale(1.14); filter: drop-shadow(0 0 8px rgba(206, 186, 255, 0.75)); }
.tabbar a:active .ico svg { transform: scale(0.86); }

/* ---------- Типографика ---------- */
.title-xl { font: 800 24px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: 0.01em; }
.title { font: 800 19px/1.15 var(--font-d); text-transform: uppercase; letter-spacing: 0.01em; }
.h2 { font: 800 16px/1.25 var(--font); }
.h3 { font: 800 14px/1.3 var(--font); }
.label { font: 800 11px/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.right { text-align: right; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.green { color: var(--green); }
.red { color: var(--red); }
.gold { color: var(--gold); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; }

/* Заголовок экрана: иконка + название + правый слот */
.shead { display: flex; align-items: center; gap: 12px; margin: 8px 2px 14px; }
.shead-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.shead-ic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)); animation: floaty 3.8s ease-in-out infinite; }
.shead h1 { font: 800 22px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: 0.01em; flex: 1; min-width: 0; }
.sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 2px 12px; }
.sec h2 { font: 800 15px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- Раскладка ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.hidden { display: none !important; }

/* Плавное появление списков: элементам задаётся --i (порядковый номер) */
/* backwards: после анимации transform не «залипает», и эффект нажатия (:active scale) работает */
.stagger > * { animation: fadeUp 0.55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }

/* ---------- Поверхности ---------- */
.card {
  position: relative;
  border-radius: var(--r-l);
  padding: 14px;
  background: var(--grad-card);
  border: 1px solid var(--stroke);
  box-shadow: var(--sh-1), var(--hl);
}
.card.flat { box-shadow: var(--hl); }
.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.well { background: var(--well); border: 1px solid var(--stroke); border-radius: var(--r-s); }
/* Градиентная обводка: добавьте класс .ring к карточке */
.ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(206, 186, 255, 0.55), rgba(206, 186, 255, 0.04) 40%, rgba(47, 217, 245, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.divider { height: 1px; background: var(--stroke); margin: 4px 0; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  font: 800 15px/1 var(--font);
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), filter var(--t) var(--ease), opacity var(--t) var(--ease), background-color var(--t);
}
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: default; filter: saturate(0.6); }
.btn .ico svg { width: 19px; height: 19px; }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-gold { background: var(--grad-gold); color: #3b2200; box-shadow: 0 10px 26px rgba(255, 159, 28, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-mint { background: var(--grad-mint); color: #03222a; box-shadow: 0 10px 26px rgba(47, 217, 245, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-danger { background: var(--grad-red); color: #fff; box-shadow: 0 10px 26px rgba(255, 59, 107, 0.35); }
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke-2);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--hl);
}
.btn-primary::after, .btn-gold::after, .btn-mint::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  animation: shine 4.2s var(--ease) infinite;
  pointer-events: none;
}
.btn:disabled::after { display: none; }
.btn-sm { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.btn-lg { height: 58px; border-radius: 19px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .amt b { font-weight: 800; }

.icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(10, 6, 26, 0.5);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  transition: transform var(--t-fast) var(--spring), color var(--t), background var(--t);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(0.88); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.on { color: #fff; background: rgba(139, 92, 246, 0.3); border-color: rgba(167, 139, 250, 0.45); }

/* ---------- Чипы, бейджи ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.05);
  font: 800 13px/1 var(--font);
  color: var(--text-2);
  white-space: nowrap;
  transition: transform var(--t-fast) var(--spring), background var(--t), color var(--t), border-color var(--t);
}
.chip:active { transform: scale(0.92); }
.chip.on { color: #fff; background: rgba(139, 92, 246, 0.32); border-color: rgba(167, 139, 250, 0.6); box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3); }
.chip:disabled { opacity: 0.45; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font: 800 11px/1 var(--font);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
}
.badge:empty { display: none; }
.badge .ico svg { width: 13px; height: 13px; }
.badge-gold { background: var(--grad-gold); color: #3b2200; border-color: transparent; box-shadow: 0 4px 12px rgba(255, 159, 28, 0.35); }
.badge-live { background: rgba(61, 245, 194, 0.12); color: var(--mint); border-color: rgba(61, 245, 194, 0.35); }
.badge-violet { background: rgba(139, 92, 246, 0.22); color: #d9ccff; border-color: rgba(167, 139, 250, 0.4); }
.badge-red { background: rgba(255, 77, 109, 0.16); color: #ff9db0; border-color: rgba(255, 77, 109, 0.35); }
.badge-dark { background: rgba(8, 5, 20, 0.6); border-color: var(--stroke-2); color: var(--text); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--mint); animation: ping 1.8s infinite; }

/* Плитка с иконкой (задания, меню) */
.ic-tile {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 18px rgba(0, 0, 0, 0.32);
}
.ic-tile svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.ic-tile.sm { width: 36px; height: 36px; border-radius: 12px; }
.ic-tile.sm svg { width: 18px; height: 18px; }
.g-violet { background: linear-gradient(135deg, #b69cff, #6d28d9); }
.g-blue { background: linear-gradient(135deg, #7cb8ff, #2563eb); }
.g-teal { background: linear-gradient(135deg, #6ef0d8, #0d9488); }
.g-amber { background: linear-gradient(135deg, #ffd96b, #d97706); }
.g-red { background: linear-gradient(135deg, #ffa3b4, #e11d48); }
.g-pink { background: linear-gradient(135deg, #ffb0e1, #db2777); }
.g-indigo { background: linear-gradient(135deg, #aab6ff, #4f46e5); }
.g-green { background: linear-gradient(135deg, #8df5b5, #16a34a); }
.g-cyan { background: linear-gradient(135deg, #7ff0ff, #0891b2); }
.g-orange { background: linear-gradient(135deg, #ffb87a, #ea580c); }

/* ---------- Валюта ---------- */
.st { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; filter: drop-shadow(0 1px 3px rgba(255, 160, 20, 0.45)); }
.amt { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt b { font-weight: 800; }
.amt.green b { color: var(--green); }
.amt.red b { color: var(--red); }
.amt.gold b { color: var(--gold); }
.bump { animation: bump 0.4s var(--spring); }

/* ---------- Подарки ---------- */
.art { position: relative; display: grid; place-items: center; flex: none; }
.art::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--rc, 158, 170, 210), 0.55) 0%, rgba(var(--rc, 158, 170, 210), 0.16) 45%, transparent 70%);
  filter: blur(6px);
}
.art img { position: relative; width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42)); }
.art .emo { position: relative; line-height: 1; font-size: 0.62em; }
.art-xs { width: 26px; height: 26px; font-size: 26px; }
.art-sm { width: 42px; height: 42px; font-size: 42px; }
.art-md { width: 64px; height: 64px; font-size: 64px; }
.art-lg { width: 100px; height: 100px; font-size: 100px; }
.art-xl { width: 176px; height: 176px; font-size: 176px; }
.art-fill { width: 100%; aspect-ratio: 1; font-size: 64px; }
.floaty img, .floaty .emo { animation: floaty 3.8s ease-in-out infinite; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 9px 7px 10px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(var(--rc), 0.17) 0%, rgba(22, 13, 48, 0.7) 72%);
  border: 1px solid rgba(var(--rc), 0.28);
  box-shadow: var(--hl);
  transition: transform var(--t-fast) var(--ease), border-color var(--t), box-shadow var(--t);
}
button.tile { font: inherit; color: inherit; cursor: pointer; }
button.tile:active { transform: scale(0.95); }
.tile .art { width: 82%; aspect-ratio: 1; height: auto; font-size: 54px; }
.tile-name { width: 100%; font-size: 11.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-val { font-size: 12.5px; }
.tile-chance { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 8px; font-size: 10px; font-weight: 800; background: rgba(8, 5, 20, 0.65); color: rgb(var(--rc)); }
.tile.sel { border-color: var(--violet-2); box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.8), 0 10px 24px rgba(124, 58, 237, 0.35); }
.tile.sel::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: var(--grad-primary);
}

/* ---------- Поля ввода ---------- */
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--well);
  border: 1px solid var(--stroke-2);
  color: var(--text);
  font: 700 15px var(--font);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.input:focus { border-color: rgba(167, 139, 250, 0.75); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18); }
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: #140c2c; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 800; color: var(--text-3); }
.field small { font-size: 11.5px; color: var(--text-3); font-weight: 600; }

.bet { display: flex; flex-direction: column; gap: 8px; }
.bet-row { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 6px 0 14px; border-radius: 16px; background: var(--well); border: 1px solid var(--stroke-2); transition: border-color var(--t), box-shadow var(--t); }
.bet-row:focus-within { border-color: rgba(167, 139, 250, 0.7); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16); }
.bet-row .st { width: 22px; height: 22px; }
.bet-in { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font: 800 19px var(--font); font-variant-numeric: tabular-nums; }
.bet-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bet-quick .chip { padding: 0 4px; height: 34px; }

/* Сегменты с бегающим индикатором */
.seg { position: relative; display: flex; padding: 4px; border-radius: 16px; background: var(--well); border: 1px solid var(--stroke); }
.seg-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(178, 150, 255, 0.38), rgba(124, 58, 237, 0.38));
  border: 1px solid rgba(206, 186, 255, 0.35);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: transform 0.45s var(--spring);
}
.seg button { position: relative; z-index: 1; flex: 1; min-width: 0; height: 38px; padding: 0 6px; border: 0; background: none; color: var(--text-3); font: 800 13px var(--font); transition: color var(--t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button.on { color: #fff; }
.seg button:disabled { opacity: 0.5; }

.switch { appearance: none; -webkit-appearance: none; position: relative; width: 48px; height: 28px; margin: 0; flex: none; border-radius: 999px; background: rgba(255, 255, 255, 0.12); cursor: pointer; transition: background var(--t); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.4s var(--spring); }
.switch:checked { background: var(--grad-primary); }
.switch:checked::after { transform: translateX(20px); }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }

/* ---------- Списки ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--stroke); }
.li:last-child { border-bottom: 0; }
.li small { display: block; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: var(--r-l);
  border: 1px solid var(--stroke);
  background: var(--grad-card);
  box-shadow: var(--sh-1), var(--hl);
  text-align: left;
  color: var(--text);
  font-weight: 800;
  transition: transform var(--t-fast) var(--ease);
}
.menu-item:active { transform: scale(0.98); }
.menu-item .chev { margin-left: auto; color: var(--text-3); }

.avatar { flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-primary); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Состояния ---------- */
.empty { padding: 30px 16px; text-align: center; color: var(--text-2); font-weight: 700; display: grid; gap: 12px; justify-items: center; }
.empty img { width: 72px; height: 72px; animation: floaty 3.6s ease-in-out infinite; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)); }
.spinner { width: 34px; height: 34px; margin: 40px auto; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.1); border-top-color: var(--violet-2); animation: spin 0.8s linear infinite; }
.skel { border-radius: var(--r-s); background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.11) 50%, rgba(255, 255, 255, 0.04) 100%); background-size: 200% 100%; animation: skel 1.4s ease infinite; }

/* ---------- Шторки, окна, уведомления ---------- */
.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3, 1, 10, 0.58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.sheet-back.show { opacity: 1; }
.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 16px calc(22px + var(--safe-b));
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, #26174f 0%, #150d2f 42%, #0e0821 100%);
  border: 1px solid var(--stroke-2);
  border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(105%);
  transition: transform 0.55s var(--spring);
}
.sheet-back.show .sheet { transform: none; }
.sheet-back.closing .sheet { transition: transform 0.3s var(--ease); transform: translateY(105%); }
.sheet-handle { width: 44px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.18); margin: 2px auto 14px; }
.sheet-title { font: 800 18px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 16px; }

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 1, 10, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal-back.show { opacity: 1; }
.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 24px 18px 18px;
  border-radius: 30px;
  background: linear-gradient(160deg, #3d2380 0%, #201248 52%, #150b33 100%);
  border: 1px solid rgba(206, 186, 255, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: scale(0.84) translateY(24px);
  opacity: 0;
  transition: transform 0.55s var(--spring), opacity 0.3s var(--ease);
}
.modal-back.show .modal { transform: none; opacity: 1; }
.modal-back.closing .modal { transform: scale(0.94); opacity: 0; transition: transform 0.25s var(--ease), opacity 0.25s; }
.modal-close { position: absolute; top: 12px; right: 12px; }

.toasts { position: fixed; top: calc(10px + var(--safe-t)); left: 50%; z-index: 300; width: calc(100% - 28px); max-width: 480px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(30, 19, 62, 0.92);
  border: 1px solid var(--stroke-2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--spring);
}
.toast.show { opacity: 1; transform: none; }
.toast .ico svg { width: 18px; height: 18px; }
.toast.success { border-color: rgba(70, 240, 143, 0.45); }
.toast.success .ico { color: var(--green); }
.toast.error { border-color: rgba(255, 77, 109, 0.5); }
.toast.error .ico { color: var(--red); }

/* Окно 18+ */
.gate { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 24px; background: rgba(5, 2, 14, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fadeIn 0.4s var(--ease); }
.gate-box { width: 100%; max-width: 360px; display: grid; gap: 12px; text-align: center; animation: popIn 0.6s var(--spring); }
.gate-18 { width: 96px; height: 96px; margin: 0 auto 6px; border-radius: 30px; display: grid; place-items: center; font: 800 32px var(--font-d); color: #fff; background: var(--grad-primary); box-shadow: 0 20px 50px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.gate h2 { font: 800 22px var(--font-d); text-transform: uppercase; }
.gate-legal { margin-top: 2px; font-size: 11.5px; line-height: 1.5; font-weight: 600; color: var(--text-3); }
.doc-link { color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(167, 139, 250, 0.55); text-underline-offset: 2px; }

/* Приветственное окно (приглашение друзей + промокод) */
.modal.wl { overflow: visible; margin-top: 56px; }
.wl-art { position: relative; width: 120px; height: 120px; margin: -64px auto 4px; }
.wl-art img { width: 100%; height: 100%; animation: floaty 3.2s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5)); }
.wl-title { font: 800 21px/1.2 var(--font-d); text-align: center; text-transform: uppercase; }
.wl-bonus { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 4px; font: 800 38px/1 var(--font-d); }
.wl-bonus .st { width: 36px; height: 36px; }
.wl-sub { text-align: center; color: var(--text-2); font-weight: 700; }
.wl-promo { margin: 16px 0; padding: 14px; border-radius: 20px; text-align: center; border: 1.5px dashed rgba(255, 197, 61, 0.5); background: rgba(255, 197, 61, 0.06); }
.wl-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 197, 61, 0.45);
  background: rgba(255, 197, 61, 0.12);
  color: var(--gold);
  font: 800 18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  transition: transform var(--t-fast) var(--spring);
}
.wl-code:active { transform: scale(0.94); }
.wl-code .ico svg { width: 16px; height: 16px; }

/* Пополнение */
.tu-art { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.tu-art::before { content: ''; position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 197, 61, 0.4), transparent 65%); animation: glow 2.6s ease-in-out infinite; }
.tu-art svg { position: relative; width: 100%; height: 100%; animation: floaty 3.2s ease-in-out infinite; }
.tu-art .tu-svg { display: block; width: 100%; height: 100%; }
.tu-pic { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)); animation: floaty 3.2s ease-in-out infinite; }
.wl-art img { object-fit: contain; }

/* Выбор языка */
.lang-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.04); color: var(--text); font-weight: 800; text-align: left; transition: transform var(--t-fast) var(--ease), background var(--t), border-color var(--t); }
.lang-item:active { transform: scale(0.98); }
.lang-item.on { background: rgba(139, 92, 246, 0.24); border-color: rgba(167, 139, 250, 0.55); }
.lang-item .check { margin-left: auto; color: var(--violet-2); }

.fatal { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; text-align: center; }
.fatal img { width: 96px; height: 96px; }
.fatal p { color: var(--text-2); font-weight: 700; max-width: 300px; }

/* ---------- Анимации ---------- */
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(0.6); } 65% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7%); } }
@keyframes floatyRot { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8%) rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 245, 194, 0.65); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61, 245, 194, 0); } }
@keyframes shine { 0% { left: -70%; } 55%, 100% { left: 140%; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes glow { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes shimmerText { 0% { background-position: 220% 0; } 100% { background-position: -20% 0; } }
@keyframes bootSpin { 0% { transform: rotateY(0deg) translateY(0); } 50% { transform: rotateY(180deg) translateY(-9px); } 100% { transform: rotateY(360deg) translateY(0); } }
@keyframes bootBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes logoSpin { 0%, 70% { transform: rotateY(0deg); } 85%, 100% { transform: rotateY(360deg); } }
@keyframes drift1 { to { transform: translate3d(14vmax, 12vmax, 0) scale(1.18); } }
@keyframes drift2 { to { transform: translate3d(-16vmax, 10vmax, 0) scale(1.12); } }
@keyframes drift3 { to { transform: translate3d(10vmax, -14vmax, 0) scale(1.2); } }
@keyframes winPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (max-width: 360px) {
  .view { padding-left: 10px; padding-right: 10px; }
  .brand-name b { font-size: 12px; }
  .bet-quick .chip { font-size: 12px; }
}

/* ---------- Пополнение звёздами Telegram (common.js → openTopUp, шторка «Пополнить баланс») ---------- */
.tu-dep { display: flex; flex-direction: column; gap: 12px; }
.tu-art.tu-art-sm { width: 84px; height: 84px; }
.tu-lead { text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--text-2); }
.tu-dep > .label { margin-bottom: -4px; }
.tu-presets { display: grid; grid-template-columns: repeat(var(--tu-cols, 3), minmax(0, 1fr)); gap: 8px; }
.tu-preset { height: 46px; padding: 0 6px; border-radius: 14px; gap: 6px; font-size: 15px; font-variant-numeric: tabular-nums; }
.tu-preset b { font-weight: 800; }
.tu-preset .st { width: 18px; height: 18px; }
/* Выбор способа пополнения и «Картой или через СБП» (заготовка; видят только админы в режиме предпросмотра) */
.tu-methods { display: flex; flex-direction: column; gap: 10px; }
.tu-m { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; background: var(--well); border: 1px solid var(--stroke-2); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color var(--t), transform var(--t); }
.tu-m:active { transform: scale(0.98); }
.tu-m > .ic-tile { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.tu-m > .ic-tile svg { width: 22px; height: 22px; }
.tu-m > .ico { flex: none; width: 18px; height: 18px; color: var(--text-3); }
.tu-m-t { display: block; font: 800 15px/1.25 var(--font-d); }
.tu-m-s { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text-3); }
.tu-m .tu-pv { margin-top: 6px; border-radius: 10px; line-height: 1.35; } /* на узком экране — в две строки, не «капсулой» */
.tu-pv { display: inline-block; align-self: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; color: #ffd27a; background: rgba(255, 196, 77, 0.12); border: 1px solid rgba(255, 196, 77, 0.28); }
.tu-preset-rub { height: 56px; flex-direction: column; justify-content: center; gap: 1px; }
.tu-pr-top { display: inline-flex; align-items: center; gap: 6px; }
.tu-rub { font-size: 11px; font-weight: 700; color: var(--text-3); }
.tu-preset-rub.on .tu-rub { color: inherit; opacity: 0.8; }
.tu-in { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border-radius: 16px; background: var(--well); border: 1px solid var(--stroke-2); cursor: text; transition: border-color var(--t), box-shadow var(--t); }
.tu-in:focus-within { border-color: rgba(167, 139, 250, 0.7); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16); }
.tu-in.bad { border-color: rgba(255, 77, 109, 0.65); box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12); }
.tu-in .st { width: 22px; height: 22px; }
.tu-in-f { flex: 1; min-width: 0; height: 100%; padding: 0; background: none; border: 0; outline: none; color: var(--text); font: 800 19px var(--font); font-variant-numeric: tabular-nums; }
.tu-in-f::placeholder { font-size: 15px; font-weight: 700; }
.tu-in-f:disabled { opacity: 0.6; }
.tu-hint { margin-top: -6px; min-height: 16px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-3); transition: color var(--t); }
.tu-hint.bad { color: #ff8fa5; animation: fadeUp 0.25s var(--ease); }
.tu-pay .st { width: 20px; height: 20px; }
.tu-pay .amt b { font-size: 17px; }
.tu-pay.busy:disabled { opacity: 1; filter: none; }
.tu-spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid rgba(59, 34, 0, 0.22); border-top-color: #3b2200; animation: spin 0.8s linear infinite; }
.tu-note { text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.45; color: var(--text-3); }
.tu-svg { display: block; }
.tu-svg svg { display: block; width: 100%; height: 100%; }

/* Ожидание оплаты и зачисления */
.tu-wait { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 12px; text-align: center; animation: fadeIn 0.3s var(--ease); }
.tu-wait-art { position: relative; width: 112px; height: 112px; margin-bottom: 6px; display: grid; place-items: center; }
.tu-wait-art::before { content: ''; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 197, 61, 0.34), transparent 65%); animation: glow 2.4s ease-in-out infinite; }
.tu-wait-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 197, 61, 0.16); border-top-color: var(--gold); animation: spin 1.1s linear infinite; }
.tu-wait-art .tu-svg { position: relative; width: 58px; height: 58px; animation: floaty 2.6s ease-in-out infinite; }
.tu-wait-t { font: 800 16px/1.3 var(--font-d); }
.tu-wait-p { max-width: 320px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--text-2); }

/* Зачислено */
.tu-ok { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: fadeIn 0.3s var(--ease); }
.tu-ok-art { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.tu-ok-art .tu-ok-pic { position: relative; width: 108px; height: 108px; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.5)); animation: tuPop 0.75s var(--spring) both, floaty 3.2s ease-in-out 0.8s infinite; }
.tu-ok-art .tu-svg { position: relative; width: 92px; height: 92px; animation: tuPop 0.75s var(--spring) both; }
.tu-ok-ring { position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255, 197, 61, 0.7); animation: tuRing 1.1s var(--ease) both; }
.tu-ok-ring.r2 { border-color: rgba(70, 240, 143, 0.6); animation-delay: 0.18s; }
.tu-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.tu-burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0; animation: tuBurst 0.95s var(--ease) 0.1s both; }
.tu-burst i:nth-child(3n + 1) { background: var(--green); }
.tu-burst i:nth-child(3n + 2) { background: #fff3b0; border-radius: 2px; }
.tu-ok-title { margin-top: 2px; font: 800 18px/1.2 var(--font-d); text-transform: uppercase; }
.tu-ok-amt { display: flex; align-items: center; gap: 6px; font: 800 40px/1 var(--font-d); font-variant-numeric: tabular-nums; animation: popIn 0.6s var(--spring) 0.15s both; }
.tu-ok-amt b { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tu-ok-amt .st { width: 36px; height: 36px; }
.tu-ok .grid2 { width: 100%; margin-top: 8px; }

/* Платёж ещё обрабатывается или на проверке */
.tu-info { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0 2px; text-align: center; animation: fadeIn 0.3s var(--ease); }
.tu-info .ic-tile { width: 58px; height: 58px; border-radius: 19px; animation: popIn 0.5s var(--spring) both; }
.tu-info .ic-tile svg { width: 28px; height: 28px; }
.tu-info-t { font: 800 16px/1.3 var(--font-d); }
.tu-info .btn { width: 100%; }

@keyframes tuPop { 0% { opacity: 0; transform: scale(0.4) rotate(-12deg); } 60% { opacity: 1; transform: scale(1.12) rotate(4deg); } 100% { opacity: 1; transform: none; } }
@keyframes tuRing { 0% { opacity: 0.9; transform: scale(0.55); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes tuBurst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(var(--s)); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(var(--s)); } }
@media (max-width: 360px) {
  .tu-preset { padding: 0 4px; font-size: 14px; }
  .tu-ok-amt { font-size: 34px; }
}
