/* Electric Play — общий HUD провайдера: светлый глянец, неон (бирюза/лайм/розовый/электрик), капсула снизу.
 * Раскладка (v5, 2026-11-28): hud.js ставит на <html> класс режима и --epz (масштаб HUD):
 *   ep-w — ПК/планшет альбом: верхние кнопки (назад, баланс) поверх сцены в углах, бейджи слева, капсула снизу;
 *          размер HUD растёт с высотой окна (~9.5% высоты, 64…104px);
 *   ep-p — портрет: верхняя строка [назад][бейджи/покупка][баланс], поле, капсула в 2 ряда;
 *   ep-l — телефон альбом: поле слева на всю высоту, справа колонка (назад+баланс, покупка, пульт).
 * Безопасные зоны env(safe-area-inset-*) — со всех сторон. */
:root {
  --ep-ink: #1b1640; --ep-mute: #6d6a95; --ep-cyan: #17d4e8; --ep-blue: #2a6bff; --ep-pink: #ff3d9a; --ep-lime: #a6f03a; --ep-sun: #ffd23f;
  --ep-glass: rgba(255,255,255,.72); --ep-line: rgba(42,107,255,.18);
  --ep-ui: "Inter", "Fredoka", system-ui, sans-serif; --ep-title: "Fredoka", "Inter", sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body { background: #e9f3ff; color: var(--ep-ink); font-family: var(--ep-ui); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.ep-app { position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: var(--sat) var(--sar) var(--sab) var(--sal); }

/* Telegram — inline SVG вместо шрифта Font Awesome Brands (115 КБ ради одной иконки) */
.fa-brands.fa-telegram { font-family: inherit !important; width: 1em; height: 1em; vertical-align: -.125em; }
.fa-brands.fa-telegram::before { content: ""; display: block; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath d='M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm115 168.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7.2-.7.3-3.1-1.2-4.4s-3.6-.8-5.1-.5q-3.3.7-104.6 69.1-14.8 10.2-26.9 9.9c-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3q.8-6.7 18.5-13.7 108.4-47.2 144.6-62.3c68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6.5 9.6 2.9a10.5 10.5 0 0 1 3.5 6.7 43.8 43.8 0 0 1 .5 9.9z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath d='M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm115 168.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7.2-.7.3-3.1-1.2-4.4s-3.6-.8-5.1-.5q-3.3.7-104.6 69.1-14.8 10.2-26.9 9.9c-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3q.8-6.7 18.5-13.7 108.4-47.2 144.6-62.3c68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6.5 9.6 2.9a10.5 10.5 0 0 1 3.5 6.7 43.8 43.8 0 0 1 .5 9.9z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* верх */
.ep-top { display: flex; align-items: center; gap: 12px; padding: 10px 18px 4px; min-width: 0; }
.ep-back { flex: none; height: 42px; min-width: 42px; padding: 0 16px; border-radius: 21px; border: 2px solid #fff; background: var(--ep-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ep-ink); font: 800 14px var(--ep-ui); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 6px 18px rgba(42,107,255,.18); }
.ep-title { flex: 1; min-width: 0; text-align: center; }
.ep-title b { display: block; font: 700 clamp(18px, 2.4vw, 34px)/1.1 var(--ep-title); letter-spacing: .5px; color: #fff;
  -webkit-text-stroke: 2px var(--ep-ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ep-ink), 0 8px 22px rgba(42,107,255,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-bal { flex: none; display: flex; align-items: center; height: 42px; border-radius: 21px; background: var(--ep-glass); border: 2px solid #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(42,107,255,.18); overflow: hidden; }
.ep-bal .coin { flex: none; width: 22px; height: 22px; margin: 0 8px 0 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, #ffd23f 55%, #e89a00); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.ep-bal b { font: 900 16px var(--ep-ui); font-variant-numeric: tabular-nums; padding-right: 10px; white-space: nowrap; }
.ep-bal button { flex: none; width: 42px; height: 100%; border: 0; background: linear-gradient(180deg, #b8ff6a, var(--ep-lime)); color: var(--ep-ink); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.ep-login { flex: none; height: 42px; padding: 0 18px; border-radius: 21px; border: 0; background: linear-gradient(180deg, #4fd6ff, var(--ep-blue)); color: #fff; font: 900 14px var(--ep-ui); box-shadow: 0 6px 18px rgba(42,107,255,.35); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* сцена */
.ep-main { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; padding: 4px 16px; }
.ep-stage { position: relative; height: 100%; width: 100%; }
.ep-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ep-badges { z-index: 3; display: flex; flex-direction: column; gap: 12px; }
.ep-badge { min-width: 128px; padding: 10px 14px; border-radius: 20px; background: var(--ep-glass); border: 2px solid #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 24px rgba(42,107,255,.2); text-align: center; }
.ep-badge small { display: block; font: 900 10.5px var(--ep-ui); letter-spacing: 1.5px; color: var(--ep-mute); text-transform: uppercase; white-space: nowrap; }
.ep-badge b { display: block; font: 700 28px/1.1 var(--ep-title); color: var(--ep-blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-badge.hot b { color: var(--ep-pink); }
.ep-buy { width: 100%; padding: 12px 10px; border-radius: 20px; border: 0; cursor: pointer; background: linear-gradient(160deg, #ff7ac0, var(--ep-pink) 55%, #c4136b); color: #fff; font: 900 13px/1.25 var(--ep-ui); white-space: nowrap; box-shadow: 0 10px 24px rgba(255,61,154,.4), inset 0 2px 0 rgba(255,255,255,.4); }
.ep-buy b { display: block; font: 700 22px var(--ep-title); }
.ep-buy:disabled { filter: grayscale(.6); opacity: .6; }

/* нижняя капсула */
.ep-bar { position: relative; z-index: 4; margin: 0 16px 14px; padding: 10px 12px 10px 14px; border-radius: 40px; background: var(--ep-glass); border: 2px solid #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(42,107,255,.25); display: flex; align-items: center; gap: 10px; }
.ep-bar .g1 { display: flex; gap: 8px; }
.ep-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ep-ink); font-size: 17px; cursor: pointer; box-shadow: 0 4px 10px rgba(42,107,255,.15), inset 0 -3px 0 rgba(42,107,255,.12); display: grid; place-items: center; }
.ep-ic svg { width: 20px; height: 20px; }
.ep-ic.on { background: var(--ep-lime); }
.ep-ic:active { transform: translateY(1px); }
.ep-sep { flex: 1; }
.ep-box { flex: none; padding: 0 6px; text-align: center; min-width: 96px; }
.ep-box small { display: block; font: 900 10.5px var(--ep-ui); letter-spacing: 1.5px; color: var(--ep-mute); text-transform: uppercase; white-space: nowrap; }
.ep-box b { display: block; font: 700 24px/1.1 var(--ep-title); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.ep-box.win b { color: var(--ep-pink); }
.ep-step { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 30px; background: #fff; box-shadow: inset 0 -3px 0 rgba(42,107,255,.12); }
.ep-step button { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #e9f6ff, #cfe6ff); color: var(--ep-blue); font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.ep-step button:disabled { opacity: .35; }
.ep-step .v { min-width: 86px; text-align: center; overflow: hidden; }
.ep-step .v small { display: block; font: 900 9.5px var(--ep-ui); letter-spacing: 1px; color: var(--ep-mute); white-space: nowrap; }
.ep-step .v b { display: block; font: 700 20px/1.05 var(--ep-title); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-spin { flex: none; position: relative; width: 92px; height: 92px; margin: -24px 0 -24px 6px; border-radius: 50%; border: 5px solid #fff; cursor: pointer;
  background: conic-gradient(from 200deg, var(--ep-cyan), var(--ep-blue), var(--ep-pink), var(--ep-cyan)); box-shadow: 0 14px 34px rgba(42,107,255,.45), inset 0 0 0 4px rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; }
.ep-spin i { font-size: 34px; filter: drop-shadow(0 3px 0 rgba(27,22,64,.45)); transition: transform .3s; }
.ep-spin.busy i { animation: epbolt .7s linear infinite; }
.ep-spin.auto::after { content: attr(data-n); position: absolute; right: -4px; top: -4px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--ep-sun); color: var(--ep-ink); font: 900 13px/24px var(--ep-ui); border: 2px solid #fff; }
.ep-spin.fast { animation: eppulse .5s ease-in-out infinite; }
#spinBtn { touch-action: none; -webkit-touch-callout: none; }
@keyframes epbolt { 0%, 100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(12deg) scale(1.12); } }
@keyframes eppulse { 50% { box-shadow: 0 0 0 10px rgba(23,212,232,.25), 0 14px 34px rgba(42,107,255,.45); } }

/* оверлеи */
.ep-ov { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; background: rgba(233,243,255,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal)); }
.ep-ov.show { display: flex; align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; }
.ep-ov.show > * { margin: auto; flex: none; max-width: 100%; }
.ep-card { position: relative; width: min(460px, 100%); max-height: 90vh; overflow: auto; padding: 26px 22px 22px; border-radius: 30px; background: #fff; border: 3px solid var(--ep-ink);
  box-shadow: 0 10px 0 var(--ep-ink), 0 30px 60px rgba(42,107,255,.35); text-align: center; animation: eppop .35s cubic-bezier(.2,1.5,.4,1); overflow-wrap: break-word; }
@keyframes eppop { from { transform: scale(.7) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ep-card h2 { font: 700 34px/1.05 var(--ep-title); color: var(--ep-blue); -webkit-text-stroke: 1.5px var(--ep-ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ep-ink); }
.ep-card h3 { font: 900 20px var(--ep-ui); margin: 0 44px 12px; }
.ep-card .big { font: 700 72px/1 var(--ep-title); margin: 14px 0 6px; color: var(--ep-pink); -webkit-text-stroke: 2px var(--ep-ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ep-ink); font-variant-numeric: tabular-nums; }
.ep-card p { color: var(--ep-mute); font: 700 14px/1.5 var(--ep-ui); margin-top: 6px; }
.ep-cta { margin-top: 18px; min-width: 200px; height: 54px; padding: 0 26px; border-radius: 27px; border: 3px solid var(--ep-ink); background: linear-gradient(180deg, #b8ff6a, var(--ep-lime)); color: var(--ep-ink); font: 900 17px var(--ep-ui); cursor: pointer; box-shadow: 0 5px 0 var(--ep-ink); }
.ep-cta.alt { background: #fff; }
.ep-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ep-ink); }
.ep-x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ep-ink); background: #fff; color: var(--ep-ink); cursor: pointer; font-size: 16px; display: grid; place-items: center; }
.ep-tier { font: 700 46px/1 var(--ep-title); color: var(--ep-sun); -webkit-text-stroke: 2px var(--ep-ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ep-ink); }
.ep-tier.pop { animation: eptier .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes eptier { from { transform: scale(1.6); } to { transform: none; } }
#bigwin .ep-card { background: radial-gradient(circle at 50% 30%, #fffbe0, #fff 60%); }
.ep-rules { text-align: left; }
.ep-rules li { margin: 0 0 8px 18px; font: 600 13.5px/1.5 var(--ep-ui); color: var(--ep-ink); }
.ep-age { margin-top: 12px !important; font: 700 12px/1.5 var(--ep-ui) !important; color: var(--ep-mute); text-align: center; }
.ep-age a { color: var(--ep-blue); font-weight: 900; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ep-pay { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.ep-pay .it { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 14px; background: #f1f7ff; min-width: 0; }
.ep-pay img { width: 46px; height: 46px; }
.ep-pay .t { font: 700 11.5px/1.35 var(--ep-ui); color: var(--ep-mute); text-align: left; min-width: 0; }
.ep-pay .t b { color: var(--ep-ink); }
.ep-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.ep-chips button { height: 44px; min-width: 0; padding: 0 4px; border-radius: 22px; border: 2px solid var(--ep-ink); background: #fff; font: 900 15px var(--ep-ui); cursor: pointer; }
.ep-chips button.sel { background: var(--ep-cyan); }
.ep-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 4px; border-top: 1px solid #e4eefc; font: 800 14px var(--ep-ui); text-align: left; cursor: pointer; }
.switch { width: 50px; height: 28px; border-radius: 14px; background: #cdd9ee; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .2s; }
.switch.on { background: var(--ep-lime); } .switch.on::after { left: 25px; }
#settings .sheet { text-align: left; }
#settings .sheet h3 { text-align: center; }
/* громкость (ползунки wm.js) — цвета Electric: читаемые % на белом */
#settings .wm-vol { border-bottom: 1px solid #e4eefc; }
#settings .wm-vol .t b { color: var(--ep-blue); font-weight: 900; }
#settings .wm-vol input[type=range] { background: linear-gradient(90deg, var(--ep-cyan), var(--ep-blue)); }
#settings .wm-vol input[type=range]::-webkit-slider-thumb { background: #fff; border: 3px solid var(--ep-blue); box-shadow: 0 2px 6px rgba(42,107,255,.35); }
#settings .wm-vol input[type=range]::-moz-range-thumb { background: #fff; border: 3px solid var(--ep-blue); }
.ep-replay { position: fixed; left: 50%; top: calc(64px + var(--sat)); transform: translateX(-50%); z-index: 6; padding: 6px 14px; border-radius: 16px; background: var(--ep-ink); color: #fff; font: 800 13px var(--ep-ui); display: none; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===================================================== ep-w: ПК / планшет альбом */
html.ep-w .ep-app { grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "main" "bar"; }
html.ep-w .ep-top { display: contents; }
html.ep-w .ep-title { display: none; }
html.ep-w .ep-back { position: absolute; z-index: 6; left: calc(14px + var(--sal)); top: calc(10px + var(--sat)); zoom: var(--epz, 1); }
html.ep-w .ep-bal, html.ep-w .ep-login { position: absolute; z-index: 6; right: calc(14px + var(--sar)); top: calc(10px + var(--sat)); zoom: var(--epz, 1); }
html.ep-w .ep-badges { position: absolute; left: calc(18px + var(--sal)); top: 46%; transform: translateY(-50%); zoom: var(--epz, 1); }
html.ep-w .ep-main { grid-area: main; padding: 8px 16px 6px; }
html.ep-w .ep-bar { grid-area: bar; zoom: var(--epz, 1); margin: 0 16px 16px; }

/* ===================================================== ep-p: портрет (телефон, планшет) */
html.ep-p .ep-top, html.ep-l .ep-top { padding: 8px 8px 4px; gap: 6px; zoom: var(--epz, 1); }
html.ep-p .ep-title, html.ep-l .ep-title { display: none; }
html.ep-p .ep-back, html.ep-l .ep-back { width: 44px; height: 44px; padding: 0; } html.ep-p .ep-back span, html.ep-l .ep-back span { display: none; }
html.ep-p .ep-bal, html.ep-l .ep-bal { height: 44px; } html.ep-p .ep-bal b, html.ep-l .ep-bal b { font-size: 14px; padding-right: 8px; }
html.ep-p .ep-bal .coin, html.ep-l .ep-bal .coin { width: 18px; height: 18px; margin: 0 6px 0 8px; } html.ep-p .ep-bal button, html.ep-l .ep-bal button { width: 44px; }
html.ep-p .ep-login, html.ep-l .ep-login { height: 44px; padding: 0 14px; font-size: 13px; }
html.ep-p .ep-badges, html.ep-l .ep-badges { flex: 1 1 0; min-width: 0; flex-direction: row; gap: 6px; }
html.ep-p .ep-badge, html.ep-l .ep-badge { flex: 1 1 0; min-width: 0; height: 44px; padding: 3px 6px; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; }
html.ep-p .ep-badge small, html.ep-l .ep-badge small { font-size: 8.5px; letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; }
html.ep-p .ep-badge b, html.ep-l .ep-badge b { font-size: 17px; line-height: 1.05; }
html.ep-p .ep-buy, html.ep-l .ep-buy { flex: 1 1 0; min-width: 0; width: auto; height: 44px; padding: 2px 8px; border-radius: 14px; font-size: 10px; line-height: 1.15; overflow: hidden; }
html.ep-p .ep-buy b, html.ep-l .ep-buy b { font-size: 16px; line-height: 1.05; }
html:not(.ep-w) .ep-badge.info { display: none !important; }
html.ep-p .ep-main { padding: 2px 8px; }
html.ep-p .ep-bar { width: calc(100% - 16px); max-width: 560px; margin: 0 auto 8px; zoom: var(--epz, 1); padding: 8px 10px; border-radius: 28px;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 80px; grid-template-rows: 44px 80px; gap: 6px; align-items: center; }
html.ep-p .ep-bar .ep-sep { display: none; }
html.ep-p #turboBtn { grid-row: 1; grid-column: 1; justify-self: start; }
html.ep-p #autoBtn { grid-row: 1; grid-column: 2; justify-self: start; }
html.ep-p .ep-bar .g1 { grid-row: 1; grid-column: 2 / 4; justify-self: end; gap: 4px; }
html.ep-p .ep-bar .ep-box.win { grid-row: 2; grid-column: 1; min-width: 0; padding: 0; }
html.ep-p .ep-bar .ep-step { grid-row: 2; grid-column: 2; min-width: 0; gap: 4px; }
html.ep-p .ep-bar .ep-spin { grid-row: 2; grid-column: 3; width: 80px; height: 80px; margin: 0; border-width: 4px; }
html.ep-p .ep-spin i, html.ep-l .ep-spin i { font-size: 30px; }

/* ===================================================== ep-l: телефон альбом */
html.ep-l .ep-app { grid-template-columns: minmax(0, 1fr) 228px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "main top" "main bar"; }
html.ep-l .ep-top { grid-area: top; flex-wrap: wrap; padding: 6px 6px 0 0; }
html.ep-l .ep-bal, html.ep-l .ep-login { margin-left: auto; }
html.ep-l .ep-badges { order: 3; flex: 1 0 100%; }
html.ep-l .ep-main { grid-area: main; padding: 6px; }
html.ep-l .ep-bar { grid-area: bar; margin: 6px 6px 6px 0; border-radius: 24px; padding: 8px; min-height: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "win win win" "t spin a" "step step step" "g1 g1 g1"; align-content: space-evenly; justify-items: center; gap: 6px; }
html.ep-l .ep-bar .ep-sep { display: none; }
html.ep-l .ep-bar .ep-box.win { grid-area: win; min-width: 0; width: 100%; padding: 0; }
html.ep-l #turboBtn { grid-area: t; } html.ep-l #autoBtn { grid-area: a; }
html.ep-l .ep-bar .ep-spin { grid-area: spin; width: 72px; height: 72px; margin: 0; border-width: 4px; }
html.ep-l .ep-bar .ep-step { grid-area: step; width: 100%; gap: 4px; }
html.ep-l .ep-bar .g1 { grid-area: g1; gap: 4px; }

/* общее для телефонов: компактные цифры */
html:not(.ep-w) .ep-box b { font-size: 17px; }
html:not(.ep-w) .ep-box small, html:not(.ep-w) .ep-step .v small { font-size: 8.5px; letter-spacing: .2px; }
html:not(.ep-w) .ep-step button { width: 44px; height: 44px; }
html:not(.ep-w) .ep-step .v { flex: 1; min-width: 0; }
html:not(.ep-w) .ep-step .v b { font-size: 16px; }
html:not(.ep-w) .ep-ic { font-size: 16px; }
html:not(.ep-w) .ep-card .big { font-size: 54px; } html:not(.ep-w) .ep-card h2 { font-size: 28px; }
html:not(.ep-w) .ep-card { padding: 22px 16px 18px; }

/* сенсор: все цели ≥44px */
@media (pointer: coarse) {
  .ep-back, .ep-bal, .ep-login { height: 44px; min-width: 44px; } .ep-bal button { width: 44px; }
  .ep-ic, .ep-step button, .ep-x { width: 44px; height: 44px; }
  .ep-buy { min-height: 44px; }
}
/* баланс: кнопка «+» — полные 44px внутри канта */
html.ep-p .ep-bal, html.ep-l .ep-bal { height: 50px; border-radius: 25px; }
@media (pointer: coarse) { .ep-bal { height: 50px; border-radius: 25px; } }
/* узкие телефоны (≤370): ставке — больше места, подпись «BET» целиком */
@media (max-width: 370px) {
  html.ep-p .ep-bar { grid-template-columns: 54px minmax(0, 1fr) 76px; padding: 8px; gap: 6px 5px; }
  html.ep-p .ep-bar .ep-spin { width: 76px; height: 76px; }
}

/* полосы прокрутки (01.12): тонкие, тёмная дорожка, стальной бегунок, мятный при наведении (как в оболочке brink.bet) */
* { scrollbar-width: thin; scrollbar-color: rgba(120,138,180,.45) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,138,180,.45); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2FE6B8; }
::-webkit-scrollbar-corner { background: transparent; }
