/* ============================================================
   ЗАЛ ОТДЫХА (/games) — публичные мини-игры на жетоны.
   Отдельный stylesheet: общий style.css не трогаем.
   Опирается на его токены (--acc, --bg-*, --ink-*, --line-*) и
   на материалы из public/img/datapad — они рисовались под эту
   эстетику и до сих пор почти не использовались.
   ============================================================ */

.gm-body { background: var(--bg-0); }
/* Атрибут hidden перебивается классами с display (grid/flex) — принуждаем. */
.gm-main [hidden] { display: none !important; }
.gm-main { padding: 26px 0 60px; }

.gm-kicker { display: block; font-family: 'Acrom'; font-weight: 700; font-size: 11px;
  letter-spacing: 2.2px; color: var(--ink-3); margin-bottom: 6px; }
.gm-h1 { font-family: 'Acrom'; font-weight: 800; font-size: clamp(26px, 4vw, 40px);
  margin: 0; color: var(--ink-0); letter-spacing: -.5px; }
.gm-h1 .accent { color: var(--acc-2); }

/* ── Шапка зала ─────────────────────────────────────────────── */
.gm-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 30px 26px 26px; margin-bottom: 26px;
  /* Текстуру гасим плотной заливкой сверху: сама картинка светлая и без
     этого «съедает» текст. Белую полосу glow_horizon убрали совсем — она
     читалась как инородная засветка по нижней кромке. */
  background:
    linear-gradient(rgba(27,20,19,.9), rgba(27,20,19,.94)),
    url('/img/decor/topography_small.png') center / cover,
    var(--bg-1);
  border: 1px solid var(--line-2); overflow: hidden; }
.gm-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('/img/ui/crt.png') repeat; opacity: .08; mix-blend-mode: overlay; }
.gm-hero__deco { position: absolute; inset: 0; pointer-events: none; opacity: .22; }
.gm-hero__contour-l, .gm-hero__contour-r { position: absolute; bottom: 0; width: 190px; opacity: .35; }
.gm-hero__contour-l { left: 0; transform: scaleX(-1); }
.gm-hero__contour-r { right: 0; }
.gm-hero__t { position: relative; z-index: 2; }
.gm-hero__sub { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-1); max-width: 46ch; }

/* Кошелёк — «энергошкала» датапада */
/* Срезанный угол — clip-path (маска с mask-composite местами не поддержана
   и способна скрыть блок целиком; здесь надёжнее). */
.gm-wallet { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px;
  padding: 14px 22px; background: rgba(15,12,11,.72); border: 1px solid var(--line-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.gm-wallet::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--acc), transparent); }
.gm-wallet__lab { font-size: 10.5px; letter-spacing: 1.6px; color: var(--ink-3); font-weight: 700; }
.gm-wallet__val { font-family: 'Acrom'; font-weight: 800; font-size: 28px; color: var(--ink-0);
  line-height: 1; font-variant-numeric: tabular-nums; }
.gm-wallet__chip { width: 26px; height: 26px; background: url('/img/icons/chip.png') center/contain no-repeat;
  filter: drop-shadow(0 0 7px var(--acc-glow)); }
.gm-wallet__daily { font-size: 11.5px; color: var(--hl-green); font-weight: 700; }
.gm-wallet__bar { position: relative; width: 100%; height: 4px; margin-top: 7px;
  background: var(--bg-2); overflow: hidden; }
.gm-wallet__bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--acc), var(--acc-2)); }

/* ── Витрина игр ────────────────────────────────────────────── */
.gm-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px; margin-bottom: 30px; padding-top: 48px; }
.gm-card { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 232px;
  padding: 104px 20px 20px; text-decoration: none; overflow: visible;
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line-1);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.gm-card:hover { transform: translateY(-3px); z-index: 5; border-color: var(--acc);
  box-shadow: 0 22px 46px -22px var(--acc-glow); }
.gm-card > .b-c { position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--acc);
  pointer-events: none; opacity: .75; transition: opacity var(--t-fast); }
.gm-card > .b-c.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.gm-card > .b-c.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.gm-card > .b-c.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.gm-card > .b-c.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.gm-card:hover > .b-c { opacity: 1; }
/* водяной знак-соты, как в секциях сайта */
.gm-card__hex { position: absolute; top: 4px; right: 4px; width: 104px; height: 104px;
  background: url('/img/ui/hex.png') center/contain no-repeat; opacity: .07; pointer-events: none; }
/* «Сцена» в шапке карточки: предмет левитирует, как три карты в промо дурака.
   Готовая картинка glow_radial давала жёсткое белое пятно — вместо неё мягкий
   радиальный градиент в акцентном цвете. Поворот задаём на обёртке .gm-float,
   а покачивание анимируем на вложенном <i>, иначе transform'ы конфликтуют. */
/* Веер приподнят НАД карточкой и намеренно выходит за её верхнюю кромку —
   поэтому у .gm-card overflow: visible, иначе углы блока срезали бы предметы. */
.gm-card__art { position: absolute; top: -46px; left: 0; right: 0; height: 152px;
  pointer-events: none; z-index: 3; }
.gm-card__art::before { content: ''; position: absolute; left: 50%; top: 58%; width: 216px; height: 112px;
  transform: translate(-50%,-50%); opacity: .5;
  background: radial-gradient(ellipse, var(--acc-glow), transparent 70%); }
.gm-float { position: absolute; top: 12px; left: 50%;
  transition: transform .45s cubic-bezier(.2,.85,.3,1); }
.gm-float > i { display: block; width: 76px; height: 76px; margin-left: -38px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.8));
  animation: gmBob 3.6s ease-in-out infinite; }
@keyframes gmBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.gm-card:hover .gm-float > i { animation-duration: 2.2s; }
/* Карты — прямоугольные, изображение на всю плашку */
.gm-float--card > i { width: 82px; height: 122px; margin-left: -41px; border-radius: 7px;
  background-size: cover; border: 1px solid rgba(0,0,0,.4); box-shadow: 0 16px 28px -12px rgba(0,0,0,.85); }
/* Раскладка веера: центральный выше, боковые разведены и наклонены */
.gm-float--c1 { transform: rotate(-19deg) translateX(-52px); }
.gm-float--c2 { transform: translateY(-10px); z-index: 2; }
.gm-float--c3 { transform: rotate(19deg) translateX(52px); }
.gm-float--c1 > i { animation-delay: -1.15s; }
.gm-float--c3 > i { animation-delay: -2.25s; }
.gm-card:hover .gm-float--c1 { transform: rotate(-27deg) translateX(-72px) translateY(-4px); }
.gm-card:hover .gm-float--c2 { transform: translateY(-20px) scale(1.05); }
.gm-card:hover .gm-float--c3 { transform: rotate(27deg) translateX(72px) translateY(-4px); }
.gm-card__name { font-family: 'Acrom'; font-weight: 800; font-size: 17px; color: var(--ink-0); margin: 0 0 6px; }
.gm-card__desc { font-size: 12.5px; line-height: 1.5; color: var(--ink-1); margin: 0 0 14px; flex: 1; }
.gm-card__cta { align-self: flex-start; font-family: 'Acrom'; font-weight: 700; font-size: 12.5px;
  color: var(--ink-0); padding: 9px 18px; background: linear-gradient(180deg, var(--acc), #3a5da0);
  border: 1px solid var(--acc); box-shadow: 0 8px 20px -10px var(--acc-glow); }
.gm-card:hover .gm-card__cta { filter: brightness(1.13); }
.gm-card--soon { opacity: .62; }
.gm-card--soon:hover { transform: none; border-color: var(--line-1); box-shadow: none; }
.gm-card__soon { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--ink-3); border: 1px dashed var(--line-2); padding: 7px 14px; }

