.gpage { display: flex; flex-direction: column; gap: 14px; }
.gwrap { display: grid; grid-template-columns: 330px minmax(0, 1fr); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel); min-height: 580px; }
.gpanel { min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--panel); border-right: 1px solid var(--line); }
.gstage { position: relative; padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ga) 22%, transparent), transparent 60%), var(--bg2); overflow: hidden; }
.gstage.shake { animation: shake .45s; }
@keyframes shake { 15% { transform: translate(-6px, 2px); } 30% { transform: translate(6px, -2px); } 45% { transform: translate(-4px, 1px); } 60% { transform: translate(4px, 0); } 80% { transform: translate(-2px, 0); } }
.gbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r2); }
.gb-n { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; margin-right: 6px; }
.gb-n .tg { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.gb-n .tg .ic { width: 16px; height: 16px; color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 30px; background: var(--panel2); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip b { color: var(--text); }
.chip .ic { width: 15px; height: 15px; }
.btn-chip { border: 1px solid transparent; transition: all .15s; }
.btn-chip:hover { color: var(--text); }
.btn-chip.on { color: var(--gold); border-color: var(--gold); background: rgba(255, 203, 82, .1); }
.gbar .sp { flex: 1; }
.rules { line-height: 1.6; color: var(--muted); }
.rules b { color: var(--text); }
.rules p { margin: 0 0 10px; }

.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld > label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.amt { display: flex; align-items: center; height: 46px; border-radius: var(--r1); background: var(--bg2); border: 1px solid var(--line); overflow: hidden; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.amt:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(140, 107, 255, .2); }
.amt .pre { padding: 0 4px 0 12px; display: grid; place-items: center; }
.amt input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; padding: 0 10px; font-size: 16px; font-weight: 700; }
.amt input:disabled { opacity: .6; }
.amt > button { height: 100%; padding: 0 12px; font-weight: 800; color: var(--muted); border-left: 1px solid var(--line); transition: background .15s, color .15s; white-space: nowrap; }
.amt > button:hover:not(:disabled) { background: var(--panel2); color: var(--text); }
.amt > button:disabled { opacity: .5; cursor: not-allowed; }
.amt .suf { padding: 0 14px; color: var(--muted); font-weight: 800; }
.amt.ro { padding: 0 12px; font-weight: 700; }
.amt.ro .money { display: flex; align-items: center; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pct { display: flex; gap: 6px; align-items: center; }
.pct .seg.sm { flex: 1; padding: 3px; }
.pct .seg.sm button { height: 30px; font-size: 12px; padding: 0 6px; }
.pct input { width: 52px; height: 38px; border-radius: var(--r1); background: var(--bg2); border: 1px solid var(--line); text-align: right; padding: 0 6px; font-weight: 700; }
.pct input:disabled { opacity: .45; }
.pct i { font-style: normal; color: var(--muted); font-weight: 700; }
.autoStat { font-size: 13px; min-height: 18px; }
.sel { height: 46px; border-radius: var(--r1); background: var(--bg2); border: 1px solid var(--line); padding: 0 12px; font-weight: 700; outline: none; cursor: pointer; }
.sel:disabled { opacity: .55; cursor: not-allowed; }
.extra { display: flex; flex-direction: column; gap: 14px; }
.play { margin-top: auto; }
.s-note { font-size: 12px; line-height: 1.5; }

.hist-row { display: flex; gap: 8px; justify-content: flex-end; min-height: 32px; overflow: hidden; flex-wrap: nowrap; }
.pill { padding: 6px 12px; border-radius: 30px; font-weight: 800; font-size: 13px; background: var(--panel2); flex: none; animation: pillIn .35s cubic-bezier(.2, .9, .3, 1.4); }
.pill.w { background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); }
.pill.l { color: var(--muted); }
@keyframes pillIn { from { transform: scale(.4); opacity: 0; } }

.d-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 70px 8px 10px; position: relative; }
.d-track { position: relative; height: 60px; border-radius: 30px; background: var(--panel); border: 1px solid var(--line); padding: 0 22px; display: flex; align-items: center; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .25); }
.d-fill { position: absolute; left: 40px; right: 40px; height: 12px; border-radius: 6px; top: 50%; transform: translateY(-50%); }
.d-range { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; position: relative; z-index: 2; height: 60px; margin: 0; cursor: pointer; }
.d-range::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(180deg, #b39cff, #6a4be0); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(90, 60, 220, .6); cursor: grab; }
.d-range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 10px; background: #8c6bff; border: 3px solid #fff; }
.d-scale { display: flex; justify-content: space-between; padding: 12px 32px 0; color: var(--muted); font-weight: 700; font-size: 13px; }
.d-rail { position: relative; margin: 0 40px 14px; height: 0; }
.d-res { position: absolute; top: 0; left: 50%; width: 0; height: 0; z-index: 3; opacity: 0; transition: opacity .2s; }
.d-res.show { opacity: 1; }
.d-bub { position: absolute; bottom: 0; left: 0; transform: translateX(-50%); padding: 10px 14px; border-radius: 14px; background: var(--panel3); font-weight: 800; font-size: 20px; white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transition: background .2s, color .2s; }
.d-bub::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%) rotate(45deg); width: 14px; height: 14px; background: inherit; border-radius: 3px; }
.d-res.win .d-bub { background: var(--mint); color: #04281a; box-shadow: 0 10px 30px rgba(46, 242, 166, .5); animation: bubPop .35s; }
.d-res.lose .d-bub { background: var(--red); color: #fff; }
@keyframes bubPop { 50% { transform: translateX(-50%) scale(1.15); } }
.d-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); }
.d-inputs.two { grid-template-columns: 1fr 1fr; }
.d-flip { width: 100%; justify-content: space-between; padding: 0 14px; font-size: 16px; font-weight: 700; cursor: pointer; }
.d-flip .ic { color: var(--violet2); }
.d-flip:hover { border-color: var(--violet); }

