/* Hyper Lotus Studio — общий HUD провайдера: ночной кибер-Токио, стекло, неон (фиолетовый / бирюза / розовый),
 * вертикальная стеклянная панель управления справа (на телефоне — снизу). */
:root {
  --lp-bg: #05030f; --lp-ink: #eaf6ff; --lp-mute: rgba(200,220,255,.62);
  --lp-cyan: #22f0ff; --lp-violet: #8a4dff; --lp-pink: #ff3cc8; --lp-gold: #ffe27a;
  --lp-glass: rgba(18,12,48,.48); --lp-line: rgba(140,200,255,.22);
  --lp-ui: "Inter", "Orbitron", system-ui, sans-serif; --lp-title: "Orbitron", "Inter", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body { background: var(--lp-bg); color: var(--lp-ink); font-family: var(--lp-ui); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.lp-app { position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lp-lotus { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }

/* стекло */
.lp-glass, .lp-back, .lp-bal, .lp-panel, .lp-card { background: var(--lp-glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--lp-line); }

/* верх */
.lp-top { display: flex; align-items: center; gap: 14px; padding: 12px 20px 4px; min-width: 0; }
.lp-back { flex: none; height: 40px; padding: 0 16px; border-radius: 12px; color: var(--lp-ink); font: 700 13px var(--lp-ui); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.lp-back:hover { border-color: var(--lp-cyan); box-shadow: 0 0 14px rgba(34,240,255,.35); }
.lp-title { flex: 1; min-width: 0; text-align: center; }
.lp-title b { display: block; font: 900 clamp(20px, 2.6vw, 36px)/1 var(--lp-title); letter-spacing: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(90deg, var(--lp-cyan), #ffffff 45%, var(--lp-pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(34,240,255,.45)) drop-shadow(0 0 22px rgba(255,60,200,.25)); }
.lp-title small { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 700 10.5px var(--lp-title); letter-spacing: 4px; color: var(--lp-cyan); text-shadow: 0 0 8px rgba(34,240,255,.6); }
.lp-bal { flex: none; display: flex; align-items: center; height: 40px; border-radius: 12px; overflow: hidden; }
.lp-bal .coin { width: 20px; height: 20px; margin: 0 8px 0 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--lp-cyan) 45%, #3a2aa8); box-shadow: 0 0 10px rgba(34,240,255,.7); }
.lp-bal b { font: 700 15px var(--lp-title); font-variant-numeric: tabular-nums; padding-right: 10px; letter-spacing: .5px; }
.lp-bal button { width: 40px; height: 100%; border: 0; border-left: 1px solid var(--lp-line); background: linear-gradient(180deg, rgba(255,60,200,.45), rgba(138,77,255,.45)); color: #fff; font: 900 20px var(--lp-ui); cursor: pointer; }
.lp-login { flex: none; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(34,240,255,.6); background: rgba(34,240,255,.14); color: #fff; font: 800 13px var(--lp-ui); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 0 16px rgba(34,240,255,.25); }

/* основная зона: сцена + стеклянная панель справа */
.lp-main { position: relative; display: flex; align-items: stretch; gap: 16px; min-height: 0; padding: 6px 18px 16px; }
.lp-stage { position: relative; flex: 1 1 auto; min-width: 0; }
.lp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-panel { flex: none; width: 210px; border-radius: 26px; padding: 16px 14px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; align-self: center; position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(138,77,255,.18); }
.lp-panel::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--lp-cyan), var(--lp-pink), transparent); }
.lp-badges { display: flex; flex-direction: column; gap: 8px; }
.lp-badge { padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--lp-line); text-align: center; }
.lp-badge small, .lp-box small, .lp-step small { display: block; font: 700 10px var(--lp-ui); letter-spacing: 1.6px; color: var(--lp-mute); text-transform: uppercase; }
.lp-badge b { display: block; font: 700 22px/1.15 var(--lp-title); color: var(--lp-cyan); text-shadow: 0 0 10px rgba(34,240,255,.5); font-variant-numeric: tabular-nums; }
.lp-badge.hot b { color: var(--lp-pink); text-shadow: 0 0 10px rgba(255,60,200,.55); }
.lp-box { text-align: center; padding: 4px 0; }
.lp-box b { display: block; font: 700 24px/1.1 var(--lp-title); font-variant-numeric: tabular-nums; }
.lp-box.win b { color: var(--lp-gold); text-shadow: 0 0 12px rgba(255,226,122,.45); }
.lp-step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--lp-line); }
.lp-step button { width: 100%; height: 32px; border-radius: 10px; border: 1px solid var(--lp-line); background: rgba(138,77,255,.16); color: var(--lp-ink); font-size: 14px; cursor: pointer; }
.lp-step button:hover:not(:disabled) { border-color: var(--lp-cyan); }
.lp-step button:disabled { opacity: .3; }
.lp-step .v { text-align: center; }
.lp-step .v b { font: 700 20px/1.1 var(--lp-title); font-variant-numeric: tabular-nums; }
.lp-spin { position: relative; width: 116px; height: 116px; margin: 4px auto; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 44px;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.22), rgba(138,77,255,.35) 45%, rgba(10,6,30,.9) 72%); box-shadow: 0 0 0 2px rgba(34,240,255,.55), 0 0 30px rgba(34,240,255,.35), 0 0 60px rgba(255,60,200,.2); }
.lp-spin .ring { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, var(--lp-cyan), var(--lp-violet), var(--lp-pink), var(--lp-cyan)); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); opacity: .85; }
.lp-spin svg { width: 54px; height: 54px; filter: drop-shadow(0 0 8px rgba(34,240,255,.8)); }
.lp-spin.busy .ring { animation: lprot 1s linear infinite; }
.lp-spin.busy svg { animation: lpbreath 1s ease-in-out infinite; }
.lp-spin.fast .ring { animation: lprot .4s linear infinite; }
.lp-spin.auto::after { content: attr(data-n); position: absolute; right: -2px; top: -2px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--lp-pink); color: #fff; font: 800 12px/28px var(--lp-title); box-shadow: 0 0 12px rgba(255,60,200,.6); }
.lp-spin:active { transform: scale(.97); }
@keyframes lprot { to { transform: rotate(360deg); } }
@keyframes lpbreath { 50% { transform: scale(1.1); } }
.lp-pair, .lp-icons { display: flex; gap: 8px; justify-content: center; }
.lp-ic { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--lp-line); background: rgba(255,255,255,.05); color: var(--lp-ink); font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.lp-ic:hover { border-color: var(--lp-cyan); box-shadow: 0 0 12px rgba(34,240,255,.3); }
.lp-ic.on { background: rgba(34,240,255,.2); border-color: var(--lp-cyan); color: var(--lp-cyan); }
.lp-buy { width: 100%; padding: 10px 8px; border-radius: 14px; border: 1px solid rgba(255,60,200,.65); background: linear-gradient(135deg, rgba(255,60,200,.32), rgba(138,77,255,.32)); color: #fff; cursor: pointer; box-shadow: 0 0 18px rgba(255,60,200,.25); }
.lp-buy span { display: block; font: 800 11.5px var(--lp-ui); letter-spacing: 1px; }
.lp-buy b { display: block; font: 700 18px/1.2 var(--lp-title); }
.lp-buy:disabled { opacity: .4; }

/* оверлеи */
.lp-ov { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; background: rgba(4,2,14,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 16px; }
.lp-ov.show { display: flex; }
.lp-card { position: relative; width: min(460px, 100%); max-height: 90vh; overflow: auto; padding: 26px 22px 22px; border-radius: 26px; text-align: center; border-color: rgba(34,240,255,.45);
  box-shadow: 0 0 0 1px rgba(255,60,200,.25) inset, 0 0 60px rgba(34,240,255,.18), 0 30px 70px rgba(0,0,0,.6); animation: lppop .4s cubic-bezier(.2,1.3,.4,1); background: rgba(14,9,40,.82); }
.lp-card.wide { width: min(680px, 100%); }
@keyframes lppop { from { transform: translateY(18px) scale(.94); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.lp-card h2 { font: 900 26px/1.15 var(--lp-title); letter-spacing: 3px; color: var(--lp-cyan); text-shadow: 0 0 14px rgba(34,240,255,.6); }
.lp-card h3 { font: 800 18px var(--lp-ui); letter-spacing: 2px; margin-bottom: 12px; color: var(--lp-cyan); }
.lp-card .big { font: 900 66px/1 var(--lp-title); margin: 14px 0 6px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, var(--lp-cyan) 55%, var(--lp-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(34,240,255,.45)); }
.lp-card p { color: var(--lp-mute); font: 600 14px/1.5 var(--lp-ui); margin-top: 6px; }
.lp-cta { margin-top: 18px; min-width: 200px; height: 50px; padding: 0 26px; border-radius: 14px; border: 1px solid var(--lp-cyan); background: linear-gradient(90deg, rgba(34,240,255,.28), rgba(255,60,200,.28)); color: #fff; font: 800 15px var(--lp-ui); letter-spacing: 1px; cursor: pointer; box-shadow: 0 0 20px rgba(34,240,255,.3); }
.lp-cta.alt { background: rgba(255,255,255,.05); border-color: var(--lp-line); box-shadow: none; }
.lp-cta:hover { filter: brightness(1.15); }
.lp-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--lp-line); background: rgba(255,255,255,.05); color: var(--lp-ink); cursor: pointer; }
.lp-tier { font: 900 44px/1 var(--lp-title); letter-spacing: 3px; color: var(--lp-pink); text-shadow: 0 0 18px rgba(255,60,200,.7), 0 0 40px rgba(138,77,255,.5); }
.lp-tier.pop { animation: lptier .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes lptier { from { transform: scale(1.5); filter: blur(4px); } to { transform: none; filter: none; } }
.lp-rules { text-align: left; }
.lp-rules li { margin: 0 0 8px 18px; font: 500 13.5px/1.55 var(--lp-ui); color: rgba(234,246,255,.88); }
.lp-pay { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.lp-pay .it { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--lp-line); }
.lp-pay img { width: 46px; height: 46px; }
.lp-pay .t { font: 600 11.5px/1.35 var(--lp-ui); color: var(--lp-mute); text-align: left; }
.lp-pay .t b { color: var(--lp-ink); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.lp-chips button { height: 40px; min-width: 56px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--lp-line); background: rgba(255,255,255,.05); color: #fff; font: 700 15px var(--lp-title); cursor: pointer; }
.lp-chips button.sel { border-color: var(--lp-cyan); background: rgba(34,240,255,.2); color: var(--lp-cyan); }
.lp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--lp-line); font: 700 14px var(--lp-ui); text-align: left; cursor: pointer; }
.switch { width: 48px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.12); border: 1px solid var(--lp-line); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch.on { background: rgba(34,240,255,.45); border-color: var(--lp-cyan); } .switch.on::after { left: 25px; }
#settings .sheet { text-align: left; } #settings .sheet h3 { text-align: center; }
.lp-replay { position: fixed; left: 50%; top: 62px; transform: translateX(-50%); z-index: 6; padding: 6px 14px; border-radius: 10px; background: rgba(14,9,40,.85); border: 1px solid var(--lp-cyan); color: #fff; font: 700 13px var(--lp-ui); display: none; }

/* телефон: панель вниз горизонтально */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .lp-top { padding: 8px 10px 2px; gap: 8px; }
  .lp-back { height: 36px; padding: 0 12px; } .lp-back span { display: none; }
  .lp-title b { font-size: 15px; letter-spacing: 2px; } .lp-title small { display: none; }
  .lp-bal { height: 36px; } .lp-bal b { font-size: 12.5px; } .lp-bal .coin { width: 16px; height: 16px; margin: 0 6px 0 8px; } .lp-bal button { width: 34px; }
  .lp-login { height: 36px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
  .lp-main { flex-direction: column; gap: 8px; padding: 2px 8px 8px; }
  .lp-stage { flex: 1 1 0; min-height: 0; }
  .lp-panel { width: 100%; align-self: stretch; border-radius: 22px; padding: 10px; gap: 8px; margin-top: 40px;
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "badges badges win spin" "icons step step spin"; align-items: center; }
  .lp-badges { grid-area: badges; flex-direction: row; } .lp-badge { flex: 1 1 auto; min-width: 0; padding: 5px 4px; } .lp-badge b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lp-badge small { font-size: 8.5px; letter-spacing: .6px; }
  .lp-buy { position: absolute; left: 12px; top: -46px; width: auto; height: 36px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,60,200,.55), rgba(138,77,255,.55)); } .lp-buy span { font-size: 10px; letter-spacing: .3px; white-space: nowrap; } .lp-buy b { font-size: 14px; white-space: nowrap; }
  .lp-box.win { grid-area: win; } .lp-box b { font-size: 15px; white-space: nowrap; } .lp-box small { font-size: 8.5px; }
  .lp-step { grid-area: step; flex-direction: row; padding: 4px; } .lp-step button { width: 30px; height: 30px; flex: none; font-size: 12px; } .lp-step .v { flex: 1; min-width: 0; } .lp-step .v b { font-size: 14px; } .lp-step small { font-size: 8px; letter-spacing: .4px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lp-step #betUp { order: 3; } .lp-step #betDown { order: 1; } .lp-step .v { order: 2; }
  .lp-spin { grid-area: spin; width: 86px; height: 86px; margin: 0 0 0 4px; } .lp-spin svg { width: 40px; height: 40px; }
  .lp-icons { grid-area: icons; display: grid; grid-template-columns: repeat(4, auto); gap: 4px; }
  .lp-pair { position: absolute; right: 12px; top: -46px; }
  .lp-ic { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
  .lp-pair .lp-ic { width: 36px; height: 36px; background: rgba(18,12,48,.7); }
  .lp-card .big { font-size: 48px; } .lp-card h2 { font-size: 21px; }
}
/* мобильный слой v2: START без задержки/отмены тапа; кнопки ≥40px; узкий телефон — 3 ряда; ландшафт — доска слева, панель справа */
#spinBtn { touch-action: none; -webkit-touch-callout: none; }
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  html body .lp-back { height: 40px; min-width: 40px; justify-content: center; }
  html body .lp-bal { height: 42px; } html body .lp-bal button { width: 40px; }
  html body .lp-ic, html body .lp-pair .lp-ic { width: 40px; height: 40px; }
  html body .lp-step button { width: 40px; height: 40px; }
  html body .lp-buy { height: 40px; top: -48px; } html body .lp-pair { top: -48px; }
  html body .lp-panel { margin-top: 48px; }
}
@media (max-width: 520px) and (max-aspect-ratio: 1/1) {
  html body .lp-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 84px !important; grid-template-areas: "badges badges badges" "win win spin" "step step spin" "icons icons icons" !important; gap: 6px 8px !important; }
  html body .lp-icons { display: flex !important; gap: 8px !important; justify-content: flex-start; }
  html body .lp-spin { width: 84px; height: 84px; margin: 0 !important; }
  html body .lp-box.win { text-align: center; min-width: 0; } html body .lp-box.win b { overflow: hidden; text-overflow: ellipsis; }
  html body .lp-icons { justify-content: center !important; } html body .lp-title b { font-size: 13px; letter-spacing: 1px; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1000px) {
  html body .lp-app { grid-template-columns: minmax(0, 1fr) 236px !important; grid-template-rows: auto minmax(0, 1fr) !important; grid-template-areas: "top panel" "stage panel" !important; column-gap: 8px; }
  html body .lp-top { grid-area: top; padding: 4px 8px 0 !important; }
  html body .lp-main { display: contents !important; }
  html body .lp-stage { grid-area: stage; min-width: 0; min-height: 0; margin: 2px 0 6px 8px; }
  html body .lp-panel { grid-area: panel; width: auto !important; flex: none !important; margin: 6px 6px 6px 0 !important; align-self: stretch !important; overflow-y: auto; padding: 8px !important; gap: 6px !important; border-radius: 20px !important;
    display: grid !important; grid-template-columns: minmax(0, 1fr) 80px !important; grid-template-rows: none !important; grid-template-areas: "win win" "badges badges" "buy buy" "step step" "pair spin" "icons icons" !important; align-content: space-evenly; align-items: center; }
  html body .lp-buy { position: static !important; grid-area: buy; width: 100% !important; justify-content: center; }
  html body .lp-pair { position: static !important; grid-area: pair; }
  html body .lp-icons { display: flex !important; justify-content: center; gap: 6px !important; }
  html body .lp-spin { width: 76px !important; height: 76px !important; margin: 0 !important; }
  html body .lp-box.win b { font-size: 18px; }
}
/* модалки выше экрана (ландшафт телефона) прокручиваются, верх не обрезается */
.lp-ov.show { align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; }
.lp-ov.show > * { margin: auto; flex: none; max-width: 100%; }
/* MOBHUD (2026-11-26): телефон — иконки сверху панели, ставка отодвинута от START */
@media (max-width: 520px) and (max-aspect-ratio: 1/1) {
  html body .lp-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 106px !important; grid-template-areas: "icons icons icons" "badges badges badges" "win win spin" "step step spin" !important; }
  html body .lp-spin { justify-self: end; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1000px) {
  html body .lp-panel { grid-template-areas: "win win" "icons icons" "badges badges" "buy buy" "step step" "pair spin" !important; }
  html body .lp-spin { margin-top: 12px !important; }
  html body .lp-pair { justify-self: start; }
}

/* ===== others_fix 28.11: безопасные зоны, нота wm.js, крупнее HUD на больших ПК, телефон — всё внутри панели, касания ≥44px, 21+ ===== */
.lp-app { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lp-ov { padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lp-replay { top: calc(62px + env(safe-area-inset-top, 0px)); }
/* кнопка-нота из wm.js: svg без размера — подгоняем под остальные иконки (Font Awesome ≈ 1em) */
#wmMusicBtn svg { width: 1.05em; height: 1.05em; display: block; }
.lp-age { margin-top: 14px !important; font: 600 12px/1.5 var(--lp-ui) !important; color: var(--lp-mute); text-align: center; }
.lp-age a { color: var(--lp-cyan); }
.lp-badges .lp-badge { min-width: 0; }
/* большие ПК: колонка и надписи крупнее (на 1600–1920 текст был 9–10px) */
@media (min-width: 1440px) and (min-height: 860px) and (min-aspect-ratio: 1/1) {
  .lp-panel { width: 232px; }
  .lp-badge small, .lp-box small, .lp-step small { font-size: 12px; letter-spacing: 1.2px; }
  .lp-buy span { font-size: 12.5px; }
  .lp-back { font-size: 14.5px; } .lp-bal b { font-size: 16.5px; }
}
@media (min-width: 1800px) and (min-height: 1000px) and (min-aspect-ratio: 1/1) {
  .lp-panel, .lp-top { zoom: 1.18; }
}
/* телефон / планшет вертикально: покупка, турбо и авто — внутри панели; ряды ровные; поле получает освободившуюся высоту */
@media (max-aspect-ratio: 1/1) {
  html body .lp-main { gap: 6px; padding: 2px 8px 8px; }
  html body .lp-panel { margin-top: 0 !important; width: 100%; max-width: 600px; align-self: center !important; padding: 10px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 100px !important; grid-template-areas: "icons icons pair" "badges badges spin" "win buy spin" "step step spin" !important; gap: 6px 8px !important; align-items: center; }
  html body .lp-icons { grid-area: icons; display: flex !important; gap: 6px !important; justify-content: flex-start !important; }
  html body .lp-pair { position: static !important; grid-area: pair; justify-self: end; gap: 6px; }
  html body .lp-badges { flex-direction: row; gap: 8px; } html body .lp-badges .lp-badge { flex: 1 1 0; }
  html body .lp-box.win { grid-area: win; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
  html body .lp-panel:has(#buyBtn[style*="none"]) .lp-box.win { grid-column: 1 / 3; }
  html body .lp-buy { position: static !important; grid-area: buy; width: 100% !important; top: auto; left: auto; height: auto; min-height: 44px; align-self: stretch; flex-direction: column; gap: 0; justify-content: center; }
  html body .lp-buy span { font-size: 10px; letter-spacing: .2px; white-space: nowrap; } html body .lp-buy b { font-size: 14px; white-space: nowrap; }
  html body .lp-spin { grid-area: spin; width: 96px; height: 96px; justify-self: end; align-self: center; margin: 0 !important; }
}
/* касания: цели не меньше 44px */
@media (pointer: coarse) {
  html body .lp-ic, html body .lp-pair .lp-ic, html body .lp-step button { width: 44px; height: 44px; }
  html body .lp-back { height: 44px; min-width: 44px; } html body .lp-bal { height: 44px; } html body .lp-bal button { width: 44px; } html body .lp-login { height: 44px; }
  .lp-x { width: 44px; height: 44px; right: 10px; top: 10px; }
  .lp-chips button { height: 44px; } .lp-row { min-height: 48px; }
}
@media (pointer: coarse) and (max-aspect-ratio: 1/1) { html body .lp-step button { width: 44px; height: 44px; } html body .lp-step { padding: 2px; } }
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1000px) {
  html body .lp-icons { gap: 4px !important; } html body .lp-panel { gap: 5px !important; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 760px) {
  html body .lp-app { grid-template-columns: minmax(0, 1fr) 204px !important; }
  html body .lp-panel { grid-template-columns: minmax(0, 1fr) 72px !important; }
  html body .lp-spin { width: 70px !important; height: 70px !important; }
}
/* иконка Telegram на кнопке входа — встроенная маска вместо шрифта Font Awesome Brands (−115 КБ при загрузке) */
.lp-login .fa-telegram { font-family: inherit !important; display: inline-block; width: .97em; 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; }
.lp-login .fa-telegram::before { content: none !important; }
/* планшет вертикально: панель в два ряда (поле получает больше высоты) */
@media (max-aspect-ratio: 1/1) and (min-width: 600px) {
  html body .lp-panel { max-width: none; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto 100px !important;
    grid-template-areas: "icons badges badges pair spin" "step win buy buy spin" !important; }
}

/* полосы прокрутки (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; }