/* ── Сцена игры ─────────────────────────────────────────────── */
.gm-stage { position: relative; padding: 24px; margin-bottom: 30px;
  background: linear-gradient(rgba(27,20,19,.92), rgba(27,20,19,.92)),
              url('/img/datapad/carbon_stripe.png') repeat, var(--bg-1);
  border: 1px solid var(--line-2); }
/* Угловое свечение убрано: читалось как случайное пятно не пойми откуда. */
.gm-stage__head { position: relative; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gm-stage__title { font-family: 'Acrom'; font-weight: 800; font-size: 21px; color: var(--ink-0); margin: 0; }
.gm-back { font-family: 'Acrom'; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: none; border: 1px solid var(--line-2); padding: 8px 14px; cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast); }
.gm-back:hover { color: var(--ink-0); border-color: var(--acc); }
.gm-bal { display: flex; align-items: center; gap: 8px; font-family: 'Acrom'; font-weight: 800;
  font-size: 19px; color: var(--ink-0); font-variant-numeric: tabular-nums; }
.gm-bal i { width: 20px; height: 20px; background: url('/img/icons/chip.png') center/contain no-repeat; }

/* ── Обменный пункт ─────────────────────────────────────────── */
.xch { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.xch__col { padding: 18px; background: rgba(27,20,19,.7); border: 1px solid var(--line-1); }
.xch__h { font-family: 'Acrom'; font-weight: 800; font-size: 16px; color: var(--ink-0); margin: 0 0 8px; }
.xch__note { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; }
.xch__note b { color: var(--ink-0); }
.xch__row { display: flex; gap: 9px; }
.xch__inp { flex: 1; min-width: 0; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--ink-0); font-family: 'Acrom'; font-size: 15px; font-variant-numeric: tabular-nums; }
.xch__calc { margin-top: 9px; font-size: 13px; color: var(--acc-2); font-variant-numeric: tabular-nums; }
.xch__hist { position: relative; z-index: 2; margin-top: 20px; border: 1px solid var(--line-1); background: rgba(27,20,19,.6); }
.xch__hist h4 { margin: 0; padding: 11px 14px; font-size: 11px; letter-spacing: 1.5px; color: var(--ink-3);
  border-bottom: 1px solid var(--line-1); }
.xch__hrow { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 14px;
  font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid rgba(65,51,49,.5); }
.xch__hrow:last-child { border-bottom: none; }
.xch__st--done { color: var(--hl-green); }
.xch__st--pending { color: #d8a34a; }
.xch__st--failed { color: var(--hl-red); }

/* ── Таблица лидеров ────────────────────────────────────────── */
.gm-topwrap { }
.gm-sec-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 14px; }
.gm-sec-head h2 { font-family: 'Acrom'; font-weight: 800; font-size: 19px; color: var(--ink-0); margin: 0; }
.gm-sec-head span { font-size: 11px; letter-spacing: 1.6px; color: var(--ink-3); font-weight: 700; }
.gm-top { border: 1px solid var(--line-1); background: var(--bg-1); }
.gm-top__row { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 14px; align-items: center;
  padding: 11px 16px; border-bottom: 1px solid rgba(65,51,49,.5); }
