:root {
  color-scheme: dark;
  --bg: #0b0e13; --card: #141922; --card2: #1b222d; --line: #28313e; --ink: #eef2f7; --ink2: #bcc7d4; --muted: #8e9bad;
  --accent: #b8f53d; --on-accent: #131a03; --violet: #7b61ff; --amber: #ffb02e; --cyan: #2ed3ff; --pink: #ff5c8a; --rose: #ff4b55;
  --red: #c9303b; --black: #222934; --green: #12915f;
  --series: #3987e5; --neg: #e66767; --warn: #fab219; --crit: #d03b3b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.5 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif; }
h1, h2 { font-family: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; margin: 0; text-wrap: balance; line-height: 1.15; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.1rem; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, .btn { cursor: pointer; border-radius: 10px; border: 1px solid transparent; padding: .55rem 1rem; background: none; font-weight: 600; text-decoration: none; display: inline-block; }
button:disabled { opacity: .4; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.primary { background: var(--accent); color: var(--on-accent); }
.primary:not(:disabled):hover { background: #cbff5e; }
.ghost { background: var(--card2); border-color: var(--line); }
.ghost:not(:disabled):hover { border-color: var(--muted); }
.link { color: var(--accent); text-decoration: underline; padding: 0; font-weight: 500; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .error { color: #ff9c94; } .error:empty { display: none; }
.panel, .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.15rem; min-width: 0; }
.stack { display: grid; gap: 1rem; }
input, select { background: #0e1219; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .75rem; min-width: 0; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
label { display: grid; gap: .25rem; }
label.check { display: flex; align-items: center; gap: .5rem; }

/* каркас сайта */
.site { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sprite { position: absolute; }
.side { position: sticky; top: 0; height: 100vh; background: #0e1219; border-right: 1px solid var(--line); padding: 1.1rem .8rem; display: flex; flex-direction: column; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; padding: 0 .5rem; }
.logo-mark { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--accent); position: relative; }
.logo-mark::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); top: -5px; right: -3px; }
#nav { display: grid; gap: .25rem; }
#nav a { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: 10px; color: var(--ink2); text-decoration: none; font-weight: 600; }
#nav a:hover { background: var(--card); }
#nav a[aria-current=page] { background: var(--card2); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
#nav svg, .tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-note { margin-top: auto; color: var(--muted); font-size: .8rem; padding: 0 .5rem; }
.small-only { display: none; }
.top { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: .75rem 1.5rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0b0e13; z-index: 5; min-height: 64px; }
.account { display: flex; align-items: center; gap: .75rem; }
.balance { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .9rem; font-variant-numeric: tabular-nums; }
.coin-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25); }
.who { color: var(--ink2); text-decoration: none; font-weight: 600; }
.site main { padding: 1.5rem; max-width: 1240px; margin: 0 auto; }
.site main > section { display: grid; gap: 1.25rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* лобби */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 1rem; border-radius: 20px; padding: 2rem 2.25rem; background: radial-gradient(600px 300px at 85% 50%, #3a2c94 0, transparent 70%), #171332; border: 1px solid #322a6b; overflow: hidden; }
.hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); } .hero p { color: #cfc9f5; margin: .6rem 0 1.25rem; }
.hero-art { position: relative; height: 190px; }
.hero-art i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid rgba(184, 245, 61, .5); width: 180px; height: 180px; }
.hero-art i:nth-child(2) { width: 125px; height: 125px; border-color: rgba(46, 211, 255, .55); } .hero-art i:nth-child(3) { width: 70px; height: 70px; border-color: rgba(255, 92, 138, .65); }
.hero-art i::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); top: 50%; left: -9px; }
.hero-art i:nth-child(1) { animation: orbit 14s linear infinite; } .hero-art i:nth-child(2) { animation: orbit 9s linear infinite reverse; } .hero-art i:nth-child(3) { animation: orbit 6s linear infinite; }
.hero-art i:nth-child(2)::after { background: var(--cyan); } .hero-art i:nth-child(3)::after { background: var(--pink); }
.hero-art b { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); }
@keyframes orbit { to { rotate: 360deg; } }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tile { --c: var(--accent); position: relative; display: grid; gap: .35rem; align-content: end; min-height: 210px; padding: 1.15rem; border-radius: 18px; color: var(--ink); text-decoration: none; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 38%, #10141b), #10141b 75%); border: 1px solid color-mix(in srgb, var(--c) 35%, #10141b); transition: translate .15s; }
.tile:hover { translate: 0 -4px; }
.tile svg { position: absolute; top: 1.1rem; right: 1.1rem; width: 64px; height: 64px; color: var(--c); stroke-width: 1.3; }
.tile h2 { font-size: 1.35rem; } .tile p { color: var(--ink2); font-size: .9rem; }
.tile-stat { font-weight: 600; font-size: .875rem; color: var(--c); }
.t-jackpot { --c: var(--amber); } .t-rooms { --c: var(--cyan); } .t-pvp { --c: var(--pink); } .t-roulette { --c: var(--accent); }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; margin-top: .9rem; }
.feed-item { display: flex; align-items: center; gap: .7rem; background: var(--card2); border-radius: 12px; padding: .6rem .75rem; min-width: 0; }
.feed-item > div { min-width: 0; flex: 1; display: grid; } .feed-item b { font-variant-numeric: tabular-nums; }

