/* ==========================================================
   DESIRE APP — СТРОГИЙ ЧЁРНО-БЕЛЫЙ 3D
   Только чёрный, белый и оттенки графита. Объём — тенями,
   толщиной кнопок, перспективой и наклоном, без свечения.
   Подключается после app.css и перекрывает его цвета.
   ========================================================== */

:root {
    --bg: #050505;
    --bg-2: rgba(12, 12, 12, .8);
    --card: rgba(16, 16, 16, .8);
    --card-2: rgba(28, 28, 28, .82);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #f5f5f5;
    --muted: #9c9c9c;
    --dim: #6a6a6a;
    --accent: #ffffff;
    --accent-2: #ffffff;
    --accent-soft: rgba(255, 255, 255, .08);
    --win: #ffffff;
    --lose: #8a8a8a;
    --gold: #e6e6e6;

    --r-common: #4a4a4a;
    --r-uncommon: #7a7a7a;
    --r-rare: #a6a6a6;
    --r-epic: #d2d2d2;
    --r-legendary: #ffffff;

    --glass-blur: blur(18px) saturate(0%);
    --hi: inset 0 1px 0 rgba(255, 255, 255, .07);
    --depth: 0 24px 50px -24px rgba(0, 0, 0, .95), 0 2px 0 rgba(0, 0, 0, .5);
    --radius: 16px;
}