.gm-top__row:last-child { border-bottom: none; }
.gm-top__row.is-me { background: rgba(189,78,80,.1); }
.gm-top__pl { font-family: 'Acrom'; font-weight: 800; font-size: 15px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; }
.gm-top__row:nth-child(1) .gm-top__pl { color: #e8c96a; }
.gm-top__row:nth-child(2) .gm-top__pl { color: #ded8d7; }
.gm-top__row:nth-child(3) .gm-top__pl { color: #cd8f52; }
.gm-top__nick { font-size: 13.5px; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-top__won { font-size: 13px; color: var(--hl-green); font-variant-numeric: tabular-nums; }
/* Минус по итогам игры — красным, чтобы таблица читалась честно. */
.gm-top__won--neg { color: var(--hl-red); }
.gm-top__chips { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ── Служебное ──────────────────────────────────────────────── */
.gm-empty, .gm-muted { color: var(--ink-3); font-size: 13px; padding: 16px 0; }
.gm-login { text-align: center; padding: 46px 20px; }
.gm-login p { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
/* Выше игровых модалок (z-index 130): иначе покупка скина и ошибки
   рисуются ПОД окном игры и выглядят как «ничего не произошло». */
.gm-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 400;
  display: flex; flex-direction: column; gap: 8px; }
.gm-toast { padding: 12px 18px; background: var(--bg-2); border: 1px solid var(--line-2);
  border-left: 3px solid var(--acc); color: var(--ink-1); font-size: 13px;
  animation: gmToast .3s ease; box-shadow: 0 14px 32px -14px rgba(0,0,0,.9); }
.gm-toast--win { border-left-color: var(--hl-green); color: var(--ink-0); }
.gm-toast--no { border-left-color: var(--hl-red); }
@keyframes gmToast { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 720px) {
  .gm-hero { padding: 22px 18px; }
  .gm-wallet { width: 100%; }
  .cas { gap: 18px; }
  .brk__grid { gap: 3px; padding: 8px; }
  .brk__col { gap: 3px; }
}

/* ============================================================
   Полоса «Зал отдыха» на ГЛАВНОЙ (над обновлениями устава)
   ============================================================ */
.arc-strip { position: relative; margin: 0 auto 26px; padding: 22px 24px; overflow: hidden;
  background: linear-gradient(rgba(27,20,19,.9), rgba(27,20,19,.94)),
              url('/img/decor/topography_small.png') center / cover, var(--bg-1);
  border: 1px solid var(--line-2); }
.arc-strip::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('/img/ui/crt.png') repeat; opacity: .07; mix-blend-mode: overlay; }
.arc-strip__hex { position: absolute; top: -30px; right: -24px; width: 190px; height: 190px;
  background: url('/img/ui/hex.png') center/contain no-repeat; opacity: .06; pointer-events: none; }
.arc-strip__head { position: relative; z-index: 2; display: flex; align-items: baseline;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.arc-strip__head h2 { font-family: 'Acrom'; font-weight: 800; font-size: 20px; color: var(--ink-0); margin: 0; }
.arc-strip__head h2 .accent { color: var(--acc-2); }
.arc-strip__more { font-family: 'Acrom'; font-size: 12px; font-weight: 700; color: var(--acc-2);
  text-decoration: none; letter-spacing: .4px; }
.arc-strip__more:hover { color: var(--ink-0); }
.arc-tiles { position: relative; z-index: 2; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; padding-top: 46px; }
.arc-tile { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 5px;
  padding: 64px 14px 14px; text-decoration: none; overflow: visible;
  background: linear-gradient(165deg, rgba(37,29,28,.92), rgba(27,20,19,.92));
  border: 1px solid var(--line-1); transition: transform var(--t-fast), border-color var(--t-fast); }
.arc-tile:hover { transform: translateY(-3px); z-index: 5; border-color: var(--acc); }
.arc-tile__glow { position: absolute; top: -16px; left: 50%; width: 154px; height: 90px;
  transform: translateX(-50%); pointer-events: none; opacity: .45;
  background: radial-gradient(ellipse, var(--acc-glow), transparent 70%); }
.arc-tile .gm-float { top: -32px; }
.arc-tile .gm-float > i { width: 58px; height: 58px; margin-left: -29px; }
.arc-tile .gm-float--card > i { width: 60px; height: 89px; margin-left: -30px; border-radius: 5px; }
.arc-tile .gm-float--c1 { transform: rotate(-19deg) translateX(-38px); }
.arc-tile .gm-float--c2 { transform: translateY(-8px); }
.arc-tile .gm-float--c3 { transform: rotate(19deg) translateX(38px); }
.arc-tile:hover .gm-float--c1 { transform: rotate(-26deg) translateX(-52px) translateY(-4px); }
.arc-tile:hover .gm-float--c2 { transform: translateY(-16px) scale(1.05); }
.arc-tile:hover .gm-float--c3 { transform: rotate(26deg) translateX(52px) translateY(-4px); }
.arc-tile__n { font-family: 'Acrom'; font-weight: 800; font-size: 13.5px; color: var(--ink-0); }
.arc-tile__d { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }
.arc-tile--soon { opacity: .55; }
.arc-tile--soon:hover { transform: none; border-color: var(--line-1); }
.arc-tile__soon { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 700;
  letter-spacing: 1.2px; color: var(--ink-3); border: 1px solid var(--line-2); padding: 3px 6px; }


/* ============================================================
   КАЗИНО — ОРИГИНАЛЬНЫЙ ДИЗАЙН, ПЕРЕНЕСЁННЫЙ ИЗ АДМИН-ПАНЕЛИ
   Скопировано из public/admin-panel/css/shop.css без переделки:
   золотая тема, билеты с перфорацией по тирам, указатели, частицы,
   тряска и джекпот. Классы те же (.cas*, .brk*), поэтому свои
   самодельные версии были удалены — они бы конфликтовали.
   Переменные золотой темы живут в admin-panel.css, здесь дублируем.
   ============================================================ */
.cas, .brk {
  --gold:      #f6c454;
  --gold-dim:  #b9903a;
  --gold-glow: rgba(246, 196, 84, 0.45);
}
/* модалка прилетает снизу — анимация из админки */
@keyframes shopSheetIn { from { transform: translateY(18px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ══ КАЗИНО ═══════════════════════════════════════════════════
   Барабан билетов: вертикальная лента, указатель по центру.
   Высота билета 92px ДОЛЖНА совпадать с TICKET_H в shop.js. */
.cas { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; }
.cas.hidden { display: none; }
.cas__backdrop { position: absolute; inset: 0; background: rgba(9,7,6, 0.8); backdrop-filter: blur(7px); }
.cas__box {
  position: relative; width: min(400px, 100%); max-height: 94vh; overflow-y: auto;
  padding: 22px 22px 20px; border-radius: 20px;
  border: 1px solid rgba(246, 196, 84, 0.35);
  background: radial-gradient(120% 80% at 50% 0%, #241a08, #1b1413 60%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: shopSheetIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.cas__close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-1); background: rgba(255,255,255,0.04); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.cas__close:hover { color: var(--ink-0); border-color: var(--gold); }
.cas__head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.cas__ico { font-size: 30px; filter: drop-shadow(0 0 12px var(--gold-glow)); }
.cas__head b { display: block; font-size: 18px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.cas__head span { font-size: 11.5px; color: var(--ink-2); }

/* Окно барабана */
.cas__reelwrap {
  position: relative; height: 360px; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.35);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.cas__band { position: absolute; inset: 125px 0; border-top: 1px solid rgba(246,196,84,0.35); border-bottom: 1px solid rgba(246,196,84,0.35); background: rgba(246,196,84,0.05); pointer-events: none; z-index: 2; }
.cas__ptr { position: absolute; top: 50%; margin-top: -9px; width: 0; height: 0; z-index: 3; pointer-events: none; filter: drop-shadow(0 0 6px var(--gold-glow)); }
.cas__ptr--l { left: 0;  border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid var(--gold); }
.cas__ptr--r { right: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 12px solid var(--gold); }
.cas__reel { will-change: transform; padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }

/* Билет (по мотивам «билетов» из референса) */
.cas-t { height: 110px; flex: 0 0 110px; margin: 0; display: grid; place-items: center; }
.cas-t__in {
  position: relative; width: min(100%, 250px); height: 100%; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid rgba(255,255,255,0.14);
  /* перфорация по бокам — вырезы как у отрывного билета */
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left/51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right/51% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left/51% 100% no-repeat,
        radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right/51% 100% no-repeat;
}
.cas-t__n { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cas-t__n--zero { opacity: 0.45; }
.cas-t__u { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
/* Тиры */
.cas-t--zero .cas-t__in { background: linear-gradient(160deg, #292220, #1d1817); color: var(--ink-3); }
.cas-t--back .cas-t__in { background: linear-gradient(160deg, #2d2423, #1e1817); color: #7fd4c8; }
.cas-t--low  .cas-t__in { background: linear-gradient(160deg, #43312f, #2b201e); color: #8ec2ff; }
.cas-t--mid  .cas-t__in { background: linear-gradient(160deg, #55423f, #332725); color: #c3b4ff; }
.cas-t--high .cas-t__in { background: linear-gradient(160deg, #5e1a45, #38102a); color: #ff9ed2; }
.cas-t--jack .cas-t__in { background: linear-gradient(160deg, #7a5410, #3d2a08); color: #ffd97a; border-color: rgba(246,196,84,0.6); box-shadow: inset 0 0 24px -6px rgba(246,196,84,0.55); }
/* Бонус-билет — карточка с фруктом, выбивается зелёным из призовых тиров */
.cas-t--bonus .cas-t__in {
  background: linear-gradient(160deg, #14432a, #0b2418); color: #b6f0c0;
  border-color: rgba(94, 196, 123, 0.55); box-shadow: inset 0 0 24px -6px rgba(94, 196, 123, 0.5);
}
.cas-t__e { font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)); }
.cas-t__bl { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 3px; }

/* Карточка бонуса в результате */
.cas-bonus { padding: 2px 0; }
.cas-bonus__e { font-size: 44px; line-height: 1; animation: casBonusE 0.6s cubic-bezier(0.2, 1.7, 0.4, 1), casBonusWob 1.6s 0.6s ease-in-out infinite; }
@keyframes casBonusE { 0% { transform: scale(0.2) rotate(-20deg); opacity: 0; } 65% { transform: scale(1.35) rotate(8deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes casBonusWob { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.cas-bonus__t { margin-top: 4px; font-size: 20px; font-weight: 900; color: #b6f0c0; letter-spacing: 0.03em; text-shadow: 0 0 18px rgba(94, 196, 123, 0.6); }
.cas-bonus__s { margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #5d9c74; }

/* Результат */
.cas__res { min-height: 30px; margin-top: 12px; text-align: center; }
.cas__res.is-pop { animation: casPop 0.42s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes casPop { from { transform: scale(0.75); opacity: 0; } to { transform: none; opacity: 1; } }
.cas-res__l { font-size: 14px; color: var(--ink-3); font-weight: 700; }
.cas-res__w { font-size: 19px; font-weight: 800; }
.cas-res__w--low  { color: #8ec2ff; }
.cas-res__w--mid  { color: #c3b4ff; }
.cas-res__w--high { color: #ff9ed2; text-shadow: 0 0 18px rgba(255,158,210,0.5); }
.cas-res__w--jack { color: var(--gold); text-shadow: 0 0 22px var(--gold-glow); }
.cas-res__pity, .cas-res__jack { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.cas-res__pity { color: var(--acc-2); background: rgba(189,78,80,0.15); }
/* «почти выпало» — подпись после near-miss */
.cas-res__near { display: block; margin-top: 5px; font-size: 11.5px; font-style: italic; color: var(--gold-dim); }
.cas-res__jack { color: #1b1413; background: var(--gold); }

/* Шансы + pity */
.cas__odds { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 12px; }
.cas-odd { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cas-odd b { margin-left: 5px; opacity: 0.75; font-weight: 700; }
.cas-odd--jack { color: var(--gold); border-color: rgba(246,196,84,0.45); }
.cas-odd--high { color: #ff9ed2; }
.cas-odd--mid  { color: #c3b4ff; }
.cas__pity { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink-2); }
.cas__pity b { color: var(--ink-0); }
.cas__pity--hot { color: var(--gold) !important; }

/* Низ */
.cas__foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-1); }
.cas__bal { flex: 0 0 auto; }
.cas__bal span { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.cas__bal b { font-size: 16px; color: var(--gold); font-variant-numeric: tabular-nums; }
.cas__spin {
  flex: 1; height: 50px; border: none; border-radius: 13px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #2a1c06;
  background: linear-gradient(120deg, #f6c454, #ffe08a 50%, #d99f2c);
  box-shadow: 0 14px 30px -12px rgba(246,196,84,0.65), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: filter 0.12s, transform 0.12s;
}
.cas__spin:hover:not(:disabled) { filter: brightness(1.08); }
.cas__spin:active:not(:disabled) { transform: translateY(1px); }
.cas__spin:disabled { cursor: not-allowed; background: rgba(255,255,255,0.06); color: var(--ink-3); box-shadow: none; border: 1px solid var(--line-1); }

/* ══ ДОФАМИН: частицы, бонусы, джекпот ════════════════════════ */

/* Взрыв частиц — контейнер летит поверх всего, точка = центр источника */
.cas-fx { position: fixed; z-index: 200; pointer-events: none; width: 0; height: 0; }
.cas-fx__p {
  position: absolute; left: 0; top: 0; font-size: 22px; line-height: 1;
  will-change: transform, opacity;
  animation: casFly var(--dur, 1s) var(--delay, 0s) cubic-bezier(0.15, 0.7, 0.35, 1) forwards;
}
.cas-fx__p--spark {
  width: 7px; height: 7px; border-radius: 50%;
  background: hsl(var(--hue, 46) 95% 62%);
  box-shadow: 0 0 10px 2px hsl(var(--hue, 46) 95% 62% / 0.75);
}
@keyframes casFly {
  0%   { transform: translate(-50%, -50%) scale(0.3) rotate(0deg); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--sc, 1)) rotate(var(--rot, 0deg)); opacity: 0; }
}

/* Тряска модалки на крупном выигрыше */
.cas__box.is-quake { animation: casQuake 0.62s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes casQuake {
  10%, 90% { transform: translate3d(-2px, 1px, 0) rotate(-0.25deg); }
  20%, 80% { transform: translate3d(4px, -2px, 0) rotate(0.4deg); }
  30%, 50%, 70% { transform: translate3d(-6px, 2px, 0) rotate(-0.5deg); }
  40%, 60% { transform: translate3d(6px, -1px, 0) rotate(0.5deg); }
}

/* ДЖЕКПОТ — крупный дёргающийся блок */
.cas-jack { padding: 4px 0 2px; }
.cas-jack__t {
  font-size: 34px; font-weight: 900; letter-spacing: 0.08em; line-height: 1;
  background: linear-gradient(95deg, #ffe9a8, #f6c454 40%, #fff6d8 60%, #d99f2c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(246, 196, 84, 0.85));
  animation: casJackT 0.6s cubic-bezier(0.2, 1.6, 0.4, 1), casJackWob 1.5s 0.6s ease-in-out infinite;
}
@keyframes casJackT { 0% { transform: scale(0.2) rotate(-14deg); opacity: 0; } 60% { transform: scale(1.25) rotate(4deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes casJackWob { 0%, 100% { transform: rotate(-1.6deg) scale(1); } 50% { transform: rotate(1.6deg) scale(1.05); } }
.cas-jack__n {
  font-size: 46px; font-weight: 900; line-height: 1; color: var(--gold);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 26px var(--gold-glow), 0 0 60px rgba(246, 196, 84, 0.5);
  animation: casJackN 0.5s 0.14s cubic-bezier(0.2, 1.8, 0.4, 1) both;
}
@keyframes casJackN { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
.cas-jack__s { font-size: 11px; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-dim); }

/* Бонус в результате */
.cas-res__bonus {
  margin-top: 9px; padding: 8px 12px; border-radius: 11px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: #b6f0c0; border: 1px solid rgba(94, 196, 123, 0.5); background: rgba(94, 196, 123, 0.12);
}
.cas-res__bonus b { color: #dcffe4; }
.cas-res__bonus-e { font-size: 20px; }
.cas-res__bonus.is-bonus-pop { animation: casBonusPop 0.55s cubic-bezier(0.2, 1.7, 0.4, 1); }
@keyframes casBonusPop { 0% { transform: scale(0.4) rotate(-8deg); } 60% { transform: scale(1.18) rotate(3deg); } 100% { transform: scale(1); } }
.cas-res__x2 { display: inline-block; margin-left: 7px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #2a1c06; background: linear-gradient(120deg, #f6c454, #ffe08a); vertical-align: middle; }
.cas-res__free { display: block; margin-top: 5px; font-size: 11.5px; color: #7fd4c8; }
/* Ставка вернулась: не выигрыш, но и не проигрыш — заметно, но без фанфар */
.cas-res__back { font-size: 16px; font-weight: 800; color: #7fd4c8; }
.cas-res__back-s { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-3); }

/* Лента последних круток */
.cas__hist { margin-top: 12px; display: flex; align-items: center; gap: 4px; justify-content: center; flex-wrap: wrap; min-height: 22px; }
.cas-hist { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.cas-hist__l { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-right: 3px; }
.cas-h {
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255,255,255,0.08);
}
.cas-h--zero  { color: var(--ink-3); background: rgba(255,255,255,0.03); }
.cas-h--back  { color: #7fd4c8; background: rgba(127,212,200,0.12); }
.cas-h--low   { color: #8ec2ff; background: rgba(142,194,255,0.12); }
.cas-h--mid   { color: #c3b4ff; background: rgba(195,180,255,0.12); }
.cas-h--high  { color: #ff9ed2; background: rgba(255,158,210,0.14); }
.cas-h--jack  { color: var(--gold); background: rgba(246,196,84,0.18); border-color: rgba(246,196,84,0.5); }
.cas-h--bonus { background: rgba(94,196,123,0.14); border-color: rgba(94,196,123,0.4); font-size: 12px; }

/* Личная статистика */
.cas__stats { margin-top: 10px; display: flex; gap: 14px; justify-content: center; font-size: 11px; color: var(--ink-3); }
.cas__stats b { color: var(--ink-1); font-variant-numeric: tabular-nums; }
.cas-st--best  { color: var(--gold) !important; }
.cas-st--plus  { color: #5ec47b !important; }
.cas-st--minus { color: #ef8a8a !important; }

/* Ежедневный подарок */
.cas-daily { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cas-daily__e { font-size: 40px; line-height: 1; animation: casBonusE 0.6s cubic-bezier(0.2, 1.7, 0.4, 1); }
.cas-daily b { font-size: 17px; color: #b6f0c0; }
.cas-daily span:last-child { font-size: 11.5px; color: #5d9c74; font-weight: 700; }

/* Активные бонусы */
.cas__buffs { display: none; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.cas__buffs.is-on { display: flex; }
.cas-buff { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid transparent; }
.cas-buff b { font-weight: 900; }
.cas-buff--free { color: #7fd4c8; background: rgba(127, 212, 200, 0.12); border-color: rgba(127, 212, 200, 0.4); }
.cas-buff--x2 { color: #c3b4ff; background: rgba(195, 180, 255, 0.12); border-color: rgba(195, 180, 255, 0.45); }

/* Кнопка в режиме бесплатной крутки */
.cas__spin.is-free { background: linear-gradient(120deg, #5ec47b, #a8f0bd 50%, #3f9c5c); color: #06240f; box-shadow: 0 14px 30px -12px rgba(94, 196, 123, 0.7), inset 0 1px 0 rgba(255,255,255,0.5); }

@media (prefers-reduced-motion: reduce) {
  .cas-jack__t, .cas-jack__n, .cas__box.is-quake, .cas-res__bonus.is-bonus-pop { animation: none; }
}

/* ══ КАЗИНО №2 — слот «КАЗАРМА» ═══════════════════════════════
   6 барабанов × 4, выигрыш по путям + каскады. Символы — материалы
   сервера (печати отрядов, HUD-иконки, эмблема Республики). */
.brk { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; }
.brk.hidden { display: none; }
.brk__backdrop { position: absolute; inset: 0; background: rgba(9,7,6,0.82); backdrop-filter: blur(7px); }
.brk__box {
  position: relative; width: min(560px, 100%); max-height: 94vh; overflow-y: auto;
  padding: 20px 20px 16px; border-radius: 20px;
  border: 1px solid var(--line-1);
  background: radial-gradient(120% 80% at 50% 0%, #302625, #15100f 62%);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: shopSheetIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.brk__close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-1); background: rgba(255,255,255,0.04); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; z-index: 3; }
.brk__close:hover { color: var(--ink-0); border-color: var(--acc); }

.brk__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.brk__title {
  font-family: var(--font-display, inherit); font-size: 26px; font-weight: 900; letter-spacing: 0.1em;
  background: linear-gradient(95deg, #ffe9a8, #f6c454 45%, #fff6d8 65%, #d99f2c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px var(--gold-glow));
}
.brk__ways {
  font-size: 17px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums;
  padding: 5px 11px; border-radius: 9px; border: 1px solid rgba(246,196,84,0.45);
  background: rgba(246,196,84,0.1); line-height: 1; text-align: center;
}
.brk__ways span { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--gold-dim); margin-top: 2px; }

/* Сетка */
.brk__stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-1); background: rgba(0,0,0,0.4); padding: 6px; }
.brk__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.brk-col { display: grid; gap: 4px; }
.brk-col.is-drop { animation: brkDrop 0.34s var(--d, 0s) cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
@keyframes brkDrop { from { transform: translateY(-46%); opacity: 0; } to { transform: none; opacity: 1; } }
.brk-c {
  position: relative; aspect-ratio: 1; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(56,45,44,0.9), rgba(29,22,21,0.9));
  border: 1px solid rgba(255,255,255,0.06);
  transition: opacity 0.2s;
}
.brk-c img { width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.55)); }
.brk-c.is-dim { opacity: 0.28; }
.brk-c.is-win {
  border-color: var(--gold); background: linear-gradient(160deg, #4a3a12, #221806);
  box-shadow: 0 0 18px -3px var(--gold-glow), inset 0 0 16px -6px rgba(246,196,84,0.7);
  animation: brkWin 0.5s ease infinite alternate;
}
@keyframes brkWin { from { transform: scale(1); } to { transform: scale(1.07); } }
/* Вайлд и скаттер выделяем всегда */
.brk-c[data-s="wild"] { border-color: rgba(246,196,84,0.5); background: linear-gradient(160deg, #3d2f10, #191204); }
.brk-c[data-s="scat"] { border-color: rgba(94,196,123,0.5); background: linear-gradient(160deg, #14382a, #081c14); }

/* Выигрыш */
.brk__win { min-height: 54px; margin-top: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; opacity: 0; transition: opacity 0.2s; }
.brk__win.is-on { opacity: 1; }
.brk-win__v { font-size: 26px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px var(--gold-glow); }
.brk-win__d { font-size: 11.5px; color: var(--ink-2); }
.brk-win__l { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #5ec47b; }
.brk-win__c { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc-2); }
.brk-win__lose { font-size: 15px; font-weight: 700; color: var(--ink-3); }
.brk-win__fs { font-size: 20px; font-weight: 900; color: #b6f0c0; letter-spacing: 0.06em; text-shadow: 0 0 20px rgba(94,196,123,0.6); animation: casBonusE 0.6s cubic-bezier(0.2,1.7,0.4,1); }

/* Финальный итог */
.brk-fin__t { font-size: 12px; font-weight: 900; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.brk-fin__v { font-size: 32px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 20px var(--gold-glow); }
.brk-fin__cap { font-size: 10px; color: var(--gold-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.brk-fin--big .brk-fin__t { color: #ff9ed2; }
.brk-fin--big .brk-fin__v { font-size: 38px; }
.brk-fin--mega .brk-fin__t {
  font-size: 30px; letter-spacing: 0.1em;
  background: linear-gradient(95deg, #ffe9a8, #f6c454 40%, #fff6d8 60%, #d99f2c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(246,196,84,0.9));
  animation: casJackT 0.6s cubic-bezier(0.2,1.6,0.4,1), casJackWob 1.5s 0.6s ease-in-out infinite;
}
.brk-fin--mega .brk-fin__v { font-size: 44px; animation: casJackN 0.5s 0.14s cubic-bezier(0.2,1.8,0.4,1) both; }

/* Ставки */
.brk__bets { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.brk__bets-l { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.brk-bet {
  min-width: 46px; height: 30px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-1); background: rgba(255,255,255,0.03); color: var(--ink-2);
  font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.brk-bet:hover { border-color: var(--acc); }
.brk-bet.is-on { color: #2a1c06; background: linear-gradient(120deg, #f6c454, #ffe08a); border-color: transparent; }

/* Низ */
.brk__foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-1); }
.brk__bal span { display: block; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.brk__bal b { font-size: 16px; color: var(--gold); font-variant-numeric: tabular-nums; }
.brk__spin {
  flex: 1; height: 48px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #2a1c06;
  background: linear-gradient(120deg, #f6c454, #ffe08a 50%, #d99f2c);
  box-shadow: 0 14px 30px -12px rgba(246,196,84,0.6), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: filter 0.12s, transform 0.12s;
}
.brk__spin:hover:not(:disabled) { filter: brightness(1.08); }
.brk__spin:active:not(:disabled) { transform: translateY(1px); }
.brk__spin:disabled { cursor: not-allowed; background: rgba(255,255,255,0.06); color: var(--ink-3); box-shadow: none; border: 1px solid var(--line-1); }
.brk__hint { margin-top: 10px; text-align: center; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }

/* Дождь монет */
.brk-rain { position: fixed; z-index: 200; pointer-events: none; overflow: hidden; }
.brk-coin {
  position: absolute; top: -28px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #f6c454 45%, #b8860b);
  box-shadow: 0 0 10px rgba(246,196,84,0.7), inset 0 -2px 4px rgba(0,0,0,0.3);
  animation: brkFall var(--dur, 1.2s) var(--delay, 0s) linear forwards;
}
@keyframes brkFall {
  from { transform: translateY(0) rotate(0) scale(var(--sc, 1)); opacity: 1; }
  to   { transform: translateY(340px) rotate(var(--rot, 360deg)) scale(var(--sc, 1)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brk-col.is-drop, .brk-c.is-win, .brk-fin--mega .brk-fin__t, .brk-fin--mega .brk-fin__v { animation: none; }
}

/* Мобильная сетка — 6 колонок влезают, но плотнее */
@media (max-width: 640px) {
  .brk { padding: 0; place-items: stretch; }
  .brk__box { width: 100%; max-height: 100vh; border-radius: 0; border: none; padding: 16px 12px 14px; }
  .brk__title { font-size: 21px; }
  .brk__grid, .brk-col { gap: 3px; }
  .brk-c { border-radius: 6px; }
  .brk-win__v { font-size: 22px; }
  .brk-fin--mega .brk-fin__t { font-size: 24px; }
  .brk-fin--mega .brk-fin__v { font-size: 36px; }
}

/* Кнопка «i» + панель правил слота */
.brk__info-btn {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; cursor: pointer;
  border: 1px solid var(--line-1); background: rgba(255,255,255,0.04); color: var(--ink-2);
  font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 14px; line-height: 1;
  margin-right: auto; margin-left: 10px;
}
.brk__info-btn:hover, .brk__info-btn.is-on { color: var(--gold); border-color: var(--gold); }
.brk__info {
  margin: 0 0 12px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid rgba(246,196,84,0.35); background: rgba(246,196,84,0.06);
  animation: shopSheetIn 0.2s ease;
}
.brk__info[hidden] { display: none; }
.brk-info__rule { font-size: 12px; line-height: 1.55; color: var(--ink-1); }
.brk-info__rule b { color: var(--gold); }
.brk-info__rule u { text-decoration-color: var(--gold); text-underline-offset: 2px; }
.brk-info__rank { display: flex; align-items: center; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.brk-info__cap { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.brk-info__rank img { width: 26px; height: 26px; object-fit: contain; }
.brk-info__specials { display: grid; gap: 8px; }
.brk-info__sp { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }
.brk-info__sp img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.brk-info__sp b { color: var(--ink-0); }
.brk-info__cascade { width: 24px; text-align: center; font-size: 18px; color: var(--acc-2); flex: 0 0 auto; }

/* Выбор персонажа в обменнике — кредиты лежат на конкретном персонаже */
.xch__lab { display: block; margin-bottom: 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.4px; color: var(--ink-3); }
.xch__sel { width: 100%; margin-bottom: 11px; cursor: pointer; }
.xch__nochar { margin-bottom: 11px; padding: 9px 12px; font-size: 12px; color: var(--ink-3);
  border: 1px dashed var(--line-2); }

/* Регулятор ставки крутилки — в золотой теме модалки */
.cas__betrow { display: flex; align-items: center; gap: 9px; margin-top: 14px;
  padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-1);
  background: rgba(255,255,255,0.03); }
.cas__betl { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-right: auto; }
.cas__betb { width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(246,196,84,0.4); background: rgba(246,196,84,0.08);
  color: var(--gold); font-size: 17px; font-weight: 800; line-height: 1;
  transition: filter .12s, opacity .12s; }
.cas__betb:hover:not(:disabled) { filter: brightness(1.25); }
.cas__betb:disabled { opacity: .3; cursor: not-allowed; }
.cas__betv { min-width: 54px; text-align: center; font-size: 17px; font-weight: 800;
  color: var(--gold); font-variant-numeric: tabular-nums; }
.cas__betmax { font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); cursor: pointer; padding: 4px 7px; border-radius: 999px;
  border: 1px solid var(--line-1); }
.cas__betmax:hover { color: var(--gold); border-color: rgba(246,196,84,0.45); }

/* ============================================================
   ГИПЕР-ПРЫЖОК — 3D-краш. Модалка в той же золотой теме, что казино.
   ============================================================ */
.crash { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px;
  --gold: #f6c454; --gold-dim: #b9903a; --gold-glow: rgba(246,196,84,0.45); }
.crash.hidden { display: none; }
.crash__backdrop { position: absolute; inset: 0; background: rgba(9,7,6,0.84); backdrop-filter: blur(7px); }
.crash__box { position: relative; width: min(560px, 100%); max-height: 94vh; overflow-y: auto;
  padding: 20px 20px 18px; border-radius: 20px; border: 1px solid rgba(246,196,84,0.3);
  background: radial-gradient(120% 80% at 50% 0%, #2b211f, #1b1413 60%);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: shopSheetIn 0.28s cubic-bezier(0.2,0.9,0.3,1); }
.crash__close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line-1); background: rgba(255,255,255,0.04); color: var(--ink-2);
  cursor: pointer; display: grid; place-items: center; z-index: 4; }
.crash__close:hover { color: var(--ink-0); border-color: var(--gold); }
.crash__head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.crash__ico { font-size: 28px; filter: drop-shadow(0 0 12px var(--gold-glow)); }
.crash__head b { display: block; font-size: 17px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.crash__head span { font-size: 11.5px; color: var(--ink-2); }

/* Сцена */
.crash__stage { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-1); background: #0b0808; }
.crash__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crash__fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.crash__stage.is-quake { animation: casQuake 0.62s cubic-bezier(0.36,0.07,0.19,0.97); }
.crash__stage.is-jump { animation: crashJump 0.7s cubic-bezier(0.2,0.9,0.3,1); }
@keyframes crashJump { 0% { filter: brightness(1); } 30% { filter: brightness(2.6) saturate(0.4); } 100% { filter: brightness(1); } }

.crash__mult { position: absolute; left: 50%; top: 34%; transform: translate(-50%,-50%);
  font-family: 'Acrom'; font-weight: 900; font-size: clamp(38px, 9vw, 66px); line-height: 1;
  color: #f7f2f2; text-shadow: 0 0 30px rgba(120,170,255,0.65); font-variant-numeric: tabular-nums;
  pointer-events: none; }
.crash__mult.is-bust { color: #ff8f8f; text-shadow: 0 0 34px rgba(255,90,90,0.8);
  animation: crashBust 0.5s cubic-bezier(0.2,1.5,0.4,1); }
@keyframes crashBust { 0% { transform: translate(-50%,-50%) scale(1.5); } 100% { transform: translate(-50%,-50%) scale(1); } }
.crash__status { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); text-shadow: 0 2px 10px #000; pointer-events: none; white-space: nowrap; }
.crash__status--fly { color: #8ec2ff; }
.crash__status--win { color: #6dd58c; }
.crash__status--bust { color: #ff8f8f; }

/* Бонус-эмодзи пролетает через сцену */
.crash__bonus { position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: crashBonusFly 2.4s cubic-bezier(0.2,0.8,0.3,1) forwards; }
.crash__bonus-e { font-size: 46px; line-height: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)); }
.crash__bonus-t { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #b6f0c0; text-shadow: 0 0 14px rgba(94,196,123,0.7); }
@keyframes crashBonusFly {
  0% { transform: translate(-50%,-50%) scale(0.2); opacity: 0; }
  20% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
  70% { transform: translate(-50%,-90%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-160%) scale(0.8); opacity: 0; }
}

/* История раундов */
.crash__hist { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 11px; min-height: 22px; }
.crash__histl { font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-right: 3px; }
.crash__h { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1); font-variant-numeric: tabular-nums; }
.crash__h--lo { color: #ff9e9e; background: rgba(255,120,120,0.08); }
.crash__h--mid { color: #8ec2ff; background: rgba(189,78,80,0.12); }
.crash__h--hi { color: var(--gold); background: rgba(246,196,84,0.12); border-color: rgba(246,196,84,0.35); }
.crash__h--won { box-shadow: 0 0 0 1px rgba(109,213,140,0.5) inset; }

/* Ставка и запуск */
.crash__betrow { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 9px 12px;
  border-radius: 12px; border: 1px solid var(--line-1); background: rgba(255,255,255,0.03); }
.crash__betl { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-right: auto; }
.crash__betb { width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 17px; font-weight: 800;
  border: 1px solid rgba(246,196,84,0.4); background: rgba(246,196,84,0.08); color: var(--gold); line-height: 1; }
.crash__betb:hover:not(:disabled) { filter: brightness(1.25); }
.crash__betb:disabled { opacity: .3; cursor: not-allowed; }
.crash__betv { min-width: 54px; text-align: center; font-size: 17px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; }
.crash__foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-1); }
.crash__bal span { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.crash__bal b { font-size: 16px; color: var(--gold); font-variant-numeric: tabular-nums; }
.crash__go { flex: 1; height: 50px; border: none; border-radius: 13px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #2a1c06;
  background: linear-gradient(120deg, #f6c454, #ffe08a 50%, #d99f2c);
  box-shadow: 0 14px 30px -12px rgba(246,196,84,0.65), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: filter .12s, transform .12s; }
.crash__go:hover:not(:disabled) { filter: brightness(1.08); }
.crash__go:active:not(:disabled) { transform: translateY(1px); }
.crash__go:disabled { cursor: not-allowed; background: rgba(255,255,255,0.06); color: var(--ink-3);
  box-shadow: none; border: 1px solid var(--line-1); }
.crash__go--out { color: #062012; background: linear-gradient(120deg, #4fd68a, #b6f0c0 50%, #2fa566);
  box-shadow: 0 14px 30px -12px rgba(94,196,123,0.7), inset 0 1px 0 rgba(255,255,255,0.5); }

.crash__legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.crash__lg { font-size: 10.5px; color: var(--ink-3); }
.crash__lg b { color: var(--ink-1); }

@media (max-width: 560px) {
  .crash__box { padding: 16px 14px 14px; }
  .crash__stage { aspect-ratio: 4 / 3; }
}

/* Выводимая часть кошелька — бесплатные жетоны обменять нельзя */
.xch__cash { margin: 0 0 12px; padding: 9px 12px; font-size: 12.5px; color: var(--ink-1);
  background: rgba(189,78,80,.1); border-left: 3px solid var(--acc); }
.xch__cash b { color: var(--acc-2); font-variant-numeric: tabular-nums; }
.xch__cash small { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-3); line-height: 1.45; }

/* Призрачный полёт после выхода: множитель уже не твой, но видно, что было бы */
.crash__mult.is-ghost { color: rgba(225,212,210, .5); text-shadow: 0 0 18px rgba(120,170,255,.3); }


/* ============================================================
   ЗМЕЙКА — общая арена. Модалка на весь экран: игре нужно место.
   ============================================================ */
.sl { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 0; }
.sl.hidden { display: none; }
/* Атрибут hidden перебивается классом с display (у .sl-scr стоит flex), и тогда
   ВСЕ экраны рисуются друг поверх друга. Та же грабля, что с .gm-main выше. */
.sl [hidden] { display: none !important; }
.sl__backdrop { position: absolute; inset: 0; background: rgba(9,7,6,.9); backdrop-filter: blur(6px); }
.sl__box { position: relative; width: 100%; height: 100%; max-width: 1400px; max-height: 100vh;
  overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #251c1b, #0b0909 65%);
  border: 1px solid var(--line-2); display: flex; flex-direction: column; }
.sl-close { position: absolute; top: 12px; right: 12px; z-index: 20; width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid var(--line-2); background: rgba(0,0,0,.5); color: var(--ink-2);
  cursor: pointer; display: grid; place-items: center; }
.sl-close:hover { color: var(--ink-0); border-color: var(--acc); }

.sl-scr { position: absolute; inset: 0; overflow-y: auto; padding: 26px 24px 30px;
  display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.sl-scr--game, .sl-scr--death { padding: 0; }

.sl-head { display: flex; align-items: center; gap: 12px; }
.sl-ico { font-size: 30px; filter: drop-shadow(0 0 12px rgba(109,213,140,.5)); }
.sl-head b { display: block; font-family: 'Acrom'; font-size: 19px; color: #8ef0b0;
  letter-spacing: .06em; text-transform: uppercase; }
.sl-head span { font-size: 11.5px; color: var(--ink-2); }

.sl-peers { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-1); }
.sl-peers.is-live { color: #6dd58c; border-color: rgba(109,213,140,.45); background: rgba(109,213,140,.08); }

.sl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
.sl-stats > div { padding: 11px 13px; background: rgba(27,20,19,.7); border: 1px solid var(--line-1); }
.sl-stats span { display: block; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.sl-stats b { font-family: 'Acrom'; font-size: 19px; color: var(--ink-0); font-variant-numeric: tabular-nums; }

.sl-lab { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.sl-wagers { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-wg { font-family: 'Acrom'; font-weight: 700; font-size: 13px; color: var(--ink-2); padding: 9px 15px;
  background: var(--bg-2); border: 1px solid var(--line-1); cursor: pointer; border-radius: 9px; }
.sl-wg.is-on { color: #1b1413; background: linear-gradient(120deg,#4fd68a,#b6f0c0); border-color: #4fd68a; }

.sl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sl-play { flex: 1; min-width: 180px; height: 52px; border: none; border-radius: 13px; cursor: pointer;
  font-family: 'Acrom'; font-size: 16px; font-weight: 800; color: #062012;
  background: linear-gradient(120deg,#4fd68a,#b6f0c0 50%,#2fa566);
  box-shadow: 0 14px 30px -12px rgba(94,196,123,.7); }
.sl-play:hover { filter: brightness(1.08); }
.sl-btn { height: 52px; padding: 0 20px; border-radius: 13px; cursor: pointer; font-family: 'Acrom';
  font-size: 14px; font-weight: 700; color: var(--ink-1); background: var(--bg-2); border: 1px solid var(--line-2); }
.sl-btn:hover { color: var(--ink-0); border-color: var(--acc); }

.sl-help { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.sl-help b { color: var(--ink-0); }
.sl-bonuses { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 7px; }
.sl-bn { font-size: 11.5px; color: var(--ink-3); }
.sl-bn b { color: var(--ink-1); }
.sl-top { border: 1px solid var(--line-1); background: rgba(27,20,19,.6); }
.sl-top__h { padding: 10px 13px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--line-1); }
.sl-top__r { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 8px 13px;
  font-size: 13px; color: var(--ink-1); border-bottom: 1px solid rgba(65,51,49,.5); }
.sl-top__r i { font-style: normal; color: #6dd58c; font-variant-numeric: tabular-nums; }
.sl-muted { padding: 14px; color: var(--ink-3); font-size: 13px; }

/* Игровой экран */
.sl-scr--game { display: block; }
#slCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.sl-hud { position: absolute; top: 14px; left: 16px; display: flex; gap: 16px; pointer-events: none; }
.sl-hud__l span { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(229,218,216,.6); }
.sl-hud__l b { font-family: 'Acrom'; font-size: 22px; color: #fff; text-shadow: 0 2px 10px #000;
  font-variant-numeric: tabular-nums; }
.sl-buffs { position: absolute; top: 74px; left: 16px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.sl-buff { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: rgba(10,25,18,.8); border: 1px solid rgba(109,213,140,.5); color: #b6f0c0; }
.sl-lb { position: absolute; top: 14px; right: 16px; width: 190px; pointer-events: none;
  background: rgba(15,11,10,.62); border: 1px solid var(--line-1); border-radius: 10px; overflow: hidden; }
.sl-lb__row { display: grid; grid-template-columns: 22px 1fr auto; gap: 7px; padding: 5px 9px;
  font-size: 12px; color: rgba(242,234,233,.85); }
.sl-lb__row.is-me { background: rgba(109,213,140,.16); color: #d8ffe6; }
.sl-lb__row i { font-style: normal; font-variant-numeric: tabular-nums; opacity: .8; }

/* Управление с телефона */
.sl-stick, .sl-boost { position: absolute; bottom: 26px; display: none; touch-action: none; }
.sl-stick { left: 26px; width: 118px; height: 118px; border-radius: 50%;
  background: rgba(29,22,21,.45); border: 1px solid rgba(120,160,230,.35); }
.sl-stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: rgba(120,180,255,.5); border: 1px solid rgba(232,216,213,.7); }
.sl-stick.is-on { background: rgba(52,40,38,.6); }
.sl-boost { right: 26px; width: 84px; height: 84px; border-radius: 50%; font-size: 30px;
  background: rgba(30,60,40,.55); border: 1px solid rgba(109,213,140,.5); color: #b6f0c0; cursor: pointer; }
@media (pointer: coarse) { .sl-stick, .sl-boost { display: block; } .sl-lb { width: 150px; } }

/* Экран смерти */
.sl-scr--death { display: grid; place-items: center; background: rgba(10,7,7,.82); }
.sl-death { width: min(460px, 92vw); padding: 26px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #2a1220, #1b1413 65%);
  border: 1px solid rgba(235,64,52,.4); border-radius: 18px;
  box-shadow: 0 40px 90px -30px #000; animation: shopSheetIn .3s cubic-bezier(.2,.9,.3,1); }
.sl-death__t { font-family: 'Acrom'; font-size: 30px; font-weight: 900; color: #ff8f8f;
  text-shadow: 0 0 26px rgba(255,90,90,.6); }
.sl-death__by { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.sl-death__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.sl-death__grid > div { padding: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--line-1); }
.sl-death__grid span { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sl-death__grid b { font-family: 'Acrom'; font-size: 20px; color: var(--ink-0); font-variant-numeric: tabular-nums; }
.sl-death__grid b.is-win { color: #6dd58c; }
.sl-death__best { font-size: 13px; font-weight: 700; color: #f6c454; margin-bottom: 10px; }
.sl-death__cap { font-size: 11px; color: var(--ink-3); margin-bottom: 10px; }
.sl-death__act { display: flex; gap: 10px; }

/* Скины */
.sl-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; }
.sl-skin { padding: 12px; background: rgba(27,20,19,.7); border: 1px solid var(--line-1);
  border-radius: 10px; cursor: pointer; text-align: center; transition: border-color .12s, transform .12s; }
.sl-skin:hover { border-color: var(--acc); transform: translateY(-2px); }
.sl-skin.is-on { border-color: #4fd68a; box-shadow: 0 0 0 1px rgba(79,214,138,.4) inset; }
.sl-skin__sw { display: block; height: 34px; border-radius: 8px; margin-bottom: 8px; }
.sl-skin b { display: block; font-size: 13px; color: var(--ink-0); }
.sl-skin__m { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sl-skin__p { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--acc-2); }

/* Правило выплаты и заработок в бою */
.sl-rule { margin-top: 9px; font-size: 12px; line-height: 1.5; color: var(--ink-2);
  padding: 9px 12px; background: rgba(79,214,138,.08); border-left: 3px solid #4fd68a; }
.sl-rule b { color: #b6f0c0; }
.sl-hud__l--cash b.is-plus { color: #6dd58c; }
.sl-hud__l--cash b.is-minus { color: #ff9e9e; }
.sl-death__calc { margin: -6px 0 14px; font-size: 12.5px; color: var(--ink-2); }
.sl-death__calc b.is-win { color: #6dd58c; }
.sl-death__calc b.is-loss { color: #ff9e9e; }

/* Превью скина — настоящая змейка на канвасе вместо градиента */
.sl-shop-bal { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); }
.sl-shop-bal b { color: #f6c454; font-variant-numeric: tabular-nums; }
.sl-skin__cv { display: block; width: 100%; height: auto; border-radius: 8px;
  background: linear-gradient(160deg, #181313, #0f0c0b); margin-bottom: 8px; }
.sl-skin.is-has .sl-skin__p { color: #6dd58c; }
.sl-skins { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gm-top__hint { margin: 2px 0 10px; font-size: 11px; color: var(--ink-3); }

/* ============================================================
   ГИПЕР-ПРЫЖОК на компе: раскрываем почти во весь экран, 3D-сцена
   забирает весь остаток высоты. В окне 560px корабли было не разглядеть.
   На телефоне всё остаётся как было.
   ============================================================ */
@media (min-width: 900px) {
  .crash { padding: 0; }
  .crash__box {
    width: min(1500px, 97vw); max-width: 97vw;
    height: 95vh; max-height: 95vh; overflow: hidden;
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px 20px 16px; border-radius: 18px;
  }
  .crash__head { margin-bottom: 0; flex: 0 0 auto; }
  /* Сцена тянется на весь остаток, а не по соотношению сторон. */
  .crash__stage { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
  .crash__hist, .crash__betrow, .crash__foot, .crash__legend { flex: 0 0 auto; margin-top: 0; }
  /* Легенда бонусов в одну строку, чтобы не отъедать высоту у сцены. */
  .crash__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; }
}
