:root {
  --bg: #091219;
  --s1: #101c25;
  --s2: #16252f;
  --s3: #20333f;
  --s4: #3d5669;
  --text: #ffffff;
  --muted: #b1bad3;
  --green: #00e701;
  --red: #ed4163;
  --yellow: #ffc800;
  --orange: #ff9d00;
  --purple: #962eff;
  --blue: #1475e1;
  --r: 8px;
  color-scheme: dark;
}

/* touch-action: manipulation отключает зум по двойному касанию — без него быстрые нажатия двигают экран */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body { margin: 0; background: var(--bg); }
/* страница не короче экрана: на iPhone при переходе с длинной страницы на короткую (скелет загрузки) нижняя панель иначе съезжала вверх */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
body {
  color: var(--text);
  font: 500 14px/1.4 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
}
input, code, .modal-body { user-select: text; -webkit-user-select: text; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
code { font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

.muted { color: var(--muted); }
.good { color: var(--green); }
.bad { color: var(--red); }
.small { font-size: 12px; }
.boot { padding: 30vh 24px; text-align: center; color: var(--muted); }

/* ---------- Шапка ---------- */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand i { width: 26px; height: 26px; border-radius: 7px; background: var(--green); color: #04090d; display: grid; place-items: center; font-style: normal; font-size: 16px; }
.balance { display: flex; border-radius: var(--r); overflow: hidden; }
/* ---------- Нижняя панель приложения ---------- */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; transform: translateZ(0); /* свой слой: Safari не двигает панель при смене высоты страницы */ display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--s1); border-top: 1px solid var(--s2); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: 11px; -webkit-tap-highlight-color: transparent; transition: color .15s, background .15s, transform .1s; }
.tab span { display: grid; place-items: center; }
.tab svg { width: 24px; height: 24px; display: block; }
.tab b { font-weight: 600; letter-spacing: .01em; }
.tab:active { transform: scale(.94); }
.tab.on { color: var(--green); }
.tab.dot span::after { content: attr(data-count); position: absolute; top: 0; left: calc(50% + 4px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--s1); }
.has-tabbar .view { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
/* Шапки в приложении нет: строка заголовка экрана крупнее и несёт баланс справа */
.crumbs .balance { margin-left: auto; flex: none; }
.has-tabbar .crumbs { min-height: 40px; margin-bottom: 14px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.has-tabbar .crumbs-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-tabbar .crumbs-title.long { font-size: 19px; } /* длинное название игры должно уместиться рядом с балансом */
.has-tabbar .crumbs-title.longer { font-size: 17px; } /* Gates of Olympus */
.has-tabbar .crumbs .balance { font-size: 15px; letter-spacing: 0; }
.has-tabbar .toasts { top: calc(8px + env(safe-area-inset-top)); }
/* на телефоне меню не ездит поверх клавиатуры: пока игрок печатает (сумма, чат, почта), меню спрятано */
@media (pointer: coarse) { html:has(:is(input:not([type=checkbox], [type=radio], [type=range], [type=button]), textarea):focus) .tabbar { display: none; } }
.avatar { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--s3); color: var(--text); font-weight: 700; text-decoration: none; }
.avatar i { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--green); color: #04090d; font-size: 10px; line-height: 18px; font-weight: 700; font-style: normal; text-align: center; }
.balance-value { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 38px; background: var(--bg); font-weight: 600; }
.balance-add { width: 40px; height: 38px; background: var(--blue); display: grid; place-items: center; }
.balance-add:active { filter: brightness(1.15); }
.coin { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--green); color: #04090d; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; }

.view { max-width: 1120px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }

/* ---------- Лобби ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; background: var(--s1); border-radius: var(--r); color: var(--muted); font-size: 13px; }
.notice b { color: var(--text); }
.lobby { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-bottom: 28px; }
.game-card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 14px; background: var(--c); background: radial-gradient(120% 70% at 50% 28%, rgb(255 255 255 / 18%), transparent 62%), linear-gradient(170deg, var(--c), color-mix(in srgb, var(--c) 68%, #000)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%); transition: transform .12s ease-out; text-decoration: none; color: #fff; }
.game-card:hover { transform: translateY(-4px); }
.game-card:active { transform: scale(.97); }
.game-card svg { position: absolute; inset: 5% 7% 24%; width: 86%; height: 71%; }
.game-card b { position: relative; font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.game-card b.long { font-size: 14px; letter-spacing: 0; white-space: nowrap; } /* длинное название — в одну строку */
.game-card span { position: relative; font-size: 9px; letter-spacing: .14em; opacity: .7; text-transform: uppercase; }

/* ---------- Главная страница сайта ---------- */

/* ---------- Блоки: бонус, задания, профиль, рейтинги ---------- */
.box { display: flex; flex-direction: column; gap: 10px; padding: 12px; margin-bottom: 12px; background: var(--s1); border-radius: var(--r); }
.box-title { font-weight: 600; font-size: 15px; }
.bar { height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--green); transition: width .3s; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link-btn { display: grid; place-items: center; text-decoration: none; color: var(--text); }
.daily-bonus { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daily-bonus .btn-bet { height: 44px; padding: 0 16px; flex: none; }
.quest { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg); border-radius: var(--r); }
.quest.claimed { opacity: .5; }
.quest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; }
.quest .btn { flex: none; min-width: 84px; height: 36px; }
.quest .btn.dk-all { background: var(--green); color: #05080a; }
.btn.dk-all { background: var(--green); color: #05080a; }
.ticker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; overflow: hidden; }
.ticker-title { flex: none; font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ticker-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ticker-item { flex: none; display: flex; gap: 6px; padding: 6px 10px; background: var(--s1); border-radius: 999px; font-size: 12px; font-weight: 600; }
.page-tabs { margin-bottom: 12px; background: var(--s1); }
.page-tabs .chip { font-size: 13px; }
.page-body { display: flex; flex-direction: column; gap: 12px; }
.page-body > .box { margin-bottom: 0; }
.pf-head { flex-direction: row; align-items: center; gap: 12px; }
.pf-avatar { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--s3); font-size: 24px; font-weight: 700; }
.pf-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-who b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-foot { text-align: center; user-select: text; -webkit-user-select: text; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; background: var(--s1); border-radius: var(--r); min-width: 0; }
.box .kpi { background: var(--bg); }
.kpi span { color: var(--muted); font-size: 12px; }
.kpi b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box .spark { grid-column: auto; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1.2fr .7fr 1fr 1fr; gap: 8px; padding: 9px 10px; width: 100%; border-radius: 6px; text-align: right; font-weight: 600; font-size: 13px; }
.row > :first-child { text-align: left; }
.row.head { color: var(--muted); font-size: 12px; }
.rows > .row:nth-child(even) { background: var(--s2); }
.box .rows > .row:nth-child(even) { background: var(--bg); }
button.row:hover { background: var(--s3); }
.row.rank { grid-template-columns: 28px 1fr auto; }
.row.rank .place { color: var(--muted); text-align: left; }
.row.rank > :nth-child(2) { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.rank.me { box-shadow: inset 0 0 0 2px var(--green); }
.rows .empty { padding: 16px; text-align: center; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.award { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--s1); border-radius: var(--r); }
.award i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #04090d; font-style: normal; font-weight: 700; font-size: 17px; }
.award.locked { opacity: .45; }
.award.locked i { background: var(--s3); color: var(--muted); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.set-row div { display: flex; flex-direction: column; gap: 2px; }
.set-row input[type='checkbox'] { width: 22px; height: 22px; flex: none; accent-color: var(--green); }
.vol { flex: 1; max-width: 190px; accent-color: var(--green); touch-action: pan-y; }
.friends { display: flex; flex-wrap: wrap; gap: 6px; }
.friend { padding: 5px 10px 5px 22px; position: relative; background: var(--bg); border-radius: 999px; font-size: 12px; font-weight: 600; }
.friend::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--s4); }
.friend.on::before { background: var(--green); }

/* ---------- Каркас игры ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; font-size: 16px; }
.crumbs a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); background: var(--s2); color: var(--text); }
.game-main { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--bg); }
.panel { background: var(--s2); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.panel-fields, .params, .panel-extra { display: flex; flex-direction: column; gap: 12px; }
.panel-extra:empty { display: none; }
.panel-fields:disabled { opacity: .55; }
.stage { position: relative; min-height: 520px; background: var(--bg); border: 0 solid var(--s2); display: flex; flex-direction: column; padding: 12px 16px 16px; border-right: 1px solid var(--s2); border-top: 1px solid var(--s2); }
.stage-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-width: 0; }
.center { flex: 1; display: grid; place-items: center; width: 100%; }

.pills { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 6px; height: 28px; overflow: hidden; margin-bottom: 8px; flex: none; }
/* на телефоне пустая полоса истории не занимает места: появляется плавно с первым результатом */
@media (max-width: 820px) { .pills { transition: height .2s, margin .2s; } .pills:empty { height: 0; margin-bottom: 0; } }
.pill { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--s3); font-weight: 600; font-size: 12px; animation: pill .18s ease-out; }
.pill.good { background: var(--green); color: #04090d; }
@keyframes pill { from { transform: translateX(12px); opacity: 0; } }

.game-footer { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 10px; background: var(--s1); border-top: 2px solid var(--s2); border-radius: 0 0 var(--r) var(--r); }
/* громкость прямо в игре: окошко над значком динамика */
.vol { position: relative; }
.vol-pop { position: absolute; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(100% + 8px); display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--s3); box-shadow: 0 8px 24px rgb(0 0 0 / 45%); white-space: nowrap; }
.vol-pop[hidden] { display: none; }
.vol-pop .icon-btn { color: var(--text); }
.vol-range { width: 140px; height: 28px; margin: 0; background: none; accent-color: var(--green); cursor: pointer; }
.vol-value { min-width: 38px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.footer-brand { margin: 0 auto; font-weight: 700; letter-spacing: .12em; color: var(--s4); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r); color: var(--muted); }
.icon-btn:hover { color: var(--text); }
.icon-btn.on { color: var(--green); }
.fair-btn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r); background: var(--s2); color: var(--text); font-weight: 600; }
.fair-btn span { display: grid; color: var(--green); }
.fair-btn:hover { background: var(--s3); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; padding: 12px; background: var(--s1); border-radius: var(--r); }
.stat { background: var(--bg); border-radius: var(--r); padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.stat span { color: var(--muted); font-size: 12px; }
.stat b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.spark { grid-column: 1 / -1; height: 64px; background: var(--bg); border-radius: var(--r); padding: 4px; }
.spark svg { width: 100%; height: 100%; display: block; }

/* ---------- Поля и кнопки ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.field-label > span:first-child { white-space: nowrap; } /* название поля не сжимается — длинная подсказка уходит на свою строку */
.triple .field-label > span:first-child { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.field-hint { margin-left: auto; text-align: right; font-weight: 500; opacity: .8; }
.input-wrap { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.input-wrap .coin { position: absolute; left: 10px; pointer-events: none; }
.input-wrap .coin + .input { padding-left: 36px; }
.input-wrap .suffix { position: absolute; right: 10px; color: var(--muted); font-weight: 600; pointer-events: none; }
.input { width: 100%; height: 40px; padding: 0 10px; background: var(--bg); border: 2px solid var(--s3); border-radius: var(--r); font-weight: 600; outline: none; transition: border-color .12s; min-width: 0; }
.input:hover { border-color: var(--s4); }
.input:focus { border-color: var(--s4); }
.input.readonly { display: flex; align-items: center; background: var(--s3); border-color: var(--s3); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b1bad3' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input-group { display: flex; border-radius: var(--r); background: var(--s3); }
.input-group > .input-wrap .input, .input-group > .input { border-radius: var(--r) 0 0 var(--r); }
.seg { flex: none; min-width: 44px; padding: 0 10px; font-weight: 600; background: var(--s3); border-left: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg:last-child { border-radius: 0 var(--r) var(--r) 0; }
.seg:hover { background: var(--s4); }
.seg.check input { accent-color: var(--green); }

.chips { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 999px; }
.chip { flex: 1; height: 34px; border-radius: 999px; font-weight: 600; color: var(--text); transition: background .12s; }
.chip:hover { background: var(--s2); }
.chip.on { background: var(--s3); }
.tabs.locked { pointer-events: none; opacity: .55; }

.btn { height: 40px; padding: 0 14px; border-radius: var(--r); background: var(--s3); font-weight: 600; transition: background .12s, transform .08s; }
.btn:hover:not(:disabled) { background: var(--s4); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .5; }
.btn.wide { width: 100%; }
.input-group > .btn { border-radius: 0 var(--r) var(--r) 0; flex: none; }
.input-group > .btn.wide { flex: 1; border-radius: var(--r); }
.input-group > .btn.wide + .btn.wide { margin-left: 8px; }
.input-group:has(> .btn.wide) { background: none; }

.auto-stat { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.auto-stat[hidden] { display: none; }
.btn-bet { height: 52px; border-radius: var(--r); background: var(--green); color: #05080a; font-weight: 700; font-size: 15px; transition: background .12s, transform .08s; }
.btn-bet:hover:not(:disabled) { background: #1fff20; }
.btn-bet:active:not(:disabled) { transform: scale(.96); }
.btn-bet { position: relative; overflow: hidden; }
.btn-bet::after { content: ''; position: absolute; left: var(--tap-x, 50%); top: var(--tap-y, 50%); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: rgb(255 255 255 / 60%); transform: scale(0); opacity: 0; pointer-events: none; }
.btn-bet.tap { animation: btn-press .34s cubic-bezier(.3, 1.7, .5, 1); }
.btn-bet.tap::after { animation: btn-wave .6s ease-out; }
@keyframes btn-press { 0% { transform: scale(1); } 30% { transform: scale(.93); } 100% { transform: scale(1); } }
@keyframes btn-wave { from { transform: scale(0); opacity: .65; } to { transform: scale(26); opacity: 0; } }
.btn-bet:disabled { opacity: .5; }
.btn-bet[data-kind='stop'] { background: var(--red); color: #fff; }
.btn-bet.busy { filter: brightness(.82); }

.triple { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; background: var(--s2); border-radius: var(--r); flex: none; }
.triple.two { grid-template-columns: repeat(2, 1fr); }

.big-mult { font-size: clamp(56px, 17vw, 112px); font-weight: 700; letter-spacing: -.03em; line-height: 1; transition: color .1s; }
.pop { animation: pop .22s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.88); } }

/* ---------- Dice ---------- */
.dice { flex: 1; width: 100%; display: grid; place-items: center; }
.dice-board { width: 100%; max-width: 680px; padding: 56px 8px 24px; }
.dice-scale { display: flex; justify-content: space-between; margin: 0 22px 10px; color: var(--muted); font-weight: 600; font-size: 13px; }
.dice-scale span { width: 0; display: flex; justify-content: center; }
.dice-bar { position: relative; height: 44px; padding: 0 8px; background: var(--s3); border-radius: 999px; display: flex; align-items: center; }
.dice-track { position: absolute; left: 22px; right: 22px; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--red) 0 var(--t), var(--green) var(--t) 100%); }
.dice-bar.under .dice-track { background: linear-gradient(to right, var(--green) 0 var(--t), var(--red) var(--t) 100%); }
.dice-range { position: relative; width: 100%; margin: 0; height: 44px; appearance: none; -webkit-appearance: none; background: none; outline: none; touch-action: pan-y; }
.dice-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 6px; background: var(--blue); border: 0; box-shadow: 0 2px 6px rgb(0 0 0 / 35%); cursor: grab; }
.dice-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 6px; background: var(--blue); border: 0; cursor: grab; }
.dice-marker { position: absolute; bottom: calc(100% + 6px); left: calc(22px + (100% - 44px) * var(--p, 50) / 100); transform: translateX(-50%); transition: left .28s cubic-bezier(.2, .9, .3, 1); pointer-events: none; }
.dice-marker span { display: block; padding: 8px 10px; background: #fff; border-radius: 6px; font-weight: 700; font-size: 15px; color: var(--red); box-shadow: 0 3px 8px rgb(0 0 0 / 30%); }
.dice-marker.good span { color: #00a001; }
.dice-marker::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff; }
.dice-swap { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.dice-swap span:last-child { display: grid; color: var(--muted); }

/* ---------- Mines ---------- */
.mines-grid { width: min(100%, 460px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tile { aspect-ratio: 1; border-radius: var(--r); background: var(--s3); box-shadow: inset 0 -4px 0 #16252f; display: grid; place-items: center; transition: transform .1s, background .12s; }
.tile:not(:disabled):hover { background: var(--s4); transform: translateY(-2px); }
.tile:not(:disabled):active { transform: scale(.95); }
.tile.wait { animation: pulse .5s infinite alternate; }
.tile.picked { background: var(--purple); box-shadow: inset 0 -4px 0 #7100c7; }
.tile.picked:not(:disabled):hover { background: #a64bff; }
@keyframes pulse { to { transform: scale(.92); } }
.tile.gem, .tile.mine, .tile.dim { background: #04090d; box-shadow: none; }
.tile svg { width: 62%; height: 62%; animation: pop .2s cubic-bezier(.3, 1.6, .5, 1); }
.tile.dim svg { opacity: .3; animation: none; width: 44%; height: 44%; }
.tile.boom { background: #4a1525; }

/* ---------- Keno ---------- */
.keno-grid { width: min(100%, 620px); display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.keno-tile { aspect-ratio: 1; border-radius: var(--r); background: var(--s3); box-shadow: inset 0 -4px 0 #16252f; font-weight: 700; font-size: clamp(12px, 3.4vw, 17px); display: grid; place-items: center; transition: transform .08s, background .1s; }
.keno-tile:hover { background: var(--s4); }
.keno-tile:active { transform: scale(.94); }
.keno-tile.picked { background: var(--purple); box-shadow: inset 0 -4px 0 #7100c7; }
.keno-tile.miss { background: #04090d; box-shadow: none; color: var(--red); }
.keno-tile.picked.hit { background: #04090d; box-shadow: inset 0 0 0 3px var(--green); }
.keno-tile svg { width: 58%; height: 58%; animation: pop .2s cubic-bezier(.3, 1.6, .5, 1); }
.keno-pay { width: min(100%, 620px); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; min-height: 44px; }
.keno-cell { background: var(--s2); border-radius: 6px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; font-size: clamp(9px, 2.4vw, 12px); min-width: 0; }
.keno-cell span { color: var(--muted); font-size: .9em; }
.keno-cell.on { background: var(--green); color: #04090d; }
.keno-cell.on span { color: #04090d; }
.keno-hint { min-height: 44px; display: grid; place-items: center; }
.keno-hint:not([hidden]) + .keno-pay { display: none; }

/* ---------- Plinko ---------- */
.plinko { width: min(100%, 600px); }
.plinko-canvas { display: block; width: 100%; }
.plinko-buckets { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.bucket { height: 28px; letter-spacing: -.04em; border-radius: 4px; display: grid; place-items: center; color: #04090d; font-weight: 700; overflow: hidden; box-shadow: inset 0 -3px 0 rgb(0 0 0 / 22%); }
.bucket.hit { animation: bucket .28s ease-out; }
@keyframes bucket { 40% { transform: translateY(7px); filter: brightness(1.3); } }

/* ---------- Wheel ---------- */
.wheel { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin-top: 8px; }
.wheel-canvas { width: 100%; height: 100%; display: block; }
.wheel-pointer { position: absolute; z-index: 1; left: 50%; top: -6px; margin-left: -12px; border: 12px solid transparent; border-top: 22px solid var(--red); border-bottom: 0; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 40%)); }
.wheel-center { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(32px, 10vw, 52px); font-weight: 700; pointer-events: none; }
.wheel-legend { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; flex: none; }
.wheel-cell { background: var(--s2); border-radius: 6px; border-bottom: 5px solid var(--c); padding: 8px 4px 5px; display: flex; flex-direction: column; align-items: center; font-size: 12px; transition: background .12s; min-width: 0; }
.wheel-cell span { color: var(--muted); font-size: 11px; }
.wheel-cell.on { background: var(--s4); }

/* ---------- Игральные карты ---------- */
/* Размер задаёт класс: big (HiLo), mid (Blackjack), dk (Дурак), small и tiny — только индекс. */
.card {
  --ink: #15222d; --pad: 6px; --idx: 18px; --pip: 28px;
  position: relative; flex: none; overflow: hidden; width: 66px; height: 94px; border-radius: 8px;
  background: linear-gradient(165deg, #fff 0%, #eef1f6 100%); color: var(--ink); font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 85%), 0 0 0 1px rgb(10 25 36 / 18%), 0 3px 0 rgb(0 0 0 / 24%);
}
.card.red { --ink: #e0263b; }
.card svg { display: block; fill: currentColor; }
.card i { display: block; font-style: normal; }
.card-idx { position: absolute; top: var(--pad); left: var(--pad); display: flex; flex-direction: column; align-items: center; gap: calc(var(--idx) * .14); min-width: calc(var(--idx) * .72); font-size: var(--idx); letter-spacing: -.06em; }
.card-idx svg { width: calc(var(--idx) * .74); height: calc(var(--idx) * .74); }
.card-idx.rev { display: none; top: auto; left: auto; right: var(--pad); bottom: var(--pad); transform: rotate(180deg); }
/* На небольшой карте рисунок — одна масть или контурная буква фигуры в нижнем углу. */
.card-art { position: absolute; right: var(--pad); bottom: var(--pad); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.card-art svg { width: var(--pip); height: var(--pip); }
.card-art.ace svg { width: calc(var(--pip) * 1.15); height: calc(var(--pip) * 1.15); }
.card-art.court i { display: none; }
.card-court { font-size: calc(var(--pip) * 1.25); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.card-pips { display: none; position: absolute; inset: 18% 35%; }
.card-pips i { position: absolute; width: var(--dot); height: var(--dot); transform: translate(-50%, -50%); }
.card-pips i.down { transform: translate(-50%, -50%) rotate(180deg); }
.card-pips svg { width: 100%; height: 100%; }

.card.big { --pad: 10px; --idx: 22px; --pip: 60px; --dot: 23px; width: 132px; height: 186px; border-radius: 12px; animation: deal .2s ease-out; }
.card.big .card-idx.rev { display: flex; }
.card.big .card-art { inset: 0; }
.card.big .card-art.num { display: none; } /* вместо одной масти — полная раскладка */
.card.big .card-pips { display: block; }
.card.big .card-art.court { gap: 6px; }
.card.big .card-art.court::before { content: ''; position: absolute; inset: 13% 27%; border: 1.5px solid var(--ink); border-radius: 8px; opacity: .22; }
.card.big .card-art.court i { display: block; }
.card.big .card-art.court svg { width: 26px; height: 26px; }
.card.big .card-court { font-size: 72px; -webkit-text-stroke-width: 2.5px; }
.card.mid { --pad: 6px; --idx: 18px; --pip: 28px; }
.card.dk { --pad: 5px; --idx: 15px; --pip: 22px; width: 52px; height: 74px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 85%), 0 0 0 1px rgb(10 25 36 / 18%), 0 2px 0 rgb(0 0 0 / 24%); }
.card.small, .card.tiny { display: grid; place-items: center; box-shadow: 0 0 0 1px rgb(10 25 36 / 18%), 0 2px 0 rgb(0 0 0 / 24%); }
.card.small { --idx: 15px; width: 40px; height: 56px; border-radius: 6px; }
.card.tiny { --idx: 11px; width: 30px; height: 42px; border-radius: 4px; }
.card.small .card-idx, .card.tiny .card-idx { position: static; }
.card.small .card-art, .card.small .card-pips, .card.tiny .card-art, .card.tiny .card-pips { display: none; }

/* Рубашка: белая кайма, ромбический узор и ромб в центре. */
.card.back { background: var(--blue); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px rgb(10 25 36 / 18%), 0 3px 0 rgb(0 0 0 / 24%); }
.card.back::before { content: ''; position: absolute; inset: 9%; border-radius: 3px; border: 1px solid rgb(255 255 255 / 55%); background: repeating-linear-gradient(45deg, rgb(255 255 255 / 17%) 0 1.5px, transparent 1.5px 6px), repeating-linear-gradient(-45deg, rgb(255 255 255 / 17%) 0 1.5px, transparent 1.5px 6px); }
.card.back::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); background: var(--blue); border: 1.5px solid rgb(255 255 255 / 80%); border-radius: 2px; }
.card.back.tiny::after { display: none; }

/* ---------- HiLo ---------- */
.hilo { flex: 1; display: grid; place-items: center; }
.card.good { box-shadow: 0 0 0 4px var(--green); }
.card.bad { box-shadow: 0 0 0 4px var(--red); }
@keyframes deal { from { transform: translateY(-14px) rotate(-3deg); opacity: .3; } }
.hilo-trail { display: flex; gap: 6px; padding: 10px; width: 100%; min-height: 76px; background: var(--s2); border-radius: var(--r); overflow: hidden; flex: none; }
.hilo-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hilo-btn { height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 6px; font-size: 13px; }
.hilo-btn span { color: var(--muted); font-size: 11px; font-weight: 600; }

/* ---------- Blackjack ---------- */
.card.new { animation: deal .22s ease-out backwards; }
.bj { position: relative; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 20px; }
.bj-hands { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.bj-hand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 2px solid transparent; transition: border-color .3s ease, background-color .3s ease, opacity .3s ease; }
.bj-hand.turn { border-color: var(--s4); background: var(--s1); }
.bj-hand.idle { opacity: .55; }
.bj-cards { display: flex; min-height: 94px; perspective: 700px; }
.bj-slot { display: flex; justify-content: center; }
/* колода в углу стола: из неё вылетают карты */
.bj-shoe { position: absolute; right: 4px; top: 0; width: 46px; height: 62px; pointer-events: none; }
.bj-shoe .card { position: absolute; left: 0; top: 0; }
.bj-shoe .card:nth-child(2) { left: 3px; top: 3px; }
.bj-shoe .card:nth-child(3) { left: 6px; top: 6px; }
.bj-hand .card { transition: box-shadow .35s ease, opacity .25s ease, transform .25s ease; will-change: transform; }
/* переворот закрытой карты: до середины оборота лицо прикрыто рубашкой */
.card.turned::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--blue); box-shadow: inset 0 0 0 3px #fff; animation: bj-cover var(--flip, .52s) steps(1, end) var(--flip-delay, 0ms) both; }
@keyframes bj-cover { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* перед новой раздачей прежние карты уезжают со стола */
.bj.clearing .bj-hand .card { transform: translate(-46px, -10px) rotate(-10deg); opacity: 0; }
.bj.clearing .bj-tag { opacity: 0; }
.bj-tag { transition: opacity .2s ease; }
.bj-cards .card + .card { margin-left: -30px; }
.bj-tag { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--muted); min-height: 26px; }
.bj-val { min-width: 34px; padding: 3px 9px; border-radius: 999px; background: var(--s3); color: var(--text); text-align: center; font-weight: 700; transition: background-color .3s ease, color .3s ease; }
.bj-hand.win .bj-val, .bj-hand.blackjack .bj-val { background: var(--green); color: #04090d; }
.bj-hand.lose .bj-val, .bj-hand.bust .bj-val { background: var(--red); }
.bj-hand.push .bj-val { background: var(--orange); color: #04090d; }
.bj-hand.win .card, .bj-hand.blackjack .card { box-shadow: 0 0 0 3px var(--green); }
.bj-hand.lose .card, .bj-hand.bust .card { box-shadow: 0 0 0 3px var(--red); }
.bj-hand.push .card { box-shadow: 0 0 0 3px var(--orange); }
.bj-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bj-actions .btn { height: 46px; }

/* ---------- Roulette ---------- */
.pill.c-red { background: #fe2247; }
.pill.c-green { background: #419e3f; }
.rl-wheel { position: relative; width: min(82%, 400px); aspect-ratio: 1; flex: none; }
.rl-wheel canvas { width: 100%; height: 100%; display: block; }
.rl-center { position: absolute; inset: 27%; border-radius: 50%; display: grid; place-items: center; background: var(--s2); font-size: clamp(30px, 9vw, 46px); font-weight: 700; transition: background .15s; }
.rl-center.red { background: #fe2247; }
.rl-center.black { background: var(--s3); }
.rl-center.green { background: #419e3f; }
.rl-table { width: min(100%, 760px); display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; user-select: none; -webkit-user-select: none; flex: none; }
.rl-cell { position: relative; min-height: 40px; border-radius: 5px; background: var(--s2); font-weight: 700; font-size: clamp(10px, 2.9vw, 15px); display: grid; place-items: center; transition: filter .1s, transform .08s; }
.rl-cell:hover { filter: brightness(1.2); }
.rl-cell:active { transform: scale(.94); }
.rl-cell.red { background: #fe2247; }
.rl-cell.black { background: var(--s3); }
.rl-cell.green { background: #419e3f; }
.rl-cell.hit { box-shadow: inset 0 0 0 3px #fff; }
.rl-chip { position: absolute; right: -3px; top: -6px; z-index: 1; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--yellow); color: #04090d; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 1px 4px rgb(0 0 0 / 50%); pointer-events: none; animation: pop .16s ease-out; }
.rl-chip { box-shadow: 0 0 0 1.5px rgb(255 255 255 / 85%), 0 2px 4px rgb(0 0 0 / 45%); } /* белый ободок: красная фишка не сливается с красной клеткой */
.rl-chip.t0 { background: #e8ecf4; color: #1a2230; }
.rl-chip.t1 { background: #2f80ff; color: #fff; }
.rl-chip.t2 { background: #e63950; color: #fff; }
.rl-chip.t3 { background: #1fae5b; color: #fff; }
.rl-chip.t4 { background: #15171c; color: #fff; }
.rl-chip.t5 { background: #8f4bf0; color: #fff; }
.rl-chip.t6 { background: linear-gradient(135deg, #ffd84a, #e0a100); color: #2a1d00; }
.rl-cell.won .rl-chip { background: var(--green); color: #fff; }
/* узкий экран: колесо крупное, стол лёжа компактно (14 столбцов × 5 рядов, мелкие ячейки), чтобы всё помещалось без прокрутки */
@media (max-width: 560px) {
  .game-roulette .rl-wheel { width: min(96%, 390px); }
  .game-roulette .rl-table { width: 100%; gap: 2px; }
  .game-roulette .rl-cell { min-height: 33px; border-radius: 4px; font-size: 11px; }
  .game-roulette .rl-chip { min-width: 16px; height: 16px; font-size: 9px; right: -2px; top: -5px; }
}

/* ---------- Flip ---------- */
.flip { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; perspective: 900px; }
.flip-coin { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .7, .3, 1); }
.coin-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 0 -8px 0 rgb(0 0 0 / 18%); }
.coin-face.heads { background: var(--orange); }
.coin-face.tails { background: var(--blue); transform: rotateY(180deg); }
.coin-face.heads::after, .mini.heads::after { content: ''; width: 46%; height: 46%; border-radius: 50%; border: .12em solid #fff; font-size: 100px; }
.coin-face.tails::after, .mini.tails::after { content: ''; width: 36%; height: 36%; background: #fff; transform: rotate(45deg); border-radius: 12%; }
.flip-note { min-height: 22px; font-weight: 600; color: var(--muted); text-align: center; }
.flip-note.good { color: var(--green); }
.flip-note.bad { color: var(--red); }
.flip-trail { width: min(100%, 420px); display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; padding: 10px; background: var(--s2); border-radius: var(--r); flex: none; }
.mini { aspect-ratio: 1; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.mini.heads { background: var(--orange); }
.mini.tails { background: var(--blue); }
.mini.heads::after { font-size: 20px; }
.mini.miss { box-shadow: 0 0 0 3px var(--red); }
.mini.last { animation: pop .2s cubic-bezier(.3, 1.6, .5, 1); }
.flip-pattern-box { display: flex; flex-direction: column; gap: 8px; }
.flip-pattern { min-height: 46px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; padding: 8px; background: var(--bg); border-radius: var(--r); align-items: center; }
.flip-pattern .mini { width: 100%; padding: 0; border: 0; cursor: pointer; }
.flip-pattern > span { grid-column: 1 / -1; text-align: center; }
.flip-pattern-btns { display: grid; grid-template-columns: 1fr 1fr 48px; gap: 6px; }
.flip-pattern-btns .btn { height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 6px; font-size: 13px; }
.flip-pattern-btns i { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); flex: none; }
.flip-pattern-btns i.tails { background: var(--blue); border-radius: 3px; transform: rotate(45deg) scale(.8); }
.flip-pattern-btns .btn:disabled { opacity: .4; }
.flip-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flip-choices .btn { height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.flip-choices i { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); flex: none; }
.flip-choices i.tails { background: var(--blue); border-radius: 3px; transform: rotate(45deg) scale(.8); }

/* ---------- Durak ---------- */
.dk-stage { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.dk-row { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dk-name { font-weight: 600; font-size: 13px; text-align: center; }
.dk-fan { display: flex; justify-content: center; max-width: 100%; padding: 22px 2px 2px; min-height: 98px; }
.dk-fan.small { padding: 0 2px; min-height: 42px; }
.dk-pick { flex: none; border-radius: 6px; transition: transform .1s, filter .1s; }
.dk-pick:disabled { cursor: default; }
.dk-pick:not(:disabled) { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.dk-pick.lifted { opacity: .25; }
.dk-ghost { position: fixed; left: 0; top: 0; z-index: 400; margin: 0 !important; pointer-events: none; box-shadow: 0 14px 30px rgb(0 0 0 / 55%), 0 0 0 2px rgb(255 255 255 / 80%) !important; will-change: transform; }
.dk.dragging .dk-table, .dragging .dk-table { outline: 2px dashed rgb(255 255 255 / 35%); outline-offset: 6px; border-radius: 12px; }
.dragging .dk-table.hover { outline-color: var(--green); background: rgb(0 231 1 / 8%); }
.dragging .dk-pair.open .dk-aim, .dragging .dk-pair.open > .card { box-shadow: 0 0 0 2px var(--yellow); }
.dk-pair.open.hover > .card, .dk-pair.open.hover .dk-aim .card { box-shadow: 0 0 0 4px var(--green); transform: scale(1.06); }
.dk-pick.can { transform: translateY(-10px); }
.dk-pick.can:hover { transform: translateY(-16px); }
.dk-pick.no { filter: brightness(.6); }
.dk-pick.sel { transform: translateY(-20px); }
.dk-pick.sel .card { box-shadow: 0 0 0 3px var(--green); }
.dk-aim { display: block; border-radius: 6px; }
.dk-aim .card { box-shadow: 0 0 0 2px var(--s4); }
.dk-aim.on .card { box-shadow: 0 0 0 3px var(--yellow); }
.dk-choice { display: flex; justify-content: center; gap: 6px; }
.dk-status .btn { height: 36px; padding: 0 12px; }
.dk-status .dk-all { background: var(--green); color: #05080a; }
.dk-status .dk-foul { background: var(--red); color: #fff; }
.card.foul { box-shadow: 0 0 0 3px var(--red) !important; }
.dk-rules { text-align: center; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.dk-rules-pick { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.dk-accuse:not(:disabled) { background: var(--red); color: #fff; }
.dk-seat i { font-style: normal; }
.dk-mid { display: flex; align-items: center; gap: 6px; min-height: 204px; }
.dk-deck { width: 86px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dk-deck.side { width: 52px; white-space: nowrap; }
.dk-discard { position: relative; width: 34px; height: 46px; display: grid; place-items: center; }
.dk-discard .card { position: absolute; }
.dk-discard .card.tilt { transform: rotate(-14deg); }
.dk-slot { width: 30px; height: 42px; border-radius: 4px; border: 2px dashed var(--s3); }
.dk-private { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.dk-private input { width: 18px; height: 18px; accent-color: var(--green); }
.dk-invite { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dk-invite .btn-bet { height: 40px; padding: 0 16px; font-size: 14px; }
.dk-invited { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 14px; margin-bottom: 8px; background: var(--s2); border-radius: var(--r); border: 2px solid var(--green); }
.dk-pile { position: relative; width: 86px; height: 74px; }
.dk-pile .card { position: absolute; top: 0; left: 0; }
.dk-pile .card.trump { left: 30px; }
.dk-suit { display: grid; place-items: center; color: #dfe6f0; }
.dk-suit svg { width: 46px; height: 46px; fill: currentColor; }
.dk-suit.red { color: #fe2247; }
.dk-table { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 10px 6px; }
.dk-pair { position: relative; width: 66px; height: 92px; flex: none; }
.dk-pair .card { position: absolute; left: 0; top: 0; }
.dk-pair .card.beat { left: 14px; top: 18px; }
.dk-status { text-align: center; font-weight: 600; color: var(--muted); min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.dk-status.mine { color: var(--text); }
.dk-status.good { color: var(--green); }
.dk-status.bad { color: var(--red); }
.dk-clock { color: var(--muted); }
.dk-clock.bad { color: var(--red); }
.dk-lobby { flex: 1; width: min(100%, 440px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.dk-tables-title { margin-top: 10px; font-weight: 600; }
.dk-tables { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.dk-seat { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; background: var(--s2); border-radius: var(--r); text-align: left; }
.dk-seat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-reacts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dk-reacts .btn { padding: 0; font-size: 18px; }
.dk-bubble { display: inline-block; margin-left: 8px; font-size: 22px; line-height: 1; vertical-align: middle; animation: pop .25s cubic-bezier(.3, 1.6, .5, 1); }
.dk-spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--s3); border-top-color: var(--green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Crash ---------- */
.crash { position: relative; width: 100%; flex: 1; min-height: 320px; }
.crash-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crash-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.big-mult.hot { color: #ffd60a; text-shadow: 0 0 18px rgb(255 190 20 / 55%); }
.big-mult.epic { color: #fff3a8; text-shadow: 0 0 10px #ffd60a, 0 0 30px rgb(255 90 200 / 75%); animation: big-pulse .45s ease-in-out infinite alternate; }
.crash-note { font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgb(9 18 25 / 75%); text-align: center; }

/* ---------- Лента ставок ---------- */
.lobby + .box { margin-top: 0; }
.feed { margin-top: 20px; background: var(--s1); border-radius: var(--r); padding: 12px; }
.feed-title { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.feed-head, .feed-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 8px; padding: 9px 10px; width: 100%; text-align: right; }
.feed-head { color: var(--muted); font-size: 12px; font-weight: 600; }
.feed-head span:first-child, .feed-game { text-align: left; }
.feed-row { border-radius: 6px; font-weight: 600; }
.feed-row:nth-child(odd) { background: var(--s2); }
.feed-game { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-game i { margin-left: 6px; font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }
.feed-row.mine .feed-game i { color: var(--green); }
.feed-num { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-empty { padding: 20px; text-align: center; }

/* ---------- Модалки и тосты ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 60%); display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { width: min(100%, 520px); max-height: min(86vh, 760px); display: flex; flex-direction: column; background: var(--s1); border-radius: 12px; overflow: hidden; animation: rise .16s ease-out; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; background: var(--s2); font-size: 16px; }
.modal-body { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.fair, .fair-block { display: flex; flex-direction: column; gap: 10px; }
.fair { gap: 14px; }
.fair-block { background: var(--bg); border-radius: var(--r); padding: 12px; }
.fair-title { font-weight: 600; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv span { color: var(--muted); font-size: 12px; }
.revealed { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 6px; background: var(--s2); }
.revealed:hover { background: var(--s3); }
.verify-out { padding: 10px; border-radius: 6px; background: var(--s2); display: flex; flex-direction: column; gap: 4px; word-break: break-word; }
.wallet-sum { font-size: 34px; font-weight: 700; text-align: center; padding: 8px 0; }

.toasts { position: fixed; z-index: 80; top: calc(64px + env(safe-area-inset-top)); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { padding: 10px 14px; border-radius: var(--r); background: var(--s3); border-left: 4px solid var(--red); font-weight: 600; box-shadow: 0 6px 18px rgb(0 0 0 / 35%); animation: rise .16s ease-out; transition: opacity .25s; max-width: 100%; }
.toast.ok { border-left-color: var(--green); }
.toast.out { opacity: 0; }

/* ---------- Мобильная раскладка: поле сверху, ставка под большим пальцем ---------- */
/* ---------- Slots ---------- */
.slots { width: min(100%, 560px); flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.slot-box { position: relative; width: 100%; }
.slot-box.shake { animation: slot-shake .42s ease-out; }
@keyframes slot-shake { 15% { transform: translate(-5px, 3px) rotate(-.5deg); } 35% { transform: translate(5px, -3px) rotate(.5deg); } 55% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, -1px); } }
.slot-fx { position: absolute; z-index: 4; left: -14px; top: -46px; width: calc(100% + 28px); height: calc(100% + 54px); pointer-events: none; }
.slot-window { position: relative; width: 100%; aspect-ratio: 5 / 3; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 8px; background: var(--s1); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--s2); transition: box-shadow .3s; }
.slot-window.free { box-shadow: inset 0 0 0 2px var(--purple), 0 0 26px rgb(150 46 255 / 35%); }
.slot-reel { position: relative; overflow: hidden; border-radius: 9px; background: var(--s2); }
.slot-reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgb(0 0 0 / 36%), transparent 22%, transparent 78%, rgb(0 0 0 / 36%)); }
.slot-strip { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; will-change: transform; }
.slot-cell { flex: 1; min-height: 0; display: grid; place-items: center; transition: opacity .2s; }
.slot-cell svg { width: 72%; height: auto; aspect-ratio: 1; display: block; }
.slot-window.hit .slot-cell { opacity: .28; }
.slot-window.hit .slot-cell.win { opacity: 1; animation: slot-win .5s ease-out; }
.slot-window.hit .slot-cell.win svg { animation: slot-burn .7s ease-in-out infinite alternate; }
@keyframes slot-burn { from { filter: drop-shadow(0 0 3px rgb(255 214 10 / 80%)) drop-shadow(0 0 9px rgb(255 120 20 / 70%)); } to { filter: drop-shadow(0 0 6px rgb(255 240 170 / 95%)) drop-shadow(0 0 16px rgb(255 69 58 / 85%)); } }
.slot-cell.land { animation: slot-land .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes slot-land { 0% { transform: scale(1.35); filter: brightness(2.2); } 100% { transform: none; filter: none; } }
.slot-reel.tease { box-shadow: inset 0 0 0 2px #ff9f0a, 0 0 18px rgb(255 120 20 / 75%); animation: slot-tease .32s ease-in-out infinite alternate; }
.slot-reel.tease::after { background: linear-gradient(rgb(255 120 20 / 30%), transparent 30%, transparent 70%, rgb(255 69 58 / 38%)); }
.slot-reel.final { animation-duration: .16s; box-shadow: inset 0 0 0 3px #ffd60a, 0 0 34px 4px rgb(255 99 30 / 95%); }
@keyframes slot-tease { to { box-shadow: inset 0 0 0 2px #ffd60a, 0 0 30px rgb(255 159 10 / 95%); } }
@keyframes slot-win { 40% { transform: scale(1.2); } }
.slot-sticky { position: absolute; inset: 8px; pointer-events: none; }
.sticky-chest { position: absolute; width: calc((100% - 20px) / 5); height: calc(100% / 3); border-radius: 9px; background: #1c2a36; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--yellow), 0 0 10px rgb(255 159 10 / 55%); animation: hold-burn .9s ease-in-out infinite alternate; }
.sticky-chest svg { width: 72%; height: auto; aspect-ratio: 1; display: block; }
.sticky-chest.new { animation: slot-land .5s cubic-bezier(.2, 1.6, .4, 1), hold-burn .9s ease-in-out .5s infinite alternate; }
.sticky-chest.pay { animation: slot-win .4s ease-out, hold-burn .3s ease-in-out infinite alternate; background: #5a3a08; }
.slot-pot { position: absolute; z-index: 3; left: 50%; top: -13px; transform: translateX(-50%); height: 26px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; background: #1b1206; color: var(--yellow); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 2px #ff9f0a, 0 0 16px rgb(255 120 20 / 70%); }
.slot-pot.bump { animation: pot-bump .35s ease-out; }
@keyframes pot-bump { 40% { transform: translateX(-50%) scale(1.22); } }
.slot-lines { position: absolute; inset: 8px; pointer-events: none; }
.slot-lines svg { width: 100%; height: 100%; display: block; overflow: visible; }
.slot-lines polyline { fill: none; stroke: #ffd60a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .8; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px #ff9f0a) drop-shadow(0 0 9px #ff453a); stroke-dasharray: 14 9; animation: slot-line .5s linear infinite; }
@keyframes slot-line { to { stroke-dashoffset: -23; } }
.slot-banner { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 62%; padding: 14px 20px; border-radius: 16px; background: rgb(8 12 18 / 88%); box-shadow: 0 0 0 2px #ff9f0a, 0 0 34px rgb(255 120 20 / 70%), 0 12px 40px rgb(0 0 0 / 55%); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: slot-pop .3s cubic-bezier(.2, 1.4, .4, 1); }
.slot-banner b { font-size: clamp(20px, 6vw, 30px); font-weight: 700; background: linear-gradient(#fff6c2 15%, #ffd60a 45%, #ff9f0a 70%, #ff453a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slot-banner span { font-size: 13px; color: var(--muted); }
@keyframes slot-pop { from { transform: translate(-50%, -50%) scale(.7); opacity: 0; } }
.slot-val { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 0 5px; border-radius: 999px; background: #0b1016; color: var(--yellow); font-size: clamp(9px, 2.9vw, 14px); line-height: 1.5; font-weight: 700; white-space: nowrap; }
.slot-cell { position: relative; }
.slot-hold { position: absolute; z-index: 1; inset: 0; border-radius: inherit; padding: 6px 8px 8px; background: rgb(8 12 18 / 94%); display: flex; flex-direction: column; gap: 5px; animation: fade .25s; }
.hold-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; font-size: 13px; font-weight: 700; }
.hold-head span { color: var(--muted); }
.hold-head b { color: var(--yellow); }
.hold-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); gap: 5px; }
.hold-cell { position: relative; min-width: 0; min-height: 0; border-radius: 9px; background: var(--s2); display: grid; place-items: center; overflow: hidden; }
.hold-cell svg { width: auto; height: 62%; max-width: 70%; aspect-ratio: 1; display: block; margin-bottom: 12%; }
.hold-cell.on { background: var(--s3); overflow: visible; box-shadow: inset 0 0 0 2px var(--yellow), 0 0 10px rgb(255 159 10 / 55%); animation: hold-burn .8s ease-in-out infinite alternate; }
.hold-cell.on:nth-child(odd) { animation-duration: 1.05s; }
@keyframes hold-burn { to { box-shadow: inset 0 0 0 2px #fff0aa, 0 0 18px 2px rgb(255 99 30 / 85%); } }
.hold-cell.new::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 3px solid #ffd60a; animation: hold-ring .6s ease-out forwards; }
@keyframes hold-ring { to { transform: scale(1.9); opacity: 0; } }
.hold-cell.new { animation: slot-land .5s cubic-bezier(.2, 1.6, .4, 1), hold-burn .8s ease-in-out .5s infinite alternate; }
.hold-cell.roll::after { content: ''; position: absolute; inset: -60% 0; background: repeating-linear-gradient(transparent 0 14%, rgb(255 255 255 / 9%) 14% 28%); animation: hold-roll .28s linear infinite; }
.slot-hold.last .hold-cell.roll { box-shadow: inset 0 0 0 2px #ff9f0a, 0 0 14px rgb(255 120 20 / 80%); animation: slot-tease .2s ease-in-out infinite alternate; }
.slot-hold.last .hold-head span { color: #ff9f0a; animation: pulse .3s ease-in-out infinite alternate; }
@keyframes hold-roll { to { transform: translateY(28%); } }
.slot-big { position: absolute; z-index: 5; inset: 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; background: radial-gradient(closest-side, rgb(0 0 0 / 78%), rgb(0 0 0 / 34%)); animation: fade .25s; }
.big-title { font-size: clamp(32px, 11.5vw, 62px); font-weight: 700; line-height: 1; letter-spacing: .02em; white-space: nowrap; background: linear-gradient(#fffbe0 12%, #ffd60a 40%, #ff9f0a 64%, #ff453a 94%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #7a1c06) drop-shadow(0 0 18px rgb(255 120 20 / 80%)); animation: big-pulse .7s ease-in-out infinite alternate; }
.big-title.pop { animation: big-in .5s cubic-bezier(.2, 1.7, .4, 1), big-pulse .7s ease-in-out .5s infinite alternate; }
.slot-big[data-tier='2'] .big-title { font-size: clamp(34px, 12.5vw, 68px); }
.slot-big[data-tier='3'] .big-title { font-size: clamp(36px, 13.5vw, 74px); background-image: linear-gradient(#ffffff 10%, #fff0aa 30%, #ffd60a 50%, #ff7a1a 74%, #ff2d55 96%); }
@keyframes big-in { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
@keyframes big-pulse { to { transform: scale(1.07); } }
.big-sum { font-size: clamp(22px, 7.6vw, 42px); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #3a0d02, 0 0 16px rgb(255 159 10 / 90%); }
.big-sum.done { animation: pop .3s ease-out; color: #fff6c2; }
.slot-status { max-width: 100%; height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.slot-total, .slot-free { min-width: 96px; height: 32px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; background: var(--s2); color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.slot-free { background: var(--purple); color: #fff; }
.slot-total.show { color: var(--text); animation: pop .2s ease-out; }
.slot-total.good { background: var(--green); color: #04090d; }
.slot-info { flex: none; height: 34px; font-size: 13px; }
.slot-bar { width: 100%; display: grid; grid-template-columns: 62px minmax(0, 1fr) 62px; align-items: center; gap: 6px; }
.slot-bar .slot-status { height: 70px; flex-wrap: wrap; align-content: center; } /* две плашки на телефоне встают в два ряда — высота под это отведена заранее, чтобы поле не прыгало */
.slot-round { width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font: inherit; color: #fff; background: radial-gradient(circle at 35% 28%, #cf96ff, var(--purple) 55%, #5a1aa8); box-shadow: 0 0 0 2px #ffd60a, 0 4px 12px rgb(0 0 0 / 40%); transition: transform .1s, opacity .2s; }
.slot-round span { max-width: 50px; font-size: 8px; font-weight: 700; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; text-align: center; opacity: .92; }
.slot-round b { font-size: 13px; font-weight: 700; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slot-round b.long { font-size: 11px; }
.slot-round:active { transform: scale(.93); }
.slot-round:disabled { opacity: .4; cursor: default; }
.slot-round.ante { background: radial-gradient(circle at 35% 28%, #66707c, #343e49 60%, #1c242d); box-shadow: 0 0 0 2px #7b8794, 0 4px 12px rgb(0 0 0 / 40%); }
.slot-round.ante.on { color: #2a1f00; background: radial-gradient(circle at 35% 28%, #fff6b5, #ffc400 55%, #c77f00); box-shadow: 0 0 0 2px #fff, 0 0 16px rgb(255 214 10 / 70%); }
.slot-rules > p { margin: 0; font-size: 14px; line-height: 1.5; }
.slot-rules { display: flex; flex-direction: column; gap: 10px; }
.slot-table { display: grid; grid-template-columns: 44px repeat(3, 1fr); gap: 4px; align-items: center; text-align: center; font-weight: 600; font-size: 14px; }
.slot-table b { color: var(--muted); font-size: 12px; }
.slot-table span { background: var(--s2); border-radius: 6px; height: 34px; display: grid; place-items: center; }
.slot-table svg { width: 24px; height: 24px; display: block; }
.slot-rule { display: flex; gap: 10px; align-items: flex-start; }
.slot-rule span { flex: none; width: 36px; }
.slot-rule svg { width: 36px; height: 36px; display: block; }
.slot-rule p { margin: 0; font-size: 13px; line-height: 1.45; }
.slot-linemap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.slot-linemap div { background: var(--s2); border-radius: 6px; padding: 5px; }
.slot-linemap svg { width: 100%; height: auto; display: block; }
.slot-linemap circle { fill: var(--s4); }
.slot-linemap circle.on { fill: var(--yellow); }
.slot-linemap polyline { stroke: var(--yellow); stroke-width: 1.2; opacity: .6; stroke-linejoin: round; }

/* ---------- Sweet Bonanza ---------- */
.bz-window { position: relative; width: 100%; aspect-ratio: 6 / 5; display: grid; grid-template-columns: repeat(6, 1fr); padding: 5px; border-radius: 16px; overflow: hidden; background: linear-gradient(165deg, #39a0ed, #6d5ee0 52%, #e0559f); box-shadow: inset 0 0 0 3px rgb(255 255 255 / 30%), 0 8px 26px rgb(224 85 159 / 28%); transition: box-shadow .4s; }
.bz-window::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: linear-gradient(165deg, #2a1466, #7a1f8f 55%, #c2255c); }
.bz-window.free::before { opacity: 1; }
.bz-window.free { box-shadow: inset 0 0 0 3px #ffd60a, 0 0 30px rgb(255 214 10 / 40%); }
.bz-col { position: relative; }
.bz-col:nth-child(odd) { background: rgb(255 255 255 / 9%); }
.bz-col:first-child { border-radius: 11px 0 0 11px; }
.bz-col:nth-child(5) { border-radius: 0; }
.bz-col.tease { box-shadow: inset 0 0 0 2px #ffd60a, 0 0 18px rgb(255 214 10 / 80%); animation: slot-tease .3s ease-in-out infinite alternate; z-index: 1; }
.bz-cell { position: absolute; left: 0; top: 0; width: 100%; height: 20%; display: grid; place-items: center; will-change: transform; transition: opacity .2s; }
.bz-sym { position: relative; width: 90%; aspect-ratio: 1; display: grid; place-items: center; }
.bz-sym svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 1px rgb(20 10 60 / 35%)); }
.bz-window.hit .bz-cell:not(.win) { opacity: .4; }
.bz-window.hit .bz-cell.win { z-index: 1; }
.bz-window.hit .bz-cell.win .bz-sym { animation: bz-win .32s ease-in-out infinite alternate; }
@keyframes bz-win { from { transform: scale(1); } to { transform: scale(1.16) rotate(4deg); filter: brightness(1.25); } }
.bz-cell.pop .bz-sym { animation: bz-pop .26s ease-in forwards !important; }
@keyframes bz-pop { 35% { transform: scale(1.4); filter: brightness(2); opacity: 1; } 100% { transform: scale(0); filter: brightness(3); opacity: 0; } }
.bz-cell.land .bz-sym { animation: slot-land .45s cubic-bezier(.2, 1.6, .4, 1); }
.bz-cell.boom { z-index: 2; opacity: 1 !important; }
.bz-cell.boom .bz-sym { animation: bz-boom .5s ease-out forwards !important; }
@keyframes bz-boom { 30% { transform: scale(1.6) rotate(-8deg); filter: brightness(1.8); } 100% { transform: scale(.82); filter: grayscale(.7) brightness(.75); } }
.bz-val { position: absolute; left: 47.500%; top: 58.500%; transform: translate(-50%, -50%); font-size: clamp(11px, 3.7vw, 19px); font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: -.02em; text-shadow: 0 0 3px #2a1245, 0 1px 0 #2a1245, 1px 0 0 #2a1245, -1px 0 0 #2a1245, 0 -1px 0 #2a1245, 0 2px 4px rgb(0 0 0 / 60%); }
.bz-val.hot { color: #fff3a8; font-size: clamp(10px, 3.3vw, 17px); }
.bz-floats { position: absolute; inset: 5px; pointer-events: none; z-index: 3; }
.bz-float { position: absolute; transform: translate(-50%, -50%); padding: 2px 9px; border-radius: 999px; background: rgb(30 12 60 / 88%); color: #fff6c2; font-size: clamp(12px, 3.6vw, 16px); font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 2px #ff8ac4; animation: bz-float 1.15s ease-out forwards; }
@keyframes bz-float { 0% { transform: translate(-50%, -50%) scale(.5); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -150%) scale(1); opacity: 0; } }
.bz-pot { position: absolute; z-index: 3; left: 50%; top: -14px; transform: translateX(-50%); height: 28px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; gap: 7px; background: #2a1245; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 2px #ff8ac4, 0 0 16px rgb(255 105 180 / 60%); }
.bz-pot i { font-style: normal; color: var(--yellow); font-size: 15px; }
.bz-pot i:empty { display: none; }
.bz-pot.boosted { background: #4a2a00; color: #fff3a8; box-shadow: 0 0 0 2px #ffd60a, 0 0 22px rgb(255 214 10 / 80%); }
.bz-pot.bump { animation: pot-bump .35s ease-out; }
.bz .slot-big { border-radius: 16px; }
/* селекторы с запасом по весу: тема Liquid Glass перекрашивает .slot-window и .slot-reel */
.slots.dh .dh-window { background: linear-gradient(#9a6a35, #6b4120); box-shadow: inset 0 0 0 2px #c9975a, 0 8px 22px rgb(0 0 0 / 35%); }
.slots.dh .dh-window .slot-reel { background: linear-gradient(#2f74c4, #1c4a8a); }
.slots.dh .dh-window.free { box-shadow: inset 0 0 0 2px #ffd60a, 0 0 28px rgb(255 214 10 / 40%); }
.slots.dh .dh-window.free .slot-reel { background: linear-gradient(#3d2c78, #20184a); }
.dh-window .slot-cell svg { width: 88%; }
.dh-sticky { background: #4a2f12; transition: opacity .2s; }
.dh-sticky svg { width: 88%; }
.dh-sticky.dim { opacity: .4; animation: none; }
.dh-award { position: absolute; z-index: 1; inset: 0; border-radius: inherit; padding: 8px 10px 10px; background: rgb(8 12 18 / 94%); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: fade .25s; }
.dh-award-head { flex: none; display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.dh-award-head b { min-width: 2ch; font-size: clamp(20px, 6vw, 28px); color: var(--yellow); font-variant-numeric: tabular-nums; }
.dh-tiles { flex: 1; min-height: 0; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 5px; }
.dh-tile { min-width: 0; min-height: 0; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(#9a6a35, #6b4120); color: rgb(255 255 255 / 55%); font-size: clamp(16px, 5.4vw, 26px); font-weight: 700; font-variant-numeric: tabular-nums; }
.dh-tile.on { color: #fff; background: linear-gradient(#2f74c4, #1c4a8a); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 35%); animation: slot-land .4s cubic-bezier(.2, 1.6, .4, 1); }
.dh-tile.on.v2 { background: linear-gradient(#34b45a, #1f7f3b); }
.dh-tile.on.v3 { color: #2a1f00; background: linear-gradient(#ffe169, #ffb300); box-shadow: inset 0 0 0 2px #fff3a8, 0 0 14px rgb(255 190 20 / 70%); }
.bz-tools { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bz-music.off { color: var(--muted); }

@media (max-width: 820px) {
  .view { padding: 12px 10px calc(28px + env(safe-area-inset-bottom)); }
  .game-main { grid-template-columns: minmax(0, 1fr); }
  .stage { order: -1; min-height: 0; padding: 10px 10px 12px; border-right: 0; border-top: 0; }
  .stage-body { min-height: 300px; }
  /* главная кнопка всегда первой под полем: она не должна прыгать, когда появляются доп. кнопки */
  .panel > .btn-bet { order: -2; }
  .panel > .panel-extra { order: -1; }
  .tabs { order: 5; }
  .lobby { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .game-card b { font-size: 14px; }
  .game-card b.long { font-size: 11.5px; }
  .mines-grid { gap: 7px; }
  .keno-grid { gap: 5px; }
  .triple { padding: 8px; gap: 6px; }
  .triple .input { padding: 0 8px; font-size: 13px; }
  .triple .field-label { font-size: 11px; }
  .dice-board { padding: 64px 0 28px; }
  .card.big { --pad: 9px; --idx: 19px; --pip: 52px; --dot: 19px; width: 112px; height: 158px; }
  .card.big .card-court { font-size: 58px; }
  .crash { min-height: 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { display: none; }
  .balance-value { padding: 0 9px; }
  .awards { grid-template-columns: repeat(2, 1fr); }
  .fair-btn { margin-left: auto; }
  .modal-wrap { padding: 0; align-items: end; }
  .modal { width: 100%; border-radius: 14px 14px 0 0; max-height: 88vh; padding-bottom: env(safe-area-inset-bottom); }
}

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

/* ---------- Coin Dozer ---------- */
.cd-level .field-hint { font-size: 11px; }
.cd { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.cd-view { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 2px #6a4fb0, 0 10px 28px rgb(0 0 0 / 38%); background: #1b2a55; line-height: 0; }
.cd-canvas { width: 100%; height: auto; aspect-ratio: 640 / 660; display: block; }
.cd-banner { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); max-width: 92%; padding: 14px 22px; border-radius: 16px; background: linear-gradient(#5a1fa8, #34106f); color: #fff3a8; font-size: clamp(18px, 5.4vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: .02em; text-align: center; box-shadow: 0 0 0 3px #ffd60a, 0 0 34px rgb(211 107 255 / 75%); }
.cd-banner.show { animation: cd-banner 1.7s ease-out both; }
@keyframes cd-banner { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 14% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } 24% { transform: translate(-50%, -50%) scale(1); } 86% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.04); opacity: 0; } }
.cd-meter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--s2); }
.cd-meter > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cd-meter span { font-size: 12px; color: var(--muted); }
.cd-meter b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; transition: transform .2s, color .2s; }
.cd-meter b.bump { transform: scale(1.14); color: var(--green); }
.cd-free { align-items: flex-end; text-align: right; }
.cd-dots { display: flex; gap: 5px; }
.cd-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--s4); transition: background .2s, box-shadow .2s; }
.cd-dots i.on { background: #ffd60a; box-shadow: 0 0 8px rgb(255 214 10 / 80%); }
.cd-legend { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.cd-chip { background: var(--s2); border-radius: 8px; border-bottom: 4px solid var(--c); padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; transition: background .12s, transform .12s; }
.cd-chip i { font-style: normal; color: var(--c); font-size: 17px; line-height: 1; }
.cd-chip b { font-size: 10px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-chip.on { background: var(--s4); transform: translateY(-3px); }
@media (max-width: 480px) { .cd-chip b { font-size: 9px; } .cd-chip i { font-size: 15px; } }

/* ---------- Gates of Olympus ---------- */
.oly .bz-window { background: linear-gradient(170deg, #6bb8ff, #4a6cf0 48%, #c9a3ff); box-shadow: inset 0 0 0 3px rgb(255 255 255 / 34%), 0 8px 26px rgb(74 108 240 / 34%); }
.oly .bz-window::before { background: linear-gradient(170deg, #121a52, #3a2a8a 55%, #8a5a2a); }
.oly .bz-window.free { box-shadow: inset 0 0 0 3px #ffd75e, 0 0 30px rgb(255 215 94 / 45%); }
.oly .bz-col:nth-child(odd) { background: rgb(255 255 255 / 8%); }
.oly .bz-cell.orb .bz-sym::before { content: ''; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgb(150 215 255 / 70%), rgb(80 140 255 / 0) 70%); animation: oly-pulse 1.4s ease-in-out infinite alternate; }
.oly .bz-cell.orb .bz-val { top: 52%; left: 50%; color: #fff; text-shadow: 0 0 4px #123a9a, 0 0 8px #123a9a, 0 1px 0 #123a9a, 1px 0 0 #123a9a, -1px 0 0 #123a9a, 0 -1px 0 #123a9a; }
.oly .bz-cell.orb .bz-val.hot { color: #ffe680; }
.oly .bz-pot { background: #14206a; box-shadow: 0 0 0 2px #8fc4ff, 0 0 16px rgb(110 170 255 / 60%); }
.oly .bz-pot.boosted { background: #4a3000; box-shadow: 0 0 0 2px #ffd75e, 0 0 22px rgb(255 215 94 / 80%); }
.oly .bz-float { background: rgb(14 22 80 / 90%); box-shadow: 0 0 0 2px #8fc4ff; }
.oly-mult { position: absolute; z-index: 3; left: 50%; bottom: -14px; transform: translateX(-50%); height: 28px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px; background: #3a2400; color: #fff3a8; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 2px #ffd75e, 0 0 16px rgb(255 215 94 / 60%); }
.oly-mult b { font-size: 15px; font-weight: 700; color: #ffe680; }
.oly-mult.bump { animation: pot-bump .35s ease-out; }
@keyframes oly-pulse { from { opacity: .55; transform: scale(.92); } to { opacity: 1; transform: scale(1.08); } }

/* ---------- Scratch: лотерейные билеты ---------- */
.sc { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.sc-ticket { --a: #1f9d55; --b: #ffd24a; --ink: #0f3b1f; position: relative; padding: 12px 12px 14px; border-radius: 18px; background: linear-gradient(160deg, var(--a), color-mix(in srgb, var(--a) 55%, #000)); color: #fff; box-shadow: 0 0 0 3px var(--b), 0 12px 28px rgb(0 0 0 / 40%); }
.sc-ticket[data-kind="gold"] { --a: #c98a12; --b: #fff3a8; --ink: #3a2500; }
.sc-ticket[data-kind="mega"] { --a: #7a2fd0; --b: #ff9ad6; --ink: #2a0a55; }
.sc-ticket::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(115deg, rgb(255 255 255 / 5%) 0 12px, transparent 12px 26px); }
.sc-ticket.fresh { animation: sc-fresh .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes sc-fresh { from { transform: translateY(26px) scale(.94) rotate(-1.5deg); opacity: .2; } }
.sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sc-head b { font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--b); text-shadow: 0 1px 0 rgb(0 0 0 / 35%); }
.sc-kind { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--b); color: var(--ink); }
.sc-board { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff6d6; box-shadow: inset 0 0 0 3px rgb(0 0 0 / 22%); }
.sc-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; padding: 3px; }
.sc-cell { display: grid; place-items: center; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 2px rgb(0 0 0 / 8%); transition: opacity .3s, transform .3s, box-shadow .3s; }
.sc-cell svg { width: 78%; height: 78%; }
.sc-cell.dim { opacity: .38; }
.sc-cell.win { background: #fff7c2; box-shadow: inset 0 0 0 3px #ffb300, 0 0 18px rgb(255 190 20 / 90%); transform: scale(1.04); z-index: 1; animation: sc-win .5s ease-in-out infinite alternate; }
@keyframes sc-win { to { transform: scale(1.1); } }
.sc-coat { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; transition: opacity .38s; }
.sc-coat.fade { opacity: 0; pointer-events: none; }
.sc-coat.gone { visibility: hidden; }
.sc-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: rgb(15 20 40 / 78%); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; animation: sc-hint 1.3s ease-in-out infinite alternate; }
@keyframes sc-hint { to { transform: translateX(-50%) translateY(-4px); } }
.sc-foot { margin-top: 10px; text-align: center; font-size: 12px; font-weight: 600; color: rgb(255 255 255 / 85%); letter-spacing: .02em; }
.sc-prize { margin-top: 8px; padding: 9px 12px; border-radius: 12px; text-align: center; font-size: 20px; font-weight: 700; color: var(--ink); background: var(--b); }
.sc-prize.none { font-size: 14px; font-weight: 700; background: rgb(0 0 0 / 28%); color: #fff; }
.sc-prize.big { font-size: 26px; box-shadow: 0 0 22px var(--b); }
.sc-prize.pop { animation: sc-pop .4s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes sc-pop { from { transform: scale(.5); opacity: 0; } }
.sc-erase { align-self: center; min-width: 180px; }
.sc-legend { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.sc-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 1px; border-radius: 8px; background: var(--s2); min-width: 0; transition: background .15s, transform .15s; }
.sc-chip span { width: 100%; }
.sc-chip svg { width: 100%; aspect-ratio: 1; display: block; }
.sc-chip b { font-size: 9px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-chip.on { background: var(--s4); transform: translateY(-3px); box-shadow: 0 0 0 2px #ffb300; }

/* ---------- Tower: обезьяна лезет по ящикам ---------- */
.tw { position: relative; width: 100%; max-width: 440px; padding: 14px 12px 12px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 60% at 50% 0, #2f6b3a, transparent 70%), linear-gradient(#173d24, #0f2a1a 60%, #251a0e); box-shadow: inset 0 0 0 3px #5a3a1a, 0 10px 26px rgb(0 0 0 / 38%); }
.tw::before, .tw::after { content: ''; position: absolute; top: 0; bottom: 0; width: 9px; background: repeating-linear-gradient(#3f8a3a 0 14px, #2c6a2a 14px 22px); opacity: .85; }
.tw::before { left: 5px; }
.tw::after { right: 5px; }
.tw-prize { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 0 auto 8px; padding: 4px 10px; border-radius: 999px; background: rgb(255 214 10 / 14%); color: #ffe680; font-size: 12px; font-weight: 700; letter-spacing: .04em; box-shadow: inset 0 0 0 1.5px rgb(255 214 10 / 40%); }
.tw-prize span { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgb(255 214 10 / 80%)); }
.tw-prize svg { width: 100%; height: 100%; display: block; }
.tw-rows { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.tw-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 8px; opacity: .6; transition: opacity .2s; }
.tw-row.done, .tw-row.now { opacity: 1; }
.tw-mult { justify-self: end; padding: 3px 7px; border-radius: 6px; background: linear-gradient(#8a5a2b, #6a431d); color: #f3d9a8; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: inset 0 -2px 0 rgb(0 0 0 / 28%); }
.tw-row.now .tw-mult { background: linear-gradient(#ffd24a, #e09a00); color: #3a2200; }
.tw-mult.reached { background: linear-gradient(#4aa84a, #2e7a2e); color: #eaffea; }
.tw-tiles { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 10px; background: linear-gradient(#5a3a1a, #3f2810); box-shadow: inset 0 2px 0 rgb(255 255 255 / 10%), 0 3px 0 rgb(0 0 0 / 35%); }
.tw-tile { position: relative; height: clamp(34px, 8.8vw, 44px); border-radius: 7px; background: linear-gradient(#d9a05f, #b47a3c); box-shadow: inset 0 -3px 0 #8a5a22, inset 0 0 0 2px #7a4c1a; display: grid; place-items: center; color: rgb(60 32 8 / 55%); font-size: 20px; font-weight: 700; transition: transform .1s, background .15s, box-shadow .15s; }
.tw-tile::before { content: '?'; }
.tw-tile::after { content: ''; position: absolute; inset: 3px; border-radius: 4px; background: repeating-linear-gradient(90deg, transparent 0 10px, rgb(80 44 10 / 14%) 10px 12px); pointer-events: none; }
.tw-row.now .tw-tile:not(:disabled) { background: linear-gradient(#ffd98a, #e8a43c); color: rgb(90 50 5 / 80%); box-shadow: inset 0 -3px 0 #b8741a, inset 0 0 0 2px #fff3c0, 0 0 14px rgb(255 200 90 / 65%); animation: tw-glow 1s ease-in-out infinite alternate; }
.tw-row.now .tw-tile:not(:disabled):hover { transform: translateY(-2px); }
.tw-row.now .tw-tile:not(:disabled):active { transform: scale(.94); }
.tw-tile.wait { animation: pulse .5s infinite alternate !important; }
.tw-tile.safe, .tw-tile.trap { color: transparent; background: linear-gradient(#7a5a30, #5a3f1e); box-shadow: inset 0 0 0 2px #3a2810; }
.tw-tile.safe { box-shadow: inset 0 0 0 2px #7ed957; }
.tw-tile.trap { background: linear-gradient(#5a2a2a, #3a1818); box-shadow: inset 0 0 0 2px rgb(255 90 70 / 55%); }
.tw-tile.boom { box-shadow: inset 0 0 0 3px var(--red), 0 0 16px rgb(255 69 58 / 75%); }
.tw-tile.safe::before, .tw-tile.trap::before, .tw-tile.safe::after, .tw-tile.trap::after { content: none; }
.tw-tile.dim { opacity: .55; }
.tw-tile svg { width: 78%; height: 78%; animation: pop .2s cubic-bezier(.3, 1.6, .5, 1); }
.tw-tile.dim svg { animation: none; }
.tw-ground { position: relative; margin: 10px 4px 0; height: 34px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(#4aa84a, #2e7a2e 55%, #5a3a1a 55%); box-shadow: 0 3px 0 rgb(0 0 0 / 35%); }
.tw-ground span { padding: 1px 10px; border-radius: 6px; background: rgb(0 0 0 / 28%); color: #e8ffe0; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.tw-monkey { position: absolute; left: 0; top: 0; width: 46px; height: 46px; z-index: 3; pointer-events: none; transform-origin: 50% 90%; will-change: transform; }
.tw-monkey svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 2px rgb(0 0 0 / 45%)); }
.tw-monkey:not(.air):not(.dizzy):not(.cheer) svg { animation: tw-idle 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.tw-monkey.cheer svg { animation: tw-cheer .5s ease-in-out 4; transform-origin: 50% 100%; }
.tw-monkey.dizzy svg { animation: tw-dizzy .9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.tw-monkey.dizzy::after { content: '✦ ✦'; position: absolute; left: 50%; top: -10px; transform: translateX(-50%); color: #ffd60a; font-size: 12px; letter-spacing: 2px; animation: tw-stars 1s linear infinite; }
@keyframes tw-glow { to { filter: brightness(1.12); } }
@keyframes tw-idle { 50% { transform: scale(1.03, .96); } }
@keyframes tw-cheer { 50% { transform: translateY(-8px) rotate(-6deg); } }
@keyframes tw-dizzy { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes tw-stars { to { transform: translateX(-50%) rotate(360deg); } }

/* ---------- Baccarat ---------- */
.bc { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.bc-felt { position: relative; padding: 14px 10px 12px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0, #2fa56a, #166a42 60%, #0e4a2e); box-shadow: inset 0 0 0 3px #c9a23a, inset 0 0 0 6px #0a3a24, 0 10px 26px rgb(0 0 0 / 38%); }
.bc-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bc-hand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 12px; border-radius: 16px; background: rgb(0 0 0 / 18%); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 10%); transition: box-shadow .25s, background .25s; }
.bc-hand.player .bc-title { color: #8fd0ff; }
.bc-hand.banker .bc-title { color: #ff9a8f; }
.bc-hand.win { background: rgb(255 214 10 / 14%); box-shadow: inset 0 0 0 3px #ffd60a, 0 0 22px rgb(255 214 10 / 45%); }
.bc-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bc-cards { display: flex; justify-content: center; align-items: center; min-height: 84px; padding: 0 8px; }
.bc-cards .card { --idx: 15px; --pip: 22px; --pad: 5px; width: 54px; height: 77px; margin: 0 -9px; box-shadow: 0 0 0 1px rgb(10 25 36 / 18%), 0 3px 6px rgb(0 0 0 / 35%); }
.bc-cards .card:nth-child(3) { margin-left: -5px; }
.bc-deal { animation: bc-deal .36s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes bc-deal { from { opacity: 0; translate: 0 -46px; scale: .7; } }
.bc-total { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: #04130a; color: #fff; font-size: 16px; font-weight: 700; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 25%); }
.bc-total:empty { visibility: hidden; }
.bc-total.pop { animation: pop .25s cubic-bezier(.3, 1.6, .5, 1); }
.bc-verdict { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 700; color: rgb(255 255 255 / 85%); min-height: 20px; }
.bc-verdict.show { font-size: 17px; color: #ffe680; text-shadow: 0 0 12px rgb(255 214 10 / 50%); animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
.bc-verdict.player.show { color: #9ad8ff; }
.bc-verdict.banker.show { color: #ffaaa0; }
.bc-spots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.bc-spot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 66px; padding: 6px 4px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 2px var(--s3); color: var(--text, #fff); transition: transform .08s, filter .1s, box-shadow .15s, background .15s; }
.bc-spot b { font-size: clamp(12px, 3.4vw, 15px); font-weight: 700; }
.bc-spot span { font-size: 11px; font-weight: 600; color: var(--muted); }
.bc-spot:hover { filter: brightness(1.2); }
.bc-spot:active { transform: scale(.95); }
.bc-spot.player { grid-column: 1 / span 2; grid-row: 2; background: linear-gradient(#2a6fd0, #1c4a8a); box-shadow: inset 0 0 0 2px #7fb4ff; }
.bc-spot.tie { grid-column: 3 / span 2; grid-row: 2; background: linear-gradient(#3aa860, #1f6d3a); box-shadow: inset 0 0 0 2px #8be0a4; }
.bc-spot.banker { grid-column: 5 / span 2; grid-row: 2; background: linear-gradient(#d0382a, #8a1c14); box-shadow: inset 0 0 0 2px #ff9a8f; }
.bc-spot.pair { grid-row: 1; grid-column: span 3; min-height: 44px; flex-direction: row; gap: 8px; background: linear-gradient(#5a3a8a, #3a2460); box-shadow: inset 0 0 0 2px #b08aff; }
.bc-spot.pair span, .bc-spot.player span, .bc-spot.tie span, .bc-spot.banker span { color: rgb(255 255 255 / 75%); }
.bc-spot.won { box-shadow: inset 0 0 0 3px #ffd60a, 0 0 20px rgb(255 214 10 / 65%); animation: bc-won .5s ease-in-out 3 alternate; }
.bc-spot.push { box-shadow: inset 0 0 0 3px #fff; }
.bc-spot.pairhit:not(.won) { box-shadow: inset 0 0 0 3px #ffd60a; }
@keyframes bc-won { to { transform: scale(1.04); } }

/* ---------- Video Poker ---------- */
.vp { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.vp-table { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, #17306a, #0d1d44); box-shadow: inset 0 0 0 2px #2d5bc0, 0 8px 22px rgb(0 0 0 / 34%); }
.vp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 3px 7px; border-radius: 8px; font-size: 12px; color: #c9d8ff; transition: background .2s, color .2s; }
.vp-row b { color: #ffd24a; font-variant-numeric: tabular-nums; }
.vp-row.on { background: #ffd24a; color: #1b2a55; }
.vp-row.on b { color: #1b2a55; }
.vp-row:first-child { grid-column: 1 / -1; }
.vp-felt { padding: 14px 8px 16px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0, #2f6fd6, #17409a 60%, #0f2a6a); box-shadow: inset 0 0 0 3px #c9a23a, inset 0 0 0 6px #0b1f52, 0 10px 26px rgb(0 0 0 / 38%); }
.vp-verdict { min-height: 24px; margin-bottom: 12px; text-align: center; font-weight: 700; font-size: 15px; color: #dbe6ff; }
.vp-verdict.win { color: #ffd24a; }
.vp-verdict.none { color: #9db3e8; }
.vp-hand { display: flex; justify-content: center; gap: 6px; padding-bottom: 24px; }
.vp-slot { position: relative; display: block; width: 58px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; transition: transform .18s; }
.vp-slot:disabled { cursor: default; }
.vp-slot .card { width: 58px; height: 82px; --idx: 16px; --pip: 24px; transition: box-shadow .18s; }
.vp-flag { position: absolute; left: 50%; top: 100%; margin: 6px 0 0 -29px; width: 58px; height: 16px; padding: 0; border-radius: 8px; background: #ffd24a; color: #5a3a00; font-size: 8px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; display: grid; place-items: center; opacity: 0; scale: .7; transition: opacity .15s, scale .15s; }
.vp-slot.held { transform: translateY(-8px); }
.vp-slot.held .card { box-shadow: 0 0 0 3px #ffd24a, 0 8px 18px rgb(0 0 0 / 40%); }
.vp-slot.held .vp-flag { opacity: 1; scale: 1; }
.vp-deal { animation: bc-deal .3s cubic-bezier(.2, 1.2, .4, 1); }
@media (max-width: 380px) { .vp-slot { width: 54px; } .vp-slot .card { width: 54px; height: 77px; } .vp-flag { margin-left: -27px; width: 54px; } .vp-hand { gap: 4px; } }
.ticker + .lobby { margin-top: 14px; }

/* ---------- Шашки ---------- */
.ck-stage { width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ck-name { display: flex; align-items: baseline; gap: 4px; font-size: 14px; }
.ck-board { display: grid; grid-template-columns: repeat(8, 1fr); width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 4px #4a2f16, 0 12px 28px rgb(0 0 0 / 45%); touch-action: none; user-select: none; -webkit-user-select: none; }
.ck-sq { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.ck-sq.light { background: #ecd9b0; }
.ck-sq.dark { background: #8a5a2e; }
.ck-sq.last::before { content: ''; position: absolute; inset: 0; background: rgb(255 214 10 / 28%); }
.ck-sq.sel::before { content: ''; position: absolute; inset: 0; background: rgb(48 209 88 / 45%); }
.ck-sq.step::before { content: ''; position: absolute; inset: 0; background: rgb(48 209 88 / 25%); }
.ck-sq.target::after { content: ''; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: rgb(48 209 88 / 80%); box-shadow: 0 0 0 4px rgb(48 209 88 / 25%); pointer-events: none; }
.ck-sq.can .ck-piece { box-shadow: 0 0 0 3px rgb(48 209 88 / 70%), 0 3px 6px rgb(0 0 0 / 45%); cursor: grab; }
.ck-piece { position: relative; z-index: 1; width: 78%; height: 78%; border-radius: 50%; box-shadow: 0 3px 6px rgb(0 0 0 / 45%), inset 0 -3px 5px rgb(0 0 0 / 25%); display: grid; place-items: center; }
.ck-piece.w { background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f1e8d6 45%, #cdbf9f 100%); box-shadow: 0 3px 6px rgb(0 0 0 / 45%), inset 0 -3px 5px rgb(0 0 0 / 20%), inset 0 0 0 3px #e2d7bd; }
.ck-piece.b { background: radial-gradient(circle at 35% 30%, #5a504b 0%, #2a2420 55%, #14100e 100%); box-shadow: 0 3px 6px rgb(0 0 0 / 55%), inset 0 -3px 5px rgb(0 0 0 / 35%), inset 0 0 0 3px #3d332e; }
.ck-piece.lifted { opacity: .25; }
.ck-piece.king::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 2px solid rgb(255 200 0 / 90%); }
.ck-crown { width: 46%; height: 36%; background: #ffc800; clip-path: polygon(0 100%, 6% 25%, 28% 55%, 50% 0, 72% 55%, 94% 25%, 100% 100%); position: relative; z-index: 2; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 50%)); }
.ck-ghost { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; box-shadow: 0 14px 28px rgb(0 0 0 / 55%) !important; will-change: transform; }
.ck-status { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 10px; border-radius: 12px; background: var(--s2); text-align: center; font-weight: 600; }
.ck-status.mine { background: var(--s3); }
.ck-status.good { color: var(--green); }
.ck-status.bad { color: var(--red); }
.ck-clock.bad { color: var(--red); }

/* Заглушки загрузки: мерцающая полоса */
.sk { display: block; max-width: 100%; border-radius: 8px; background: linear-gradient(100deg, var(--s2, rgba(255,255,255,.06)) 30%, rgba(255,255,255,.14) 50%, var(--s2, rgba(255,255,255,.06)) 70%) 0 0 / 250% 100%; animation: sk-shimmer 1.3s linear infinite; }
.pf-avatar.sk { width: 48px; height: 48px; border-radius: 50%; }
.sk-rows .row { align-items: center; gap: 12px; }
@keyframes sk-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* Шашки: детальная доска и фишки */
.ck-board { border-radius: 10px; box-shadow: 0 0 0 3px #d2a85a, 0 0 0 9px #4a2a12, 0 0 0 11px #2a1608, 0 16px 34px rgb(0 0 0 / 55%), inset 0 0 18px rgb(0 0 0 / 55%); }
.ck-sq.light {
  background:
    repeating-linear-gradient(92deg, rgb(120 80 30 / 0%) 0 5px, rgb(120 80 30 / 7%) 5px 6px, rgb(255 255 255 / 0%) 6px 13px),
    linear-gradient(135deg, #f4e4bc, #e2c994);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%), inset 0 -2px 5px rgb(120 80 30 / 12%);
}
.ck-sq.dark {
  background:
    repeating-linear-gradient(88deg, rgb(0 0 0 / 0%) 0 6px, rgb(0 0 0 / 11%) 6px 7px, rgb(255 255 255 / 0%) 7px 15px),
    linear-gradient(145deg, #9a6638, #6f4220);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 18%), inset 2px 2px 6px rgb(0 0 0 / 28%), inset -1px -1px 3px rgb(255 255 255 / 8%);
}
.ck-piece { width: 80%; height: 80%; transition: transform .12s; }
.ck-piece.w {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 38%, rgb(120 100 60 / 30%) 39% 41%, transparent 42% 56%, rgb(120 100 60 / 26%) 57% 59%, transparent 60%),
    radial-gradient(circle at 34% 28%, #ffffff 0%, #f6eddb 38%, #d9ccaa 78%, #b3a47f 100%);
  box-shadow: 0 5px 8px rgb(0 0 0 / 50%), 0 1px 0 #fff inset, inset 0 -4px 6px rgb(110 90 50 / 35%), inset 0 0 0 2px #e8dcc0, 0 0 0 1px rgb(80 60 20 / 45%);
}
.ck-piece.b {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 38%, rgb(255 255 255 / 9%) 39% 41%, transparent 42% 56%, rgb(255 255 255 / 8%) 57% 59%, transparent 60%),
    radial-gradient(circle at 34% 28%, #6e625c 0%, #38302b 45%, #1a1512 85%, #0c0908 100%);
  box-shadow: 0 5px 8px rgb(0 0 0 / 60%), 0 1px 0 rgb(255 255 255 / 22%) inset, inset 0 -4px 6px rgb(0 0 0 / 55%), inset 0 0 0 2px #4a3f38, 0 0 0 1px rgb(0 0 0 / 60%);
}
.ck-sq.can .ck-piece { box-shadow: 0 0 0 3px rgb(48 209 88 / 75%), 0 0 14px rgb(48 209 88 / 55%), 0 5px 8px rgb(0 0 0 / 50%); animation: ck-ready 1.6s ease-in-out infinite; }
@keyframes ck-ready { 50% { transform: translateY(-1.5px) scale(1.03); } }
.ck-piece.king::after { inset: 14%; border: 2px solid rgb(255 214 10 / 85%); box-shadow: 0 0 6px rgb(255 200 0 / 55%), inset 0 0 5px rgb(255 200 0 / 35%); }
.ck-crown { width: 50%; height: 40%; background: linear-gradient(180deg, #fff2a0 0%, #ffc800 45%, #c88a00 100%); filter: drop-shadow(0 1px 1px rgb(0 0 0 / 60%)) drop-shadow(0 0 4px rgb(255 200 0 / 55%)); }
.ck-sq.last::before { background: radial-gradient(circle, rgb(255 214 10 / 40%), rgb(255 214 10 / 18%)); }
@media (prefers-reduced-motion: reduce) { .ck-sq.can .ck-piece { animation: none; } }

/* Переходы между экранами */
.view.enter { animation: view-in .32s cubic-bezier(.22,.8,.3,1) both; }
.view.enter[data-dir='next'] { animation-name: view-next; }
.view.enter[data-dir='prev'] { animation-name: view-prev; }
.view.enter[data-dir='up'] { animation-name: view-up; }
@keyframes view-in { from { opacity: 0; } }
@keyframes view-next { from { opacity: 0; transform: translateX(26px); } }
@keyframes view-prev { from { opacity: 0; transform: translateX(-26px); } }
@keyframes view-up { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .view.enter { animation: none; } }

/* Переключатель «Ручной / Авто» в нижней полосе */
.mode-btn { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--s2); color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; transition: background .15s, color .15s; }
.mode-btn:hover { color: var(--text); }
.mode-btn.on { background: rgb(48 209 88 / 18%); color: var(--green); box-shadow: inset 0 0 0 1px rgb(48 209 88 / 45%); }
.mode-btn.locked { opacity: .55; }
@media (pointer: coarse) { .mode-btn { height: 34px; } } /* под палец */

/* Игры провайдера */
.prov-go { font-size: 30px; line-height: 1; opacity: .7; }
.prov-filters { display: grid; grid-template-columns: 1fr minmax(120px, 40%); gap: 8px; }
.prov-info { min-height: 16px; }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
@media (max-width: 720px) { .prov-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .prov-card b { font-size: 11px; } }
/* карточка того же размера и формы, что у режимов TGame: 3 к 4, обложка на всю плитку, название поверх */
.prov-card { position: relative; aspect-ratio: 3 / 4; display: block; min-width: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--s2); color: #fff; text-align: center; transition: transform .15s; }
.prov-card:hover { transform: translateY(-4px); }
.prov-card:active { transform: scale(.97); }
.prov-pic { position: absolute; inset: 0; display: block; }
.prov-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prov-card::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgb(0 0 0 / 82%)); pointer-events: none; }
.prov-card b { position: absolute; left: 6px; right: 6px; bottom: 22px; z-index: 1; font-size: 14px; line-height: 1.15; text-shadow: 0 1px 4px rgb(0 0 0 / 80%); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prov-card .small { position: absolute; left: 6px; right: 6px; bottom: 7px; z-index: 1; color: rgb(255 255 255 / 70%); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-card { display: block; padding: 0; }
.sk-card .sk { position: absolute; left: 0; top: 0; }
.provider-open { overflow: hidden; }
.provider-player { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; background: #000; }
.provider-player iframe { flex: 1; width: 100%; border: 0; background: #000; }
.provider-bar { display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; background: #0b0c12; }
.provider-bar b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-close { display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--s2); color: var(--text); font-weight: 600; font-size: 14px; }
.provider-close span { display: grid; width: 20px; }
.prov-card.launching { pointer-events: none; }
.prov-card.launching::before { content: 'Запуск…'; position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgb(0 0 0 / 62%); font-weight: 600; font-size: 13px; animation: sk-pulse 1s ease-in-out infinite; }
@keyframes sk-pulse { 50% { opacity: .55; } }

/* Выбор провайдера со значками */
.prov-picker { position: relative; min-width: 0; }
.prov-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; }
.prov-current { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prov-current span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prov-caret { color: var(--muted); }
.prov-badge { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / 40%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%); }
.prov-badge.all { background: var(--s3); font-size: 13px; }
.prov-logo { object-fit: cover; background: var(--s3); text-shadow: none; }

/* Обложки провайдера: заглушка под картинкой и плавное проявление */
.prov-pic { background: linear-gradient(100deg, var(--s2) 30%, rgb(255 255 255 / 24%) 50%, var(--s2) 70%) 0 0 / 250% 100%; animation: sk-shimmer 1.3s linear infinite; }
.prov-pic img { opacity: 0; transition: opacity .25s ease-out; }
.prov-pic img.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .prov-pic { animation: none; } .prov-pic img { transition: none; } }

/* Лобби: вкладки Originals / Slots / Live и подразделы Live строками */
.lobby-tabs { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.lobby-tab { flex: 1 0 auto; height: 42px; padding: 0 22px; border-radius: 999px; background: var(--s1); color: var(--muted); font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.lobby-tab.on { background: var(--s3); color: var(--text); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%); }
.prov-panel { display: flex; flex-direction: column; gap: 12px; }
.prov-panel > .notice { margin-bottom: 0; }
.prov-catalog { display: flex; flex-direction: column; gap: 12px; }
.prov-live { display: flex; flex-direction: column; gap: 18px; }
.prov-subs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; padding: 2px 0 4px; }
.prov-sub { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--s1); color: var(--text); font-weight: 600; font-size: 14px; }
.prov-sec { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 54px; }
.prov-sec-head { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--text); text-align: left; }
.prov-sec-head b { font-size: 20px; }
.prov-sec-head .prov-go { font-size: 24px; margin-top: -2px; }
.prov-sec-head small { margin-left: auto; }
.prov-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 2px; }
.prov-row .prov-card { flex: 0 0 clamp(108px, 31%, 170px); scroll-snap-align: start; }
.prov-back { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 20px; }
.prov-back span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--s2); }

/* Карточки игр как в лобби крупных казино: три в ряд, узкие зазоры, умеренное скругление */
:root { --card-gap: 4px; --card-r: 12px; }
.lobby, .prov-grid { gap: var(--card-gap); }
@media (max-width: 720px) { .lobby { grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); } .prov-grid { gap: var(--card-gap); } }
.game-card, .prov-card { border-radius: var(--card-r); }
.prov-row { gap: var(--card-gap); }
.prov-row .prov-card { flex: 0 0 calc((100% - var(--card-gap) * 2) / 3); min-width: 0; }
@media (min-width: 721px) { .prov-row .prov-card { flex-basis: clamp(132px, 15%, 190px); } }

/* Лобби: поиск и Providers, заголовки строк со стрелками */
.prov-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.prov-bar .input { height: 46px; }
.prov-bar-btn { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--r); background: var(--s2); color: var(--text); font-weight: 600; font-size: 15px; }
.prov-bar-btn span { display: grid; width: 20px; }
.prov-sec-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prov-sec-top .prov-sec-head { width: auto; }
.prov-arrows { display: flex; gap: 6px; }
.prov-arrows button { width: 36px; height: 34px; border-radius: 10px; background: var(--s2); color: var(--text); font-size: 22px; line-height: 1; }
.prov-arrows button:active { background: var(--s3); }
.lobby-holder .lobby { margin-bottom: 18px; }
.prov-row .game-card { flex: 0 0 calc((100% - var(--card-gap) * 2) / 3); min-width: 0; scroll-snap-align: start; }
@media (min-width: 721px) { .prov-row .game-card { flex-basis: clamp(132px, 15%, 190px); } }

/* Шторка выбора провайдера */
.sheet-wrap { position: fixed; inset: 0; z-index: 450; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / 55%); animation: sheet-fade .2s ease-out both; }
.sheet { width: min(100%, 560px); max-height: 88vh; display: flex; flex-direction: column; gap: 12px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: rgb(24 26 38 / 97%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 -12px 40px rgb(0 0 0 / 50%); animation: sheet-up .28s cubic-bezier(.22,.8,.3,1) both; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head b { font-size: 26px; }
.sheet-close { width: 38px; height: 38px; border-radius: 50%; background: var(--s2); color: var(--text); font-size: 16px; }
.sheet .input { height: 46px; }
.sheet-body { display: flex; flex-direction: column; gap: 18px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.sheet-group { display: flex; flex-direction: column; gap: 10px; }
.sheet-label { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--s2); font-weight: 600; font-size: 12.5px; }
.sheet-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sheet-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 10px 8px; border-radius: 16px; background: var(--s2); color: var(--text); font-weight: 600; font-size: 13.5px; text-align: center; transition: transform .12s, background .15s; }
.sheet-tile:active { transform: scale(.97); }
.sheet-tile.on { background: var(--s3); box-shadow: inset 0 0 0 2px var(--green); }
.sheet-tile .prov-badge { width: 46px; height: 46px; font-size: 16px; }
.sheet-tile .prov-badge.all { font-size: 20px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes sheet-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-wrap { animation: none; } }
.sheet .input, .sheet-head { flex: none; } .sheet .input { height: 46px; min-height: 46px; }

/* плитки в шторке: широкий логотип на светлой или тёмной подложке, как в лобби крупных казино */
.sheet-art { display: grid; place-items: center; width: 100%; height: 42px; }
.sheet-logo { max-width: 86%; max-height: 38px; object-fit: contain; }
.sheet-tile.wide.light { background: #f2f2f5; color: #1b1c26; }
.sheet-tile.wide.dark { background: #15161f; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%); }
.sheet-tile.wide.on { box-shadow: inset 0 0 0 2px var(--green); }
.sheet-tile .prov-badge { width: 40px; height: 40px; font-size: 14px; }
/* все плитки светлые, как в образце; тёмная подложка только у светлых (белых) логотипов */
.sheet-tile { background: #f2f2f5; color: #1b1c26; }
.sheet-tile .prov-badge.all { background: #dcdce3; color: #1b1c26; }
.sheet-tile.on { box-shadow: inset 0 0 0 2px var(--green); }
.sheet-tile.wide.dark { background: #15161f; color: #fff; }
/* шторка провайдеров: светлая, как в образце */
.sheet-wrap { background: rgb(0 0 0 / 45%); }
.sheet { background: #fff; color: #15161f; box-shadow: 0 -12px 40px rgb(0 0 0 / 35%); }
.sheet-head b { color: #15161f; }
.sheet-close { background: #ececf0; color: #15161f; }
.sheet .input { background: #f2f2f5; color: #15161f; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sheet .input::placeholder { color: #8a8c99; }
.sheet-label { background: #f2f2f5; color: #15161f; }
.sheet-tile { background: #f4f4f7; color: #1b1c26; }
.sheet-tile .prov-badge.all { background: #dcdce3; color: #1b1c26; }
.sheet-tile.on { box-shadow: inset 0 0 0 2px #1c9c4a; }
.sheet .muted { color: #6b6d7a; }

/* умеренные скругления в лобби, как в образце */
.lobby-tab, .prov-sub { border-radius: 12px; }
.prov-bar .input, .prov-bar-btn { border-radius: 12px; }
.sheet-label { border-radius: 8px; }
.sheet { border-radius: 20px 20px 0 0; }
.sheet-tile { border-radius: 14px; }
.prov-arrows button { border-radius: 8px; }

/* Лобби: размеры по образцу (замерены на странице крупного казино, экран 375 px) */
:root { --card-gap: 4px; --card-r: 10px; }
.game-card, .prov-card { aspect-ratio: 111.7 / 152.4; border-radius: var(--card-r); }
@media (max-width: 720px) { .view.is-lobby { padding-left: 16px; padding-right: 16px; } }
.is-lobby .lobby-tabs { gap: 8px; margin-bottom: 14px; }
.is-lobby .lobby-tab { flex: 0 0 auto; height: 36px; padding: 8px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.is-lobby .prov-bar { gap: 8px; }
.is-lobby .prov-bar .input, .is-lobby .prov-bar-btn { height: 44px; min-height: 44px; border-radius: 12px; padding: 0 16px; font-size: 14px; }
.is-lobby .prov-bar-btn { font-weight: 600; padding: 0 20px; }
.is-lobby .prov-live { gap: 22px; }
.is-lobby .prov-sec { gap: 14px; }
.is-lobby .prov-sec-head b { font-size: 16px; font-weight: 600; }
.is-lobby .prov-sec-head .prov-go { font-size: 22px; }
.is-lobby .prov-arrows button { width: 36px; height: 36px; border-radius: 10px; }
.is-lobby .prov-row, .is-lobby .prov-grid, .is-lobby .lobby { gap: var(--card-gap); }
.is-lobby .prov-row .prov-card, .is-lobby .prov-row .game-card { flex: 0 0 calc((100% - var(--card-gap) * 2) / 3); }
.is-lobby .notice { border-radius: 12px; }
.is-lobby .prov-bar { grid-template-columns: 1fr 1fr; } .is-lobby .prov-bar-btn { justify-content: center; }

/* значки в лобби: поиск и заголовки строк */
.prov-search { position: relative; display: block; min-width: 0; }
.prov-search-icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; display: grid; }
.prov-search .input { width: 100%; padding-left: 44px; }
.prov-sec-icon { flex: none; display: grid; width: 28px; height: 28px; color: var(--text); }
.prov-sec-icon svg { width: 100%; height: 100%; }
.prov-sec-head { gap: 10px; }
.is-lobby .prov-bar .prov-search .input { padding-left: 44px; }

.prov-row { scroll-snap-type: x mandatory; scroll-padding-left: 0; }

/* Бонусы, Рейтинг, Профиль: умеренные скругления */
.page .box, .page .box.daily, .page .box.pf-head { border-radius: 14px; }
.page .chips.page-tabs, .page .page-tabs { border-radius: 12px; }
.page .chips .chip { border-radius: 9px; }
.page .kpi, .page .quest { border-radius: 10px; }
.page .btn, .page .btn-bet, .page .quest .btn { border-radius: 10px; }
.page .row { border-radius: 8px; }
.page .input, .page select.input { border-radius: 10px; }
.page .award { border-radius: 12px; }

/* Пока идёт игра провайдера, страница под ней не рисуется: стекло, анимации и ленты не греют телефон */
.provider-playing #app { display: none; }
.provider-playing .provider-player { contain: strict; }

/* Лобби до ответа сервера: заглушка вместо прежней сетки */
.sk-lobby { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap, 4px); }
.sk-lobby .sk { aspect-ratio: 111.7 / 152.4; border-radius: var(--card-r, 10px); }

/* Заглушки с мерцанием: первый экран, лента крупных выигрышей, последние ставки */
.feed-sk { height: 32px; margin: 8px 0; border-radius: 8px; }

/* Пока обложка грузится, тёмное затемнение снизу не гасит мерцание */
.prov-card:has(img:not(.ready))::after { opacity: 0; }

/* Обложки и заглушки карточек: пульсация вместо бегущего блика */
@keyframes cover-pulse { 0%, 100% { background-color: var(--s2); } 50% { background-color: rgb(255 255 255 / 20%); } }
.prov-pic, .sk-card .sk { background: var(--s2); background-image: none; animation: cover-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .prov-pic, .sk-card .sk { animation: none; } }

/* Низ главной страницы: разделы, карточки, соцсети */
.ft { margin-top: 28px; display: grid; gap: 14px; }
.ft-group { display: grid; }
.ft-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; background: none; color: var(--text); font-size: 18px; }
.ft-head span { display: grid; color: var(--muted); transition: transform .2s; }
.ft-head.open span { transform: rotate(180deg); }
.ft-list { display: grid; }
.ft-list[hidden] { display: none; }
.ft-link { text-align: left; padding: 11px 2px; background: none; color: var(--muted); font-size: 16px; }
.ft-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; border-radius: 14px; background: var(--s1); color: var(--text); text-decoration: none; }
.ft-card-text { display: grid; gap: 6px; min-width: 0; }
.ft-card-title { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.ft-pill { padding: 1px 8px; border-radius: 999px; background: #fff; color: #000; font-size: 13px; font-weight: 600; }
.ft-go { color: var(--muted); }
.ft-art { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #4b79a8, #2b4f78); color: #fff; }
.ft-art svg { width: 28px; height: 28px; }
.ft-social { display: flex; gap: 8px; }
.ft-social a { width: 48px; height: 44px; border-radius: 12px; background: var(--s1); display: grid; place-items: center; color: var(--text); }
.ft-social svg { width: 22px; height: 22px; }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 0; }
.ft-age { font-size: 22px; color: var(--muted); }
button.ft-card { width: 100%; text-align: left; }
.ft-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* Горячие клавиши: подпись клавиши в углу кнопки и окно со списком — только там, где есть мышь и клавиатура */
.kbd-btn { font-size: 18px; }
.kbd-list { display: grid; gap: 10px; }
.kbd-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; font-size: 14px; }
.kbd-keys { display: flex; flex-wrap: wrap; gap: 4px; }
kbd { min-width: 24px; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, currentColor 8%, transparent); border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-bottom-width: 2px; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  button[data-hint] { position: relative; }
  button[data-hint]::after { content: attr(data-hint); position: absolute; top: 4px; right: 6px; min-width: 14px; padding: 0 4px; border-radius: 4px; background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; opacity: .7; font-size: 10px; font-weight: 600; line-height: 15px; text-align: center; pointer-events: none; }
}
@media not ((hover: hover) and (pointer: fine)) { .kbd-btn { display: none; } }
/* рамка выбора клетки стрелками (Mines, Keno) */
[data-cursor] { outline: 3px solid var(--green); outline-offset: 3px; transform: translateY(-2px); filter: brightness(1.25); z-index: 1; }

/* ---------- Поддержка: обращения и переписка ---------- */
.sp { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; width: 100%; }
.sp-loading { display: grid; gap: 10px; } .sp-loading .sk { height: 72px; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 14px; background: var(--s1); }
.sp-new, .sp-send { display: inline-flex; align-items: center; gap: 6px; }
.sp-new svg { width: 18px; height: 18px; }
.sp-note { padding: 12px 14px; border-radius: 12px; background: var(--s2); color: var(--muted); }
.sp-note a { color: var(--blue); }
.sp-list { display: grid; gap: 8px; }
.sp-item { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--s1); color: inherit; text-decoration: none; border: 1px solid transparent; transition: background .12s; }
.sp-item:hover { background: var(--s2); }
.sp-item.new { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.sp-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-item-text { color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.sp-item-foot { display: flex; align-items: center; gap: 8px; }
.sp-badge, .sp-unread { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #05080a; font-size: 11px; font-weight: 700; }
.sp-unread[hidden] { display: none; }
.sp-pill { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--s3); color: var(--muted); white-space: nowrap; }
.sp-pill.sp-open { background: color-mix(in srgb, var(--yellow) 18%, transparent); color: var(--yellow); }
.sp-pill.sp-progress { background: color-mix(in srgb, var(--blue) 22%, transparent); color: #7fb4ff; }
.sp-pill.sp-waiting { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.sp-pill.sp-resolved { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--muted); }
.sp-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; text-align: center; border-radius: 14px; background: var(--s1); }
.sp-empty svg { width: 36px; height: 36px; opacity: .6; }
.sp-alt { align-self: center; }
.sp-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; }
.sp-back svg { width: 18px; height: 18px; }
.sp-card { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: var(--s1); }
.sp-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-cat { padding: 8px 14px; border-radius: 999px; background: var(--s2); font-weight: 600; }
.sp-cat.on { background: var(--blue); color: #fff; }
.sp-composer { display: grid; gap: 8px; padding: 8px; border-radius: 12px; background: var(--s2); border: 1px dashed transparent; }
.sp-composer.drop { border-color: var(--green); }
.sp-input { width: 100%; min-height: 76px; resize: vertical; padding: 10px; border-radius: 10px; border: 0; background: var(--bg); color: var(--text); font: inherit; }
.sp-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-hint { flex: 1; min-width: 120px; }
.sp-attach { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: var(--r); background: var(--s3); font-weight: 600; }
.sp-attach svg { width: 18px; height: 18px; }
.sp-pending { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-pending[hidden] { display: none; }
.sp-chip { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--s3); }
.sp-chip img { width: 100%; height: 100%; object-fit: cover; }
.sp-chip.busy img { opacity: .4; }
.sp-chip.busy::after { content: ''; position: absolute; inset: 22px; border: 3px solid var(--text); border-right-color: transparent; border-radius: 50%; animation: sp-spin .8s linear infinite; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
.sp-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / 65%); }
.sp-x svg { width: 12px; height: 12px; }
.sp-thead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--s3); }
.sp-feed { display: flex; flex-direction: column; gap: 10px; max-height: min(60vh, 640px); overflow-y: auto; padding: 4px 2px; }
.sp-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; background: var(--s2); display: grid; gap: 6px; }
.sp-msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--blue) 35%, var(--s2)); border-bottom-right-radius: 4px; }
.sp-msg.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.sp-who { font-size: 12px; font-weight: 600; color: var(--green); }
.sp-text { white-space: pre-wrap; word-break: break-word; }
.sp-at { font-size: 11px; color: var(--muted); justify-self: end; }
.sp-sys { align-self: center; max-width: 90%; text-align: center; font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
.sp-sys span { font-size: 11px; opacity: .7; }
.sp-files { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-thumb { width: 96px; height: 96px; padding: 0; border-radius: 10px; overflow: hidden; background: var(--s3); }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-broken { visibility: hidden; }
.sp-viewer { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / 88%); }
.sp-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.sp-viewer-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 14%); }
.sp-viewer-x svg { width: 20px; height: 20px; }
.sp-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--s2); }
.sp-rate span { flex: 1; }
.sp-rate-btn { width: 44px; height: 40px; border-radius: 10px; background: var(--s3); font-size: 20px; }
.sp-rate-btn.on { background: var(--blue); }
.side-support .sp-unread { margin-left: auto; }
@media (max-width: 560px) { .sp-hint { display: none; } .sp-msg { max-width: 92%; } .sp-thumb { width: 84px; height: 84px; } }

/* Метка режима игры провайдера для сотрудников: premium — дороже по комиссии */
.prov-mode { position: absolute; top: 6px; left: 6px; z-index: 2; padding: 2px 6px; border-radius: 6px; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; color: #fff; background: rgba(40, 90, 200, .88); pointer-events: none; }
.prov-mode.premium { color: #2b1d00; background: #ffc83d; }

/* История ставок (public/js/bets.js) */
.bh-sum { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .bh-sum { grid-template-columns: repeat(4, 1fr); } }
.bh-chips { overflow-x: auto; scrollbar-width: none; }
.bh-chips::-webkit-scrollbar { display: none; }
.bh-chips .chip { flex: 1 0 auto; padding: 0 12px; white-space: nowrap; }
.bh-game { width: 100%; }
.bh-list { display: flex; flex-direction: column; gap: 6px; }
.bh-day { margin: 10px 2px 2px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r); background: var(--s1); color: var(--text); text-align: left; }
.bh-row.tap:active { background: var(--s2); }
.bh-main, .bh-num { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bh-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-num { align-items: flex-end; text-align: right; flex: none; }
.bh-num b { font-size: 15px; }

/* ---------- Фоны слотов: картинка лежит под всей игрой (поле, кнопки, панель ставки), а не только под полем;
   панель и нижняя полоса полупрозрачные с размытием, чтобы надписи читались ---------- */
.game-bonanza, .game-olympus, .game-doghouse, .game-slots { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); background: var(--bg-fill); }
.game-bonanza::before, .game-olympus::before, .game-doghouse::before, .game-slots::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; z-index: -1; pointer-events: none; aspect-ratio: var(--bg-ratio);
  background: var(--bg-img) center / 100% 100% no-repeat; /* на телефоне — во всю ширину без обрезки по бокам, внизу плавно переходит в цвет --bg-fill */
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent);
}
.game-bonanza { --bg-ratio: 1200 / 1607; --panel: 44 14 78; --bg-fill: #e9a7d6; --bg-img: url('/img/slot-bg/bonanza.webp'); }
.game-olympus { --bg-ratio: 1200 / 1607; --panel: 8 14 44; --bg-fill: #7f93bf; --bg-img: url('/img/slot-bg/olympus.webp'); }
.game-doghouse { --bg-ratio: 1200 / 1607; --panel: 12 44 30; --bg-fill: #5f8f27; --bg-img: url('/img/slot-bg/doghouse.webp'); }
.game-slots { --bg-ratio: 1000 / 1339; --panel: 36 4 14; --bg-fill: #6a2a14; --bg-img: url('/img/slot-bg/slots.webp'); }
html[data-theme] :is(.game-bonanza, .game-olympus, .game-doghouse, .game-slots) :is(.game-main, .stage) { background: transparent; border-color: transparent; }
html[data-theme] :is(.game-bonanza, .game-olympus, .game-doghouse, .game-slots) .panel { background: rgb(var(--panel) / 68%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-theme] :is(.game-bonanza, .game-olympus, .game-doghouse, .game-slots) .game-footer { background: rgb(var(--panel) / 72%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top-color: rgb(255 255 255 / 8%); }
html[data-theme] :is(.game-bonanza, .game-olympus, .game-doghouse, .game-slots) .slot-info { background: rgb(var(--panel) / 62%); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* широкий экран: картинка на всю игру (обрезается по высоте, боковые символы остаются) */
@media (min-width: 720px) {
  .game-bonanza::before, .game-olympus::before, .game-doghouse::before, .game-slots::before { bottom: 0; aspect-ratio: auto; background-size: cover; background-position: center; -webkit-mask-image: none; mask-image: none; }
}

/* верификация: ячейки фото */
.kyc-slot { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--l-in, #f1f2f4); border: 1.5px dashed var(--l-line, #cfd3d9); text-align: left; color: var(--l-text, #111318); }
.kyc-slot img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex: none; }
.kyc-slot span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.kyc-slot small { color: var(--l-muted, #6b7079); font-size: 12px; }
.kyc-slot.busy { opacity: .6; }
.kyc-slot.done { border-style: solid; border-color: var(--l-green, #00b552); }
.sh-p.warn { color: #ff8a8a; }

/* плашка «Нужно пройти KYC» (kyc-bar.js): фиксирована сверху на всех экранах, контент сдвигается на её высоту */
:root { --kyc-h: 0px; }
html.has-kyc { --kyc-h: 58px; }
.kyc-bar { position: fixed; z-index: 44; left: 8px; right: 8px; top: calc(env(safe-area-inset-top) + 6px); height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px; border-radius: 12px; background: #3a2406; border: 1px solid #f5a524; color: #ffe2b0; box-shadow: 0 6px 18px rgb(0 0 0 / 35%); }
.kyc-bar[hidden] { display: none; }
.kyc-bar[data-state='submitted'] { background: #0f2a4a; border-color: #3987e5; color: #cfe3ff; }
.kyc-bar[data-state='rejected'] { background: #3b0d0f; border-color: #ef4444; color: #ffd0d0; }
.kyc-bar-ico { font-size: 20px; flex: none; }
.kyc-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; }
.kyc-bar-text b { font-size: 13px; color: #fff; }
.kyc-bar-text span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.kyc-bar-btn { flex: none; height: 34px; padding: 0 12px; border-radius: 9px; background: #f5a524; color: #1a1100; font-weight: 700; font-size: 13px; }
.kyc-bar-btn[hidden] { display: none; }
html.has-kyc .has-tabbar .view { padding-top: calc(10px + env(safe-area-inset-top) + var(--kyc-h)); }
@media (min-width: 1024px) {
  .kyc-bar { left: calc(var(--side-w) + 24px); right: 24px; top: 70px; }
  html.has-kyc .has-tabbar .view, html.has-kyc .has-tabbar .view.is-lobby { padding-top: calc(88px + var(--kyc-h)); }
}

/* логотип-слово (js/logo.js и заставка в index.html): буквы — цвет текста, «x» — зелёный акцент */
.logo { height: 28px; width: auto; display: block; overflow: visible; flex: none; }
.logo path, .logo circle { stroke: currentColor; }
.logo .lx { stroke: var(--green, #00b552); }
.crumbs-brand .logo { height: 30px; }
.ft-top .logo { height: 32px; }
.splash .sp-top .logo { height: 28px; }
.sp-logo .logo { height: 64px; }

/* слоты: полоса с последними множителями занимает место всегда, даже пустая, — поле не «прыгает» вниз, когда появляется первый результат */
@media (max-width: 820px) {
  :is(.game-bonanza, .game-olympus, .game-doghouse, .game-slots) .pills:empty { height: 28px; margin-bottom: 8px; }
}