.l-core { flex: 1; display: grid; place-items: center; position: relative; min-height: 300px; }
.l-rings { position: absolute; width: 300px; height: 300px; display: grid; place-items: center; }
.l-rings i { position: absolute; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ga) 40%, transparent); }
.l-rings i:nth-child(1) { width: 300px; height: 300px; } .l-rings i:nth-child(2) { width: 220px; height: 220px; } .l-rings i:nth-child(3) { width: 140px; height: 140px; background: color-mix(in srgb, var(--ga) 10%, transparent); }
.l-core.go .l-rings i { animation: ringGo .5s ease-out infinite; }
.l-core.go .l-rings i:nth-child(2) { animation-delay: .1s; } .l-core.go .l-rings i:nth-child(3) { animation-delay: .2s; }
@keyframes ringGo { 50% { transform: scale(1.08); opacity: .5; } }
.l-num { position: relative; font-size: 84px; font-weight: 800; letter-spacing: -1px; text-shadow: 0 6px 30px rgba(0, 0, 0, .3); }
.l-core.win .l-num { color: var(--mint); animation: numPop .45s cubic-bezier(.2, .9, .3, 1.5); text-shadow: 0 0 40px color-mix(in srgb, var(--mint) 50%, transparent); }
.l-core.lose .l-num { color: var(--red); animation: numShake .35s; }
.l-core.win .l-rings i { border-color: var(--mint); }
@keyframes numPop { 50% { transform: scale(1.18); } }
@keyframes numShake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.l-sub { position: absolute; bottom: 10px; font-weight: 700; }

.c-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; min-height: 420px; }
.c-canvas { position: relative; border-radius: var(--r2); background: radial-gradient(circle at 80% 10%, rgba(58, 216, 255, .12), transparent 50%), #080a18; overflow: hidden; border: 1px solid var(--line); }
[data-theme="light"] .c-canvas { background: radial-gradient(circle at 80% 10%, rgba(58, 216, 255, .2), transparent 50%), #141833; }
.c-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-big { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); font-size: 74px; font-weight: 800; color: #fff; text-align: center; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); pointer-events: none; transition: color .2s; }
.c-big.hide { display: none; }
.c-big.end { color: var(--red); animation: numShake .35s; }
.c-big small { display: block; font-size: 16px; letter-spacing: 4px; font-weight: 900; color: #fff; opacity: .8; }
.c-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; font-weight: 800; font-size: 20px; }
.c-bar { width: 260px; max-width: 70%; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.c-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--cyan)); border-radius: 8px; }
.c-players { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.cp-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 2px 4px 10px; }
.cp-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.cp { display: grid; grid-template-columns: 1fr auto 70px; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13px; background: var(--panel2); }
.cp span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cp span:last-child { text-align: right; }
.cp.out { background: color-mix(in srgb, var(--mint) 14%, var(--panel2)); color: var(--mint); }
.cp.bust { color: var(--red); opacity: .7; }
.cp.me { box-shadow: inset 0 0 0 1px var(--violet); }