/* ---------- фон и масштаб ---------- */
html, body { background: var(--bg); }
body { background: transparent; }
.bg-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; display: block; pointer-events: none; }
.bg-fallback { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(70% 50% at 50% 55%, #161616, #050505 70%); }
.bg-fallback::after { content: ''; position: absolute; left: -50%; right: -50%; bottom: 0; height: 45%; transform: perspective(300px) rotateX(62deg); transform-origin: 50% 0;
    background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 60px 60px;
    mask: linear-gradient(180deg, transparent, #000 40%); }
.zoomable { zoom: var(--zoom, 1); }
.app { height: calc(var(--vh-px, 100vh) / var(--zoom, 1)); position: relative; }
.main { background: transparent; scrollbar-gutter: stable; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 8px; }
::selection { background: #fff; color: #000; }

/* ---------- заставка: 3D-кольца ---------- */
.boot { background: radial-gradient(60% 60% at 50% 42%, rgba(30, 30, 30, .5) 0%, rgba(5, 5, 5, .85) 70%); gap: 18px; }
.boot.out { opacity: 0; transform: scale(1.04); transition: opacity .6s, transform .6s; }
.boot-stage { position: relative; width: 180px; height: 180px; perspective: 700px; transform-style: preserve-3d; margin-bottom: 8px; }
.boot-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); }
.boot-ring.r1 { animation: ring1 5s linear infinite; }
.boot-ring.r2 { inset: 20px; border-color: rgba(255, 255, 255, .3); animation: ring2 6s linear infinite; }
.boot-ring.r3 { inset: 40px; border-style: dashed; border-color: rgba(255, 255, 255, .2); animation: ring3 8s linear infinite; }
@keyframes ring1 { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes ring2 { from { transform: rotateY(68deg) rotateZ(0); } to { transform: rotateY(68deg) rotateZ(-360deg); } }
@keyframes ring3 { from { transform: rotateX(45deg) rotateY(45deg) rotateZ(0); } to { transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg); } }
.boot-core { position: absolute; inset: 60px; border-radius: 16px; display: grid; place-items: center; transform: rotate(45deg); background: linear-gradient(145deg, #ffffff, #bdbdbd);
    box-shadow: 0 6px 0 #6a6a6a, 0 18px 30px rgba(0, 0, 0, .7), inset 0 2px 0 #fff; animation: coreSpin 6s ease-in-out infinite; }
.boot-core span { transform: rotate(-45deg); font-size: 30px; font-weight: 800; color: #000; }
@keyframes coreSpin { 50% { transform: rotate(45deg) translateY(-6px); } }
.boot-logo { font-size: 46px; letter-spacing: .14em; color: #fff; text-shadow: 0 1px 0 #bdbdbd, 0 2px 0 #8a8a8a, 0 3px 0 #5c5c5c, 0 4px 0 #3a3a3a, 0 14px 22px rgba(0, 0, 0, .8); }
.boot-logo span { color: var(--muted); }
.boot-bar { width: 200px; height: 3px; background: rgba(255, 255, 255, .1); }
.boot-bar i { background: #fff; }
.boot-text { color: #bdbdbd; max-width: 360px; }
.boot-text a, .boot-text button { color: #fff; }
.boot-lang { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }
.boot-lang button { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--muted); transition: .2s; }
.boot-lang button.active { background: #fff; color: #000; }
.boot-ver { color: var(--dim); }

/* ---------- меню ---------- */
.nav { width: 112px; gap: 7px; padding: 18px 12px 14px; border-right: 1px solid var(--line); position: relative; z-index: 2; background: rgba(8, 8, 8, .88); box-shadow: 12px 0 40px -20px rgba(0, 0, 0, .9); }
.fx-high .nav { backdrop-filter: var(--glass-blur); background: rgba(8, 8, 8, .66); }
.nav-logo { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 14px; font-size: 24px; color: #000; background: linear-gradient(145deg, #ffffff, #c4c4c4);
    box-shadow: 0 5px 0 #6a6a6a, 0 12px 22px rgba(0, 0, 0, .7), inset 0 2px 0 #fff; transform: perspective(300px) rotateX(12deg); }
.nav-item { position: relative; background: transparent; border: 1px solid transparent; padding: 12px 4px; border-radius: 14px; color: var(--muted); transition: .25s var(--ease); }
.nav-item svg { transition: transform .3s var(--ease); }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.nav-item:hover svg { transform: translateY(-2px); }
.nav-item.active { color: #000; background: linear-gradient(180deg, #ffffff, #d6d6d6); border-color: #fff; box-shadow: 0 4px 0 #5c5c5c, 0 14px 24px -10px rgba(0, 0, 0, .9); }
.nav-item.active svg { color: #000; }
.nav-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.nav-zoom { display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.nav-zoom button { width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: 16px; color: var(--muted); background: rgba(255, 255, 255, .05); transition: .15s; }
.nav-zoom button:hover { color: #000; background: #fff; }
.nav-zoom b { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--text); }
.nav-lang { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 10px; font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: .2s; }
.nav-lang svg { width: 15px; height: 15px; }
.nav-lang:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.nav-balance { margin-top: 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: #fff; box-shadow: var(--hi); }

/* ---------- страницы и типографика ---------- */
.page { animation: pageIn3d .55s var(--ease); }
@keyframes pageIn3d { from { opacity: 0; transform: perspective(1400px) translateY(16px) rotateX(5deg); } }
.page-head { margin-bottom: 18px; }
.page-head .h1 { font-size: 34px; }
.h1 { letter-spacing: -.02em; text-shadow: 0 1px 0 #8a8a8a, 0 2px 0 #4a4a4a, 0 10px 20px rgba(0, 0, 0, .7); }
.h2 { letter-spacing: -.01em; }
.section-title { margin: 32px 0 14px; }
.section-title .h2 { text-transform: uppercase; font-size: 14px; letter-spacing: .16em; font-weight: 800; color: #d6d6d6; }
.live-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); animation: pulseBw 2s infinite; }
@keyframes pulseBw { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); } }
.plus { color: #fff; }
.minus { color: #8a8a8a; }

/* ---------- панели ---------- */
.card, .panel, .lobby-item, .h-item, .pool-pl, .pool-power, .chess-player, .room-status, .bj-controls, .bj-tcard, .recent-chip, .toggle-row, .drop {
    background: var(--card); border-color: var(--line); box-shadow: var(--hi), var(--depth); }
.fx-high .card, .fx-high .panel, .fx-high .lobby-item, .fx-high .h-item, .fx-high .room-status, .fx-high .bj-controls, .fx-high .bj-tcard, .fx-high .chess-player, .fx-high .pool-pl {
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.fx-mid .card, .fx-mid .panel, .fx-mid .lobby-item, .fx-mid .h-item, .fx-mid .room-status, .fx-mid .bj-controls, .fx-mid .bj-tcard, .fx-mid .chess-player, .fx-mid .pool-pl,
.fx-low .card, .fx-low .panel, .fx-low .lobby-item, .fx-low .h-item, .fx-low .room-status, .fx-low .bj-controls, .fx-low .bj-tcard, .fx-low .chess-player, .fx-low .pool-pl { background: rgba(14, 14, 14, .94); }
.stat-box, .bet-input { background: rgba(255, 255, 255, .03); border-color: var(--line-2); box-shadow: var(--hi); }
.segmented { background: rgba(10, 10, 10, .85); border-color: var(--line); box-shadow: var(--hi); }
.list-item + .list-item, .result-item + .result-item { border-top-color: rgba(255, 255, 255, .06); }
.list-item:hover { background: rgba(255, 255, 255, .04); }
.feed-icon { background: linear-gradient(145deg, #262626, #121212); border: 1px solid var(--line-2); box-shadow: var(--hi), 0 6px 12px -6px #000; }
.feed-icon[style] { color: #fff !important; }
.tag { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #bdbdbd; }
.avatar { filter: grayscale(1); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08), 0 6px 14px -4px #000; }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); background-size: 200% 100%; }
.badge { background: #000; color: #fff; border-color: rgba(255, 255, 255, .2); }
.badge.live { background: #fff; color: #000; border-color: #fff; }
.empty { color: var(--dim); }

/* ---------- кнопки с толщиной ---------- */
.btn { border-radius: 12px; letter-spacing: .01em; position: relative; transition: transform .14s var(--ease), box-shadow .2s, background .2s; }
.btn-primary { background: linear-gradient(180deg, #ffffff, #dcdcdc); color: #000; box-shadow: 0 4px 0 #6a6a6a, 0 12px 24px -10px #000, inset 0 1px 0 #fff; }
.btn-primary:hover { background: linear-gradient(180deg, #ffffff, #ebebeb); transform: translateY(-1px); box-shadow: 0 5px 0 #6a6a6a, 0 16px 28px -10px #000, inset 0 1px 0 #fff; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #6a6a6a, 0 6px 12px -6px #000; }
.btn-ghost { background: linear-gradient(180deg, #1f1f1f, #141414); border: 1px solid var(--line-2); color: #fff; box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(255, 255, 255, .07); }
.btn-ghost:hover { background: linear-gradient(180deg, #2a2a2a, #1a1a1a); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.btn:disabled { transform: none !important; opacity: .35; }
.btn-primary:disabled { box-shadow: 0 2px 0 #4a4a4a; }
.btn-block { height: 56px; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.icon-btn { background: linear-gradient(180deg, #1f1f1f, #141414); border-color: var(--line-2); box-shadow: 0 3px 0 #000, var(--hi); transition: .15s var(--ease); }
.icon-btn:hover { border-color: rgba(255, 255, 255, .35); color: #fff; transform: translateY(-1px); }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.icon-btn.sm svg { width: 18px; height: 18px; }
.back { color: var(--muted); }
.back:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.chips button { background: linear-gradient(180deg, #1c1c1c, #121212); border-color: var(--line-2); color: #bdbdbd; box-shadow: 0 2px 0 #000; transition: .12s var(--ease); }
.chips button:hover { color: #fff; border-color: rgba(255, 255, 255, .35); transform: translateY(-1px); }
.chips button:active { transform: translateY(2px); box-shadow: none; }
.segmented button { color: var(--muted); }
.segmented button small, .segmented button.active small, .segmented button.active.voice small { color: var(--dim); }
.segmented button.active { background: linear-gradient(180deg, #ffffff, #d6d6d6); color: #000; border-bottom-color: transparent; box-shadow: 0 3px 0 #5c5c5c; }
.segmented button.active small, .segmented button.active.voice small { color: #4a4a4a; }
.segmented button.active.voice { border-bottom-color: transparent; }
.progress { background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 2px #000; height: 6px; }
.progress i, .progress.green i, .progress.gold i { background: linear-gradient(90deg, #7a7a7a, #fff); }
.bet-input:focus-within { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), var(--hi); }
.toggle { background: #2a2a2a; }
.toggle-row.on { border-color: rgba(255, 255, 255, .4); }
.toggle-row.on .toggle { background: #fff; }
.toggle-row.on .toggle i { background: #000; }
.pity .count, .pity .count.green { color: #fff; }

/* ---------- 3D-наклон за курсором ---------- */
[data-tilt] { --rx: 0deg; --ry: 0deg; --lift: 0px; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); transition: transform .6s var(--ease), box-shadow .35s, border-color .3s; will-change: transform; }
[data-tilt].tilting { --lift: -5px; transition: transform .1s linear, box-shadow .35s, border-color .3s; }
.no-tilt [data-tilt] { transform: none; }
.game-glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .35s; border-radius: inherit;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .14), transparent 50%); }
.tilting .game-glare { opacity: 1; }

/* ---------- главная ---------- */
.hero { border-radius: 24px; padding: 32px; min-height: 230px; border: 1px solid var(--line-2);
    background: linear-gradient(135deg, rgba(34, 34, 34, .9), rgba(10, 10, 10, .92) 60%); box-shadow: 0 30px 70px -30px #000, var(--hi); }
.fx-high .hero { backdrop-filter: blur(10px); }
.hero::after { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 14px); }
.hero-grid { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 70%; z-index: 0; pointer-events: none; transform: perspective(380px) rotateX(64deg); transform-origin: 50% 100%;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 44px 44px;
    mask: linear-gradient(0deg, #000 10%, transparent 85%); animation: gridRun 3.5s linear infinite; }
@keyframes gridRun { to { background-position: 0 44px; } }
.hero-user .avatar { width: 70px; height: 70px; border: 3px solid #fff; box-shadow: 0 12px 30px #000; }
.hero-hello { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; }
.hero-name { font-size: 34px; letter-spacing: -.02em; text-shadow: 0 1px 0 #9a9a9a, 0 2px 0 #6a6a6a, 0 3px 0 #3a3a3a, 0 12px 22px rgba(0, 0, 0, .8); }
.hero-stat { background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); box-shadow: var(--hi), 0 10px 22px -12px #000; border-radius: 14px; }
.hero-stat small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.hero > .row, .hero-stats { position: relative; z-index: 2; }

/* 3D-монета: серебро, толстое ребро из слоёв */
.coin3d { position: absolute; right: 7%; top: 50%; width: 128px; height: 128px; margin-top: -76px; perspective: 700px; z-index: 1; pointer-events: none; }
.coin3d-spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: coinSpin 8s linear infinite, coinBob 4s ease-in-out infinite; }
.coin3d-face { position: absolute; inset: 0; backface-visibility: hidden; }
.coin3d-face svg { width: 100%; height: 100%; }
.coin3d-face.front { transform: translateZ(7px); }
.coin3d-face.back { transform: rotateY(180deg) translateZ(7px); }
.coin3d-edge { position: absolute; inset: 3.5%; border-radius: 50%; transform: translateZ(calc(var(--z) * 1.3px)); background: radial-gradient(circle, #2a2a2a 60%, #e0e0e0 61%, #8a8a8a 66%, #3a3a3a 70%); }
.coin3d-shadow { position: absolute; left: 18%; right: 18%; bottom: -26px; height: 16px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .9), transparent 70%); animation: coinShadow 4s ease-in-out infinite; }
@keyframes coinSpin { from { transform: rotateY(0) rotateX(8deg); } to { transform: rotateY(360deg) rotateX(8deg); } }
@keyframes coinBob { 50% { translate: 0 -10px; } }
@keyframes coinShadow { 50% { transform: scale(.8); opacity: .6; } }

/* ---------- карточки игр ---------- */
.games-grid { gap: 18px; }
.game-card, .game-card.board, .game-card.c-bj, .game-card.c-pool, .game-card.c-candy {
    height: 186px; border-radius: 20px; border: 1px solid var(--line-2);
    background: linear-gradient(140deg, #262626 0%, #121212 55%, #0a0a0a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 0 -2px #000, 0 26px 50px -22px #000; }
.game-card::before { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 12px); display: block; }
.game-card::after, .game-card.c-bj::after, .game-card.c-pool::after, .game-card.c-candy::after { background: linear-gradient(90deg, rgba(8, 8, 8, .9) 0%, rgba(8, 8, 8, .4) 45%, transparent 65%); }
.game-card:hover { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-5px); border-color: rgba(255, 255, 255, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 0 -2px #000, 0 36px 60px -22px #000; }
.no-tilt .game-card:hover { transform: translateY(-4px); }
.game-card .game-art { transition: transform .5s var(--ease), filter .4s; transform: translate(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px));
    filter: grayscale(1) contrast(1.15) drop-shadow(0 18px 22px rgba(0, 0, 0, .8)); }
.game-card:hover .game-art { transform: translate(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px)) scale(1.08) rotate(-3deg); }
.game-card h3 { font-size: 27px; letter-spacing: -.02em; transform: translate(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 6px)); transition: transform .5s var(--ease); text-shadow: 0 1px 0 #6a6a6a, 0 2px 0 #3a3a3a, 0 8px 18px #000; }
.game-card p { color: var(--muted); }
.game-card .game-ico { color: rgba(255, 255, 255, .5); }
.casino-banner { border-radius: 20px; border-color: var(--line-2); background: linear-gradient(90deg, #1e1e1e, #0c0c0c 70%); box-shadow: 0 24px 50px -24px #000, var(--hi); }
.casino-banner::after { border-color: rgba(255, 255, 255, .14); }
.casino-banner-logo { color: #fff; }
.casino-banner-logo b { color: var(--muted); }
.place.p1, .place.p2, .place.p3 { color: #fff; }

/* ---------- кейсы ---------- */
.strip-wrap { perspective: 1100px; }
.strip-wrap::before { background: linear-gradient(90deg, #050505, transparent); }
.strip-wrap::after { background: linear-gradient(-90deg, #050505, transparent); }
#strips { transform: rotateX(9deg); transform-style: preserve-3d; }
.strip-pointer { border-top-color: #fff; filter: none; }
.strip-pointer.bottom { border-bottom-color: #fff; }
.strip-pointer::after { content: ''; position: absolute; left: -1px; top: 0; width: 1px; height: 230px; background: linear-gradient(180deg, rgba(255, 255, 255, .8), transparent); }
.strip-pointer.bottom::after { display: none; }
.drop { border-radius: 16px; background: rgba(14, 14, 14, .9); box-shadow: 0 10px 22px -10px #000, var(--hi); }
.drop-in { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, #161616) 0%, #121212 72%); }
.drop-in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .07) 45%, transparent 60%); pointer-events: none; }
.drop svg { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .8)); }
.drop.win { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 20px 40px -10px #000; transform: scale(1.06); }
.multi button.active { background: linear-gradient(180deg, #fff, #d6d6d6); color: #000; box-shadow: 0 3px 0 #5c5c5c; }
.loot-chance { background: #000; color: #fff; }
.recent-chip { border-bottom-color: var(--c); }
.inv-item { background: rgba(255, 255, 255, .04); box-shadow: var(--hi); }

/* ---------- 3D-кости: белые с чёрными точками ---------- */
.dice-pair { gap: 18px; min-height: 70px; align-items: center; perspective: 600px; }
.die3d-wrap { width: 56px; height: 56px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(30deg); }
.die3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--fx)) rotateY(var(--fy)); }
.die3d.rolling { animation: dieTumble .55s linear infinite; animation-delay: calc(var(--sd) * -1); }
.die3d.landed { animation: dieLand 1.05s cubic-bezier(.17, .84, .32, 1.12) both; }
@keyframes dieTumble { from { transform: rotateX(0) rotateY(0) rotateZ(0); } to { transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg); } }
@keyframes dieLand { from { transform: rotateX(calc(var(--fx) + 720deg)) rotateY(calc(var(--fy) + 540deg)); } }
.die-face { position: absolute; inset: 0; border-radius: 12px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 9px; backface-visibility: hidden;
    background: linear-gradient(145deg, #ffffff, #d9d9d9); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 -5px 10px rgba(0, 0, 0, .12); }
.die-face i { width: 9px; height: 9px; border-radius: 50%; background: #111; place-self: center; box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, .25); }
.f-front { transform: translateZ(28px); }
.f-back { transform: rotateY(180deg) translateZ(28px); }
.f-right { transform: rotateY(90deg) translateZ(28px); }
.f-left { transform: rotateY(-90deg) translateZ(28px); }
.f-top { transform: rotateX(90deg) translateZ(28px); }
.f-bottom { transform: rotateX(-90deg) translateZ(28px); }
.dice-sum { font-size: 26px; animation: prizeIn .4s var(--ease); }
.dice-sum:empty { animation: none; }

/* ---------- арена ---------- */
.arena-card { background: linear-gradient(180deg, #1c1c1c, #0c0c0c 65%); }
.vs-big { font-size: 28px; font-weight: 800; color: #fff; text-shadow: 0 1px 0 #8a8a8a, 0 2px 0 #4a4a4a, 0 8px 14px #000; }
.fighter .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), 0 14px 30px #000; }
.fighter.winner .avatar { border-color: #fff; box-shadow: 0 0 0 3px #fff, 0 18px 34px #000; }
.arena-result.win { color: #fff; }
.arena-result.lose { color: #8a8a8a; }
.bullets i { background: #333; }
.bullets i.hit { background: #fff; }
.bullets i.miss { background: #666; }
.shot-flash { background: #fff; }
.modal-card.shake { animation: shake .35s; }
@keyframes shake { 20% { translate: -7px 3px; } 40% { translate: 6px -2px; } 60% { translate: -4px 2px; } 80% { translate: 3px -1px; } }

/* ---------- лотерея ---------- */
.ticket { background: linear-gradient(180deg, #1c1c1c, #121212); border-color: var(--line-2); box-shadow: 0 3px 0 #000, var(--hi); }
.ticket:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 255, 255, .4); box-shadow: 0 5px 0 #000; }
.ticket.sel { background: linear-gradient(180deg, #fff, #d6d6d6); color: #000; border-color: #fff; box-shadow: 0 3px 0 #5c5c5c; transform: translateY(-1px); }
.ticket.taken { background: rgba(0, 0, 0, .4); color: #2e2e2e; border-color: #161616; box-shadow: inset 0 2px 4px #000; }
.ticket.mine { background: #3a3a3a; color: #fff; border-color: #8a8a8a; box-shadow: 0 3px 0 #000; }
.pot-big { font-size: 38px; color: #fff; text-shadow: 0 1px 0 #8a8a8a, 0 2px 0 #4a4a4a, 0 10px 18px #000; }

/* ---------- профиль ---------- */
.history-tabs button { background: linear-gradient(180deg, #1c1c1c, #121212); box-shadow: 0 3px 0 #000; transition: .15s var(--ease); }
.history-tabs button:hover { color: #fff; transform: translateY(-1px); }
.history-tabs button.active { background: linear-gradient(180deg, #fff, #d6d6d6); color: #000; box-shadow: 0 3px 0 #5c5c5c; }
.h-item { transition: transform .25s var(--ease); }
.h-item:hover { transform: translateX(4px); }
.h-item::before { background: #3a3a3a; }
.h-item.win::before { background: #fff; }
.h-head, .h-foot { border-color: rgba(255, 255, 255, .06); color: var(--dim); }

/* ---------- настольные ---------- */
.board-hero, .bj-hero, .pool-hero { border-radius: 20px; border-color: var(--line-2); background: linear-gradient(135deg, #222, #0c0c0c 70%); box-shadow: var(--hi), var(--depth); }
.board-hero img, .bj-tables img { filter: grayscale(1) contrast(1.15) drop-shadow(0 14px 18px #000); }
.board-hero .btn { flex-shrink: 0; }
.howto-row b { color: #fff; }
.room-status.my { border-color: #fff; background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(16, 16, 16, .85) 70%); box-shadow: var(--hi), var(--depth); }
.player-chip .avatar { filter: grayscale(1); }
.chess-stage { perspective: 1300px; }
.fx-high .chess-board, .fx-mid .chess-board { transform: rotateX(7deg); transform-origin: 50% 60%; }
.chess-board { border: 0; border-radius: 8px; box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 9px #3a3a3a, 0 14px 0 6px #000, 0 40px 70px #000; }
.sq.light { background: linear-gradient(135deg, #ececec, #d4d4d4); }
.sq.dark { background: linear-gradient(135deg, #6e6e6e, #555); }
.sq.last { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .18); }
.sq.sel { box-shadow: inset 0 0 0 4px #000; }
.sq.check { background: radial-gradient(circle, #fff 0%, #9a9a9a 70%) !important; }
.crd { color: #222; }
.pc.pw { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.pc.pb { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
.clock { background: #111; }
.clock.on { background: linear-gradient(180deg, #fff, #ddd); color: #000; }
.clock.low { background: #000; color: #fff; box-shadow: inset 0 0 0 2px #fff; animation: pulseBw 1s infinite; }
.mv:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.promo-row button { background: #6e6e6e; }
.sea-grid .cell { background: linear-gradient(160deg, #1e1e1e, #141414); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.sea-grid .cell.ship { background: linear-gradient(160deg, #d6d6d6, #9a9a9a); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #000; }
.sea-grid .cell.ship.ghost { background: #3a3a3a; }
.sea-grid .cell.ship.sunk, .sea-grid .cell.ship.sunk.hit { background: #2a2a2a; }
.sea-grid .cell.hit { background: #fff; }
.sea-grid .cell.hit::after { color: #000; }
.sea-grid .cell.miss::after { background: #5a5a5a; }
.sea-grid.aim .cell:not(.hit):not(.miss):hover { background: #2e2e2e; box-shadow: inset 0 0 0 2px #fff; }
.fleet-ship i { background: #bdbdbd; }
.durak, .joker { background: radial-gradient(120% 100% at 50% 35%, #222 0%, #121212 60%, #0a0a0a 100%); border-color: var(--line-2); box-shadow: inset 0 0 80px #000, 0 30px 70px -30px #000; }
.opp-seat.turn, .jk-seat.turn { border-color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.opp-seat.def .opp-meta span { color: #fff; }
.jk-badge { background: #fff; color: #000; }
.jk-info span b.ok { color: #fff; text-decoration: underline; }
.jk-note { color: #fff; }
.jk-play.win .pcard, .pair.target { box-shadow: 0 0 0 3px #fff, 0 12px 24px #000; }
.catch-btn { background: #000; border-color: #fff; color: #fff; }
.catch-btn:hover { background: #fff; color: #000; }
.pcard { background: linear-gradient(160deg, #ffffff, #ececec 60%, #dcdcdc); box-shadow: 0 8px 18px rgba(0, 0, 0, .6), inset 0 1px 0 #fff; border-color: #cfcfcf; }
.pcard.back { background: repeating-linear-gradient(45deg, #1a1a1a 0 6px, #2c2c2c 6px 12px); border: 3px solid #e6e6e6; }
.my-hand { perspective: 900px; }
.my-hand .pcard { transform-origin: 50% 120%; }
.my-hand .pcard.playable:hover { transform: translateY(-16px) rotateX(10deg) scale(1.04); box-shadow: 0 0 0 2px #fff, 0 18px 30px #000; }
.my-hand .pcard.selected { transform: translateY(-22px) rotateX(10deg) scale(1.05); box-shadow: 0 0 0 3px #fff, 0 18px 30px #000; }
.my-hand .pcard.trump::before { background: #000; }
.my-hand .pcard.cheaty:hover { box-shadow: 0 0 0 2px #9a9a9a; }
.pool-pl.on { border-color: #fff; background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(16, 16, 16, .85) 70%); }
.pool-pl.right.on { background: linear-gradient(270deg, rgba(255, 255, 255, .08), rgba(16, 16, 16, .85) 70%); }
.pool-table-wrap { background: none; filter: drop-shadow(0 30px 40px #000); }
.pool-power input, .pool-power { accent-color: #fff; }

/* ---------- казино ---------- */
.casino-hero { border-radius: 26px; border-color: var(--line-2); background: radial-gradient(70% 130% at 50% 0%, #262626 0%, #101010 60%, #060606 100%); box-shadow: 0 30px 70px -30px #000, var(--hi); }
.marquee { border-color: rgba(255, 255, 255, .5); animation: marqueeBw 1.4s steps(2) infinite; }
@keyframes marqueeBw { 50% { border-color: rgba(255, 255, 255, .15); } }
.casino-logo { font-size: 58px; background: linear-gradient(180deg, #ffffff, #9a9a9a); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 0 #3a3a3a) drop-shadow(0 12px 18px #000); }
.casino-logo span { color: var(--muted); -webkit-text-fill-color: var(--muted); }
.casino-sub { color: var(--muted); }
.casino-bal { border-color: var(--line-2); }
.casino-chips3d { position: absolute; inset: 0; pointer-events: none; perspective: 600px; }
.casino-chips3d i { position: absolute; width: 52px; height: 52px; border-radius: 50%; animation: chipFloat 9s ease-in-out infinite; animation-delay: var(--d);
    background: radial-gradient(circle, #111 0 44%, #fff 45% 49%, transparent 50%), repeating-conic-gradient(#111 0 22.5deg, #f0f0f0 22.5deg 45deg); box-shadow: 0 4px 0 #000, 0 14px 22px #000; }
.casino-chips3d i:nth-child(2) { right: 8%; top: 18%; width: 42px; height: 42px; }
.casino-chips3d i:nth-child(1) { left: 6%; top: 22%; }
.casino-chips3d i:nth-child(3) { left: 14%; bottom: 14%; width: 36px; height: 36px; }
.casino-chips3d i:nth-child(4) { right: 15%; bottom: 16%; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0) rotateX(55deg) rotateZ(0); } 50% { transform: translateY(-14px) rotateX(35deg) rotateZ(180deg); } }
.venue, .v-bj, .v-pool, .v-candy { border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #262626, #0c0c0c 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -26px #000; }
.v-bj::before, .v-pool::before, .v-candy::before { display: none; }
.v-bj::after, .v-pool::after, .v-candy::after { background: linear-gradient(0deg, rgba(6, 6, 6, .95) 12%, transparent 62%); }
.venue:hover { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); border-color: rgba(255, 255, 255, .35); }
.venue .venue-art { transform: translate(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -16px)); filter: grayscale(1) contrast(1.15) drop-shadow(0 20px 24px #000); }
.venue:hover .venue-art { transform: translate(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -16px)) scale(1.07) rotate(-3deg); }
.venue-kicker { color: var(--muted); }
.venue h3 { letter-spacing: -.02em; text-shadow: 0 1px 0 #6a6a6a, 0 2px 0 #3a3a3a, 0 8px 18px #000; }
.venue p { color: #bdbdbd; }
.venue-live { background: rgba(0, 0, 0, .6); }
.bj-tcard:hover { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px); border-color: rgba(255, 255, 255, .35); }
/* столы 21 — графитовое сукно и чёрный борт для всех залов */
[data-theme="emerald"], [data-theme="ruby"], [data-theme="vip"] { --felt-1: #2e2e2e; --felt-2: #111; --rail-1: #2a2a2a; --rail-2: #050505; --line-gold: #d6d6d6; }
[data-theme="vip"] { --felt-1: #1f1f1f; --felt-2: #070707; }
[data-theme="vip"] .bj-table { box-shadow: 0 30px 70px #000, inset 0 0 0 2px #d6d6d6, inset 0 0 0 5px #111; }
.bj-table-wrap { perspective: 1500px; }
.fx-high .bj-table, .fx-mid .bj-table { transform: rotateX(11deg); transform-origin: 50% 0; }
.bj-table { box-shadow: 0 2cqw 0 #000, 0 40px 80px #000, inset 0 2px 0 rgba(255, 255, 255, .1); }
.bj-title b { color: #fff; }
.bj-banner { color: #fff; }
.bj-banner.my { background: #fff; color: #000; border-color: #fff; animation: none; }
.bj-hand.active { box-shadow: 0 0 0 2px #fff, 0 12px 20px #000; }
.bj-seat.mine .bj-player { background: #fff; color: #000; }
.bj-seat.mine .bj-spot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.r-blackjack .bj-res { background: #fff; color: #000; }
.r-win .bj-res { background: #e6e6e6; color: #000; }
.r-push .bj-res { background: #555; }
.r-lose .bj-res, .r-bust .bj-res { background: #222; color: #9a9a9a; }
.bj-ava.ring { background: conic-gradient(#fff calc(var(--p, 1) * 360deg), rgba(255, 255, 255, .15) 0); }
.bj-ready { background: #fff; color: #000; }
.bj-float.plus { color: #fff; }
.bj-float.minus { color: #8a8a8a; }
.bj-shoe i { box-shadow: inset 1.4cqw 0 0 #555, 0 .6cqw 1.2cqw #000; }
.bj-act { box-shadow: 0 4px 0 #000, var(--hi); }
.bj-act:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.bj-act.hit { background: linear-gradient(180deg, #fff, #d6d6d6); color: #000; border-color: #fff; box-shadow: 0 4px 0 #5c5c5c; }
.bj-act.stand { background: linear-gradient(180deg, #2a2a2a, #161616); color: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: 0 4px 0 #000; }
.bj-act.hit small { color: #4a4a4a; }
.bj-act.stand small { color: #bdbdbd; }
.chip.big { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 4px 0 #000, 0 10px 18px #000; }
.chip.big:hover:not(:disabled) { transform: translateY(-6px) rotateX(20deg); }

/* ---------- модалки ---------- */
.modal-backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px) grayscale(1); }
.modal-card { border-radius: 24px; background: linear-gradient(180deg, #1a1a1a, #0c0c0c); border: 1px solid var(--line-2);
    box-shadow: 0 40px 100px #000, inset 0 1px 0 rgba(255, 255, 255, .08); animation: modalIn3d .5s var(--ease); transform-origin: 50% 0; }
@keyframes modalIn3d { from { opacity: 0; transform: perspective(1000px) rotateX(-16deg) translateY(30px) scale(.94); } }
.modal-card { max-height: calc(var(--vh-px, 100vh) / var(--zoom, 1) * .92); }
.modal-close { background: rgba(255, 255, 255, .05); }
.prize::before { background: repeating-conic-gradient(rgba(255, 255, 255, .07) 0 8deg, transparent 8deg 20deg); }
.candy-board { width: min(100%, calc((var(--vh-px, 100vh) / var(--zoom, 1) - 340px) * 1.2 + 16px)); }

/* окно правил перед игрой — монохром, без цветной подсветки */
.modal-card.intro-card { width: min(540px, 100%); overflow-x: hidden; background: radial-gradient(120% 60% at 50% 0%, #262626 0%, #0c0c0c 62%); }
.intro { padding: 22px 24px 22px; text-align: center; position: relative; }
.intro-stage { position: relative; height: 158px; display: grid; place-items: center; perspective: 800px; animation: introFloat 5s ease-in-out infinite; }
.intro-halo { position: absolute; width: 210px; height: 50px; bottom: 0; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .9), transparent 70%); }
.intro-art { position: relative; width: 190px; height: 140px; border-radius: 22px; transform-style: preserve-3d; display: grid; place-items: center; }
.intro-art img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.15) drop-shadow(0 24px 26px #000); transform: translateZ(40px); }
.intro-glare { position: absolute; inset: 0; border-radius: 22px; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 20%), rgba(255, 255, 255, .14), transparent 55%); }
.tilting .intro-glare { opacity: 1; }
@keyframes introFloat { 50% { transform: translateY(-8px); } }
.intro-kicker { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.intro-title { font-size: 38px; font-weight: 800; line-height: 1.1; margin-top: 4px; letter-spacing: -.02em; text-shadow: 0 1px 0 #9a9a9a, 0 2px 0 #6a6a6a, 0 3px 0 #3a3a3a, 0 12px 22px #000; }
.intro-tag { color: var(--muted); margin: 8px auto 18px; max-width: 400px; font-size: 14px; line-height: 1.45; }
.intro-rules { list-style: none; display: flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 18px; }
.intro-rules li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); box-shadow: var(--hi);
    animation: ruleIn .5s var(--ease) both; animation-delay: calc(var(--i) * 85ms + 180ms); }
@keyframes ruleIn { from { opacity: 0; transform: perspective(600px) translateX(-16px) rotateY(12deg); } }
.intro-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #000; background: linear-gradient(180deg, #fff, #d0d0d0); box-shadow: 0 3px 0 #5c5c5c; }
.intro-rules b { display: block; font-size: 14px; margin-bottom: 2px; }
.intro-rules p { font-size: 13.5px; color: #bdbdbd; line-height: 1.45; }
.intro-ok { gap: 10px; }
.intro-ok svg { width: 20px; height: 20px; }

/* настройки */
.settings-card { width: min(560px, 100%); }
.settings { display: flex; flex-direction: column; gap: 16px; }
.settings-head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.settings-head .muted { font-size: 13px; margin-top: 2px; }
.settings-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #000; background: linear-gradient(145deg, #fff, #c4c4c4); box-shadow: 0 4px 0 #5c5c5c, 0 10px 20px #000; }
.settings-ico svg { width: 24px; height: 24px; animation: spin 14s linear infinite; }
.set-block { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); box-shadow: var(--hi); display: flex; flex-direction: column; gap: 12px; }
.set-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.set-title svg { width: 18px; height: 18px; color: #fff; }
.set-val { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #fff; color: #000; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.set-hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.lang-pick, .fx-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-pick { grid-template-columns: repeat(3, 1fr); }
.lang-pick button, .fx-pick button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border-radius: 13px; text-align: left;
    background: linear-gradient(180deg, #1c1c1c, #121212); border: 1px solid var(--line-2); box-shadow: 0 3px 0 #000; transition: .15s var(--ease); }
.lang-pick button:hover, .fx-pick button:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .35); }
.lang-pick button b, .fx-pick button b { font-size: 16px; }
.lang-pick button span, .fx-pick button span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.lang-pick button.active, .fx-pick button.active { background: linear-gradient(180deg, #fff, #d6d6d6); color: #000; border-color: #fff; box-shadow: 0 3px 0 #5c5c5c; }
.lang-pick button.active span, .fx-pick button.active span { color: #4a4a4a; }
.zoom-row { display: flex; align-items: center; gap: 12px; }
.zoom-btn { width: 40px; height: 40px; border-radius: 12px; font-size: 22px; font-weight: 800; flex-shrink: 0; background: linear-gradient(180deg, #1f1f1f, #141414); border: 1px solid var(--line-2); box-shadow: 0 3px 0 #000; }
.zoom-btn:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.zoom-btn:active { transform: translateY(2px); box-shadow: none; }
.zoom-row input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #3a3a3a, #fff); box-shadow: inset 0 1px 2px #000; cursor: pointer; }
.zoom-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #fff, #cfcfcf); border: 0; box-shadow: 0 3px 0 #5c5c5c, 0 6px 12px #000; }
.zoom-row input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 3px 0 #5c5c5c; }
.zoom-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.zoom-presets button { flex: 1; min-width: 56px; height: 34px; border-radius: 10px; font-weight: 800; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: .15s; }
.zoom-presets button:hover { color: #fff; }
.zoom-presets button.active { color: #000; background: #fff; border-color: #fff; }

/* ---------- уведомления ---------- */
.toast { border-radius: 12px; background: #141414; border: 1px solid var(--line-2); box-shadow: 0 16px 40px #000, var(--hi); animation: toastIn3d .45s var(--ease); }
.toast.ok { border-color: #fff; }
.toast.err { border-color: #5c5c5c; background: #0a0a0a; color: #d6d6d6; }
@keyframes toastIn3d { from { opacity: 0; transform: perspective(600px) rotateY(-30deg) translateX(30px); } }

/* ---------- частицы на выигрышах ---------- */
.burst { position: fixed; width: 0; height: 0; z-index: 120; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 13px; margin: -6px 0 0 -4px; border-radius: 1px; animation: burstFly 1.4s cubic-bezier(.15, .75, .3, 1) both; }
@keyframes burstFly {
    0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; }
    45% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rz) * .5)) scale(1); opacity: 1; }
    100% { transform: translate(calc(var(--dx) * 1.2), calc(var(--dy) + 240px)) rotate(var(--rz)) scale(.7); opacity: 0; }
}

/* ==========================================================
   СЛОТЫ «ГНЕВ ЗЕВСА» И «СКЛЕП»
   ========================================================== */
.slot-page { max-width: 1120px; }
.sl-scene { position: relative; overflow: hidden; padding: 18px 18px 14px; border-radius: 26px; border: 1px solid var(--line-2); transition: box-shadow .4s;
    box-shadow: 0 30px 70px -20px #000, inset 0 1px 0 rgba(255, 255, 255, .08); }
.zeus .sl-scene { background: radial-gradient(90% 70% at 50% 0%, #3a3a3a 0%, #161616 55%, #080808 100%); }
.crypt .sl-scene { background: radial-gradient(80% 70% at 50% 100%, #1c1c1c 0%, #0a0a0a 55%, #000 100%); }
.sl-atmo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sl-atmo .zcloud { position: absolute; width: 420px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .07), transparent); filter: blur(14px); animation: drift 26s linear infinite; }
/* обложки новых залов на витрине — компактнее, чтобы не наезжать на текст */
.v-zeus .venue-art, .v-crypt .venue-art, .v-plinko .venue-art { width: 58%; top: 12px; right: 10px; }
.sl-atmo .zcloud.a { top: 4%; left: -20%; }
.sl-atmo .zcloud.b { top: 14%; left: 40%; width: 420px; animation-duration: 38s; animation-delay: -12s; }
.sl-atmo .zcloud.c { top: 2%; left: 70%; width: 260px; animation-duration: 30s; animation-delay: -20s; }
@keyframes drift { to { translate: 60vw 0; } }
.sl-atmo .bolt-flash { position: absolute; inset: 0; background: radial-gradient(60% 40% at 60% 0%, rgba(255, 255, 255, .5), transparent 70%); opacity: 0; animation: skyFlash 9s infinite; }
@keyframes skyFlash { 0%, 92%, 100% { opacity: 0; } 93% { opacity: .9; } 94% { opacity: .1; } 95% { opacity: .7; } }
.sl-atmo .fog { position: absolute; left: -30%; right: -30%; height: 45%; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .09), transparent 70%); filter: blur(10px); animation: fog 22s ease-in-out infinite alternate; }
.sl-atmo .fog.a { bottom: -10%; }
.sl-atmo .fog.b { top: 30%; animation-duration: 30s; animation-delay: -10s; opacity: .7; }
@keyframes fog { to { translate: 18% 0; } }
.sl-atmo .eyes { position: absolute; top: 9%; right: 6%; width: 40px; height: 8px; background: radial-gradient(circle at 20% 50%, #fff 0 2.5px, transparent 3.5px), radial-gradient(circle at 80% 50%, #fff 0 2.5px, transparent 3.5px); animation: blink 6s infinite; opacity: .7; }
@keyframes blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
.sl-title { position: relative; text-align: center; font-size: 40px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px;
    text-shadow: 0 1px 0 #cfcfcf, 0 2px 0 #9a9a9a, 0 3px 0 #6a6a6a, 0 4px 0 #3a3a3a, 0 14px 24px #000; }
.crypt .sl-title { letter-spacing: .3em; font-weight: 700; text-shadow: 0 0 1px #fff, 0 3px 0 #2a2a2a, 0 14px 24px #000; animation: flicker 7s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 41% { opacity: 1; } 42% { opacity: .4; } 43% { opacity: 1; } 44% { opacity: .6; } 45% { opacity: 1; } }
.sl-title.small { font-size: 24px; margin: 0 0 4px; text-align: left; }
.sl-banner { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; min-height: 44px; padding: 6px 14px; margin: 0 auto 12px; max-width: 760px;
    border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; text-align: center; }
.sl-banner b { color: #fff; }
.sl-bw { display: inline-flex; align-items: center; gap: 6px; }
.sl-bw .sl-sym { width: 24px; height: 24px; }
.sl-chip { padding: 2px 10px; border-radius: 999px; background: #fff; color: #000; font-weight: 800; }
.sl-cabinet { position: relative; }
.sl-side { position: absolute; left: 0; top: 0; z-index: 6; }
.sl-fs { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 14px; border-radius: 16px; background: #fff; color: #000; box-shadow: 0 4px 0 #5c5c5c, 0 16px 30px #000; }
.sl-fs small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #4a4a4a; }
.sl-fs b { font-size: 24px; }
.sl-fs span { font-weight: 800; font-size: 13px; }
.sl-fs span:empty { display: none; }
.sl-board-wrap { position: relative; perspective: 1400px; margin: 0 auto; width: min(100%, calc((var(--vh-px, 100vh) / var(--zoom, 1) - 360px) * 1.62)); min-width: min(100%, 420px); }
.crypt .sl-board-wrap { width: min(100%, calc((var(--vh-px, 100vh) / var(--zoom, 1) - 360px) * 1.25)); }
.sl-board { --gap: 8px; position: relative; display: grid; grid-template-columns: repeat(var(--reels), 1fr); gap: var(--gap); padding: 12px; aspect-ratio: var(--reels) / var(--rows);
    border-radius: 22px; background: linear-gradient(180deg, #4a4a4a, #1a1a1a 30%, #0c0c0c); transform: rotateX(7deg); transform-origin: 50% 100%;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 0 #000, 0 40px 70px -10px #000; }
.fx-low .sl-board { transform: none; }
.sl-reel { position: relative; overflow: hidden; border-radius: 14px; display: grid; grid-template-rows: repeat(var(--rows), 1fr); min-width: 0; min-height: 0; transition: background .3s;
    background: radial-gradient(120% 60% at 50% 50%, #2e2e2e, #121212); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.crypt .sl-reel { background: radial-gradient(120% 60% at 50% 50%, #1e1e1e, #070707); }
/* затенение сверху и снизу — барабан выглядит цилиндром */
.sl-reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 22%, transparent 78%, rgba(0, 0, 0, .7)); }
.sl-cell { position: relative; display: grid; place-items: center; padding: 9%; min-height: 0; }
.sl-sym { width: 100%; height: 100%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .7)); }
.sl-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.sl-strip.moving .sl-sym { filter: blur(.8px) drop-shadow(0 6px 6px rgba(0, 0, 0, .7)); }
.sl-cell.land { animation: slLand .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes slLand { from { transform: translateY(-9%); } }
.sl-board.has-win .sl-cell:not(.win) { opacity: .28; transition: opacity .3s; }
.sl-cell.win::before { content: ''; position: absolute; inset: 6%; border-radius: 14px; border: 2px solid #fff; box-shadow: 0 0 0 1px #000, inset 0 0 18px rgba(255, 255, 255, .25); }
.sl-cell.win .sl-sym { animation: slWin .5s ease-in-out infinite alternate; }
@keyframes slWin { to { transform: scale(1.12) translateY(-3%); } }
.sl-cell.scatter::before { border-style: dashed; }
.sl-reel.struck { animation: strike .5s; }
@keyframes strike { 0% { background: #fff; } 30% { background: #e6e6e6; } }
.sl-cell.wild .sl-sym { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .7)) drop-shadow(0 6px 6px #000); }
.sl-mult { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3; padding: 4px 12px; border-radius: 12px; background: #fff; color: #000; font-weight: 800; font-size: 22px; box-shadow: 0 4px 0 #5c5c5c, 0 12px 20px #000; animation: prizeIn .4s var(--ease); }
.sl-cell.flip { animation: flipOut .38s ease-in forwards; }
.sl-cell.revealed { animation: flipIn .45s ease-out; }
@keyframes flipOut { to { transform: perspective(400px) rotateY(90deg); } }
@keyframes flipIn { from { transform: perspective(400px) rotateY(-90deg); } }
.sl-lines { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); pointer-events: none; z-index: 4; overflow: visible; }
.sl-lines polyline { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 6px rgba(0, 0, 0, .8));
    stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: lineDraw .7s var(--d, 0ms) ease-out forwards; }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
.sl-scene.flash::after { content: ''; position: absolute; inset: 0; z-index: 8; pointer-events: none; background: #fff; animation: sceneFlash .5s ease-out forwards; }
@keyframes sceneFlash { from { opacity: .75; } to { opacity: 0; } }
.sl-scene.fs { box-shadow: 0 0 0 2px #fff, 0 30px 70px -20px #000; }
.crypt .sl-scene.fs { animation: dread 2.4s ease-in-out infinite; }
@keyframes dread { 50% { box-shadow: 0 0 0 2px #fff, 0 0 60px rgba(255, 255, 255, .15), 0 30px 70px -20px #000; } }
.sl-overlay { position: absolute; inset: -6px; z-index: 7; display: grid; place-items: center; border-radius: 22px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); cursor: pointer; animation: fade .3s; }
.sl-ovcard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 34px; border-radius: 22px; text-align: center; background: linear-gradient(180deg, #fff, #d6d6d6); color: #000;
    box-shadow: 0 6px 0 #5c5c5c, 0 30px 60px #000; animation: modalIn3d .5s var(--ease); }
.sl-ovcard small { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: #4a4a4a; }
.sl-ovcard b { font-size: 30px; font-weight: 800; }
.sl-ovcard b.sum { font-size: 44px; }
.sl-ovcard span { font-size: 13px; font-weight: 600; color: #3a3a3a; max-width: 280px; }
.sl-big { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: bigIn .6s var(--ease); }
.sl-big small { font-size: 32px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 0 #6a6a6a, 0 3px 0 #3a3a3a, 0 10px 20px #000; }
.sl-big b { font-size: 64px; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #cfcfcf, 0 2px 0 #9a9a9a, 0 3px 0 #6a6a6a, 0 4px 0 #3a3a3a, 0 16px 30px #000; }
.sl-big span { font-weight: 700; color: #bdbdbd; }
.sl-bar { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px 14px; border-radius: 20px; background: rgba(0, 0, 0, .6); border: 1px solid var(--line-2); box-shadow: var(--hi); }
.sl-stat { display: flex; flex-direction: column; min-width: 0; }
.sl-stat small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sl-stat b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-stat.win { flex: 1; align-items: center; }
.sl-stat.win b { font-size: 24px; }
.sl-bet { display: flex; align-items: center; gap: 8px; }
.sl-bet .sl-stat { min-width: 76px; align-items: center; }
.sl-bet button, .pl-bet button { width: 34px; height: 34px; border-radius: 50%; font-size: 20px; font-weight: 800; background: linear-gradient(180deg, #2a2a2a, #141414); border: 1px solid var(--line-2); box-shadow: 0 3px 0 #000; }
.sl-bet button:active, .pl-bet button:active { transform: translateY(2px); box-shadow: none; }
.sl-bet button:disabled { opacity: .35; }
.sl-btns { display: flex; align-items: center; gap: 10px; }
.sl-spin { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #000; background: radial-gradient(circle at 35% 30%, #fff, #d6d6d6 55%, #8a8a8a);
    box-shadow: 0 6px 0 #4a4a4a, 0 16px 30px #000, inset 0 2px 0 #fff; transition: transform .15s; }
.sl-spin svg { width: 32px; height: 32px; }
.sl-spin:hover:not(:disabled) { transform: translateY(-1px) scale(1.04); }
.sl-spin:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #4a4a4a, 0 8px 16px #000; }
.sl-scene.spinning .sl-spin svg { animation: spin .9s linear infinite; }
.sl-toggle { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.sl-toggle.on, .active-toggle { background: #fff !important; color: #000 !important; border-color: #fff !important; }

/* ---------- плинко ---------- */
.plinko-page { max-width: 1120px; }
.pl-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.pl-panel { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pl-bet { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.pl-bet b { font-size: 22px; font-variant-numeric: tabular-nums; }
.pl-hist { display: flex; flex-wrap: wrap; gap: 5px; min-height: 26px; }
.pl-hist span { padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; background: #2a2a2a; animation: prizeIn .3s var(--ease); }
.pl-hist span.hi { background: #fff; color: #000; }
.pl-hist span.lo { background: #141414; color: #6a6a6a; }
.pl-board { position: relative; border-radius: 24px; padding: 10px; background: radial-gradient(80% 60% at 50% 20%, #222, #0a0a0a 75%); border: 1px solid var(--line-2);
    box-shadow: 0 30px 60px -20px #000, inset 0 1px 0 rgba(255, 255, 255, .08); perspective: 1400px; }
#pl-canvas { display: block; width: 100%; max-height: calc(var(--vh-px, 100vh) / var(--zoom, 1) - 170px); object-fit: contain; margin: 0 auto; }

@media (max-width: 1000px) { .pl-layout { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
    .sl-scene { padding: 12px 10px 10px; margin: 0 -8px; border-radius: 20px; }
    .sl-title { font-size: 26px; }
    .sl-board { --gap: 5px; padding: 8px; transform: none; }
    .sl-lines { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
    .sl-bar { flex-wrap: wrap; justify-content: space-between; gap: 10px; }
    .sl-stat.win { order: -1; flex-basis: 100%; }
    .sl-btns { flex-basis: 100%; justify-content: center; }
    .sl-big b { font-size: 42px; }
    .sl-big small { font-size: 22px; }
    .sl-side { position: static; margin-bottom: 8px; }
}

/* ==========================================================
   ТЕМЫ КАЗИНО: сукно, металл колеса, фишки
   ========================================================== */
:root, html[data-ctheme="mono"] {
    --felt-a: #2a2a2a; --felt-b: #0e0e0e; --trim: #d6d6d6;
    --rl-red: #d4d4d4; --rl-red-ink: #000; --rl-black: #0c0c0c; --rl-green: #4a4a4a;
    --rl-metal: #9a9a9a; --rl-metal-hi: #ffffff;
    --chip-0: #f2f2f2; --chip-1: #bdbdbd; --chip-2: #8a8a8a; --chip-3: #5a5a5a; --chip-4: #2e2e2e; --chip-5: #111;
}
html[data-ctheme="vegas"] {
    --felt-a: #8a1424; --felt-b: #2a050a; --trim: #e9c46a;
    --rl-red: #c0182a; --rl-red-ink: #fff; --rl-black: #111; --rl-green: #157a3f;
    --rl-metal: #b8902f; --rl-metal-hi: #ffe6a3;
    --chip-0: #f2f2f2; --chip-1: #c0182a; --chip-2: #1f6fd1; --chip-3: #111; --chip-4: #7b3fe4; --chip-5: #e0811a;
}
html[data-ctheme="monaco"] {
    --felt-a: #17784a; --felt-b: #052c19; --trim: #d9b45a;
    --rl-red: #b3121f; --rl-red-ink: #fff; --rl-black: #111; --rl-green: #0d5a30;
    --rl-metal: #c9a24a; --rl-metal-hi: #fff1c4;
    --chip-0: #f2f2f2; --chip-1: #b3121f; --chip-2: #1a5fb4; --chip-3: #111; --chip-4: #5c2d91; --chip-5: #d9b45a;
}
html[data-ctheme="royal"] {
    --felt-a: #22397a; --felt-b: #070f26; --trim: #d0d8ea;
    --rl-red: #a8142a; --rl-red-ink: #fff; --rl-black: #0d0d14; --rl-green: #1b6b4a;
    --rl-metal: #aab4c8; --rl-metal-hi: #ffffff;
    --chip-0: #f2f2f2; --chip-1: #a8142a; --chip-2: #3a6fd8; --chip-3: #0d0d14; --chip-4: #8a5cd6; --chip-5: #cfd8e8;
}
/* сукно блэкджека следует теме */
html[data-ctheme="vegas"] [data-theme], html[data-ctheme="monaco"] [data-theme], html[data-ctheme="royal"] [data-theme] { --felt-1: var(--felt-a); --felt-2: var(--felt-b); --line-gold: var(--trim); --rail-1: #2a1a10; --rail-2: #070403; }
html:not([data-ctheme="mono"]) .casino-hero { background: radial-gradient(70% 130% at 50% 0%, var(--felt-a) 0%, var(--felt-b) 60%, #050505 100%); border-color: color-mix(in srgb, var(--trim) 35%, transparent); }
html:not([data-ctheme="mono"]) .casino-logo { background: linear-gradient(180deg, #fff, var(--trim)); -webkit-background-clip: text; background-clip: text; }
html:not([data-ctheme="mono"]) .marquee { border-color: var(--trim); }
html:not([data-ctheme="mono"]) .pl-board { background: radial-gradient(80% 60% at 50% 20%, var(--felt-a), var(--felt-b) 80%); }
.ctheme-pick { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; padding: 5px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2); }
.ctheme-pick button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--muted); transition: .15s; }
.ctheme-pick button.active { background: #fff; color: #000; }
.ct-swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.ct-mono { background: linear-gradient(135deg, #fff 50%, #111 50%); }
.ct-vegas { background: linear-gradient(135deg, #c0182a 50%, #e9c46a 50%); }
.ct-monaco { background: linear-gradient(135deg, #17784a 50%, #d9b45a 50%); }
.ct-royal { background: linear-gradient(135deg, #22397a 50%, #d0d8ea 50%); }
.venue.wide { width: 100%; min-height: 230px; margin-bottom: 16px; }
.venue.wide .venue-art { width: 46%; top: 50%; translate: 0 -50%; right: 2%; }
.venue.wide p { max-width: 52%; }
html:not([data-ctheme="mono"]) .venue.wide { background: radial-gradient(90% 120% at 80% 50%, var(--felt-a), var(--felt-b) 70%); }

/* ---------- кнопка покупки бонуса в слотах ---------- */
.sl-buy { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 14px; border-radius: 14px; background: linear-gradient(180deg, #2a2a2a, #121212); border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 3px 0 #000; transition: .15s; }
.sl-buy small { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sl-buy b { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.sl-buy:hover:not(:disabled) { border-color: #fff; transform: translateY(-1px); }
.sl-buy:disabled { opacity: .35; }

/* ==========================================================
   РУЛЕТКА
   ========================================================== */
.roulette-page { max-width: 1120px; }
.rl-room { padding: 18px; border-radius: 26px; border: 1px solid var(--line-2); background: radial-gradient(90% 70% at 50% 0%, #1e1e1e, #070707 75%); box-shadow: 0 30px 70px -20px #000, var(--hi); }
.rl-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.rl-wheel-wrap { perspective: 1100px; padding: 10px 0 0; }
.rl-tilt { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; transform: rotateX(52deg); transform-style: preserve-3d; }
.fx-low .rl-tilt { transform: rotateX(30deg); }
.rl-bowl-shadow { position: absolute; inset: -2%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .85), transparent); transform: translateZ(-30px); filter: blur(8px); }
.rl-wheel { position: absolute; inset: 0; border-radius: 50%; transition: transform 6s cubic-bezier(.12, .62, .18, 1); box-shadow: 0 0 0 10px #1a1a1a, 0 0 0 12px color-mix(in srgb, var(--trim) 70%, transparent), 0 18px 0 8px #000; }
.rl-wheel-svg { width: 100%; height: 100%; display: block; }
.rl-rim { fill: #141414; stroke: var(--rl-metal); stroke-width: 3; }
.rl-p { stroke: rgba(255, 255, 255, .18); stroke-width: .8; }
.rl-p.red { fill: var(--rl-red); }
.rl-p.black { fill: var(--rl-black); }
.rl-p.green { fill: var(--rl-green); }
.rl-n { font: 800 14px Inter, Arial, sans-serif; text-anchor: middle; dominant-baseline: middle; fill: #fff; }
.rl-n.red { fill: var(--rl-red-ink); }
.rl-frets line { stroke: var(--rl-metal); stroke-width: 1.4; }
/* шарик: координаты ставит JS (угол и радиус), в лунке он переезжает внутрь колеса */
.rl-ball { position: absolute; z-index: 3; width: 4.4%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 35% 30%, #fff, #e6e6e6 40%, #7a7a7a); box-shadow: 0 2px 3px rgba(0, 0, 0, .8); }
.rl-info { display: flex; flex-direction: column; gap: 10px; }
.rl-result { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; border-radius: 18px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line-2); }
.rl-result small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.rl-result b { font-size: 56px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #4a4a4a, 0 10px 20px #000; animation: prizeIn .4s var(--ease); }
.rl-result b.red { color: var(--rl-red); }
.rl-result b.green { color: color-mix(in srgb, var(--rl-green) 60%, #fff); }
.rl-hist { display: flex; flex-wrap: wrap; gap: 5px; }
.rl-h { min-width: 30px; height: 30px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35); }
.rl-h.red { background: var(--rl-red); color: var(--rl-red-ink); }
.rl-h.black { background: var(--rl-black); color: #fff; border: 1px solid var(--line-2); }
.rl-h.green { background: var(--rl-green); color: #fff; }
.rl-h:first-child { outline: 2px solid #fff; outline-offset: 1px; }
.rl-felt { margin-top: 18px; padding: 14px; border-radius: 22px; perspective: 1400px; background: radial-gradient(120% 120% at 50% 0%, var(--felt-a), var(--felt-b)); box-shadow: inset 0 0 60px rgba(0, 0, 0, .6), 0 10px 0 #000, var(--hi); }
.rl-table { display: grid; grid-template-columns: 1.1fr repeat(12, 1fr) 1.2fr; grid-template-rows: repeat(3, 46px) 40px 40px; gap: 3px; transform: rotateX(14deg); transform-origin: 50% 100%; }
.fx-low .rl-table { transform: none; }
.rl-cell { position: relative; display: grid; place-items: center; border-radius: 6px; font-weight: 800; font-size: 15px; color: #fff; border: 1px solid color-mix(in srgb, var(--trim) 45%, transparent); background: rgba(0, 0, 0, .15); transition: background .15s, transform .1s; }
.rl-cell:hover { background: rgba(255, 255, 255, .12); }
.rl-cell:active { transform: translateY(1px); }
.rl-cell.num span { display: grid; place-items: center; width: 82%; height: 76%; border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35); }
.rl-cell.num.red span { background: var(--rl-red); color: var(--rl-red-ink); }
.rl-cell.num.black span { background: var(--rl-black); }
.rl-cell.num.green span { background: var(--rl-green); }
.rl-cell.zero { border-radius: 40% 6px 6px 40%; }
.rl-cell.out { font-size: 13px; color: var(--trim); text-transform: uppercase; letter-spacing: .04em; }
.rl-cell.cover { background: rgba(255, 255, 255, .22); }
.rl-cell.win { animation: rlWin .6s ease-in-out infinite alternate; }
@keyframes rlWin { to { background: rgba(255, 255, 255, .45); box-shadow: 0 0 0 2px #fff; } }
.rl-diamond { display: block; width: 22px; height: 22px; transform: rotate(45deg) scaleY(.75); border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.rl-diamond.red { background: var(--rl-red); }
.rl-diamond.black { background: var(--rl-black); }
.rl-stack { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; pointer-events: none;
    background: radial-gradient(circle, var(--cc) 0 46%, #fff 47% 52%, transparent 53%), repeating-conic-gradient(var(--cc) 0 22.5deg, #f4f4f4 22.5deg 45deg);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 6px 10px rgba(0, 0, 0, .5); animation: chipDrop .25s cubic-bezier(.3, 1.5, .5, 1); }
.rl-stack b { font-size: 9.5px; font-weight: 800; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
@keyframes chipDrop { from { transform: translateY(-14px) scale(1.15); opacity: 0; } }
.rl-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.rl-chips { display: flex; gap: 8px; }
.rl-chip { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s;
    background: radial-gradient(circle, var(--cc) 0 46%, #fff 47% 52%, transparent 53%), repeating-conic-gradient(var(--cc) 0 22.5deg, #f4f4f4 22.5deg 45deg);
    box-shadow: 0 4px 0 rgba(0, 0, 0, .6), 0 10px 16px rgba(0, 0, 0, .5); }
.rl-chip span { font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 0 2px #000, 0 0 3px #000; }
.rl-chip:hover { transform: translateY(-3px); }
.rl-chip.active { transform: translateY(-6px); box-shadow: 0 0 0 3px #fff, 0 10px 0 rgba(0, 0, 0, .5), 0 16px 22px rgba(0, 0, 0, .5); }
.rl-total { font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.rl-total b { color: #fff; font-size: 20px; font-variant-numeric: tabular-nums; }
.rl-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rl-actions .btn-primary { min-width: 150px; }
@media (max-width: 900px) {
    .rl-top { grid-template-columns: 1fr; }
    .rl-table { grid-template-rows: repeat(3, 38px) 34px 34px; }
    .rl-cell { font-size: 12px; }
    .rl-cell.out { font-size: 10px; }
    .venue.wide p { max-width: 62%; }
}
@media (max-width: 600px) {
    .rl-felt { overflow-x: auto; padding: 10px; }
    .rl-table { min-width: 560px; }
    .rl-chip { width: 42px; height: 42px; }
}

/* ---------- остатки цвета из старой темы ---------- */
.lobby-item.mine { border-color: rgba(255, 255, 255, .3); background: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(16, 16, 16, .85) 60%); }
.ticket.won { background: #fff; color: #000; }
.pcard.red, .jk-bar b.red, .jk-suit.red { color: #7a7a7a; }
.jk-bar b { color: #fff; }
.jk-suit.active, .jk-bid.active { border-color: #fff; }
.mini-ball { filter: grayscale(1); }

/* ---------- эконом-режим и уменьшение движения ---------- */
.fx-low .bg-canvas { display: none; }
.fx-low .coin3d-spin, .fx-low .hero-grid, .fx-low .intro-stage, .fx-low .casino-chips3d i, .fx-low .settings-ico svg { animation: none; }
.fx-low .modal-backdrop { backdrop-filter: none; }
.no-webgl .bg-canvas { display: none; }
@media (prefers-reduced-motion: reduce) {
    .coin3d-spin, .hero-grid, .intro-stage, .casino-chips3d i, .boot-ring, .settings-ico svg { animation: none !important; }
    .page, .modal-card { animation-duration: .01s !important; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
    .coin3d { width: 100px; height: 100px; margin-top: -62px; right: 4%; }
}
@media (max-width: 680px) {
    .m-topbar { background: rgba(8, 8, 8, .92); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px -12px #000; }
    .m-logo { color: #000; background: linear-gradient(145deg, #ffffff, #c4c4c4); box-shadow: 0 2px 0 #6a6a6a, inset 0 1px 0 #fff; }
    .m-brand b { color: #fff; }
    .m-balance { background: rgba(255, 255, 255, .05); border-color: var(--line-2); color: #fff; box-shadow: var(--hi); }
    .m-icon-btn { background: rgba(255, 255, 255, .05); border-color: var(--line-2); color: #d6d6d6; box-shadow: 0 2px 0 #000, var(--hi); }
    .m-icon-btn:active { transform: translateY(1px); box-shadow: none; }
    .nav { width: 100%; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(8, 8, 8, .94); box-shadow: 0 -10px 30px -10px #000; }
    .nav-item { padding: 7px 2px; }
    .nav-item span { font-size: 10.5px; }
    .nav-bottom { display: none !important; }
    .coin3d { display: none; }
    .hero-name { font-size: 24px; }
    .boot-logo { font-size: 34px; }
    .boot-stage { width: 140px; height: 140px; }
    .boot-core { inset: 46px; }
    .intro-title { font-size: 26px; }
    .intro-stage { height: 120px; }
    .intro-art { width: 148px; height: 108px; }
    .fx-pick { grid-template-columns: 1fr; }
    .casino-logo { font-size: 36px; }
    .casino-chips3d { display: none; }
    .fx-high .bj-table, .fx-mid .bj-table { transform: rotateX(4deg); }
    .fx-high .chess-board, .fx-mid .chess-board { transform: none; }

    /* Слоты, Плинко и Рулетка на мобильных экранах */
    .sl-buy { flex-basis: 100%; flex-direction: row; justify-content: center; gap: 8px; padding: 9px 14px; order: 4; }
    .pl-board { order: -1; }
    #pl-canvas { max-height: 44dvh; }
    .rl-room { padding: 14px 12px; border-radius: 20px; }
    .rl-wheel-wrap { margin: -34px 0 -28px; }
    .rl-tilt { width: min(100%, 280px); }
    .rl-result { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 10px 14px; }
    .rl-result b { font-size: 34px; }
    .rl-felt { overflow-x: auto; -webkit-overflow-scrolling: touch; perspective: none; padding: 10px; }
    .rl-table { transform: none; min-width: 520px; }
    .rl-controls { justify-content: center; gap: 10px; }
    .rl-chips { flex-wrap: wrap; justify-content: center; width: 100%; }
    .rl-actions { width: 100%; justify-content: center; }
    .rl-actions .btn-primary { flex: 1 1 100%; height: 48px; }
    .dice-pair { gap: 10px; zoom: .82; }
}