/* игроки */
.ava { --h: 200; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 700; background: hsl(var(--h) 55% 34%); color: #fff; flex: none; }
.empty-seat, .ghosted { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
.pname { display: flex; align-items: center; gap: .4rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tag { font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 6px; background: var(--card2); color: var(--ink2); white-space: nowrap; }
.tag.bot { background: #2c2650; color: #c7bcff; } .tag.first { background: #26330b; color: var(--accent); } .tag.open { background: #0d3040; color: var(--cyan); } .tag.live { background: #40210d; color: #ffc27a; }

/* формы ставок */
.bet-form { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; }
.bet-form input[type=number] { width: 150px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quick { display: flex; gap: .35rem; } .quick button { background: var(--card2); border-color: var(--line); padding: .55rem .75rem; }
.bet-form label.check { min-height: 42px; }
.sides { border: 0; padding: 0; margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; } .sides legend { padding: 0; margin-bottom: .25rem; }
.side-pick { display: flex; align-items: center; gap: .5rem; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: .35rem .75rem; min-height: 42px; cursor: pointer; }
.side-pick:has(:checked) { border-color: var(--accent); }
.side-pick input { position: absolute; opacity: 0; } .side-pick:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.mini-coin { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; font-weight: 800; color: #1c1300; }
.heads { background: var(--amber); } .tails { background: #b9c6d8; }

/* jackpot */
.jp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.jp-main { display: grid; gap: 1rem; }
.jp-top { display: flex; justify-content: space-between; gap: 1rem; } .jp-top > div { display: grid; } .right { text-align: right; }
.big { font-size: 2.1rem; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#jp-pot { color: var(--amber); }
.jp-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--card2); } .jp-bar i { background: hsl(var(--h) 60% 48%); min-width: 3px; }
.reel { position: relative; overflow: hidden; border-radius: 14px; background: #0e1219; border: 1px solid var(--line); padding: 14px 0; }
.reel-mark { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; translate: -50%; background: var(--accent); z-index: 1; }
.reel-strip { display: flex; gap: 12px; padding: 0 6px; width: max-content; will-change: transform; }
.reel-item { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 14px; }
.result-line { font-weight: 600; min-height: 1.5em; }
.plist { display: grid; gap: .5rem; margin-top: .9rem; }
.prow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .prow .pname { flex: 1; } .prow-num { display: grid; text-align: right; font-variant-numeric: tabular-nums; }

/* карточки комнат и дуэлей */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.gcard { display: grid; gap: .85rem; } .gcard.is-mine { border-color: var(--accent); }
.gcard-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; } .gcard-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .6rem; }
.seat, .fighter { display: grid; justify-items: center; gap: .25rem; min-width: 0; padding: .4rem .2rem; border-radius: 12px; }
.seat-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win { background: #26330b; box-shadow: inset 0 0 0 2px var(--accent); } .lose { opacity: .45; }
.cycling { animation: cycle .5s linear infinite; animation-delay: calc(var(--i) * .5s / var(--n)); }
@keyframes cycle { 0%, 30% { box-shadow: inset 0 0 0 2px var(--amber); } 31%, 100% { box-shadow: none; } }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.coin { position: relative; width: 74px; height: 74px; transform-style: preserve-3d; }
.face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font-size: 1.7rem; font-weight: 800; color: #1c1300; backface-visibility: hidden; box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .18); }
.face.tails { transform: rotateY(180deg); }
.flip-heads { animation: flip-h 2.6s cubic-bezier(.2, .7, .2, 1) forwards; } .flip-tails { animation: flip-t 2.6s cubic-bezier(.2, .7, .2, 1) forwards; } .rest-tails { transform: rotateY(180deg); }
@keyframes flip-h { to { transform: rotateY(2160deg); } } @keyframes flip-t { to { transform: rotateY(1980deg); } }

/* рулетка */
.rl { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.wheel-side { text-align: center; } .wheel-wrap { position: relative; width: min(310px, 100%); margin: 0 auto; }
#wheel { width: 100%; display: block; }
.rim { fill: #1b222d; stroke: var(--accent); stroke-width: 3; }
.pocket { stroke: #0b0e13; stroke-width: 1.5; } .pocket.red { fill: var(--red); } .pocket.black { fill: var(--black); } .pocket.green { fill: var(--green); }
.pocket-label { fill: #fff; font-size: 13px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.hub { fill: #141922; } .hub-in { fill: #0e1219; stroke: var(--line); stroke-width: 2; }
.pointer { position: absolute; top: -4px; left: 50%; translate: -50% 0; border: 10px solid transparent; border-top: 18px solid var(--accent); border-bottom: 0; z-index: 1; }
.result { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 2.1rem; }
.result.on.red, .pill.red { background: var(--red); } .result.on.black, .pill.black { background: #37414f; } .result.on.green, .pill.green { background: var(--green); }
.recent { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 1rem 0 .5rem; min-height: 26px; }
.pill { display: inline-grid; place-items: center; min-width: 30px; height: 26px; border-radius: 7px; padding: 0 .35rem; font-size: .85rem; font-weight: 700; color: #fff; }
.outcome { min-height: 3em; }
.board { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); grid-template-rows: repeat(3, 56px) 46px 46px; gap: 4px; }
.cell { position: relative; border: 0; border-radius: 8px; padding: 0; color: #fff; font-weight: 700; min-width: 0; }
.cell.red { background: var(--red); } .cell.black { background: #2b3441; } .cell.green { background: var(--green); } .cell.out { background: var(--card2); }
.cell:hover { filter: brightness(1.2); } .cell.hit { box-shadow: 0 0 0 3px var(--accent); z-index: 1; }
.bet { position: absolute; right: 1px; bottom: 1px; background: var(--accent); color: var(--on-accent); border-radius: 999px; font-size: .7rem; line-height: 1; padding: .22rem .38rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { width: 50px; height: 50px; border-radius: 50%; padding: 0; font-size: .85rem; border: 4px dashed rgba(255, 255, 255, .5); color: #fff; }
.chip[aria-checked=true] { outline: 3px solid var(--accent); outline-offset: 2px; }
.c10 { background: #55606e; } .c50 { background: #157a57; } .c100 { background: #245fb0; } .c500 { background: #6a45c9; } .c1000 { background: #b0571a; }

/* профиль, таблицы */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.stats dt { color: var(--muted); font-size: .85rem; } .stats dd { margin: 0; font-size: 1.3rem; font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1rem; font-size: .875rem; margin: .75rem 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; }
.inline { display: flex; gap: .5rem; flex-wrap: wrap; }
.checks { margin-top: .75rem; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; margin-top: .5rem; }
th { text-align: left; color: var(--muted); font-weight: 500; white-space: nowrap; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { display: flex; gap: .4rem; } .row-actions button, .num button { padding: .25rem .65rem; font-size: .85rem; }
.pager { display: flex; gap: .5rem; margin-top: .75rem; }
.empty { padding: 1.5rem 0; }
summary { cursor: pointer; font-weight: 700; }

/* админка */
.admin .top { justify-content: space-between; } .brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.auth { min-height: 80vh; display: grid; place-items: center; padding: 2rem 1rem; } .auth form { width: min(380px, 100%); display: grid; gap: .9rem; }
#panel { padding: 1.25rem; max-width: 1320px; margin: 0 auto; }
#panel section { display: grid; gap: 1rem; }
#panel form.card, #settings-fields, #games-fields { display: grid; gap: .9rem; align-content: start; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.tabs button { border-radius: 0; border-bottom: 2px solid transparent; color: var(--ink2); }
.tabs button[aria-current=page] { border-bottom-color: var(--accent); color: var(--ink); }
.filters { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.kpi { display: grid; gap: .15rem; } .kpi b { font-size: 1.6rem; letter-spacing: -.02em; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.charts > div:not(.card) { display: grid; gap: 1rem; min-width: 0; }
.bots-grid { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.wide { grid-column: 1 / -1; } .narrow { max-width: 420px; }
figure { margin: 0; }
.chart { position: relative; margin-top: .75rem; min-height: 60px; } .chart svg { display: block; max-width: 100%; }
.grid { stroke: #242c38; } .axis { stroke: #566273; } .cross { stroke: var(--muted); } .ref { stroke: var(--ink2); }
.tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; } .tick.end { text-anchor: end; } .tick.mid { text-anchor: middle; }
.bar { fill: var(--series); } .bar.neg { fill: var(--neg); } .bar.lift { filter: brightness(1.25); }
.line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.area { fill: var(--series); opacity: .1; } .dot { fill: var(--series); stroke: var(--card); stroke-width: 2; }
svg .hit { fill: transparent; outline-offset: -2px; }
.tip { position: absolute; translate: -50% calc(-100% - 10px); background: #232b37; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .6rem; display: grid; font-size: .8rem; white-space: nowrap; pointer-events: none; z-index: 2; }
.tip b { font-size: .95rem; } .tip span { color: var(--ink2); }
.meter { margin: 1rem 0; } .meter-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.track { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin-top: .35rem; }
.fill { height: 100%; } .fill.ok { background: var(--series); } .fill.warn { background: var(--warn); } .fill.crit { background: var(--crit); }

dialog { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; width: min(440px, 92vw); }
#round-dialog { width: min(640px, 94vw); }
dialog::backdrop { background: rgba(4, 6, 10, .7); } dialog form { display: grid; gap: .9rem; } dialog .actions { justify-content: flex-end; }
#toast { position: fixed; bottom: 1.25rem; left: 50%; translate: -50% 150%; opacity: 0; transition: .2s; background: #232b37; border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 10px; padding: .75rem 1.1rem; width: max-content; max-width: 92vw; z-index: 20; pointer-events: none; }
#toast.show { translate: -50% 0; opacity: 1; } #toast.bad { border-left-color: var(--rose); } #toast.good { border-left-color: var(--accent); }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp, .rl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site { grid-template-columns: minmax(0, 1fr); padding-bottom: 68px; }
  .site .top { justify-content: space-between; padding: .6rem 1rem; } .small-only { display: flex; padding: 0; } .who { display: none; }
  .site main { padding: 1rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; } .hero-art { display: none; }
  .tile { min-height: 165px; padding: .9rem; } .tile svg { width: 34px; height: 34px; top: .9rem; right: .9rem; }
  .charts, .bots-grid { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-rows: repeat(3, 46px) 44px 44px; gap: 3px; overflow-x: auto; grid-template-columns: repeat(14, minmax(36px, 1fr)); } .board .cell { font-size: .8rem; }
  .actions .primary, .bet-form .primary { flex: 1; }
  #toast { bottom: 84px; }
}
@media (max-width: 400px) { .site .top .ghost, .site .top .primary { padding: .45rem .65rem; } }
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; animation: none !important; } }

/* темы */
[data-theme=violet] { --accent: #a995ff; --on-accent: #140b3a; } [data-theme=amber] { --accent: #ffc04d; --on-accent: #2b1900; } [data-theme=cyan] { --accent: #5fe0ff; --on-accent: #00212c; }
.theme-btn[aria-checked=true] { border-color: var(--accent); } .theme-btn::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .5rem; background: #b8f53d; }
.th-violet::before { background: #a995ff; } .th-amber::before { background: #ffc04d; } .th-cyan::before { background: #5fe0ff; }

/* глубина и движение */
.site { background: radial-gradient(900px 500px at 78% -8%, rgba(123, 97, 255, .2), transparent 70%), radial-gradient(700px 500px at 10% 105%, rgba(46, 211, 255, .1), transparent 70%), var(--bg); }
.site .panel { background: linear-gradient(180deg, rgba(31, 38, 50, .92), rgba(18, 23, 31, .94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.site .primary { box-shadow: 0 6px 22px -8px var(--accent); transition: translate .12s, box-shadow .12s; } .site .primary:not(:disabled):hover { translate: 0 -1px; background: var(--accent); filter: brightness(1.1); } .site .primary:not(:disabled):active { translate: 0 1px; }
.hero { min-height: 260px; background: radial-gradient(520px 320px at 84% 50%, #4b37c4 0, transparent 70%), radial-gradient(420px 260px at 8% 110%, #1b6f8f 0, transparent 70%), #14102d; }
.hero-art { height: 220px; } .hero-art b { box-shadow: 0 0 50px 12px rgba(255, 176, 46, .55); }
.tile { overflow: hidden; min-height: 230px; background: radial-gradient(260px 200px at 85% 5%, color-mix(in srgb, var(--c) 48%, transparent), transparent 72%), #11161e; }
.tile svg { width: 92px; height: 92px; transition: transform .3s; } .tile:hover svg { transform: scale(1.08) rotate(-6deg); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .13) 50%, transparent 60%); translate: -100% 0; }
.tile:hover::after { translate: 100% 0; transition: translate .7s; }
.tile > * { position: relative; } .tile > svg { position: absolute; }
#jp-pot { font-size: 2.9rem; text-shadow: 0 0 32px rgba(255, 176, 46, .5); }
.reel { padding: 20px 0; background: linear-gradient(180deg, #0a0d13, #121823); } .reel::before, .reel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none; } .reel::before { left: 0; background: linear-gradient(90deg, #0d1118, transparent); } .reel::after { right: 0; background: linear-gradient(-90deg, #0d1118, transparent); }
.reel-mark { box-shadow: 0 0 18px var(--accent); z-index: 2; }
.win { animation: pulse 1s ease-in-out 2; } @keyframes pulse { 50% { scale: 1.06; } }
.face { box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .18), 0 8px 24px -8px rgba(255, 176, 46, .6); }
.balance.up { border-color: var(--accent); } .balance.up b { color: var(--accent); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* аватары */
.ava svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ava.xl { width: 104px; height: 104px; border-radius: 28px; }
.who { display: flex; align-items: center; gap: .5rem; } .who .ava { width: 34px; height: 34px; border-radius: 10px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.ava-edit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.picks { display: flex; flex-wrap: wrap; gap: .4rem; } .pick { padding: 3px; border: 2px solid transparent; border-radius: 14px; display: grid; } .pick[aria-checked=true] { border-color: var(--accent); }
.pick.color span { width: 28px; height: 28px; border-radius: 9px; }

/* лента сверху */
.ticker { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker div { will-change: transform; display: flex; width: max-content; animation: slide 60s linear infinite; } .ticker:hover div { animation-play-state: paused; }
.ticker span { display: flex; } .ticker i { font-style: normal; color: var(--muted); font-size: .85rem; padding-right: 2.2rem; white-space: nowrap; } .ticker b { color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* чат */
.chat { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; min-width: 0; background: rgba(14, 18, 25, .96); border-left: 1px solid var(--line); }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 0 1rem; height: 64px; border-bottom: 1px solid var(--line); flex: none; } .chat-head button { padding: .25rem .6rem; }
.chat-list { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.msg { display: flex; gap: .6rem; } .msg .ava { width: 32px; height: 32px; border-radius: 10px; } .msg-body { min-width: 0; }
.msg-head { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .85rem; } .msg p { overflow-wrap: anywhere; font-size: .925rem; color: var(--ink2); } .msg.own b { color: var(--accent); }
.chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); } .chat-form input { flex: 1; }
.chat-toggle { position: relative; padding: .5rem .65rem; display: grid; } .chat-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.badge { position: absolute; top: -6px; right: -6px; background: var(--rose); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; min-width: 18px; padding: 0 .3rem; line-height: 18px; }

/* повтор */
.stage { display: grid; gap: .6rem; } .stage:not(:empty) { margin: .9rem 0; min-width: 0; }
.replay-mark { justify-self: start; font-size: .75rem; font-weight: 700; letter-spacing: .04em; background: #40210d; color: #ffc27a; border-radius: 6px; padding: .15rem .55rem; }
.on-wheel { position: absolute; left: 50%; bottom: 30%; translate: -50% 0; z-index: 2; }
#round-body { min-width: 0; } #round-dialog > .stack { grid-template-columns: minmax(0, 1fr); }

.chat { display: none; position: fixed; inset: 0 0 0 auto; width: min(340px, 100vw); z-index: 12; } .chat-open .chat { display: flex; }
@media (max-width: 1000px) { .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ticker { display: none; } .tile { min-height: 180px; } .tile svg { width: 40px; height: 40px; top: .9rem; right: .9rem; }
  .ava-edit { grid-template-columns: minmax(0, 1fr); } #jp-pot { font-size: 2.2rem; } .site .top { gap: .5rem; } .account { gap: .5rem; }
  .small-only { font-size: 1.05rem; } #guest button { padding: .45rem .6rem; font-size: .9rem; }
}


/* ===== главная в формате «меню слева, витрина справа» ===== */
:root { --bg: #111013; --card: #1d1c20; --card2: #29282d; --line: #343239; }
.site { grid-template-columns: 290px minmax(0, 1fr); background: var(--bg); }
.side { background: #1b1a1d; padding: 1.1rem 1rem; gap: 1rem; overflow-y: auto; border: 0; }
.side-user { display: flex; align-items: center; gap: .8rem; } .side-user b { display: block; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; } .side-user > div { min-width: 0; }
.ava.lg { width: 52px; height: 52px; border-radius: 50%; }
.link-quiet { padding: 0; color: var(--muted); font-size: .85rem; font-weight: 500; }
.side-guest { display: grid; gap: 1rem; }
.level-card { position: relative; display: grid; gap: .15rem; padding: 1rem; border-radius: 16px; background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ff9d5c)); color: var(--on-accent); text-decoration: none; overflow: hidden; }
.level-gem { width: 34px; height: 34px; background: linear-gradient(140deg, #3a2f66, #120e24); clip-path: polygon(50% 0, 100% 34%, 82% 100%, 18% 100%, 0 34%); } .level-card .level-gem { position: absolute; right: 1rem; top: .8rem; width: 54px; height: 54px; rotate: 14deg; }
.level-track { display: block; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .28); overflow: hidden; margin-top: .55rem; } .level-track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); } .level-card .level-track i { background: var(--on-accent); }
.level-nums { display: flex; justify-content: space-between; }
.hot { display: grid; gap: .15rem; } .hot a { display: flex; align-items: center; gap: .7rem; padding: .4rem .3rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; } .hot a:hover { background: var(--card2); }
.hot-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--c) 30%, #1b1a1d); } .hot-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; }
.chip-tag { margin-left: auto; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .15rem .55rem; color: #fff; } .chip-tag.live { background: #d42a3c; } .chip-tag.new { background: #b85a00; }
#nav a { padding: .55rem .75rem; color: #d3d1d8; } #nav a:hover { background: var(--card2); }
.side-foot { margin-top: auto; display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; } .side-foot select { width: 100%; padding: .4rem .5rem; } .side-foot .side-note { grid-column: 1 / -1; padding: 0; margin: 0; }
.site .top { justify-content: flex-start; background: var(--bg); border: 0; padding: .9rem 1.75rem; }
.pills { display: flex; gap: .25rem; background: var(--card); border-radius: 14px; padding: .3rem; } .pills a { display: flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 11px; color: var(--ink2); text-decoration: none; font-weight: 600; } .pills a:hover { color: var(--ink); } .pills a[aria-current=page] { background: var(--accent); color: var(--on-accent); }
.pills svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spacer { flex: 1; }
.site main { max-width: 1440px; padding: .5rem 1.75rem 5rem; }
.site .panel { background: var(--card); border-color: transparent; box-shadow: none; }
[data-unit=stars] .coin-dot { border-radius: 0; box-shadow: none; clip-path: polygon(50% 0, 62% 36%, 100% 36%, 70% 58%, 81% 95%, 50% 73%, 19% 95%, 30% 58%, 0 36%, 38% 36%); width: 17px; height: 17px; } [data-unit=gems] .coin-dot { border-radius: 0; background: var(--cyan); box-shadow: none; clip-path: polygon(25% 0, 75% 0, 100% 35%, 50% 100%, 0 35%); }

.promo-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); grid-template-rows: repeat(2, 200px); gap: 1.1rem; }
.carousel { grid-row: span 2; position: relative; border-radius: 22px; overflow: hidden; }
.slide { height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 1rem; padding: 2.25rem; color: #fff; text-decoration: none; animation: fade .4s; } @keyframes fade { from { opacity: 0; } }
.slide h1 { font-size: clamp(1.6rem, 2.7vw, 2.6rem); } .slide p { margin: .8rem 0 1.4rem; color: rgba(255, 255, 255, .82); }
.s1 { background: radial-gradient(480px 340px at 80% 50%, #5a43e0 0, transparent 72%), #17122f; } .s2 { background: radial-gradient(480px 340px at 80% 50%, #0f8a6a 0, transparent 72%), #071d1a; } .s3 { background: radial-gradient(480px 340px at 80% 50%, #c2437a 0, transparent 72%), #2a0d1d; }
.btn.white { background: #fff; color: #17151c; } .btn.soft { background: color-mix(in srgb, var(--accent) 28%, #fff); color: #17151c; }
.car-nav { position: absolute; right: 1.25rem; bottom: 1.25rem; display: flex; gap: .4rem; } .car-nav button { width: 44px; height: 44px; padding: 0; font-size: 1.5rem; line-height: 1; background: rgba(10, 9, 14, .72); color: #fff; }
.art-mines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; width: min(240px, 100%); margin: auto; rotate: -8deg; } .art-mines i { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .13); } .art-mines i:nth-child(3n+1) { background: #3ddc84; box-shadow: 0 0 22px rgba(61, 220, 132, .5); } .art-mines i:nth-child(11) { background: var(--rose); box-shadow: 0 0 26px var(--rose); }
.art-coin { display: grid; place-items: center; } .art-coin i { width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3a1, #ffb02e 55%, #a66300); box-shadow: inset 0 0 0 14px rgba(0, 0, 0, .14), 0 22px 60px -12px rgba(255, 176, 46, .65); animation: turn 5s ease-in-out infinite; } @keyframes turn { 50% { transform: rotateY(180deg); } }
.promo-card { position: relative; border-radius: 22px; padding: 1.35rem; display: flex; flex-direction: column; justify-content: space-between; color: #fff; text-decoration: none; overflow: hidden; } .promo-card b { font-size: 1.1rem; } .promo-card svg { position: absolute; right: -6px; bottom: -14px; width: 165px; height: 165px; fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1; rotate: -8deg; stroke-linecap: round; stroke-linejoin: round; }
.pc-tasks { background: linear-gradient(130deg, #6a2bb8, #a53bd6); } .pc-fame { background: linear-gradient(130deg, #0c4a38, #148a5c); }
.ref-banner { display: flex; align-items: center; gap: 1.25rem; justify-content: space-between; padding: 1.35rem 1.75rem; border-radius: 20px; background: #2a292c; color: var(--ink); text-decoration: none; } .ref-banner h2 { font-size: 1.35rem; } .ref-banner p { color: var(--ink2); margin-top: .35rem; }
.ref-art { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: #2a1900; padding: .4rem 1.3rem; border-radius: 14px; background: linear-gradient(140deg, #ffe3a1, #ffb02e 60%, #c47d0c); rotate: -5deg; }
.search { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 16px; padding: 0 1.1rem; } .search svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; } .search input { flex: 1; border: 0; background: none; padding: .95rem 0; outline-offset: 6px; } .search:focus-within { border-color: var(--accent); } .search input:focus-visible { outline: 0; }
.cats { display: flex; gap: .5rem; flex-wrap: wrap; } .cats button { background: var(--card); } .cats button[aria-pressed=true] { background: var(--accent); color: var(--on-accent); }
.site .tiles { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } .tile { min-height: 250px; border: 0; background: linear-gradient(170deg, color-mix(in srgb, var(--c) 78%, #16131c) -10%, #1d1c20 78%); } .tile svg { top: 1.25rem; right: auto; left: 1.15rem; width: 84px; height: 84px; color: #fff; }
.t-dice { --c: #7b61ff; } .t-mines { --c: #3ddc84; } .t-plinko { --c: #ff7a45; }
.help { position: fixed; right: 1.5rem; bottom: 1.5rem; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; padding: 0; z-index: 7; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .7); } .help svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* быстрые игры */
.ig { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.1rem; align-items: start; } .ig input[type=range] { width: 100%; padding: 0; accent-color: var(--accent); }
.stage-box { display: grid; gap: 1rem; justify-items: center; align-content: center; min-height: 420px; }
.dice-num { font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; } .dice-num.good { color: #5fe08f; } .dice-num.bad { color: #ff8087; }
.dice-track { position: relative; width: min(560px, 100%); height: 18px; border-radius: 9px; background: #5b2329; } .dice-track i { display: block; height: 100%; border-radius: 9px 0 0 9px; background: #1f9d55; } .dice-track b { position: absolute; top: -7px; width: 6px; height: 32px; border-radius: 3px; background: #fff; translate: -50% 0; transition: left .3s; }
.mines-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: min(440px, 100%); } .mcell { aspect-ratio: 1; padding: 0; border-radius: 12px; background: #37353d; font-size: 1.5rem; } .mcell:not(:disabled):hover { background: #4a4752; } .mcell:disabled { opacity: 1; } .mcell.safe { background: #166b41; color: #8ff5b8; } .mcell.mine { background: #40262a; color: #ff9aa0; } .mcell.boom { background: #c2303c; color: #fff; } .mcell.rest { background: #2a292e; }
#plinko { width: min(560px, 100%); } .peg { fill: #77737f; } .ball { fill: var(--accent); } .slot { fill: #37353d; } .slot.mid { fill: #6b4a12; } .slot.hot { fill: #8d2233; } .slot.hitslot { stroke: #fff; stroke-width: 2.5; } .slot-t { fill: #fff; font-size: 11px; font-weight: 700; text-anchor: middle; }

/* бонусы, слава, поддержка */
.task { background: var(--card2); border-radius: 14px; padding: .9rem; display: grid; gap: .5rem; } .task-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; } .task .primary, .task .ghost { padding: .35rem .85rem; }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; } .lvl { display: grid; justify-items: center; gap: .25rem; padding: .9rem .4rem; border-radius: 14px; background: var(--card2); } .lvl:not(.done, .now) { opacity: .55; } .lvl.now { outline: 2px solid var(--accent); } .lvl .level-gem { background: linear-gradient(140deg, var(--accent), var(--violet)); }
.rank { width: 1.6em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; } #ref-link { flex: 1; }
textarea { font: inherit; color: inherit; background: #0e1219; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; resize: vertical; }
.support-list { display: grid; gap: .6rem; max-height: 320px; overflow-y: auto; margin: .5rem 0; } .sup { background: var(--card2); border-radius: 12px; padding: .6rem .8rem; overflow-wrap: anywhere; } .sup.staff { border-left: 3px solid var(--accent); } .sup p { white-space: pre-wrap; }
#tfa-key { display: block; padding: .6rem; background: #0e1219; border-radius: 8px; overflow-wrap: anywhere; } .player-games { max-height: 260px; overflow-y: auto; } #player-dialog { width: min(620px, 94vw); }

@media (max-width: 1180px) { .pills a { font-size: 0; gap: 0; padding: .6rem .8rem; } }
@media (max-width: 1000px) { .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px 150px; } .carousel { grid-row: auto; grid-column: 1 / -1; } .ig { grid-template-columns: minmax(0, 1fr); } .site { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .pills { display: none; }
  .site .top { padding: .6rem 1rem; } .site main { padding: .75rem 1rem 6rem; } .help { bottom: 82px; right: 1rem; width: 50px; height: 50px; }
  .slide { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; } .slide > :last-child { display: none; } .promo-grid { grid-template-rows: 280px 130px; gap: .7rem; } .promo-card { padding: 1rem; } .promo-card svg { width: 95px; height: 95px; }
  .ref-banner { flex-wrap: wrap; padding: 1.1rem; } .ref-art { display: none; } .site .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .tile { min-height: 190px; } .tile svg { width: 52px; height: 52px; left: .9rem; right: auto; } .stage-box { min-height: 320px; }
}
.side > * { flex: none; } .side-foot { padding-top: .5rem; }
.ig label b { font-size: 1.1rem; }
.site .top button, .site .top a { white-space: nowrap; } .promo-card > b, .promo-card > span { position: relative; z-index: 1; }
@media (max-width: 1280px) { #who span:last-child:not(.ava) { display: none; } .site #account #logout { display: none; } }
@media (max-width: 760px) { .site .top .logo span:last-child { display: none; } .site .top .logo { padding: 0; } .promo-card svg { opacity: .45; } .site .top { gap: .5rem; } }

/* ===== меню, которое прячется ===== */
* { scrollbar-width: thin; scrollbar-color: #4a4752 transparent; }
.site { display: block; padding-left: 290px; transition: padding-left .22s; }
.side { position: fixed; inset: 0 auto 0 0; width: 290px; height: 100dvh; z-index: 10; transition: translate .22s; }
.menu-off.site { padding-left: 0; } .menu-off .side { translate: -100% 0; }
.menu-btn { padding: .5rem .6rem; display: grid; } .menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.veil { position: fixed; inset: 0; background: rgba(4, 3, 8, .65); z-index: 9; }
.tabbar { display: none; }
@media (min-width: 1001px) { .site:not(.menu-off) .top > .logo { display: none; } }
@media (max-width: 1000px) { .site { padding-left: 0; } .side { translate: -100% 0; width: min(300px, 86vw); } .drawer .side { translate: 0 0; } }
@media (max-width: 760px) {
  .tabbar { position: fixed; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); background: #1b1a1d; border-top: 1px solid var(--line); z-index: 8; padding: .3rem 0 calc(.3rem + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: .15rem; padding: .35rem 0; font-size: .7rem; font-weight: 600; color: var(--ink2); text-decoration: none; } .tabbar a[aria-current=page] { color: var(--accent); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .site { padding-bottom: 72px; }
}

/* ===== сцены ===== */
.t-king { --c: #ffcf5c; } .t-wheel { --c: #7c86ff; } .t-rocket { --c: #2ed3ff; } .t-cases { --c: #ff5cc8; }
.scene { position: relative; overflow: hidden; border-radius: 22px; padding: 1.1rem; min-width: 0; isolation: isolate;
  background: radial-gradient(60% 55% at 50% 48%, color-mix(in srgb, var(--c, #7c86ff) 24%, transparent), transparent 75%), radial-gradient(90% 60% at 50% 115%, color-mix(in srgb, var(--c, #7c86ff) 14%, transparent), transparent 70%), linear-gradient(180deg, #14121c, #0a090e); }
.scene > * { position: relative; z-index: 1; } .scene > .dust { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; width: 100%; align-self: start; }
.round-tag { color: color-mix(in srgb, var(--c) 80%, #fff); letter-spacing: .06em; font-size: .9rem; }
.pill-s { display: inline-flex; align-items: center; gap: .45rem; background: rgba(8, 7, 12, .62); border-radius: 999px; padding: .28rem .8rem; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; } .pill-s i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); } .pill-s svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.scene-note { text-align: center; min-height: 1.6em; color: var(--ink2); font-weight: 600; margin-top: .75rem; }
.jp { grid-template-columns: minmax(0, 1fr) 330px; align-items: stretch; }
.jp-scene { min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.core { position: relative; width: min(430px, 100%); margin: .75rem auto 0; } .core svg { width: 100%; display: block; overflow: visible; } .small-core { width: min(300px, 100%); }
.core-pointer { position: absolute; top: -6px; left: 50%; translate: -50% 0; border: 11px solid transparent; border-top: 22px solid #fff; border-bottom: 0; z-index: 2; filter: drop-shadow(0 0 10px var(--c)); }
.ring-deco line { stroke: color-mix(in srgb, var(--c) 45%, transparent); stroke-width: 1.5; } .ring-path { fill: none; stroke: color-mix(in srgb, var(--c) 30%, transparent); } .ring-empty { fill: #2b2836; } .ring-core { fill: #0d0b13; stroke: color-mix(in srgb, var(--c) 35%, transparent); stroke-width: 1.5; } .ring-rot path, .wh-seg { transition: opacity .4s; } .dim { opacity: .22; }
.ring-orbit { animation: orbit 16s linear infinite; } .moon { fill: var(--c); } .m2 { fill: #fff; }
.led { text-align: center; background: #050408; border: 2px solid #2d2938; border-radius: 14px; padding: .55rem 1.4rem .7rem; box-shadow: inset 0 0 24px rgba(0, 0, 0, .9); min-width: 170px; } .led span { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #9b96a6; }
.led b { font: 700 2rem/1.1 ui-monospace, Consolas, monospace; color: #ffd56b; text-shadow: 0 0 18px rgba(255, 190, 60, .75); } .scene #jp-pot { font-size: 2rem; } .core .led { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.shares { display: flex; flex-direction: column; } .shares .plist { flex: 1; align-content: start; max-height: 420px; overflow-y: auto; } .shares-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; } .shares-foot > div { display: grid; } .shares-foot b { font-size: 1.25rem; }
.quick { flex-wrap: wrap; gap: .3rem; } .quick button { padding: .5rem .7rem; min-width: 46px; font-variant-numeric: tabular-nums; } .q-clear { color: #ff8a92; } .q-max { color: #ffd56b; } .bet-form .quick { flex: 1; } .ig .quick { display: grid; grid-template-columns: repeat(4, 1fr); } .ig .quick button { padding: .45rem 0; min-width: 0; }
.scene-lite { background: radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--c) 17%, transparent), transparent 75%), #17151e !important; } .site .gcard.is-mine { border-color: var(--c); }
.site .scene.stage-box { min-height: 460px; align-content: space-evenly; } .wheel-side.scene { padding: 1.5rem; } .rl { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); } .wheel-side .wheel-wrap { width: min(360px, 100%); } .rim { stroke: var(--c); }
.mcell { background: linear-gradient(160deg, #3c3848, #2a2734); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); } .mcell.safe { background: linear-gradient(160deg, #1f9d5f, #0f5a36); box-shadow: 0 0 20px rgba(61, 220, 132, .35); } .mcell.boom { box-shadow: 0 0 26px rgba(255, 75, 85, .7); }
.ball { filter: drop-shadow(0 0 8px var(--c)); fill: var(--c); }

/* колесо */
.wh-body { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; } .wh-core { width: min(440px, 100%); margin: 1rem auto; } .wh-rim { fill: none; stroke: #2d2938; stroke-width: 3; } .wh-dot { fill: #5a5567; }
#wh-rot, .ring-rot { transform-origin: 0 0; } .wh-timer { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(2rem, 5vw, 3.4rem)/1 ui-monospace, Consolas, monospace; text-shadow: 0 0 24px var(--c); }
.wh-history { display: grid; gap: 4px; align-content: start; max-height: 420px; overflow: hidden; } .wh-history i { font-style: normal; font-size: .7rem; font-weight: 800; color: #100d18; border-radius: 6px; padding: .05rem .45rem; width: fit-content; }
.wh-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; align-items: start; } .wh-col { border-radius: 16px; background: var(--card); overflow: hidden; transition: opacity .3s; } .wh-col.lost { opacity: .4; } .wh-col.won { box-shadow: 0 0 0 2px var(--c), 0 0 40px -8px var(--c); }
.wh-bet { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; border-radius: 0; padding: .9rem 1rem; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 34%, var(--card)), var(--card)); border-left: 4px solid var(--c); } .wh-bet:hover { filter: brightness(1.2); } .wh-bet b { font-size: 1.7rem; color: var(--c); line-height: 1.1; } .wh-sum { grid-column: 1 / -1; color: #ffd56b; font-variant-numeric: tabular-nums; }
.wh-list { display: grid; gap: .45rem; padding: .8rem; min-height: 60px; } .wh-list .ava { width: 30px; height: 30px; border-radius: 50%; } .wh-list .prow { flex-wrap: nowrap; }

/* царь горы */
.king-scene { min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; } .scene > .peaks { position: absolute; inset: auto 0 0; width: 100%; height: 62%; z-index: 0; } .p3 { fill: #1d1826; } .p2 { fill: #2a2233; } .p1 { fill: #3a2f3e; } .snow { fill: #ffe7a8; }
.king-mid { display: grid; justify-items: center; gap: .9rem; } .king-top { display: grid; justify-items: center; gap: .5rem; font-size: 1.15rem; } .king-top .ava { border-radius: 50%; box-shadow: 0 0 0 4px var(--c), 0 0 44px var(--c); } .king-top .empty-seat { box-shadow: none; }
.king-timer { font: 800 clamp(3rem, 8vw, 5rem)/1 ui-monospace, Consolas, monospace; text-shadow: 0 0 34px var(--c); } .king-scene.final .king-top .ava { animation: pulse 1s infinite; } .king-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; } .king-foot .primary { padding: .85rem 1.8rem; font-size: 1.05rem; } .prow.top { background: color-mix(in srgb, #ffcf5c 16%, transparent); border-radius: 12px; padding: .35rem; }

.tag.clan { background: #123042; color: #7fd6ff; } .tour { background: var(--card2); border-radius: 14px; padding: 1rem; display: grid; gap: .5rem; } h3 { margin: 0; font-size: .95rem; color: var(--ink2); } .prow button { padding: .3rem .75rem; font-size: .85rem; }
@media (max-width: 760px) { .bet-form label:not(.check) { flex: 1 1 100%; } .bet-form input[type=number] { width: 100%; } .bet-form .quick { flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, 1fr); } .bet-form .quick button { min-width: 0; padding: .55rem 0; } }
/* ракета */
.sky { position: absolute !important; inset: 0; z-index: 0 !important; } #rocket-ship { position: absolute; left: 50%; bottom: 0; width: 72px; height: 72px; translate: -50% 0; fill: color-mix(in srgb, var(--c) 25%, #0b0a10); stroke: var(--c); stroke-width: 1.4; filter: drop-shadow(0 14px 16px rgba(255, 140, 40, .8)); } #rocket-ship.lost { stroke: var(--rose); filter: none; opacity: .5; } #rocket-goal { position: absolute; left: 12%; right: 12%; bottom: 40%; border-top: 2px solid rgba(255, 255, 255, .3); }

/* кейсы */
.cicon { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; } .cicon.big { width: 62px; height: 62px; }
.case-list { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .3rem; } .ccase { flex: none; width: 150px; display: grid; justify-items: center; gap: .3rem; padding: 1.1rem .6rem; border-radius: 18px; background: radial-gradient(90% 70% at 50% 25%, rgba(255, 92, 200, .28), transparent), var(--card); color: #fff; } .ccase.on { box-shadow: inset 0 0 0 2px #ff5cc8; }
.case-scene { display: grid; justify-items: center; gap: .4rem; padding-bottom: 1.5rem; } .case-scene .primary { padding: .85rem 2.2rem; font-size: 1.05rem; } .case-window { position: relative; width: 100%; overflow: hidden; margin-top: 1rem; padding: .75rem 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); } .case-mark { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; translate: -50% 0; background: #fff; box-shadow: 0 0 18px var(--c); z-index: 2; } .case-strip { display: flex; gap: 10px; width: max-content; position: relative; }
.citem { --r: #8f9bb3; display: grid; justify-items: center; gap: .25rem; width: 138px; padding: 1rem .5rem .8rem; border-radius: 14px; text-align: center; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--r) 30%, #17151e), #17151e); border-bottom: 3px solid var(--r); } .r2 { --r: #4d9bff; } .r3 { --r: #b066ff; } .r4 { --r: #ffc53d; } .citem .cicon { color: color-mix(in srgb, var(--r) 60%, #fff); } .citem-name { font-size: .85rem; } .citem-pct { font-size: .8rem; color: var(--ink2); font-variant-numeric: tabular-nums; } .citem .ghost { padding: .25rem .8rem; font-size: .85rem; } .hitcard { box-shadow: 0 0 0 2px #fff, 0 0 44px var(--r); }
.citems { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; margin-top: .9rem; } .citems .citem { width: auto; }
.case-edit input, .case-edit select { width: 100%; min-width: 90px; }

@media (max-width: 1000px) { .jp, .rl { grid-template-columns: minmax(0, 1fr); } .wh-body { grid-template-columns: minmax(0, 1fr); } .wh-history { display: flex; max-height: none; order: 2; justify-content: center; } }
@media (max-width: 760px) { .wh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jp-scene, .king-scene { min-height: 440px; } .site .scene.stage-box { min-height: 360px; } .scene { padding: .9rem; border-radius: 18px; } .king-foot .primary { width: 100%; } .core { width: min(330px, 100%); } }

/* ===== режимы ===== */
.mode-off { display: none !important; }
.notice { margin: 0 1.75rem .75rem; padding: .75rem 1.1rem; border-radius: 14px; background: #23203a; border-left: 4px solid var(--violet); overflow-wrap: anywhere; } .notice.alarm { background: #3a1a1e; border-color: var(--rose); }
.mode-closed { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #33240f; border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1rem; } .mode-closed span { flex: 1; color: var(--ink2); }
.mode-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 1.1rem; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; } .card > .modes { margin-top: .9rem; }
.mode { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--card2); border-radius: 14px; padding: .85rem 1rem; border-left: 4px solid #3ddc84; } .mode.off { border-left-color: #6b6675; } .mode.off b { color: var(--muted); } .mode > div { display: grid; min-width: 0; } .wide-mode { border-left-color: var(--accent); }
.switch { flex: none; width: 52px; height: 30px; padding: 3px; border-radius: 999px; background: #4b4754; border: 0; transition: background .15s; } .switch i { display: block; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: translate .15s; } .switch.on { background: #24a35c; } .switch.on i { translate: 22px 0; }
.admin #panel { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.5rem; max-width: 1560px; } .admin .pane { min-width: 0; }
.admin .tabs { flex-direction: column; flex-wrap: nowrap; border: 0; margin: 0; position: sticky; top: 1rem; align-self: start; max-height: calc(100dvh - 2rem); overflow-y: auto; gap: .1rem; } .admin .tabs button { text-align: left; border-radius: 10px; border: 0; padding: .5rem .8rem; } .admin .tabs button:hover { background: var(--card); } .admin .tabs button[aria-current=page] { background: var(--card2); box-shadow: inset 3px 0 0 var(--accent); }
.tabs-title { font-size: .75rem; color: var(--muted); padding: .8rem .8rem .2rem; } .admin .tabs-title:first-child { padding-top: 0; }
@media (max-width: 900px) { .admin #panel { grid-template-columns: minmax(0, 1fr); } .admin .tabs { flex-direction: row; position: static; overflow-x: auto; } .admin .tabs button { flex: none; } .tabs-title { display: none; } }
@media (max-width: 760px) { .notice { margin: 0 1rem .5rem; } }

.demo-tag { background: #40210d; color: #ffc27a; } [data-cur] .unit-pick, [data-cur] .coin-dot { display: none; } [data-cur] .led b, [data-cur] #jp-pot { font-size: 1.45rem; } .rate-row input { width: 140px; }
@media (max-width: 760px) { [data-cur] #demo-badge, [data-cur] .site .top .logo { display: none; } .site .top .balance { min-width: 0; padding: .45rem .65rem; } .site .top .account { min-width: 0; } #balance { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; } .site .top .account > *:not(.balance), .site .top > button { flex: none; } .site .top .spacer { flex: 1 0 0; } }
.led b { white-space: nowrap; } [data-cur] .core .led { padding-inline: 1rem; }