.m-wrap { flex: 1; display: grid; place-items: center; position: relative; padding: 10px 0; }
.m-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: min(100%, 520px); }
.tile { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(180deg, var(--panel3), var(--panel2)); box-shadow: 0 6px 0 color-mix(in srgb, var(--panel3) 60%, #000), 0 10px 20px rgba(0, 0, 0, .25); transition: transform .12s, filter .15s, box-shadow .12s; position: relative; perspective: 400px; display: grid; place-items: center; }
.m-grid.live .tile:not(:disabled):hover { transform: translateY(-4px); filter: brightness(1.2); }
.m-grid.live .tile:not(:disabled):active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--panel3) 60%, #000); }
.tile:disabled { cursor: default; }
.m-grid:not(.live) .tile:not(.flip) { opacity: .65; cursor: not-allowed; }
.tile .tf { width: 64%; height: 64%; display: grid; place-items: center; }
.tile .tf svg { width: 100%; height: 100%; }
.tile.flip { animation: flip .4s cubic-bezier(.2, .9, .3, 1.3); background: var(--bg); box-shadow: inset 0 0 0 2px var(--panel3); transform: translateY(4px); }
.tile.gem { background: radial-gradient(circle, color-mix(in srgb, var(--mint) 25%, var(--bg)), var(--bg) 70%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mint) 60%, transparent), 0 0 24px color-mix(in srgb, var(--mint) 30%, transparent); }
.tile.mine { background: radial-gradient(circle, color-mix(in srgb, var(--red) 25%, var(--bg)), var(--bg) 70%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--red) 60%, transparent); }
.tile.boom { animation: flip .3s, boom .6s .2s; box-shadow: inset 0 0 0 2px var(--red), 0 0 40px var(--red); }
.tile.dim { opacity: .4; box-shadow: none; }
.tile.dim.gem, .tile.dim.mine { background: var(--bg); }
@keyframes flip { from { transform: rotateY(90deg) scale(.8); } }
@keyframes boom { 30% { transform: scale(1.25); } }
.m-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-info div { padding: 10px 12px; border-radius: var(--r1); background: var(--bg2); border: 1px solid var(--line); }
.m-info span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.m-info b { font-size: 18px; }
.m-pop { position: absolute; padding: 20px 34px; border-radius: 20px; background: var(--panel); border: 3px solid var(--mint); color: var(--mint); font-size: 44px; font-weight: 800; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px color-mix(in srgb, var(--mint) 35%, transparent); opacity: 0; transform: scale(.6); pointer-events: none; transition: all .35s cubic-bezier(.2, .9, .3, 1.4); }
.m-pop.on { opacity: 1; transform: scale(1); }
.m-pop small { display: block; font-size: 17px; color: var(--text); }

