:root {
  --bg: #07080f;
  --bg-soft: #0d0f1c;
  --card: #121527;
  --card-hi: #1a1f38;
  --text: #eaf1ff;
  --muted: #7c87aa;

  /* неоновая палитра */
  --neon-cyan: #00e6ff;
  --neon-magenta: #ff2bd6;
  --neon-green: #2bff9e;
  --neon-purple: #9d6bff;
  --neon-gold: #ffd23f;
  --accent: var(--neon-cyan);
  --red: #ff4d6d;

  --glow-cyan: 0 0 10px rgba(0,230,255,.55);
  --glow-magenta: 0 0 12px rgba(255,43,214,.5);
  --glow-gold: 0 0 10px rgba(255,210,63,.55);

  /* редкость */
  --common: #8b93ad;
  --uncommon: #36c4ff;
  --rare: #7b74ff;
  --epic: #d24bff;
  --legendary: #ffb000;
}

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

html { background: var(--bg); overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Rajdhani', -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  padding-bottom: 84px;
  letter-spacing: .2px;
  overflow-x: hidden;            /* без горизонтальной прокрутки */
  max-width: 100vw;
}

/* ── Фон-картинка с затемнением ── */
#bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 38%, rgba(7,8,15,.30), rgba(7,8,15,.86) 70%),
    url('/static/logo_anim.webp');
  background-position: center center, center 16%;
  background-size: cover, min(86vw, 460px);
  background-repeat: no-repeat, no-repeat;
  /* пульсация под бит музыки (--beat: 0..1) */
  transform: scale(calc(1 + var(--beat, 0) * 0.05));
  filter: brightness(calc(1 + var(--beat, 0) * 0.45)) saturate(calc(1 + var(--beat, 0) * 0.6));
  transition: transform .08s ease-out, filter .08s ease-out;
}
/* неоновая вспышка по биту поверх фона */
#bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 60%, rgba(0,230,255,.18), transparent 60%);
  opacity: var(--beat, 0);
  transition: opacity .08s ease-out;
}
#bg .orn {
  position: absolute; width: 240px; height: 240px; opacity: .12;
  will-change: transform;
}
@keyframes ornspin { to { transform: rotate(360deg); } }
.o1 { top: -60px; left: -70px; width: 260px; height: 260px; animation: ornspin 95s linear infinite; }
.o2 { top: 16%; right: -90px; width: 320px; height: 320px; opacity: .1;
  animation: ornspin 140s linear infinite reverse; }
.o3 { top: 44%; left: -100px; width: 300px; height: 300px; opacity: .11;
  animation: ornspin 115s linear infinite; }
.o4 { bottom: 14%; right: -70px; width: 250px; height: 250px;
  animation: ornspin 105s linear infinite reverse; }
.o5 { bottom: -80px; left: 28%; width: 280px; height: 280px; opacity: .1;
  animation: ornspin 150s linear infinite; }
@media (prefers-reduced-motion: reduce) { #bg .orn { animation: none; } }

/* ── Иконки ── */
.ic { width: 1.15em; height: 1.15em; stroke: currentColor; stroke-width: 1.9;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.18em; flex: 0 0 auto; }
.ic-star, .gem .ic { fill: currentColor; stroke: none; }
.ic-star { color: var(--neon-gold); filter: drop-shadow(var(--glow-gold)); }

/* ── Верхняя панель ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 12px; max-width: 100%; box-sizing: border-box;
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(180deg, #0d0f1cF2, #07080fcc);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #00e6ff22;
}
.logo {
  font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 13px;
  letter-spacing: .8px; color: var(--text);
  text-shadow: var(--glow-cyan);
  min-width: 0; overflow: hidden; white-space: nowrap;
}
.logo span { color: var(--neon-magenta); text-shadow: var(--glow-magenta); }
.balance {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #1a1f38, #121527);
  color: var(--text); border: 1px solid #ffd23f55; border-radius: 999px;
  padding: 8px 14px; font-family: 'Rajdhani'; font-weight: 700; font-size: 16px;
  cursor: pointer; box-shadow: 0 0 14px #ffd23f22;
}
.balance:active { transform: scale(.96); }
.bal-plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-left: 2px;
  border-radius: 50%; background: linear-gradient(180deg, #34d058, #1b8f3a);
  color: #fff; font-weight: 800; font-size: 14px; line-height: 1;
  box-shadow: 0 0 8px #34d05888; animation: balPlus 1.6s ease-in-out infinite;
}
@keyframes balPlus { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.18); box-shadow: 0 0 14px #34d058cc; } }
.nofx .bal-plus { animation: none; }
.tb-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.iconbtn { background: none; border: none; color: var(--muted); padding: 4px; cursor: pointer; display: inline-flex; }
.iconbtn .ic { width: 22px; height: 22px; }
.iconbtn:active { transform: scale(.9); }
.iconbtn.muted { color: #4a5270; }
.lang-btn { font-family: 'Orbitron'; font-weight: 700; font-size: 12px; color: var(--accent);
  border: 1px solid #00e6ff44; border-radius: 8px; padding: 4px 7px; min-width: 32px; justify-content: center; }
.lang-btn:active { transform: scale(.94); }
.balance .ic-star { width: 1em; height: 1em; }

/* ── Нижняя навигация ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex;
  background: linear-gradient(180deg, #0d0f1cf0, #07080f);
  border-top: 1px solid #00e6ff2b;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px #000000aa;
}
.tabbar .tab {
  flex: 1; background: none; border: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: 'Rajdhani'; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: 4px 2px; cursor: pointer; transition: color .15s;
}
.tabbar .tab .ic { width: 23px; height: 23px; }
.tabbar .tab.active { color: var(--accent); filter: drop-shadow(var(--glow-cyan)); }
.tabbar .tab:active { transform: scale(.9); }
.tabbar .tab[hidden] { display: none; }
/* блокировка навигации во время прокрутки кейса */
body.spin-lock .tabbar { pointer-events: none; opacity: .45; filter: grayscale(.4); }
body.spin-lock .back { pointer-events: none; opacity: .4; }
/* во время вращения игр блокируем все их кнопки/поля (ставка, быстрые суммы, множители) */
body.spin-lock #view-upgrade input,
body.spin-lock #view-upgrade button,
body.spin-lock #view-wheel input,
body.spin-lock #view-wheel button { pointer-events: none; opacity: .55; }

main { padding: 14px 16px; }
.view { display: none; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.back {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--accent);
  font-family: 'Rajdhani'; font-size: 16px; font-weight: 700; padding: 4px 0; cursor: pointer;
}

h2#case-title {
  font-family: 'Orbitron'; font-weight: 600; font-size: 20px; margin: 10px 0 4px;
  text-shadow: var(--glow-cyan);
}

