/* BattleTON v4.
   Идея: выглядеть как родное приложение Telegram, а не как шаблон. Системный шрифт, ровные поверхности,
   один акцент (синий TON) и свои цвета у каждой игры. Главное на экране — картинки подарков и сами игры. */

:root,
[data-theme="dark"] {
  --bg: #0e1014;
  --surface: #181b21;
  --surface-2: #21252d;
  --surface-3: #2a2f38;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5f8;
  --muted: #8c94a3;
  --faint: #5d6574;
  --accent: #2f9bff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 155, 255, 0.16);
  --win: #22c983;
  --win-soft: rgba(34, 201, 131, 0.14);
  --loss: #ff5266;
  --loss-soft: rgba(255, 82, 102, 0.14);
  --warn: #ffb224;
  --warn-soft: rgba(255, 178, 36, 0.14);
  --tabbar: rgba(24, 27, 33, 0.92);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --c-crash: #ff7a1a;
  --c-red: #ff4d5e;
  --c-blue: #2f8cff;
  --c-upgrade: #1ec27a;
  --c-mines: #8d63ff;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f1f2f6;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --surface-3: #e5e8ee;
  --line: rgba(12, 18, 28, 0.08);
  --line-strong: rgba(12, 18, 28, 0.14);
  --text: #10141b;
  --muted: #6a7280;
  --faint: #9aa1ad;
  --accent: #1a8cff;
  --accent-soft: rgba(26, 140, 255, 0.12);
  --win: #11a86a;
  --win-soft: rgba(17, 168, 106, 0.12);
  --loss: #e8384d;
  --loss-soft: rgba(232, 56, 77, 0.1);
  --warn: #d98a00;
  --warn-soft: rgba(217, 138, 0, 0.12);
  --tabbar: rgba(255, 255, 255, 0.94);
  --shadow: 0 12px 32px rgba(20, 30, 50, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}
body {
  color: var(--text);
  font: 400 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior-y: none;
}
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  -webkit-user-drag: none;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.num {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.hidden {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.gram {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  vertical-align: -3px;
}

/* ---------- каркас ---------- */
.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
}
.topbar__title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__title h1 {
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand b {
  color: var(--accent);
  font-weight: 800;
}
.online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 0 3px var(--win-soft);
}
.balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 4px 0 10px;
  border-radius: 19px;
  border: 0;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 700;
  font-size: 15px;
}
.balance__plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
}
.balance__plus svg {
  width: 16px;
  height: 16px;
}
.ibtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
}
.ibtn svg {
  width: 20px;
  height: 20px;
}
.ibtn--plain {
  background: transparent;
  box-shadow: none;
}
.view {
  padding: 4px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: viewIn 0.18s ease-out;
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 2px -4px;
}
.section-head h2 {
  font-size: 17px;
}
.section-head a,
.section-head button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- нижний бар ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--tabbar);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__row {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.tab {
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  position: relative;
}
.tab svg {
  width: 26px;
  height: 26px;
}
.tab .i-on {
  display: none;
}
.tab.is-on {
  color: var(--accent);
}
.tab.is-on .i-on {
  display: block;
}
.tab.is-on .i-off {
  display: none;
}
.tab__ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text);
}
.tab.is-on .tab__ava {
  box-shadow: 0 0 0 2px var(--accent);
}
.tab__ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tab__dot {
  position: absolute;
  top: 8px;
  left: calc(50% + 8px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--loss);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* ---------- кнопки и поля ---------- */
.btn {
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 650;
  background: var(--accent);
  color: var(--accent-ink);
  width: 100%;
  transition: transform 0.08s, opacity 0.15s;
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn small {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}
.btn--tinted {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn--plain {
  background: var(--surface-2);
  color: var(--text);
}
.btn--win {
  background: var(--win);
}
.btn--loss {
  background: var(--loss);
}
.btn--crash {
  background: var(--c-crash);
}
.btn--red {
  background: var(--c-red);
}
.btn--blue {
  background: var(--c-blue);
}
.btn--upgrade {
  background: var(--c-upgrade);
}
.btn--mines {
  background: var(--c-mines);
}
.btn--sm {
  height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 14px;
  width: auto;
}
.btn--stack {
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}
.btn.is-busy {
  pointer-events: none;
  opacity: 0.7;
}
.row-btns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.field:focus-within {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
}
.field input::placeholder {
  color: var(--faint);
  font-weight: 500;
}
.field__suffix {
  color: var(--muted);
  font-weight: 600;
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.seg button.is-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), inset 0 0 0 1px var(--line);
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.chip.is-on {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.switch {
  position: relative;
  width: 51px;
  height: 31px;
  flex: 0 0 51px;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  z-index: 1;
  cursor: pointer;
}
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--surface-3);
  transition: background 0.2s;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.switch input:checked + i {
  background: var(--win);
}
.switch input:checked + i::after {
  transform: translateX(20px);
}
.switch input:focus-visible + i {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- поверхности ---------- */
.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.group {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.lrow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  position: relative;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  color: var(--text);
}
.lrow + .lrow::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 58px;
  height: 1px;
  background: var(--line);
}
.lrow--plain + .lrow--plain::before {
  left: 14px;
}
.lrow__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--surface-3);
  overflow: hidden;
}
.lrow__icon svg {
  width: 19px;
  height: 19px;
}
.lrow__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lrow__main {
  flex: 1;
  min-width: 0;
}
.lrow__main b {
  display: block;
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lrow__main small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lrow__end {
  text-align: right;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
}
.lrow__end small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}
.lrow > svg.chev {
  width: 18px;
  height: 18px;
  color: var(--faint);
  flex-shrink: 0;
}
.plus-amt {
  color: var(--win);
}
.minus-amt {
  color: var(--loss);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.pill--win {
  background: var(--win-soft);
  color: var(--win);
}
.pill--loss {
  background: var(--loss-soft);
  color: var(--loss);
}
.pill--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill--accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--av, #5b6b85);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty img {
  width: 96px;
  height: 96px;
}
.skeleton {
  border-radius: 12px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- шторки ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}
.sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translate(-50%, 100%);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 8px 14px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sheet.is-open {
  pointer-events: auto;
}
.sheet.is-open .sheet__scrim {
  opacity: 1;
}
.sheet.is-open .sheet__panel {
  transform: translate(-50%, 0);
}
.sheet__grab {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
  margin: 0 auto;
  flex-shrink: 0;
}
.sheet__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}
.sheet__head h2 {
  flex: 1;
  font-size: 18px;
}
.tabs2 {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.tabs2 button {
  border: 0;
  background: none;
  padding: 8px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs2 button.is-on {
  color: var(--text);
  border-color: var(--accent);
}

/* ---------- тосты ---------- */
.toasts {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  width: calc(100% - 24px);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.toast {
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
  animation: toastIn 0.22s ease-out;
}
.toast--success {
  box-shadow: var(--shadow), inset 3px 0 0 var(--win), inset 0 0 0 1px var(--line);
}
.toast--error {
  box-shadow: var(--shadow), inset 3px 0 0 var(--loss), inset 0 0 0 1px var(--line);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.offline-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2500;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--loss);
}

/* ---------- подарки ---------- */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gift {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px 9px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
  color: var(--text);
}
.gift__img {
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: radial-gradient(closest-side, var(--surface-3), transparent);
  display: grid;
  place-items: center;
}
.gift__img img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.gift b {
  font-size: 12.5px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gift__price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 700;
}
.gift__price .gram {
  width: 14px;
  height: 14px;
}
.gift__sub {
  font-size: 11px;
  color: var(--muted);
}
.gift.is-on {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.gift__tick {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
}
.gift__tick svg {
  width: 13px;
  height: 13px;
}

/* ---------- поле ставки ---------- */
.betbar {
  display: grid;
  grid-template-columns: 50px 1fr 50px 54px;
  gap: 6px;
}
.betbar__btn {
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: grid;
  place-items: center;
  position: relative;
}
.betbar__btn svg {
  width: 22px;
  height: 22px;
}
.betbar__field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 10px;
  min-width: 0;
}
.betbar__field:focus-within {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.betbar__field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-size: 19px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.betbar__field input:disabled {
  opacity: 1;
  -webkit-text-fill-color: var(--text);
}
.betbar__count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  line-height: 20px;
}
.betbar.is-gift .betbar__gift {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
.betbar.is-gift [data-mod] {
  opacity: 0.35;
}
.betbar button:disabled {
  opacity: 0.45;
}
.gifts-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gifts-strip::-webkit-scrollbar {
  display: none;
}
.gifts-strip img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* ---------- лобби ---------- */
.feed {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -14px;
  padding: 0 14px;
}
.feed::-webkit-scrollbar {
  display: none;
}
.feed__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px 0 6px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: feedIn 0.4s ease-out;
}
.feed__item .avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.feed__item b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed__item small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--win);
}
.feed__item img.feed__gift {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: 22px;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--tile-bg);
  isolation: isolate;
}
.tile:active {
  transform: scale(0.98);
}
.tile__art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.tile b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.tile small {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.82;
}
.tile--crash {
  --tile-bg: #2b1405;
}
.tile--arena {
  --tile-bg: #101a33;
}
.tile--upgrade {
  --tile-bg: #08251a;
}
.tile--mines {
  --tile-bg: #1d1238;
}
.tile img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}
.fair-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fair-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--win-soft);
  color: var(--win);
  flex-shrink: 0;
}
.fair-row__icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- профиль ---------- */
.me {
  display: flex;
  align-items: center;
  gap: 14px;
}
.me .avatar {
  width: 64px;
  height: 64px;
  font-size: 26px;
}
.me__name {
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me__id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}
.me__id svg {
  width: 15px;
  height: 15px;
}
.wallet__amount {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0 14px;
}
.wallet__amount .gram {
  width: 30px;
  height: 30px;
}
.ref-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ref-stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.ref-stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.ref-stat b {
  font-size: 18px;
  font-weight: 750;
}
.linkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 5px 0 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.linkbox span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- задания ---------- */
.task {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}
.task__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--tc, var(--accent));
  color: #fff;
}
.task__icon svg {
  width: 24px;
  height: 24px;
}
.task__title {
  font-weight: 650;
  font-size: 15px;
}
.task__cond {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 10px;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--tc, var(--accent));
}
.task__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.task--done {
  opacity: 0.55;
}

/* ---------- топ ---------- */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: end;
  gap: 6px;
  padding: 16px 8px 14px;
}
.podium__p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
}
.podium__p .avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--medal);
}
.podium__p--1 .avatar {
  width: 72px;
  height: 72px;
  font-size: 26px;
}
.podium__p b {
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium__p span {
  font-size: 13px;
  font-weight: 700;
}
.podium__p--1 {
  --medal: #f5b82e;
}
.podium__p--2 {
  --medal: #b8c2d2;
}
.podium__p--3 {
  --medal: #d08a52;
}
.podium__n {
  margin-top: -14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--medal);
  color: #1b1300;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 0 3px var(--surface);
  position: relative;
}
.lrow.is-me {
  background: var(--accent-soft);
}
.rank {
  width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- инвентарь ---------- */
.inv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.inv-head b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  font-weight: 800;
}
.inv-head b .gram {
  width: 22px;
  height: 22px;
}
.actionbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(66px + env(safe-area-inset-bottom));
  z-index: 950;
  width: calc(100% - 20px);
  max-width: 500px;
  padding: 8px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}
.actionbar .btn {
  height: 52px;
  font-size: 14px;
}
.big-gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.big-gift__img {
  width: 150px;
  height: 150px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, var(--surface-3), transparent);
}
.big-gift__img img {
  width: 128px;
  height: 128px;
  object-fit: contain;
}
.big-gift h2 {
  font-size: 20px;
  margin-top: 4px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 0;
  width: 100%;
  text-align: left;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
}
.choice.is-on {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.choice__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  flex-shrink: 0;
  overflow: hidden;
}
.choice__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.choice__icon svg {
  width: 22px;
  height: 22px;
}
.choice__main {
  flex: 1;
  min-width: 0;
}
.choice__main b {
  display: block;
  font-size: 15px;
}
.choice__main small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--warn-soft);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.4;
}
.banner svg {
  width: 20px;
  height: 20px;
  color: var(--warn);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- общий заголовок раунда в играх ---------- */
.round-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.round-bar__id {
  font-weight: 700;
  font-size: 15px;
}
.round-bar__hash {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.round-bar__hash svg {
  width: 14px;
  height: 14px;
  color: var(--win);
}
.round-bar .grow {
  flex: 1;
}

/* ---------- арена ---------- */
.arena-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.arena-timer {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.arena-timer small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 6px;
}
.arena-bank {
  text-align: right;
}
.arena-bank span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.arena-bank b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 20px;
  font-weight: 800;
}
.arena-field {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  isolation: isolate;
}
.arena-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.arena-field__msg {
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  pointer-events: none;
  font-size: 15px;
  font-weight: 650;
  color: var(--muted);
  z-index: 3;
}
.zone-ava {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  transition: left 0.35s, top 0.35s, opacity 0.3s;
}
.zone-ava .avatar {
  width: var(--s, 40px);
  height: var(--s, 40px);
  font-size: calc(var(--s, 40px) * 0.4);
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: width 0.35s, height 0.35s;
}
.zone-ava > span:not(.avatar) {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.zone-ava.is-me .avatar {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 0 0 5px #fff;
}
.arena-field.has-winner .zone-ava:not(.is-win) {
  opacity: 0.35;
}
.zone-ava.is-win .avatar {
  box-shadow: 0 0 0 4px #fff, 0 0 26px rgba(255, 255, 255, 0.7);
}
.team-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.team-label b {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.bets__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  padding: 0 2px;
}
.bet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--c);
  min-width: 0;
}
.bet .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.bet__main {
  flex: 1;
  min-width: 0;
}
.bet__main b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bet__main small {
  display: flex;
  align-items: center;
  gap: 2px;
}
.bet__main small img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.bet__amt {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.bet__amt small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.bet.is-me {
  background: color-mix(in srgb, var(--c) 10%, var(--surface));
}
.empty-mini {
  padding: 12px 6px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-radius: 13px;
  border: 1px dashed var(--line-strong);
}
.mybet {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
}
.mybet b {
  color: var(--text);
}

/* ---------- итоги ---------- */
.result {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}
.result.is-open {
  opacity: 1;
  visibility: visible;
}
.result__box {
  width: 100%;
  max-width: 360px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 22px 16px 16px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.result.is-open .result__box {
  transform: scale(1);
}
.result__title {
  font-size: 21px;
  font-weight: 800;
}
.result__big {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.result__img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.result__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

/* ---------- краш ---------- */
.strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar {
  display: none;
}
.xpill {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.xpill--2 {
  color: var(--accent);
}
.xpill--10 {
  color: var(--warn);
}
.crash-gift {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 4px;
  border-radius: 15px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 650;
}
.crash-gift img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.auto-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 6px 0 14px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.auto-row > span:first-child {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
}
.auto-row input[type="text"] {
  width: 82px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  outline: 0;
}
.auto-row input[type="text"]:disabled {
  opacity: 0.45;
}
.crash-btn {
  height: 60px;
}
.prow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.prow + .prow {
  border-top: 1px solid var(--line);
}
.prow .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.prow b {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- апгрейд ---------- */
.wheel {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 4px auto 0;
}
.wheel svg.wheel__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wheel__center {
  position: absolute;
  inset: 56px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: box-shadow 0.3s;
}
.wheel__center b {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.wheel__center small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.wheel.is-win .wheel__center {
  box-shadow: inset 0 0 0 2px var(--win), 0 0 0 6px var(--win-soft);
}
.wheel.is-lose .wheel__center {
  box-shadow: inset 0 0 0 2px var(--loss), 0 0 0 6px var(--loss-soft);
}
.wheel__needle {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.wheel__needle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 22px solid var(--text);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}
.wheel__target {
  position: absolute;
  width: 48px;
  height: 48px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.swap {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 6px;
  align-items: center;
}
.swap > svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  min-height: 64px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}
.slot__img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
}
.slot__img img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.slot__img svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.slot div {
  min-width: 0;
}
.slot b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slot small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}
.slot small .gram {
  width: 14px;
  height: 14px;
}
.slot--target {
  box-shadow: inset 0 0 0 1.5px var(--c-upgrade);
}
.targets {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin: 0 -14px;
  padding: 2px 14px;
}
.targets::-webkit-scrollbar {
  display: none;
}
.targets .gift {
  flex: 0 0 106px;
  scroll-snap-align: start;
}
.targets .gift.is-on {
  box-shadow: inset 0 0 0 2px var(--c-upgrade);
}
.gift__chance {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-upgrade);
}

/* ---------- мины ---------- */
.mines {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  width: 100%;
}
.mcell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -3px 0 var(--surface-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: transform 0.08s;
  color: var(--text);
}
.mcell:active {
  transform: scale(0.93);
}
.mcell img {
  width: 46%;
  height: 46%;
  object-fit: contain;
}
.mcell span {
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mcell svg {
  width: 52%;
  height: 52%;
}
.mcell.is-safe {
  background: color-mix(in srgb, var(--c-mines) 22%, var(--surface));
  box-shadow: inset 0 0 0 1.5px var(--c-mines);
  animation: pop 0.25s ease-out;
}
.mcell.is-bomb {
  background: var(--loss-soft);
  box-shadow: inset 0 0 0 1px var(--loss);
  color: var(--loss);
}
.mcell.is-hit {
  background: var(--loss);
  color: #fff;
  animation: pop 0.25s ease-out;
}
.mcell.is-ghost {
  opacity: 0.4;
}
.mines.is-idle .mcell {
  opacity: 0.75;
}
@keyframes pop {
  0% {
    transform: scale(0.82);
  }
  70% {
    transform: scale(1.06);
  }
}
.stepper {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  gap: 6px;
  align-items: center;
}
.stepper button {
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.stepper div {
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
}
.stepper div b {
  font-size: 19px;
  font-weight: 800;
}
.nexts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nexts::-webkit-scrollbar {
  display: none;
}

/* ---------- проверка честности ---------- */
.verify {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.verdict {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
}
.verdict svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.verdict b {
  display: block;
  font-size: 16px;
}
.verdict small {
  display: block;
  font-size: 13px;
  opacity: 0.85;
}
.verdict--ok {
  background: var(--win-soft);
  color: var(--win);
}
.verdict--bad {
  background: var(--loss-soft);
  color: var(--loss);
}
.verdict--wait {
  background: var(--warn-soft);
  color: var(--warn);
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  font-size: 14px;
}
.kv + .kv {
  border-top: 1px solid var(--line);
}
.kv span {
  color: var(--muted);
  flex-shrink: 0;
}
.kv b {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 20px);
  gap: 4px;
}
.mini-grid i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--surface-3);
}
.mini-grid i.b {
  background: var(--loss);
}
.mini-grid i.o {
  background: var(--c-mines);
}
details.how {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 12px 14px;
}
details.how summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
details.how summary::-webkit-details-marker {
  display: none;
}
details.how pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- дополнения v4 ---------- */
.sheet__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sheet__panel {
  overscroll-behavior: contain;
}
.avatar {
  position: relative;
}
.avatar img,
.tab__ava img {
  position: absolute;
  inset: 0;
}
.tab__ava {
  position: relative;
}
.tab svg .f {
  fill: none;
}
.tab.is-on svg .f {
  fill: currentColor;
  fill-opacity: 0.2;
}
.balance.is-up {
  animation: balUp 0.7s ease-out;
}
@keyframes balUp {
  0% {
    box-shadow: inset 0 0 0 2px var(--win);
  }
  100% {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}
.btn--stack small {
  display: block;
  margin-top: 1px;
}
.tile__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.tile__rtp {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}
.zone-ava--team {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px;
  justify-items: center;
}
.zone-more {
  grid-column: 1 / -1;
}
.wheel__arrow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}
.wheel__arrow svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.mcell.is-bomb img,
.mcell.is-hit img {
  width: 62%;
  height: 62%;
}
.mcell.is-ghost span {
  display: none;
}
.feed__item .muted {
  color: var(--muted);
  font-weight: 600;
}
.lrow .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.me .avatar {
  width: 64px;
  height: 64px;
}
.lrow__end.muted {
  color: var(--muted);
  font-weight: 600;
}
.lrow__end .pill {
  margin-top: 4px;
}
.field > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
}
.row-btns > * {
  min-width: 0;
}
.btn--stack {
  padding: 0 8px;
}
.row-btns .btn--stack {
  font-size: 15px;
}
.verify-form {
  display: flex;
  gap: 8px;
}
.verify-form .field {
  flex: 1;
  min-width: 0;
}
.verify-form .btn {
  width: auto;
  flex: none;
  height: 52px;
}
.lrow--wrap small {
  white-space: normal;
}
.gifts-strip img {
  width: 44px;
  height: 44px;
}
.arena-field__msg span {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.35;
}
.arena-field__msg span:empty {
  display: none;
}

/* ---------- v5 ---------- */
:root,
[data-theme="dark"] {
  --accent-line: rgba(47, 155, 255, 0.45);
  --frame-a: #3a404c;
  --frame-b: #1a1d24;
  --pit: #11141a;
}
[data-theme="light"] {
  --accent-line: rgba(26, 140, 255, 0.45);
  --frame-a: #ffffff;
  --frame-b: #dfe3ea;
  --pit: #eceef3;
}
/* кнопки второго плана с обводкой: не сливаются с фоном шторки и карточек */
.btn--plain {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--tinted {
  box-shadow: inset 0 0 0 1.5px var(--accent-line);
}
.sheet .btn--plain {
  background: var(--surface);
}
.balance.is-low {
  color: var(--loss);
  box-shadow: inset 0 0 0 1.5px var(--loss);
}
.grow {
  flex: 1;
}

/* шапка арены: последняя игра и топ дня */
.ar-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ar-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  row-gap: 6px;
  min-height: 84px;
  padding: 10px 11px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ar-card .avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.ar-card__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ar-card__main span {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ar-card__main b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ar-card__amt {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
  color: var(--win);
  font-variant-numeric: tabular-nums;
}
.ar-card__amt small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.ar-card--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* банк */
.ar-bank {
  display: flex;
  align-items: stretch;
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ar-bank > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.ar-bank > div:first-child {
  flex: 1.5;
}
.ar-bank > i {
  width: 1px;
  background: var(--line-strong);
}
.ar-bank__label {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.ar-bank b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ar-bank > div:first-child b {
  font-size: 21px;
}
.ar-bank .ico svg {
  width: 17px;
  height: 17px;
  color: var(--warn);
  vertical-align: -2px;
}

/* режим, таймер, правила */
.ar-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -4px;
}
.ar-modes {
  display: inline-grid;
  grid-auto-flow: column;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ar-modes {
  flex-shrink: 0;
}
.ar-modes button {
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.ar-modes button.is-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), inset 0 0 0 1px var(--line);
}
.ar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border-radius: 17px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ar-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ar-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ar-bar .ibtn {
  width: 34px;
  height: 34px;
}
.ar-pill.is-live {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.ar-pill.is-live svg {
  animation: spin 1.6s linear infinite;
}
.ar-pill.is-win {
  background: var(--win-soft);
  color: var(--win);
  box-shadow: inset 0 0 0 1px var(--win);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* поле в рамке */
.ar-frame {
  position: relative;
  padding: 4.6%;
  border-radius: 28px;
  background: linear-gradient(155deg, var(--frame-a), var(--frame-b) 58%, var(--frame-a));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px var(--line), 0 14px 34px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .ar-frame {
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px rgba(20, 30, 50, 0.13);
}
.ar-field {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--pit);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}
[data-theme="light"] .ar-field {
  box-shadow: inset 0 2px 8px rgba(20, 30, 50, 0.12);
}
.ar-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ar-avas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ar-ava {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: left 0.48s cubic-bezier(0.22, 1, 0.36, 1), top 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s, transform 0.3s;
}
.ar-ava.is-new,
.ar-ava.is-gone {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}
.ar-ava .avatar {
  width: var(--s, 40px);
  height: var(--s, 40px);
  font-size: calc(var(--s, 40px) * 0.4);
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: width 0.48s, height 0.48s, box-shadow 0.3s;
}
.ar-ava > span:not(.avatar) {
  padding: 1px 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ar-ava.is-me .avatar {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 0 0 5px #fff;
}
.ar-field.is-done .ar-ava:not(.is-win) {
  opacity: 0.3;
}
.ar-ava.is-win .avatar {
  box-shadow: 0 0 0 4px #fff, 0 0 28px rgba(255, 255, 255, 0.75);
}
.ar-empty {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 18%;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
}
.ar-empty:empty {
  display: none;
}
.ar-ball {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}
.ar-label {
  position: absolute;
  z-index: 5;
  max-width: 62%;
  transform: translate(-50%, -100%);
  padding: 3px 9px;
  border-radius: 9px;
  background: rgba(10, 12, 16, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.ar-winner {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 7%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(12, 14, 19, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.ar-winner.is-top {
  bottom: auto;
  top: 7%;
  transform: translateY(-14px) scale(0.96);
}
.ar-winner.is-on {
  opacity: 1;
  transform: none;
}
.ar-winner .avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
  border: 2px solid #fff;
}
.ar-winner__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ar-winner__main span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ar-winner__main b {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ar-winner__amt {
  font-size: 19px;
  font-weight: 800;
  color: #3ee59b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* панель ставки */
.ar-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ar-cur {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ar-cur .seg {
  display: inline-grid;
}
.ar-cur .seg button {
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ar-cur .seg .gram {
  width: 16px;
  height: 16px;
}
.ar-bal {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.ar-bal b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ar-bal.is-low,
.ar-bal.is-low b {
  color: var(--loss);
}
.ar-amount {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px 46px 46px;
  gap: 6px;
}
.ar-amount > button {
  height: 48px;
  border: 0;
  border-radius: 13px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  display: grid;
  place-items: center;
}
.ar-amount > button:active {
  transform: scale(0.96);
}
.ar-amount > button svg {
  width: 18px;
  height: 18px;
}
.ar-amount label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow 0.2s, color 0.2s;
}
.ar-amount label:focus-within {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.ar-amount input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.ar-amount.is-low label {
  box-shadow: inset 0 0 0 2px var(--loss);
  color: var(--loss);
}
.ar-amount.is-low input {
  color: var(--loss);
}
.ar-gifts {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.ar-gifts .gifts-strip {
  flex: 1;
  min-width: 0;
}
.ar-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.ar-cta--team {
  grid-template-columns: 1fr 1fr;
}
.btn--auto {
  width: auto;
  padding: 0 16px;
}
.ar-auto {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}
.ar-auto > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  animation: spin 2.4s linear infinite;
}
.ar-auto span {
  flex: 1;
  min-width: 0;
  color: var(--text);
}

/* игроки */
.pl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2px 2px -6px;
}
.pl-head h2 {
  font-size: 17px;
}
.pl-head span {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pl-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pl {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 13px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  animation: plIn 0.3s ease-out;
}
@keyframes plIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.pl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c);
}
.pl.is-me {
  box-shadow: inset 0 0 0 1.5px var(--c);
}
.pl .avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.pl__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pl__main b {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl__main small {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c);
  font-variant-numeric: tabular-nums;
}
.pl__gifts {
  display: flex;
}
.pl__gifts img {
  width: 24px;
  height: 24px;
  margin-left: -6px;
  border-radius: 7px;
  background: var(--surface-2);
}
.pl__amt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.pl__amt .gram {
  width: 16px;
  height: 16px;
}
.pl__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.pl__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--c);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hashline {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.hashline:empty {
  display: none;
}
.hashline svg {
  width: 14px;
  height: 14px;
}
.sheet .hashline {
  align-self: stretch;
  justify-content: center;
  background: var(--surface-2);
}
.hist-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
.hist-body .lrow .btn--sm {
  flex: none;
  height: 34px;
  padding: 0 12px;
}
.lrow__icon:empty {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* crash v5: поле в рамке, шар, табло */
.cr-frame {
  position: relative;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(155deg, var(--frame-a), var(--frame-b) 58%, var(--frame-a));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px var(--line), 0 14px 34px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .cr-frame {
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px rgba(20, 30, 50, 0.13);
}
.cr-field {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 17px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 50%, rgba(255, 122, 26, 0.1), transparent 60%), var(--pit);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}
[data-theme="light"] .cr-field {
  background: radial-gradient(120% 90% at 50% 50%, rgba(255, 122, 26, 0.12), transparent 60%), var(--pit);
  box-shadow: inset 0 2px 8px rgba(20, 30, 50, 0.12);
}
.cr-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.cr-field.is-shake {
  animation: crShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes crShake {
  10%,
  90% {
    transform: translate(-1px, 1px);
  }
  20%,
  80% {
    transform: translate(3px, -2px);
  }
  30%,
  50%,
  70% {
    transform: translate(-5px, 2px);
  }
  40%,
  60% {
    transform: translate(5px, -1px);
  }
}
.cr-orb {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%), radial-gradient(circle at 50% 60%, #ff9a4a, #e2530b 70%, #a83200);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 22px rgba(255, 122, 26, 0.65), 0 8px 16px rgba(0, 0, 0, 0.35);
  will-change: transform;
  transition: opacity 0.25s, scale 0.25s;
}
.cr-orb img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.cr-orb.is-wait {
  animation: orbBreath 1.6s ease-in-out infinite;
}
.cr-orb.is-gone {
  opacity: 0;
  scale: 0.2;
}
@keyframes orbBreath {
  50% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 34px rgba(255, 122, 26, 0.9), 0 8px 16px rgba(0, 0, 0, 0.35);
  }
}
.cr-hud {
  position: absolute;
  left: 0;
  right: 0;
  top: 9%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.cr-mult {
  font-size: 52px;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.cr-mult.is-wait {
  color: var(--muted);
}
.cr-mult.is-hot {
  color: #ffb36b;
}
.cr-mult.is-bust {
  color: var(--loss);
}
.cr-sub {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
  padding: 0 12px;
}
.cr-hud .crash-gift {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
[data-theme="light"] .cr-hud .crash-gift {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* несколько подарков в ставке апгрейда — стопкой */
.slot__img--stack {
  position: relative;
}
.slot__img--stack img {
  position: absolute;
  width: 30px;
  height: 30px;
}
.slot__img--stack img:nth-child(1) {
  left: 2px;
  top: 2px;
}
.slot__img--stack img:nth-child(2) {
  right: 2px;
  bottom: 2px;
}
.slot__img--stack img:nth-child(3) {
  left: 6px;
  bottom: 0;
  width: 24px;
  height: 24px;
}
.slot__img--stack[data-n="2"] img:nth-child(1) {
  left: 0;
  top: 0;
}

/* лента: карточка выигрыша под элементом */
.feed-wrap {
  position: relative;
  margin-bottom: -2px;
}
.feed__item {
  border: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  transition: box-shadow 0.15s, transform 0.08s;
}
.feed__item:active {
  transform: scale(0.97);
}
.feed__item.is-on {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.feed__item--empty {
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.fcard {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: min(330px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.18s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.18s;
}
.fcard.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.fcard__caret {
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--surface);
  border-radius: 3px 0 0 0;
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 0 var(--line-strong);
}
.fcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fcard__head .avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.fcard__who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.fcard__who b {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcard__who small {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcard__pic {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
}
.fcard__pic img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.fcard__gift {
  font-size: 13px;
  font-weight: 650;
  margin: -4px 0 -2px;
}
.fcard__stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}
.fcard__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 7px;
  border-radius: 12px;
  background: var(--surface-2);
  min-width: 0;
}
.fcard__stat span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcard__stat b {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fcard__go {
  width: 100%;
}

/* живые картинки игр в лобби */
.tile-needle {
  transform-box: view-box;
  transform-origin: 80px 74px;
  animation: tileNeedle 4.2s cubic-bezier(0.16, 0.84, 0.3, 1) infinite;
}
@keyframes tileNeedle {
  0% {
    transform: rotate(180deg);
  }
  70%,
  100% {
    transform: rotate(1092deg);
  }
}
.tile-float {
  animation: tileFloat 3.2s ease-in-out infinite;
}
@keyframes tileFloat {
  50% {
    transform: translateY(-6px) rotate(-3deg);
  }
}
.tile-mines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 40px 22px 72px;
}
.tm {
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}
.tm img {
  position: static;
  width: 58%;
  filter: none;
  opacity: 0;
}
.tm--g,
.tm--s {
  animation: tmBg 4.5s var(--d) infinite;
}
.tm--g img,
.tm--s img {
  animation: tmImg 4.5s var(--d) infinite;
}
.tm--s img {
  width: 66%;
}
@keyframes tmBg {
  0%,
  8% {
    background: rgba(255, 255, 255, 0.08);
  }
  14%,
  88% {
    background: rgba(141, 99, 255, 0.55);
  }
  100% {
    background: rgba(255, 255, 255, 0.08);
  }
}
@keyframes tmImg {
  0%,
  8% {
    opacity: 0;
    transform: scale(0.4);
  }
  14% {
    opacity: 1;
    transform: scale(1.12);
  }
  20%,
  88% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
}
.tm--s {
  animation-name: tmBoom;
}
@keyframes tmBoom {
  0%,
  8% {
    background: rgba(255, 255, 255, 0.08);
  }
  14%,
  88% {
    background: #ff4d5e;
  }
  100% {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* ---------- админ-панель ---------- */
/* на компьютере (Telegram Desktop, браузер) панель шире обычных экранов */
@media (min-width: 760px) {
  body[data-view="admin"] .app {
    max-width: 960px;
  }
  body[data-view="admin"] .adm-kpis {
    grid-template-columns: repeat(4, 1fr);
  }
  body[data-view="admin"] .adm-livegrid {
    grid-template-columns: 1fr 1fr;
  }
}
.adm-ico {
  width: 100%;
  height: 100%;
}
.adm-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 155, 255, 0.14), rgba(47, 155, 255, 0.04)), var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--accent-line), 0 8px 24px rgba(47, 155, 255, 0.12);
  color: var(--text);
  text-decoration: none;
  animation: viewIn 0.25s ease-out;
}
.adm-entry:active {
  transform: scale(0.985);
}
.adm-entry__ico,
.adm-head__ico {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(150deg, #5fb6ff, #1a7fe6 60%, #0f5fb8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 18px rgba(26, 127, 230, 0.45);
}
.adm-entry div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.adm-entry b {
  font-size: 17px;
}
.adm-entry small {
  font-size: 13px;
  color: var(--muted);
}
.adm-entry > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
}
.adm-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.adm-head__ico {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 14px;
}
.adm-head b {
  display: block;
  font-size: 18px;
}
.adm-head small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.adm-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}
.adm-online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 0 3px var(--win-soft);
}
.adm-online:empty {
  display: none;
}
.adm-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -14px;
  padding: 2px 14px;
}
.adm-tabs::-webkit-scrollbar {
  display: none;
}
.adm-tabs button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 19px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.adm-tabs button svg {
  width: 17px;
  height: 17px;
}
.adm-tabs button.is-on {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
.adm-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 750;
  vertical-align: 2px;
  background: var(--surface-3);
  color: var(--muted);
}
.adm-badge--owner {
  background: rgba(255, 184, 0, 0.16);
  color: #f5b301;
}
.adm-badge--tech {
  background: var(--accent-soft);
  color: var(--accent);
}
.adm-badge--junior {
  background: var(--win-soft);
  color: var(--win);
}
.adm-badge--ban {
  background: rgba(255, 77, 94, 0.16);
  color: var(--loss);
}
.adm-badge--warn {
  background: rgba(255, 170, 51, 0.16);
  color: var(--warn);
}
.adm-period {
  display: grid;
}
.adm-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.adm-kpis--3 {
  grid-template-columns: repeat(3, 1fr);
}
.adm-kpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.sheet .adm-kpi {
  background: var(--surface-2);
}
.adm-kpi > span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-kpi > b {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-kpis--3 .adm-kpi > b {
  font-size: 15px;
}
.adm-kpi > small {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-kpi.is-win > b {
  color: var(--win);
}
.adm-kpi.is-loss > b {
  color: var(--loss);
}
.adm-money {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.adm-money .gram {
  width: 15px;
  height: 15px;
}
.adm-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.adm-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.adm-card__head b {
  font-size: 15px;
}
.adm-card__head small {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.adm-card .group {
  margin: 0 -14px;
  box-shadow: none;
  background: transparent;
}
.adm-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.adm-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 90px;
}
.adm-bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent), rgba(47, 155, 255, 0.35));
  min-height: 2px;
}
.adm-bars__axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--faint);
}
.adm-trow {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 0.8fr 1fr;
  gap: 6px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}
.adm-trow span {
  text-align: right;
}
.adm-trow--head {
  border-top: 0;
  font-size: 11.5px;
  color: var(--muted);
}
.adm-trow--head b {
  font-weight: 600;
}
.adm-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  text-align: left;
}
.adm-mini:first-of-type {
  border-top: 0;
}
.adm-mini span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-mini b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.adm-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--text);
  font-size: 14px;
  text-align: left;
}
.adm-alert > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}
.adm-alert span {
  flex: 1;
}
.adm-alert--warn {
  background: rgba(255, 170, 51, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 170, 51, 0.4);
}
.adm-alert--warn > svg {
  color: var(--warn);
}
.adm-alert--ban {
  background: rgba(255, 77, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.4);
}
.adm-alert--ban > svg {
  color: var(--loss);
}
.adm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
}
.adm-empty svg {
  width: 30px;
  height: 30px;
  opacity: 0.6;
}
.adm-empty b {
  color: var(--text);
}
.adm-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.adm-chips {
  margin-top: -2px;
}
.adm-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm-sort select,
.adm-form select {
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.adm-form select {
  width: 100%;
  height: 50px;
  background: transparent;
  box-shadow: none;
}
.adm-urow .lrow__main b {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.adm-urow .lrow__end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.adm-urow .lrow__end small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.adm-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.adm-user .avatar {
  width: 54px;
  height: 54px;
  font-size: 20px;
}
.adm-user > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.adm-user b {
  font-size: 17px;
}
.adm-user small {
  font-size: 12.5px;
  color: var(--muted);
}
.adm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.adm-actions .btn {
  width: auto;
  flex: 1 1 auto;
  gap: 6px;
}
.adm-actions .btn svg {
  width: 16px;
  height: 16px;
}
.adm-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--accent-line);
  animation: viewIn 0.2s ease-out;
}
.adm-form .field {
  background: var(--surface);
}
.adm-form__row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 6px;
  align-items: center;
}
.adm-form__row > * {
  min-width: 0;
}
.adm-form__row .chip {
  height: 52px;
  justify-content: center;
  font-size: 20px;
  border-radius: 14px;
}
.adm-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.adm-switch:first-of-type {
  border-top: 0;
}
.adm-switch small {
  display: block;
  font-size: 12px;
}
.adm-utabs {
  display: grid;
  margin-top: 4px;
}
.adm-evs {
  display: flex;
  flex-direction: column;
}
.adm-ev {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.adm-ev:first-child {
  border-top: 0;
}
.adm-ev time {
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.adm-ev small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  word-break: break-word;
}
.adm-ev--err b {
  color: var(--loss);
}
.adm-ev--sec b {
  color: var(--warn);
}
.adm-ev--adm b {
  color: var(--accent);
}
.adm-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.adm-livegrid {
  display: grid;
  gap: 10px;
}
.adm-live .pill {
  white-space: nowrap;
}
.adm-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: 1px;
}
.adm-roles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adm-roles > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.adm-roles small {
  font-size: 12.5px;
  color: var(--muted);
}
.adm-set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.adm-set > div:first-child {
  min-width: 0;
}
.adm-set b {
  display: block;
  font-size: 14.5px;
}
.adm-set small {
  font-size: 12px;
  color: var(--muted);
}
.adm-stepper {
  flex-shrink: 0;
  grid-template-columns: 40px 76px 40px;
}
.adm-stepper button,
.adm-stepper div {
  height: 40px;
  border-radius: 11px;
}
.adm-stepper div b {
  font-size: 16px;
}
.adm-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 13.5px;
}
.adm-kv span {
  color: var(--muted);
}
.adm-kv b {
  text-align: right;
  font-weight: 650;
}
.adm-job {
  align-items: flex-start;
}
.adm-job .lrow__main small {
  display: block;
}
.adm-job__act {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.adm-job__act:empty {
  display: none;
}

/* ---------- маркет ---------- */
.mk-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 170, 51, 0.14), rgba(255, 170, 51, 0.03)), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mk-intro__ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--warn);
  color: #fff;
}
.mk-intro__ico svg {
  width: 22px;
  height: 22px;
}
.mk-intro b {
  display: block;
  font-size: 16px;
}
.mk-intro small {
  font-size: 12.5px;
  color: var(--muted);
}
.mk-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mk-filters .chips {
  flex: 1;
  min-width: 0;
}
.gift__buy {
  margin-top: 2px;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--win-soft);
  color: var(--win);
  font-size: 12px;
  font-weight: 750;
}
.mk-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0 2px;
}
.mk-hero__img {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 70%), var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mk-hero__img img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  animation: tileFloat 3.2s ease-in-out infinite;
}
.mk-hero b {
  font-size: 19px;
}
.mk-hero__price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 800;
}
.mk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 650;
}
.mk-qty {
  grid-template-columns: 44px 60px 44px;
}
.mk-qty button,
.mk-qty div {
  height: 44px;
}
.mk-sum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mk-sum > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.mk-sum span {
  font-size: 12px;
  color: var(--muted);
}
.mk-sum b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.upg-buy {
  width: auto;
  align-self: center;
  gap: 6px;
  margin-top: -6px;
}
.upg-buy svg {
  width: 16px;
  height: 16px;
}
.tile.is-off {
  filter: grayscale(0.85) brightness(0.8);
}
.tile.is-off .tile__rtp {
  background: rgba(255, 77, 94, 0.85);
  color: #fff;
}

