/* Игры: Ракетка, Канат, Мины, Дайс — в стиле мини-аппа (переменные из drade.css: --card, --line, --acc, --fh …) */

/* в нижнем меню теперь 6 пунктов */
.mob_menu_list .mob_menu_item { max-width: calc(100% / 6) !important; min-width: 0; }
.mob_menu_list .mob_menu_item p { font-size: 11px !important; }

/* «Улучшить» на экране выигрыша — большая синяя */
.win-upgrade-btn { width: 100%; padding: 16px 0; border: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 800 18px/1 var(--fh); letter-spacing: .3px; color: #fff; background: linear-gradient(135deg, #1d6bff, #2f8cff 55%, #3aa0ff);
  box-shadow: 0 8px 26px rgba(29, 107, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s var(--spring), filter .2s; }
.win-upgrade-btn:active { transform: scale(.97); filter: brightness(.95); }

/* раздел игр — слой поверх приложения, как апгрейд: иначе он оказывается под .app-container (min-height: 100vh)
   и при входе виден пустой экран, а игры — только после прокрутки */
.gms { position: absolute; top: 0; left: 0; right: 0; z-index: 5; min-height: 100vh; background-color: var(--bg); padding: 70px 12px 120px !important; color: var(--text); }
.gms > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.gms > .gms-sheet { max-width: none; }
.gms.hidden { display: none !important; }
.gms .hidden { display: none !important; }
.gms-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.gms-head .dd-title { font: 800 24px/1 var(--fh) !important; text-transform: uppercase; letter-spacing: .6px; color: #fff; margin: 0; }
.gms-topup { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: #fff; cursor: pointer; }
.gms-topup-bal { font: 800 15px/1 var(--fh); }
.gms-topup-plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 20px/1 var(--fh); color: var(--on-acc); background: var(--hot); }
.gms-star { color: var(--gold); font-style: normal; }

.gms-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; margin-bottom: 12px; border-radius: 18px; background: #151517; border: 1.5px solid var(--line); }
.gms-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 7px; border-radius: 13px; border: none; background: transparent; color: var(--mute);
  cursor: pointer; transition: background .25s var(--ease), color .25s; }
.gms-tab img { width: 30px; height: 30px; object-fit: contain; filter: saturate(.6) brightness(.8); transition: transform .35s var(--spring), filter .25s; }
.gms-tab.active img { filter: drop-shadow(0 4px 10px rgba(255, 140, 0, .45)); transform: translateY(-2px) scale(1.12); }
.gms-tab span { font: 700 12px/1 var(--fh); }
.gms-tab.active { background: linear-gradient(180deg, rgba(255, 153, 0, .22), rgba(255, 153, 0, .08)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 153, 0, .35); }
.gms-tab:active { transform: scale(.95); }

.gms-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 14px; margin-bottom: 10px; }
.gms-controls { display: flex; flex-direction: column; gap: 10px; }
.gms-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gms-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gms-field > span { font: 600 13px/1 var(--fh); color: var(--mute); }
.gms-input { display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 12px; border-radius: 14px; background: var(--card2); border: 1.5px solid var(--line); }
.gms-input:focus-within { border-color: rgba(255, 153, 0, .6); }
.gms-input input { flex: 1; min-width: 0; height: 100%; background: transparent; border: none; outline: none; color: #fff; font: 800 18px/1 var(--fh); -moz-appearance: textfield; }
.gms-input input::-webkit-outer-spin-button, .gms-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gms-input input:disabled { opacity: .55; }
.gms-input > i { font-style: normal; color: var(--mute); font-weight: 700; }
.gms-quick { display: flex; gap: 6px; }
.gms-quick button { flex: 1; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: #151517; color: #e8e8ea; font: 700 13px/1 var(--fh); cursor: pointer; }
.gms-quick button:active { transform: scale(.94); }
.gms-go { height: 56px; border: none; border-radius: 16px; cursor: pointer; font: 800 18px/1 var(--fh); color: var(--on-acc); background: var(--hot);
  box-shadow: 0 8px 24px var(--acc-glow); transition: transform .2s var(--spring), filter .2s, opacity .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.gms-go small { font-size: 14px; opacity: .8; }
.gms-go:active { transform: scale(.97); }
.gms-go:disabled { opacity: .5; box-shadow: none; cursor: default; }
.gms-go.cash { color: #062814; background: linear-gradient(135deg, #5cffa5, #39d98a 60%, #22b56f); box-shadow: 0 8px 24px rgba(57, 217, 138, .4); }
.gms-hint { margin: 2px 2px 0; font: 500 12px/1.45 var(--fb); color: var(--mute); }

/* ---------- Ракетка ---------- */
/* сцена + управление помещаются в экран без прокрутки; список ставок — ниже */
.crash-stage { position: relative; height: clamp(190px, calc(var(--tg-viewport-stable-height, 100dvh) - 450px), 400px); margin-bottom: 10px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 70% at 30% 100%, rgba(255, 110, 30, .28), transparent 60%), radial-gradient(80% 80% at 80% 10%, rgba(120, 60, 220, .35), transparent 65%), #07061a;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .07), 0 18px 40px rgba(0, 0, 0, .55); }
.crash-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; z-index: 0; }
.crash-stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(5, 5, 16, .55), transparent 22%, transparent 70%, rgba(5, 5, 16, .7)); }
.crash-top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; gap: 8px; align-items: center; }
.crash-hist { flex: 1; min-width: 0; display: flex; gap: 5px; overflow: hidden; mask-image: linear-gradient(90deg, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); }
.crash-hist button { flex: none; padding: 5px 9px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .1); font: 800 11px/1 var(--fh); color: #ff8b8b; cursor: pointer;
  background: rgba(12, 12, 28, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.crash-hist button.mid { color: #8fb4ff; } .crash-hist button.hi { color: #ffd65a; border-color: rgba(255, 214, 90, .35); }
.crash-hist button.new { animation: histIn .6s cubic-bezier(.22, .9, .3, 1); }
@keyframes histIn { from { transform: translateX(-14px); opacity: 0; } }
.gms-histbtn { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(12, 12, 28, .55); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gms-histbtn:active { transform: scale(.92); }
/* HUD — в левом верхнем углу: траектория идёт слева снизу вправо вверх и эту зону не пересекает */
.crash-hud { position: absolute; left: 16px; top: 54px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; pointer-events: none; }
.crash-phase { padding: 5px 12px; border-radius: 999px; font: 800 11px/1 var(--fh); letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255, 255, 255, .85);
  background: rgba(12, 12, 28, .5); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.crash-mult { font: 900 italic clamp(40px, 12.5vw, 64px)/.95 var(--fh); color: #fff; letter-spacing: -1px; font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 30px rgba(0, 0, 0, .6); transition: color .3s; }
.crash-stage.fly .crash-mult { background: linear-gradient(180deg, #fff6d8 10%, #ffc93a 55%, #ff8a1a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 160, 40, .45)); text-shadow: none; }
.crash-stage.crash .crash-mult { color: #ff4d5e; text-shadow: 0 0 24px rgba(255, 60, 80, .45), 0 3px 0 rgba(0, 0, 0, .35); }
.crash-stage.bet .crash-mult { font-size: clamp(34px, 10.5vw, 52px); }
.crash-timer { width: 128px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; opacity: 0; transition: opacity .3s; }
.crash-stage.bet .crash-timer { opacity: 1; }
.crash-timer i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb23a, #ff6a1a); transform-origin: left; }
.crash-win { padding: 7px 12px; border-radius: 12px; font: 900 16px/1 var(--fh); color: #062814; background: linear-gradient(135deg, #7dffb8, #2fd486);
  box-shadow: 0 8px 24px rgba(47, 212, 134, .4), inset 0 1px 0 rgba(255, 255, 255, .5); display: flex; align-items: center; gap: 6px; animation: winIn .5s cubic-bezier(.22, .9, .3, 1); }
.crash-win[hidden] { display: none; }
.crash-win img { width: 18px; height: 18px; }
@keyframes winIn { from { transform: translateY(8px); opacity: 0; } }
/* справа снизу: слева внизу — точка старта ракеты */
.crash-foot { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; gap: 6px; pointer-events: none; }
.crash-foot span { display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 10px; font: 700 12px/1 var(--fb); color: rgba(255, 255, 255, .75);
  background: rgba(12, 12, 28, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.crash-foot b { font: 800 13px/1 var(--fh); color: #fff; }
.crash-foot img { width: 16px; height: 16px; }
.crash-stage.no3d .crash-mult { color: #fff; }

.crash-controls { gap: 8px; padding: 12px; }
.crash-controls .gms-input { height: 46px; }
.gms-star-img { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 2px 4px rgba(255, 180, 0, .35)); }
.gms-go { position: relative; overflow: hidden; }
.gms-go::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-100%); animation: goShine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes goShine { 60%, 100% { transform: translateX(100%); } }
.gms-go:disabled::after { display: none; }
.gms-go.wait { color: #fff; background: linear-gradient(135deg, #3a3a48, #2a2a36); box-shadow: none; }
.gms-go.queued { color: #fff; background: linear-gradient(135deg, #5b4fd6, #7a5cff); box-shadow: 0 8px 24px rgba(110, 80, 255, .4); }
.gms-go.cash { animation: cashPulse 1s ease-in-out infinite alternate; }
@keyframes cashPulse { to { box-shadow: 0 8px 34px rgba(57, 217, 138, .75); } }

.crash-bets { padding: 12px 10px 6px; }
.crash-bets-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.crash-bets-head b { font: 800 14px/1 var(--fh); color: #fff; }
.crash-bets-head span { font: 600 12px/1 var(--fb); color: var(--mute); }
.crash-bets-list { display: flex; flex-direction: column; gap: 4px; }
.cb-row { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 13px; background: rgba(255, 255, 255, .03);
  animation: cbIn .35s var(--ease); transition: background .3s; }
@keyframes cbIn { from { opacity: 0; transform: translateY(6px); } }
.cb-row.me { background: rgba(255, 153, 0, .1); box-shadow: inset 0 0 0 1px rgba(255, 153, 0, .35); }
.cb-row.won { background: rgba(57, 217, 138, .09); }
.cb-row.lost { opacity: .5; }
.cb-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #23232b; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.cb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1.1 var(--fb); color: #fff; }
.cb-bet { display: flex; align-items: center; gap: 4px; font: 800 13px/1 var(--fh); color: #fff; }
.cb-bet img { width: 15px; height: 15px; }
.cb-res { min-width: 64px; text-align: right; font: 800 12px/1.15 var(--fh); color: var(--mute); }
.cb-res.won { color: var(--green); } .cb-res.lost { color: #ff6b6b; }
.cb-res small { display: block; font-size: 11px; opacity: .85; }
.crash-bets-empty { padding: 14px 4px 12px; text-align: center; font: 600 12px/1.4 var(--fb); color: var(--mute); }

/* «Мои игры» — нижний лист, общий для всех режимов */
.gms-sheet { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: sheetFade .25s; }
.gms-sheet-box { width: 100%; max-height: 72vh; display: flex; flex-direction: column; border-radius: 24px 24px 0 0; background: #141418; border-top: 1.5px solid var(--line);
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); animation: sheetUp .35s var(--spring); }
@keyframes sheetFade { from { opacity: 0; } } @keyframes sheetUp { from { transform: translateY(100%); } }
.gms-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; }
.gms-sheet-head b { font: 800 17px/1 var(--fh); color: #fff; }
.gms-sheet-x { width: 32px; height: 32px; border-radius: 10px; border: none; background: #23232b; color: #fff; font-size: 14px; cursor: pointer; }
.gms-sheet-list { overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.gh-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); }
.gh-row b { font: 800 14px/1 var(--fh); color: #fff; }
.gh-row .r { text-align: right; font: 800 14px/1 var(--fh); }
.gh-row .r.win { color: var(--green); } .gh-row .r.lose { color: #ff6b6b; } .gh-row .r.refund { color: var(--mute); }
.gh-row small { font: 600 11px/1 var(--fb); color: var(--mute); }
.gh-row small:last-child { text-align: right; }

/* ---------- Канат ---------- */
.rope-arena { position: relative; padding: 16px 12px 12px; overflow: hidden; border: none;
  background: linear-gradient(90deg, #8f2b2e 0%, #3a1c22 48%, #172446 52%, #1f4fa3 100%); }
.rope-arena::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed rgba(255, 255, 255, .25); pointer-events: none; }
.rope-arena.win-red { box-shadow: inset 0 0 0 2px #ff5a5a, 0 0 30px rgba(255, 77, 77, .35); }
.rope-arena.win-blue { box-shadow: inset 0 0 0 2px #4d8dff, 0 0 30px rgba(77, 141, 255, .35); }
.rope-status { position: relative; z-index: 1; width: max-content; margin: 0 auto 18px; padding: 8px 16px; border-radius: 10px; background: rgba(10, 14, 30, .75); border: 1.5px solid #3a6bff;
  font: 800 12px/1 var(--fh); letter-spacing: 1px; color: #7aa6ff; }
.rope-status.live { color: #fff; border-color: var(--acc2); }
.rope-status.hurry { color: #ffd2d2; border-color: var(--red); animation: upgPulse .5s ease-in-out infinite alternate; }
.rope-status.done { color: #fff; border-color: #fff; }
.rope-line { position: relative; z-index: 1; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.rope-team { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 800 11px/1 var(--fh); letter-spacing: .5px; }
.rope-team.red { color: #ff6b6b; } .rope-team.blue { color: #6fa2ff; }
.rope-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: #1d2030; border: 3px solid currentColor; }
.rope-track { position: relative; height: 46px; margin-top: -18px; }
.rope-cord { position: absolute; left: -6px; right: -6px; top: 50%; height: 4px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #e9e9ee 0 9px, rgba(233, 233, 238, .35) 9px 13px); border-radius: 2px; }
.rope-mid { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .15); }
.rope-knot { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  font: 900 16px/1 var(--fh); color: #3b2a00; background: #ffc61a; box-shadow: 0 0 0 4px rgba(255, 198, 26, .3), 0 0 16px rgba(255, 198, 26, .7); transition: left .8s var(--spring); }
.rope-knot.tug { animation: ropeTug .4s var(--spring); }
@keyframes ropeTug { 50% { transform: translate(-50%, -50%) scale(1.35); } }
.rope-banks { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 18px; font: 600 11px/1 var(--fb); color: rgba(255, 255, 255, .7); }
.rope-banks i { font-style: normal; }
.rope-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 4px; }
.rope-stats span { display: block; font: 600 12px/1.2 var(--fb); color: var(--mute); margin-bottom: 6px; }
.rope-stats b { font: 800 16px/1.1 var(--fh); color: #fff; }
.rope-stats b.blue { color: #6fa2ff; } .rope-stats b.red { color: #ff6b6b; }
#ropeFee { font-size: 12px; color: var(--mute); }
.rope-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rope-bet { height: 58px; border: none; border-radius: 999px; cursor: pointer; color: #fff; font: 800 15px/1.1 var(--fh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: transform .2s var(--spring), opacity .2s; }
.rope-bet small { font-size: 12px; opacity: .85; }
.rope-bet.red { background: linear-gradient(135deg, #ff6464, #e23d3d); box-shadow: 0 8px 22px rgba(226, 61, 61, .35); }
.rope-bet.blue { background: linear-gradient(135deg, #4d8dff, #2b67e8); box-shadow: 0 8px 22px rgba(43, 103, 232, .35); }
.rope-bet:active { transform: scale(.96); }
.rope-bet:disabled { opacity: .35; box-shadow: none; cursor: default; }
.rope-hist { display: flex; gap: 5px; min-height: 10px; }
.rope-hist i { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.rope-hist i.red { background: #ff5a5a; } .rope-hist i.blue { background: #4d8dff; }

/* ---------- Мины ---------- */
.mines-top { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 12px 8px; }
.mines-top span { display: block; font: 600 12px/1 var(--fb); color: var(--mute); margin-bottom: 6px; }
.mines-top b { font: 800 17px/1 var(--fh); color: #fff; }
#minesNext { color: var(--acc2); } #minesWin { color: var(--green); }
.mines-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; }
.mine-cell { aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--line); background: linear-gradient(180deg, #2a2a2e, #1f1f22); font-size: clamp(20px, 7vw, 28px);
  display: grid; place-items: center; cursor: default; transition: transform .2s var(--spring), background .25s, opacity .25s; padding: 0; }
.mines-board.active .mine-cell:not(:disabled) { cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35); }
.mines-board.active .mine-cell:not(:disabled):active { transform: scale(.9); }
.mine-cell.gem { background: radial-gradient(circle, rgba(57, 217, 138, .3), rgba(57, 217, 138, .08)); border-color: rgba(57, 217, 138, .6); animation: mineFlip .35s var(--spring); }
.mine-cell.bomb { background: rgba(255, 77, 77, .12); border-color: rgba(255, 77, 77, .4); }
.mine-cell.hit { background: radial-gradient(circle, rgba(255, 77, 77, .6), rgba(255, 77, 77, .15)); border-color: var(--red); animation: ddShake .5s var(--ease); }
.mine-cell.dim { opacity: .45; }
@keyframes mineFlip { from { transform: rotateY(90deg) scale(.8); } to { transform: none; } }

/* ---------- Дайс ---------- */
.dice-slider-card { padding: 14px 16px 22px; }
.dice-range-label { font: 600 13px/1 var(--fb); color: var(--mute); margin-bottom: 14px; }
.dice-scale { display: flex; justify-content: space-between; font: 700 12px/1 var(--fh); color: #c9c9ce; margin: 0 11px 10px; }   /* центры подписей = крайние точки бегунка (23px от краёв) */
.dice-scale span { position: relative; width: 24px; text-align: center; }
.dice-scale span::after { content: '▾'; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-size: 10px; color: #6d6d73; }
/* бегунок 46px ходит от 23px до (ширина − 23px): граница цветов и метка результата считаются так же */
.dice-track { --tv: 50; --at: calc(23px + (100% - 46px) * var(--tv) / 100); --lo: #ff3b4e; --hi: #1ee36a; position: relative; height: 28px; margin-top: 18px; border-radius: 999px;
  background: linear-gradient(90deg, var(--lo) 0 var(--at), var(--hi) var(--at) 100%); box-shadow: 0 0 18px rgba(255, 59, 78, .35), 0 0 18px rgba(30, 227, 106, .25); }
.dice-track::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, .13) 0 6px, transparent 6px 12px); pointer-events: none; }
.dice-track.under { --lo: #1ee36a; --hi: #ff3b4e; }
.dice-track input[type=range] { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 28px; margin: 0; transform: translateY(-50%); background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.dice-track input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 28px; }
.dice-track input[type=range]::-moz-range-track { background: transparent; height: 28px; }
.dice-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 46px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle, #5b4fd6 0 38%, #fff 40%); box-shadow: 0 4px 14px rgba(0, 0, 0, .55); }
.dice-track input[type=range]::-moz-range-thumb { width: 46px; height: 46px; border: none; border-radius: 50%; background: radial-gradient(circle, #5b4fd6 0 38%, #fff 40%); box-shadow: 0 4px 14px rgba(0, 0, 0, .55); }
.dice-result { position: absolute; bottom: calc(100% + 10px); transform: translateX(-50%); z-index: 2; pointer-events: none; transition: left .6s var(--ease); }
.dice-result b { display: block; padding: 6px 10px; border-radius: 10px; font: 800 15px/1 var(--fh); color: #fff; background: #2a2a2e; position: relative; }
.dice-result b::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #2a2a2e; }
.dice-result.win b { background: #1fb85b; } .dice-result.win b::after { border-top-color: #1fb85b; }
.dice-result.lose b { background: #e23d4e; } .dice-result.lose b::after { border-top-color: #e23d4e; }
.dice-result.pop b { animation: dicePop .45s var(--spring); }
@keyframes dicePop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.dice-fields { display: flex; flex-direction: column; gap: 12px; }
.dice-swap { flex: none; width: 34px; height: 34px; border-radius: 10px; border: none; background: transparent; color: var(--mute); font-size: 20px; cursor: pointer; }
.dice-swap:active { transform: scale(.9); color: #fff; }

/* ---------- 3D-иконки и компактная раскладка в Канате, Минах, Дайсе ---------- */
.gms-histbtn.corner { position: absolute; top: 12px; right: 12px; z-index: 2; }
.rope-badge { width: 52px; height: 52px; background: radial-gradient(circle at 35% 30%, #2c3044, #12141f); box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12); }
.rope-badge img { width: 34px; height: 34px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.rope-team.red .rope-badge { box-shadow: 0 0 22px rgba(255, 90, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .12); }
.rope-team.blue .rope-badge { box-shadow: 0 0 22px rgba(80, 150, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .12); }
.rope-banks img { width: 14px; height: 14px; vertical-align: -2px; }
.rope-arena { padding-top: 14px; }
.rope-status { margin-bottom: 14px; }
details.gms-hint summary { cursor: pointer; font-weight: 700; color: #cfcfd4; list-style: none; }
details.gms-hint summary::-webkit-details-marker { display: none; }
details.gms-hint summary::after { content: ' ▾'; color: var(--mute); }
details.gms-hint[open] summary { margin-bottom: 6px; }

.mines-top { position: relative; grid-template-columns: repeat(3, 1fr) 34px; align-items: center; }
.mines-top .gms-histbtn { background: #1f1f25; border-color: var(--line); }
/* поле не шире, чем позволяет высота экрана: кнопка «Играть» видна без прокрутки */
.mines-board { width: min(100%, calc(100dvh - 400px)); min-width: 250px; margin-left: auto; margin-right: auto; gap: 7px; padding: 10px; }
.mine-cell { border: none; border-radius: 13px; background: linear-gradient(180deg, #34343c, #23232a 55%, #1b1b20);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .12), inset 0 -4px 0 rgba(0, 0, 0, .4), 0 3px 8px rgba(0, 0, 0, .35); }
.mines-board.active .mine-cell:not(:disabled) { background: linear-gradient(180deg, #3d3a48, #2a2733 55%, #201e27); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .16), inset 0 -4px 0 rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .4); }
.mine-cell img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); animation: mineImg .45s var(--spring); }
@keyframes mineImg { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
.mine-cell.gem { background: radial-gradient(circle at 50% 40%, rgba(80, 255, 170, .35), rgba(20, 90, 60, .25)); box-shadow: inset 0 0 0 1.5px rgba(57, 217, 138, .6), 0 0 16px rgba(57, 217, 138, .3); }
.mine-cell.bomb { background: radial-gradient(circle at 50% 40%, rgba(255, 90, 90, .2), rgba(60, 20, 20, .3)); box-shadow: inset 0 0 0 1.5px rgba(255, 77, 77, .35); }
.mine-cell.hit { box-shadow: inset 0 0 0 2px var(--red), 0 0 22px rgba(255, 77, 77, .6); }

.dice-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dice-head .dice-range-label { margin: 0; flex: 1; }
.dice-head .gms-histbtn { background: #1f1f25; border-color: var(--line); }
.dice-cube { width: 44px; height: 44px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.dice-cube.roll { animation: diceRoll .7s var(--spring); }
@keyframes diceRoll { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(320deg) scale(1.25) translateY(-8px); } 100% { transform: rotate(720deg) scale(1); } }
.dice-slider-card { padding-top: 12px; }

/* ---------- отделка раздела игр: глубина, мягкие блики, живые кнопки ---------- */
.gms-card { background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)), var(--card); border-color: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 28px rgba(0, 0, 0, .35); }
.gms-tabs { background: linear-gradient(180deg, #1a1a1f, #121215); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 22px rgba(0, 0, 0, .35); }
.gms-input { background: linear-gradient(180deg, #1c1c21, #17171b); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); transition: border-color .2s, box-shadow .2s; }
.gms-input:focus-within { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 3px rgba(255, 153, 0, .15); }
.gms-quick button { background: linear-gradient(180deg, #202026, #18181c); transition: transform .15s var(--spring), border-color .2s, color .2s; }
.gms-quick button:hover { border-color: rgba(255, 153, 0, .45); color: #fff; }
.gms-go { background: linear-gradient(135deg, #ffd23a 0%, #ff9a1a 45%, #ff5f1f 100%); text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
  box-shadow: 0 10px 28px rgba(255, 120, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(150, 50, 0, .35); }
.gms-go.cash { box-shadow: 0 10px 28px rgba(57, 217, 138, .45), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 90, 50, .35); }
.gms-topup { background: linear-gradient(180deg, #1d1d22, #151518); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

.gms-go img, .crash-bets-head img { width: 18px; height: 18px; vertical-align: -3px; }
.crash-bets-head img { width: 14px; height: 14px; }