.p-wrap { flex: 1; position: relative; min-height: 470px; }
.p-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-last { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; width: 64px; }
.p-last span { padding: 8px 4px; border-radius: 10px; color: #1a1030; font-weight: 800; font-size: 13px; text-align: center; animation: pillIn .3s; }

.s-machine { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 10px 0; }
.s-top { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.s-title { font-size: 30px; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; }
.s-title b { font-weight: 900; background: linear-gradient(90deg, #ffe08a, #ff6fcf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-fs { min-height: 22px; font-weight: 800; color: var(--pink); }
.s-reels { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; border-radius: 24px; background: linear-gradient(180deg, #1c1250, #0d0a2a); border: 3px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 3px #ffcb52, 0 0 40px rgba(255, 203, 82, .25), inset 0 0 30px rgba(0, 0, 0, .6); width: min(100%, 600px); }
.fsmode .s-reels { box-shadow: 0 0 0 3px #ff6fcf, 0 0 60px rgba(255, 111, 207, .5), inset 0 0 30px rgba(0, 0, 0, .6); animation: fsGlow 1.2s ease-in-out infinite; }
@keyframes fsGlow { 50% { box-shadow: 0 0 0 3px #ffcb52, 0 0 80px rgba(255, 203, 82, .5), inset 0 0 30px rgba(0, 0, 0, .6); } }
.reel { aspect-ratio: 1 / 3; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #2a1f6e, #3b2c8f 50%, #2a1f6e); position: relative; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 22%, transparent 78%, rgba(0, 0, 0, .45)); pointer-events: none; }
.strip { display: flex; flex-direction: column; will-change: transform; }
.reel.blur .strip { filter: blur(1.5px); }
.sym { aspect-ratio: 1; display: grid; place-items: center; padding: 14%; flex: none; }
.sym svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.sym.hit { animation: symHit .7s ease-in-out infinite; background: radial-gradient(circle, rgba(255, 203, 82, .35), transparent 70%); }
@keyframes symHit { 50% { transform: scale(1.12); } }
.s-lines { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); pointer-events: none; }
.s-lines polyline { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px currentColor); opacity: .9; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: lineDraw .6s forwards; vector-effect: non-scaling-stroke; }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
.s-win { min-height: 64px; font-size: 40px; font-weight: 800; color: var(--gold); text-align: center; opacity: 0; transform: scale(.7); transition: all .35s cubic-bezier(.2, .9, .3, 1.4); }
.s-win.on { opacity: 1; transform: scale(1); }
.s-win small { display: block; font-size: 14px; letter-spacing: 3px; font-weight: 900; color: var(--pink); }
.pt-r { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 12px; background: var(--panel2); margin-bottom: 8px; }
.pt-s { width: 48px; height: 48px; flex: none; }
.pt-v { display: flex; gap: 8px; flex-wrap: wrap; font-weight: 800; }
.pt-v span { padding: 5px 10px; border-radius: 8px; background: var(--bg2); white-space: nowrap; }
.pt-v i { font-style: normal; color: var(--muted); margin-right: 6px; }

.bj-table { flex: 1; position: relative; border-radius: 22px; min-height: 480px; background: radial-gradient(ellipse at 50% 40%, #1d7a63, #0b3b3a 75%); box-shadow: inset 0 0 0 8px #0a2a2a, inset 0 0 0 10px #c99a3b, inset 0 0 60px rgba(0, 0, 0, .5); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 30px 20px 34px; overflow: hidden; }
.bj-shoe { position: absolute; right: 26px; top: 26px; width: 58px; height: 80px; border-radius: 10px; background: repeating-linear-gradient(45deg, #5b3fe0 0 6px, #4a31c4 6px 12px); box-shadow: 4px 4px 0 #3a2696, 8px 8px 0 #2a1b70, 0 10px 20px rgba(0, 0, 0, .4); border: 3px solid #fff; }
.bj-arc { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: rgba(255, 215, 120, .35); font-weight: 900; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; text-align: center; width: 80%; line-height: 1.6; pointer-events: none; }
.bj-side { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; min-height: 150px; }
.bj-hands { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.bj-cards { display: flex; min-height: 118px; padding-right: 50px; }
.bj-cards .pcard + .pcard { margin-left: -50px; }
.bj-tot { min-width: 46px; padding: 5px 12px; border-radius: 20px; background: rgba(0, 0, 0, .45); color: #fff; font-family: var(--num); font-weight: 800; text-align: center; font-size: 15px; }
.bj-tot:empty { visibility: hidden; }
.bj-bet { font-family: var(--num); font-size: 13px; color: #ffe08a; font-weight: 700; }
.hand.act .bj-tot { background: var(--violet); box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.hand.win .bj-tot, .hand.bj .bj-tot { background: var(--mint2); }
.hand.lose .bj-tot { background: var(--red); }
.hand.push .bj-tot { background: #c99a3b; }
.hand.lose .bj-cards { opacity: .6; }
.pcard { width: 82px; height: 118px; perspective: 600px; flex: none; transition: transform .35s cubic-bezier(.2, .9, .3, 1.1), opacity .3s; }
.pcard .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s; }
.pcard.back .in { transform: rotateY(180deg); }
.pcard .face, .pcard .bk { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.pcard .face { background: #fff; color: #1a1540; padding: 6px 8px; }
.pcard.red .face { color: #e8264a; }
.pcard .bk { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #5b3fe0 0 6px, #4a31c4 6px 12px); border: 4px solid #fff; display: grid; place-items: center; }
.pcard .bk svg { width: 34px; height: 34px; }
.ck { position: absolute; top: 6px; left: 8px; display: flex; flex-direction: column; align-items: center; font-family: var(--num); font-weight: 800; font-size: 20px; line-height: 1; }
.ck i { font-style: normal; font-size: 15px; }
.ck.br { top: auto; left: auto; bottom: 6px; right: 8px; transform: rotate(180deg); }
.cs { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; }
.bj-msg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; padding: 14px 28px; border-radius: 18px; background: rgba(10, 12, 30, .85); color: #fff; text-align: center; pointer-events: none; transition: all .35s cubic-bezier(.2, .9, .3, 1.4); backdrop-filter: blur(6px); }
.bj-msg.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bj-msg b { display: block; font-size: 24px; font-weight: 900; letter-spacing: 1px; }
.bj-msg span { font-size: 18px; font-weight: 800; color: var(--mint); }
.bj-msg.win { border: 2px solid var(--mint); } .bj-msg.lose { border: 2px solid var(--red); } .bj-msg.push { border: 2px solid #c99a3b; }
.bj-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bj-acts .btn { height: 52px; }
.bj-acts .btn.ready { border-color: var(--violet); }

.r-top { display: flex; justify-content: center; }
.r-wheel { position: relative; width: min(100%, 290px); aspect-ratio: 1; flex: none; }
.r-wheel canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .45)); }
.r-res { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; transform: translate(-50%, -50%) scale(0); transition: transform .4s cubic-bezier(.2, .9, .3, 1.5); border: 3px solid #ffcb52; }
.r-res.on { transform: translate(-50%, -50%) scale(1); }
.r-res.red { background: #d9264a; } .r-res.black { background: #1a1630; } .r-res.green { background: #12a874; }
.r-board-wrap { overflow-x: auto; padding: 4px 2px 6px; }
.r-board { display: grid; grid-template-columns: 50px repeat(12, minmax(38px, 1fr)) 54px; grid-template-rows: repeat(3, 44px) 40px 40px; gap: 4px; min-width: 620px; }
.rc { position: relative; border-radius: 8px; font-weight: 800; font-family: var(--num); font-size: 15px; color: #fff; transition: transform .1s, filter .15s, box-shadow .15s; border: 1px solid rgba(255, 255, 255, .08); }
.rc.red { background: #d9264a; } .rc.black { background: #262245; } .rc.green { background: #12a874; }
.rc.o { background: var(--panel2); color: var(--text); font-family: var(--font); font-size: 13px; }
.rc:hover { filter: brightness(1.2); }
.rc.hl { box-shadow: 0 0 0 2px #fff inset; filter: brightness(1.25); }
.rc.pop { animation: rcPop .2s; }
@keyframes rcPop { 50% { transform: scale(.93); } }
.rc.win { box-shadow: 0 0 0 3px var(--gold), 0 0 20px var(--gold); animation: winBlink .8s ease-in-out 3; z-index: 2; }
@keyframes winBlink { 50% { filter: brightness(1.5); } }
.rc .stk { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 30px; height: 30px; padding: 0 4px; border-radius: 15px; background: var(--cc); border: 3px dashed rgba(255, 255, 255, .85); color: #1a1030; font-size: 11px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); pointer-events: none; animation: pillIn .25s; }
.dia { display: inline-block; width: 16px; height: 16px; transform: rotate(45deg); border-radius: 3px; }
.dia.red { background: #d9264a; } .dia.black { background: #262245; border: 1px solid rgba(255, 255, 255, .4); }
.chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.chip-b { aspect-ratio: 1; border-radius: 50%; background: var(--cc); border: 3px dashed rgba(255, 255, 255, .8); color: #1a1030; font-weight: 900; font-size: 12px; display: grid; place-items: center; transition: transform .15s, box-shadow .15s; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.chip-b:hover { transform: translateY(-3px); }
.chip-b.on { transform: translateY(-3px) scale(1.08); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--cc); }
.rp.red { background: #d9264a; color: #fff; } .rp.black { background: #262245; color: #fff; } .rp.green { background: #12a874; color: #fff; }

.vip-top { display: flex; align-items: center; gap: 28px; padding: 28px; background: radial-gradient(circle at 10% 50%, color-mix(in srgb, var(--tc) 30%, transparent), transparent 50%), var(--panel); }
.vt-medal svg { width: 130px; height: 130px; filter: drop-shadow(0 14px 30px color-mix(in srgb, var(--tc) 50%, transparent)); animation: floaty 4s ease-in-out infinite; }
.vt-info { flex: 1; min-width: 0; }
.vt-info h2 { margin: 2px 0 14px; font-size: 34px; font-weight: 900; color: var(--tc); }
[data-theme="light"] .vt-info h2 { filter: brightness(.75); }
.vt-bar { height: 14px; border-radius: 10px; background: var(--panel3); overflow: hidden; }
.vt-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--mint)); background-size: 200% 100%; animation: barFlow 3s linear infinite; }
@keyframes barFlow { to { background-position: -200% 0; } }
.vt-row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--muted); }
.vt-row b { color: var(--text); }
.rw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.rwc { display: flex; flex-direction: column; gap: 6px; }
.rwc-i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.rwc-i .ic { width: 24px; height: 24px; }
.rwc > b { font-size: 17px; }
.rwc > span { font-size: 13px; line-height: 1.45; }
.rwc-v { font-size: 28px; font-weight: 800; margin: 8px 0 12px; }
.rwc .btn { margin-top: auto; }
.streak { display: flex; gap: 6px; margin-top: 8px; }
.streak i { width: 30px; height: 30px; border-radius: 8px; background: var(--panel3); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: var(--dim); }
.streak i.on { background: linear-gradient(135deg, #ffe08a, #f5b02e); color: #3a2300; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding-top: 6px; }
.tier { position: relative; padding: 18px; border-radius: var(--r3); background: var(--panel); border: 1px solid var(--line); text-align: center; transition: transform .2s; }
.tier:hover { transform: translateY(-3px); }
.tier svg { width: 74px; height: 74px; }
.tier > b { display: block; font-size: 18px; margin-top: 6px; color: var(--tc); }
[data-theme="light"] .tier > b { filter: brightness(.75); }
.tier > span { font-size: 13px; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.tier li { display: flex; justify-content: space-between; gap: 8px; }
.tier li b { color: var(--text); }
.tier.lock { opacity: .55; }
.tier.lock svg { filter: grayscale(.8); }
.tier.cur { border: 2px solid var(--tc); box-shadow: 0 0 30px color-mix(in srgb, var(--tc) 30%, transparent); }
.tier em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: 1px; padding: 3px 8px; border-radius: 10px; background: var(--tc); color: #1a1030; text-transform: uppercase; }

.ach-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.big-ring svg { width: 96px; height: 96px; }
.br-in { width: 100%; height: 100%; display: grid; place-items: center; font-size: 6.5px; font-weight: 800; color: var(--text); }
.ach-earn { margin-left: auto; text-align: right; }
.ach-earn b { display: block; font-size: 22px; }
.ach-earn .money { display: inline-flex; align-items: center; gap: 6px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ach { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); transition: transform .2s; }
.ach:hover { transform: translateY(-2px); }
.ach-i { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--panel3); color: var(--dim); }
.ach-i .ic { width: 26px; height: 26px; }
.ach.done .ach-i { background: linear-gradient(135deg, #ffe08a, #f5b02e); color: #3a2300; box-shadow: 0 6px 20px rgba(255, 203, 82, .3); }
.ach-t { flex: 1; min-width: 0; }
.ach-t b { display: block; font-size: 15px; }
.ach-t span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.ach-t small { font-size: 11px; }
.ach-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.ach-r .num { display: flex; align-items: center; gap: 5px; }
.ach-ok { width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: #032a1c; display: grid; place-items: center; }
.ach-ok .ic { width: 15px; height: 15px; }

.stiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stile { padding: 18px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.stile span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.stile b { display: block; font-size: 24px; font-weight: 800; margin-top: 6px; white-space: nowrap; }
.chart-card canvas { width: 100%; display: block; }

@media (max-width: 1180px) {
  .gwrap { grid-template-columns: 290px minmax(0, 1fr); }
  .c-body { grid-template-columns: 1fr; }
  .c-players { max-height: 200px; }
  .c-canvas { min-height: 380px; }
  .stiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .gwrap { grid-template-columns: minmax(0, 1fr); }
  .gstage { order: -1; min-height: 420px; padding: 14px; }
  .gpanel { border-right: 0; border-top: 1px solid var(--line); }
  .rw-grid { grid-template-columns: 1fr; }
  .vip-top { flex-direction: column; text-align: center; }
  .vt-row { justify-content: center; }
  .l-num { font-size: 60px; }
  .c-big { font-size: 52px; }
}
@media (max-width: 560px) {
  .d-inputs { grid-template-columns: 1fr; }
  .pcard { width: 64px; height: 92px; }
  .bj-cards { min-height: 92px; padding-right: 40px; }
  .bj-cards .pcard + .pcard { margin-left: -40px; }
  .ck { font-size: 16px; } .cs { font-size: 30px; }
  .stiles { grid-template-columns: 1fr 1fr; }
  .stile b { font-size: 19px; }
  .ach-grid { grid-template-columns: 1fr; }
  .hide-s { display: none; }
  .l-rings { transform: scale(.75); }
  .m-grid { gap: 8px; }
  .bj-shoe { display: none; }
}