/* BattleBalls v6: разметка лобби, кейсов и турниров (цвета темы — в слое v7 в конце файла). */

.bb-games-head { margin-top:20px; }
.bb-games-head h2 { font-size:27px; letter-spacing:-.055em; }
.tile { border-radius:18px; padding:12px; border:1px solid rgba(255,255,255,.14); }
.tile b { font-size:24px; letter-spacing:-.055em; line-height:1.1; }
.tile small { font-size:11px; }
.tile--crash { --tile-bg:radial-gradient(at 62% 14%, #713423, #301813 78%); }
.tile--arena { --tile-bg:radial-gradient(at 60% 18%, #33435c, #16202e 78%); }
.tile--mines { --tile-bg:radial-gradient(at 48% 15%, #4f3869, #271d32 78%); }
.tile--upgrade { --tile-bg:radial-gradient(at 50% 12%, #2b563b, #12291d 78%); }
.bb-cr-ball { animation:bb-pop 3.2s linear infinite; }
.bb-blast { animation:bb-explode 3.2s ease-out infinite; }
@keyframes bb-pop { 0%,65% {transform:scale(.78);opacity:1} 76% {transform:scale(1.7);opacity:1} 79%,100% {transform:scale(1.9);opacity:0} }
@keyframes bb-explode { 0%,74% {transform:scale(.4);opacity:0} 78% {opacity:1} 97%,100% {transform:scale(1.95);opacity:0} }
.bb-emblem { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--line-strong); border-radius:13px; background:var(--accent-soft); color:var(--accent); }
.bb-emblem svg,.bb-box__sig svg,.bb-box__head>svg { width:27px; height:27px; }
.bb-box,.bb-receipt { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:16px; margin:0 0 12px; }
.bb-box__head,.bb-receipt,.bb-standing { display:flex; align-items:center; gap:12px; justify-content:space-between; }
.bb-box__head small,.bb-receipt small,.bb-podium small,.bb-drops small { display:block; color:var(--muted); font-size:12px; }
.bb-box h2 { font-size:28px; letter-spacing:-.055em; }
.bb-box details { color:var(--muted); font-size:12px; margin:14px 0; }
.bb-box code { display:block; overflow-wrap:anywhere; }
.bb-box .btn { width:100%; }
.bb-box input:not([type=checkbox]),.bb-box select { width:100%; min-height:42px; padding:8px; background:var(--surface-2); color:var(--text); border:1px solid var(--line-strong); border-radius:8px; }
.bb-box fieldset { border:1px solid var(--line-strong); display:flex; flex-wrap:wrap; gap:10px; }
.bb-box label { display:block; }
.bb-advice { white-space:pre-wrap; }
.bb-podium,.bb-drops { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:12px 0; }
.bb-drops { grid-template-columns:repeat(5,minmax(0,1fr)); }
.bb-podium>div,.bb-drops>div { display:flex; flex-direction:column; align-items:center; text-align:center; justify-content:center; gap:3px; min-width:0; padding:8px 2px; border-radius:9px; background:var(--surface-2); }
.bb-podium img,.bb-drops img { width:min(46px,85%); height:42px; object-fit:contain; }
.bb-podium b,.bb-drops b { font-size:10.5px; overflow-wrap:anywhere; }
.bb-standing { padding:8px 0; border-top:1px solid var(--line); }
.bb-standing b,.bb-receipt>div { flex:1; }
.bb-receipt>svg { width:28px; color:var(--accent); }
.bb-receipt b { display:block; }
[data-daily]:not(:empty) { display:flex; gap:8px; margin-bottom:16px; }
.bb-highlight { flex:1; text-align:left; min-width:0; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--text); }
.bb-highlight>* { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bb-highlight strong { color:var(--accent); font-size:23px; letter-spacing:-.05em; }
.bb-highlight span,.bb-highlight small { font-size:11px; }
.bb-color-history:not([hidden]) { display:flex; overflow-x:auto; gap:5px; margin:5px 0 10px; }
.bb-color-history button { flex:none; background:var(--surface); border:1px solid var(--line); border-bottom:3px solid var(--team); border-radius:6px; color:var(--text); padding:3px 6px; font-size:10px; }
[data-f-role] { flex-wrap:wrap; }
@media(prefers-reduced-motion:reduce){.bb-cr-ball,.bb-blast{animation:none}.bb-blast{opacity:0}}
.tile--cases {
  grid-column:1/-1; aspect-ratio:auto; min-height:132px; justify-content:center; padding:18px;
  background:radial-gradient(ellipse at 67% 55%,#24433e,#111b21 61%,#10161d);
}

.bb-case-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.bb-case-card { display:block; overflow:hidden; border:1px solid var(--line-strong); background:var(--surface); color:var(--text); text-decoration:none; border-radius:16px; }

.bb-case-card>span { display:grid; align-content:center; gap:4px; padding:10px 12px 12px; }
.bb-case-card b { font-size:19px; letter-spacing:-.045em; line-height:1.12; }
.bb-case-card small { display:flex; gap:4px; align-items:center; font-size:12px; color:var(--muted); }
.bb-case-card small img { width:15px; height:15px; }
.bb-case-card:active { transform:scale(.985); }


.bb-prize-cover {
  --a:251,153,103; position:relative; isolation:isolate; width:100%; aspect-ratio:1.28; overflow:hidden;
  background:radial-gradient(ellipse at 50% 56%,rgba(var(--a),.62),rgba(var(--a),.15) 54%,transparent 75%),linear-gradient(148deg,#22222a,#111019 69%,#242328);
}
.bb-prize-cover[data-art=pulse]{--a:172,237,84}
.bb-prize-cover[data-art=drift]{--a:74,224,237}
.bb-prize-cover[data-art=orbit]{--a:168,135,251}
.bb-prize-cover[data-art=vault]{--a:251,95,121}
.bb-prize-cover[data-art=zenith]{--a:255,209,87}
.bb-prize-cover:before {content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(var(--a),.32) .65px,transparent 1px);background-size:6px 6px;mask-image:linear-gradient(125deg,#000,transparent 45%,transparent 65%,#000);}
.bb-case-orbit {position:absolute;left:3%;top:23%;width:94%;height:41%;transform:rotate(-21deg);border:1px solid rgba(var(--a),.37);border-radius:50%;}
.bb-case-orbit:after {content:"";position:absolute;left:10%;top:11%;width:4px;height:4px;border-radius:50%;background:#fff;box-shadow:0 0 8px rgb(var(--a));}
.bb-case-shell {position:absolute;width:96%;height:63%;left:2%;bottom:-3%;object-fit:contain;filter:drop-shadow(0 6px 5px #0009);}
.bb-case-gift {position:absolute;object-fit:contain;filter:drop-shadow(0 4px 4px #100a1c88);}
.bb-case-gift--left {width:27%;height:35%;left:3%;top:33%;transform:rotate(-15deg);}
.bb-case-gift--right {width:25%;height:32%;right:4%;top:14%;transform:rotate(13deg);}
.bb-case-gift--main {width:53%;height:61%;left:25%;top:8%;transform:rotate(-5deg);filter:drop-shadow(0 5px 4px #100a1c99) drop-shadow(0 0 9px rgba(var(--a),.35));}
.bb-case-detail>.bb-prize-cover {border-radius:12px;margin-bottom:14px;max-height:230px;}

/* =====================================================================================
   BattleBalls v7 — бренд-слой. Чёрная база, фиолетово-голубой акцент с розовым отливом,
   игры — свои цвета, деньги — цветные значки-шары, иконки — дуотон. Подключён последним.
   ===================================================================================== */
@font-face {
  font-family: "Lilita One";
  src: url("fonts/lilita-one-latin.woff2") format("woff2");
  font-display: swap;
}
:root,
[data-theme="dark"] {
  --bg: #07070b;
  --surface: #121219;
  --surface-2: #1a1a24;
  --surface-3: #262633;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f6f5fb;
  --muted: #9b9ab3;
  --faint: #5f5e78;
  --accent: #8b5cff;
  --accent-2: #3d8bff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(139, 92, 255, 0.16);
  --brand: linear-gradient(135deg, #ff4fa3 0%, #8b5cff 48%, #3d8bff 100%);
  --cta: linear-gradient(135deg, #9a6bff 0%, #6a4dff 55%, #3d8bff 100%);
  --gold: #ffc53d;
  --win: #23d18b;
  --win-soft: rgba(35, 209, 139, 0.14);
  --loss: #ff4d6a;
  --loss-soft: rgba(255, 77, 106, 0.14);
  --warn: #ffb224;
  --tabbar: rgba(10, 10, 15, 0.94);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  --c-crash: #ff7a1a;
  --c-red: #ff4d5e;
  --c-blue: #2f8cff;
  --c-upgrade: #1ec27a;
  --c-mines: #16c0d6;
  --c-cases: #ffb238;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f2f8;
  --surface: #ffffff;
  --surface-2: #efedf6;
  --surface-3: #e3e0ee;
  --line: rgba(20, 14, 50, 0.08);
  --line-strong: rgba(20, 14, 50, 0.15);
  --text: #14121f;
  --muted: #6b6884;
  --faint: #a19eb6;
  --accent: #6d3dff;
  --accent-2: #1f6fff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(109, 61, 255, 0.12);
  --tabbar: rgba(255, 255, 255, 0.95);
  --shadow: 0 12px 30px rgba(30, 20, 70, 0.14);
  --c-mines: #0ea5bd;
  color-scheme: light;
}

/* иконки: дуотон */
.ic .t { fill: currentColor; fill-opacity: 0.2; stroke: none; }
.ic .f { fill: currentColor; stroke: none; }

/* логотип */
.logo { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.logo__ball { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 3px 8px rgba(139, 92, 255, 0.45)); }
.logo__word {
  font-family: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: linear-gradient(100deg, #ffd36e 0%, #ff8a3d 22%, #ff4fa3 46%, #a26bff 70%, #4fc3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.25);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 6px 14px rgba(162, 107, 255, 0.35));
}
.logo__w2 { margin-left: 1px; }
[data-theme="light"] .logo__word { filter: drop-shadow(0 2px 0 rgba(40, 20, 90, 0.25)); -webkit-text-stroke: 0.6px rgba(40, 20, 90, 0.15); }

/* значки денег */
.badge { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }
.badge--sm { width: 30px; height: 30px; }
.badge--lg { width: 52px; height: 52px; }

/* верхняя панель и баланс */
.topbar { background: linear-gradient(180deg, var(--bg) 70%, rgba(7, 7, 11, 0)); }
[data-theme="light"] .topbar { background: linear-gradient(180deg, var(--bg) 70%, rgba(243, 242, 248, 0)); }
.balance { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.balance__plus {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(110, 77, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.ibtn { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ibtn svg { width: 21px; height: 21px; }

/* нижнее меню: активная вкладка — значок в цветной капсуле */
.tabbar { background: var(--tabbar); border-top: 1px solid var(--line-strong); }
.tab { color: var(--faint); gap: 4px; }
.tab svg { width: 24px; height: 24px; transition: transform 0.2s; }
.tab > svg { box-sizing: content-box; padding: 4px 14px; border-radius: 13px; }
.tab.is-on { color: #fff; }
[data-theme="light"] .tab.is-on { color: var(--text); }
.tab.is-on > svg {
  color: #fff;
  background: var(--cta);
  box-shadow: 0 6px 16px rgba(110, 77, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.tab.is-on > svg .t { fill-opacity: 0.32; }
.tab.is-on span:last-child { font-weight: 800; }
.tab:active > svg { transform: scale(0.92); }
.tab.is-on .tab__ava { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }

/* кнопки: основная — фирменный градиент */
.btn { background: var(--cta); box-shadow: 0 8px 20px rgba(100, 70, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22); font-weight: 750; }
.btn--plain { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--tinted { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.btn--win { background: linear-gradient(135deg, #2fe39a, #12b07a); box-shadow: 0 8px 20px rgba(35, 209, 139, 0.28); }
.btn--loss { background: linear-gradient(135deg, #ff6a83, #e8304f); box-shadow: 0 8px 20px rgba(255, 77, 106, 0.28); }
.btn--crash { background: linear-gradient(135deg, #ffa33d, #ff5a1f); box-shadow: 0 8px 20px rgba(255, 122, 26, 0.32); color: #fff; }
.btn--red { background: linear-gradient(135deg, #ff6b7a, #e5304a); box-shadow: 0 8px 20px rgba(255, 77, 94, 0.3); }
.btn--blue { background: linear-gradient(135deg, #4ea0ff, #1f63e0); box-shadow: 0 8px 20px rgba(47, 140, 255, 0.3); }
.btn--upgrade { background: linear-gradient(135deg, #34e095, #12a866); box-shadow: 0 8px 20px rgba(30, 194, 122, 0.3); color: #fff; }
.btn--mines { background: linear-gradient(135deg, #2ee0f0, #0e93c4); box-shadow: 0 8px 20px rgba(22, 192, 214, 0.3); color: #fff; }
.btn--sm { box-shadow: none; }
.btn--plain.btn--sm, .btn--sm.btn--plain { box-shadow: inset 0 0 0 1px var(--line); }
.seg button.is-on { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.chip.is-on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* значки в строках настроек: градиентная плитка */
.lrow__icon--set { background: linear-gradient(135deg, var(--ic1), var(--ic2)) !important; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.lrow__icon--set svg .t { fill-opacity: 0.35; }

/* ставка: переключатель Gram ⇄ Подарки */
.betbox { display: grid; gap: 8px; }
.betmode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.betmode button {
  height: 38px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.betmode button svg { width: 19px; height: 19px; }
.betmode button .gram { width: 18px; height: 18px; filter: grayscale(0.6) brightness(0.9); transition: filter 0.18s; }
.betmode button.is-on { color: #fff; background: var(--cta); box-shadow: 0 4px 14px rgba(110, 77, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.betmode button.is-on .gram { filter: none; }
.betmode button[data-mode="gift"].is-on, .betmode button[data-cur="gift"].is-on { background: linear-gradient(135deg, #ff9a3d, #ff4f7b); box-shadow: 0 4px 14px rgba(255, 90, 100, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.betmode__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: #ff4f7b; font-size: 11px; line-height: 18px; }
.betmode--inline { display: inline-grid; min-width: 230px; }
.ar-cur .betmode--inline { flex: 1; }
.betgifts { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 6px 6px 8px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.betgifts[hidden] { display: none; }
.betgifts__list { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; cursor: pointer; }
.betgifts__g { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.betgifts__g img { width: 32px; height: 32px; object-fit: contain; }
.betgifts__g img.is-nft { width: 100%; height: 100%; object-fit: cover; }
.betgifts__more { font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 2px; }
.betgifts__sum { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; padding-right: 2px; white-space: nowrap; }
.betgifts__sum .gram { width: 16px; height: 16px; }
.betgifts__empty { color: var(--muted); font-size: 13px; padding-left: 4px; }
.betgifts__pick { height: 40px; flex: none; padding: 0 12px; border: 0; border-radius: 11px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.betgifts__pick svg { width: 17px; height: 17px; color: #ff7a5a; }

/* настоящие NFT: картинка Fragment — квадрат со своим фоном */
img.is-nft { border-radius: 12px; object-fit: cover; }
.gattrs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 4px; }
.gattr { display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.gattr small { font-size: 11px; color: var(--muted); }
.gattr b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gattr i { font-style: normal; color: var(--accent); font-weight: 700; font-size: 11px; }

/* ---------- лобби v7: плитки игр ---------- */
.tile { border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.tile b { font-family: "Lilita One", system-ui, sans-serif; font-weight: 800; font-synthesis: none; font-size: 27px; letter-spacing: 0.005em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.4); }
.tile small { font-size: 11.5px; line-height: 1.25; }
.tile--crash { --tile-bg: radial-gradient(120% 90% at 50% 30%, #6a2a0c 0%, #2a1006 55%, #120704 100%); }
.tile--arena { --tile-bg: radial-gradient(120% 90% at 50% 30%, #2a2160 0%, #121028 55%, #08080f 100%); }
.tile--upgrade { --tile-bg: radial-gradient(120% 90% at 50% 25%, #165c3c 0%, #0b2a1d 55%, #06110c 100%); }
.tile--mines { --tile-bg: radial-gradient(120% 90% at 50% 25%, #0f5563 0%, #082a31 55%, #041215 100%); }
.tile--cases { background: radial-gradient(80% 120% at 72% 50%, #3d2a12 0%, #1c140b 45%, #0d0b0a 100%); border-color: rgba(255, 178, 56, 0.22); min-height: 150px; }
.tile__rtp { background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.cr-rays { transform-box: view-box; transform-origin: 80px 64px; animation: crRays 26s linear infinite; }
@keyframes crRays { to { transform: rotate(360deg); } }
/* мины: бирюзовые клетки, новая бомба */
.tm { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.tm--g, .tm--s { animation-name: tmBgCyan; }
.tm--s { animation-name: tmBoomRed; }
.tm--s img { width: 74%; }
.tile--mines .tile-mines { padding: 34px 26px 88px; gap: 7px; }
@keyframes tmBgCyan { 0%, 8% { background: rgba(255, 255, 255, 0.07); } 14%, 88% { background: rgba(22, 192, 214, 0.5); } 100% { background: rgba(255, 255, 255, 0.07); } }
@keyframes tmBoomRed { 0%, 8% { background: rgba(255, 255, 255, 0.07); } 14%, 88% { background: #ff4d5e; box-shadow: 0 0 18px rgba(255, 77, 94, 0.6); } 100% { background: rgba(255, 255, 255, 0.07); } }
/* кейсы: три капсулы */
.tile--cases > b, .tile--cases > small { max-width: 44%; }
.caps3 { pointer-events: none; }
.caps3 > span { position: absolute; display: block; animation: capBob 3.4s ease-in-out infinite; }
.caps3__b { right: 17%; top: 9%; width: 31%; z-index: 2; }
.caps3__a { right: 45%; bottom: 7%; width: 19%; animation-delay: -1.2s !important; }
.caps3__c { right: 3%; bottom: 9%; width: 18%; animation-delay: -2.3s !important; }
@keyframes capBob { 50% { transform: translateY(-5px) rotate(-2deg); } }

/* капсула-шар (кейсы) */
.cap { position: relative; display: block; aspect-ratio: 100 / 106; }
.cap > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cap .cap__gift { position: absolute; left: 20%; top: 8.5%; width: 60%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); transform: none; }
.cap .cap__gift.is-nft { left: 25%; top: 12%; width: 50%; border-radius: 50%; }

/* «Занос дня» и «Самый везучий» */
[data-daily]:not(:empty) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.bbh {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top top" "num pic" "what pic" "who who";
  align-items: center; gap: 2px 8px; min-width: 0; padding: 12px; border: 0; border-radius: 18px; text-align: left; color: var(--text);
  background: radial-gradient(120% 100% at 100% 0%, rgba(255, 122, 26, 0.22), transparent 60%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden;
}
.bbh--lucky { background: radial-gradient(120% 100% at 100% 0%, rgba(139, 92, 255, 0.26), transparent 60%), var(--surface); }
.bbh:active { transform: scale(0.98); }
.bbh__top { grid-area: top; display: flex; align-items: center; gap: 5px; min-width: 0; margin-bottom: 2px; }
.bbh__top svg { width: 16px; height: 16px; color: #ff8a3d; flex: none; }
.bbh--lucky .bbh__top svg { color: #b48cff; }
.bbh__top small { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbh strong { grid-area: num; display: inline-flex; align-items: center; gap: 4px; font-size: 21px; font-weight: 850; letter-spacing: -0.02em; white-space: nowrap; }
.bbh strong .gram { width: 18px; height: 18px; }
.bbh--lucky strong { background: linear-gradient(100deg, #d6c2ff, #8b5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bbh__pic { grid-area: pic; align-self: center; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bbh__pic img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }
.bbh__pic img.is-nft { width: 100%; height: 100%; border-radius: 0; object-fit: cover; filter: none; }
.bbh__what { grid-area: what; margin-top: 4px; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbh__who { grid-area: who; display: flex; align-items: center; gap: 6px; margin-top: 6px; min-width: 0; font-size: 12px; color: var(--muted); }
.bbh__who > span:not(.avatar) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 650; }
.bbh__who i { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 750; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); white-space: nowrap; }
.avatar.bbh__ava { width: 20px; height: 20px; font-size: 10px; }

/* строка общего чата в лобби */
.bb-chat-row .badge { width: 42px; height: 42px; }
.bb-chat-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-chat-row small span { color: var(--text); font-weight: 650; }

/* ---------- общий чат ---------- */
.view--chat { padding-bottom: 0; gap: 0; }
.chat {
  display: flex; flex-direction: column; margin: 0 -14px;
  height: calc(100vh - 140px - env(safe-area-inset-bottom));
  height: calc(100dvh - 140px - env(safe-area-inset-bottom));
  min-height: 300px;
}
.chat__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 6px 14px 12px; }
.chat__list > .empty { margin: auto 0; }
.cmsg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.cmsg--me { align-self: flex-end; }
.avatar.cmsg__ava { width: 30px; height: 30px; font-size: 12px; }
.cmsg__bubble { min-width: 0; padding: 7px 11px 8px; border-radius: 16px 16px 16px 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cmsg--me .cmsg__bubble { border-radius: 16px 16px 6px 16px; color: #fff; background: var(--cta); box-shadow: 0 6px 16px rgba(100, 70, 255, 0.25); }
.cmsg__head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 1px; font-size: 12px; }
.cmsg__head b { min-width: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b796ff; font-weight: 750; }
[data-theme="light"] .cmsg__head b { color: var(--accent); }
.cmsg--me .cmsg__head b { color: rgba(255, 255, 255, 0.85); }
.cmsg__role { flex: none; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff9a3d, #ff4f7b); }
.cmsg__head time { margin-left: auto; padding-left: 6px; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cmsg--me .cmsg__head time { color: rgba(255, 255, 255, 0.7); }
.cmsg__text { font-size: 14.5px; line-height: 1.38; overflow-wrap: anywhere; }
.chat__gate { padding: 8px 14px 12px; }
.chat__gate[hidden], .chat__bar[hidden] { display: none; }
.chat__gatebox {
  display: grid; justify-items: center; gap: 8px; padding: 18px 16px 16px; border-radius: 22px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 255, 0.24), transparent 62%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.chat__gatebox b { font-size: 18px; }
.chat__gatebox p { max-width: 34ch; margin: 0 0 6px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.chat__gatebox .btn { width: 100%; }
.chat__note { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; font-size: 13.5px; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.chat__note svg { width: 18px; height: 18px; }
.chat__bar { display: flex; align-items: flex-end; gap: 8px; padding: 8px 14px 10px; border-top: 1px solid var(--line); background: var(--bg); }
.chat__bar textarea {
  flex: 1; min-height: 42px; max-height: 104px; resize: none; border: 0; outline: none; border-radius: 21px; padding: 11px 16px;
  font: inherit; font-size: 15px; line-height: 20px; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.chat__bar textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.chat__send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--cta); box-shadow: 0 6px 16px rgba(110, 77, 255, 0.4); }
.chat__send svg { width: 20px; height: 20px; }
.chat__quote { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border-left: 3px solid var(--accent); background: var(--surface-2); font-size: 14px; overflow-wrap: anywhere; }
.chat__quote b { display: block; margin-bottom: 2px; font-size: 12px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .cr-rays, .caps3 > span { animation: none; } }

/* ---------- кейсы v7: капсулы, рулетка ---------- */
.btn--cases { background: linear-gradient(135deg, #ffc44f, #ff8a1f); color: #2a1300; box-shadow: 0 8px 20px rgba(255, 160, 40, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn--cases .gram { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4)); }
.cases__lead { margin: 0 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.cbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cbox {
  position: relative; display: grid; gap: 8px; padding: 10px 10px 12px; border-radius: 20px; color: var(--text); text-decoration: none; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 34%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1) 26%, var(--line));
}
.cbox:active { transform: scale(0.98); }
.cbox__art { position: relative; display: block; width: 74%; margin: 4px auto 0; }
.cbox__cap { position: relative; z-index: 1; animation: capBob 3.6s ease-in-out infinite; }
.cbox__side { position: absolute; width: 34%; height: auto; aspect-ratio: 1; object-fit: contain; opacity: 0.85; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)) saturate(0.9); }
.cbox__side.is-nft { border-radius: 10px; }
.cbox__side--l { left: -16%; top: 34%; transform: rotate(-14deg); }
.cbox__side--r { right: -15%; top: 8%; transform: rotate(12deg); }
.cbox__info { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px; }
.cbox__info b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbox__price { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 5px; border-radius: 10px; font-weight: 800; font-size: 13px; background: color-mix(in srgb, var(--c1) 18%, var(--surface-2)); white-space: nowrap; }
.cbox__price .gram { width: 15px; height: 15px; }

.cdet { display: flex; flex-direction: column; gap: 12px; }
.cdet__hero { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 0 4px; }
.cdet__glow { position: absolute; left: 50%; top: 42%; width: 260px; height: 260px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c1) 42%, transparent), transparent 68%); pointer-events: none; }
.cdet__cap { width: 168px; animation: capBob 3.6s ease-in-out infinite; }
.cdet__name { position: relative; display: flex; align-items: center; gap: 8px; }
.cdet__name h2 { font-size: 24px; letter-spacing: -0.02em; }
.cdet__rtp { padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 750; color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cdet__ctl { display: grid; grid-template-columns: 132px 1fr; gap: 8px; align-items: center; }
.cdet__count { height: 50px; align-items: center; }
.cdet__count button { height: 42px; font-size: 15px; font-weight: 800; }
.cdet__open { height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cdet__stage { display: grid; gap: 8px; }
.cdet__stage[hidden], .cdet__result[hidden] { display: none; }
.reel { position: relative; height: 104px; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 56px; z-index: 2; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.reel::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.reel__track { display: flex; gap: 6px; padding: 10px 0 10px 6px; will-change: transform; }
.reel__it { flex: none; width: 78px; height: 84px; border-radius: 14px; display: grid; justify-items: center; align-content: center; gap: 2px; background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--tier, #6d6b85), inset 0 0 0 1px var(--line); transition: transform 0.3s, box-shadow 0.3s; }
.reel__it small { font-size: 11px; font-weight: 800; color: var(--muted); }
.reel__img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.reel__img.is-nft { border-radius: 10px; object-fit: cover; filter: none; }
.cprize__coin { display: grid; place-items: center; }
.cprize__coin img { width: 60%; height: 60%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(47, 140, 255, 0.45)); }
.reel__it--coin { --tier: #5e7bff; }
.reel__it--rare { --tier: #23d18b; }
.reel__it--epic { --tier: #a56bff; }
.reel__it--top { --tier: #ffb238; }
.reel__it.is-win { transform: scale(1.06); box-shadow: inset 0 -3px 0 var(--tier), inset 0 0 0 2px var(--tier), 0 0 24px color-mix(in srgb, var(--tier) 55%, transparent); }
.reel__mark { position: absolute; z-index: 3; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, var(--c1), transparent 22%, transparent 78%, var(--c1)); }
.reel__mark::before, .reel__mark::after { content: ""; position: absolute; left: 50%; width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; }
.reel__mark::before { top: 0; border-top-color: var(--c1); }
.reel__mark::after { bottom: 0; border-bottom-color: var(--c1); }
.reel.is-done .reel__mark { opacity: 0.4; }
.cdet__result { padding: 12px; border-radius: 18px; background: radial-gradient(100% 120% at 50% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); animation: cresIn 0.35s ease-out; }
@keyframes cresIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.cres__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cres__head b { font-size: 17px; }
.cres__head span { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--muted); }
.cres__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cres__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cdrops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cprize { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 9px; border-radius: 16px; text-align: center; min-width: 0; background: var(--surface); box-shadow: inset 0 -3px 0 var(--tier, #5e7bff), inset 0 0 0 1px var(--line); }
.cprize--coin { --tier: #5e7bff; }
.cprize--rare { --tier: #23d18b; }
.cprize--epic { --tier: #a56bff; }
.cprize--top { --tier: #ffb238; background: radial-gradient(100% 80% at 50% 0%, rgba(255, 178, 56, 0.16), transparent 70%), var(--surface); }
.cprize__img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.4)); }
.cprize__img.is-nft { border-radius: 12px; object-fit: cover; filter: none; }
.cprize b { max-width: 100%; font-size: 12px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cprize small { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 650; }
.cprize small .gram { width: 13px; height: 13px; }
.cprize i { position: absolute; top: 6px; right: 6px; padding: 1px 5px; border-radius: 6px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--tier); background: color-mix(in srgb, var(--tier) 16%, transparent); }
.cprize.is-new { animation: cresIn 0.4s ease-out both; }
.cprize.is-new:nth-child(2) { animation-delay: 0.08s; }
.cprize.is-new:nth-child(3) { animation-delay: 0.16s; }
.cdet__fair { padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cdet__fair summary { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.cdet__fair summary::-webkit-details-marker { display: none; }
.cdet__fair summary svg { width: 18px; height: 18px; color: var(--win); }
.cdet__fair .note { margin: 10px 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cdet__fair code { display: block; padding: 8px; border-radius: 10px; font-size: 11px; overflow-wrap: anywhere; background: var(--surface-2); color: var(--muted); }
.cdet__fair .bb-receipt { margin: 10px 0 0; padding: 10px; background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .cbox__cap, .cdet__cap { animation: none; } }

/* ---------- Upgrade v7: перетаскиваемая зона, лоты игроков ---------- */
.wheel--drag { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.wheel--drag.is-drag { cursor: grabbing; }
.wheel--drag.is-busy { cursor: default; }
.wheel--drag:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 50%; }
.wheel__arc { filter: drop-shadow(0 0 8px rgba(30, 194, 122, 0.55)); transition: stroke-dasharray 0.25s ease; }
.wheel.is-drag .wheel__arc { transition: none; }
.wheel__knob circle { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); transition: r 0.15s; }
.wheel.is-drag .wheel__knob circle { r: 14.5; }
.wheel.is-busy .wheel__knob { opacity: 0; transition: opacity 0.2s; }
.upg-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -6px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.upg-hint svg { width: 15px; height: 15px; flex: none; color: var(--c-upgrade); }
.upg-src button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.upg-src button svg { width: 17px; height: 17px; }
.upg-src i { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-style: normal; font-size: 11px; line-height: 18px; font-weight: 800; color: #fff; background: var(--c-upgrade); }
.upg-src i:empty { display: none; }
.gift__seller { display: block; max-width: 100%; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift .gift__img img.is-nft { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
[data-attrs]:empty { display: none; }
[data-attrs] .gattrs { margin: -4px 0 0; }

/* ---------- маркет игроков ---------- */
.mk-tabs { margin-bottom: -2px; }
.mk-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.mk-tabs button svg { width: 17px; height: 17px; flex: none; }
.mk-tabs button span { overflow: hidden; text-overflow: ellipsis; }
.mk-tabs i { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-style: normal; font-size: 11px; line-height: 18px; font-weight: 800; color: #fff; background: var(--accent); }
.mk-tabs i:empty { display: none; }
.lot { position: relative; }
.lot__who { display: flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; font-size: 11px; color: var(--muted); }
.lot__who span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lot__who--mine { color: var(--accent); font-weight: 700; }
.avatar.lot__ava { width: 16px; height: 16px; font-size: 8px; }
.lot__tag { position: absolute; top: 8px; left: 8px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 850; letter-spacing: 0.03em; color: #fff; background: linear-gradient(135deg, #ff4fa3, #8b5cff); box-shadow: 0 2px 8px rgba(139, 92, 255, 0.4); }
.lot--nft .gift__img, .gift .gift__img:has(img.is-nft) { overflow: hidden; border-radius: 12px; }
.lot-add .gift__img { display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 14px; }
.lot-add .gift__img svg { width: 34px; height: 34px; }
.lot-hero__floor { font-size: 12px; color: var(--muted); }
.mk-hero__img img.is-nft { width: 100%; height: 100%; border-radius: 18px; object-fit: cover; }
.lot-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.lot-note svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.lot-seller { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 8px 0 12px; border-radius: 14px; background: var(--surface-2); }
.lot-seller small { display: block; font-size: 11px; color: var(--muted); }
.lot-seller b { font-size: 14px; }
.lot-seller > span:last-child { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.btn svg { flex: none; }
.sell-field { margin-top: 12px; }
.sell-field input { font-size: 20px; font-weight: 800; }
.sell-field span { color: var(--muted); font-weight: 700; padding-right: 4px; }
.sell-chips { margin: 8px 0 10px; }
.sell-err { color: var(--loss); min-height: 0; margin: 0; }
.sell-err:empty { display: none; }
.inv-lots { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; margin-left: auto; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.inv-lots svg { width: 15px; height: 15px; }
.inv-head { gap: 8px; }
.big-gift__img--nft img { width: 100%; height: 100%; border-radius: 22px; object-fit: cover; }
.row-btns--tight .btn { font-size: 14.5px; padding: 0 10px; white-space: nowrap; }

/* TON Connect: окно подключения кошелька всегда поверх наших шторок (у шторок z-index 1002+) */
#tc-widget-root { position: relative; z-index: 2147483000 !important; }
#tc-widget-root [data-tc-modal], #tc-widget-root > div { z-index: 2147483000 !important; }

/* кнопки денег в профиле: цветные шары */
.money-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.money-act { display: grid; justify-items: center; gap: 7px; padding: 12px 6px 11px; border: 0; border-radius: 18px; color: var(--text); font-weight: 750; font-size: 13.5px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.15s; }
.money-act:active { transform: scale(0.96); }
.money-act .badge { transition: transform 0.2s; }
.money-act:active .badge { transform: rotate(-8deg) scale(1.06); }
.lrow > .badge { width: 40px; height: 40px; }
.lrow__icon .badge { width: 100%; height: 100%; filter: none; }
.banner--relayer { align-items: flex-start; }
.banner--relayer .badge { flex: none; margin-top: 2px; }

/* ---------- админка v7: 7 ролей, выбор роли плиткой, RTP ползунками, чат ---------- */
.adm-badge--helper { background: rgba(61, 139, 255, 0.16); color: #5aa2ff; }
.adm-badge--junior { background: var(--win-soft); color: var(--win); }
.adm-badge--senior { background: rgba(22, 192, 214, 0.16); color: #22c7dd; }
.adm-badge--curator { background: rgba(255, 79, 163, 0.16); color: #ff5fae; }
.adm-badge--tech { background: var(--accent-soft); color: #a688ff; }
.adm-badge--ceo { background: rgba(255, 122, 26, 0.16); color: #ff8a3d; }
.adm-badge--owner { background: rgba(255, 197, 61, 0.18); color: #ffc53d; }
.adm-rolegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 4px 0 2px; }
.adm-rolechip { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 9px 10px; border: 0; border-radius: 12px; text-align: left; color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.adm-rolechip b { font-size: 13.5px; }
.adm-rolechip small { font-size: 11px; line-height: 1.3; color: var(--muted); font-weight: 500; }
.adm-rolechip.is-on { box-shadow: inset 0 0 0 2px currentColor; }
.adm-rolechip.is-on b { color: currentColor; }
.adm-rolechip:not([class*="adm-badge--"]).is-on { color: var(--text); }
.adm-rolechip[class*="adm-badge--"] { background: var(--surface-2); }
.adm-rolechip[class*="adm-badge--"] b { color: inherit; }
.adm-rolechip[class*="adm-badge--"]:not(.is-on) b { color: var(--text); }
@media (min-width: 480px) { .adm-rolegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm-note { margin: 2px 0 0; font-size: 12px; }
.adm-rtp { padding: 10px 0 6px; border-top: 1px solid var(--line); }
.adm-rtp:first-of-type { border-top: 0; }
.adm-rtp__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.adm-rtp__top > span { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; }
.adm-rtp__top > span b { font-size: 20px; }
.adm-rtp__top small { margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.adm-rtp input[type="range"] { width: 100%; margin: 8px 0 2px; accent-color: var(--accent); height: 28px; }
.adm-rtp__axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); }
.adm-chatrow { align-items: flex-start; }
.adm-chatrow__text { white-space: normal; overflow-wrap: anywhere; color: var(--text); }
.adm-chatrow__act { display: flex; gap: 6px; }
.adm-chatrow__act .ibtn { width: 34px; height: 34px; }
.adm-chatrow__act .ibtn svg { width: 17px; height: 17px; }
.adm-tabs button[hidden] { display: none; }
.adm-card__head { flex-wrap: wrap; }
.adm-card__head b { flex: none; }
.adm-card__head small { flex: 1 1 160px; }

/* Crash: пустой стеклянный шар, пока выигрыш не дотягивает до подарка */
.cr-orb.is-empty img { visibility: hidden; }
.cr-orb.is-empty {
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 38%), radial-gradient(circle at 50% 62%, rgba(255, 154, 74, 0.55), rgba(226, 83, 11, 0.38) 62%, rgba(168, 50, 0, 0.6));
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.75), inset 0 -6px 14px rgba(120, 30, 0, 0.45), 0 0 18px rgba(255, 122, 26, 0.5), 0 8px 16px rgba(0, 0, 0, 0.35);
}

/* =====================================================================
   BattleBalls v9
   ===================================================================== */

/* залитые иконки (нарисованы вручную): нижнее меню, деньги, настройки */
.ic.ic--solid { fill: currentColor; stroke: none; }
.tab > svg.ic--solid { width: 25px; height: 25px; }



/* ---------- «подарочный шар» кейса ---------- */
.corb { position: relative; display: block; aspect-ratio: 1 / 0.92; isolation: isolate; }
.corb__rays {
  position: absolute; inset: -14% -10% -6%; z-index: -2; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c2) 42%, transparent) 0 7deg, transparent 7deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 18%, transparent 74%); mask-image: radial-gradient(closest-side, #000 18%, transparent 74%);
  opacity: 0.85;
}
.corb::before {
  content: ""; position: absolute; inset: 4% 8% 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c2) 70%, transparent), transparent 72%);
  filter: blur(6px);
}
.corb__ball { position: absolute; left: 18%; bottom: 0; width: 64%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.corb img { position: absolute; object-fit: contain; aspect-ratio: 1; height: auto; }
.corb__hero { left: 29%; top: 2%; width: 42%; z-index: 3; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)); animation: orbFloat 3.6s ease-in-out infinite; }
.corb__side { width: 26%; top: 26%; z-index: 1; opacity: 0.95; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)) saturate(1.1); }
.corb__side--l { left: 2%; transform: rotate(-16deg); }
.corb__side--r { right: 2%; transform: rotate(14deg); }
.corb img.is-nft { border-radius: 30%; }
.corb__spark { position: absolute; z-index: 4; width: 9px; height: 9px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: orbTwinkle 2.4s ease-in-out infinite; }
.corb__spark--a { left: 18%; top: 14%; }
.corb__spark--b { right: 16%; top: 8%; width: 7px; height: 7px; animation-delay: -0.8s; }
.corb__spark--c { right: 24%; bottom: 30%; width: 6px; height: 6px; animation-delay: -1.6s; }
@keyframes orbFloat { 50% { transform: translateY(-5%) rotate(-3deg); } }
@keyframes orbTwinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 45% { opacity: 1; transform: scale(1); } }

/* ---------- список кейсов ---------- */
.cases-head p { margin: 2px 2px 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.cases-tiers { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; overflow: visible; }
.cases-tiers .chip { justify-content: center; padding-left: 6px; padding-right: 6px; min-width: 0; font-size: 13px; }
.cases-tiers .chip small { margin-left: 5px; font-size: 11px; opacity: 0.6; font-weight: 700; }
.ccard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ccard {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 12px; border-radius: 22px; overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none;
  background:
    radial-gradient(90% 70% at 50% 34%, color-mix(in srgb, var(--c2) 34%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--c1) 42%, #0d0b18), #0d0b18 78%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 -3px 0 color-mix(in srgb, var(--c2) 55%, transparent), 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s;
}
.ccard:active { transform: scale(0.97); }
.ccard__top { display: flex; justify-content: flex-end; min-height: 20px; position: relative; z-index: 2; }
.ccard__max { font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 99px; background: rgba(0, 0, 0, 0.36); color: rgba(255, 255, 255, 0.86); white-space: nowrap; }
.ccard__orb { width: 92%; margin: -12px auto 4px; }
.ccard__info { display: grid; gap: 6px; justify-items: start; }
.ccard__info b { font: 800 18px/1.08 "Lilita One", system-ui, sans-serif; font-synthesis: none; letter-spacing: 0; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.16em; align-content: end; }
.ccard__price { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 6px; border-radius: 99px; font-weight: 850; font-size: 14px; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.ccard__price .gram { width: 17px; height: 17px; }
[data-theme="light"] .ccard { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 -3px 0 color-mix(in srgb, var(--c2) 55%, transparent), 0 10px 22px rgba(40, 20, 90, 0.18); }

/* ---------- страница кейса ---------- */
.cpage__hero { position: relative; display: grid; justify-items: center; padding: 6px 0 2px; }
.cpage__orb { width: min(64vw, 250px); }
.cpage__orb .corb__rays { animation: raysSpin 26s linear infinite; }
@keyframes raysSpin { to { transform: rotate(360deg); } }
.cpage__title { text-align: center; margin-top: 4px; }
.cpage__title h2 { margin: 0; font: 800 30px/1.05 "Lilita One", system-ui, sans-serif; font-synthesis: none; letter-spacing: 0; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 10px 26px color-mix(in srgb, var(--c2) 45%, transparent); }
.cpage__title p { margin: 6px 0 0; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.cpage__title p .gram { width: 14px; height: 14px; }

.cstage {
  margin: 14px 0 6px; padding: 12px; border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 16%, var(--surface)), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -3px 0 color-mix(in srgb, var(--c2) 40%, transparent);
}
.cstage__reels { position: relative; display: grid; gap: 8px; padding: 10px 0; border-radius: 16px; background: rgba(0, 0, 0, 0.28); overflow: hidden; }
[data-theme="light"] .cstage__reels { background: rgba(20, 14, 50, 0.07); }
.cstage__line { position: absolute; z-index: 3; left: 50%; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; border-radius: 2px; background: linear-gradient(180deg, transparent, #ffd23f 18%, #ffd23f 82%, transparent); box-shadow: 0 0 12px #ffb800; pointer-events: none; }
.cstage__mark { position: absolute; z-index: 4; left: 50%; width: 0; height: 0; margin-left: -8px; border: 8px solid transparent; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.cstage__mark--t { top: 0; border-top-color: #ffd23f; }
.cstage__mark--b { bottom: 0; border-bottom-color: #ffd23f; }
.reel2 { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.reel2__track { display: flex; gap: 8px; width: max-content; padding: 0 4px; will-change: transform; }
.rcell {
  --rc: #6b7a99; position: relative; flex: none; width: 88px; height: 98px; display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: 14px;
  background: radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--rc) 46%, transparent), transparent 72%), color-mix(in srgb, var(--rc) 14%, #15131f);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 50%, transparent), inset 0 -3px 0 var(--rc);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}
.rcell img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45)); }
.rcell img.is-nft { border-radius: 12px; }
.rcell small { font-size: 11.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.cstage__reels[data-n="2"] .rcell, .cstage__reels[data-n="3"] .rcell { width: 72px; height: 80px; }
.cstage__reels[data-n="2"] .rcell img, .cstage__reels[data-n="3"] .rcell img { width: 46px; height: 46px; }
.cstage__reels[data-n="4"] .rcell, .cstage__reels[data-n="5"] .rcell { width: 62px; height: 66px; border-radius: 12px; }
.cstage__reels[data-n="4"] .reel2__track, .cstage__reels[data-n="5"] .reel2__track { gap: 6px; }
.cstage__reels[data-n="4"] .rcell img, .cstage__reels[data-n="5"] .rcell img { width: 38px; height: 38px; }
.cstage__reels[data-n="4"] .rcell small, .cstage__reels[data-n="5"] .rcell small { font-size: 10px; }
.cstage__reels.is-spin .rcell { filter: saturate(1.15); }
.reel2.is-done .rcell:not(.is-win) { opacity: 0.42; transform: scale(0.94); }
.rcell.is-win { z-index: 2; transform: scale(1.08); box-shadow: inset 0 0 0 2px var(--rc), 0 0 0 3px color-mix(in srgb, var(--rc) 45%, transparent), 0 0 30px var(--rc); animation: cellWin 0.9s ease-out; }
@keyframes cellWin { 0% { transform: scale(1); } 35% { transform: scale(1.16); } 100% { transform: scale(1.08); } }
.rcell--common { --rc: #6b7a99; }
.rcell--uncommon, .citem--uncommon { --rc: #2f8cff; }
.rcell--rare, .citem--rare { --rc: #8b5cff; }
.rcell--epic, .citem--epic { --rc: #ff3d9a; }
.rcell--legend, .citem--legend { --rc: #ffb800; }

.cstage__row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cstage__count { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
[data-theme="light"] .cstage__count { background: var(--surface-2); }
.cstage__count button { height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 800; }
.cstage__count button.is-on { color: #fff; background: var(--cta); box-shadow: 0 4px 12px rgba(110, 77, 255, 0.4); }
.cstage__count button:disabled { opacity: 0.5; }
.cstage__tog { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 13px; background: rgba(0, 0, 0, 0.22); color: var(--muted); }
.cstage__tog.is-on { color: var(--text); }
.cstage__tog svg { width: 21px; height: 21px; }
[data-theme="light"] .cstage__tog { background: var(--surface-2); }
.cstage__fast { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 2px 0; }
.cstage__fast > span:first-child { display: flex; align-items: center; gap: 6px; font-weight: 750; font-size: 14px; }
.cstage__fast > span:first-child svg { width: 18px; height: 18px; color: #ffd23f; }
.cstage__fast small { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 4px; }
.cstage__cta { display: flex; gap: 8px; margin-top: 12px; }
.cbtn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 16px; font-size: 17px; color: #2a1400; background: linear-gradient(135deg, #ffe066 0%, #ffb800 50%, #ff8a1f 100%); box-shadow: 0 10px 24px rgba(255, 170, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(160, 70, 0, 0.35); }
.cbtn small { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.14); font-size: 14px; font-weight: 850; }
.cbtn small .gram { width: 16px; height: 16px; }
.cbtn:disabled { filter: grayscale(0.4) brightness(0.8); }
.cbtn--dep { color: #fff; background: var(--cta); box-shadow: 0 10px 24px rgba(110, 77, 255, 0.35); }
.cbtn--dep svg { width: 18px; height: 18px; }
.cbtn--dep small { background: rgba(255, 255, 255, 0.16); }
.cbtn-demo { flex: none; width: 86px; height: 54px; border-radius: 16px; font-weight: 800; }

.citems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.citem {
  --rc: #6b7a99; position: relative; display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 16px 6px 9px; border-radius: 16px; text-align: center;
  background: radial-gradient(90% 60% at 50% 30%, color-mix(in srgb, var(--rc) 40%, transparent), transparent 70%), color-mix(in srgb, var(--rc) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--rc) 85%, transparent);
}
.citem__img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)); }
.citem__img.is-nft { border-radius: 12px; }
.citem b { max-width: 100%; font-size: 11.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem small { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 850; }
.citem small .gram { width: 13px; height: 13px; }
.citem__ch { position: absolute; top: 5px; right: 5px; padding: 1px 6px; border-radius: 99px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: color-mix(in srgb, var(--rc) 70%, #000); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.citem--common .citem__ch { background: rgba(120, 130, 160, 0.55); }
.section-head--inside { display: block; }
.section-head--inside small.note { display: block; margin-top: 2px; font-size: 12px; }

/* ---------- окно выпадения ---------- */
.sheet--drop .sheet__panel { background: #0f0c1c; overflow: hidden; }
[data-theme="light"] .sheet--drop .sheet__panel { background: #fbfaff; }
.cdrop { --rc: #8b5cff; position: relative; display: grid; gap: 14px; padding: 6px 2px 4px; text-align: center; isolation: isolate; }
.cdrop--common { --rc: #8b98b8; } .cdrop--uncommon { --rc: #2f8cff; } .cdrop--rare { --rc: #8b5cff; } .cdrop--epic { --rc: #ff3d9a; } .cdrop--legend { --rc: #ffb800; }
.cdrop__fx { position: absolute; inset: -40px -20px auto; height: 360px; z-index: -1; pointer-events: none; }
.cdrop__rays { position: absolute; left: 50%; top: 52%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 34%, transparent) 0 8deg, transparent 8deg 22deg); -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 70%); mask-image: radial-gradient(closest-side, #000 10%, transparent 70%); animation: raysSpin 18s linear infinite; }
.cdrop__glow { position: absolute; left: 50%; top: 52%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 65%, transparent), transparent); filter: blur(8px); animation: dropGlow 2.4s ease-in-out infinite; }
@keyframes dropGlow { 50% { transform: scale(1.12); opacity: 0.8; } }
.cdrop__head small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.cdrop__head h2 { margin: 4px 0 2px; font: 800 32px/1 "Lilita One", system-ui, sans-serif; font-synthesis: none; letter-spacing: 0; }
.cdrop__sum { display: inline-flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 900; color: var(--win); }
.cdrop__sum .gram { width: 24px; height: 24px; }
.cdrop__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cdrop__it { width: calc((100% - 16px) / 3); padding-top: 12px; animation: dropPop 0.62s cubic-bezier(0.2, 1.5, 0.4, 1) both; animation-delay: var(--d); }
.cdrop--one .cdrop__it { width: 62%; padding: 18px 10px 14px; border-radius: 22px; }
.cdrop--one .cdrop__it .citem__img { width: 132px; height: 132px; animation: orbFloat 3s ease-in-out 0.7s infinite; }
.cdrop--one .cdrop__it b { font-size: 16px; }
.cdrop--one .cdrop__it small { font-size: 15px; }
@keyframes dropPop { 0% { opacity: 0; transform: translateY(26px) scale(0.6); } 100% { opacity: 1; transform: none; } }
.cdrop__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cdrop__btns .btn { flex: 1 1 40%; height: 50px; }
.cdrop__again { flex-basis: 100% !important; height: 44px !important; }
.cdrop__again svg { width: 17px; height: 17px; }
.cdrop__note { margin: -4px 0 0; font-size: 12px; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: visible; }
.confetti i { position: absolute; left: 50%; top: 34%; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: confettiFly 1.7s cubic-bezier(0.15, 0.6, 0.35, 1) forwards; }
@keyframes confettiFly {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(0.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 160px)) rotate(var(--r)) scale(1); }
}

/* ---------- лобби: плитка кейсов ---------- */
.tile--cases { background: radial-gradient(80% 120% at 75% 50%, rgba(255, 79, 163, 0.35), transparent 60%), linear-gradient(120deg, #3a1f7a, #26124f 55%, #160b30); }
.caseorbs { position: absolute; inset: 0; pointer-events: none; }
.caseorbs > span { position: absolute; display: block; animation: capBob 3.4s ease-in-out infinite; }
.caseorbs__b { right: 15%; top: 4%; width: 30%; z-index: 2; }
.caseorbs__a { right: 41%; bottom: 4%; width: 20%; animation-delay: -1.2s !important; }
.caseorbs__c { right: 1%; bottom: 6%; width: 19%; animation-delay: -2.3s !important; }
.caseorbs .corb__spark { display: none; }

/* ---------- лобби: «Занос дня», «Самый везучий», лента, онлайн ---------- */
/* общая рамка (как в присланном образце): тёмно-синий градиент, тонкая светлая кромка и сиреневый нижний край */
.bbh, .feed__item, .online2 {
  background: radial-gradient(130% 120% at 0% 0%, rgba(84, 98, 170, 0.34), transparent 55%), linear-gradient(160deg, #1d2134, #141623 70%);
  box-shadow: inset 0 0 0 1px rgba(160, 172, 255, 0.2), inset 0 -2.5px 0 rgba(142, 155, 255, 0.85), 0 6px 16px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .bbh, [data-theme="light"] .feed__item, [data-theme="light"] .online2 {
  background: radial-gradient(130% 120% at 0% 0%, rgba(120, 132, 255, 0.14), transparent 55%), linear-gradient(160deg, #ffffff, #f3f2fb 70%);
  box-shadow: inset 0 0 0 1px rgba(90, 100, 200, 0.18), inset 0 -2.5px 0 rgba(120, 132, 255, 0.75), 0 6px 14px rgba(40, 30, 90, 0.08);
}
[data-daily]:not(:empty) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 4px 6px; }
.bbh {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top pic" "num num" "what what" "who who";
  align-items: center; gap: 1px 6px; min-width: 0; padding: 10px 11px 11px; border: 0; border-radius: 18px; text-align: left; color: var(--text); overflow: hidden;
}
.bbh--big { background: radial-gradient(120% 110% at 100% 0%, rgba(255, 122, 26, 0.24), transparent 58%), radial-gradient(130% 120% at 0% 0%, rgba(84, 98, 170, 0.3), transparent 55%), linear-gradient(160deg, #1d2134, #141623 70%); }
.bbh--lucky { background: radial-gradient(120% 110% at 100% 0%, rgba(139, 92, 255, 0.3), transparent 58%), radial-gradient(130% 120% at 0% 0%, rgba(84, 98, 170, 0.3), transparent 55%), linear-gradient(160deg, #1d2134, #141623 70%); }
[data-theme="light"] .bbh--big, [data-theme="light"] .bbh--lucky { background: radial-gradient(120% 110% at 100% 0%, rgba(255, 122, 26, 0.12), transparent 58%), linear-gradient(160deg, #fff, #f3f2fb 70%); }
.bbh__top { grid-area: top; display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; }
.bbh__top small { font-size: 11px; }
.bbh__pic { grid-area: pic; width: 34px; height: 34px; border-radius: 10px; align-self: start; }
.bbh__pic img { width: 30px; height: 30px; }
.bbh strong { grid-area: num; margin-top: 2px; font-size: 20px; min-width: 0; overflow: hidden; }
.bbh strong.is-l { font-size: 17.5px; }
.bbh strong.is-xl { font-size: 15.5px; }
.bbh strong .gram { width: 16px; height: 16px; flex: none; }
.bbh__what { margin-top: 1px; font-size: 12px; }
.bbh__who { margin-top: 6px; gap: 5px; min-width: 0; }
.bbh__who > span:not(.avatar) { flex: 1 1 auto; }
.bbh__who i { flex: none; margin-left: 0; font-size: 10px; padding: 2px 6px; background: rgba(255, 255, 255, 0.08); }
[data-theme="light"] .bbh__who i { background: var(--surface-2); }

.feed__item { height: 50px; padding: 0 12px 0 6px; border-radius: 16px; }
.feed__item.is-on { box-shadow: inset 0 0 0 1.5px var(--accent), inset 0 -2.5px 0 rgba(142, 155, 255, 0.85); }
.feed__item--empty { border-radius: 16px; }

.section-head--feed { align-items: center; }
.online2 { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 11px; border-radius: 13px; white-space: nowrap; }
.online2__dot { position: relative; width: 11px; height: 11px; border-radius: 50%; background: #1fff7a; box-shadow: 0 0 8px #1fff7a, 0 0 16px rgba(31, 255, 122, 0.55); animation: onlinePulse 1.6s ease-in-out infinite; flex: none; }
.online2__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(31, 255, 122, 0.55); animation: onlineRing 1.6s ease-out infinite; }
@keyframes onlinePulse { 0%, 100% { transform: scale(0.82); filter: brightness(1); } 50% { transform: scale(1.12); filter: brightness(1.25); } }
@keyframes onlineRing { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
.online2__txt { display: grid; line-height: 1.05; }
.online2__txt b { font-size: 15px; font-weight: 850; }
.online2__txt small { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; }
[data-theme="light"] .online2__dot { background: #00d25f; box-shadow: 0 0 8px rgba(0, 210, 95, 0.7); }


@media (prefers-reduced-motion: reduce) {
  .corb__hero, .corb__spark, .cpage__orb .corb__rays, .cdrop__rays, .cdrop__glow, .online2__dot, .online2__dot::after, .caseorbs > span, .cdrop--one .cdrop__it .citem__img { animation: none; }
  .cdrop__it { animation-duration: 0.01s; }
}

/* ---------- Upgrade v9 ---------- */
.upg-stage {
  position: relative; margin: 2px 0 12px; padding: 14px 10px 12px; border-radius: 26px; isolation: isolate;
  background: radial-gradient(70% 60% at 50% 42%, rgba(30, 194, 122, 0.16), transparent 70%), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg)));
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -3px 0 rgba(30, 194, 122, 0.45);
  transition: background 0.4s, box-shadow 0.4s;
}
.upg-stage.is-win { box-shadow: inset 0 0 0 1px rgba(34, 201, 131, 0.6), inset 0 -3px 0 #22c983, 0 0 34px rgba(34, 201, 131, 0.25); }
.upg-stage.is-lose { background: radial-gradient(70% 60% at 50% 42%, rgba(255, 82, 102, 0.18), transparent 70%), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg))); box-shadow: inset 0 0 0 1px rgba(255, 82, 102, 0.5), inset 0 -3px 0 #ff5266; animation: stageShake 0.42s ease-in-out; }
.upg-stage.has-vein { background: radial-gradient(70% 60% at 50% 42%, rgba(255, 194, 26, 0.22), transparent 70%), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg))); box-shadow: inset 0 0 0 1px rgba(255, 194, 26, 0.45), inset 0 -3px 0 #ffc21a; }
@keyframes stageShake { 20% { transform: translateX(-5px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.upg-stage .wheel { margin-top: 0; }
.upg-stage .upg-hint { margin: 6px 0 0; }
.upg-vein-pill {
  position: absolute; top: 10px; right: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 8px; border: 0; border-radius: 99px;
  font: inherit; font-size: 12.5px; font-weight: 850; color: #3a2200; background: linear-gradient(135deg, #fff2a8, #ffc21a 55%, #ff9a1a); box-shadow: 0 4px 14px rgba(255, 170, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.upg-vein-pill svg { width: 15px; height: 15px; opacity: 0.75; }
.upg-vein-pill__gem { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, #ffd23f 50%, #ff8a00); box-shadow: 0 0 6px #fff6; }
.wheel__gold { opacity: 0; transition: opacity 0.25s; filter: drop-shadow(0 0 3px rgba(255, 186, 20, 0.55)); pointer-events: none; }
.wheel__gold.is-on { opacity: 1; animation: goldBreath 2.8s ease-in-out infinite; }
@keyframes goldBreath { 50% { filter: drop-shadow(0 0 6px rgba(255, 214, 90, 0.85)); } }
/* v12: жила — тонкая вставка внутри зелёной зоны: основа, блик, тень, тёмные края и камешек-указатель снаружи */
.wheel__gold-base { stroke: #f2ad0d; }
.wheel__gold-hi { stroke: #fff3b5; opacity: 0.95; }
.wheel__gold-lo { stroke: #8f5300; opacity: 0.9; }
.wheel__gold-cap { stroke: rgba(58, 34, 0, 0.75); stroke-width: 1.3; stroke-linecap: round; }
.wheel__gold.is-thin .wheel__gold-cap { display: none; }
.wheel__gold-gem { fill: #ffd54a; stroke: #6b4100; stroke-width: 1; stroke-linejoin: round; animation: gemGlow 2.8s ease-in-out infinite; }
@keyframes gemGlow { 50% { fill: #fff2a8; } }
.wheel__gold-star { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; animation: goldStar 3.4s ease-in-out infinite 0.6s; }
@keyframes goldStar { 0%, 72%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); } 82% { opacity: 1; transform: scale(1.15) rotate(45deg); } 92% { opacity: 0; transform: scale(0.4) rotate(90deg); } }
.wheel.is-gold .wheel__center { box-shadow: inset 0 0 0 2px #ffc21a, 0 0 0 6px rgba(255, 194, 26, 0.25); }
.wheel.is-lose .wheel__center b { color: var(--loss); }
.wheel.is-win .wheel__center b { color: var(--win); }
.vein-flash { position: absolute; left: 50%; top: 50%; z-index: 7; pointer-events: none; transform: translate(-50%, -50%) scale(0.6); opacity: 0; white-space: nowrap; }
.vein-flash b { display: block; padding: 8px 14px; border-radius: 14px; font: 800 22px/1 "Lilita One", system-ui, sans-serif; font-synthesis: none; color: #3a2200; background: linear-gradient(135deg, #fff2a8, #ffc21a 55%, #ff9a1a); box-shadow: 0 10px 30px rgba(255, 170, 0, 0.55); }
.vein-flash.is-on { animation: veinFlash 1.35s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
@keyframes veinFlash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-6deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(2deg); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -64%) scale(0.92); } }

/* бонус жилы: большое колесо множителей прямо на месте нашего колеса */
.bonus { position: absolute; inset: -6px; z-index: 8; display: grid; place-items: center; animation: bonusIn 0.5s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes bonusIn { from { opacity: 0; transform: scale(0.7) rotate(-30deg); } to { opacity: 1; transform: none; } }
.bonus__wheel { position: absolute; inset: 0; will-change: transform; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5)); }
.bonus__wheel svg { width: 100%; height: 100%; }
.bseg { stroke: #2a1a00; stroke-width: 1.5; fill: #ffe9a3; }
.bseg--1 { fill: #fff3cf; }
.bseg--2 { fill: #ffd86b; }
.bseg--3 { fill: #ffb93b; }
.bseg--5 { fill: #ff8a1f; }
.bseg--10 { fill: #ff4f7b; }
.bonus__wheel text { font: 900 15px system-ui, sans-serif; fill: #3a2200; text-anchor: middle; dominant-baseline: central; }
.bonus__ptr { position: absolute; bottom: -4px; left: 50%; width: 0; height: 0; margin-left: -12px; border: 12px solid transparent; border-bottom: 20px solid #fff; border-top: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); z-index: 2; }
.bonus__core {
  position: relative; z-index: 3; width: 58%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px; text-align: center;
  background: radial-gradient(circle at 35% 30%, #4b3a12, #1d1406 70%); box-shadow: inset 0 0 0 3px #ffc21a, 0 0 26px rgba(255, 190, 0, 0.55); color: #fff;
}
.bonus__step { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #ffc21a; color: #3a2200; }
.bonus__x { font: 800 40px/1 "Lilita One", system-ui, sans-serif; font-synthesis: none; color: #ffe066; text-shadow: 0 3px 0 #7a4a00; }
.bonus__x.is-pop { animation: xPop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes xPop { 0% { transform: scale(1.6); } 100% { transform: scale(1); } }
.bonus__core small { font-size: 12px; font-weight: 750; color: #ffe9a3; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bonus__gift:empty { display: none; }
.bonus__img { width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); animation: dropPop 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }
.bonus.is-final .bonus__core { box-shadow: inset 0 0 0 3px #ffe066, 0 0 40px rgba(255, 210, 0, 0.8); }

/* два больших слота: ставка → цель */
.upg-slots { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: stretch; gap: 4px; margin-bottom: 10px; }
.upg-slots__arrow { display: grid; place-items: center; color: var(--muted); }
.upg-slots__arrow svg { width: 20px; height: 20px; }
.uslot {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; padding: 10px 10px 12px; border: 0; border-radius: 20px; text-align: center; font: inherit; color: var(--text);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg)));
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -3px 0 rgba(139, 92, 255, 0.55);
  transition: transform 0.1s, box-shadow 0.3s;
}
.uslot:active:not(:disabled) { transform: scale(0.97); }
.uslot--target { box-shadow: inset 0 0 0 1px rgba(30, 194, 122, 0.4), inset 0 -3px 0 rgba(30, 194, 122, 0.8); background: radial-gradient(80% 60% at 50% 35%, rgba(30, 194, 122, 0.14), transparent 70%), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg))); }
.uslot.is-bonus { box-shadow: inset 0 0 0 1.5px #ffc21a, inset 0 -3px 0 #ffc21a, 0 0 24px rgba(255, 194, 26, 0.35); background: radial-gradient(80% 60% at 50% 35%, rgba(255, 194, 26, 0.22), transparent 70%), var(--surface); }
.uslot__label { justify-self: start; font-size: 11px; font-weight: 800; color: var(--muted); }
.uslot.is-bonus .uslot__label { color: #ffc21a; }
.uslot__pic { position: relative; width: 78px; height: 78px; display: grid; place-items: center; }
.uslot__img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)); }
.uslot__img.is-nft { border-radius: 16px; }
.uslot__pic--gram img { width: 58px; height: 58px; }
.uslot__pic--plus { border-radius: 22px; border: 2px dashed var(--line-strong); color: var(--muted); }
.uslot__pic--plus svg { width: 28px; height: 28px; }
.uslot__pic--stack { display: block; }
.uslot__pic--stack .uslot__img { position: absolute; width: 54px; height: 54px; }
.uslot__pic--stack .uslot__img:nth-child(1) { left: 0; top: 4px; transform: rotate(-10deg); }
.uslot__pic--stack .uslot__img:nth-child(2) { right: 0; top: 0; transform: rotate(9deg); }
.uslot__pic--stack .uslot__img:nth-child(3) { left: 12px; bottom: 0; }
.uslot__badge { position: absolute; right: -10px; top: -4px; padding: 2px 7px; border-radius: 99px; font-style: normal; font-size: 11.5px; font-weight: 900; color: #fff; background: var(--c-upgrade); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }
.uslot.is-bonus .uslot__badge { background: #ffc21a; color: #3a2200; }
.uslot__txt { display: grid; gap: 1px; min-width: 0; max-width: 100%; }
.uslot__txt b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uslot__txt small { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; font-weight: 750; color: var(--muted); }
.uslot__txt small .gram { width: 13px; height: 13px; }
.uslot.is-burn .uslot__pic { animation: burn 1.2s ease-in forwards; }
.uslot.is-burn { box-shadow: inset 0 0 0 1.5px var(--loss), inset 0 -3px 0 var(--loss); }
@keyframes burn {
  0% { filter: none; transform: none; }
  25% { transform: translateX(-4px) rotate(-4deg); }
  45% { transform: translateX(4px) rotate(3deg); filter: grayscale(0.4) brightness(1.2) drop-shadow(0 0 10px #ff5266); }
  100% { transform: translateY(10px) scale(0.6); opacity: 0.15; filter: grayscale(1) blur(1px); }
}

.upg-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin-bottom: 10px; scrollbar-width: none; }
.upg-chips::-webkit-scrollbar { display: none; }
.upg-chips .chip { flex: 1 0 auto; justify-content: center; min-width: 48px; }
.upg-chips__sep { flex: none; width: 1px; margin: 6px 2px; background: var(--line-strong); }
.upg-cta { display: flex; gap: 8px; margin: 12px 0 8px; }
.upg-go { flex: 1; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: 18px; font-size: 17px; }
.upg-go small { font-size: 11.5px; font-weight: 700; opacity: 0.85; }
.upg-demo { flex: none; width: 86px; height: 56px; border-radius: 18px; font-weight: 800; }
.upg-foot { text-align: center; margin: 4px 0 0; }
.upw-mults { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 6px; }
.upw-mults i { font-style: normal; font-weight: 900; padding: 3px 9px; border-radius: 99px; color: #3a2200; background: linear-gradient(135deg, #fff2a8, #ffc21a); }
.upw-mults b { font-weight: 900; color: #ffc21a; font-size: 18px; }
.upw-line { margin: -4px 0 0; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 650; }
.upw-line .gram { width: 14px; height: 14px; }

/* правила жилы */
.vein-rules { display: grid; gap: 12px; }
.vein-rules p { margin: 0; line-height: 1.45; }
.vein-now { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 210, 63, 0.18), rgba(255, 138, 0, 0.1)); box-shadow: inset 0 0 0 1px rgba(255, 194, 26, 0.45); }
.vein-now span { font-size: 11.5px; font-weight: 800; color: #ffc21a; }
.vein-now b { font-size: 18px; }
.vein-now small { color: var(--muted); font-size: 12.5px; }
.vt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vt { display: grid; gap: 1px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.vt b { font-size: 13px; }
.vt span { font-size: 11.5px; color: var(--muted); }
.vt i { font-style: normal; font-size: 13px; font-weight: 800; color: #ffc21a; }
.vt.is-on { box-shadow: inset 0 0 0 1.5px #ffc21a, 0 0 14px rgba(255, 194, 26, 0.25); }
@media (prefers-reduced-motion: reduce) {
  .upg-stage.is-lose, .wheel__gold.is-on, .wheel__gold-gem, .wheel__gold-star, .vein-flash.is-on, .bonus, .bonus__x.is-pop, .uslot.is-burn .uslot__pic, .bonus__img { animation: none; }
}
/* v9: строка ставки — три элемента на всю ширину (раньше оставалась пустая колонка справа) */
.betbar { grid-template-columns: 52px minmax(0, 1fr) 52px; }
.upg-chips .chip { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
.topbar__title h1 { font-size: 19px; }

/* ---------- логотип v9: красный против синего ---------- */
.logo { gap: 6px; }
.logo__ball { display: none; }
.lmark { display: block; overflow: visible; }
.logo__mark { width: 40px; height: 27px; flex: none; filter: drop-shadow(0 3px 8px rgba(120, 80, 255, 0.45)); }
.lmark__r, .lmark__b { transform-box: fill-box; transform-origin: center; }
.lmark__spark { transform-box: fill-box; transform-origin: center; }
.logo__mark .lmark__r { animation: lmR 3.2s ease-in-out infinite; }
.logo__mark .lmark__b { animation: lmB 3.2s ease-in-out infinite; }
.logo__mark .lmark__spark { animation: lmSpark 3.2s ease-in-out infinite; }
@keyframes lmR { 0%, 100% { transform: translateX(-1.6px); } 46% { transform: translateX(0.8px) scaleX(0.96); } 54% { transform: translateX(-0.6px); } }
@keyframes lmB { 0%, 100% { transform: translateX(1.6px); } 46% { transform: translateX(-0.8px) scaleX(0.96); } 54% { transform: translateX(0.6px); } }
@keyframes lmSpark { 0%, 38%, 70%, 100% { transform: scale(0.35); opacity: 0.25; } 47% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
.logo__word, [data-theme="light"] .logo__word {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-stroke: 0;
  font-family: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif; font-size: 24px; letter-spacing: 0.015em;
  color: #fff; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45));
}
[data-theme="light"] .logo__word { color: var(--text); filter: none; }
.logo__w2 { margin-left: 1px; }

/* ---------- экран загрузки v9 (как у топовых мини-аппов): светящийся логотип, проявление названия, полоса, частицы ---------- */
#auth-gate { display: none; }
.auth-pending > :not(#auth-gate):not(script) { display: none !important; }
.auth-pending #auth-gate {
  position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 26px; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse 70% 50% at 50% 46%, #22134a 0%, #110b24 52%, #07060d 100%);
}
.gate { position: relative; z-index: 1; width: min(340px, 100%); display: grid; justify-items: center; gap: 16px; }
.gate__logo { position: relative; }
.gate__logo::before { content: ""; position: absolute; inset: -40% -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 255, 0.35), transparent 70%); filter: blur(6px); animation: gateGlow 2.6s ease-in-out infinite; }
.gate__logo svg { position: relative; width: 150px; height: 100px; overflow: visible; filter: drop-shadow(0 0 16px rgba(139, 92, 255, 0.55)); }
.gate__logo .lmark__r { animation: gtR 1.9s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
.gate__logo .lmark__b { animation: gtB 1.9s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
.gate__logo .lmark__spark { animation: gtSpark 1.9s ease-out infinite; }
@keyframes gtR { 0%, 100% { transform: translateX(-6px); } 48% { transform: translateX(1px) scaleX(0.93); } 56% { transform: translateX(-2px); } }
@keyframes gtB { 0%, 100% { transform: translateX(6px); } 48% { transform: translateX(-1px) scaleX(0.93); } 56% { transform: translateX(2px); } }
@keyframes gtSpark { 0%, 40%, 100% { transform: scale(0.2); opacity: 0; } 49% { transform: scale(1.35) rotate(25deg); opacity: 1; } 70% { transform: scale(0.6) rotate(45deg); opacity: 0.2; } }
@keyframes gateGlow { 50% { transform: scale(1.12); opacity: 0.7; } }
.gate__title {
  font: 800 24px/1 "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif; font-synthesis: none; letter-spacing: 0.34em; padding-left: 0.34em;
  color: transparent; background: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.16) 30%, #fff 46%, #e6dbff 54%, rgba(255, 255, 255, 0.16) 70%, rgba(255, 255, 255, 0.16) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; animation: gateShine 2.6s linear infinite;
}
@keyframes gateShine { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.gate__bar { position: relative; width: 74%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 77, 99, 0.25), rgba(139, 92, 255, 0.35), rgba(61, 139, 255, 0.25)); }
.gate__bar i { position: absolute; top: 50%; left: 0; width: 44px; height: 4px; margin: -2px 0 0 -22px; border-radius: 4px; background: radial-gradient(closest-side, #fff, #c7b2ff 55%, transparent); box-shadow: 0 0 16px #a37bff, 0 0 4px #fff; animation: gateBar 1.7s ease-in-out infinite; }
@keyframes gateBar { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.gate p { margin: 0; color: #b9b2d6; font-size: 13px; min-height: 1.3em; }
.gate__err { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
.gate .btn { min-width: 200px; }
.gate__p { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #b49bff; box-shadow: 0 0 6px #8b5cff; opacity: 0.55; animation: gateDust 7s ease-in-out infinite; animation-delay: var(--d); }
.gate__p:nth-child(3n) { background: #ff6b81; box-shadow: 0 0 6px #ff4d63; }
.gate__p:nth-child(3n + 1) { background: #6aa8ff; box-shadow: 0 0 6px #3d8bff; }
@keyframes gateDust { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(-18px); opacity: 0.12; } }
@media (prefers-reduced-motion: reduce) {
  .logo__mark .lmark__r, .logo__mark .lmark__b, .logo__mark .lmark__spark, .gate__logo .lmark__r, .gate__logo .lmark__b, .gate__logo .lmark__spark, .gate__logo::before, .gate__title, .gate__bar i, .gate__p { animation: none; }
  .gate__title { color: #fff; background: none; }
}

/* ---------- нижняя панель: общий чат — круглая кнопка в левом углу ---------- */
.tabbar__row { display: flex; align-items: center; gap: 2px; padding: 0 6px 0 8px; }
.tabbar__row > .tab { flex: 1 1 0; min-width: 0; }
.tab > svg { padding: 4px 12px; }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab-chat {
  position: relative; flex: none; width: 46px; height: 46px; margin-right: 2px; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.08), transparent 60%), var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 4px 12px rgba(0, 0, 0, 0.25); transition: transform 0.12s, color 0.2s;
}
.tab-chat svg { width: 23px; height: 23px; }
.tab-chat:active { transform: scale(0.92); }
.tab-chat.is-on { color: #fff; background: var(--cta); box-shadow: 0 6px 16px rgba(110, 77, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.tab-chat__dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #ff4d63; box-shadow: 0 0 0 2px var(--tabbar), 0 0 8px #ff4d63; }
.tab-chat__dot[hidden] { display: none; }
@media (max-width: 360px) { .tab span { font-size: 10px; } .tab > svg { padding: 4px 9px; } .tab-chat { width: 42px; height: 42px; } }

/* ---------- «Приглашай друзей»: баннер из настоящих картинок подарков ---------- */
.promo-ref {
  position: relative; display: flex; align-items: center; min-height: 128px; margin: 14px 0 12px; padding: 16px 0 16px 16px; border-radius: 22px; overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; aspect-ratio: auto;
  background:
    radial-gradient(70% 90% at 85% 110%, rgba(140, 110, 255, 0.75), transparent 60%),
    radial-gradient(55% 80% at 105% 10%, rgba(120, 160, 255, 0.55), transparent 60%),
    radial-gradient(60% 70% at -10% -20%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(120deg, #2a35d6 0%, #3a3ae6 45%, #5b3ff0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 -3px 0 rgba(170, 180, 255, 0.7), 0 12px 28px rgba(40, 40, 170, 0.38);
}
.promo-ref img { display: block; max-width: none; }
.promo-ref__txt { position: relative; z-index: 2; display: grid; gap: 6px; justify-items: start; max-width: calc(100% - 128px); }
.promo-ref__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); font-size: 12px; font-weight: 800; white-space: nowrap; }
.promo-ref__chip svg { width: 16px; height: 16px; }
.promo-ref__txt b { font: 800 24px/1.05 "Lilita One", system-ui, sans-serif; font-synthesis: none; text-shadow: 0 2px 0 rgba(10, 10, 80, 0.35); }
.promo-ref__txt small { font-size: 13px; font-weight: 700; line-height: 1.35; color: rgba(255, 255, 255, 0.92); }
.promo-ref__txt em { font-style: normal; font-weight: 900; color: #2a1a00; background: #ffd23f; padding: 1px 6px; border-radius: 7px; box-shadow: 0 2px 0 #b88a00; }
.promo-ref { min-height: 138px; }
.promo-ref__art { position: absolute; right: 8px; bottom: -12px; width: 116px; height: 152px; z-index: 1; animation: refBob 3.4s ease-in-out infinite; }
.promo-ref__glow { position: absolute; left: -16px; right: -16px; bottom: 8px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.32), transparent 72%); }
.promo-ref__pepe { position: absolute; left: 0; bottom: 0; width: 116px; height: 116px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(10, 10, 60, 0.5)); }
.promo-ref__cap { position: absolute; left: 12px; top: 10px; width: 72px; height: 72px; object-fit: contain; transform: rotate(-12deg); transform-origin: 50% 80%; filter: drop-shadow(0 5px 8px rgba(10, 10, 60, 0.45)); }
@keyframes refBob { 50% { translate: 0 -4px; } }
.promo-ref:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) { .promo-ref__art { animation: none; } }
#auth-gate [hidden] { display: none !important; }
.logo__mark { width: 46px; height: 31px; }

/* ================= v10 ================= */
/* кнопки «назад» и прочие иконки-кнопки — скруглённые квадраты */
.ibtn { border-radius: 12px; }
.badge--sq { filter: none; }
.gloss { width: 44px; height: 44px; flex: none; display: block; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28)); }
.betmode__gift { width: 20px; height: 20px; object-fit: contain; filter: saturate(0.55) brightness(0.95); transition: filter 0.18s, transform 0.18s; }
.betmode button.is-on .betmode__gift { filter: none; transform: scale(1.08); }

/* строка хеша: щит · Hash: начало…конец · копировать */
.hashrow { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 0 6px 0 12px; height: 46px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hashrow__ic { width: 24px; height: 24px; color: #2fd38d; flex: none; display: grid; place-items: center; }
.hashrow__ic svg { width: 24px; height: 24px; }
.hashrow__t { flex: 1; min-width: 0; color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hashrow__t b { color: var(--text); font-weight: 750; letter-spacing: 0.01em; }
.hashrow__copy { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; }
.hashrow__copy svg { width: 20px; height: 20px; }
.hashrow__copy:active { background: var(--surface-2); color: var(--text); }
.cdet__fair .hashrow { margin: 8px 0; }
.ar-hash { margin-top: 8px; }

/* «Занос дня» и «Самый везучий» игры — две тонкие рамки сверху */
.dstrip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 12px; }
.dcell { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 50px; padding: 0 8px 0 6px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.dcell::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55; }
.dcell--big::before { background: radial-gradient(120% 90% at 0% 0%, rgba(255, 122, 26, 0.2), transparent 60%); }
.dcell--lucky::before { background: radial-gradient(120% 90% at 0% 0%, rgba(162, 107, 255, 0.24), transparent 60%); }
.dcell__pic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; position: relative; }
.dcell__img { width: 32px; height: 32px; object-fit: contain; }
.dcell__img--g { width: 24px; height: 24px; }
.dcell__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; position: relative; line-height: 1.15; }
.dcell__txt small { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); font-weight: 650; white-space: nowrap; }
.dcell__txt small svg { width: 12px; height: 12px; flex: none; }
.dcell--big .dcell__txt small svg { color: #ff8a3d; }
.dcell--lucky .dcell__txt small svg { color: #b48cff; }
.dcell__txt b { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcell--lucky .dcell__txt b { color: #c4a4ff; }
.dcell__txt b i { font-style: normal; font-weight: 650; font-size: 11px; color: var(--muted); margin-left: 4px; }
.dcell__who { display: flex; flex-direction: column; align-items: center; gap: 1px; flex: none; max-width: 46px; position: relative; }
.dcell__who .avatar, .dcell__ava { width: 22px; height: 22px; font-size: 10px; }
.dcell__who em { font-style: normal; font-size: 9.5px; color: var(--muted); max-width: 46px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcell.is-empty { color: var(--muted); }
.dcell.is-empty .dcell__ico { width: 30px; height: 30px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.dcell.is-empty .dcell__ico svg { width: 16px; height: 16px; }
.dcell.is-empty .dcell__txt b { font-size: 12.5px; color: var(--muted); font-weight: 650; }

/* LIVE перед лентой выигрышей */
.feed-wrap { display: flex; align-items: center; gap: 8px; }
.feed-wrap .feed { flex: 1; min-width: 0; margin-left: 0; padding-left: 0; }
.live-badge { flex: none; width: 34px; height: 48px; border-radius: 12px; background: #cfe8fb; color: #1f86d9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; box-shadow: inset 0 0 0 1px rgba(31, 134, 217, 0.25); }
.live-badge b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; line-height: 1; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #1f86d9; animation: livePulse 1.4s ease-in-out infinite; }
[data-theme="dark"] .live-badge { background: rgba(84, 170, 255, 0.16); color: #7cc4ff; box-shadow: inset 0 0 0 1px rgba(124, 196, 255, 0.28); }
[data-theme="dark"] .live-badge i { background: #7cc4ff; }
@keyframes livePulse { 0%, 100% { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(31, 134, 217, 0.55); } 50% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(31, 134, 217, 0); } }

/* квадратные кнопки денег (как в профиле у команды) */
.mbtn { width: 46px; height: 46px; border: 0; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform 0.1s; }
.mbtn svg { width: 22px; height: 22px; }
.mbtn:active { transform: scale(0.94); }
.mbtn--primary { background: linear-gradient(160deg, #4aa3ff, #1f6bff); color: #fff; box-shadow: 0 8px 18px rgba(31, 107, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.mbtn--primary svg { width: 24px; height: 24px; }
.mbtn--sm { width: 38px; height: 38px; border-radius: 11px; }
.mbtn--sm svg { width: 19px; height: 19px; }

/* ---------- профиль ---------- */
.pf { display: flex; flex-direction: column; gap: 12px; }
.pf-card { position: relative; overflow: hidden; padding: 16px; border-radius: 24px; background: radial-gradient(90% 80% at 85% 0%, rgba(61, 139, 255, 0.22), transparent 60%), linear-gradient(180deg, #18233a, var(--surface) 70%); box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="light"] .pf-card { background: radial-gradient(90% 80% at 85% 0%, rgba(61, 139, 255, 0.16), transparent 60%), var(--surface); }
.pf-me { display: flex; align-items: center; gap: 14px; }
.pf-ava, .pf-me .avatar { width: 64px; height: 64px; font-size: 24px; flex: none; box-shadow: 0 0 0 3px rgba(122, 92, 255, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35); }
.pf-me__txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pf-me__txt > b { font-size: 21px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-me__txt > span { color: var(--muted); font-size: 14px; }
.pf-me__id { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; background: none; color: var(--faint); font: inherit; font-size: 13px; text-align: left; }
.pf-me__id svg { width: 13px; height: 13px; }
.pf-bal { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="light"] .pf-bal { background: var(--surface-2); }
.pf-bal__main { flex: 1; min-width: 0; }
.pf-bal__main small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pf-bal__v { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.pf-bal__v .gram { width: 24px; height: 24px; }
.pf-bal__v b { font-size: 27px; font-weight: 850; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-bal__acts { display: flex; gap: 8px; }
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-stat { padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.pf-stat__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 4px; }
.pf-stat__ic svg { width: 21px; height: 21px; }
.pf-stat__ic--wd { background: rgba(47, 211, 141, 0.14); color: #2fd38d; }
.pf-stat__ic--games { background: rgba(255, 178, 36, 0.14); color: #ffb224; }
.pf-stat b { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 850; }
.pf-stat b .gram { width: 20px; height: 20px; }
.pf-stat small { color: var(--muted); font-size: 13px; }

/* баннер партнёрки в профиле */
.pbanner { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 14px 120px 14px 16px; border-radius: 22px; color: #fff; text-decoration: none; overflow: hidden; background: radial-gradient(80% 120% at 100% 50%, rgba(140, 92, 255, 0.55), transparent 65%), linear-gradient(120deg, #1d2a6b, #2c3ea3 55%, #3d2a99); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 26px rgba(42, 52, 160, 0.35); }
.pbanner:active { transform: scale(0.985); }
.pbanner__chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.14); font-size: 11.5px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.pbanner__chip svg { width: 14px; height: 14px; }
.pbanner > b { font-size: 21px; font-weight: 850; margin-top: 4px; }
.pbanner > small { font-size: 13.5px; color: rgba(255, 255, 255, 0.78); }
.pbanner > small strong { color: #fff; font-weight: 850; }
.pbanner__art { position: absolute; right: 38px; top: 50%; width: 104px; height: 104px; transform: translateY(-50%); }
.pbanner__pepe { position: absolute; right: 2px; bottom: 0; width: 86px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)); animation: refBob 3.2s ease-in-out infinite; }
.pbanner__cap { position: absolute; left: -12px; top: 2px; width: 50px; height: auto; transform: rotate(-14deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.pbanner__go { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; }
.pbanner__go svg { width: 16px; height: 16px; }

/* меню профиля */
.pmenu { border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pmenu__row { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 70px; padding: 12px 14px; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; font: inherit; }
.pmenu__row + .pmenu__row { box-shadow: inset 0 1px 0 var(--line); }
.pmenu__row:active { background: var(--surface-2); }
.pmenu__row--lang:active { background: none; }
.pmenu__ic {
  --ink: #a49578; width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--ink); background: var(--surface-2);
  background: color-mix(in srgb, var(--ink) 13%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
}
.pmenu__ic--history { --ink: #839db9; }
.pmenu__ic--shield { --ink: #83a595; }
.pmenu__ic--chat { --ink: #a594b4; }
.pmenu__ic--globe { --ink: #83a2ad; }
[data-theme="light"] .pmenu__ic { color: color-mix(in srgb, var(--ink) 64%, #162530); }
.pmenu__ic svg { width: 23px; height: 23px; }
.pmenu__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pmenu__txt b { font-size: 16px; font-weight: 800; }
.pmenu__txt small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmenu__row > .ic { width: 18px; height: 18px; color: var(--faint); flex: none; }
.langseg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.langseg button { min-width: 50px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 850; font-size: 14px; }
.langseg button.is-on { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }

/* ---------- партнёрка ---------- */
.pt { display: flex; flex-direction: column; gap: 12px; }
.pt-label { color: var(--muted); font-size: 11.5px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.pt-hero { position: relative; overflow: hidden; min-height: 196px; padding: 18px 150px 18px 18px; border-radius: 26px; color: #fff; background: radial-gradient(70% 90% at 90% 30%, rgba(255, 255, 255, 0.16), transparent 60%), linear-gradient(135deg, #a94dff 0%, #7b3dff 48%, #5b2bd9 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 34px rgba(120, 60, 255, 0.35); }
.pt-hero__chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 10px; background: #fff; color: #6b34ff; font-size: 12px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.pt-hero__chip svg { width: 15px; height: 15px; }
.pt-hero h2 { margin: 12px 0 6px; font-size: 30px; line-height: 1.02; font-weight: 900; letter-spacing: -0.02em; }
.pt-hero p { margin: 0; font-size: 14px; font-weight: 650; color: rgba(255, 255, 255, 0.86); max-width: 210px; }
.pt-hero__art { position: absolute; right: -6px; top: 10px; width: 168px; height: 176px; pointer-events: none; }
.pt-hero__pepe { position: absolute; right: 8px; top: 10px; width: 132px; height: auto; filter: drop-shadow(0 14px 18px rgba(40, 0, 90, 0.45)); animation: refBob 3.4s ease-in-out infinite; }
.pt-hero__cap { position: absolute; left: 2px; bottom: 18px; width: 58px; height: auto; transform: rotate(-16deg); filter: drop-shadow(0 8px 12px rgba(40, 0, 90, 0.5)); }
.pt-coin { position: absolute; width: 30px; height: 30px; filter: drop-shadow(0 6px 10px rgba(30, 0, 80, 0.45)); animation: coinFloat 3s ease-in-out infinite; }
.pt-coin--1 { left: 18px; top: 4px; }
.pt-coin--2 { right: 0; top: 64px; width: 24px; height: 24px; animation-delay: -1s; }
.pt-coin--3 { left: 52px; bottom: 2px; width: 22px; height: 22px; animation-delay: -2s; }
@keyframes coinFloat { 50% { transform: translateY(-6px) rotate(8deg); } }
.pt-hero__big { position: absolute; right: 14px; bottom: -6px; padding: 4px 12px 8px; border-radius: 12px 12px 0 0; background: #fff; color: #6b34ff; font-size: 22px; font-weight: 900; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(40, 0, 90, 0.3); }
.pt-card { padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pt-link { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 8px 0 14px; border-radius: 15px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pt-link span { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-share { margin-top: 10px; height: 56px; border-radius: 17px; font-size: 16px; background: linear-gradient(160deg, #4aa3ff, #1f6bff); box-shadow: 0 10px 22px rgba(31, 107, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.pt-share svg { width: 19px; height: 19px; }
.pt-avail { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-avail__v { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.pt-avail__v .gram { width: 26px; height: 26px; }
.pt-avail__v b { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.pt-avail .btn { min-width: 112px; height: 46px; border-radius: 15px; }
.pt-locked { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.pt-locked svg { width: 14px; height: 14px; }
.pt-locked .gram { width: 14px; height: 14px; }
.pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding-top: 12px; box-shadow: inset 0 1px 0 var(--line); }
.pt-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pt-stats > div + div { box-shadow: inset 1px 0 0 var(--line); }
.pt-stats b { display: flex; align-items: center; gap: 4px; font-size: 19px; font-weight: 850; }
.pt-stats b .gram { width: 16px; height: 16px; }
.pt-stats small { color: var(--muted); font-size: 12px; }
.pt-lvhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-lv { font-size: 15px; font-weight: 900; }
.pt-lv--bronze { color: #f0a06a; }
.pt-lv--silver { color: #c9d3e0; }
.pt-lv--gold { color: #ffc53d; }
.pt-lv--diamond { color: #6fdcff; }
.pt-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 14px; }
.pt-track__line { position: absolute; left: 12.5%; right: 12.5%; top: 25px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.pt-track__line::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill); background: linear-gradient(90deg, #f0a06a, #ffc53d 60%, #6fdcff); border-radius: 3px; }
.ptl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ptl__dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px; color: rgba(255, 255, 255, 0.55); background: radial-gradient(circle at 35% 30%, #5d6270, #353944 70%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12); }
.ptl small { color: var(--muted); font-size: 12px; font-weight: 700; }
.ptl.is-on small { color: var(--text); }
.ptl--bronze.is-on .ptl__dot, .ptl--bronze.is-past .ptl__dot { color: #fff; background: radial-gradient(circle at 35% 30%, #f6b483, #c96a2c 70%); box-shadow: inset 0 0 0 2px rgba(255, 220, 190, 0.55); }
.ptl--silver.is-on .ptl__dot, .ptl--silver.is-past .ptl__dot { color: #1f2530; background: radial-gradient(circle at 35% 30%, #f4f7fb, #9aa6b8 70%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.ptl--gold.is-on .ptl__dot, .ptl--gold.is-past .ptl__dot { color: #4a2c00; background: radial-gradient(circle at 35% 30%, #fff0a8, #f0a500 70%); box-shadow: inset 0 0 0 2px rgba(255, 245, 200, 0.7); }
.ptl--diamond.is-on .ptl__dot, .ptl--diamond.is-past .ptl__dot { color: #00334a; background: radial-gradient(circle at 35% 30%, #d8f7ff, #2fb7f0 70%); box-shadow: inset 0 0 0 2px rgba(220, 250, 255, 0.75); }
.ptl.is-on .ptl__dot { transform: scale(1.1); animation: lvGlow 2.4s ease-in-out infinite; }
@keyframes lvGlow { 50% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 22px rgba(255, 190, 120, 0.55); } }
.pt-next { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); text-align: center; font-size: 14px; font-weight: 650; }
.pt-next b { font-weight: 900; }
.pt-how { margin: 12px 4px 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; text-align: center; }
.pt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; font: inherit; text-align: center; }
.pt-tile__ic { width: 50px; height: 50px; margin-bottom: 4px; }
.pt-tile b { font-size: 14px; font-weight: 850; }
.pt-tile small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.pt-refs-head { display: flex; align-items: baseline; gap: 8px; margin: 8px 2px 0; }
.pt-refs-head h3 { margin: 0; font-size: 20px; font-weight: 900; }
.pt-refs-head span { color: var(--muted); font-weight: 750; }
.pt-refs { border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pt-ref { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.pt-ref + .pt-ref { box-shadow: inset 0 1px 0 var(--line); }
.pt-ref .avatar, .pt-ref__ava { width: 40px; height: 40px; font-size: 15px; }
.pt-ref__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-ref__txt b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-ref__txt small { color: var(--muted); font-size: 12.5px; }
.pt-ref__amt { display: flex; align-items: center; gap: 5px; font-weight: 850; }
.pt-ref__amt .gram { width: 16px; height: 16px; }
.pt-empty { display: flex; align-items: center; justify-content: center; gap: 8px; height: 66px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 14px; }
.pt-empty svg { width: 18px; height: 18px; }

/* ---------- история ---------- */
.hist-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hist-tabs { flex: 1; margin: 0; }
.hist-sort { width: 44px; height: 44px; border-radius: 13px; }
.hist-sort svg { width: 22px; height: 22px; }
.hlist { display: flex; flex-direction: column; gap: 8px; }
.hrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 12px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; font: inherit; text-align: left; }
.hrow--game:active { transform: scale(0.99); background: var(--surface-2); }
.hrow > .badge, .hrow__ic { width: 42px; height: 42px; flex: none; }
.hrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hrow__main b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow__main b i { font-style: normal; font-weight: 600; font-size: 13px; }
.hrow__main small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow__gift { width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.hrow__gift img { width: 32px; height: 32px; object-fit: contain; }
.hrow__end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; font-weight: 850; font-size: 15px; }
.hrow__end small { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ---------- задания ---------- */
.tq-head { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: radial-gradient(80% 120% at 100% 0%, rgba(255, 166, 0, 0.22), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.tq-head__ic { width: 50px; height: 50px; }
.tq-head b { display: block; font-size: 18px; font-weight: 900; }
.tq-head small { color: var(--muted); font-size: 13px; }
.tq-game { margin-bottom: 16px; }
.tq-game__head { display: flex; align-items: center; gap: 10px; margin: 0 2px 8px; }
.tq-game__ic { width: 34px; height: 34px; }
.tq-game__head b { flex: 1; font-size: 17px; font-weight: 900; }
.tq-game__head span { color: var(--muted); font-weight: 800; font-size: 13px; }
.tq { position: relative; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.tq + .tq { margin-top: 8px; }
.tq__top { display: flex; align-items: center; justify-content: space-between; }
.tq__tier { height: 22px; padding: 0 9px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.tq--easy .tq__tier { background: rgba(47, 211, 141, 0.15); color: #2fd38d; }
.tq--medium .tq__tier { background: rgba(255, 178, 36, 0.16); color: #ffb224; }
.tq--hard .tq__tier { background: rgba(255, 82, 102, 0.16); color: #ff6b7d; }
.tq--special .tq__tier { background: rgba(176, 60, 255, 0.16); color: #c58bff; }
.tq__reward { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; color: #2fd38d; }
.tq__reward .gram { width: 16px; height: 16px; }
.tq__title { font-size: 15px; font-weight: 800; margin-top: 4px; }
.tq__cond { color: var(--muted); font-size: 12.5px; }
.tq__foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tq__bar { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.tq__bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8b5cff, #3d8bff); transition: width 0.4s; }
.tq.is-ready .tq__bar i, .tq.is-claimed .tq__bar i { background: linear-gradient(90deg, #2fe39a, #12b07a); }
.tq__n { font-size: 12.5px; font-weight: 800; color: var(--muted); min-width: 38px; text-align: right; }
.tq__foot .btn { min-width: 92px; }
.tq-done { display: inline-flex; align-items: center; gap: 4px; color: #2fd38d; font-weight: 850; font-size: 13px; min-width: 92px; justify-content: center; }
.tq-done svg { width: 16px; height: 16px; }
.tq.is-claimed { opacity: 0.62; }
.tq.is-ready { box-shadow: inset 0 0 0 1.5px rgba(47, 211, 141, 0.55); }
.tq-note { text-align: center; margin: 6px 8px 10px; }

/* ---------- upgrade v10 ---------- */
.upg-fast { flex: none; width: 56px; height: 56px; border: 0; border-radius: 18px; background: var(--surface-2); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-shadow: inset 0 0 0 1px var(--line); }
.upg-fast svg { width: 20px; height: 20px; }
.upg-fast small { font-size: 10px; font-weight: 850; }
.upg-fast.is-on { background: linear-gradient(160deg, #ffd54a, #ff9d00); color: #3a2400; box-shadow: 0 6px 16px rgba(255, 166, 0, 0.35); }
.upg-chips__own svg { width: 16px; height: 16px; }
.upg-own { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; margin: 12px 0 8px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.upg-own b { font-size: 24px; font-weight: 900; color: var(--c-upgrade); }
.upg-own input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 24px; font-weight: 850; outline: none; }
.upg-own input.is-err { color: var(--loss); }
.gift__seller.is-mine { background: rgba(255, 178, 36, 0.18); color: #ffb224; }
.bonus__gift { display: flex; flex-direction: column; align-items: center; }
.bonus__gift.is-swap img { animation: giftSwap 0.32s ease-out; }
.bonus__gp { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 850; color: #ffe08a; }
.bonus__gp .gram { width: 12px; height: 12px; }
@keyframes giftSwap { 0% { transform: scale(0.6) rotate(-8deg); opacity: 0.3; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .live-badge i, .ptl.is-on .ptl__dot, .pt-coin, .pt-hero__pepe, .pbanner__pepe, .bonus__gift.is-swap img { animation: none; }
}

/* ---------- v11: логотип «Щит» и интро: щит падает с ударом и пылью, по нему пробегает блик, выезжает надпись ---------- */
@font-face { font-family: "BB Display"; src: url("fonts/bb-display.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
.emb { display: block; overflow: visible; }
.logo { gap: 8px; }
.logo__mark { width: 27px; height: 30px; filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.45)); animation: none; }
.logo__mark .emb__seam { animation: seamGlow 3.6s ease-in-out infinite; }
.logo__word { font: italic 900 20px/1 "BB Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-synthesis: none; letter-spacing: 0; color: #fff; background: none; -webkit-text-fill-color: currentColor; -webkit-text-stroke: 0; filter: none; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
[data-theme="light"] .logo__word { font: italic 900 20px/1 "BB Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; color: #10141b; text-shadow: none; filter: none; -webkit-text-stroke: 0; }
.logo__w2 { margin-left: 0; }
@keyframes seamGlow { 0%, 70%, 100% { stroke: #fff; filter: none; } 80% { stroke: #fff7c2; filter: drop-shadow(0 0 3px #fff); } }

.auth-pending #auth-gate { background: radial-gradient(60% 45% at 0% 45%, rgba(255, 59, 85, 0.22), transparent 70%), radial-gradient(60% 45% at 100% 55%, rgba(58, 139, 255, 0.24), transparent 70%), #070912; }
.gate { gap: 14px; }
.gate__stage { position: relative; width: 240px; height: 168px; display: grid; place-items: end center; padding-bottom: 6px; animation: gShake 0.34s linear 0.4s; }
.gate__emblem { position: relative; z-index: 2; width: 120px; height: 134px; transform-origin: 50% 100%; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.6));
  animation: gDrop 0.64s both, gIdle 3.4s ease-in-out 1.4s infinite; }
.gate__emblem .emb__star { transform-box: fill-box; transform-origin: center; animation: gStar 0.5s cubic-bezier(0.3, 1.7, 0.5, 1) 0.48s both; }
.gate__emblem .emb__seam { animation: seamGlow 1.8s ease-in-out 1.4s infinite; }
.gate__shine { animation: gShine 3.6s ease-in-out 0.78s infinite; }
.gate__shock { position: absolute; left: 50%; bottom: 0; width: 150px; height: 26px; margin-left: -75px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.75); opacity: 0; animation: gShock 0.6s ease-out 0.4s forwards; }
.gate__dust { position: absolute; left: 50%; bottom: 0; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(236, 232, 255, 0.95), rgba(170, 160, 230, 0.5) 58%, transparent);
  animation: gDust 0.95s cubic-bezier(0.15, 0.7, 0.3, 1) calc(0.4s + var(--dl, 0s)) forwards; }
.gate__title { font: italic 900 34px/1 "BB Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-synthesis: none; letter-spacing: 0.02em; color: #fff; background: none; -webkit-text-fill-color: #fff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 8px 22px rgba(0, 0, 0, 0.55); padding: 2px 10px 4px; clip-path: inset(-20px 100% -30px 0); animation: gTitle 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.74s forwards; }
.gate__title span { display: inline-block; transform: translateX(-18px); animation: gTitleIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.74s forwards; }
.gate__bar { position: relative; width: 62%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; opacity: 0; animation: titleUp 0.4s ease-out 1.1s forwards; }
.gate__bar i { position: absolute; top: 0; left: 0; width: 40%; height: 100%; margin: 0; border-radius: 4px; background: linear-gradient(90deg, #ff3b55, #fff 50%, #3a8bff); box-shadow: none; animation: barRun 1.3s ease-in-out infinite; }
.gate p { color: #9aa3bf; }
@keyframes gDrop {
  0% { opacity: 0; transform: translateY(-210px) scale(1.12); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  12% { opacity: 1; }
  62% { transform: translateY(0) scale(1); animation-timing-function: ease-out; }
  72% { transform: translateY(0) scale(1.1, 0.86); animation-timing-function: ease-in-out; }
  86% { transform: translateY(-7px) scale(0.97, 1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes gIdle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes gStar { 0% { transform: scale(0) rotate(-120deg); } 100% { transform: none; } }
@keyframes gShine { 0% { transform: translateX(0); } 26%, 100% { transform: translateX(200px); } }
@keyframes gShock { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes gDust { 0% { opacity: 1; transform: translate(0, 0) scale(0.5); } 35% { opacity: 0.85; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--s)); } }
@keyframes gShake { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 3px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -1px); } }
@keyframes gTitle { to { clip-path: inset(-20px -20px -30px -20px); } }
@keyframes gTitleIn { to { transform: none; } }
@keyframes titleUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes barRun { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
#auth-gate.is-error .gate__bar { visibility: hidden; }
#auth-gate.is-error .gate__emblem { filter: grayscale(0.7) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5)); }
@media (prefers-reduced-motion: reduce) {
  .gate__stage, .gate__emblem, .gate__emblem .emb__star, .gate__shine, .gate__title, .gate__title span, .gate__bar { animation: none; opacity: 1; transform: none; clip-path: none; }
  .gate__shock, .gate__dust { display: none; }
  .gate__bar i, .logo__mark .emb__seam, .gate__emblem .emb__seam { animation: none; }
}

/* ---------- v11: обложка кейса «Сияние» — главный подарок в ореоле лучей, два по бокам в тени ---------- */
.corb--glow::before { display: none; }
.corb--glow .corb__rays {
  inset: -24% -30% -18%; z-index: -2; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.14) 0 9deg, transparent 9deg 24deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 0, transparent 62%); mask-image: radial-gradient(closest-side, #000 0, transparent 62%);
  opacity: 1;
}
.corb__halo { position: absolute; left: 50%; top: 46%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--c2) 92%, #fff) 0, color-mix(in srgb, var(--c2) 55%, transparent) 34%, transparent 68%); }
.corb--glow .corb__hero { left: 19%; top: 6%; width: 62%; z-index: 3; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5)); }
.corb--glow .corb__side { width: 30%; top: 40%; z-index: 1; opacity: 1; filter: brightness(0.72) saturate(0.9) blur(0.4px) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.corb--glow .corb__side--l { left: 3%; transform: rotate(-16deg); }
.corb--glow .corb__side--r { right: 3%; left: auto; transform: rotate(15deg); }
.corb--glow .corb__spark { z-index: 4; }
.corb--glow .corb__spark--a { left: 14%; top: 12%; }
.corb--glow .corb__spark--b { right: 13%; top: 20%; }
.corb--glow .corb__spark--c { left: 30%; top: auto; bottom: 16%; right: auto; }
/* в лобби три маленьких обложки — без лучей, только ореол */
.caseorbs .corb--glow .corb__rays { display: none; }
.caseorbs .corb--glow .corb__side { display: none; }
.caseorbs .corb--glow .corb__hero { left: 10%; top: 4%; width: 80%; }
.caseorbs .corb--glow .corb__halo { width: 100%; top: 50%; }

/* v11: партнёрка без уровней — алмаз-награда у «Доступно» */
.pt-avail { justify-content: flex-start; }
.pt-avail__ic { width: 50px; height: 50px; }
.pt-avail__txt { flex: 1; min-width: 0; }
.pt-tiles--2 { grid-template-columns: 1fr 1fr; }
/* v11: задания от админа */
.tq--admin + .tq--admin { margin-top: 10px; }
.tq__row { display: flex; align-items: center; gap: 12px; }
.tq__ic { width: 44px; height: 44px; }
.tq__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tq--admin .tq__title { margin-top: 0; }

/* ---------- v11: «Улучшить» подарок до NFT ---------- */
.nftup { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 4px; }
.nftup__from, .nftup__to { position: relative; width: 104px; height: 104px; border-radius: 22px; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nftup__from img, .nftup__to img { width: 78px; height: 78px; object-fit: contain; }
.nftup__from img { filter: grayscale(0.35) brightness(0.85); }
.nftup__from small { position: absolute; bottom: 6px; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.nftup__to { background: radial-gradient(circle at 50% 40%, rgba(255, 210, 90, 0.35), transparent 70%), var(--surface-2); box-shadow: inset 0 0 0 1.5px rgba(255, 200, 80, 0.6), 0 0 24px rgba(255, 190, 60, 0.25); animation: nftGlow 2.4s ease-in-out infinite; }
.nftup__num { position: absolute; bottom: 5px; padding: 1px 7px; border-radius: 7px; background: rgba(0, 0, 0, 0.45); color: #ffe08a; font-size: 11.5px; font-weight: 900; letter-spacing: 0.04em; }
.nftup__arrow { color: var(--faint); }
.nftup__arrow svg { width: 22px; height: 22px; }
.nftup__title { margin: 6px 0 2px; text-align: center; font-size: 20px; font-weight: 900; }
.nftup__list { list-style: none; margin: 8px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nftup__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); }
.nftup__list li svg { width: 18px; height: 18px; flex: none; color: #2fd38d; margin-top: 1px; }
.nftup-wait { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 16px; background: rgba(255, 200, 80, 0.12); color: #ffd36b; font-weight: 750; }
.nftup-wait svg { width: 18px; height: 18px; animation: spin 1.6s linear infinite; }
@keyframes nftGlow { 50% { box-shadow: inset 0 0 0 1.5px rgba(255, 220, 120, 0.9), 0 0 34px rgba(255, 190, 60, 0.45); } }
.gattrs--unknown b { color: var(--faint); letter-spacing: 0.1em; }
.big-gift__num { color: var(--muted); font-weight: 800; }
.lot__tag--up { background: linear-gradient(135deg, #ffd34d, #ff9d00); color: #3a2400; }
.lot__tag--up svg { width: 12px; height: 12px; animation: spin 1.6s linear infinite; }
.gift.is-upgrading img { animation: upPulse 1.4s ease-in-out infinite; }
@keyframes upPulse { 50% { transform: scale(0.92); filter: brightness(1.25); } }
.nft-note { display: flex; align-items: center; gap: 8px; justify-content: center; text-align: center; }
.nft-note svg { width: 16px; height: 16px; flex: none; }
@media (prefers-reduced-motion: reduce) { .nftup__to, .gift.is-upgrading img, .lot__tag--up svg, .nftup-wait svg { animation: none; } }

/* ---------- v11: вывод подарков — в Telegram (с аккаунта BattleBalls) или на Portals (бесплатно) ---------- */
.btn--two { flex-direction: column; gap: 1px; height: 58px; line-height: 1.15; }
.btn__row { display: inline-flex; align-items: center; gap: 8px; }
.btn__sub { font-size: 12.5px; font-weight: 600; opacity: 0.82; }
.btn__logo { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.wd-dests { display: grid; gap: 8px; }
.wd-dests .choice { padding: 12px; }
.choice__icon--bb { background: radial-gradient(circle at 50% 40%, #28306a, #0a0c1e 75%); }
.choice__icon--bb .emb { width: 28px; height: 31px; }
.banner--portals { background: linear-gradient(135deg, rgba(40, 110, 210, 0.2), rgba(40, 110, 210, 0.06)); box-shadow: inset 0 0 0 1px rgba(90, 150, 255, 0.22); }
.banner__logo { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.banner--warn { background: color-mix(in srgb, var(--loss) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loss) 38%, transparent); }
.banner--warn svg { color: var(--loss); }

/* ---------- v11: золотая жила — ползунок над колесом и инструкция ---------- */
.upg-vein { position: absolute; top: 10px; right: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 4px; padding: 3px 3px 3px 9px; border-radius: 99px;
  background: rgba(20, 16, 6, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 194, 26, 0.45); transition: background 0.25s, box-shadow 0.25s; }
.upg-vein[hidden] { display: none; }
.upg-vein__sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 850; color: #ffd76a; cursor: pointer; }
.upg-vein__gem { width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, #ffd23f 50%, #ff8a00); box-shadow: 0 0 6px rgba(255, 210, 63, 0.6); }
.upg-vein .switch { width: 40px; height: 24px; flex: 0 0 40px; }
.upg-vein .switch i::after { width: 20px; height: 20px; }
.upg-vein .switch input:checked + i::after { transform: translateX(16px); }
.upg-vein__info { width: 24px; height: 24px; border: 0; border-radius: 50%; display: grid; place-items: center; font: 900 13px/1 system-ui, sans-serif; color: #3a2200; background: #ffd76a; }
.upg-vein.is-on { background: linear-gradient(135deg, #fff2a8, #ffc21a 55%, #ff9a1a); box-shadow: 0 4px 14px rgba(255, 170, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.upg-vein.is-on .upg-vein__sw { color: #3a2200; }
.upg-vein.is-on .upg-vein__info { background: rgba(58, 34, 0, 0.18); }
.switch--gold input:checked + i { background: linear-gradient(135deg, #ffb300, #ff7a00); }
.upg-vein.is-on .switch--gold input:checked + i { background: #3a2200; }
[data-theme="light"] .upg-vein:not(.is-on) { background: rgba(255, 246, 214, 0.92); }
[data-theme="light"] .upg-vein:not(.is-on) .upg-vein__sw { color: #8a5a00; }
.uslot.is-swap .uslot__pic { animation: slotSwap 0.32s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes slotSwap { from { transform: scale(0.72); filter: brightness(1.8); } to { transform: none; filter: none; } }

.vguide { display: grid; gap: 12px; }
.vguide__hero { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 18px;
  background: radial-gradient(90% 120% at 0% 50%, rgba(255, 194, 26, 0.2), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 194, 26, 0.35); }
.vguide__wheel { width: 96px; height: 96px; }
.vguide__gold { filter: drop-shadow(0 0 3px #ffc21a); }
.vguide__lead { margin: 0; font-size: 14px; line-height: 1.45; }
.vguide__steps { margin: 0; padding: 0; list-style: none; counter-reset: vg; display: grid; gap: 10px; }
.vguide__steps li { counter-increment: vg; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: start; }
.vguide__steps li::before { content: counter(vg); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #3a2200; background: linear-gradient(135deg, #fff2a8, #ffc21a 55%, #ff9a1a); }
.vguide__steps b { font-size: 15px; }
.vguide__steps span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.vguide__odds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.vguide__odd { display: grid; justify-items: center; gap: 1px; padding: 8px 2px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.vguide__odd b { font-size: 15px; }
.vguide__odd small { font-size: 11px; color: var(--muted); }
.vguide__odd--5 b, .vguide__odd--10 b { color: #ffc21a; }
.vguide__now { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.vguide__now > div { display: grid; gap: 1px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.vguide__now small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.vguide__now b { font-size: 17px; }
.vguide__now i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.vguide__now .is-gold { box-shadow: inset 0 0 0 1.5px #ffc21a; background: linear-gradient(135deg, rgba(255, 210, 63, 0.14), rgba(255, 138, 0, 0.06)); }
.vguide__now .is-gold b { color: #ffc21a; }
.vguide__switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 194, 26, 0.45); cursor: pointer; }
.vguide__switch span:first-child { display: grid; gap: 1px; }
.vguide__switch small { color: var(--muted); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) {
  .uslot.is-swap .uslot__pic { animation: none; }
}

/* жила включена: ручка зелёной зоны уходит внутрь кольца, золото посередине зоны видно целиком */
.wheel__knob-in { transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.wheel.is-vein .wheel__knob-in { transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .wheel__knob-in { transition: none; }
}

/* ===================== v12 ===================== */
/* реакции в чате: чипы под сообщением, панель из шести реакций по долгому нажатию */
.chat { position: relative; }
.cmsg__col { display: flex; flex-direction: column; min-width: 0; }
.cmsg--me .cmsg__col { align-items: flex-end; }
.cmsg__rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.cmsg__rx:empty { display: none; }
.cmsg__bubble { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rxc { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px 0 6px; border: 0; border-radius: 99px; font: inherit; font-size: 12px; font-weight: 800; color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.rxc span { font-size: 14px; line-height: 1; }
.rxc b { font-variant-numeric: tabular-nums; }
.rxc.is-me { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rxc.is-pop span { animation: rxPop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes rxPop { 0% { transform: scale(0.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.rxbar { position: absolute; z-index: 20; display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--line-strong); opacity: 0; transform: translateY(6px) scale(0.92); pointer-events: none; transition: opacity 0.16s, transform 0.2s cubic-bezier(0.2, 1.3, 0.4, 1); }
.rxbar.is-on { opacity: 1; transform: none; pointer-events: auto; }
.rxbar button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.rxbar button:active { transform: scale(1.25); background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) {
  .rxc.is-pop span { animation: none; }
  .rxbar { transition: none; }
}

/* полоска выигрышей (v12): «Топ дня» с короной, «Самый везучий», живые выигрыши */
.wlive { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wlive .live-badge { height: 62px; }
.wlive__strip { flex: 1; min-width: 0; }
.wstrip-wrap { position: relative; }
.wstrip-wrap--compact { margin: 2px 0 12px; }
.wstrip { display: flex; gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 10px 2px 4px; margin: -10px -2px -4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
.wstrip::-webkit-scrollbar { display: none; }
.wtile {
  --wc: 140, 148, 163;
  position: relative; flex: none; width: 60px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 7px 3px 6px; border: 0; border-radius: 16px; scroll-snap-align: start; cursor: pointer; color: var(--text); font: inherit;
  background: radial-gradient(90% 62% at 50% 30%, rgba(var(--wc), 0.32), rgba(var(--wc), 0) 74%), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(var(--wc), 0.3), inset 0 -12px 18px -14px rgba(var(--wc), 0.7);
  transition: transform 0.15s, box-shadow 0.15s;
}
.wtile:active { transform: scale(0.94); }
.wtile--rare { --wc: 47, 155, 255; }
.wtile--epic { --wc: 178, 92, 255; }
.wtile--legend { --wc: 255, 186, 26; }
.wtile__pic { width: 40px; height: 40px; display: grid; place-items: center; }
.wtile__img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.wtile__img.is-nft { border-radius: 10px; }
.wtile__img--g { width: 28px; height: 28px; }
.wtile__amt { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; font-size: 11.5px; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wtile__amt .gram { width: 11px; height: 11px; flex: none; }
.wtile--top { box-shadow: inset 0 0 0 1.5px rgba(255, 196, 46, 0.9), 0 0 16px rgba(255, 170, 0, 0.22); }
.wtile--lucky { box-shadow: inset 0 0 0 1.5px rgba(178, 107, 255, 0.85); }
.wtile.is-on { box-shadow: inset 0 0 0 2px var(--accent); }
.wtile__badge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; height: 17px; min-width: 22px; padding: 0 5px; border-radius: 99px; font-style: normal; font-size: 9.5px; font-weight: 900; line-height: 1; white-space: nowrap; z-index: 1; }
.wtile__badge--top { padding: 0; color: #5a3500; background: linear-gradient(135deg, #fff1a6, #ffc21a 60%, #ff9a1a); box-shadow: 0 2px 6px rgba(255, 160, 0, 0.5); }
.wtile__badge--top svg { width: 13px; height: 13px; }
.wtile__badge--lucky { color: #fff; background: linear-gradient(135deg, #c07bff, #6b4dff); box-shadow: 0 2px 6px rgba(120, 70, 255, 0.45); }
.wtile.is-new { animation: wNew 0.6s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes wNew { from { opacity: 0; transform: translateX(-16px) scale(0.8); } }
.wstrip__empty { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; padding: 0 12px; border-radius: 16px; color: var(--muted); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.wstrip__empty svg { width: 18px; height: 18px; opacity: 0.6; flex: none; }
.wstrip-wrap--compact .wtile { width: 54px; height: 64px; padding: 6px 3px 5px; border-radius: 14px; }
.wstrip-wrap--compact .wtile__pic, .wstrip-wrap--compact .wtile__img { width: 34px; height: 34px; }
.wstrip-wrap--compact .wtile__img--g { width: 24px; height: 24px; }
.wstrip-wrap--compact .wstrip__empty { height: 50px; }
.fcard__tag { display: flex; align-items: center; gap: 6px; margin-bottom: -2px; font-size: 12px; font-weight: 750; }
.fcard__tag svg { width: 15px; height: 15px; flex: none; }
.fcard__tag--top { color: #e8a100; }
.fcard__tag--lucky { color: #a46bff; }
@media (prefers-reduced-motion: reduce) {
  .wtile.is-new { animation: none; }
}

/* бонусные кейсы (v12): ежедневный за подписку и кейс друзей */
.cases-head { display: flex; align-items: flex-start; gap: 10px; }
.cases-head p { flex: 1; }
.cases-head .btn { flex: none; gap: 5px; }
.cases-head .btn svg, .cdet__fair .btn svg { width: 16px; height: 16px; }
.bcases { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 14px; }
.bcase, .bonus-hero {
  --case-ink: #c8f0df;
  --case-surface: radial-gradient(ellipse at 50% 12%, #416e60, transparent 74%), linear-gradient(150deg,#24493e,#152c27);
  color: #f5f7f4; background: var(--case-surface);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
}
.bcase--friend, .bonus-hero--friend {
  --case-ink: #f0daac;
  --case-surface: radial-gradient(ellipse at 53% 12%, #615570, transparent 74%), linear-gradient(150deg,#3e364b,#272431);
}
.bcase { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 13px; border-radius: 18px; text-decoration: none; overflow: hidden; transition: transform .15s; }
.bcase:active { transform: scale(0.97); }
.bcase__art { position: relative; flex: none; display: block; height: clamp(92px,25vw,128px); margin: 18px 0 3px; }
.bcase__art .bonus-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.bonus-cover { object-fit: contain; filter: drop-shadow(0 5px 5px #1115); }
.bonus-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 122px; margin: 0 0 12px; border-radius: 19px; padding: 16px 19px; }
.bonus-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: repeating-radial-gradient(ellipse at 82% 110%,transparent 0 24px,rgba(255,255,255,.06) 25px 26px,transparent 27px 44px); }
.bonus-hero h2 { margin: 0; font-size: clamp(20px,5.7vw,26px); line-height: 1.08; }
.bonus-hero p { margin: 5px 0 0; color: var(--case-ink); font-size: 13px; }
.bonus-hero .bonus-cover { width: 37%; height: 96px; flex: none; }
.bcase__txt b { display: block; font-size: 15px; font-weight: 850; line-height: 1.15; }
.bcase__txt small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.3; opacity: 0.88; }
.bcase__tag { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 3px 8px; border-radius: 99px; font-style: normal; font-size: 10.5px; font-weight: 850; background: rgba(0, 0, 0, 0.24); }
.bcase.is-ready .bcase__tag { color: var(--case-ink); background: #13191bc7; }
@keyframes tagPulse { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18); } }
.cpage--bonus .cpage__title p { color: var(--muted); }
.cstage__cta--one { grid-template-columns: 1fr; }
.cbtn--free { background: linear-gradient(135deg, #22c983, #1f8bff); box-shadow: 0 10px 22px -10px rgba(31, 139, 255, 0.7); }
.cbtn--friend { background: linear-gradient(135deg, #ff5fa8, #7a4dff); box-shadow: 0 10px 22px -10px rgba(122, 77, 255, 0.7); }
.cbtn--wait { opacity: 1; background: var(--surface-3); color: var(--text); }
.cbtn--wait small { font-variant-numeric: tabular-nums; }
.bneed { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bneed__title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bneed__title svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.bneed__row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--surface-2); }
.bneed__ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #3aa8ff, #1f6bff); }
.bneed__ic svg { width: 19px; height: 19px; }
.bneed__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bneed__txt b { font-size: 14px; }
.bneed__txt small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bneed__ok { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--win); }
.bneed__ok svg { width: 16px; height: 16px; }
.bneed__row.is-ok .bneed__ic { background: linear-gradient(135deg, #34d98f, #12a865); }
.bneed .note { margin: 0; }
.fcase { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 14px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fcase__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fcase__head b { font-size: 15px; }
.fcase__head small { font-size: 12px; color: var(--muted); }
.fslots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fslot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 2px 18px; border: 0; border-radius: 14px; font: inherit; color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.fslot--empty { cursor: pointer; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-strong); background: transparent; border: 1.5px dashed var(--line-strong); box-shadow: none; }
.fslot__ava { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.fslot__ava .avatar { width: 40px; height: 40px; font-size: 15px; }
.fslot--empty .fslot__ava { background: var(--surface-2); }
.fslot--empty .fslot__ava svg { width: 18px; height: 18px; }
.fslot__prem { position: absolute; right: -3px; bottom: -2px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 9px; color: #fff; background: linear-gradient(135deg, #a46bff, #5b7cfa); box-shadow: 0 0 0 2px var(--surface-2); }
.fslot b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.fslot small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.fslot__pct { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 99px; font-style: normal; font-size: 10px; font-weight: 900; color: var(--muted); background: var(--surface-3); }
.fslot.is-cool { box-shadow: inset 0 0 0 1.5px rgba(255, 196, 46, 0.8); }
.fslot.is-cool .fslot__pct { color: #3a2200; background: linear-gradient(135deg, #fff1a6, #ffc21a); }
.fslot.is-play .fslot__pct { color: #fff; background: var(--win); }
.fslot.is-off { opacity: 0.55; }
.fmeter { display: flex; flex-direction: column; gap: 6px; }
.fmeter__bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface-3); overflow: visible; }
.fmeter__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #ff5fa8, #b46bff 60%, #ffc21a); transition: width 0.5s cubic-bezier(0.2, 0.9, 0.3, 1); }
.fmeter__sure { position: absolute; right: -1px; top: -5px; bottom: -5px; border-right: 2px dashed #ffc21a; }
.fmeter__txt { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.fmeter__txt small { color: var(--muted); }
.fmeter.is-sure .fmeter__txt b { color: #e8a100; }
.fcase .btn svg { width: 18px; height: 18px; margin-right: 4px; }
.fhow { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.fhow > b { font-size: 14px; }
.fhow__row { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; align-items: baseline; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.fhow__k { font-size: 13px; font-weight: 800; }
.fhow__v { justify-self: end; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fhow__row small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.fhow__row.is-cool .fhow__v { color: #e8a100; }
.fhow__row.is-play .fhow__v { color: var(--win); }
.fhow__lv summary { cursor: pointer; font-size: 13px; font-weight: 750; color: var(--accent); padding: 4px 0; }
.fhow__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 6px 0; }
.fhow__grid span { display: flex; justify-content: space-between; padding: 6px 9px; border-radius: 10px; font-size: 12.5px; background: var(--surface-2); }
.fhow__grid span i { font-style: normal; font-weight: 850; color: #e8a100; }
.fhow__grid span.is-sure { box-shadow: inset 0 0 0 1.5px rgba(255, 196, 46, 0.7); }
.fhow__sure { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-style: normal; font-size: 11px; font-weight: 850; color: #e8a100; }
.fhow__sure::before, .fhow__sure::after { content: ""; flex: 1; border-top: 1.5px dashed rgba(255, 196, 46, 0.7); }
.chist .lrow { gap: 10px; }
.chist__pic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
.chist__img { width: 32px; height: 32px; object-fit: contain; }
.chist__img.is-coin { width: 24px; height: 24px; }
.chist__row .lrow__main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chist__sum { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-variant-numeric: tabular-nums; }
.chist__sum small { font-size: 11px; color: var(--muted); }
.cdet__fair [data-hist] { margin-top: 8px; gap: 5px; }
@media (prefers-reduced-motion: reduce) {
  .bcase.is-ready .bcase__tag { animation: none; }
}
/* админка v12: онлайн и антифрод */
.adm-onpages { margin: 0 0 10px; }
.adm-onpages .chip small { margin-left: 6px; }
.adm-fraud .group { margin-bottom: 8px; }
.adm-fraud__why { display: flex; flex-direction: column; gap: 2px; margin: 0 2px 8px; color: var(--muted); }
.adm-ufraud .adm-card__head b { display: inline-flex; align-items: center; gap: 6px; }
.adm-ufraud .adm-card__head svg { width: 16px; height: 16px; }
.adm-ufraud__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-top: 8px; font-size: 13px; }
.adm-ufraud__who > small:first-child { width: 100%; color: var(--muted); }
/* v12.2: кейс друзей — колесо со стрелкой */
.fwheel { position: relative; width: min(260px, 78vw); aspect-ratio: 1; margin: 4px auto 10px; }
.fwheel > svg, .fwheel__arrow, .fwheel__arrow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fwheel__ticks line { stroke: var(--line-strong); stroke-width: 1.5; }
.fwheel__track { stroke: var(--surface-3); stroke-width: 18; }
.fwheel__nft { stroke: #22c983; stroke-width: 18; filter: drop-shadow(0 0 6px rgba(34, 201, 131, 0.5)); }
.fwheel__top { stroke: #f2ad0d; stroke-width: 18; filter: drop-shadow(0 0 7px rgba(255, 190, 0, 0.7)); }
.fwheel__arrow { will-change: transform; }
.fwheel__arrow path { fill: var(--text); stroke: var(--bg); stroke-width: 2.5; stroke-linejoin: round; }
.fwheel__center { position: absolute; inset: 24%; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 50%; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fwheel__center b { font: 800 30px/1 "Lilita One", system-ui, sans-serif; font-synthesis: none; }
.fwheel__center small { font-size: 12px; color: var(--muted); }
.fwheel__center i { font-style: normal; font-size: 11px; font-weight: 800; color: #e8a100; }
.fwheel.is-win .fwheel__center { box-shadow: inset 0 0 0 2px #22c983, 0 0 24px rgba(34, 201, 131, 0.45); }
.fwheel.is-top .fwheel__center { box-shadow: inset 0 0 0 2px #ffc21a, 0 0 28px rgba(255, 190, 0, 0.6); }
.fwheel.is-lose .fwheel__center { box-shadow: inset 0 0 0 2px var(--loss); }
.fwheel__test { text-align: center; color: #e8a100; margin: -4px 0 8px; }

/* Палитры используют те же поверхности, что и основные темы. */
[data-palette="night"] {
  --bg: #151426; --surface: #201f33; --surface-2: #2a283e; --surface-3: #36334b;
  --text: #f4f1fa; --muted: #b4aec8; --accent: #b5a3ef; --accent-soft: #38304c;
  --cta: linear-gradient(120deg, #7660af, #595899); --tabbar: rgba(29,28,46,.96);
}
[data-palette="mist"] {
  --bg: #eceef0; --surface: #fdfdfd; --surface-2: #f1f2f4; --surface-3: #e2e4e8;
  --text: #282c34; --muted: #555f6c; --faint: #626a77; --accent: #50537b;
  --accent-soft: #e7e8f0; --cta: linear-gradient(120deg, #656a98, #4c587b);
}
[data-palette="mist"] body { background-image: url("img/ui/battleballs-print.svg"); }
[data-palette="night"] body {
  background-image: radial-gradient(1px 1px at 21px 29px, #aaa3c366 95%, transparent), radial-gradient(1.5px 1.5px at 83px 57px, #928db955 90%, transparent), radial-gradient(ellipse at 82% 0%, #35284a, transparent 65%);
  background-size: 109px 127px, 163px 107px, 100% 100vh;
  background-repeat: repeat, repeat, no-repeat;
}
.seg[data-seg="theme"] { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; padding: 6px; }
.seg[data-seg="theme"] button { min-height: 40px; color: var(--text); text-align: left; padding: 0 10px; }
.seg[data-seg="theme"] button:last-child { grid-column: span 2; }
.seg[data-seg="theme"] .is-on { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
.seg[data-seg="theme"] button::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; border-radius: 6px; box-shadow: inset 0 0 0 1px #8886; background: #191922; }
.seg[data-seg="theme"] button[data-v="light"]::before { background: #fff; }
.seg[data-seg="theme"] button[data-v="night"]::before { background: linear-gradient(135deg,#423456,#181727); }
.seg[data-seg="theme"] button[data-v="mist"]::before { background: repeating-linear-gradient(40deg,#e2e4e7 0 3px,#f6f6f7 3px 5px); }
.seg[data-seg="theme"] button[data-v="auto"]::before { background: linear-gradient(135deg,#fff 50%,#252533 51%); }
.tab { color: var(--muted); }
.tab[data-tab="lobby"] { --tint: #8f84df; }
.tab[data-tab="inventory"] { --tint: #64ada1; }
.tab[data-tab="market"] { --tint: #7eabe0; }
.tab[data-tab="top"] { --tint: #d9a658; }
.tab[data-tab="profile"] { --tint: #c982a1; }
.tab > svg { color: var(--tint); }
.tab.is-on > svg { color: var(--text); background: var(--surface-3); background: color-mix(in srgb, var(--tint) 29%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="light"] .tab > svg { color: color-mix(in srgb,var(--tint) 72%,#293043); }
[data-theme="light"] .tab.is-on > svg { color: var(--text); }
.tab-chat { color: var(--accent); }
.tab-chat.is-on { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line); }

.rxbar[hidden] { display: none; }
.rxbar button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.cmsg__bubble { touch-action: pan-y; -webkit-touch-callout: none; }
.cmsg__bubble:focus-visible { outline: 2px solid var(--accent); }

.friend-stage { padding: 16px; background: radial-gradient(ellipse at 82% 0%,rgba(160,134,203,.12),transparent 65%), var(--surface); }
.friend-title, .friend-invite, .friend-stage .cbtn span { display: flex; align-items: center; justify-content: center; gap: 8px; }
.friend-title h2 { margin: 0; font-size: 20px; }
.friend-title svg, .friend-invite svg, .friend-stage .cbtn svg { width: 20px; height: 20px; }
.friend-title svg { color: var(--accent); }
.friend-rule { max-width: 37ch; margin: 4px auto 18px; text-align: center; color: var(--muted); font-size: 13px; }
.friend-stage .fslots { margin: 8px 0 12px; }
.friend-stage .fslot--empty { align-self: center; justify-self: center; width: min(100%,48px); aspect-ratio: 1; border-radius: 50%; padding: 0; justify-content: center; }
.friend-stage .fslot--empty .fslot__ava { background: transparent; }
.friend-invite { width: 100%; background: transparent; border: 0; color: var(--accent); padding: 10px; font-weight: 700; }
.friend-stage .cbtn--friend { color: #362607; background: linear-gradient(135deg,#ffe5a0,#eab755); box-shadow: inset 0 1px 0 #ffedb7,0 3px 9px #ad802127; }
.friend-stage .cbtn--friend small { color: #57421b; }
.fwheel__top { stroke: #ffc54d; filter: drop-shadow(0 0 4px #e79b305f); }
.fwheel__nft { filter: none; }
.fwheel__center i { color: var(--gold); }
[data-theme="light"] .fwheel__center i { color: #835607; }
.fguide { margin: 14px 0; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.fguide h3 { margin: 0 0 10px; font-size: 16px; }
.fguide__cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.fguide__cards > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.fguide__cards .cool { background: color-mix(in srgb,#c47799 14%,var(--surface)); }
.fguide__cards .play { grid-column: span 2; background: color-mix(in srgb,#d7a64d 14%, var(--surface)); }
.fguide__cards small { color: var(--muted); }
.fguide details { margin-top: 14px; }
.fguide summary { cursor: pointer; font-weight: 700; padding-bottom: 5px; }
.flevel { display: grid; grid-template-columns: 48px 1fr 52px; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.flevel b { text-align: right; }
.flevel i { display: block; height: 6px; border-radius: 4px; background: var(--surface-3); }
.flevel i i { background: linear-gradient(90deg,#916490,#d48ea9); }

.tile--upgrade { --tile-bg: linear-gradient(180deg, #0c1f1d, #0c1f1d 70%, #0a1a17); }
.tile--upgrade .upgrade-film { top: 28px; height: calc(100% - 83px); width: 100%; object-fit: contain; filter: none; pointer-events: none; }
[data-palette="orbit"] { --bg:#151a2d; --surface:#20283b; --surface-2:#283047; --accent:#b8b5ec; }
[data-palette="orbit"] body { background-image:repeating-radial-gradient(ellipse at 22% 32%,transparent 0 23px,#afaaea1a 24px 25px,transparent 26px 39px); background-size:280px 215px; }
[data-palette="dune"] { --bg:#ede4d3; --surface:#fffbf3; --surface-2:#f1e9dc; --accent:#865c33; }
[data-palette="dune"] body { background-image:repeating-radial-gradient(ellipse at 10% 120%,transparent 0 12px,#9a795524 13px 14px,transparent 15px 23px); background-size:260px 116px; }
[data-palette="lagoon"] { --bg:#dfede8; --surface:#f9fffc; --surface-2:#e3f0e9; --accent:#396e67; }
[data-palette="lagoon"] body { background-image:radial-gradient(ellipse at 50% 0%,transparent 60%,#51988a38 62%,transparent 66%); background-size:75px 22px; }
.seg[data-seg="theme"] button[data-v="orbit"]::before { background:#454665; }
.seg[data-seg="theme"] button[data-v="lagoon"]::before { background:#8fc4b5; }
.seg[data-seg="theme"] button[data-v="dune"]::before { background:#ceba96; }
.friend-picker { display:grid; margin-bottom:12px; }
.friend-picker label { display:flex; align-items:center; gap:10px; padding:10px 2px; border-bottom:1px solid var(--line); }
.friend-picker span { flex:1; overflow-wrap:anywhere; }
.friend-picker .avatar { flex:none; width:34px; height:34px; }
.bcases { grid-template-columns:1fr; }
.bcase { display:grid; grid-template-columns:88px 1fr; align-items:center; column-gap:14px; padding:14px; }
.bcase__art { grid-row:1 / 3; height:84px; margin:0; }
.bcase__tag { position:static; justify-self:start; align-self:start; }
.bcase__txt { align-self:end; }
.reward-box { padding:14px; }
.reward-box label { display:grid; gap:5px; margin-bottom:9px; }
.reward-box .field { width:100%; color:var(--text); padding:10px; background:var(--surface-2); }
.reward-box [role=status]:empty { display:none; }
.reward-box [data-check-create] svg { width:18px; }
.pmenu__ic,.tab[data-tab] > svg,.tab-chat svg,.mbtn svg { color:#17191d; }
.pmenu__ic,.tab[data-tab] > svg,.tab-chat,.mbtn { background:#d8d9de; }
[data-theme] .tab.is-on > svg,[data-theme] .pmenu__ic,[data-theme] .tab > svg { color:#111318; }
[data-theme] .tab.is-on > svg { background:#fcfcfd; }
.wheel.is-vein .wheel__arrow path { transform:translateY(-3px) scale(.55); transform-origin:125px 10px; }
.wheel.is-vein .wheel__knob-in { transform:translateY(32px); }
.wheel__gold.is-on { animation:none; }

/* ===================== v13 ===================== */
/* значки вкладок: обычные одноцветные, без плашек; выделена только открытая вкладка */
.tab[data-tab] > svg, [data-theme] .tab[data-tab] > svg { color: var(--muted); background: transparent !important; box-shadow: none !important; }
.tab[data-tab].is-on > svg, [data-theme] .tab[data-tab].is-on > svg { color: var(--text); background: var(--surface-3) !important; box-shadow: inset 0 0 0 1px var(--line-strong) !important; }
.tab[data-tab] span:last-child { color: var(--muted); }
.tab[data-tab].is-on span:last-child { color: var(--text); }
.tab-chat, [data-theme] .tab-chat { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.tab-chat svg, [data-theme] .tab-chat svg { color: var(--muted); }
.tab-chat.is-on, [data-theme] .tab-chat.is-on { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tab-chat.is-on svg, [data-theme] .tab-chat.is-on svg { color: var(--text); }
/* бонусные кейсы в виде обычных карточек с шаром */
.ccard-grid--bonus { margin-bottom: 14px; }
.ccard__price--bonus { padding: 3px 9px; font-size: 12px; font-weight: 850; }
.ccard--bonus.is-ready .ccard__price--bonus { color: #10301f; background: #7dffb5; }
.bonus-hero__orb { width: 112px; height: 112px; flex: none; }
.adm-fadd { display: flex; gap: 6px; margin: 0 0 8px; }
.adm-fadd .field { flex: 1; min-width: 0; height: 36px; }
.adm-fadd .btn svg { width: 15px; height: 15px; }
/* золотая жила (v13): шанс золота под шансом, без искры у края (обрезалась) */
.wheel__goldch { display: block; margin-top: 4px; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 850; color: #5a3500; background: linear-gradient(135deg, #fff1a6, #ffc21a); box-shadow: 0 2px 8px rgba(255, 170, 0, 0.35); white-space: nowrap; }
.wheel__goldch[hidden] { display: none; }
.wheel__gold-star { display: none; }
/* карточка выигрыша из ленты — поверх всего экрана (fixed в body), а не внутри ленты */
.fcard.fcard--float { position: fixed; top: 0; left: 8px; z-index: 1200; width: min(330px, calc(100vw - 16px)); transform: translate3d(0, -6px, 0) scale(0.97); }
.fcard.fcard--float.is-on { transform: translate3d(0, 0, 0); }
/* долгое нажатие на плитку не вызывает лупу/выделение текста iOS */
.wstrip, .wtile { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
/* v13: атрибут hidden всегда прячет. Пустой слой бонуса жилы (.bonus, display:grid) висел поверх колеса
   прозрачным квадратом 262×262 и перехватывал нажатия: на узких телефонах — прямо по ползунку «Жила» */
[hidden] { display: none !important; }
.upg-vein { z-index: 12; }
/* v13: демо в Mines и Crash (на сервер ничего не уходит) */
.mines-cta { display: flex; gap: 8px; align-items: stretch; }
.mines-cta [data-go] { flex: 1; min-width: 0; }
.mines-cta .cbtn-demo { height: auto; min-height: 54px; }
.crash-demo { display: block; width: 100%; margin: 8px 0 2px; }
.crash-demo.is-on { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
/* v13: фоны (палитры) — переменные + рисунок. Тот же рисунок у образца в настройках (.wp-…) */
[data-palette="snow"] { --bg: #0e1930; --surface: #16233f; --surface-2: #1d2c4b; --surface-3: #27385b; --text: #eef3fc; --muted: #9eb0cb; --accent: #8fc3ff; --accent-soft: #223657; --cta: linear-gradient(120deg, #5b8fe0, #3b5fb4); --tabbar: rgba(18, 29, 52, 0.96); }
.wp-snow, [data-palette="snow"] body { background-color: #0e1930; background-image: radial-gradient(1.6px 1.6px at 24px 30px, rgba(255,255,255,.85) 95%, transparent), radial-gradient(1.2px 1.2px at 88px 74px, rgba(255,255,255,.6) 95%, transparent), radial-gradient(2.4px 2.4px at 150px 118px, rgba(255,255,255,.42) 95%, transparent), radial-gradient(1px 1px at 60px 140px, rgba(214,232,255,.75) 95%, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath transform='translate(60 70)' d='M0-9V9M-7.8-4.5 7.8 4.5M-7.8 4.5 7.8-4.5M0-9l-2.6-2.6M0-9l2.6-2.6M0 9l-2.6 2.6M0 9l2.6 2.6M-7.8-4.5l-.95 3.55M-7.8-4.5l3.55-.95M7.8 4.5l.95-3.55M7.8 4.5l-3.55.95M-7.8 4.5l3.55.95M-7.8 4.5l-.95-3.55M7.8-4.5l-3.55-.95M7.8-4.5l.95 3.55'/%3E%3Cpath transform='translate(200 180) scale(.7)' d='M0-9V9M-7.8-4.5 7.8 4.5M-7.8 4.5 7.8-4.5M0-9l-2.6-2.6M0-9l2.6-2.6M0 9l-2.6 2.6M0 9l2.6 2.6M-7.8-4.5l-.95 3.55M-7.8-4.5l3.55-.95M7.8 4.5l.95-3.55M7.8 4.5l-3.55.95M-7.8 4.5l3.55.95M-7.8 4.5l-.95-3.55M7.8-4.5l-3.55-.95M7.8-4.5l.95 3.55'/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(120% 55% at 50% 0%, #1b2f56 0%, transparent 70%); background-size: 173px 151px, 131px 117px, 211px 197px, 97px 163px, 260px 240px, 100% 100vh; background-repeat: repeat, repeat, repeat, repeat, repeat, no-repeat; }
[data-palette="frost"] { --bg: #e8f0f7; --surface: #fbfdff; --surface-2: #eef4f9; --surface-3: #dce7f1; --text: #16263a; --muted: #55677d; --accent: #2d6ca6; --accent-soft: #dbe8f4; --cta: linear-gradient(120deg, #4a86c0, #2f5f94); --tabbar: rgba(251, 253, 255, 0.95); }
.wp-frost, [data-palette="frost"] body { background-color: #e8f0f7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112'%3E%3Cg fill='none' stroke='%235f8db6' stroke-opacity='.28' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath transform='translate(28 30)' d='M0-9V9M-7.8-4.5 7.8 4.5M-7.8 4.5 7.8-4.5M0-9l-2.6-2.6M0-9l2.6-2.6M0 9l-2.6 2.6M0 9l2.6 2.6M-7.8-4.5l-.95 3.55M-7.8-4.5l3.55-.95M7.8 4.5l.95-3.55M7.8 4.5l-3.55.95M-7.8 4.5l3.55.95M-7.8 4.5l-.95-3.55M7.8-4.5l-3.55-.95M7.8-4.5l.95 3.55'/%3E%3Cpath transform='translate(84 84) scale(.55)' d='M0-9V9M-7.8-4.5 7.8 4.5M-7.8 4.5 7.8-4.5M0-9l-2.6-2.6M0-9l2.6-2.6M0 9l-2.6 2.6M0 9l2.6 2.6M-7.8-4.5l-.95 3.55M-7.8-4.5l3.55-.95M7.8 4.5l.95-3.55M7.8 4.5l-3.55.95M-7.8 4.5l3.55.95M-7.8 4.5l-.95-3.55M7.8-4.5l-3.55-.95M7.8-4.5l.95 3.55'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, #f3f8fc, #e8f0f7 70%); background-size: 112px 112px, 100% 100vh; background-repeat: repeat, no-repeat; }
[data-palette="felt"] { --bg: #0c2219; --surface: #133024; --surface-2: #193a2c; --surface-3: #224736; --text: #eef7f1; --muted: #9cbcaa; --accent: #7fd6a2; --accent-soft: #1f4434; --cta: linear-gradient(120deg, #2f9e66, #1d7550); --tabbar: rgba(16, 42, 31, 0.96); }
.wp-felt, [data-palette="felt"] body { background-color: #0c2219; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 2 54 28 28 54 2 28Z' fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1'/%3E%3Ccircle cx='28' cy='28' r='1.3' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E"), radial-gradient(110% 70% at 50% 30%, #154131 0%, transparent 75%); background-size: 56px 56px, 100% 100vh; background-repeat: repeat, no-repeat; }
[data-palette="vein"] { --bg: #15110b; --surface: #201a11; --surface-2: #2a2216; --surface-3: #362c1c; --text: #fbf5e8; --muted: #bfae8c; --accent: #f2c14e; --accent-soft: #3b2f17; --cta: linear-gradient(120deg, #b7801c, #8a5a0c); --tabbar: rgba(30, 24, 15, 0.96); }
.wp-vein, [data-palette="vein"] body { background-color: #15110b; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='none' stroke='%23f0b93e' stroke-linecap='round'%3E%3Cpath stroke-opacity='.2' stroke-width='1.4' d='M-10 52C40 40 62 86 110 74S170 18 230 40 290 92 310 80'/%3E%3Cpath stroke-opacity='.12' stroke-width='1' d='M110 74c8 22-4 40 6 62'/%3E%3Cpath stroke-opacity='.16' stroke-width='1.2' d='M-10 212C30 236 78 196 126 214s82 52 120 30 50-30 64-26'/%3E%3Cpath stroke-opacity='.1' stroke-width='.9' d='M246 244c-6-18 8-34 2-52'/%3E%3C/g%3E%3Cg fill='%23ffd36a'%3E%3Ccircle cx='112' cy='73' r='1.6' fill-opacity='.5'/%3E%3Ccircle cx='247' cy='243' r='1.4' fill-opacity='.45'/%3E%3Ccircle cx='186' cy='150' r='1' fill-opacity='.3'/%3E%3Ccircle cx='40' cy='130' r='.9' fill-opacity='.3'/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(100% 60% at 70% 0%, #2a1f0c 0%, transparent 70%); background-size: 300px 300px, 100% 100vh; background-repeat: repeat, no-repeat; }
[data-palette="balls"] { --bg: #140f26; --surface: #1d1735; --surface-2: #251e41; --surface-3: #30284f; --text: #f5f2ff; --muted: #aea4cf; --accent: #c08cff; --accent-soft: #33274f; --cta: linear-gradient(120deg, #a05cff, #ff4fa3); --tabbar: rgba(26, 20, 46, 0.96); }
.wp-balls, [data-palette="balls"] body { background-color: #140f26; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Ccircle cx='46' cy='52' r='22' fill='%23ff4fa3' fill-opacity='.09'/%3E%3Ccircle cx='40' cy='45' r='6' fill='%23ffffff' fill-opacity='.05'/%3E%3Ccircle cx='186' cy='40' r='11' fill='%233d8bff' fill-opacity='.12'/%3E%3Ccircle cx='150' cy='150' r='30' fill='%238b5cff' fill-opacity='.08'/%3E%3Ccircle cx='141' cy='140' r='8' fill='%23ffffff' fill-opacity='.04'/%3E%3Ccircle cx='232' cy='206' r='14' fill='%2323d18b' fill-opacity='.09'/%3E%3Ccircle cx='64' cy='214' r='9' fill='%23ffc53d' fill-opacity='.1'/%3E%3Ccircle cx='100' cy='108' r='4' fill='%233d8bff' fill-opacity='.16'/%3E%3C/svg%3E"); background-size: 260px 260px; background-repeat: repeat; }
[data-palette="ruby"] { --bg: #1d0b12; --surface: #2a121b; --surface-2: #351823; --surface-3: #43202d; --text: #fdf0f3; --muted: #cc9fac; --accent: #ff7d97; --accent-soft: #4a1f2c; --cta: linear-gradient(120deg, #d63c62, #9b2346); --tabbar: rgba(38, 15, 24, 0.96); }
.wp-ruby, [data-palette="ruby"] body { background-color: #1d0b12; background-image: repeating-linear-gradient(60deg, rgba(255,160,180,.035) 0 1px, transparent 1px 26px), repeating-linear-gradient(-60deg, rgba(255,160,180,.035) 0 1px, transparent 1px 26px), radial-gradient(90% 55% at 30% 0%, #3a1220 0%, transparent 70%); background-size: auto, auto, 100% 100vh; background-repeat: repeat, repeat, no-repeat; }
[data-palette="graphite"] { --bg: #141517; --surface: #1d1f22; --surface-2: #25282c; --surface-3: #30343a; --text: #f1f2f4; --muted: #a2a7b0; --accent: #c9ced6; --accent-soft: #2f3338; --cta: linear-gradient(120deg, #5d6470, #3f454e); --tabbar: rgba(26, 28, 31, 0.96); }
.wp-graphite, [data-palette="graphite"] body { background-color: #141517; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.026) 0 1px, transparent 1px 9px); background-size: auto; background-repeat: repeat; }
[data-palette="sakura"] { --bg: #f8ecf0; --surface: #fffafb; --surface-2: #f8eef2; --surface-3: #efdde5; --text: #2e1a23; --muted: #7d5e6b; --accent: #b8406f; --accent-soft: #f6dde8; --cta: linear-gradient(120deg, #d9628f, #a83a68); --tabbar: rgba(255, 250, 251, 0.95); }
.wp-sakura, [data-palette="sakura"] body { background-color: #f8ecf0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg fill='%23e889ad' fill-opacity='.22'%3E%3Cg transform='translate(38 40)'%3E%3Cellipse rx='4' ry='7' cy='-7'/%3E%3Cellipse rx='4' ry='7' cy='-7' transform='rotate(72)'/%3E%3Cellipse rx='4' ry='7' cy='-7' transform='rotate(144)'/%3E%3Cellipse rx='4' ry='7' cy='-7' transform='rotate(216)'/%3E%3Cellipse rx='4' ry='7' cy='-7' transform='rotate(288)'/%3E%3C/g%3E%3Cellipse cx='112' cy='96' rx='3.2' ry='6' transform='rotate(35 112 96)'/%3E%3Cellipse cx='70' cy='126' rx='2.6' ry='5' transform='rotate(-25 70 126)'/%3E%3C/g%3E%3Ccircle cx='38' cy='40' r='2.2' fill='%23f6c94f' fill-opacity='.45'/%3E%3C/svg%3E"); background-size: 150px 150px; background-repeat: repeat; }
[data-palette="sky"] { --bg: #e3effa; --surface: #fbfdff; --surface-2: #edf5fc; --surface-3: #dae8f6; --text: #13253a; --muted: #52667e; --accent: #2a74c4; --accent-soft: #d9e9f8; --cta: linear-gradient(120deg, #3d8be0, #2560aa); --tabbar: rgba(251, 253, 255, 0.95); }
.wp-sky, [data-palette="sky"] body { background-color: #e3effa; background-image: radial-gradient(64px 26px at 50px 60px, rgba(255,255,255,.9), transparent 72%), radial-gradient(40px 20px at 84px 52px, rgba(255,255,255,.85), transparent 72%), radial-gradient(96px 34px at 200px 170px, rgba(255,255,255,.75), transparent 72%), radial-gradient(56px 24px at 240px 160px, rgba(255,255,255,.7), transparent 72%), linear-gradient(180deg, #d4e7f8, #e3effa 60%); background-size: 300px 240px, 300px 240px, 300px 240px, 300px 240px, 100% 100vh; background-repeat: repeat, repeat, repeat, repeat, no-repeat; }
[data-palette="confetti"] { --bg: #f2f3fa; --surface: #ffffff; --surface-2: #eef0f8; --surface-3: #e1e4f1; --text: #15172a; --muted: #62667f; --accent: #6d3dff; --accent-soft: #e8e3ff; --cta: linear-gradient(120deg, #8b5cff, #ff4fa3); --tabbar: rgba(255, 255, 255, 0.95); }
.wp-confetti, [data-palette="confetti"] body { background-color: #f2f3fa; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill-opacity='.38'%3E%3Crect x='20' y='24' width='9' height='4' rx='1.5' fill='%23ff4fa3' transform='rotate(28 24 26)'/%3E%3Crect x='96' y='18' width='8' height='4' rx='1.5' fill='%233d8bff' transform='rotate(-40 100 20)'/%3E%3Ccircle cx='132' cy='70' r='2.6' fill='%23ffc53d'/%3E%3Crect x='54' y='86' width='10' height='4' rx='1.5' fill='%2323d18b' transform='rotate(62 59 88)'/%3E%3Ccircle cx='30' cy='132' r='2.2' fill='%238b5cff'/%3E%3Crect x='112' y='128' width='9' height='4' rx='1.5' fill='%23ff7a1a' transform='rotate(-18 116 130)'/%3E%3Ccircle cx='76' cy='40' r='1.8' fill='%2316c0d6'/%3E%3C/g%3E%3C/svg%3E"); background-size: 160px 160px; background-repeat: repeat; }
/* образцы для старых фонов */
.wp-night { background-color: #151426; background-image: radial-gradient(1px 1px at 21px 29px, #aaa3c366 95%, transparent), radial-gradient(1.5px 1.5px at 83px 57px, #928db955 90%, transparent), radial-gradient(ellipse at 82% 0%, #35284a, transparent 65%); background-size: 109px 127px, 163px 107px, 100% 100%; background-repeat: repeat, repeat, no-repeat; }
.wp-mist { background-color: #eceef0; background-image: url("img/ui/battleballs-print.svg"); }
.wp-orbit { background-color: #151a2d; background-image: repeating-radial-gradient(ellipse at 22% 32%, transparent 0 23px, #afaaea1a 24px 25px, transparent 26px 39px); background-size: 280px 215px; }
.wp-dune { background-color: #ede4d3; background-image: repeating-radial-gradient(ellipse at 10% 120%, transparent 0 12px, #9a795524 13px 14px, transparent 15px 23px); background-size: 260px 116px; }
.wp-lagoon { background-color: #dfede8; background-image: radial-gradient(ellipse at 50% 0%, transparent 60%, #51988a38 62%, transparent 66%); background-size: 75px 22px; }
.wp-auto { background: linear-gradient(135deg, #f1f2f6 50%, #151426 50%); }
/* выбор фона в настройках: плитки-образцы */
.wpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 2px 14px 14px; }
.wpick__it { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wpick__sw { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform 0.15s, box-shadow 0.15s; }
.wpick__sw i { position: absolute; left: 14%; right: 14%; bottom: 14%; height: 38%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.wpick__sw i b { position: absolute; left: 10px; top: 50%; width: 30%; height: 6px; margin-top: -3px; border-radius: 3px; }
.wpick__nm { font-size: 12.5px; font-weight: 650; line-height: 1.2; color: var(--muted); }
.wpick__it.is-on .wpick__sw { box-shadow: 0 0 0 2.5px var(--accent), inset 0 0 0 1px var(--line-strong); }
.wpick__it.is-on .wpick__nm { color: var(--text); }
.wpick__it:active .wpick__sw { transform: scale(0.96); }
.wpick__it:focus-visible { outline: none; }
.wpick__it:focus-visible .wpick__sw { box-shadow: 0 0 0 2.5px var(--accent); }
/* «новый фон» — один раз, когда админ ставит фон всем */
.tpush { display: grid; justify-items: center; gap: 10px; padding: 4px 6px 8px; text-align: center; }
.tpush__sw { position: relative; display: block; width: 160px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow); }
.tpush__sw i { position: absolute; left: 14%; right: 14%; bottom: 14%; height: 38%; border-radius: 10px; }
.tpush__sw i b { position: absolute; left: 12px; top: 50%; width: 30%; height: 8px; margin-top: -4px; border-radius: 4px; }
.tpush h3 { margin: 6px 0 0; font-size: 19px; }
.tpush p { margin: 0; color: var(--muted); max-width: 30ch; }
.tpush__btns { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.wpick--adm { padding: 4px 0 2px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.wpick__bg { position: absolute; left: 0; top: 0; width: 200%; height: 200%; transform: scale(0.5); transform-origin: 0 0; pointer-events: none; }
.wpick__sw i, .tpush__sw i { z-index: 1; }
/* v13: варианты турниров от ИИ */
.tvars { margin: 14px 0; }
.tvars__head { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; }
.tvars__head > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tvars__head b { font-size: 17px; }
.tvars__head small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.tvars__head .btn { flex: none; gap: 6px; }
.tvars__head .btn svg { width: 16px; height: 16px; }
.tvars__msg { white-space: pre-wrap; margin: 0 2px 10px; }
.tvars__list { display: grid; gap: 12px; }
.tvar { --tc: 255, 138, 61; display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: linear-gradient(160deg, rgba(var(--tc), 0.16), transparent 42%), var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tvar--wins { --tc: 35, 209, 139; }
.tvar--skel { --tc: 140, 140, 160; }
.tvar__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tvar__tag { padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; color: rgb(var(--tc)); background: rgba(var(--tc), 0.14); }
.tvar__dur { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 750; color: var(--muted); }
.tvar__dur svg { width: 15px; height: 15px; }
.tvar h3 { margin: 8px 0 6px; font-size: 20px; line-height: 1.15; letter-spacing: -0.01em; }
.tvar__modes { display: flex; flex-wrap: wrap; gap: 5px; }
.tvar__modes span { padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text); }
.tvar__podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.tvar__podium:has(> .tvar__pl:only-child) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.tvar__pl { display: grid; justify-items: center; gap: 3px; padding: 10px 6px 9px; border-radius: 16px; background: var(--surface-2); text-align: center; min-width: 0; }
.tvar__pl--1 { padding-top: 14px; padding-bottom: 14px; background: linear-gradient(180deg, rgba(255, 197, 61, 0.2), var(--surface-2) 70%); box-shadow: inset 0 0 0 1.5px rgba(255, 197, 61, 0.55); }
.tvar__pic { position: relative; display: block; width: 52px; height: 52px; }
.tvar__pl--1 .tvar__pic { width: 66px; height: 66px; }
.tvar__img { width: 100%; height: 100%; object-fit: contain; }
.tvar__pic i { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 900 11px/1 system-ui, sans-serif; font-style: normal; color: #2a1d00; background: #d9dde6; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.tvar__pl--1 .tvar__pic i { background: #ffc53d; }
.tvar__pl--3 .tvar__pic i { background: #e5a372; }
.tvar__pl b { max-width: 100%; font-size: 12.5px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tvar__pl small { color: var(--muted); font-size: 12px; font-weight: 700; }
.tvar__noprize { margin: 0; }
.tvar__fund { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; font-size: 13.5px; color: var(--muted); }
.tvar__fund b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.tvar__ai { display: grid; gap: 7px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.tvar__ai-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--accent); }
.tvar__ai-h svg { width: 16px; height: 16px; }
.tvar__goal { margin: 0; font-weight: 750; line-height: 1.35; }
.tvar__why { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.tvar__tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.tvar__tips li { display: flex; gap: 7px; font-size: 13.5px; line-height: 1.35; }
.tvar__tips svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--win); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tvar__risk { display: flex; gap: 7px; margin: 0; font-size: 13px; line-height: 1.35; color: var(--warn); }
.tvar__risk svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.tvar__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-form.is-filled, [data-tform].is-filled { animation: tFill 1.1s ease-out; }
@keyframes tFill { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { [data-tform].is-filled { animation: none; } }
/* v13: промокоды в админке */
.adm-promo { display: grid; gap: 10px; }
.seg.adm-promo__kinds { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 5px; }
.adm-promo__kinds button { height: auto; min-height: 38px; padding: 6px 8px; white-space: normal; line-height: 1.2; }
.adm-promo .adm-card__head { flex-wrap: wrap; }
.adm-promo__code { display: flex; gap: 6px; margin-top: 4px; }
.adm-promo__code .field { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 750; }
.adm-promo__code .btn { flex: none; gap: 5px; }
.adm-promo__code .btn svg { width: 15px; height: 15px; }
.adm-promo__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.adm-promo__it { gap: 10px; }
.adm-promo__it.is-done { opacity: 0.55; }
.adm-promo__cd { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.adm-promo__cd b { font-size: 15px; letter-spacing: 0.04em; }
.adm-promo__cd small { color: var(--muted); font-size: 12.5px; }
.adm-promo__use { font-size: 13px; color: var(--muted); white-space: nowrap; }
.adm-promo__use b { color: var(--text); font-size: 15px; }
.adm-promo__it .btn svg { width: 16px; height: 16px; }
/* во время бонуса жилы ползунок не нужен — и не наезжает на колесо множителей на узких экранах */
.upg-vein { transition: opacity 0.2s; }
.upg-stage.has-vein .upg-vein { opacity: 0; pointer-events: none; }

/* v13.1: друг в слоте — почему «Обычный» и «проверить заново» */
.fslot__why { display: block; font-size: 10.5px; line-height: 1.2; color: var(--warn); }
.fslot.is-recheck { cursor: pointer; }
.fslot.is-recheck:active { transform: scale(0.96); }

/* ---------- v14: вкладка «Турнир» ---------- */
.view--tour { display: grid; gap: 14px; }
.tour {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px 14px 14px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(130% 62% at 50% 0%, rgba(255, 197, 61, 0.17), transparent 62%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.tour__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour__live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 800; color: var(--win); background: rgba(34, 201, 131, 0.14); }
.tour__live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: tourPulse 1.8s ease-out infinite; }
@keyframes tourPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 201, 131, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(34, 201, 131, 0); } }
.tour__left { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tour__left svg { width: 15px; height: 15px; align-self: center; }
.tour__left b { color: var(--text); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.tour__head h2 { margin: 0; font-size: 25px; line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tour__rule { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.tour__modes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tour__modes small { width: 100%; color: var(--faint); font-size: 12px; font-weight: 700; }
.tour__modes button { padding: 6px 11px; border: 0; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 750; color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.tour__modes button:active { transform: scale(0.96); }
.tour__podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.tour__podium--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tour__podium--1 { grid-template-columns: minmax(0, 190px); justify-content: center; }
.tour__pl { display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 12px 6px 10px; border-radius: 18px; text-align: center; background: var(--surface-2); }
.tour__pl--1 {
  padding: 16px 6px 13px;
  background: linear-gradient(180deg, rgba(255, 197, 61, 0.26), var(--surface-2) 74%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 197, 61, 0.62), 0 12px 28px rgba(255, 170, 40, 0.14);
}
.tour__pic { position: relative; display: block; width: 58px; height: 58px; margin-bottom: 2px; }
.tour__pl--1 .tour__pic { width: 80px; height: 80px; }
.tour__img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); }
.tour__pic i { position: absolute; right: -7px; top: -7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 900 12px/1 system-ui, sans-serif; font-style: normal; color: #2a1d00; background: #d9dde6; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.tour__pl--1 .tour__pic i { background: var(--gold, #ffc53d); }
.tour__pl--3 .tour__pic i { background: #e5a372; }
.tour__pl b { max-width: 100%; font-size: 12.5px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tour__price { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tour__price .gram { width: 15px; height: 15px; vertical-align: 0; }
.tour__pl--1 .tour__price { font-size: 16.5px; }
.tour__pl--1 .tour__price span { color: var(--gold, #ffc53d); }
[data-theme="light"] .tour__pl--1 .tour__price span { color: #b07800; }
.tour__who { max-width: 100%; margin-top: 2px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--text); background: var(--surface-3, rgba(127, 127, 127, 0.14)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour__who.is-free { color: var(--faint); background: none; font-weight: 650; }
.tour__fund { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-radius: 15px; font-size: 13.5px; font-weight: 650; color: var(--muted); background: rgba(255, 197, 61, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, 0.2); }
.tour__fund b { display: inline-flex; align-items: center; gap: 5px; font-size: 18px; font-weight: 850; color: var(--text); font-variant-numeric: tabular-nums; }
.tour__fund .gram { width: 19px; height: 19px; vertical-align: 0; }
.tour__me { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tour__me.is-prize { background: rgba(34, 201, 131, 0.1); box-shadow: inset 0 0 0 1px rgba(34, 201, 131, 0.35); }
.tour__me-place { flex: none; display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 12px; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; background: var(--cta); }
.tour__me-txt { flex: 1; min-width: 0; }
.tour__me-txt b { display: block; font-size: 14.5px; }
.tour__me-txt small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.tour__me-txt small .gram { width: 14px; height: 14px; vertical-align: -2px; }
.tour__me-score { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; }
.tour__me--out .btn { flex: none; }
.tour__board-head { margin-top: 2px; }
.tour__board-head small { color: var(--muted); font-size: 13px; font-weight: 650; }
.tour__row .rank { font-variant-numeric: tabular-nums; }
.tour__row--1 .rank { color: var(--gold, #ffc53d); font-weight: 900; }
.tour__row--2 .rank { color: #c9cfdb; font-weight: 900; }
.tour__row--3 .rank { color: #e5a372; font-weight: 900; }
.tour__row-prize { display: flex !important; align-items: center; gap: 5px; }
.tour__row-prize span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour__row-gift { flex: none; width: 18px; height: 18px; object-fit: contain; }
.tour__row-score { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.tour__row-score .gram { width: 16px; height: 16px; vertical-align: 0; }
.tour__gap { padding: 2px 0 4px; text-align: center; color: var(--faint); letter-spacing: 0.3em; }
.tour__sep { height: 6px; }
.tour-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 22px 26px; border-radius: 24px; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tour-empty__art { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 6px; border-radius: 28px; color: var(--gold, #ffc53d); background: radial-gradient(circle at 50% 35%, rgba(255, 197, 61, 0.28), rgba(255, 197, 61, 0.08) 70%); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, 0.3); }
[data-theme="light"] .tour-empty__art { color: #d19a00; }
.tour-cup { width: 46px; height: 46px; }
.tour-empty h2 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.tour-empty p { max-width: 300px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.tpast-list { display: grid; gap: 10px; }
.tpast { display: grid; gap: 10px; padding: 13px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tpast header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tpast header b { min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpast header small { flex: none; color: var(--muted); font-size: 12px; font-weight: 650; }
.tpast .note { margin: 0; }
.tpast__list { display: grid; gap: 8px; }
.tpast__w { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tpast__pic { position: relative; flex: none; width: 38px; height: 38px; }
.tpast__img { width: 100%; height: 100%; object-fit: contain; }
.tpast__pic i { position: absolute; right: -5px; bottom: -3px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font: 900 10px/1 system-ui, sans-serif; font-style: normal; color: #2a1d00; background: #d9dde6; }
.tpast__w:first-child .tpast__pic i { background: var(--gold, #ffc53d); }
.tpast__w:nth-child(3) .tpast__pic i { background: #e5a372; }
.tpast__txt { min-width: 0; }
.tpast__txt b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpast__txt small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpast__txt .gram { width: 13px; height: 13px; vertical-align: -2px; }
.tour__toplink .bb-emblem svg { width: 24px; height: 24px; }
/* точка на вкладке: идёт турнир, который вы ещё не открывали */
.tab__new { position: absolute; top: 5px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: #ff4d63; box-shadow: 0 0 0 2px var(--tabbar), 0 0 8px #ff4d63; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tour__live i { animation: none; } }

/* ---------- v15: «Турниры | Кланы», клановая гонка, награда за оборот ---------- */
.view--clans { display: grid; gap: 14px; }
.tseg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tseg a { display: grid; place-items: center; height: 38px; border-radius: 12px; font-size: 14.5px; font-weight: 750; color: var(--muted); text-decoration: none; }
.tseg a.is-on { color: #fff; background: var(--cta); box-shadow: 0 6px 16px rgba(110, 77, 255, 0.35); }
[data-theme="light"] .tseg a.is-on { color: #fff; }
.crace {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px 14px 14px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(120% 70% at 100% 0%, rgba(120, 92, 255, 0.24), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(47, 155, 255, 0.14), transparent 60%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.crace h2 { margin: 0; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.crace__sub { margin: -4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.crace__pool { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 197, 61, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, 0.22); font-size: 14px; font-weight: 650; color: var(--muted); }
.crace__pool b { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 850; color: var(--text); font-variant-numeric: tabular-nums; }
.crace__pool .gram { width: 22px; height: 22px; vertical-align: 0; }
.crace__shares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.crace__sh { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 7px 4px; border-radius: 12px; font-size: 12.5px; font-weight: 750; background: var(--surface-2); white-space: nowrap; }
@media (max-width: 380px) { .crace__sh { font-size: 11.5px; gap: 4px; } }
.crace__sh i { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 900 11px/1 system-ui, sans-serif; font-style: normal; color: #2a1d00; background: #d9dde6; }
.crace__sh--1 i { background: var(--gold, #ffc53d); }
.crace__sh--3 i { background: #e5a372; }
.crace__note { margin: 0; color: var(--faint); font-size: 12px; line-height: 1.35; }
/* эмблема клана — щит в цвете названия */
.cemb { --h: 260; flex: none; display: grid; place-items: center; width: 38px; height: 42px; clip-path: polygon(50% 0, 100% 15%, 100% 60%, 50% 100%, 0 60%, 0 15%); background: linear-gradient(160deg, hsl(var(--h) 75% 62%), hsl(calc(var(--h) + 40) 70% 42%)); }
.cemb b { margin-top: -3px; font: 900 13.5px/1 system-ui, sans-serif; letter-spacing: 0.02em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.cemb--lg { width: 52px; height: 58px; }
.cemb--lg b { font-size: 18px; }
.cmine { display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cmine--none { gap: 8px; }
.cmine--none > b { font-size: 17px; }
.cmine--none p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.cnew { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 4px; }
.cnew .field { min-width: 0; }
.cnew .btn { padding: 0 14px; white-space: nowrap; }
.cmine__head { display: flex; align-items: center; gap: 12px; }
.cmine__title { flex: 1; min-width: 0; }
.cmine__title h3 { margin: 0; font-size: 19px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmine__title small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmine__place { flex: none; display: grid; justify-items: center; min-width: 52px; padding: 6px 8px; border-radius: 14px; font-size: 20px; font-weight: 900; line-height: 1; background: var(--surface-2); }
.cmine__place small { margin-top: 3px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.cmine__place--1 { color: #2a1d00; background: var(--gold, #ffc53d); }
.cmine__place--1 small { color: rgba(42, 29, 0, 0.7); }
.cmine__place--2 { background: rgba(201, 207, 219, 0.22); }
.cmine__place--3 { background: rgba(229, 163, 114, 0.22); }
.cmine__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmine__stats > div { display: grid; gap: 3px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.cmine__stats small { color: var(--muted); font-size: 12px; font-weight: 650; }
.cmine__stats b { display: inline-flex; align-items: center; gap: 5px; font-size: 16px; font-variant-numeric: tabular-nums; }
.cmine__stats .gram, .cmine__prize .gram, .crow__vol .gram, .cmem__vol .gram, .crow__prize .gram { width: 15px; height: 15px; vertical-align: 0; }
.cmine__prize { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(34, 201, 131, 0.1); box-shadow: inset 0 0 0 1px rgba(34, 201, 131, 0.3); font-size: 13.5px; font-weight: 650; color: var(--muted); }
.cmine__prize b { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; color: var(--win); font-variant-numeric: tabular-nums; }
.cmine__warn { display: flex; gap: 7px; margin: 0; font-size: 13px; line-height: 1.35; color: var(--warn); }
.cmine__warn svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.cmine__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmine__acts .btn svg { width: 18px; height: 18px; margin-right: 6px; }
.cmine__list { box-shadow: inset 0 0 0 1px var(--line); }
.cmem__lead { display: inline-flex !important; align-items: center; gap: 4px; color: var(--gold, #ffc53d) !important; font-weight: 700; }
.cmem__lead svg { width: 13px; height: 13px; }
.cmem__vol, .crow__vol { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.cmem__kick { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-left: -4px; border: 0; border-radius: 10px; color: var(--muted); background: var(--surface-2); cursor: pointer; }
.cmem__kick svg { width: 15px; height: 15px; }
.crow .rank { font-variant-numeric: tabular-nums; }
.crow--1 .rank { color: var(--gold, #ffc53d); font-weight: 900; }
.crow--2 .rank { color: #c9cfdb; font-weight: 900; }
.crow--3 .rank { color: #e5a372; font-weight: 900; }
.crow .cemb { width: 30px; height: 34px; }
.crow .cemb b { font-size: 11px; }
.crow__end { display: grid; justify-items: end; gap: 2px; }
.crow__prize { display: inline-flex !important; align-items: center; gap: 3px; margin-top: 0 !important; color: var(--win); font-weight: 700; }
.crow__join { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -2px; border: 0; border-radius: 11px; color: var(--accent); background: var(--accent-soft); cursor: pointer; }
.crow__join svg { width: 18px; height: 18px; }
.crow__join:active { transform: scale(0.92); }
.crow.is-focus { animation: cfocus 1.6s ease-out 2; }
@keyframes cfocus { 0% { background: rgba(120, 92, 255, 0.32); } 100% { background: transparent; } }
.cinv { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: linear-gradient(120deg, rgba(120, 92, 255, 0.22), rgba(47, 155, 255, 0.12)); box-shadow: inset 0 0 0 1px rgba(120, 92, 255, 0.4); }
.cinv > div { flex: 1; min-width: 0; }
.cinv small { display: block; color: var(--muted); font-size: 12.5px; }
.cinv b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cinv .btn { flex: none; width: auto; height: 40px; padding: 0 16px; }
@media (max-width: 400px) { .cnew { grid-template-columns: 1fr; } }
.crules { padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--muted); }
.crules summary { cursor: pointer; font-weight: 750; color: var(--text); }
.crules ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.4; }
/* награда за оборот — профиль */
.vrw { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 20px; background: linear-gradient(140deg, rgba(34, 201, 131, 0.12), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.vrw__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vrw__head b { display: block; font-size: 16px; }
.vrw__head small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.vrw__next { flex: none; padding: 5px 10px; border-radius: 99px; font-size: 13.5px; font-weight: 850; color: var(--win); background: rgba(34, 201, 131, 0.14); font-variant-numeric: tabular-nums; }
.vrw__bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.vrw__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c983, #6be3a8); transition: width 0.4s ease; }
.vrw__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 750; }
.vrw__row .gram { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }
.vrw__row small { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.vrw__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vrw__steps small { width: 100%; color: var(--faint); font-size: 12px; font-weight: 700; }
.vrw__steps span { padding: 4px 8px; border-radius: 9px; font-size: 12px; font-weight: 700; background: var(--surface-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .crow.is-focus { animation: none; } .vrw__bar i { transition: none; } }