/* ── Сетка кейсов ── */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-card {
  position: relative; background: linear-gradient(160deg, #161b30, #0f1222);
  border: 1px solid #ffffff14; border-radius: 18px; padding: 20px 12px 16px;
  text-align: center; cursor: pointer; overflow: hidden;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.case-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px;
  background: linear-gradient(135deg, var(--neon-cyan), transparent 40%, var(--neon-magenta));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5;
}
.case-card:active { transform: scale(.96); }
.case-card .case-ic { width: 56px; height: 56px; }

/* мини-пьедестал на карточке кейса (оружие парит над неоновой подставкой) */
.case-podium { position: relative; height: 108px; margin-bottom: 4px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  color: var(--neon-cyan); }
.case-card.t-iron .case-podium { color: var(--neon-green); }
.case-card.t-gold .case-podium { color: var(--neon-gold); }
.case-card.t-asiimov .case-podium { color: #ff7a1a; }
.case-card.t-diamond .case-podium { color: #6fe9ff; }
.cp-beam { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 92px; background: linear-gradient(to top, currentColor, transparent 85%);
  clip-path: polygon(32% 100%, 68% 100%, 86% 0, 14% 0); opacity: .4; filter: blur(2px); }
.cp-skin { position: relative; z-index: 2; width: 120px; height: 80px; object-fit: contain;
  filter: drop-shadow(0 6px 12px #000a); animation: bob 3.4s ease-in-out infinite; }
.case-podium .gem { width: 60px; height: 60px; z-index: 2; }
.cp-base { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 98px; height: 20px; z-index: 1; }
.cp-base .ring { position: absolute; left: 50%; transform: translateX(-50%);
  border-radius: 50%; border: 2px solid currentColor; box-shadow: 0 0 10px currentColor; }
.cp-base .r1 { bottom: 0; width: 98px; height: 18px; opacity: .9; }
.cp-base .r2 { bottom: 6px; width: 64px; height: 12px; opacity: .55; }
.case-card .name { font-weight: 700; margin: 10px 0 4px; font-size: 16px; }
.case-card .price {
  display: inline-flex; align-items: center; gap: 5px; justify-content: center;
  color: var(--neon-gold); font-weight: 700; font-size: 16px;
}
/* тон рамки/иконки по тиру */
.case-card.t-wood .case-ic { color: var(--common); }
.case-card.t-iron .case-ic { color: var(--uncommon); }
.case-card.t-gold .case-ic { color: var(--neon-gold); filter: drop-shadow(var(--glow-gold)); }
.case-card.t-diamond .case-ic { color: var(--neon-cyan); filter: drop-shadow(var(--glow-cyan)); }

/* ── Выбор количества ── */
.qty-sel { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.qty-btn {
  flex: 1 1 18%; min-width: 40px; padding: 10px; border: 1px solid #ffffff1f; border-radius: 10px;
  background: #141828; color: var(--muted);
  font-family: 'Rajdhani'; font-weight: 700; font-size: 16px; cursor: pointer;
}
.qty-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  color: #04121a; border-color: transparent; box-shadow: 0 0 12px #00e6ff55;
}
.qty-btn:disabled { opacity: .5; }
.open-row { display: flex; gap: 8px; }
.open-row #open-btn { flex: 1; display: block; text-align: center; line-height: 1.2; }
.open-row #open-btn .ic { vertical-align: -0.16em; }
.open-row #open-free { flex: 0 0 auto; width: 38%; }
.open-row #open-free:disabled, .open-row #open-btn:disabled { opacity: .5; }

/* ── Рулетка ── */
#roulette-wrap { display: grid; grid-template-columns: 1fr; gap: 8px; }
#roulette-wrap.multi { grid-template-columns: 1fr 1fr; }   /* 2 ленты в ряд */
.roulette.mini { height: 92px; }
.roulette.mini .roll-item { flex: 0 0 64px; height: 68px; }
.roulette.mini .roll-item .skin-img { width: 54px; height: 42px; }
.roulette.mini .roll-item .gem { width: 40px; height: 40px; }
.roulette.mini .roll-item .ri-name { font-size: 8px; max-height: 11px; }
.roulette {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0a0c18, #11142400);
  border: 1px solid #00e6ff33; border-radius: 16px; height: 134px; margin: 16px 0;
  display: flex; align-items: center;
  box-shadow: inset 0 0 30px #00e6ff14;
}
.pointer {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  transform: translateX(-50%);
  background: var(--neon-magenta); z-index: 3;
  box-shadow: 0 0 14px var(--neon-magenta), 0 0 4px #fff;
}
.pointer::before, .pointer::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent;
}
.pointer::before { top: -1px; border-top-color: var(--neon-magenta); }
.pointer::after { bottom: -1px; border-bottom-color: var(--neon-magenta); }

.strip { display: flex; gap: 10px; padding: 0 8px; will-change: transform; }
.roll-item {
  flex: 0 0 100px; height: 102px; border-radius: 12px;
  background: linear-gradient(180deg, #171c31, #10131f);
  border-bottom: 3px solid var(--common);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6px;
}
.roll-item .ri-name { font-size: 10px; color: var(--muted); margin-top: 4px;
  line-height: 1.05; max-height: 22px; overflow: hidden; font-weight: 600; }

/* картинки/иконки скинов */
.skin-img { object-fit: contain; display: block; }
.roll-item .skin-img { width: 84px; height: 62px; }
.item-row .skin-img.row { width: 48px; height: 36px; flex: 0 0 auto; }
.result-item .skin-img.big { width: 156px; height: 116px; margin: 0 auto 6px;
  filter: drop-shadow(0 6px 16px #000a); }
.gem .ic { width: 100%; height: 100%; }
.roll-item .gem { width: 56px; height: 56px; }
.item-row .gem.row { width: 40px; height: 40px; flex: 0 0 auto; }
.result-item .gem.big { width: 90px; height: 90px; display: inline-block; }

/* рарити-фон ячеек рулетки */
.roll-item.r-common    { background: radial-gradient(circle at 50% 38%, #8b93ad33, #0f1320 72%); }
.roll-item.r-uncommon  { background: radial-gradient(circle at 50% 38%, #36c4ff38, #0e1422 72%); }
.roll-item.r-rare      { background: radial-gradient(circle at 50% 38%, #7b74ff42, #0f1022 72%); }
.roll-item.r-epic      { background: radial-gradient(circle at 50% 38%, #d24bff48, #140f22 74%); }
.roll-item.r-legendary { background: radial-gradient(circle at 50% 38%, #ffb00052, #1a1408 74%); }

/* рарити-фон строк содержимого/инвентаря */
.item-row.bl-common    { background: linear-gradient(180deg, #8b93ad1a, #0f1220); }
.item-row.bl-uncommon  { background: linear-gradient(180deg, #36c4ff22, #0e1422); }
.item-row.bl-rare      { background: linear-gradient(180deg, #7b74ff26, #0f1022); }
.item-row.bl-epic      { background: linear-gradient(180deg, #d24bff2b, #140f22); }
.item-row.bl-legendary { background: linear-gradient(180deg, #ffb0002e, #1a1408); }

/* рарити-фон мини-пьедесталов в мульти-результате */
.rg-card.r-common    { background: radial-gradient(circle at 50% 30%, #8b93ad26, #0f1320 72%); }
.rg-card.r-uncommon  { background: radial-gradient(circle at 50% 30%, #36c4ff30, #0e1422 72%); }
.rg-card.r-rare      { background: radial-gradient(circle at 50% 30%, #7b74ff38, #0f1022 72%); }
.rg-card.r-epic      { background: radial-gradient(circle at 50% 30%, #d24bff40, #140f22 74%); }
.rg-card.r-legendary { background: radial-gradient(circle at 50% 30%, #ffb00048, #1a1408 74%); }

/* редкость — цвет рамки/свечения */
.r-common    { border-color: var(--common);    color: var(--common); }
.r-uncommon  { border-color: var(--uncommon);   color: var(--uncommon); }
.r-rare      { border-color: var(--rare);       color: var(--rare); }
.r-epic      { border-color: var(--epic);       color: var(--epic);
  box-shadow: 0 0 16px #d24bff44; }
.r-legendary { border-color: var(--legendary);  color: var(--legendary);
  box-shadow: 0 0 20px #ffb00055; }

/* ── Кнопки ── */
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--neon-cyan), #1aa3ff 55%, var(--neon-magenta));
  color: #04121a; border: none; border-radius: 14px;
  font-family: 'Rajdhani'; font-weight: 700; font-size: 16px; text-transform: uppercase;
  letter-spacing: .6px; padding: 14px; cursor: pointer; width: 100%;
  box-shadow: 0 6px 20px #00e6ff3a, 0 2px 8px #ff2bd62a;
}
.primary:active { transform: scale(.98); }
.primary:disabled { opacity: .5; box-shadow: none; }
.primary.big { font-size: 18px; padding: 16px; }
.secondary {
  background: #161a2e; color: var(--text); border: 1px solid #ffffff1f;
  border-radius: 14px; font-family: 'Rajdhani'; font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: .5px; padding: 13px; cursor: pointer; width: 100%;
}

/* ── Заголовки секций ── */
.section-title {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; text-transform: uppercase;
  letter-spacing: 1.2px; font-weight: 700; margin: 22px 0 10px;
}
.section-title .ic { width: 16px; height: 16px; }

/* ── Списки предметов ── */
.items-list { display: flex; flex-direction: column; gap: 9px; }
.item-row {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #141828, #0f1220);
  border-radius: 12px; padding: 10px 12px; border: 1px solid #ffffff0d;
  border-left: 3px solid var(--common);
}
.item-row .ir-name { flex: 1; font-weight: 700; font-size: 14px; }
.item-row .ir-value { display: inline-flex; align-items: center; gap: 4px;
  color: var(--neon-gold); font-weight: 700; }
.item-row .ir-chance { color: var(--muted); font-size: 12px; min-width: 50px; text-align: right; font-weight: 600; }
.item-row .ir-mkt { display: block; color: var(--muted); font-size: 11px; font-weight: 600; margin-top: 2px; }
.item-row.bl-common    { border-left-color: var(--common); }
.item-row.bl-uncommon  { border-left-color: var(--uncommon); }
.item-row.bl-rare      { border-left-color: var(--rare); }
.item-row.bl-epic      { border-left-color: var(--epic); box-shadow: 0 0 14px #d24bff1f; }
.item-row.bl-legendary { border-left-color: var(--legendary); box-shadow: 0 0 14px #ffb0001f; }

.inv-summary { display: flex; flex-direction: column; gap: 10px; color: var(--muted);
  margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.btn-sellall { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--neon-green), #12c47a); color: #04210f;
  border: none; border-radius: 12px; padding: 12px; font-family: 'Rajdhani';
  font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; }
.btn-sellall:active { transform: scale(.98); }
.btn-sellall .ic { width: 18px; height: 18px; }
.inv-actions { display: flex; gap: 8px; }
.inv-actions button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 38px; border: none; border-radius: 10px; cursor: pointer;
}
.inv-actions .ic { width: 19px; height: 19px; }
.btn-sell { background: linear-gradient(135deg, var(--neon-green), #12c47a); color: #04210f; }
.btn-wd { background: #1a2036; color: var(--neon-cyan); border: 1px solid #00e6ff44 !important; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 15px; }

/* ── Модалки ── */
.modal {
  position: fixed; inset: 0; z-index: 20;
  background: #000000c0; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
/* Гейт обязательной подписки */
.sub-gate {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(7,8,15,.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.sub-gate.hidden { display: none; }
.sub-box {
  max-width: 360px; width: 100%; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #141829, #0d1020);
  border: 1px solid #00e6ff44; border-radius: 22px; padding: 30px 22px;
  box-shadow: 0 0 40px #00e6ff22;
}
.sub-title { font-family: 'Orbitron'; font-weight: 700; font-size: 20px; color: var(--text); text-shadow: var(--glow-cyan); }
.sub-text { color: var(--muted); font-size: 14px; line-height: 1.5; }
.sub-box .primary, .sub-box .secondary { width: 100%; }
.modal.hidden { display: none; }
.modal-card {
  position: relative; background: linear-gradient(180deg, #141829, #0d1020);
  border: 1px solid #00e6ff33; border-radius: 20px;
  padding: 24px; width: 100%; max-width: 360px; text-align: center;
  box-shadow: 0 0 40px #00e6ff22; animation: pop .22s ease;
  max-height: 88vh; overflow-y: auto;
}
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title {
  font-family: 'Orbitron'; font-weight: 600; font-size: 16px; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 16px; color: var(--accent); text-shadow: var(--glow-cyan);
}
.modal-actions { display: flex; flex-direction: row; gap: 8px; margin-top: 16px; }
.modal-actions .primary, .modal-actions .secondary { flex: 1; padding: 13px 8px; font-size: 14px; }
/* ── Пьедестал-reveal (скин парит над неоновой подставкой) ── */
.podium { position: relative; height: 168px; margin: -2px 0 6px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.podium-beam {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 142px;
  background: linear-gradient(to top, currentColor 0%, transparent 85%);
  clip-path: polygon(34% 100%, 66% 100%, 88% 0, 12% 0);
  opacity: .4; filter: blur(3px);
}
.podium-skin {
  position: relative; z-index: 2; width: 184px; height: 122px; object-fit: contain;
  filter: drop-shadow(0 10px 22px #000b); animation: bob 3s ease-in-out infinite;
}
.podium .gem.podium-skin { width: 96px; height: 96px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.podium-base { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 162px; height: 34px; z-index: 1; }
.podium-base .ring { position: absolute; left: 50%; transform: translateX(-50%);
  border-radius: 50%; border: 2px solid currentColor;
  box-shadow: 0 0 14px currentColor, inset 0 0 8px currentColor; }
.ring.r1 { bottom: 0; width: 162px; height: 30px; opacity: .95; }
.ring.r2 { bottom: 9px; width: 116px; height: 22px; opacity: .6; }
.ring.r3 { bottom: 16px; width: 76px; height: 14px; opacity: .4; }
.sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.spark { position: absolute; bottom: 30px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 6px currentColor; opacity: 0;
  animation-name: sparkrise; animation-iteration-count: infinite; animation-timing-function: ease-out; }
@keyframes sparkrise {
  0% { opacity: 0; transform: translateY(0) scale(.5); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-122px) scale(1); }
}

.result-item { padding: 18px; border-radius: 16px;
  background: radial-gradient(circle at 50% 30%, #1b2240, #0d1020);
  border: 2px solid var(--common); }
.result-item .nm { font-weight: 700; font-size: 18px; margin: 8px 0 2px; }
.result-item .vl { display: inline-flex; align-items: center; gap: 5px; justify-content: center;
  color: var(--neon-gold); font-weight: 700; font-size: 16px; }
.result-item .mkt { color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 600; }
.result-item.r-common    { border-color: var(--common);
  background: radial-gradient(circle at 50% 28%, #8b93ad33, #0b0e18 72%); box-shadow: 0 0 18px #8b93ad33; }
.result-item.r-uncommon  { border-color: var(--uncommon);
  background: radial-gradient(circle at 50% 28%, #36c4ff3a, #0a1018 72%); box-shadow: 0 0 26px #36c4ff55; }
.result-item.r-rare      { border-color: var(--rare);
  background: radial-gradient(circle at 50% 28%, #7b74ff42, #0c0c1a 72%); box-shadow: 0 0 30px #7b74ff66; }
.result-item.r-epic      { border-color: var(--epic);
  background: radial-gradient(circle at 50% 28%, #d24bff48, #140c1f 72%); box-shadow: 0 0 36px #d24bff77; }
.result-item.r-legendary { border-color: var(--legendary);
  background: radial-gradient(circle at 50% 28%, #ffb0004f, #19130a 72%); box-shadow: 0 0 44px #ffb00088; }

/* ореол за скином */
.podium-halo { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 210px; height: 210px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, currentColor, transparent 62%); opacity: .22; filter: blur(10px); }

/* бейдж редкости */
.rarity-chip { display: inline-block; margin: 2px 0 2px; padding: 3px 14px; border-radius: 999px;
  font-family: 'Rajdhani'; font-weight: 800; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: currentColor; border: 1px solid currentColor; box-shadow: 0 0 12px currentColor; background: #00000055; }

/* сетка результатов мульти-открытия */
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.rg-card { background: var(--bg-soft); border: 1px solid var(--common); color: var(--common);
  border-radius: 10px; padding: 8px 4px 6px; text-align: center; }
.rg-card.r-uncommon  { color: var(--uncommon); }
.rg-card.r-rare      { color: var(--rare); }
.rg-card.r-epic      { color: var(--epic); }
.rg-card.r-legendary { color: var(--legendary); }
/* мини-пьедестал в сетке мульти-результата */
.rg-pod { position: relative; height: 62px; margin-bottom: 2px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.rg-beam { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 56px; background: linear-gradient(to top, currentColor, transparent 85%);
  clip-path: polygon(32% 100%, 68% 100%, 86% 0, 14% 0); opacity: .4; filter: blur(2px); }
.rg-skin { position: relative; z-index: 2; width: 80px; height: 54px; object-fit: contain;
  filter: drop-shadow(0 4px 8px #000a); animation: bob 3.4s ease-in-out infinite; }
.rg-card:nth-child(2) .rg-skin { animation-delay: .5s; }
.rg-card:nth-child(3) .rg-skin { animation-delay: 1s; }
.rg-card:nth-child(4) .rg-skin { animation-delay: 1.5s; }
.rg-card:nth-child(5) .rg-skin { animation-delay: .8s; }
.rg-card:nth-child(6) .rg-skin { animation-delay: 1.2s; }
.rg-card:nth-child(7) .rg-skin { animation-delay: .3s; }
.rg-card:nth-child(8) .rg-skin { animation-delay: 1.7s; }
.rg-pod .gem { width: 40px; height: 40px; z-index: 2; }
.rg-base { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 14px; z-index: 1; }
.rg-base .ring { position: absolute; left: 50%; transform: translateX(-50%);
  border-radius: 50%; border: 1.5px solid currentColor; box-shadow: 0 0 8px currentColor; }
.rg-base .r1 { bottom: 0; width: 62px; height: 12px; opacity: .9; }
.rg-base .r2 { bottom: 4px; width: 40px; height: 8px; opacity: .5; }
.rg-card .skin-img { width: 64px; height: 48px; margin: 0 auto; }
.rg-card .gem { width: 44px; height: 44px; display: inline-block; }
.rg-card .rg-name { font-size: 9px; color: var(--muted); line-height: 1.05;
  max-height: 22px; overflow: hidden; margin-top: 4px; }
.rg-card .rg-val { color: var(--neon-gold); font-weight: 700; font-size: 12px;
  margin-top: 3px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.rg-card.r-common    { border-color: #8b93ad88; box-shadow: 0 0 10px #8b93ad33; }
.rg-card.r-uncommon  { border-color: var(--uncommon); box-shadow: 0 0 14px #36c4ff55; }
.rg-card.r-rare      { border-color: var(--rare); box-shadow: 0 0 18px #7b74ff66; }
.rg-card.r-epic      { border-color: var(--epic); box-shadow: 0 0 22px #d24bff77; }
.rg-card.r-legendary { border-color: var(--legendary); box-shadow: 0 0 26px #ffb00088; }

/* ореол, бейдж и $-цена в мульти-карточках */
.rg-card { position: relative; }
.rg-halo { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 92px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, currentColor, transparent 62%); opacity: .25; filter: blur(7px); }
.rg-chip { display: inline-block; margin: 3px 0 2px; padding: 1px 8px; border-radius: 999px;
  font-family: 'Rajdhani'; font-weight: 800; font-size: 8px; letter-spacing: 1px; text-transform: uppercase;
  color: currentColor; border: 1px solid currentColor; box-shadow: 0 0 8px currentColor; background: #00000055; }
.rg-usd { color: var(--muted); font-size: 10px; font-weight: 600; margin-top: 1px; }
.rg-total { grid-column: 1 / -1; text-align: center; font-weight: 700; font-size: 16px;
  margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 5px; }

.deposit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.dep, .testtop {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: linear-gradient(180deg, #1a2036, #131728); color: var(--text);
  border: 1px solid #ffd23f3a; border-radius: 12px; padding: 16px;
  font-family: 'Rajdhani'; font-weight: 700; font-size: 17px; cursor: pointer;
}
.dep:active, .testtop:active { transform: scale(.97); }
.dep { flex-direction: column; gap: 4px; position: relative; }
.dep-coins { display: inline-flex; align-items: center; gap: 5px; font-size: 18px; font-weight: 700; color: var(--neon-gold); }
.dep-stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.dep-bonus { position: absolute; top: 6px; right: 8px; font-size: 11px; font-weight: 800;
  color: #04210f; background: var(--neon-green); padding: 1px 6px; border-radius: 8px; }

.ic-coin { color: var(--neon-gold); filter: drop-shadow(var(--glow-gold)); }

/* своя сумма пополнения */
.dep-custom { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dep-custom input { background: #0e1120; border: 1px solid #ffd23f3a; color: var(--text);
  border-radius: 11px; padding: 12px; font-family: 'Rajdhani'; font-weight: 700; font-size: 15px; text-align: center; }
.dep-custom input:focus { outline: none; border-color: var(--neon-gold); box-shadow: var(--glow-gold); }
.dep-calc { display: flex; align-items: center; justify-content: center; gap: 5px;
  color: var(--neon-gold); font-weight: 700; font-size: 14px; }

/* оплата картой */
.card-panel { display: flex; flex-direction: column; gap: 10px; }
.card-panel input { background: #0e1120; border: 1px solid #ffd23f3a; color: var(--text);
  border-radius: 11px; padding: 12px; font-family: 'Rajdhani'; font-weight: 700; font-size: 16px; text-align: center; }
.card-panel input:focus { outline: none; border-color: var(--neon-gold); box-shadow: var(--glow-gold); }
.card-info { background: #0c1120; border: 1px solid #00e6ff2e; border-radius: 11px; padding: 10px 12px; }
.ci-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0;
  font-family: 'Rajdhani'; font-weight: 600; color: var(--muted); }
.ci-row b { color: var(--accent); font-size: 15px; letter-spacing: .5px; }
.card-hint { color: var(--muted); font-size: 12px; text-align: center; }

/* ── Розыгрыш ── */
.rf-card { background: linear-gradient(160deg, #1a1330, #11142a); border: 1px solid #c06bff44;
  border-radius: 16px; padding: 16px; margin: 10px 0; box-shadow: 0 0 24px #c06bff1c; }
.rf-card.last { border-color: #ffd23f55; box-shadow: 0 0 18px #ffd23f1c; }
.rf-img { display: block; width: 72%; max-width: 250px; margin: 0 auto 8px;
  filter: drop-shadow(0 8px 22px #000b); }
.rf-img.blend { mix-blend-mode: screen; }   /* для .gif с чёрным фоном */
/* неоновый фон НА ВСЮ карточку приза, нож «парит» без квадрата */
.rf-card.neoncard { position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 32%, #321555, #15182e 76%); border-color: #c06bff55; }
.rf-card.neoncard::before { content: ""; position: absolute; inset: -45%; z-index: 0;
  background: conic-gradient(from 0deg, #00e6ff55, #c06bff55, #2bff9e66, #00e6ff55);
  animation: neonspin 7s linear infinite; filter: blur(46px); opacity: .55; }
.rf-card.neoncard > * { position: relative; z-index: 1; }
@keyframes neonspin { to { transform: rotate(360deg); } }

.card-dev { text-align: center; padding: 26px 16px; font-family: 'Rajdhani'; font-weight: 700;
  font-size: 15px; color: #ffd27a; line-height: 1.6;
  background: linear-gradient(135deg, #2a1f0e, #1a1408); border: 1px solid #ffb02955; border-radius: 14px; }

/* ── Режим без эффектов (слабые телефоны) ── */
.nofx .rf-fx { display: none !important; }                 /* дым и искры */
.nofx .rf-card.neoncard::before { animation: none !important; filter: blur(30px); opacity: .4; }  /* без вращения неона */
.nofx #bg::after { display: none !important; }             /* без вспышек по биту */
.nofx #bg { transform: none !important; filter: none !important;   /* без пульса фона */
  background-image:
    radial-gradient(circle at 50% 38%, rgba(7,8,15,.30), rgba(7,8,15,.86) 70%),
    url('/static/logo_static.jpg') !important;   /* статичный лого на слабых телефонах */
}

/* дым + блёстки за ножом */
.rf-card.neoncard .rf-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none; border-radius: inherit; }
.rf-fx .smoke { position: absolute; border-radius: 50%; filter: blur(26px); opacity: 0; }
.rf-fx .smoke.s1 { left: 18%; bottom: -10%; width: 55%; height: 60%;
  background: radial-gradient(circle, #c06bff66, transparent 70%); animation: smoke 7s ease-in-out infinite; }
.rf-fx .smoke.s2 { left: 40%; bottom: -14%; width: 60%; height: 70%;
  background: radial-gradient(circle, #00e6ff55, transparent 70%); animation: smoke 9s ease-in-out 1.5s infinite; }
.rf-fx .smoke.s3 { left: 5%; bottom: -6%; width: 50%; height: 55%;
  background: radial-gradient(circle, #2bff9e4d, transparent 70%); animation: smoke 8s ease-in-out 3s infinite; }
@keyframes smoke {
  0%   { transform: translateY(20%) scale(.7); opacity: 0; }
  35%  { opacity: .8; }
  100% { transform: translateY(-40%) scale(1.3); opacity: 0; }
}
.rf-card.neoncard .rf-fx { color: #bfe9ff; }   /* цвет блёсток (currentColor) */
.rf-card.neoncard .rf-fx .spark { z-index: 0; bottom: 6px; animation-name: rfrise; }
@keyframes rfrise {
  0%   { opacity: 0; transform: translateY(0) scale(.4); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-360px) scale(1.05); }
}
.rf-prize { font-family: 'Orbitron'; font-weight: 700; font-size: 20px; color: var(--neon-gold);
  text-align: center; text-shadow: 0 0 12px #ffd23f55; }
.rf-name { text-align: center; color: var(--muted); font-family: 'Rajdhani'; font-weight: 700; margin: 4px 0 12px; }
.rf-row { display: flex; justify-content: space-between; padding: 5px 0; font-family: 'Rajdhani'; font-weight: 600; }
.rf-row span { color: var(--muted); }
.rf-card hr { border: none; border-top: 1px solid #ffffff14; margin: 10px 0; }
.rf-mine { font-family: 'Rajdhani'; font-weight: 700; font-size: 16px; }
.rf-chance { font-family: 'Rajdhani'; font-weight: 700; font-size: 16px; color: var(--accent); margin-top: 2px; }
.rf-chance b, .rf-mine b { color: var(--neon-gold); }
.rf-nums { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rf-nums span { font-family: 'Orbitron'; font-weight: 700; font-size: 12px; color: var(--text);
  background: #0e1120; border: 1px solid #ffffff1c; border-radius: 8px; padding: 4px 8px; }
.rf-hint { color: var(--muted); font-size: 12px; margin-top: 10px; text-align: center; }
.lead-list { max-height: 60vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-right: 2px; margin-bottom: 4px; }
.lead-card { background: #11152a; border: 1px solid #ffffff10; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.lead-card.me { border-color: var(--accent); box-shadow: 0 0 10px #00e6ff22; }
.lead-head { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.lead-chev { width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); transition: transform .2s; }
.lead-card.open .lead-chev { transform: rotate(90deg); }
.lead-nums { display: none; margin-top: 8px; }
.lead-card.open .lead-nums { display: block; }
.lead-rank { font-family: 'Orbitron'; font-weight: 700; color: var(--neon-gold); }
.lead-name { flex: 1; font-family: 'Rajdhani'; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-cnt { font-family: 'Rajdhani'; font-weight: 700; color: var(--neon-gold); }
.lead-ch { font-family: 'Orbitron'; font-weight: 700; font-size: 12px; color: var(--accent); }
.rf-nums .more { background: #1c2238; color: var(--muted); }
.rf-win { font-family: 'Rajdhani'; font-weight: 700; text-align: center; color: var(--neon-gold); font-size: 16px; }
.rf-prize2 { text-align: center; color: var(--muted); margin-top: 4px; }

/* ── Турнир (админ) ── */
.tour-list { background: #11152a; border: 1px solid #ffffff10; border-radius: 11px;
  padding: 10px 12px; margin: 8px 0; font-family: 'Rajdhani'; font-weight: 600; font-size: 13px;
  color: var(--text); line-height: 1.5; }
.t-finbtn { width: 100%; margin: 5px 0; }

/* ── Спор по оплате картой ── */
.dispute-badge { color: #ff6b6b; font-family: 'Rajdhani'; font-weight: 700; font-size: 12px;
  border: 1px solid #ff4d6d66; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.wd-note-txt { color: #ffd27a; font-size: 13px; margin: 6px 0; font-weight: 600; }
.mc-dispute { background: #2a1622; color: var(--red); border: 1px solid #ff4d6d55;
  border-radius: 8px; padding: 6px 10px; font-family: 'Rajdhani'; font-weight: 700; font-size: 12px; cursor: pointer; }
.mc-dispute:active { transform: scale(.95); }
#dispute-note { width: 100%; box-sizing: border-box; background: #0e1120; border: 1px solid #ffffff1c;
  color: var(--text); border-radius: 11px; padding: 11px; font-family: 'Rajdhani'; font-weight: 600;
  font-size: 14px; resize: vertical; margin-bottom: 4px; }
#dispute-note:focus { outline: none; border-color: var(--accent); }
.ir-chance.st-approved { color: var(--neon-green); }
.ir-chance.st-rejected { color: var(--red); }
.ir-chance.st-disputed { color: #ffb029; }
.ir-chance.st-pending { color: #ffd27a; }
.dep-amt { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ── Панель процессора ── */
body.processor-mode .tabbar { display: none; }
body.processor-mode main { padding-bottom: 20px; }
.proc-settle { margin: 10px 0 6px; }
.ps-card { background: #11152a; border: 1px solid #00e6ff2e; border-radius: 13px; padding: 14px; }
.ps-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0;
  font-family: 'Rajdhani'; font-weight: 600; color: var(--muted); }
.ps-row b { color: var(--text); }
.ps-row.hl b { color: var(--neon-gold); font-size: 16px; }
.ps-card hr { border: none; border-top: 1px solid #ffffff14; margin: 8px 0; }
.ps-addr { margin-top: 10px; color: var(--accent); font-size: 12px; word-break: break-all;
  font-family: 'Rajdhani'; font-weight: 600; }

/* ── Админ: под-вкладки ── */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 14px; padding-bottom: 4px; }
.admin-tabs .atab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  background: #11152a; border: 1px solid #ffffff14; color: var(--muted);
  border-radius: 10px; padding: 9px 12px; font-family: 'Rajdhani'; font-weight: 700;
  font-size: 13px; cursor: pointer; white-space: nowrap; }
.admin-tabs .atab .ic { width: 15px; height: 15px; }
.admin-tabs .atab.active { background: linear-gradient(135deg, #15324d, #122036);
  border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px #00e6ff22; }
.admin-sec { display: none; }
.admin-sec.active { display: block; }

/* ── Админ ── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card {
  background: linear-gradient(180deg, #141828, #0f1220);
  border: 1px solid #ffffff12; border-radius: 14px; padding: 13px 14px;
}
.stat-card .sc-val { font-family: 'Orbitron'; font-weight: 600; font-size: 19px; }
.stat-card .sc-lbl { color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 600; }
.stat-card.good .sc-val { color: var(--neon-green); text-shadow: 0 0 8px #2bff9e55; }
.stat-card.warn .sc-val { color: var(--neon-gold); text-shadow: var(--glow-gold); }

.wd-row { flex-direction: column; align-items: stretch; gap: 8px; }
.wd-row .wd-head { display: flex; align-items: center; gap: 8px; }
.wd-row .wd-user { color: var(--muted); font-size: 12px; font-weight: 600; }
.wd-row .wd-actions { display: flex; gap: 8px; }
.wd-row .wd-actions button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 10px; padding: 10px; font-family: 'Rajdhani';
  font-weight: 700; font-size: 13px; cursor: pointer; text-transform: uppercase;
}
.wd-actions .ic { width: 16px; height: 16px; }
.btn-approve { background: linear-gradient(135deg, var(--neon-green), #12c47a); color: #04210f; }
.btn-reject { background: #2a1622; color: var(--red); border: 1px solid #ff4d6d55 !important; }

/* Раскрывающаяся карточка заявки на вывод */
.wd-card { background: #11152a; border: 1px solid #ffffff10; border-radius: 13px;
  padding: 11px 13px; margin-bottom: 9px; }
.wd-card .wd-head { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.wd-card .wd-head .ir-name { flex: 1; font-weight: 700; }
.wd-card .wd-chev { width: 18px; height: 18px; color: var(--muted);
  transform: rotate(-90deg); transition: transform .2s; }
.wd-card.open .wd-chev { transform: rotate(90deg); }
.wd-card .wd-user { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 3px; }
.wd-details { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid #ffffff10; }
.wd-card.open .wd-details { display: block; }
.wd-trade { background: #0c1120; border: 1px solid #00e6ff2e; border-radius: 11px; padding: 10px 12px; }
.wd-trade.nourl { border-color: #ffb02955; color: #ffd27a; font-size: 13px; font-weight: 600; }
.wd-tlabel { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.wd-turl { color: var(--accent); font-size: 12px; word-break: break-all; line-height: 1.4;
  font-family: 'Rajdhani'; font-weight: 600; }
.wd-tbtns { display: flex; gap: 8px; margin-top: 9px; }
.wd-tbtns button { flex: 1; border: 1px solid #00e6ff33; background: #102033; color: var(--accent);
  border-radius: 9px; padding: 9px; font-family: 'Rajdhani'; font-weight: 700; cursor: pointer; }
.wd-tbtns button:active { transform: scale(.96); }
.wd-meta { color: var(--muted); font-size: 11px; margin: 9px 0; }
.wd-details .wd-actions { display: flex; gap: 8px; }
.wd-details .wd-actions button {
  flex: 1; border: none; border-radius: 10px; padding: 11px; font-family: 'Rajdhani';
  font-weight: 700; font-size: 13px; cursor: pointer; text-transform: uppercase;
}

.give-form { display: flex; flex-direction: column; gap: 9px; }
.give-form input {
  background: #0e1120; border: 1px solid #ffffff1c; color: var(--text);
  border-radius: 11px; padding: 13px; font-family: 'Rajdhani'; font-weight: 600; font-size: 15px;
}
.give-form input:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-cyan); }
.give-form textarea {
  background: #0e1120; border: 1px solid #ffffff1c; color: var(--text); resize: vertical;
  border-radius: 11px; padding: 13px; font-family: 'Rajdhani'; font-weight: 600; font-size: 15px;
}
.give-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-cyan); }
.wd-reason {
  width: 100%; box-sizing: border-box; background: #0c1120; border: 1px solid #ffffff1c;
  color: var(--text); border-radius: 10px; padding: 10px; margin-bottom: 8px;
  font-family: 'Rajdhani'; font-weight: 600; font-size: 13px;
}
.wd-reason:focus { outline: none; border-color: var(--accent); }

/* прикрепление фото в рассылке */
.bc-photo-lbl { display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: #0e1120; border: 1px dashed #00e6ff44; color: var(--accent);
  border-radius: 11px; padding: 12px; font-family: 'Rajdhani'; font-weight: 700; font-size: 14px; }
.bc-photo-lbl .ic { width: 18px; height: 18px; }
.bc-photo-lbl:active { transform: scale(.99); }

/* выбор цвета кнопки в рассылке */
.bc-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.bc-clabel { color: var(--muted); font-size: 12px; font-weight: 700; margin-right: 2px; }
.bc-color { border: 2px solid #ffffff20; background: #11152a; color: var(--text);
  border-radius: 9px; padding: 7px 12px; font-family: 'Rajdhani'; font-weight: 700;
  font-size: 13px; cursor: pointer; position: relative; }
.bc-color[data-style="primary"], .bc-color[data-style="success"], .bc-color[data-style="danger"] {
  padding-left: 26px; }
.bc-color[style*="--bc"]::before { content: ""; position: absolute; left: 9px; top: 50%;
  transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; background: var(--bc); }
.bc-color.active { border-color: var(--accent); box-shadow: var(--glow-cyan); }
.bc-color:active { transform: scale(.96); }

.top-row .tr-id { color: var(--muted); font-size: 11px; font-weight: 600; }

/* ── Модератор: только просмотр ── */
.mod-badge {
  display: none; margin-bottom: 14px; padding: 11px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #2a1f0e, #1a1408); border: 1px solid #ffb02955;
  color: #ffd27a; font-family: 'Rajdhani'; font-weight: 700; font-size: 13px;
  text-align: center; letter-spacing: .3px;
}
body.is-mod .admin-full { display: none !important; }
body.is-mod .mod-badge { display: block; }

/* ── Игры: хаб ── */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.game-card {
  position: relative; background: linear-gradient(160deg, #161b30, #0f1222);
  border: 1px solid #ffffff14; border-radius: 18px; padding: 24px 12px;
  text-align: center; cursor: pointer; transition: transform .14s;
}
.game-card:active { transform: scale(.96); }
.game-card .game-ic { width: 50px; height: 50px; color: var(--neon-cyan);
  filter: drop-shadow(var(--glow-cyan)); }
.game-card[data-game="upgrade"] .game-ic { color: var(--neon-magenta);
  filter: drop-shadow(var(--glow-magenta)); }
.game-card .game-ic-img { width: 72px; height: 48px; object-fit: contain;
  filter: drop-shadow(0 0 10px #00e6ff66); }
.game-card .name { font-weight: 700; margin: 12px 0 4px; font-size: 17px; }
.game-card .gc-sub { color: var(--muted); font-size: 12px; }
.game-title { font-family: 'Orbitron'; font-weight: 600; font-size: 20px;
  margin: 8px 0 4px; text-shadow: var(--glow-cyan); }

/* ── Барабан ── */
.wheel-area { position: relative; width: 282px; height: 282px; margin: 18px auto; }
.wheel {
  width: 100%; height: 100%; border-radius: 50%; border: 4px solid #0c0f1a;
  box-shadow: 0 0 34px #00e6ff26, inset 0 0 26px #000a; will-change: transform;
}
.wheel-ptr {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 22px solid var(--neon-gold); filter: drop-shadow(0 0 6px var(--neon-gold));
}
.game-result { text-align: center; min-height: 26px; font-weight: 700; font-size: 17px; margin: 8px 0; }
.game-result.win { color: var(--neon-green); text-shadow: 0 0 10px #2bff9e66; }
.game-result.lose { color: var(--red); }

.bet-row { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.bet-row input {
  background: #0e1120; border: 1px solid #ffffff1c; color: var(--text);
  border-radius: 11px; padding: 13px; font-family: 'Rajdhani'; font-weight: 700;
  font-size: 18px; text-align: center;
}
.bet-row input:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-cyan); }
.bet-quick { display: flex; gap: 6px; }
.bet-quick button {
  flex: 1; background: #161a2e; border: 1px solid #ffffff14; color: var(--muted);
  border-radius: 9px; padding: 9px; font-family: 'Rajdhani'; font-weight: 700; cursor: pointer;
}
.bet-quick button:active { transform: scale(.95); }

.color-bets { display: flex; gap: 8px; }
.cbet {
  flex: 1; border: none; border-radius: 12px; padding: 13px 6px; color: #fff;
  font-family: 'Rajdhani'; font-weight: 700; font-size: 13px; line-height: 1.15; cursor: pointer;
}
.cbet b { font-size: 18px; }
.cbet.red { background: linear-gradient(180deg, #e0413e, #9e2725); box-shadow: 0 4px 14px #e0413e33; }
.cbet.black { background: linear-gradient(180deg, #2a3350, #141a2c); }
.cbet.green { flex: 0 0 30%; background: linear-gradient(180deg, #27c07a, #137048); box-shadow: 0 4px 14px #27c07a33; }
.cbet:active { transform: scale(.96); }
.cbet:disabled { opacity: .45; }

/* ── Королевская Битва (джекпот) ── */
.battle-top { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 6px; }
.bt-bankbox { display: flex; flex-direction: column; }
.bt-bank-label { font-family: 'Rajdhani'; font-weight: 700; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.bt-bank-val { display: flex; align-items: center; gap: 6px; font-family: 'Orbitron'; font-weight: 700;
  font-size: 26px; color: var(--neon-gold); text-shadow: 0 0 12px #ffd23f55; }
.bt-bank-val .ic-coin { width: 22px; height: 22px; }
.bt-timer { font-family: 'Orbitron'; font-weight: 700; font-size: 24px; color: var(--text);
  padding: 6px 14px; border-radius: 12px; background: #0e1120; border: 1px solid #ffffff14; min-width: 92px; text-align: center; }
.bt-timer.wait { font-size: 14px; color: var(--muted); }
.bt-timer.roll { color: var(--neon-magenta); border-color: #ff5ea855; box-shadow: 0 0 14px #ff5ea833; animation: btpulse 1s infinite; }
.bt-timer.done { color: var(--neon-green); border-color: #2bff9e55; }
@keyframes btpulse { 50% { opacity: .55; } }

.battle-roll { position: relative; overflow: hidden; height: 80px; margin: 10px 0;
  background: linear-gradient(180deg, #0a0c18, #11142400); border: 1px solid #ff5ea833;
  border-radius: 14px; display: flex; align-items: center; box-shadow: inset 0 0 24px #ff5ea814; }
.br-ptr { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: var(--neon-magenta); z-index: 3; box-shadow: 0 0 12px var(--neon-magenta), 0 0 4px #fff; }
.br-strip { display: flex; gap: 8px; padding: 0 8px; will-change: transform; }
.br-cell { flex: 0 0 58px; height: 58px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron'; font-weight: 700; font-size: 22px; color: #0b0e18;
  background: var(--c, #5b8cff); box-shadow: inset 0 -3px 10px #0004, 0 2px 8px #0006; }

.bt-status { text-align: center; min-height: 22px; font-weight: 700; font-size: 15px; margin: 6px 0; color: var(--muted); }
.bt-status.win { color: var(--neon-gold); text-shadow: 0 0 10px #ffd23f55; font-size: 16px; }
.bt-status .bt-wch { color: var(--muted); font-weight: 600; }

.bt-players { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 2px; max-height: 240px; overflow-y: auto; }
.bt-prow { display: flex; align-items: center; gap: 10px; background: #11152a; border: 1px solid #ffffff10;
  border-radius: 11px; padding: 8px 11px; }
.bt-prow.me { border-color: var(--accent); box-shadow: 0 0 10px #00e6ff22; }
.bt-dot { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: 'Orbitron'; font-weight: 700; font-size: 13px; color: #0b0e18; }
.bt-nm { flex: 1; font-family: 'Rajdhani'; font-weight: 700; color: var(--text); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.bt-ch { font-family: 'Orbitron'; font-weight: 700; font-size: 13px; color: var(--accent); }
.bt-amt { font-family: 'Rajdhani'; font-weight: 700; color: var(--neon-gold); min-width: 64px; text-align: right; }
.bt-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 8px; }

/* ── Камень-ножницы-бумага (PvP) ── */
.rps-create { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.rps-create input {
  background: #0e1120; border: 1px solid #ffffff1c; color: var(--text);
  border-radius: 11px; padding: 13px; font-family: 'Rajdhani'; font-weight: 700;
  font-size: 18px; text-align: center;
}
.rps-create input:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-cyan); }
.rps-note { text-align: center; color: var(--muted); font-size: 12px; margin: 6px 0 4px; }
.rps-list { display: flex; flex-direction: column; gap: 8px; }
.rps-open { display: flex; align-items: center; gap: 10px; background: #11152a;
  border: 1px solid #ffffff10; border-radius: 11px; padding: 9px 12px; }
.ro-name { flex: 1; font-family: 'Rajdhani'; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-bet { font-family: 'Rajdhani'; font-weight: 700; color: var(--neon-gold); }
.ro-join { background: linear-gradient(135deg, var(--neon-green), #14a06a); border: none;
  color: #04130c; font-family: 'Rajdhani'; font-weight: 700; border-radius: 9px; padding: 8px 16px; cursor: pointer; }
.ro-join:active { transform: scale(.96); }

.rps-wait { text-align: center; padding: 30px 0; }
.rps-wait-t { font-family: 'Orbitron'; font-weight: 600; font-size: 18px; margin: 14px 0 4px; }
.rps-wait-s { color: var(--muted); margin-bottom: 18px; }
.rps-spinner { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%;
  border: 4px solid #ffffff14; border-top-color: var(--accent); animation: rpsspin 1s linear infinite; }
@keyframes rpsspin { to { transform: rotate(360deg); } }

.rps-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.rps-side { flex: 1; text-align: center; }
.rps-side .rps-w { font-family: 'Orbitron'; font-weight: 700; font-size: 40px; color: var(--neon-gold);
  text-shadow: 0 0 14px #ffd23f44; line-height: 1; }
.rps-side .rps-who { color: var(--muted); font-family: 'Rajdhani'; font-weight: 700; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rps-mid { flex: 0 0 92px; text-align: center; }
.rps-rno { color: var(--muted); font-size: 12px; font-weight: 700; }
.rps-vs { font-family: 'Orbitron'; font-weight: 700; color: var(--neon-magenta); font-size: 15px; margin: 2px 0; }
.rps-timer { font-family: 'Orbitron'; font-weight: 700; font-size: 18px; color: var(--accent); }
.rps-last { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0; }
.rps-hint { text-align: center; font-family: 'Rajdhani'; font-weight: 700; font-size: 15px; margin: 8px 0; color: var(--text); }
.rps-moves { display: flex; gap: 10px; margin: 6px 0; }
.rps-mv { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #161a2e; border: 2px solid #ffffff14; border-radius: 14px; padding: 14px 4px;
  color: var(--text); cursor: pointer; }
.rps-mv .rps-emo { font-size: 34px; line-height: 1; }
.rps-mv .rps-mn { font-family: 'Rajdhani'; font-weight: 700; font-size: 12px; color: var(--muted); }
.rps-mv.sel { border-color: var(--accent); box-shadow: var(--glow-cyan); }
.rps-mv:active { transform: scale(.96); }
.rps-mv:disabled { opacity: .5; }

.rps-duel { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 20px 0 6px; }
.rps-throw { font-size: 64px; line-height: 1; }
.rps-throw.pop { animation: rpspop .35s ease; }
@keyframes rpspop { 0% { transform: scale(.4) rotate(-12deg); opacity: .3; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.rps-duel-vs { font-family: 'Orbitron'; font-weight: 700; color: var(--neon-magenta); font-size: 18px; }
.rps-rline { text-align: center; font-family: 'Rajdhani'; font-weight: 700; font-size: 17px; margin: 4px 0; }

.rps-final { text-align: center; padding: 26px 0; }
.rps-final-t { font-family: 'Orbitron'; font-weight: 700; font-size: 26px; }
.rps-final.win .rps-final-t { color: var(--neon-gold); text-shadow: 0 0 16px #ffd23f55; }
.rps-final.lose .rps-final-t { color: var(--red); }
.rps-score { font-family: 'Orbitron'; font-weight: 700; font-size: 32px; margin: 10px 0; }
.rps-net { color: var(--neon-green); font-family: 'Rajdhani'; font-weight: 700; margin-bottom: 16px; }

/* ── Апгрейдер ── */
.up-area { display: flex; justify-content: center; margin: 16px 0; }
.up-gauge { position: relative; width: 230px; height: 230px; border-radius: 50%;
  background: #1b2233; }
.up-gauge::after { content: ""; position: absolute; inset: 18px; border-radius: 50%;
  background: var(--bg-soft); box-shadow: inset 0 0 20px #000; }
.up-arrow {
  position: absolute; left: calc(50% - 2.5px); bottom: 50%; width: 5px; height: 46%;
  background: linear-gradient(var(--neon-gold), #ffd23f00); border-radius: 3px; z-index: 3;
  transform-origin: 50% 100%; transform: rotate(0deg);
  box-shadow: 0 0 10px var(--neon-gold);
  transition: transform 4s cubic-bezier(0.18, 0.85, 0.12, 1);
}
.up-center { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; z-index: 2; }
#up-chance { font-family: 'Orbitron'; font-weight: 600; font-size: 24px; color: var(--neon-green); }
.up-mults { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 14px 0; }
.up-mults button {
  background: #161a2e; border: 1px solid #ffffff14; color: var(--text);
  border-radius: 10px; padding: 10px 4px; font-family: 'Rajdhani'; font-weight: 700;
  font-size: 16px; cursor: pointer; line-height: 1.1;
}
.up-mults button .um-ch { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.up-mults button.active { border-color: var(--neon-magenta); color: var(--neon-magenta);
  box-shadow: 0 0 10px #ff2bd655; }

/* ── Профиль ── */
.prof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bonus-box { }
.bonus-streak { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; font-weight: 600; }
.bonus-done { text-align: center; color: var(--neon-green); font-weight: 700; padding: 12px;
  background: #0e1622; border: 1px solid #2bff9e44; border-radius: 12px; }
.task-row { align-items: center; gap: 10px; }
.task-info { flex: 1; }
.task-title { font-weight: 700; font-size: 13px; }
.task-bar { height: 6px; background: #0e1120; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.task-bar span { display: block; height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green)); }
.task-claim { display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, var(--neon-green), #12c47a); color: #04210f;
  border: none; border-radius: 9px; padding: 8px 10px; font-family: 'Rajdhani';
  font-weight: 700; font-size: 12px; cursor: pointer; }
.task-prog { color: var(--muted); font-size: 12px; font-weight: 700; }
.task-got { color: var(--neon-green); font-size: 12px; font-weight: 700; }
.trade-hint { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.35; }

/* бонусы за ник */
.tagbonus-box { display: flex; flex-direction: column; gap: 8px; }
.tag-note { color: var(--text); font-size: 13px; font-weight: 600; }
.tag-note b { color: var(--neon-gold); }
.tag-row { display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #141828, #0f1220); border: 1px solid #ffffff12;
  border-radius: 12px; padding: 10px 12px; }
.tag-info { flex: 1; font-weight: 700; font-size: 13px; }
.tag-warn { color: var(--muted); font-weight: 600; font-size: 11px; }
.tagbtn { width: auto; flex: 0 0 auto; padding: 8px 12px; font-size: 13px; }
.tag-done { color: var(--neon-green); font-size: 12px; font-weight: 700; }

/* рефералы */
.ref-box { display: flex; flex-direction: column; gap: 10px; }
.ref-stats { display: flex; gap: 10px; }
.ref-stat { flex: 1; background: linear-gradient(180deg, #141828, #0f1220);
  border: 1px solid #ffffff12; border-radius: 12px; padding: 12px; text-align: center; }
.ref-stat b { display: block; font-family: 'Orbitron'; font-weight: 600; font-size: 19px; color: var(--neon-gold); }
.ref-stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.ref-note { color: var(--text); font-size: 13px; font-weight: 600; }
.ref-link { background: #0e1120; border: 1px solid #00e6ff44; border-radius: 10px;
  padding: 10px; font-size: 12px; color: var(--accent); word-break: break-all; }
.ref-actions { display: flex; gap: 8px; }
.ref-actions button { flex: 1; }

.pay-methods { display: flex; gap: 8px; margin-bottom: 12px; }
.pay-m { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: #141828; color: var(--muted); border: 1px solid #ffffff1f; border-radius: 10px;
  padding: 9px; font-family: 'Rajdhani'; font-weight: 700; font-size: 13px; cursor: pointer; }
.pay-m.active { background: var(--accent); color: #04121a; border-color: transparent; }
.pay-m .ic { width: 16px; height: 16px; }

/* ── Тост ── */
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  background: #141a30; color: var(--text); padding: 12px 18px;
  border-radius: 12px; z-index: 30; font-weight: 700; font-size: 14px;
  border: 1px solid #00e6ff55; box-shadow: var(--glow-cyan); max-width: 90%; text-align: center;
}
.toast.hidden { display: none; }

/* ════════════ СТЕКЛЯННАЯ ТЕМА (glassmorphism) ════════════ */
:root {
  --glass-bg: rgba(22, 27, 48, 0.40);
  --glass-bg-soft: rgba(16, 20, 38, 0.34);
  --glass-brd: rgba(255, 255, 255, 0.14);
  --glass-blur: blur(16px) saturate(140%);
  --glass-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* основные поверхности-панели */
.case-card,
.modal-card,
.stat-card,
.wd-card,
.rf-card:not(.neoncard),
.dep, .testtop,
.card-info, .wd-trade,
.card-panel,
.inv-summary,
.secondary,
.qty-btn,
.admin-tabs .atab,
.balance,
.toast,
.dep-history-item, .dep-row {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-sheen), 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* верхняя и нижняя панели — более прозрачное матовое стекло */
.topbar {
  background: linear-gradient(180deg, rgba(13,15,28,0.55), rgba(7,8,15,0.40)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--glass-brd);
}
.tabbar {
  background: linear-gradient(180deg, rgba(13,15,28,0.45), rgba(7,8,15,0.62)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* модалка: затемнение фона мягче, чтобы стекло читалось */
.modal { background: rgba(0,0,0,0.55) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* тонкие светлые рамки для стеклянных карточек */
.case-card, .modal-card, .stat-card, .wd-card, .dep, .testtop,
.card-info, .wd-trade, .card-panel, .inv-summary, .qty-btn,
.admin-tabs .atab, .balance, .rf-card:not(.neoncard) {
  border: 1px solid var(--glass-brd) !important;
}

/* поля ввода — стеклянные, но темнее для читабельности */
.dep-custom input, .card-panel input, input[type="text"], input[type="number"] {
  background: rgba(8, 11, 24, 0.55) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* блик-перелив на крупных карточках */
.case-card::after, .modal-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,0.10), transparent 42%);
  z-index: 0;
}
.modal-card > *, .case-card > * { position: relative; z-index: 1; }

/* СЛАБЫЕ ТЕЛЕФОНЫ: blur дорогой → выключаем, делаем фон плотнее */
.nofx .case-card, .nofx .modal-card, .nofx .stat-card, .nofx .wd-card,
.nofx .rf-card:not(.neoncard), .nofx .dep, .nofx .testtop, .nofx .card-info,
.nofx .wd-trade, .nofx .card-panel, .nofx .inv-summary, .nofx .secondary,
.nofx .qty-btn, .nofx .admin-tabs .atab, .nofx .balance, .nofx .toast,
.nofx .topbar, .nofx .tabbar, .nofx .modal,
.nofx .dep-custom input, .nofx .card-panel input {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.nofx .case-card, .nofx .modal-card, .nofx .stat-card, .nofx .wd-card,
.nofx .rf-card:not(.neoncard), .nofx .dep, .nofx .testtop, .nofx .card-info,
.nofx .wd-trade, .nofx .card-panel, .nofx .inv-summary, .nofx .qty-btn,
.nofx .admin-tabs .atab, .nofx .balance {
  background: rgba(17, 21, 40, 0.92) !important;
}
.nofx .case-card::after, .nofx .modal-card::after { display: none; }

/* активная кнопка кол-ва: возвращаем яркий градиент (стекло его перебивало → текст пропадал) */
.qty-btn.active, .nofx .qty-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta)) !important;
  color: #04121a !important; border-color: transparent !important;
  box-shadow: 0 0 12px #00e6ff55 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* ════════════ ИГРА «НАЙДИ AWP» ════════════ */
.mn-prize { text-align: center; margin-bottom: 16px; }
.mn-prize img { width: 150px; height: auto; filter: drop-shadow(0 0 14px #00e6ff66); }
.mn-prize-name { font-family: 'Orbitron'; font-weight: 600; font-size: 15px;
  color: var(--neon-cyan); text-shadow: var(--glow-cyan); margin-top: 4px; }
.mn-prize-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.mn-variants { display: flex; flex-direction: column; gap: 12px; }
.mn-variant {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-brd); border-radius: 16px;
  padding: 14px 16px; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-sheen); transition: transform .12s, border-color .12s;
}
.mn-variant:active { transform: scale(.97); }
.mn-variant.mn-freemode { border-color: var(--neon-green); }
.mn-v-grid { font-family: 'Orbitron'; font-weight: 800; font-size: 26px;
  color: var(--neon-magenta); min-width: 78px; text-align: center;
  text-shadow: 0 0 12px #ff2bd655; }
.mn-v-info { flex: 1; }
.mn-v-awp { font-weight: 700; font-size: 15px; }
.mn-v-price { color: var(--muted); font-size: 13px; margin-top: 3px; }

.mn-head { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.mn-head .mn-next { color: var(--neon-gold); }
.mn-msg { text-align: center; font-weight: 700; font-size: 16px; margin-bottom: 14px;
  padding: 12px; border-radius: 14px; }
.mn-msg.win { color: var(--neon-green); background: #0e2a1c; border: 1px solid #2bff9e55;
  box-shadow: 0 0 20px #2bff9e33; }
.mn-msg.lose { color: var(--red); background: #2a1620; border: 1px solid #ff4d6d44; }

.mn-board { display: grid; gap: 8px; margin: 0 auto; max-width: 360px; width: 100%; }
.mn-board.g3 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mn-board.g4 { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mn-board.g6 { grid-template-columns: repeat(6, 1fr); gap: 7px; }
.mn-cell {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; cursor: pointer; font-weight: 800; color: var(--muted);
  background: linear-gradient(160deg, #1c2240, #131830);
  border: 1px solid #ffffff1a; transition: transform .12s, box-shadow .15s, background .2s;
  position: relative; overflow: hidden; user-select: none; line-height: 1;
}
.mn-board.g3 .mn-cell { font-size: 26px; }
.mn-board.g4 .mn-cell { font-size: 20px; }
.mn-board.g6 .mn-cell { font-size: 15px; }
.mn-cell:not(.mnopen):hover { border-color: var(--neon-cyan); }
.mn-cell:not(.mnopen):active { transform: scale(.93); }
.mn-cell.flip { animation: mnflip .4s ease; }
@keyframes mnflip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.mn-cell.mnopen { cursor: default; padding: 0; }
.mn-cell.mnempty { background: #0c0f1c; color: #39415e; border-color: #ffffff10;
  font-weight: 600; opacity: .85; }
.mn-cell.mnblank { background: #0b0e1a; border-color: #ffffff08; opacity: .45; cursor: default; }
.mn-cell.awp {
  background: radial-gradient(circle at 50% 40%, #0a2230, #07101c);
  border-color: var(--neon-cyan); box-shadow: 0 0 16px #00e6ff66, inset 0 0 12px #00e6ff33;
  animation: mnpop .4s ease;
}
@keyframes mnpop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.mn-cell.awp img { width: 90%; height: auto; filter: drop-shadow(0 0 6px #00e6ffaa); }
.nofx .mn-cell, .nofx .mn-variant { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.nofx .mn-cell.flip, .nofx .mn-cell.awp { animation: none; }

/* конфетти при выигрыше */
.mn-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.mn-confetti i { position: absolute; top: -10px; width: 9px; height: 14px; border-radius: 2px;
  animation: mnfall 2.2s linear forwards; }
@keyframes mnfall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }
.nofx .mn-confetti { display: none; }

/* Приз топ-дня: сетка выбора скинов */
.prize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.prize-item { background: #11152a; border: 1px solid #ffffff14; border-radius: 12px;
  padding: 8px; cursor: pointer; text-align: center; transition: transform .12s, border-color .12s; }
.prize-item:active { transform: scale(.95); }
.prize-item:hover { border-color: var(--neon-gold); }
.prize-item img { width: 100%; height: 60px; object-fit: contain; }
.prize-item .pz-name { font-size: 11px; margin-top: 4px; color: var(--text); font-weight: 600; line-height: 1.2; }

/* Топ дня Битвы (игрокам) */
.bt-daytop { margin-top: 16px; }
.dt-title { font-family: 'Orbitron'; font-size: 12px; color: var(--neon-gold);
  text-shadow: var(--glow-gold); margin-bottom: 8px; text-align: center; }
.dt-row { display: flex; align-items: center; gap: 8px; padding: 8px 11px; margin-bottom: 6px;
  background: #11152a; border: 1px solid #ffffff10; border-radius: 10px; font-size: 14px; }
.dt-row.me { border-color: var(--neon-gold); background: #1a1730; }
.dt-rank { width: 26px; font-weight: 800; color: var(--muted); }
.dt-name { flex: 1; font-weight: 600; }
.dt-won { color: var(--neon-gold); font-weight: 700; }
.dt-mine { margin-top: 2px; }
.dt-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.dt-foot b { color: var(--accent); }

/* Витрина призов топ-дня (горизонтальный скролл) */
.bt-prizes { margin-top: 16px; }
.bp-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch; }
.bp-item { flex: 0 0 92px; background: #11152a; border: 1px solid #ffd23f30;
  border-radius: 12px; padding: 8px 6px; text-align: center; }
.bp-item img { width: 80px; height: 52px; object-fit: contain; }
.bp-name { font-size: 10px; margin-top: 3px; color: var(--text); font-weight: 600; line-height: 1.15; }

/* ── Призовые лут-карточки (редкость как у кейсов) ── */
.bp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 4px 0 10px; }
.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 14px 0; }

.bp-item { position: relative; overflow: hidden; cursor: pointer;
  border-radius: 14px; padding: 10px 8px 8px; text-align: center;
  background: linear-gradient(180deg, var(--rc-bg1), #0d1020 78%);
  border: 1px solid var(--rc); box-shadow: 0 0 14px var(--rc-glow), inset 0 1px 0 #ffffff12;
  transition: transform .14s, box-shadow .18s; --rc: #36c4ff; --rc-glow: #36c4ff44; --rc-bg1: #16233a; }
.bp-item:active { transform: scale(.95); }
.bp-item:hover { box-shadow: 0 0 22px var(--rc-glow), inset 0 1px 0 #ffffff18; transform: translateY(-2px); }
/* цветная «шапка» редкости сверху */
.bp-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.bp-thumb { position: relative; height: 62px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, var(--rc-glow), transparent 70%); }
.bp-item img { max-width: 96%; max-height: 60px; object-fit: contain;
  filter: drop-shadow(0 3px 6px #000a); }
.bp-name { font-size: 11px; margin-top: 5px; color: #fff; font-weight: 700; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-wpn { font-size: 9px; margin-top: 2px; color: var(--rc); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; }
/* блик-пробег — АВТОМАТИЧЕСКИЙ (без наведения), волной по колонкам */
.bp-shine { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 14px; }
.bp-shine::after { content: ""; position: absolute; top: -60%; left: -45%; width: 45%; height: 220%;
  background: linear-gradient(90deg, transparent, #ffffff55, transparent); transform: rotate(20deg);
  animation: bpShine 2.6s ease-in-out infinite; }
@keyframes bpShine { 0% { left: -45%; } 45%,100% { left: 150%; } }
/* сдвиг фаз по колонкам → «волна» слева-направо */
.bp-item:nth-child(3n+2) .bp-shine::after { animation-delay: .5s; }
.bp-item:nth-child(3n)   .bp-shine::after { animation-delay: 1s; }
/* мягкая авто-пульсация свечения рамки */
.bp-item { animation: bpGlow 2.8s ease-in-out infinite; }
@keyframes bpGlow {
  0%,100% { box-shadow: 0 0 12px var(--rc-glow), inset 0 1px 0 #ffffff12; }
  50%     { box-shadow: 0 0 22px var(--rc-glow), inset 0 1px 0 #ffffff1a; }
}
.nofx .bp-shine::after { animation: none; display: none; }
.nofx .bp-item { animation: none; }

/* палитра редкости */
.bp-item.rar-uncommon { --rc: #36c4ff; --rc-glow: #36c4ff40; --rc-bg1: #14273f; }
.bp-item.rar-rare     { --rc: #7b74ff; --rc-glow: #7b74ff45; --rc-bg1: #1d1b3a; }
.bp-item.rar-epic     { --rc: #d24bff; --rc-glow: #d24bff4a; --rc-bg1: #2a1436; }
.bp-item.rar-legendary{ --rc: #ffb000; --rc-glow: #ffb00048; --rc-bg1: #2e2410; }

/* Кнопка «?» и окно «как играть» */
.game-title-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.help-btn { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  background: linear-gradient(180deg, #1a1f38, #121527); color: var(--accent);
  border: 1px solid #00e6ff66; font-family: 'Orbitron'; font-weight: 800; font-size: 15px;
  cursor: pointer; box-shadow: 0 0 10px #00e6ff33; display: flex; align-items: center;
  justify-content: center; line-height: 1; padding: 0; }
.help-btn:active { transform: scale(.9); }
.help-body { white-space: pre-line; text-align: left; font-size: 14px; line-height: 1.55;
  color: var(--text); max-height: 66vh; overflow-y: auto; margin-bottom: 14px; }

/* История игрока + промокоды */
.user-body { max-height: 74vh; overflow-y: auto; text-align: left; margin-bottom: 12px; }
.uh-stats { font-size: 13px; color: var(--muted); background: #11152a; border: 1px solid #ffffff10;
  border-radius: 10px; padding: 10px; margin-bottom: 10px; line-height: 1.6; }
.uh-stats b { color: var(--text); }
.uh-h { font-family: 'Orbitron'; font-size: 12px; color: var(--accent); margin: 12px 0 6px; }
.uh-list { max-height: 200px; overflow-y: auto; }
.uh-row { font-size: 12.5px; padding: 5px 8px; border-bottom: 1px solid #ffffff0a; line-height: 1.4; }
.uh-date { color: var(--muted); font-size: 11px; float: right; }
.uh-empty { color: var(--muted); font-size: 12px; padding: 6px; }
.uh-force { background: #1a1730; border: 1px solid #ffd23f44; border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.uh-forced { color: var(--neon-gold); font-size: 12px; margin-bottom: 8px; }
.user-row { cursor: pointer; }
.user-row:active { transform: scale(.98); }
.promo-form { flex-wrap: wrap; }
.promo-row { display: flex; gap: 8px; margin-bottom: 8px; }
.promo-row input { flex: 1; background: #0e1120; border: 1px solid #ffd23f3a; color: var(--text);
  border-radius: 10px; padding: 10px; font-family: 'Rajdhani'; font-weight: 600; }
.promo-msg { font-size: 13px; margin-bottom: 8px; min-height: 0; }
.promo-msg.ok { color: var(--neon-green); }
.promo-msg.err { color: var(--red); }
.uh-force select, .uh-force .give-form select { min-width: 0; }

/* Все призовые карточки — фиолетовые + float + инфо */
.bp-item, .bp-item.rar-uncommon, .bp-item.rar-rare, .bp-item.rar-epic, .bp-item.rar-legendary {
  --rc: #a45cff; --rc-glow: #a45cff55; --rc-bg1: #241246;
}
.bp-item::before { background: #a45cff; box-shadow: 0 0 10px #a45cff; }
.bp-float { font-size: 9px; margin-top: 2px; color: #c9a6ff; font-weight: 700; letter-spacing: .3px; }
/* окно инфо о скине */
#skin-info-body .si-img { text-align: center; background: radial-gradient(ellipse at center, #a45cff33, transparent 70%);
  border-radius: 14px; padding: 10px; }
#skin-info-body .si-img img { max-width: 90%; max-height: 130px; object-fit: contain;
  filter: drop-shadow(0 4px 10px #000a); }
#skin-info-body .si-name { font-family: 'Orbitron'; font-size: 16px; color: #fff; text-align: center;
  margin: 12px 0; text-shadow: 0 0 12px #a45cff88; }
#skin-info-body .si-rows { display: flex; flex-direction: column; gap: 8px; }
#skin-info-body .si-rows > div { display: flex; justify-content: space-between; font-size: 14px;
  padding: 9px 12px; background: #11152a; border: 1px solid #ffffff10; border-radius: 10px; }
#skin-info-body .si-rows span { color: var(--muted); }

/* История победителей топ-дня */
.bt-winners { margin-top: 16px; }
.win-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 7px;
  background: linear-gradient(180deg, #241246, #12112a); border: 1px solid #a45cff44;
  border-radius: 12px; box-shadow: 0 0 10px #a45cff22; }
.win-img { width: 62px; height: 40px; object-fit: contain; flex: 0 0 62px;
  filter: drop-shadow(0 2px 5px #000a); }
.win-info { flex: 1; min-width: 0; }
.win-name { font-weight: 700; font-size: 13px; color: #fff; }
.win-skin { font-size: 11px; color: #c9a6ff; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.win-date { font-size: 12px; color: var(--muted); font-weight: 700; flex: 0 0 auto; }

/* Убрать стрелки числового поля + кнопка очистки ставки */
#bt-bet::-webkit-outer-spin-button, #bt-bet::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#bt-bet { -moz-appearance: textfield; appearance: textfield; }
.bet-input-wrap { position: relative; flex: 1; display: flex; }
.bet-input-wrap #bt-bet { width: 100%; padding-right: 40px; }
.bet-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer;
  background: #2a1622; color: var(--red); font-size: 14px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0; }
.bet-clear:active { transform: translateY(-50%) scale(.9); }

/* Тех. работы (кейсы) */
.maintenance { grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  background: #11152a; border: 1px solid #ffd23f33; border-radius: 18px; }
.maintenance .mnt-ic { font-size: 54px; margin-bottom: 14px; animation: mntSpin 3s linear infinite; }
@keyframes mntSpin { to { transform: rotate(360deg); } }
.maintenance .mnt-title { font-family: 'Orbitron'; font-size: 18px; color: var(--neon-gold);
  text-shadow: var(--glow-gold); margin-bottom: 8px; }
.maintenance .mnt-sub { color: var(--muted); font-size: 14px; line-height: 1.5; }
.nofx .maintenance .mnt-ic { animation: none; }
