/* Dark Carnival — меню «Игры», «Взлом замка», «Сапоги» (поверх upgrade.css) */

/* ---------- меню «Игры» в шапке ---------- */
.nav-games { position: relative; z-index: 2; flex: 0 0 auto; }
.nav-games-btn { display: flex; align-items: center; gap: 8px; height: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  color: var(--text-2); font: 500 14px/1 var(--body); transition: color .15s, background-color .15s; }
.nav-games-btn:hover { color: var(--text); background: var(--surface); }
.nav-games.active .nav-games-btn, .nav-games.open .nav-games-btn { color: var(--text); }
.nav-games.active .nav-games-btn > .ic:first-child { color: var(--gold); opacity: 1; }
.nav-games-btn .ic { width: 17px; height: 17px; opacity: .75; }
.nav-games-btn .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-games.open .chev { transform: rotate(180deg); }
.games-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 460px; padding: 8px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: SelIn .2s var(--ease); }
.games-menu[hidden] { display: none; }
.games-menu a { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; transition: background-color .15s; }
.games-menu a:hover, .games-menu a.on { background: var(--surface-3); }
.games-menu img { grid-row: 1 / 3; width: 44px; height: 44px; object-fit: contain; transition: transform .3s var(--spring); }
.games-menu a:hover img { transform: scale(1.1) rotate(-4deg); }
.games-menu b { align-self: end; font: 600 14px/1.2 var(--body); }
.games-menu small { align-self: start; font-size: 12px; color: var(--text-3); }
.games-menu a.on b { color: var(--gold); }
.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- взлом замка ---------- */
.lock-stage { position: relative; height: clamp(500px, 64vh, 600px); overflow: hidden; display: grid; place-items: center; isolation: isolate;
  background: radial-gradient(ellipse 55% 60% at 50% 55%, rgba(255, 190, 90, .16), transparent 70%), linear-gradient(rgba(10, 8, 6, .15), rgba(10, 8, 6, .6)), url("../assets/lock/cell.png") center 38% / cover; }
.lock-stage::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 45%, rgba(0, 0, 0, .65)); }
.lk-candle { position: absolute; top: 18%; z-index: 0; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 170, 60, .45), rgba(255, 120, 30, .12) 40%, transparent 68%); animation: Flicker 2.4s ease-in-out infinite; }
.lk-candle.l { left: 8%; } .lk-candle.r { right: 8%; animation-delay: -1.2s; }
@keyframes Flicker { 0%, 100% { opacity: .85; transform: scale(1); } 20% { opacity: 1; transform: scale(1.06); } 45% { opacity: .7; transform: scale(.97); } 70% { opacity: .95; transform: scale(1.03); } }
.lk-slark { position: absolute; left: calc(50% + 190px); bottom: 26px; z-index: 3; width: 150px; height: 179px; background: url("../assets/lock/slark.png") 0 0 / 400% 400% no-repeat;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); pointer-events: none; transition: transform .3s var(--spring); }
.lock-stage.active .lk-slark { transform: translateY(-6px) rotate(-4deg); }
.lk-sign { position: absolute; top: 0; left: 50%; z-index: 4; width: 300px; translate: -50% 0; transform-origin: 50% 0; animation: SignSwing 6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes SignSwing { from { rotate: -1.2deg; } to { rotate: 1.2deg; } }
.lk-sign img { display: block; width: 100%; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .6)); }
.lk-sign span { position: absolute; left: 12%; right: 12%; top: 67.3%; translate: 0 -50%; display: flex; align-items: center; justify-content: center; min-height: 34%; text-align: center; font: 600 13.5px/1.25 var(--body); color: #f3dca6; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.lk-board { position: relative; z-index: 2; width: 340px; height: 340px; margin-top: 74px; }
.lk-shank { position: absolute; left: 50%; bottom: 76%; z-index: 0; width: 60%; translate: -50% 0; transition: transform .6s var(--spring); pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.lk-board.open .lk-shank { transform: translateY(-38px) rotate(-10deg); transform-origin: 85% 100%; }
.lk-ring { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .75)); pointer-events: none; }
.lk-svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.lk-sec path { fill: url(#lkGold); stroke: rgba(40, 24, 6, .8); stroke-width: .3; opacity: .55; mix-blend-mode: color-dodge; transition: opacity .2s, filter .2s; }
.lk-sec text { font: 700 4px/1 var(--display); fill: #fff3cf; text-anchor: middle; dominant-baseline: central; opacity: .55; pointer-events: none; paint-order: stroke; stroke: rgba(0, 0, 0, .6); stroke-width: .5; }
.lk-svg.live .lk-sec { cursor: pointer; }
.lk-svg.live .lk-sec path { opacity: .8; animation: SecPulse 1.8s ease-in-out infinite; }
.lk-svg.live .lk-sec text { opacity: .95; }
.lk-svg.live .lk-sec:hover path, .lk-svg.live .lk-sec:focus-visible path { opacity: 1; animation: none; filter: brightness(1.35) drop-shadow(0 0 2px #ffd36b); }
.lk-sec:focus { outline: none; }
@keyframes SecPulse { 50% { opacity: .95; } }
.lk-sec.chosen path { opacity: 1; filter: brightness(1.3) drop-shadow(0 0 2px #ffd36b); }
.lk-sec.safe path { fill: #3ccf7a; opacity: .35; mix-blend-mode: normal; }
.lk-sec.bad path { fill: #f05d5d; opacity: .45; mix-blend-mode: normal; }
.lk-sec.hit-ok path { opacity: .95; filter: drop-shadow(0 0 3px #3ccf7a); animation: HitPop .5s var(--spring); transform-origin: 50px 50px; }
.lk-sec.hit-bad path { opacity: .95; filter: drop-shadow(0 0 3px #f05d5d); animation: HitPop .5s var(--spring); transform-origin: 50px 50px; }
@keyframes HitPop { 40% { transform: scale(1.05); } }
.lk-ticks line { stroke: rgba(255, 230, 180, .35); stroke-width: .35; }
.lk-pick { transform-origin: 50px 50px; pointer-events: none; }
.lk-pick line { stroke: #fff; stroke-width: .7; stroke-linecap: round; filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, .9)); }
.lk-pick circle { fill: #fff; filter: drop-shadow(0 0 1.5px #fff); }
.lk-board.fail .lk-pick line, .lk-board.fail .lk-pick circle { stroke: var(--bad); fill: var(--bad); filter: drop-shadow(0 0 2px var(--bad)); }
.lk-dial { position: absolute; left: 50%; top: 50%; z-index: 3; width: 33.4%; height: 33.4%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: url("../assets/lock/dial.png") center / contain no-repeat; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); pointer-events: none; }
.lk-dial small { font: 700 9.5px/1 var(--body); letter-spacing: .12em; color: #b08a4a; }
.lk-dial b { font: 600 30px/1 var(--display); letter-spacing: -.04em; background: linear-gradient(180deg, #ffe8a8 15%, #c98a2a 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .8)); font-variant-numeric: tabular-nums; }
.lk-dial em { font: 500 10.5px/1 var(--body); font-style: normal; color: #9f8f74; }
.lk-board.click .lk-dial { animation: DialClick .4s var(--spring); }
@keyframes DialClick { 40% { transform: scale(1.1); filter: brightness(1.5) drop-shadow(0 0 14px rgba(255, 211, 107, .8)); } }
.lk-board.fail { animation: Shake .5s; }
.lk-board.fail::after { content: ""; position: absolute; inset: -8%; z-index: 5; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(240, 93, 93, .5), transparent 62%); animation: FailFlash .8s ease-out forwards; }
@keyframes FailFlash { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.3); } }
.lk-board.open::before { content: ""; position: absolute; inset: -30%; z-index: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 211, 107, .55), transparent 62%); animation: GlowIn .6s var(--ease) both; }
.lk-pins { position: absolute; left: 50%; bottom: 14px; z-index: 4; display: flex; gap: 4px; margin: 0; padding: 6px 8px; list-style: none; translate: -50% 0; border-radius: 12px;
  background: linear-gradient(180deg, rgba(36, 26, 16, .92), rgba(18, 13, 9, .95)); border: 1px solid rgba(201, 138, 42, .35); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.lk-pins li { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 48px; padding: 4px 2px; border-radius: 8px; }
.lk-pins i { position: relative; width: 12px; height: 24px; border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, #5a4630, #8a6a44 50%, #5a4630); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .45); transition: transform .35s var(--spring), background .3s, box-shadow .3s; }
.lk-pins span { font: 600 11px/1 var(--body); color: #8a7a62; font-variant-numeric: tabular-nums; }
.lk-pins li.done i { background: linear-gradient(90deg, #c98a2a, #ffe08a 50%, #c98a2a); transform: translateY(-6px); box-shadow: 0 0 12px rgba(255, 211, 107, .6); }
.lk-pins li.done span { color: #ffd36b; }
.lk-pins li.cur { background: rgba(255, 211, 107, .08); }
.lk-pins li.cur i { animation: PinWait 1s ease-in-out infinite; }
@keyframes PinWait { 50% { transform: translateY(-2px); filter: brightness(1.3); } }
.lk-pins li.cur span { color: #f3dca6; }
.lock-levels { display: flex; gap: 6px; flex-wrap: wrap; }
.lock-levels .chip { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px 12px; }
.lock-levels .chip b { font: 600 13.5px/1 var(--body); }
.lock-levels .chip small { font-size: 11.5px; color: var(--text-3); }
.lock-levels .chip.on small { color: var(--bg); opacity: .7; }
.result-line.win { color: var(--ok); }
.result-line.lose { color: var(--bad); }
.result-line { font-size: 15.5px; text-align: center; margin: 14px 0 0; min-height: 22px; }

/* ---------- сапоги: арканоид Сларка ---------- */
.bb-stage { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 64px 16px 18px; isolation: isolate;
  background: linear-gradient(rgba(6, 6, 24, .2), rgba(6, 6, 24, .55)), url("../assets/boots/bg.png") center top / auto 100% repeat-x, #0a0a2a; image-rendering: pixelated; }
.bb-curtain { position: absolute; top: 0; z-index: 0; height: 100%; width: auto; pointer-events: none; image-rendering: auto; }
.bb-curtain.l { left: -170px; } .bb-curtain.r { right: -170px; transform: scaleX(-1); }
.bb-hand { position: absolute; bottom: -18px; z-index: 1; width: 170px; pointer-events: none; image-rendering: pixelated; animation: HandIdle 3.2s ease-in-out infinite; }
.bb-hand.l { left: 4%; } .bb-hand.r { right: 4%; animation-delay: -1.6s; }
@keyframes HandIdle { 50% { transform: translateY(-8px) rotate(-3deg); } }
.bb-head { position: absolute; top: -10px; left: 50%; z-index: 2; width: 120px; translate: -50% 0; image-rendering: pixelated; animation: HeadBob 3s ease-in-out infinite; pointer-events: none; }
@keyframes HeadBob { 50% { transform: translateY(5px) rotate(2deg); } }
.bb-side { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.bb-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 120px; padding: 10px 12px; border-radius: 6px; image-rendering: auto;
  background: linear-gradient(180deg, #2a0f2e, #150719); border: 2px solid #e2a23a; box-shadow: inset 0 0 0 2px #5a1f3c, 0 6px 0 rgba(0, 0, 0, .45); }
.bb-stat span { font: 600 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #e9b8d8; }
.bb-stat b { font: 600 22px/1 var(--display); color: #ffe08a; text-shadow: 2px 2px 0 #7a2a12; font-variant-numeric: tabular-nums; }

.bb-field { --u: 3px; position: relative; z-index: 3; width: calc(var(--u) * 130); height: calc(var(--u) * 184); flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(10, 10, 40, .55), rgba(10, 10, 40, .25)); border-left: calc(var(--u) * 1) solid rgba(120, 170, 255, .25); border-right: calc(var(--u) * 1) solid rgba(120, 170, 255, .25); }
.bb-field * { image-rendering: pixelated; }
.bb-ff { position: absolute; left: 0; right: 0; height: calc(var(--u) * 6); background: url("../assets/boots/bb_ff_top.png") 0 0 / calc(var(--u) * 96) 100% repeat-x; animation: FfRun 1.2s linear infinite; }
.bb-ff.top { top: 0; }
.bb-ff.bottom { bottom: 0; background-image: url("../assets/boots/bb_ff_bottom.png"); animation-direction: reverse; }
@keyframes FfRun { to { background-position: calc(var(--u) * 96) 0; } }
.bb-ff.bottom.zap { animation: FfRun .3s linear infinite, FfZap .8s ease-out; }
@keyframes FfZap { 0%, 60% { filter: brightness(2.2) drop-shadow(0 0 8px #ff4fa0); height: calc(var(--u) * 10); } }
.bb-wall { position: absolute; inset: 0; }
.bb-block { position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); width: calc(var(--u) * 24); height: calc(var(--u) * 12); padding: 0; border: 0; cursor: pointer;
  background: url("../assets/boots/blocks.png") calc(var(--u) * var(--sc) * -24) calc(var(--u) * var(--sr) * -12) / calc(var(--u) * 72) calc(var(--u) * 72);
  filter: drop-shadow(0 calc(var(--u) * 1.5) 0 rgba(0, 0, 0, .45)); transition: transform .12s, filter .12s; }
.bb-block:not(:disabled):hover { transform: translateY(calc(var(--u) * -1)); filter: brightness(1.25) drop-shadow(0 calc(var(--u) * 2) 0 rgba(0, 0, 0, .45)); }
.bb-block:disabled { cursor: default; }
.bb-stage:not(.active) .bb-block:not(.gone):not(.iron) { filter: saturate(.55) brightness(.7); }
.bb-block.target { filter: brightness(1.5) drop-shadow(0 0 calc(var(--u) * 3) #fff6a8); }
.bb-block.gone { visibility: hidden; }
.bb-block.dim { opacity: .45; }
.bb-block.iron { background: url("../assets/boots/bb_iron.png") calc(var(--u) * -48) 0 / calc(var(--u) * 72) calc(var(--u) * 12); }
.bb-block.iron.hit { animation: IronShine .45s steps(3) 2, Shake .4s; filter: drop-shadow(0 0 calc(var(--u) * 3) #f05d5d); }
@keyframes IronShine { from { background-position: 0 0; } to { background-position: calc(var(--u) * -72) 0; } }
.bb-block.iron.shown { animation: PopIn .3s var(--spring); }
.bb-wall.deal .bb-block { animation: BlockDeal .4s var(--spring) both; animation-delay: calc(var(--y) * 6ms + var(--x) * 2ms); }
@keyframes BlockDeal { from { transform: translateY(calc(var(--u) * -20)); opacity: 0; } }

.bb-cart { position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); width: calc(var(--u) * 81); height: calc(var(--u) * 63); transition: left .26s cubic-bezier(.3, .8, .4, 1); }
.bb-cart i { position: absolute; inset: 0; background-repeat: no-repeat; background-size: calc(var(--u) * 243) 100%; }
.bb-wheels { background-image: url("../assets/boots/bb_wheels.png"); background-size: calc(var(--u) * 324) 100% !important; }
.bb-cart.rolling .bb-wheels { animation: Wheels .26s steps(4) infinite; }
@keyframes Wheels { to { background-position: calc(var(--u) * -324) 0; } }
.bb-cage { background-image: url("../assets/boots/bb_cart.png"); }
.bb-slark { background-image: url("../assets/boots/bb_slark.png"); animation: Frames3 .9s steps(3) infinite; }
.bb-energy { background-image: url("../assets/boots/bb_energy.png"); animation: Frames3 .45s steps(3) infinite; }
@keyframes Frames3 { to { background-position: calc(var(--u) * -243) 0; } }
.bb-cart.throw .bb-slark { animation: SlarkThrow .35s ease-out; }
@keyframes SlarkThrow { 40% { transform: translateY(calc(var(--u) * -4)); } }
.bb-cart.catch { animation: CartCatch .35s var(--spring); }
@keyframes CartCatch { 40% { transform: translateY(calc(var(--u) * 2)) scaleY(.95); filter: brightness(1.4) drop-shadow(0 0 calc(var(--u) * 3) #ffd36b); } }
.bb-cart.sad { animation: Shake .5s; filter: saturate(.4) brightness(.8); }
.bb-ball { position: absolute; left: calc(var(--u) * var(--x, 0)); top: calc(var(--u) * var(--y, 0)); z-index: 4; width: calc(var(--u) * 20); height: calc(var(--u) * 20); opacity: 0;
  background: url("../assets/boots/boot_spin.png") 0 0 / calc(var(--u) * 160) 100%; animation: BootSpin .32s steps(8) infinite; pointer-events: none; }
.bb-ball.on { opacity: 1; }
@keyframes BootSpin { to { background-position: calc(var(--u) * -160) 0; } }
.bb-go { position: absolute; left: 50%; top: 42%; z-index: 5; width: calc(var(--u) * 26); height: calc(var(--u) * 38); translate: -50% -50%; opacity: 0; pointer-events: none;
  background: url("../assets/boots/bb_go.png") 0 0 / calc(var(--u) * 104) 100%; }
.bb-go.on { animation: GoShow 1.3s ease-out, GoFrames .4s steps(4) 3; }
@keyframes GoShow { 0% { opacity: 0; transform: scale(.4); } 15% { opacity: 1; transform: scale(1.2); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(calc(var(--u) * -10)); } }
@keyframes GoFrames { to { background-position: calc(var(--u) * -104) 0; } }
.bb-fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.bb-burst { position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); }
.bb-burst.break { width: calc(var(--u) * 36); height: calc(var(--u) * 36); background: url("../assets/boots/break.png") 0 0 / calc(var(--u) * 144) 100%; animation: Break4 .4s steps(4) forwards; }
@keyframes Break4 { to { background-position: calc(var(--u) * -144) 0; } }
.bb-burst.stars { width: calc(var(--u) * 16); height: calc(var(--u) * 16); background: url("../assets/boots/bb_hit.png") 0 0 / calc(var(--u) * 64) calc(var(--u) * 32); animation: PopIn .2s var(--spring), FadeAway .3s .2s forwards; }
.bb-burst.tink { width: calc(var(--u) * 16); height: calc(var(--u) * 16); background: url("../assets/boots/bb_tink.png") 0 0 / calc(var(--u) * 64) 100%; animation: Tink .45s steps(4) forwards; }
@keyframes Tink { to { background-position: calc(var(--u) * -64) 0; } }
.bb-coinfall { position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); width: calc(var(--u) * 8); height: calc(var(--u) * 8);
  background: url("../assets/boots/coins.png") 0 0 / calc(var(--u) * 32) calc(var(--u) * 32); animation: CoinSpin8 .4s steps(4) infinite; }
@keyframes CoinSpin8 { to { background-position: calc(var(--u) * -32) 0; } }
.bb-pop { position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); translate: -50% 0; font: 600 calc(var(--u) * 6) / 1 var(--display); font-style: normal; color: #ffe08a; text-shadow: 2px 2px 0 #7a2a12; white-space: nowrap;
  animation: PopUp 1.1s ease-out forwards; }
@keyframes PopUp { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; transform: translateY(calc(var(--u) * -4)) scale(1.1); } 100% { opacity: 0; transform: translateY(calc(var(--u) * -14)); } }
.bb-stage.shake { animation: Shake .45s; }
.bt-counts { display: flex; flex-direction: column; gap: 8px; }
.bt-counts > div { display: flex; gap: 4px; flex-wrap: wrap; }
.bt-counts .chip { min-width: 40px; }

@media (max-width: 1240px) {
  .nav-games-btn { padding: 9px 8px; }
  .games-menu { position: fixed; top: auto; left: 12px; right: 12px; width: auto; margin-top: 6px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lock-stage { height: 520px; }
  .lk-board { width: 290px; height: 290px; }
  .lk-slark { left: auto; right: 2%; bottom: 84px; width: 110px; height: 131px; }
  .lk-pins li { min-width: 40px; }
  .bb-curtain, .bb-hand { display: none; }
  .bb-stage { flex-wrap: wrap; gap: 10px; padding-top: 70px; }
  .bb-side { flex-direction: row; order: -1; }
  .bb-side-r { order: -1; }
  .bb-stat { min-width: 0; padding: 8px 10px; }
  .bb-stat b { font-size: 18px; }
}
@media (max-width: 480px) {
  .nav-games { flex: 1 1 0; min-width: 0; }
  .nav-games-btn { flex-direction: column; gap: 4px; width: 100%; padding: 7px 1px; font-size: 10.5px; justify-content: center; }
  .nav-games-btn .chev { display: none; }
  .games-menu { grid-template-columns: 1fr; top: 104px; }
  .lock-stage { height: 480px; }
  .lk-sign { width: 250px; }
  .lk-sign span { font-size: 12px; }
  .lk-board { width: 270px; height: 270px; margin-top: 64px; }
  .lk-dial b { font-size: 24px; }
  .lk-slark { width: 90px; height: 107px; bottom: 76px; right: 0; }
  .lk-pins { gap: 1px; padding: 4px; }
  .lk-pins li { min-width: 0; padding: 4px 3px; }
  .lk-pins span { font-size: 10px; }
  .lock-levels { display: grid; grid-template-columns: 1fr 1fr; }
  .bb-stage { padding: 62px 6px 12px; gap: 6px; }
  .bb-field { --u: 2.4px; }
  .bb-side { gap: 6px; }
  .bb-stat { padding: 6px 8px; }
  .bb-stat span { font-size: 9px; letter-spacing: .04em; }
  .bb-stat b { font-size: 15px; }
  .bb-head { width: 96px; }
  .bt-counts > div { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bt-counts .chip { min-width: 0; padding: 8px 0; text-align: center; }
}
@media (max-width: 360px) {
  .bb-field { --u: 2.1px; }
  .lk-board { width: 240px; height: 240px; }
  .lk-dial b { font-size: 21px; }
}

@media (min-width: 1241px) { .nav { overflow: visible; } }

/* ---------- дирижабль: Blimp Jump ---------- */
.bj-stage { position: relative; height: clamp(520px, 66vh, 640px); overflow: hidden; isolation: isolate; border-radius: 16px;
  background: #2b2f55 url("../assets/crash/bj_sky.png") center 100% / 100% auto no-repeat; box-shadow: inset 0 0 0 1px var(--line), inset 0 0 80px rgba(0, 0, 0, .45); }
.bj-stage::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; box-shadow: inset 0 0 0 6px rgba(90, 62, 36, .55), inset 0 0 0 8px rgba(0, 0, 0, .35); border-radius: 16px; }
@media (min-width: 900px) { .bj-stage { background-size: 640px auto; background-color: #232744; } .bj-stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 14, 28, .9) 0, rgba(14, 14, 28, .0) calc(50% - 320px), rgba(14, 14, 28, 0) calc(50% + 320px), rgba(14, 14, 28, .9) 100%); } }
.bj-world { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
@media (min-width: 900px) { .bj-world { left: calc(50% - 320px); right: calc(50% - 320px); } }
.bj-plat, .bj-enemy { position: absolute; left: 0; top: 0; will-change: transform; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.bj-plat.plat1, .bj-plat.plat2 { width: 154px; } .bj-plat.cloud { width: 176px; opacity: .95; } .bj-plat.balloon { width: 80px; }
.bj-enemy.bird { width: 82px; } .bj-enemy.jester { width: 80px; animation: JesterBob 1s ease-in-out infinite; }
@keyframes JesterBob { 50% { margin-top: 10px; } }
.bj-endblimp { position: absolute; left: 50%; top: 0; z-index: 2; width: 181px; opacity: 0; transform: translate(-50%, -110%); transition: transform .4s ease-out, opacity .4s; animation: BlimpSway 4s ease-in-out infinite alternate; pointer-events: none; }
@keyframes BlimpSway { from { rotate: -2deg; } to { rotate: 2deg; } }
.bj-smelter { position: absolute; left: calc(50% - 250px); bottom: 0; z-index: 3; width: 180px; transition: transform .8s var(--ease), opacity .8s; pointer-events: none; }
.bj-stage.flying .bj-smelter { transform: translateY(70%); opacity: .5; }
.bj-slark { position: absolute; left: calc(50% - 235px); bottom: 220px; z-index: 5; width: 154px; transition: left .6s var(--ease), bottom .6s var(--ease); pointer-events: none; }
.bj-slark-img { position: relative; z-index: 2; display: block; width: 100%; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); }
.bj-slark.idle .bj-slark-img { animation: SlarkIdle 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes SlarkIdle { 50% { transform: scaleY(.96) translateY(2px); } }
.bj-slark.jumping { left: calc(50% - 77px); bottom: 34%; }
.bj-slark.jumping .bj-slark-img { animation: SlarkHop .62s cubic-bezier(.3, 0, .7, 1) infinite alternate; }
@keyframes SlarkHop { from { transform: translateY(26px) rotate(-3deg); } to { transform: translateY(-34px) rotate(4deg); } }
.bj-rocket { position: absolute; left: 50%; bottom: -58px; z-index: 1; width: 48px; translate: -50% 0; opacity: 0; transform: rotate(180deg); }
.bj-slark.rocket { left: calc(50% - 77px); bottom: 34%; animation: RocketUp 1.4s cubic-bezier(.5, 0, .9, .4) forwards; }
.bj-slark.rocket .bj-rocket { opacity: 1; animation: RocketShake .08s linear infinite; }
@keyframes RocketUp { 0% { transform: translateY(0); } 15% { transform: translateY(20px); } 100% { transform: translateY(-700px) rotate(-8deg); } }
@keyframes RocketShake { 50% { margin-left: 2px; } }
.bj-slark.falling { left: calc(50% - 77px); bottom: 34%; animation: SlarkFall 1.3s cubic-bezier(.5, 0, 1, .6) forwards; }
@keyframes SlarkFall { 0% { transform: translateY(0) rotate(0); } 18% { transform: translateY(-30px) rotate(-12deg); } 100% { transform: translateY(560px) rotate(160deg); } }
.bj-fire { position: absolute; z-index: 6; width: 100px; pointer-events: none; animation: FireUp 1s ease-out forwards; }
@keyframes FireUp { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: translateY(-40px) scale(1.3); } }
.bj-puff { position: absolute; z-index: 6; pointer-events: none; animation: Puff .9s ease-out forwards; }
@keyframes Puff { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: .95; } 100% { opacity: 0; transform: scale(1.5) translateY(-20px); } }
.bj-score { position: absolute; top: 14px; left: 50%; z-index: 7; width: 300px; translate: -50% 0; pointer-events: none; }
.bj-score img { display: block; width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.bj-score b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 30px/1 var(--display); letter-spacing: -.03em; color: #ffe08a; text-shadow: 0 3px 0 #5a2a10, 0 0 14px rgba(255, 200, 90, .45); }
.bj-score b.dead { color: #ff6b5b; text-shadow: 0 3px 0 #3a0e0a, 0 0 14px rgba(255, 80, 60, .6); animation: Shake .45s; }
.bj-bar { position: absolute; right: calc(50% - 300px); top: 90px; bottom: 60px; z-index: 7; width: 41px; pointer-events: none; }
.bj-bar-empty { position: absolute; inset: 0; width: 100%; height: 100%; }
.bj-bar-fill { position: absolute; inset: 0; --p: 0%; }
.bj-bar-fill img { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(calc(100% - var(--p)) 0 0 0); transition: clip-path .2s linear; }
.bj-bar-top, .bj-bar-bottom { position: absolute; left: 50%; width: 58px; translate: -50% 0; }
.bj-bar-top { top: -38px; } .bj-bar-bottom { bottom: -36px; }
.bj-bar-mark { position: absolute; left: -10px; width: 60px; height: 4px; margin-bottom: -2px; border-radius: 2px; background: #ffe08a; box-shadow: 0 0 10px #ffd36b; transition: bottom .2s linear; }
.bj-stage .crash-note { position: absolute; left: 0; right: 0; top: 96px; z-index: 8; text-align: center; font: 600 18px/1.2 var(--body); color: #fff4d6; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
@media (max-width: 860px) {
  .bj-stage { height: 520px; background-size: cover; }
  .bj-smelter { left: 2%; width: 140px; }
  .bj-slark { left: 4%; bottom: 170px; width: 120px; }
  .bj-slark.jumping, .bj-slark.rocket, .bj-slark.falling { left: calc(50% - 60px); }
  .bj-bar { right: 10px; top: 96px; bottom: 50px; width: 30px; }
  .bj-bar-top, .bj-bar-bottom { width: 44px; }
  .bj-bar-top { top: -30px; } .bj-bar-bottom { bottom: -30px; }
  .bj-bar-mark { left: -6px; width: 42px; }
  .bj-score { width: 240px; }
  .bj-score b { font-size: 24px; }
  .bj-plat.plat1, .bj-plat.plat2 { width: 120px; } .bj-plat.cloud { width: 140px; }
  .bj-endblimp { width: 140px; }
}



/* ---------- конфетный автомат: будка Рингмастера ---------- */
.cm-stage { position: relative; overflow: hidden; isolation: isolate; padding: 30px 16px 26px !important;
  background: radial-gradient(ellipse 50% 55% at 50% 45%, rgba(255, 170, 70, .18), transparent 70%), linear-gradient(rgba(10, 6, 14, .55), rgba(10, 6, 14, .85)), url("../assets/bg/room_cauldron.jpg") center / cover !important; }
.cm-curtain { position: absolute; top: 0; z-index: 1; width: 200px; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); }
.cm-curtain.l { left: 0; } .cm-curtain.r { right: 0; transform: scaleX(-1); }
.cm-rays { position: absolute; left: 50%; top: 50%; z-index: 0; width: 900px; max-width: none; translate: -50% -50%; opacity: .05; pointer-events: none; animation: CmRays 60s linear infinite; mix-blend-mode: screen; }
@keyframes CmRays { to { transform: rotate(360deg); } }
.cm-stage.won .cm-rays { opacity: .14; transition: opacity .3s; }
.cm-stage.bigwin .cm-rays { opacity: .3; animation-duration: 12s; }
.cm-machine { position: relative; z-index: 2; width: fit-content; margin: 36px auto 74px; padding: 0 96px; }
.cm-marquee { position: absolute; left: 50%; top: -44px; z-index: 6; width: 440px; translate: -50% 0; pointer-events: none; }
.cm-marquee img { display: block; width: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
.cm-marquee b { position: absolute; inset: 0 0 6px; display: grid; place-items: center; font: 600 17px/1 var(--display); letter-spacing: .02em; color: #ffe8b0; text-shadow: 0 2px 0 #5a0f12, 0 0 10px rgba(255, 200, 120, .5); }
.cm-frame { position: relative; z-index: 3; padding: 26px !important; border-radius: 16px !important; max-width: none !important;
  background: url("../assets/candy/wood.png") center / 240px repeat !important; border: 14px solid transparent; border-image: url("../assets/candy/frame.png") 40 round;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), inset 0 0 40px rgba(0, 0, 0, .6) !important; }
.cm-bulbs { position: absolute; inset: 6px; z-index: 4; pointer-events: none; }
.cm-bulbs i { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #ffd36b; box-shadow: 0 0 8px #ffb23f; animation: Bulb 1.2s steps(1) infinite; }
@keyframes Bulb { 50% { background: #6b4a20; box-shadow: none; } }
.cm-stage.spinning .cm-bulbs i { animation-duration: .3s; }
.cm-stage.bigwin .cm-bulbs i { animation-duration: .18s; background: #fff2b8; }
.cm-cauldron { position: absolute; left: -50px; bottom: -36px; z-index: 4; width: 170px; pointer-events: none; }
.cm-cauldron img { display: block; width: 100%; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .7)); animation: Simmer 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes Simmer { 50% { transform: scaleY(1.03) translateY(-2px); } }
.cm-stage.spinning .cm-cauldron img { animation: CauldronShake .25s linear infinite; }
@keyframes CauldronShake { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.cm-cauldron i { position: absolute; left: 45%; top: 30%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d7ffb0, #6ad13c 60%, #2b7a1b); opacity: 0; animation: Bubble 2.6s ease-out infinite; }
.cm-cauldron i:nth-child(3) { left: 58%; animation-delay: .9s; width: 10px; height: 10px; }
.cm-cauldron i:nth-child(4) { left: 36%; animation-delay: 1.7s; width: 12px; height: 12px; }
@keyframes Bubble { 0% { opacity: 0; transform: translateY(0) scale(.5); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-70px) scale(1.1); } }
.cm-lever { position: absolute; right: 30px; top: 50%; z-index: 2; width: 60px; height: 170px; translate: 0 -60%; cursor: pointer; }
.cm-rod { position: absolute; left: 50%; bottom: 0; width: 12px; height: 140px; margin-left: -6px; border-radius: 6px; transform-origin: 50% 100%;
  background: linear-gradient(90deg, #6b6b72, #d8d8e0 40%, #6b6b72); box-shadow: 0 4px 8px rgba(0, 0, 0, .5); transition: transform .2s; }
.cm-knob { position: absolute; left: 50%; top: 0; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; transform-origin: 50% 170px;
  background: radial-gradient(circle at 35% 30%, #ffb4b4, #e0242b 45%, #6d0b10); box-shadow: 0 6px 12px rgba(0, 0, 0, .6), inset 0 -3px 6px rgba(0, 0, 0, .4); transition: transform .2s; }
.cm-lever::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 38px; height: 26px; margin-left: -19px; border-radius: 8px; background: linear-gradient(180deg, #4a3220, #241509); box-shadow: 0 4px 8px rgba(0, 0, 0, .6); }
.cm-lever:hover .cm-knob { filter: brightness(1.15); }
.cm-lever.pull .cm-rod, .cm-lever.pull .cm-knob { animation: Pull .6s cubic-bezier(.3, .7, .4, 1); }
@keyframes Pull { 30% { transform: rotateX(70deg) scaleY(.35); } 100% { transform: none; } }
.cm-gears { position: absolute; left: 50%; bottom: -66px; z-index: 2; width: 360px; translate: -50% 0; opacity: 1; pointer-events: none; filter: brightness(2.2) sepia(.4) drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
.cm-stage.spinning .cm-gears { animation: GearShake .3s linear infinite; }
@keyframes GearShake { 50% { transform: translateY(2px); } }
.cm-prize { position: absolute; left: 50%; top: 48%; z-index: 8; translate: -50% -50%; opacity: 0; pointer-events: none; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .6)); }
.cm-prize.candy { width: 170px; } .cm-prize.coin { width: 110px; }
.cm-stage.bigwin .cm-prize.candy { animation: PrizePop 2s var(--spring) .2s; }
.cm-stage.bigwin .cm-prize.coin { animation: CoinFly 1.6s ease-out .5s; }
.cm-stage.won .cm-prize.coin { animation: CoinFly 1.4s ease-out; }
@keyframes PrizePop { 0% { opacity: 0; transform: scale(.2) rotate(-30deg); } 25% { opacity: 1; transform: scale(1.25) rotate(8deg); } 70% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(1.2) translateY(-40px); } }
@keyframes CoinFly { 0% { opacity: 0; transform: translateY(40px) rotateY(0) scale(.5); } 30% { opacity: 1; transform: translateY(-30px) rotateY(360deg) scale(1); } 100% { opacity: 0; transform: translateY(-150px) rotateY(900deg) scale(.7); } }
@media (max-width: 860px) {
  .cm-machine { padding: 0 54px 0 0; margin: 40px auto 44px; }
  .cm-cauldron { left: -36px; bottom: -40px; width: 110px; }
  .cm-lever { right: -4px; width: 46px; height: 130px; }
  .cm-rod { height: 104px; } .cm-knob { width: 32px; height: 32px; margin-left: -16px; transform-origin: 50% 130px; }
  .cm-marquee { width: 320px; top: -38px; } .cm-marquee b { font-size: 14px; }
  .cm-curtain { width: 120px; }
  .cm-gears { width: 260px; bottom: -48px; }
  .cm-frame { padding: 14px !important; border-width: 10px; }
}
@media (max-width: 480px) {
  .cm-stage { padding: 26px 4px 20px !important; }
  .cm-machine { padding: 0 40px 0 0; }
  .cm-lever { right: -6px; transform: scale(.85); transform-origin: 50% 50%; }
  .cm-cauldron { width: 86px; left: -20px; bottom: -34px; }
  .cm-curtain { display: none; }
  .cm-marquee { width: 270px; } .cm-marquee b { font-size: 12.5px; }
}

/* ---------- колесо: провидческий камень Оракула ---------- */
.orc-stage { position: relative; display: grid; place-items: center; padding: 0 0 44px; overflow: hidden; isolation: isolate; min-height: 640px; align-content: end;
  background: radial-gradient(ellipse 70% 45% at 50% 100%, rgba(120, 70, 200, .35), transparent 70%), linear-gradient(180deg, #0c0a26, #07061a); }
.orc-banner { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: auto; max-width: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, #000 62%, transparent 96%); animation: OracleFloat 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes OracleFloat { 50% { transform: translateY(5px) scale(1.005); } }
.orc-stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(1.5px 1.5px at 8% 22%, #fff, transparent), radial-gradient(1px 1px at 16% 64%, #e8d9ff, transparent), radial-gradient(2px 2px at 24% 38%, #fff, transparent), radial-gradient(1px 1px at 33% 82%, #cdb8ff, transparent), radial-gradient(1.5px 1.5px at 72% 18%, #fff, transparent), radial-gradient(1px 1px at 80% 56%, #e8d9ff, transparent), radial-gradient(2px 2px at 88% 34%, #fff, transparent), radial-gradient(1px 1px at 93% 76%, #cdb8ff, transparent), radial-gradient(1.5px 1.5px at 5% 90%, #fff, transparent), radial-gradient(1px 1px at 64% 88%, #fff, transparent), radial-gradient(1.5px 1.5px at 42% 10%, #e8d9ff, transparent), radial-gradient(1px 1px at 97% 8%, #fff, transparent); animation: Twinkle 3.5s ease-in-out infinite alternate; }
@keyframes Twinkle { from { opacity: .35; } to { opacity: 1; } }
.orc-stage .wheel-box { position: relative; z-index: 3; width: min(380px, 78vw); aspect-ratio: 1; margin-top: clamp(250px, 30vw, 330px); }
.orc-stage .wheel { box-shadow: 0 0 0 6px #2a1a48, 0 0 0 9px #d9b46a, 0 0 0 12px #1a1030, 0 24px 60px rgba(0, 0, 0, .7), 0 0 90px rgba(170, 120, 255, .45); }
.orc-dial { position: absolute; left: -22%; top: -22%; width: 144%; height: 144%; max-width: none; pointer-events: none; mix-blend-mode: screen; opacity: .5; filter: drop-shadow(0 0 4px rgba(200, 160, 255, .8)); }
.orc-dial.o1 { animation: SpinDial1 120s linear infinite; }
.orc-dial.o2 { left: -12%; top: -12%; width: 124%; height: 124%; animation: SpinDial2 80s linear infinite; opacity: .65; }
.orc-dial.o3 { left: -30%; top: -30%; width: 160%; height: 160%; animation: SpinDial2 200s linear infinite reverse; opacity: .4; }
.orc-coin { position: absolute; left: 50%; top: 50%; z-index: 4; width: 34%; translate: -50% -50%; pointer-events: none; animation: CoinGlow 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)) drop-shadow(0 0 16px rgba(200, 120, 255, .5)); }
@keyframes CoinGlow { 50% { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px rgba(220, 150, 255, .85)); } }
.orc-hand { position: absolute; left: 50%; top: -58px; z-index: 5; width: 84px; translate: -50% 0; transform: rotate(180deg); transform-origin: 50% 40%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); pointer-events: none; }
.orc-hand.kick { animation: HandKick .12s ease-out; }
@keyframes HandKick { 40% { transform: rotate(168deg); } }
.orc-rays { position: absolute; left: -40%; top: -40%; z-index: 0; width: 180%; height: 180%; max-width: none; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.orc-stage.won .orc-rays { animation: OrcRays 2.4s ease-out; }
@keyframes OrcRays { 0% { opacity: 0; transform: scale(.6) rotate(0); } 25% { opacity: .9; } 100% { opacity: 0; transform: scale(1.1) rotate(40deg); } }
.orc-reward { position: absolute; left: 50%; bottom: 220px; z-index: 6; width: 160px; translate: -50% 50%; opacity: 0; pointer-events: none; }
.orc-stage.jackpot .orc-reward { animation: OrcReward 2.2s var(--spring); }
@keyframes OrcReward { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 25% { opacity: 1; transform: scale(1.2) rotate(6deg); } 75% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(1.3) translateY(-30px); } }
.wheel-legend span { border-color: rgba(200, 162, 255, .25); }
@media (max-width: 860px) {
  .orc-stage { min-height: 0; }
  .orc-stage .wheel-box { margin-top: 44vw; }
  .orc-hand { width: 66px; top: -46px; }
}
@media (max-width: 480px) {
  .orc-banner { width: 150%; left: -25%; }
  .orc-stage .wheel-box { width: 76vw; margin-top: 62vw; }
}

/* ---------- таро: гадальня Оракула ---------- */
.stage.tarot-stage { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(220px, 28vw, 340px) !important; padding-bottom: 70px !important;
  background: linear-gradient(180deg, #0c0a26, #07061a) !important; }
.stage.tarot-stage::before { content: ""; display: block; position: absolute; left: 50%; top: 0; right: auto; bottom: auto; z-index: -1; width: min(100%, 980px); height: auto; translate: -50% 0; aspect-ratio: 1200 / 480; pointer-events: none; opacity: 1; transform: none;
  background: url("../assets/oracle/scene.png") center top / 100% auto no-repeat, radial-gradient(1.5px 1.5px at 8% 22%, #fff, transparent), radial-gradient(1px 1px at 16% 64%, #e8d9ff, transparent), radial-gradient(2px 2px at 24% 38%, #fff, transparent), radial-gradient(1px 1px at 33% 82%, #cdb8ff, transparent), radial-gradient(1.5px 1.5px at 72% 18%, #fff, transparent), radial-gradient(1px 1px at 80% 56%, #e8d9ff, transparent), radial-gradient(2px 2px at 88% 34%, #fff, transparent), radial-gradient(1px 1px at 93% 76%, #cdb8ff, transparent), radial-gradient(1.5px 1.5px at 5% 90%, #fff, transparent), radial-gradient(1px 1px at 64% 88%, #fff, transparent), radial-gradient(1.5px 1.5px at 42% 10%, #e8d9ff, transparent), radial-gradient(1px 1px at 97% 8%, #fff, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, #000 62%, transparent 96%); animation: OracleFloat 6s ease-in-out infinite; }
/* стол гадалки: скатерть с бахромой, на которой лежат карты */
.stage.tarot-stage::after { content: ""; display: block; position: absolute; left: 4%; right: 4%; top: auto; bottom: 0; z-index: -1; width: auto; height: 44%; transform: none; translate: none; opacity: 1; filter: none; pointer-events: none; border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(200, 140, 255, .25), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 210, 140, .08) 0 2px, transparent 2px 22px), linear-gradient(180deg, #3a1d5e, #1e0f36 70%, #120922);
  box-shadow: 0 -2px 0 #d9b46a, 0 -6px 30px rgba(170, 110, 255, .3); }
.stage.tarot-stage .tcard { filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(170, 110, 255, .35)); }
@media (max-width: 860px) {
  .stage.tarot-stage { padding-top: 58vw !important; padding-bottom: 40px !important; }
  .stage.tarot-stage::before { width: 150%; }
}

/* ---------- ставка: своя сумма ---------- */
.bet-value { display: flex; align-items: center; justify-content: center; gap: 6px; cursor: text; transition: border-color .15s, box-shadow .15s; }
.bet-value:hover { border-color: var(--text-3); }
.bet-value:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.bet-value.bad { border-color: var(--bad); }
.bet-value .coin-i { flex: 0 0 auto; margin: 0; }
.bet-value input { width: 6ch; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: inherit; font: inherit; text-align: center; font-variant-numeric: tabular-nums; }
.bet-value input:disabled { color: inherit; opacity: .7; }

/* ---------- сундуки: открытие пачкой ---------- */
.t-controls .t-left { display: flex; flex-direction: column; gap: 10px; }
.t-count { display: flex; gap: 4px; flex-wrap: wrap; }
.t-count .chip { min-width: 44px; padding: 7px 8px; text-align: center; }
.t-stage.multi { height: auto !important; min-height: 0; padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.t-stage .lane { position: relative; height: 270px; }
.t-stage.multi .lane { height: calc(var(--cw) * 1.28 + 14px); }
.t-stage .lane .strip-wrap { position: absolute; inset: 0; }
.t-stage .strip .item-card { flex: 0 0 var(--cw, 170px); }
.t-stage.multi .strip .item-card .ic-meta { padding: 6px 8px 8px; }
.t-stage.multi .strip .item-card .ic-name { font-size: 12px; }
.t-stage.multi .strip .item-card .ic-sub { display: none; }
.t-stage.multi .marker { top: 4px; bottom: 4px; z-index: 5; }
.t-stage:not(.multi) .lane { height: 100%; }
.reward.multi { place-items: center; overflow-y: auto; padding: 16px; }
.reward-multi { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; width: min(100%, 860px); animation: PopIn .45s var(--spring) both; }
.rm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rm-head b { display: flex; align-items: center; gap: 4px; font: 600 18px/1.2 var(--body); }
.rm-head span { font: 600 15px/1 var(--body); }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.rm-grid .item-card { animation: PopIn .4s var(--spring) both; }
.rm-grid .item-card:nth-child(2) { animation-delay: .05s; } .rm-grid .item-card:nth-child(3) { animation-delay: .1s; } .rm-grid .item-card:nth-child(4) { animation-delay: .15s; }
.rm-grid .item-card:nth-child(5) { animation-delay: .2s; } .rm-grid .item-card:nth-child(n+6) { animation-delay: .25s; }
.reward-sum { margin: -4px 0 14px; font: 600 15px/1 var(--body); }
@media (max-width: 860px) {
  .t-controls .t-left { width: 100%; align-items: center; }
  .t-count { justify-content: center; }
  .rm-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* ---------- лобби: плитки игр на телефоне — горизонтальные карточки ---------- */
@media (max-width: 520px) {
  .game-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .game-tile { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; min-height: 0; padding: 12px 14px; }
  .game-tile img.gt-art { grid-row: 1 / 3; width: 72px; height: 72px; margin: 0; }
  .game-tile h3 { margin: 0; align-self: end; font-size: 16px; padding-right: 74px; }
  .game-tile p { align-self: start; font-size: 13px; }
  .game-tile .gt-tag { top: 12px; right: 12px; }
  .game-tile::before { background: linear-gradient(90deg, rgba(11, 11, 14, .55), rgba(11, 11, 14, .92) 60%); }
}

/* ---------- ставка скином ---------- */
.bet-skin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }
.bet-skin-btn .ic { width: 15px; height: 15px; }
.bet-skin { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 8%, var(--surface-2)); border: 1px solid var(--gold); animation: PopIn .3s var(--spring); max-width: 320px; }
.bet-skin[hidden] { display: none; }
.bet-skin img { width: 52px; height: 36px; object-fit: contain; }
.bet-skin span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bet-skin b { font: 500 13px/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bet-skin small { display: flex; align-items: center; font: 600 12.5px/1 var(--body); color: var(--gold); }
.bet-skin .chip { padding: 6px 9px; }
.bet.skin-mode .bet-main, .bet.skin-mode .bet-chips { opacity: .45; }
.skin-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 14px; max-height: 56vh; overflow-y: auto; }
.sp-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 10px; border-radius: 10px; text-align: left; cursor: pointer; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--rc); transition: border-color .15s, transform .2s var(--ease); }
.sp-item:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.sp-item:disabled { opacity: .4; cursor: not-allowed; }
.sp-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.sp-item b { font: 500 12px/1.25 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item span { display: flex; align-items: center; font: 600 12.5px/1 var(--body); color: var(--text-2); }
.sp-item em { font: 500 11px/1 var(--body); font-style: normal; color: var(--bad); }
