/* ===== Pages (lobby / stats) ===== */
.page { padding: 26px 30px 40px; max-width: 1500px; margin: 0 auto; }
.page h2 { margin: 0; font-size: 24px; }
.page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.page-head .spacer { flex: 1; }
.muted, .muted-s { color: var(--muted); }
.muted-s { font-size: 11px; }
.gold { color: var(--gold); }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 24px; padding: 30px; border-radius: 22px; background: radial-gradient(ellipse at 0% 0%, rgba(244, 194, 91, .16), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(167, 123, 255, .16), transparent 55%), var(--panel); border: 1px solid var(--border); margin-bottom: 22px; }
.hero-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 2.5px; font-size: 12px; font-weight: 800; }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 8px 0 12px; }
.grad { background: linear-gradient(90deg, var(--gold), #ff8a5c, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #c3cddb; line-height: 1.6; max-width: 640px; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero-stats { display: grid; gap: 10px; align-content: center; }
.hs { background: var(--panel2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.hs-v { font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; }
.hs.gold .hs-v { color: var(--gold); }
.hs.pos .hs-v { color: var(--green); }
.hs.neg .hs-v { color: var(--red); }
.hs-l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tile { --accent: var(--gold); position: relative; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, var(--panel)), var(--panel) 60%); border: 1px solid var(--border); border-radius: 18px; padding: 18px; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 0 1px var(--accent); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #0b0f14; display: grid; place-items: center; font-size: 28px; font-weight: 900; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.tile-he { text-align: right; font-weight: 800; font-size: 16px; }
.tile-he small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.tile-name { font-size: 18px; font-weight: 800; margin-top: 4px; }
.tile-desc { color: #b9c4d3; font-size: 13px; line-height: 1.5; flex: 1; }
.tile-stats { font-size: 12px; color: var(--muted); }
.tile-play { color: var(--accent); font-weight: 800; font-size: 13.5px; }
.edge-ladder { margin-top: 26px; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.edge-ladder h3 { margin: 0 0 12px; }
.ladder { display: flex; flex-direction: column; gap: 6px; }
.ladder-row { display: grid; grid-template-columns: 340px 1fr 160px; gap: 12px; align-items: center; font-size: 13px; }
.lr-bar { height: 10px; background: var(--panel3); border-radius: 5px; overflow: hidden; }
.lr-fill { height: 100%; border-radius: 5px; }
.lr-fill.neg { background: var(--teal); }
.lr-fill.good { background: var(--green); }
.lr-fill.mid { background: var(--gold); }
.lr-fill.bad { background: var(--red); }
.lr-v { font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.disclaimer { margin-top: 22px; color: var(--dim); font-size: 12px; line-height: 1.6; max-width: 900px; }
.stats-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.big-tile { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.bt-l { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.bt-v { font-size: 26px; font-weight: 850; margin: 4px 0; font-variant-numeric: tabular-nums; }
.bt-s { color: var(--dim); font-size: 12px; }
.big-tile.gold .bt-v { color: var(--gold); }
.big-tile.pos .bt-v { color: var(--green); }
.big-tile.neg .bt-v { color: var(--red); }
.big-tile.blue .bt-v { color: var(--blue); }
.big-tile.purple .bt-v { color: var(--purple); }
.card-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.card-panel h3 { margin: 0 0 10px; font-size: 16px; }
.cp-head { display: flex; justify-content: space-between; align-items: baseline; }
.bankroll-canvas { width: 100%; display: block; }
.otable.big { font-size: 13px; }
.otable.big td, .otable.big th { padding: 8px 10px; }
.otable.hist td:last-child { text-align: left; max-width: 520px; font-size: 12px; }
.funds-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.funds { display: flex; flex-direction: column; gap: 10px; }
.form-row { display: flex; gap: 10px; align-items: center; color: var(--muted); }

/* ===== Shared table bits ===== */
.zone-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255, 255, 255, .75); font-weight: 700; margin-bottom: 8px; }
.colchart.short { height: 86px; }
.shoe-ind { position: absolute; top: 18px; right: 22px; display: flex; gap: 8px; align-items: center; z-index: 2; }
.shoe-box { width: 18px; height: 64px; border-radius: 4px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.shoe-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #c33, #8e1c2a); transition: height .4s; }
.shoe-cut { position: absolute; left: -2px; right: -2px; height: 2px; background: var(--gold); }
.shoe-txt { font-size: 11.5px; color: rgba(255, 255, 255, .8); line-height: 1.3; }
.shoe-txt b { font-size: 15px; }

/* ===== Blackjack ===== */
.bj-felt { --cwb: clamp(64px, min(8.8cqw, calc((100cqh - 210px) / 4.45)), 172px); --cw: var(--cwb); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding-top: 26px; }
.bj-dealer { display: flex; flex-direction: column; align-items: center; min-height: calc(var(--ch) + 34px); }
.bj-cards { display: flex; min-height: var(--ch); }
.bj-cards .card + .card { margin-left: calc(var(--cw) * -0.38); }
.bj-cards .card.doubled { margin-left: calc(var(--cw) * -0.1); margin-right: calc(var(--cw) * 0.22); }
.card.doubled .card-inner, .card.third .card-inner { transform: rotate(90deg); }
.bj-print { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--ch) + 66px); width: min(70cqw, 880px); z-index: -1; pointer-events: none; }
.bj-print .felt-arc { width: 100%; }
.bj-hands { display: flex; gap: 26px; justify-content: center; align-items: flex-end; min-height: calc(var(--ch) + 46px); flex-wrap: wrap; }
.bj-hands[data-n="3"] { --cw: calc(var(--cwb) * .8); gap: 18px; }
.bj-hands[data-n="4"] { --cw: calc(var(--cwb) * .68); gap: 14px; }
.bj-sidegrp { display: grid; grid-auto-flow: column; grid-template-rows: auto; gap: clamp(10px, 1.6cqw, 24px); align-items: center; }
.bj-sidegrp[data-n="3"], .bj-sidegrp[data-n="4"], .bj-sidegrp[data-n="5"] { grid-template-rows: auto auto; gap: 12px clamp(10px, 1.4cqw, 20px); }
.bj-sidegrp[data-n="5"] .bet-spot.bj-side { width: calc(var(--cw) * .86); height: calc(var(--cw) * .86); }
.bet-spot.bj-side.s-lucky, .bet-spot.bj-side.s-kb { border-color: rgba(120, 200, 255, .55); }
.bet-spot.bj-side.s-match { border-color: rgba(53, 208, 127, .6); }
.bj-sidegrp[data-n="0"] { display: none; }
.bj-hand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px; border: 2px solid transparent; transition: border-color .2s, background .2s; }
.bj-hand.active { border-color: var(--gold); background: rgba(244, 194, 91, .08); box-shadow: 0 0 24px rgba(244, 194, 91, .25); }
.hand-meta { display: flex; gap: 6px; align-items: center; }
.hand-bet { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .35); padding: 3px 8px; border-radius: 10px; }
.hand-res { font-size: 11.5px; font-weight: 850; letter-spacing: 1px; padding: 3px 8px; border-radius: 8px; }
.hand-res:empty { display: none; }
.hand-res.win { background: var(--green); color: #032; }
.hand-res.lose { background: var(--red); color: #300; }
.hand-res.push { background: var(--blue); color: #021; }
.bj-spots { display: flex; gap: clamp(16px, 2.6cqw, 44px); align-items: center; justify-content: center; margin: 4px 0 30px; }
.bet-spot.bj-main { width: calc(var(--cw) * 1.45); height: calc(var(--cw) * 1.45); border-width: 3px; box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .08), inset 0 0 0 6px rgba(255, 255, 255, .12); }
.bj-main .bs-label { font-size: calc(var(--cw) * .2); }
.bet-spot.bj-side { width: calc(var(--cw) * .98); height: calc(var(--cw) * .98); border-style: dashed; }
.bj-side .bs-label { font-size: clamp(10px, calc(var(--cw) * .11), 14px); line-height: 1.1; }
.bet-spot.bj-side.s-buster { border-color: rgba(255, 140, 80, .65); }
.bet-spot.bj-side.s-ll { border-color: rgba(255, 120, 170, .6); }
.bet-spot.bj-side.s-pp, .bet-spot.bj-side.s-t213 { border-color: rgba(244, 194, 91, .6); }
.hand-total:empty { display: none; }
/* strategy chart */
.bj-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bj-chart { border-collapse: collapse; width: 100%; font-size: 12.5px; margin-bottom: 14px; }
.bj-chart th { background: var(--panel2); padding: 4px 6px; font-weight: 750; border: 1px solid var(--border); }
.bj-chart td { text-align: center; padding: 4px 2px; font-weight: 800; border: 1px solid rgba(0, 0, 0, .35); color: #10151c; cursor: default; }
.bj-chart td.na { color: var(--dim); background: var(--panel); }
.sc-H { background: #e9eef5; } .sc-S { background: #ff8a95; } .sc-Dh, .sc-Ds { background: #6fcf97; } .sc-P { background: #f4c25b; }
.sc-Rh, .sc-Rs, .sc-Rp { background: #b79cff; }
b.sc-H, b.sc-S, b.sc-Dh, b.sc-Ds, b.sc-P, b.sc-Rh, b.sc-Rs, b.sc-Rp { display: inline-block; min-width: 26px; text-align: center; border-radius: 4px; color: #10151c; padding: 1px 4px; }
.bj-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }

/* ===== Baccarat ===== */
.bac-felt { --cw: clamp(60px, min(7.2cqw, calc((100cqh - 270px) / 3.75)), 160px); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; }
.bac-hands { display: grid; grid-template-columns: 1fr minmax(200px, 260px) 1fr; width: 100%; max-width: min(1300px, 62cqw); align-items: start; gap: 12px; min-height: calc(var(--ch) + 90px); }
@container (max-width: 900px) { .bac-hands { max-width: 100%; } }
.bac-hand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bac-hl { font-weight: 850; letter-spacing: 4px; text-transform: uppercase; font-size: 15px; }
.bac-hand.p .bac-hl { color: #8fc3ff; }
.bac-hand.b .bac-hl { color: #ff9aa4; }
.bac-total { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 850; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .3); transition: box-shadow .3s; }
.bac-total.p { border-color: #59a8ff; }
.bac-total.b { border-color: #ff5f6d; }
.bac-total:empty { visibility: hidden; }
.bac-total.win { box-shadow: 0 0 0 3px var(--gold), 0 0 24px var(--gold); }
.bac-cards { display: flex; gap: 8px; align-items: center; min-height: var(--ch); }
.bac-cards .card.third { margin: 0 calc(var(--cw) * .22); }
.bac-live { display: flex; flex-direction: column; justify-content: center; gap: 6px; align-self: center; }
.bac-live-t { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255, 255, 255, .75); text-align: center; font-weight: 700; }
.bac-vs { text-align: center; font-weight: 900; font-size: 34px; color: rgba(255, 255, 255, .14); letter-spacing: 4px; }
.bac-spots-top, .bac-spots-main { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 64cqw; }
@container (max-width: 900px) { .bac-spots-top, .bac-spots-main { max-width: 100%; } }
.bac-spots-main { margin-bottom: 26px; max-width: 100%; flex-wrap: nowrap; }
.bac-spots-main .bet-spot { flex-shrink: 1; min-width: 0; }
.bet-spot.bac-side { border-radius: 12px; width: calc(var(--cw) * 1.45); height: calc(var(--cw) * .78); min-width: 112px; min-height: 56px; }
.bet-spot.bac-side.ez { border-color: rgba(244, 194, 91, .7); border-style: dashed; }
.bet-spot.bac-side.bs { border-color: rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .12); }
.bet-spot.bac-side.bs .bs-label { font-size: clamp(15px, calc(var(--cw) * .19), 24px); letter-spacing: 3px; font-family: Georgia, serif; }
.bet-spot.bac-side.l6 { border-color: rgba(53, 208, 127, .7); border-style: dashed; }
.bet-spot.bac-side.tg { border-color: rgba(255, 166, 77, .75); border-style: dashed; }
/* many side bets on offer: smaller spots so the top row stays two lines at most */
.bac-spots-top.many { max-width: 54cqw; gap: 8px; }
.bac-spots-top.many .bet-spot.bac-side { width: calc(var(--cw) * 1.12); height: calc(var(--cw) * .7); min-width: 86px; min-height: 50px; font-size: .88em; }
.bet-spot.bac-main { border-radius: 18px; width: calc(var(--cw) * 2.1); height: calc(var(--cw) * 1.35); min-width: 150px; min-height: 96px; border-width: 3px; }
.bac-main .bs-label { font-size: calc(var(--cw) * .25); letter-spacing: 2px; }
.bet-spot.bac-main.p { border-color: rgba(89, 168, 255, .85); }
.bet-spot.bac-main.b { border-color: rgba(255, 95, 109, .85); }
.bet-spot.bac-main.t { border-color: rgba(53, 208, 127, .85); width: calc(var(--cw) * 1.6); min-width: 118px; }
.bet-spot.bac-dragon { border-radius: 16px; width: calc(var(--cw) * 1.25); height: calc(var(--cw) * 1.35); min-width: 92px; min-height: 96px; border-style: dashed; }
.bet-spot.bac-dragon.p { border-color: rgba(89, 168, 255, .55); }
.bet-spot.bac-dragon.b { border-color: rgba(255, 95, 109, .55); }
.roads { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; align-items: flex-start; }
.road-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.road-wrap.grow { flex: 1; }
.road-t { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.road { display: grid; grid-template-rows: repeat(6, 15px); grid-auto-columns: 15px; gap: 2px; background: #eef0f3; padding: 3px; border-radius: 6px; overflow-x: auto; overflow-y: hidden; max-width: 100%; min-height: 108px; }
.road.bead { width: 290px; }
.bead-c { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; position: relative; }
.bead-c.B { background: #d8404f; }
.bead-c.P { background: #3b82d6; }
.bead-c.T { background: #1f9c5c; }
.dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; border: 1px solid #fff; }
.dot.pp { background: #3b82d6; bottom: -1px; right: -1px; }
.dot.bp { background: #d8404f; top: -1px; left: -1px; }
.big-c { width: 15px; height: 15px; border-radius: 50%; border: 3px solid; position: relative; }
.big-c.B { border-color: #d8404f; }
.big-c.P { border-color: #3b82d6; }
.big-c.nat { background: rgba(244, 194, 91, .35); }
.big-c.tied::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #1f9c5c; transform: rotate(45deg); }
.road-sum { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 750; min-width: 52px; }
.rs.B { color: var(--red); }
.rs.P { color: var(--blue); }
.rs.T { color: var(--green); }

/* ===== Three Card Poker / Ultimate Hold'em ===== */
.tcp-felt, .uth-felt { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; padding-top: 22px; }
.tcp-felt { --cw: clamp(62px, min(8.4cqw, calc((100cqh - 300px) / 4.15)), 168px); }
.uth-felt { --cw: clamp(56px, min(7.4cqw, calc((100cqh - 240px) / 5.75)), 150px); }
.tcp-zone, .uth-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tcp-print { width: min(58cqw, 760px); margin: -4px 0; pointer-events: none; }
.tcp-print .felt-arc { width: 100%; }
.tcp-spots, .uth-spots { display: flex; gap: clamp(22px, 3cqw, 52px); align-items: center; margin-bottom: 26px; }
.tcp-col { display: flex; flex-direction: row; gap: clamp(18px, 2.4cqw, 40px); align-items: center; }
.tcp-plr { top: 24px; }
.bet-spot.tcp-spot { width: calc(var(--cw) * 1.25); height: calc(var(--cw) * 1.25); min-width: 90px; min-height: 90px; }
.bet-spot.tcp-spot.pp { border-color: rgba(244, 194, 91, .7); }
.bet-spot.tcp-spot.six { border-style: dashed; }
.bet-spot.tcp-spot.side { width: calc(var(--cw) * 1.0); height: calc(var(--cw) * 1.0); min-width: 74px; min-height: 74px; font-size: .9em; }
.bet-spot.tcp-spot.prime { border-color: rgba(201, 40, 58, .75); }
.bet-spot.tcp-spot.prog { border-color: rgba(120, 200, 255, .6); }
.bet-spot.tcp-spot.play { width: calc(var(--cw) * 1.05); height: calc(var(--cw) * 1.05); min-width: 78px; min-height: 78px; border-style: dashed; }
.uth-board { gap: 10px; }
.uth-eq { font-size: clamp(18px, calc(var(--cw) * .3), 34px); font-weight: 900; color: rgba(255, 255, 255, .35); margin: 0 -10px; }
.uth-print { position: absolute; left: 50%; transform: translateX(-50%); top: calc(2 * var(--ch) + 118px); width: min(56cqw, 720px); z-index: -1; pointer-events: none; }
.uth-print .felt-arc { width: 100%; }
.uth-plr { top: 24px; }
.bet-spot.uth-spot { width: calc(var(--cw) * 1.15); height: calc(var(--cw) * 1.15); min-width: 84px; min-height: 84px; }
.bet-spot.uth-spot.trips { border-color: rgba(244, 194, 91, .7); width: calc(var(--cw) * 1.25); height: calc(var(--cw) * 1.25); }
.bet-spot.uth-spot.play { width: calc(var(--cw) * 1.35); height: calc(var(--cw) * .95); min-height: 68px; border-radius: 16px; border-style: dashed; }
.uth-sides { display: flex; gap: clamp(8px, 1.2cqw, 18px); align-items: center; margin-right: clamp(4px, 1cqw, 20px); }
.bet-spot.uth-spot.side { width: calc(var(--cw) * .9); height: calc(var(--cw) * .9); min-width: 66px; min-height: 66px; font-size: .9em; }
.bet-spot.uth-spot.side.trips { width: calc(var(--cw) * 1.0); height: calc(var(--cw) * 1.0); }
.uth-felt .cards-row { min-height: var(--ch); }
.killer-cards { display: flex; flex-wrap: wrap; gap: 6px; }
.kc { background: var(--panel2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 13px; }
.kc small { color: var(--muted); margin-left: 4px; font-size: 10px; }

/* ===== Craps ===== */
.cr-felt { --line: rgba(255, 255, 255, .62); display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 16px; --felt1: #17784a; --felt2: #0a432a; }
.cr-felt .felt-decor { width: min(46cqh, 28cqw); left: 38%; top: 60%; color: rgba(255, 255, 255, .045); }
.cr-felt .bet-spot.cr { border: 2px solid var(--line); color: #fff; }
/* top band: last roll · dice track · status */
.cr-top { display: grid; grid-template-columns: clamp(150px, 15cqw, 220px) minmax(0, 1fr) clamp(170px, 17cqw, 250px); gap: 10px; height: clamp(110px, 17cqh, 160px); flex: none; }
.cr-last { background: rgba(0, 0, 0, .32); border: 2px solid rgba(244, 194, 91, .55); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px 8px; box-shadow: inset 0 0 22px rgba(0, 0, 0, .35); min-width: 0; }
.cr-last.pop .cr-last-n { animation: lastPop .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes lastPop { from { transform: scale(.4); opacity: 0; } }
.cr-last-t { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, .6); font-weight: 800; }
.cr-last-n { font-size: clamp(44px, 8cqh, 76px); line-height: 1; font-weight: 900; color: #ffe27a; text-shadow: 0 3px 12px rgba(0, 0, 0, .6), 0 0 22px rgba(255, 226, 122, .35); font-variant-numeric: tabular-nums; }
.cr-last-n.seven { color: #ff7d88; text-shadow: 0 3px 12px rgba(0, 0, 0, .6), 0 0 22px rgba(255, 95, 109, .5); }
.cr-last-n.hard { color: #9ff3c6; }
.cr-last-call { font-size: clamp(11px, 1.05cqw, 14px); font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .8px; line-height: 1.2; margin-top: 2px; }
.cr-last-dice { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: rgba(255, 255, 255, .6); font-weight: 800; }
.cr-last-dice .mdie { width: 20px; height: 20px; }
.cr-last-dice b { display: inline-grid; place-items: center; width: 20px; height: 20px; background: #f4f4f4; color: #222; border-radius: 4px; font-size: 12px; }
.cr-stage { position: relative; border-radius: 14px; background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .1)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), inset 0 6px 18px rgba(0, 0, 0, .35); overflow: hidden; perspective: 900px; }
.cr-stage-wall { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: repeating-linear-gradient(45deg, #5a3a1c 0 6px, #3b2413 6px 12px); box-shadow: 2px 0 6px rgba(0, 0, 0, .4); }
.die3d { --ds: clamp(48px, min(9cqh, 6cqw), 76px); position: absolute; left: 0; top: 0; width: var(--ds); height: var(--ds); transform-style: preserve-3d; will-change: transform; }
.die-shadow { position: absolute; left: 8%; right: 8%; bottom: -12%; height: 22%; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(5px); transform: translateZ(calc(var(--ds) / -2)); }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.cf { position: absolute; inset: 0; border-radius: 16%; background: radial-gradient(circle at 30% 25%, #ff8a95, #d22d40 60%, #a3192b); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), inset 0 -4px 8px rgba(0, 0, 0, .25); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 15%; backface-visibility: hidden; }
.cube.alt .cf { background: radial-gradient(circle at 30% 25%, #9cc9ff, #2f6db5 60%, #1d4d88); }
.cf .pip { width: 72%; height: 72%; border-radius: 50%; background: #fff; place-self: center; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); }
.cf .pip.off { visibility: hidden; }
.cf.num { display: grid; place-items: center; grid-template-columns: 1fr; grid-template-rows: 1fr; padding: 0; }
.cf.num b { color: #fff; font-size: calc(var(--ds) * .48); font-weight: 900; }
.cf.front { transform: translateZ(calc(var(--ds) / 2)); }
.cf.back { transform: rotateY(180deg) translateZ(calc(var(--ds) / 2)); }
.cf.right { transform: rotateY(90deg) translateZ(calc(var(--ds) / 2)); }
.cf.left { transform: rotateY(-90deg) translateZ(calc(var(--ds) / 2)); }
.cf.top { transform: rotateX(90deg) translateZ(calc(var(--ds) / 2)); }
.cf.bottom { transform: rotateX(-90deg) translateZ(calc(var(--ds) / 2)); }
.cr-statuswrap { display: flex; flex-direction: column; gap: 6px; justify-content: center; min-width: 0; }
.cr-pucks { display: flex; gap: 10px; align-items: center; }
.cr-status { font-size: 12.5px; color: rgba(255, 255, 255, .85); line-height: 1.45; }
.cr-status b { font-size: 16px; color: #fff; }
.cr-diceinfo { font-size: 12px; color: rgba(255, 255, 255, .85); }
.puck { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 11px; box-shadow: 0 3px 8px rgba(0, 0, 0, .55); flex: none; }
.puck.on { background: #fff; color: #111; border: 3px solid #111; }
.puck.off { background: #111; color: #fff; border: 3px solid #fff; }
/* legacy flat dice (still used by the Workshop preview) */
.dice-wrap { display: flex; gap: 14px; }
.die { width: 58px; height: 58px; background: linear-gradient(145deg, #ff6b78, #c4283a); border-radius: 12px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 8px; box-shadow: 0 6px 14px rgba(0, 0, 0, .5), inset 0 -3px 0 rgba(0, 0, 0, .2), inset 0 2px 0 rgba(255, 255, 255, .25); }
.die.alt { background: linear-gradient(145deg, #7bbcff, #2f6db5); }
.die.num { display: grid; place-items: center; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.die.num b { color: #fff; font-size: 26px; font-weight: 900; }
.die .pip { width: 10px; height: 10px; border-radius: 50%; background: #fff; place-self: center; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.die .pip.off { visibility: hidden; }
.die.mini { width: 40px; height: 40px; padding: 5px; border-radius: 9px; }
.die.mini .pip { width: 7px; height: 7px; }
.die.mini.num b { font-size: 17px; }
/* mini dice pictured on the layout */
.mdice { display: inline-flex; gap: 3px; vertical-align: middle; }
.mdie { width: clamp(16px, 1.6cqw, 24px); height: clamp(16px, 1.6cqw, 24px); }
.mdie rect { fill: #f7f3ea; stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.mdie circle { fill: #c4283a; }
/* the layout */
.cr-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 27%); gap: 10px; flex: 1; min-height: 0; }
.cr-main { display: grid; grid-template-rows: minmax(110px, 1.35fr) minmax(52px, .62fr) minmax(58px, .7fr) minmax(96px, 1fr); gap: 7px; min-height: 0; }
.cr-numbers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.cr-numbers > .bet-spot.dcbar { border: 0; border-right: 2px solid var(--line); border-radius: 0; }
.cr-box { position: relative; border-right: 2px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cr-box:last-child { border-right: 0; }
.cr-box.outside { background: rgba(244, 194, 91, .07); }
.cr-box.point { box-shadow: inset 0 0 0 3px #fff, inset 0 0 26px rgba(255, 255, 255, .25); }
.cr-box.dead { opacity: .4; }
.cr-num { display: grid; place-items: center; }
.cr-num span { display: inline-block; min-width: 70%; text-align: center; padding: 2px 6px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 6px; font-size: clamp(18px, 2cqw, 32px); font-weight: 900; color: #ffd75e; letter-spacing: 1px; font-family: Georgia, serif; text-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.cr-puck-slot { position: absolute; top: clamp(34px, 4.6cqh, 48px); left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; }
.cr-puck-slot .puck { width: 34px; height: 34px; font-size: 10px; }
.bet-spot.cr { border-radius: 10px; }
.bet-spot.cr.place { flex: 1; min-height: 44px; border-style: dashed !important; border-color: rgba(255, 255, 255, .35) !important; }
.bet-spot.cr.place .bs-label { font-size: 10px; letter-spacing: 1.5px; opacity: .8; }
.cr-travel { display: none; grid-template-columns: 1fr 1fr; gap: 3px; }
.cr-travel.show { display: grid; }
.bet-spot.cr.mini { height: 30px; border-radius: 7px; border-width: 1px !important; }
.bet-spot.cr.mini .bs-label { font-size: 9px; }
.bet-spot.cr.mini .chip-stack { transform: scale(.55); }
.bet-spot.cr.mini .bs-amt { bottom: -13px; font-size: 10px; }
.bet-spot.cr.dcbar .bs-label { font-size: clamp(10px, 1cqw, 13px); line-height: 1.25; letter-spacing: 1px; }
.bet-spot.cr.come .bs-label { font-size: clamp(30px, 4cqw, 60px); color: #ff6f6f; letter-spacing: 8px; font-family: Georgia, serif; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.bet-spot.cr.field { flex-direction: row; gap: 14px; }
.cr-field-word { font-size: clamp(24px, 3cqw, 44px); color: #ffd75e; letter-spacing: 6px; font-family: Georgia, serif; margin-left: 10px; }
.cr-field-nums { font-size: clamp(14px, 1.6cqw, 24px); color: #ffd75e; letter-spacing: 2px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.cr-field-nums .ring { font-style: normal; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 2.3em; height: 2.3em; border: 2px solid #ffd75e; border-radius: 50%; line-height: 1; }
.cr-field-nums .ring small { font-size: .38em; letter-spacing: .5px; text-transform: uppercase; margin-top: 1px; }
.bet-spot.cr.field .bs-sub { display: none; }
.cr-bottom { display: grid; grid-template-columns: minmax(80px, 16%) minmax(0, 1fr); gap: 7px; min-height: 0; }
.cr-bigs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.bet-spot.cr.big { border-color: rgba(255, 120, 120, .8) !important; background: rgba(0, 0, 0, .1); }
.bet-spot.cr.big .bs-label { font-size: clamp(26px, 3cqw, 44px); color: #ff6f6f; font-family: Georgia, serif; }
.cr-lines { display: grid; grid-template-rows: .8fr 1fr; gap: 6px; min-height: 0; }
.bet-spot.cr.dp .bs-label { font-size: clamp(13px, 1.3cqw, 18px); letter-spacing: 3px; }
.cr-passrow { display: flex; gap: 6px; min-height: 0; }
.cr-passrow > .bet-spot { flex: 1; }
.cr-passrow > .bet-spot.odds { flex: 0 0 clamp(70px, 8cqw, 110px); border-style: dashed !important; }
.bet-spot.cr.pass { border-radius: 10px 10px 40px 40px; }
.bet-spot.cr.pass .bs-label { font-size: clamp(24px, 3cqw, 46px); letter-spacing: 8px; font-family: Georgia, serif; }
/* center proposition box */
.cr-props { background: rgba(0, 0, 0, .22); border: 2px solid rgba(255, 210, 120, .5); border-radius: 14px; padding: 7px; display: flex; flex-direction: column; gap: 5px; min-height: 0; overflow: auto; }
.cr-props > .bet-spot, .cr-props > div:not(.cr-props-t) { flex: 1; }
.cr-props-t { flex: none !important; font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; color: rgba(255, 210, 120, .85); font-weight: 800; text-align: center; }
.cr-grid2, .cr-grid3, .cr-grid4 { display: grid; gap: 5px; }
.cr-grid2 { grid-template-columns: 1fr 1fr; }
.cr-grid3 { grid-template-columns: 1fr 1fr 1fr; }
.cr-grid4 { grid-template-columns: repeat(4, 1fr); }
.bet-spot.cr.prop { min-height: 40px; height: 100%; border-color: rgba(255, 120, 120, .65) !important; border-radius: 8px; }
.bet-spot.cr.prop .bs-label { font-size: 12px; }
.bet-spot.cr.prop .bs-sub { font-size: 10px; opacity: .85; }
.bet-spot.cr.prop.seven { background: rgba(200, 30, 40, .25); }
.bet-spot.cr.prop.seven .bs-label { font-size: clamp(16px, 1.7cqw, 24px); letter-spacing: 6px; color: #ff8a8a; font-family: Georgia, serif; }
.bet-spot.cr.prop.anyc .bs-label { letter-spacing: 3px; color: #ff8a8a; }
.bet-spot.cr.side { min-height: 44px; height: 100%; border-color: rgba(244, 194, 91, .6) !important; border-style: dashed !important; }
.bet-spot.cr.fire { background: linear-gradient(90deg, rgba(255, 120, 40, .2), transparent); }
.roll-hist { display: flex; gap: 3px; flex-wrap: wrap; max-width: 460px; }
.rh { width: 26px; height: 26px; border-radius: 6px; background: var(--panel3); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; }
.rh.seven { background: var(--red); color: #200; }
.rh.co { box-shadow: inset 0 -2px 0 var(--gold); }
.rh.nr { opacity: .45; text-decoration: line-through; }

/* ===== Roulette ===== */
.rl-felt { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.rl-felt .felt-decor.rl-decor { left: 62%; top: 26%; width: min(34cqh, 24cqw); }
.rl-top { display: flex; gap: 24px; align-items: center; }
.rl-zoomchk { align-self: flex-start; background: rgba(0, 0, 0, .25); }
.rl-wheel-wrap { position: relative; width: clamp(220px, min(45cqh, 36cqw), 500px); aspect-ratio: 1; flex: none; transition: transform .48s cubic-bezier(.3, .7, .3, 1); transform-origin: 50% 50%; }
.rl-wheel-wrap.zoomed { z-index: 26; }
.rl-wheel-wrap.zoomed .rl-wheel { box-shadow: 0 30px 80px rgba(0, 0, 0, .8), 0 0 0 4px rgba(244, 194, 91, .35); }
body.ap-fast .rl-wheel-wrap { transition-duration: .12s; }
.rl-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), rgba(0, 0, 0, .78)); opacity: 0; pointer-events: none; transition: opacity .45s; z-index: 25; border-radius: inherit; }
.rl-shade.on { opacity: 1; }
.placard.rl-pays { flex: none; align-self: flex-start; }
@container (max-width: 980px) { .placard.rl-pays { display: none; } }
.rl-wheel { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 12px 34px rgba(0, 0, 0, .65); }
.rl-pointer { position: absolute; top: -8px; left: 50%; margin-left: -9px; border: 9px solid transparent; border-top: 16px solid var(--gold); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.rl-result { position: absolute; inset: 0; margin: auto; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 900; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .35s cubic-bezier(.2, 1.5, .4, 1); border: 3px solid #fff; pointer-events: none; color: #fff; box-shadow: 0 0 30px rgba(0, 0, 0, .7); }
.rl-result.show { opacity: 1; transform: scale(1); }
.rl-result.red { background: #c9283a; }
.rl-result.black { background: #15181d; }
.rl-result.green { background: #119a4f; }
.rl-side { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rl-hist { display: flex; gap: 4px; flex-wrap: wrap; min-height: 32px; }
.rl-wheelinfo { font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.rh-n { min-width: 30px; height: 30px; padding: 0 4px; border-radius: 6px; display: inline-grid; place-items: center; font-weight: 800; font-size: 12.5px; color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.rh-n.red { background: #c9283a; }
.rh-n.black { background: #15181d; }
.rh-n.green { background: #119a4f; }
.rh-n.last { box-shadow: 0 0 0 2px var(--gold); transform: scale(1.12); }
.rh-n.sm { min-width: 22px; height: 20px; font-size: 11px; margin-left: 4px; }
.rl-calls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rl-calls-t { font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; color: rgba(255, 255, 255, .7); font-weight: 700; width: 100%; }
.rl-nb { display: inline-flex; gap: 4px; align-items: center; }
.rl-nb select { padding: 7px 8px; }
.rl-board { --rlh: clamp(46px, calc((53cqh - 50px) / 4.7), 92px); display: flex; align-items: flex-start; user-select: none; margin: 0 auto 6px; width: 100%; max-width: 1200px; }
.rl-zeros, .rl-cols { display: flex; flex-direction: column; width: 7%; height: calc(var(--rlh) * 3); flex: none; }
.rl-zeros .bet-spot, .rl-cols .bet-spot { flex: 1; }
.rl-zeros .bet-spot.rl-num { border-radius: 40px 0 0 40px; }
.rl-zeros.z2 .bet-spot.rl-num:first-child, .rl-zeros.z3 .bet-spot.rl-num:first-child { border-radius: 40px 0 0 0; }
.rl-zeros.z2 .bet-spot.rl-num:last-child, .rl-zeros.z3 .bet-spot.rl-num:last-child { border-radius: 0 0 0 40px; }
.rl-zeros.z3 .bet-spot.rl-num:nth-child(2) { border-radius: 0; }
.rl-nozero { flex: 1; display: grid; place-items: center; color: rgba(255, 255, 255, .4); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 30px 0 0 30px; }
.rl-center { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rl-numwrap { position: relative; }
.rl-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(3, var(--rlh)); }
.bet-spot.rl-num, .bet-spot.rl-out { border-radius: 0; border: 1px solid rgba(255, 255, 255, .55); }
.bet-spot.rl-num .bs-label { font-size: clamp(16px, 1.4vw, 22px); color: #fff; letter-spacing: 0; font-weight: 800; }
.bet-spot.rl-num.red { background: #ad1f2e; }
.bet-spot.rl-num.black { background: #15171c; }
.bet-spot.rl-num.green { background: #0f8a46; }
.bet-spot.rl-num.absent { background: repeating-linear-gradient(45deg, #2a2f38 0 6px, #22262d 6px 12px); opacity: .5; cursor: not-allowed; }
.bet-spot.rl-num:hover { filter: brightness(1.25); }
.bet-spot.rl-num .chip-stack { transform: scale(.8); }
.bet-spot.rl-num.cover { box-shadow: inset 0 0 0 3px var(--gold); filter: brightness(1.35); z-index: 1; }
.bet-spot.rl-num[data-net]::after { content: attr(data-net); position: absolute; top: 2px; right: 3px; font-size: 10px; font-weight: 800; z-index: 3; pointer-events: none; }
.bet-spot.rl-num.mapwin { box-shadow: inset 0 -5px 0 var(--green); }
.bet-spot.rl-num.mapwin::after { color: #8dffbf; }
.bet-spot.rl-num.maplose::after { color: #ffb0b8; opacity: .8; }
.bet-spot.rl-num.maplose { box-shadow: inset 0 -5px 0 rgba(255, 95, 109, .55); }
.bet-spot.rl-num.mapeven { box-shadow: inset 0 -5px 0 var(--blue); }
.bet-spot.prison { box-shadow: inset 0 0 0 3px var(--orange) !important; }
.bet-spot.prison::before { content: '⛓ prison'; position: absolute; top: 2px; left: 4px; font-size: 9px; font-weight: 800; color: var(--orange); z-index: 4; }
.rl-cols .bet-spot { font-size: 11px; }
.bet-spot.rl-out { height: calc(var(--rlh) * .82); }
.bet-spot.rl-out .bs-label { font-size: 13px; }
.bet-spot.rl-out .chip-stack { transform: scale(.8); }
.rl-dozens { display: grid; grid-template-columns: repeat(3, 1fr); }
.rl-evens { display: grid; grid-template-columns: repeat(6, 1fr); }
.diamond { display: inline-block; width: 32px; height: 20px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); vertical-align: middle; }
.diamond.red { background: #d02a3c; }
.diamond.black { background: #0c0d10; box-shadow: inset 0 0 0 2px #fff; }
.rl-hot-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bet-spot.rl-hot { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); border: 0; border-radius: 50%; width: 22px; height: 22px; background: transparent; }
.bet-spot.rl-hot.hs, .bet-spot.rl-hot.st { width: 38px; height: 18px; border-radius: 9px; }
.bet-spot.rl-hot.vs { width: 18px; height: 34px; border-radius: 9px; }
.bet-spot.rl-hot:hover { background: rgba(244, 194, 91, .6); }
.bet-spot.rl-hot .chip-stack { transform: scale(.55); }
.bet-spot.rl-hot .bs-amt { display: none; }
.bet-spot.rl-hot.has-bet { z-index: 3; }

/* ===== Video Poker ===== */
.vp-felt { display: flex; align-items: center; justify-content: center; --felt1: #16244a; --felt2: #090f22; }
.vp-screen { width: 100%; max-width: 1080px; background: linear-gradient(180deg, #0c1c64, #061040); border: 3px solid #2f52d8; border-radius: 16px; padding: 14px 18px; box-shadow: 0 0 44px rgba(47, 82, 216, .45), inset 0 0 30px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 12px; }
.vp-paytable { display: grid; gap: 1px; background: rgba(244, 194, 91, .3); border: 2px solid #f4c25b; border-radius: 8px; overflow: hidden; font-family: var(--mono); }
.vp-pt-row { display: grid; grid-template-columns: 1.9fr repeat(5, 1fr); background: #0c1c64; }
.vp-pt-row span { padding: 2px 9px; font-size: clamp(12px, 1vw, 14.5px); font-weight: 700; color: #ffe27a; }
.vp-pt-v { text-align: right; }
.vp-pt-v.cur { background: #b81d2d; color: #fff; }
.vp-pt-row.hit span { background: #ffe27a; color: #0c1c64; animation: blink .45s 6; }
@keyframes blink { 50% { filter: brightness(1.5); } }
.vp-status { text-align: center; color: #fff; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 16px; min-height: 20px; }
.vp-cards { display: flex; justify-content: center; gap: 14px; --cw: clamp(96px, min(11cqw, calc((100cqh - 420px) / 1.42)), 170px); }
.vp-felt { overflow: auto; }
.vp-screen.multi { max-width: 1300px; gap: 8px; }
.vp-screen.multi .vp-cards { --cw: clamp(78px, min(8cqw, 15cqh), 128px); }
.vp-screen.multi .vp-paytable .vp-pt-row span { padding: 1px 9px; }
.vp-multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(182px, 1fr)); gap: 4px 6px; max-height: min(38cqh, 420px); overflow-y: auto; padding: 2px; }
.vp-multi:empty { display: none; }
.vp-screen[data-hands="3"] .vp-multi, .vp-screen[data-hands="5"] .vp-multi { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.vp-screen[data-hands="3"] .mc, .vp-screen[data-hands="5"] .mc { min-width: 34px; height: 42px; font-size: 15px; }
.vp-mini { display: flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(47, 82, 216, .55); border-radius: 7px; padding: 3px 5px; min-width: 0; }
.vp-mini.win { border-color: #ffe27a; background: rgba(255, 226, 122, .12); }
.vp-mini.big { box-shadow: 0 0 0 2px #ffe27a, 0 0 14px rgba(255, 226, 122, .5); }
.mcards { display: flex; gap: 2px; }
.mc { display: inline-grid; place-items: center; min-width: 21px; height: 27px; padding: 0 1px; border-radius: 3px; background: #fff; color: #1b1f27; font-size: 11px; font-weight: 800; letter-spacing: -.5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.mc.red { color: #d3263a; } .mc.blue { color: #1f63c8; } .mc.green { color: #138a4a; } .mc.purple { color: #7a3fd0; } .mc.orange { color: #d26a00; }
.mc.h { box-shadow: 0 0 0 2px var(--teal); }
.mc.back { background: repeating-linear-gradient(45deg, #8e1c2a 0 3px, #a82535 3px 6px); border: 1.5px solid #eee; }
.mres { font-family: var(--mono); font-size: 10.5px; font-weight: 800; color: rgba(255, 226, 122, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mres.win { color: #ffe27a; }
.vp-slot { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; border-radius: 12px; padding: 4px 4px 2px; transition: transform .15s; }
.vp-slot:hover { transform: translateY(-3px); }
.vp-slot.held .card { transform: translateY(-6px); }
.vp-held { font-weight: 900; letter-spacing: 2px; color: #ffe27a; visibility: hidden; font-size: 15px; text-shadow: 0 0 10px #ffe27a; }
.vp-slot.held .vp-held { visibility: visible; }
.vp-slot.opt { outline: 2px dashed rgba(47, 212, 196, .75); outline-offset: 1px; }
.vp-ev { font-size: 11.5px; color: var(--teal); font-weight: 800; min-height: 15px; }
.vp-hold-btn { width: 100%; justify-content: center; background: #ffe27a !important; color: #0c1c64 !important; border-color: #c9a830 !important; font-weight: 850; }
.vp-slot.held .vp-hold-btn { background: #b81d2d !important; color: #fff !important; }
.vp-meter { display: flex; justify-content: space-between; font-family: var(--mono); color: #ffe27a; font-size: 14px; flex-wrap: wrap; gap: 8px; }
.vp-meter b { color: #fff; }
.vp-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.vp-edit-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--border); border-radius: 9px; padding: 5px 8px; color: #d4dce8; font-size: 13px; }
.vp-edit-row.extra { border-style: dashed; color: var(--muted); }
.vp-edit-row input { width: 80px; }

/* ===== Poker Odds Lab ===== */
.pl { display: grid; grid-template-columns: minmax(0, 1fr) var(--odds-w); height: 100%; }
.pl-left { overflow-y: auto; padding: 12px 16px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pl-right { min-height: 0; }
.pl-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.pl-felt { background: radial-gradient(ellipse at 50% 30%, var(--felt1), var(--felt2) 80%); border: 0; box-shadow: inset 0 0 0 6px #3b2413, inset 0 0 40px rgba(0, 0, 0, .5); padding: 18px 22px; }
.pl-board { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.pl-deckinfo { margin-left: auto; text-align: right; color: #fff; }
.pl-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: rgba(255, 255, 255, .75); font-weight: 750; margin-bottom: 6px; }
.pl-lbl.dark { color: var(--muted); margin-bottom: 0; }
.pl-sel { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.pl-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.pl-felt .pl-hint { color: rgba(255, 255, 255, .55); }
.pl-card-row { display: flex; gap: 8px; }
.pl-slot { --cw: 58px; width: var(--cw); height: calc(var(--cw) * 1.42); border-radius: 7px; border: 2px dashed rgba(255, 255, 255, .35); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, transform .15s; background: rgba(0, 0, 0, .15); }
.pl-slot:hover { border-color: var(--gold); transform: translateY(-2px); }
.pl-slot.filled { border: 0; background: none; }
.pl-slot .card { --cw: 58px; }
.pl-q { font-size: 15px; font-weight: 800; color: rgba(255, 255, 255, .45); }
/* drag & drop card palette */
.pl-slot { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.pl-slot.filled { cursor: grab; }
.pl .pl-slot.soft { border-color: var(--border2); opacity: .75; }
.pl .pl-slot.next { border-color: rgba(244, 194, 91, .85); animation: pl-next 1.4s ease-in-out infinite; }
.pl .pl-slot.active { border-style: solid; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 194, 91, .35); opacity: 1; }
.pl .pl-slot.over { border-style: solid; border-color: var(--gold); background: rgba(244, 194, 91, .28); transform: scale(1.1); opacity: 1; }
.pl .pl-slot.filled.over { background: rgba(244, 194, 91, .28); border: 2px solid var(--gold); }
.pl .pl-slot.dragging { opacity: .3; }
@keyframes pl-next { 50% { box-shadow: 0 0 0 4px rgba(244, 194, 91, .22); } }
.pl-x { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--border2); background: #222c3a; color: #fff; font-size: 10px; line-height: 1; cursor: pointer; display: none; z-index: 2; }
.pl-x:hover { background: var(--red); }
.pl-slot:hover .pl-x { display: block; }
@media (hover: none) { .pl-slot.filled .pl-x { display: block; } }
.pl-palette { position: sticky; top: 0; z-index: 30; flex-shrink: 0; background: var(--panel); border: 1px solid var(--border2); border-radius: 14px; padding: 8px 12px 10px; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); transition: border-color .15s, box-shadow .15s, background .15s; }
.pl-palette.over { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 95, 109, .4), 0 8px 22px rgba(0, 0, 0, .45); background: #2a1a20; }
.pl-palette.over::after { content: 'Drop here to remove the card'; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: #ffd0d5; background: rgba(42, 26, 32, .82); border-radius: 14px; pointer-events: none; }
.pal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pal-head .spacer { flex: 1; }
.pal-grid { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.pal-row { display: flex; gap: 4px; }
.pal-card { position: relative; flex: 1 1 0; min-width: 0; max-width: 48px; height: 40px; border-radius: 6px; background: #f4f5f7; border: 1px solid #c9ced8; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-weight: 800; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .1s, box-shadow .1s; }
.pal-card b { font-size: 14px; } .pal-card i { font-style: normal; font-size: 13px; }
.pal-card small { position: absolute; top: 1px; right: 2px; font-size: 8px; font-weight: 700; color: #667; }
.pal-card.red { color: #d3263a; } .pal-card.blk { color: #1b1f27; } .pal-card.blue { color: #1f63c8; } .pal-card.green { color: #138a4a; } .pal-card.purple { color: #7a3fd0; } .pal-card.orange { color: #d26a00; }
.pal-card:hover:not(.used):not(.ghost), .pal-card:focus-visible { transform: translateY(-3px); box-shadow: 0 5px 12px rgba(0, 0, 0, .45); outline: 2px solid var(--gold); }
.pal-card.used { opacity: .16; cursor: not-allowed; }
.pal-card.ghost { position: fixed; left: 0; top: 0; z-index: 10000; width: 50px; max-width: none; height: 70px; pointer-events: none; cursor: grabbing; box-shadow: 0 12px 28px rgba(0, 0, 0, .6); outline: 2px solid var(--gold); }
.pal-card.ghost b { font-size: 20px; } .pal-card.ghost i { font-size: 20px; }
.pal-hint { margin-top: 8px; }
.pal-hint.warn { color: var(--red); font-weight: 700; }
.pl-palette.closed { padding-bottom: 8px; }
body.pl-dragging, body.pl-dragging * { cursor: grabbing !important; user-select: none !important; }
.pl-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.pl-player.wide { grid-column: span 2; }
.pl-player.is-hero { border-color: rgba(244, 194, 91, .55); box-shadow: 0 0 0 1px rgba(244, 194, 91, .25); }
.pl-phead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pl-phead .spacer { flex: 1; }
.pl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.pl-count { font-size: 11.5px; color: var(--muted); flex-basis: 100%; margin-top: -2px; }
.pl-count.err { color: var(--red); }
.pl-pbody { display: flex; flex-direction: column; gap: 6px; }
.pl-pbody .pl-slot { border-color: var(--border2); }
.pl-contains { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.pl-range { display: flex; gap: 6px; }
.pl-range input { flex: 1; }
.pl-add { border: 2px dashed var(--border2); background: transparent; color: var(--muted); border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer; min-height: 80px; }
.pl-add:hover { border-color: var(--gold); color: var(--gold); }
.pl-settings { display: flex; flex-direction: column; gap: 8px; }
.pl-set-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pl-set-row .spacer { flex: 1; }
.pl-status { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-status b { color: var(--text); }
.pl-dash { display: flex; flex-direction: column; gap: 12px; }
.pl-answer .rec-detail { font-size: 14.5px; line-height: 1.55; color: var(--text); }
.pl-eq { display: flex; flex-direction: column; gap: 4px; }
.pl-eq-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; gap: 8px; }
.pl-big-v { font-size: 22px; font-weight: 850; font-variant-numeric: tabular-nums; }
.pl-eq-bar { display: flex; height: 12px; background: var(--panel3); border-radius: 6px; overflow: hidden; }
.pl-eq.big .pl-eq-bar { height: 16px; border-radius: 8px; }
.pl-eq-bar .w { height: 100%; transition: width .25s; }
.pl-eq-bar .t { height: 100%; background: repeating-linear-gradient(45deg, #8d9bb0 0 4px, #5f6d82 4px 8px); transition: width .25s; }
.pl-eq-sub { font-size: 11.5px; color: var(--muted); }
.pl-conv-wrap { display: flex; flex-direction: column; gap: 6px; }
.pl-conv { width: 100%; height: 120px; display: block; background: #0c1119; border: 1px solid var(--border); border-radius: 10px; }
.pl-filter { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.pl-f-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pl-f-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pl-f-rel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #c7d1de; margin-top: 4px; }
.fchips { display: flex; gap: 4px; flex-wrap: wrap; }
.fchip { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--border2); background: var(--panel3); color: #c7d1de; font-weight: 800; font-size: 13px; cursor: pointer; }
.fchip:hover { border-color: var(--gold); }
.fchip.on { background: var(--gold); color: #2a1d00; border-color: var(--gold); }
.fchips.suits .fchip { font-size: 16px; min-width: 34px; }
.fchip.red { color: #ff6b7d; } .fchip.blue { color: #7cb7ff; } .fchip.green { color: #5fe0a0; } .fchip.purple { color: #c3a3ff; } .fchip.orange { color: #ffb36b; }
.fchip.on.red, .fchip.on.blue, .fchip.on.green, .fchip.on.purple, .fchip.on.orange, .fchip.on.blk { color: #2a1d00; }
.fquick { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.fq { font-size: 11.5px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.fq:hover { color: var(--text); border-color: #4a5d7a; }
.otable.compact td, .otable.compact th { padding: 3px 4px; font-size: 11.5px; }
.picker { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.pk { padding: 9px 0; border-radius: 6px; border: 1px solid var(--border2); background: #f4f5f7; font-weight: 800; font-size: 13.5px; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.pk small { font-size: 9px; color: #667; }
.pk.red { color: #d3263a; } .pk.blk { color: #1b1f27; } .pk.blue { color: #1f63c8; } .pk.green { color: #138a4a; } .pk.purple { color: #7a3fd0; } .pk.orange { color: #d26a00; }
.pk:hover:not(:disabled) { outline: 2px solid var(--gold); }
.pk.cur { outline: 3px solid var(--gold); }
.pk:disabled { opacity: .2; cursor: not-allowed; }
.picker-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.picker-foot .spacer { flex: 1; }
.rg { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; user-select: none; margin: 10px 0; }
.rg-c { font-size: 11px; font-weight: 750; text-align: center; padding: 7px 0; border-radius: 4px; cursor: pointer; background: var(--panel3); color: var(--muted); }
.rg-c.pair { background: #2a3546; }
.rg-c.suited { background: #1e2a3a; }
.rg-c.on { background: var(--gold); color: #2a1d00; }
.rg-c.on.suited { background: #f0b544; }
.rg-c.on.off { background: #e09d2c; }
.rg-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.rg-count { font-size: 12px; color: var(--muted); }
.nc-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; }
.nc { border-radius: 4px; padding: 3px 0; text-align: center; display: flex; flex-direction: column; font-size: 10px; line-height: 1.15; }
.nc b { font-size: 10.5px; }
.nc.red b { color: #ffe0e4; }
.nc small { color: rgba(255, 255, 255, .85); font-size: 9.5px; }
.nc.used { background: var(--panel3); opacity: .35; }

/* ===== Pre-Flop All-In Win Table (Poker Odds Lab) ===== */
.pl-preflop { display: flex; flex-direction: column; gap: 10px; }
.pf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pf-title { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: .2px; }
.pf-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.pf-seg-btn { border: 0; background: transparent; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 7px; cursor: pointer; transition: background .12s, color .12s; white-space: nowrap; }
.pf-seg-btn:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.pf-seg-btn.on { background: linear-gradient(180deg, rgba(244, 194, 91, .28), rgba(244, 194, 91, .12)); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(244, 194, 91, .45); }
.pf-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); background: #0c1119; padding: 6px; }
.pf-table { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; min-width: 720px; font-variant-numeric: tabular-nums; }
.pf-table th { font-size: 12px; font-weight: 850; color: var(--muted); text-align: center; padding: 5px 2px; border-radius: 5px; background: var(--panel2); user-select: none; transition: background .1s, color .1s; }
.pf-table th.hi { background: rgba(244, 194, 91, .22); color: var(--gold); }
.pf-table th.pf-corner { width: 42px; position: relative; font-size: 8.5px; font-weight: 700; line-height: 1.1; padding: 2px 3px; background: linear-gradient(to bottom left, var(--panel2) 48%, rgba(255, 255, 255, .14) 50%, var(--panel2) 52%); }
.pf-table th.pf-corner .pf-ax-c { display: block; text-align: right; color: #8d9bb0; }
.pf-table th.pf-corner .pf-ax-r { display: block; text-align: left; color: #8d9bb0; margin-top: 2px; }
.pf-cell { text-align: center; padding: 4px 1px; border-radius: 5px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .06); transition: transform .08s, box-shadow .08s, border-color .08s; user-select: none; }
.pf-cell.pair { border-color: rgba(244, 194, 91, .32); }
.pf-cell.suited { border-color: rgba(89, 168, 255, .18); }
.pf-cell:hover { transform: scale(1.06); z-index: 2; position: relative; border-color: var(--gold); box-shadow: 0 4px 14px rgba(0, 0, 0, .55), 0 0 0 1px var(--gold); }
.pf-h { display: block; font-size: 10px; font-weight: 750; color: rgba(255, 255, 255, .68); line-height: 1.1; }
.pf-cell.pair .pf-h { color: var(--gold); }
.pf-cell.suited .pf-h { color: #a9d0ff; }
.pf-v { display: block; font-size: 11px; font-weight: 800; color: #f4f7fb; line-height: 1.25; margin-top: 1px; letter-spacing: -.2px; }
.pf-foot { display: flex; flex-direction: column; gap: 6px; }
.pf-detail { font-size: 12.5px; color: var(--text); background: var(--panel2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-variant-numeric: tabular-nums; }
.pf-detail b.gold { color: var(--gold); }
.pf-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--muted); }
.pf-leg-item { display: inline-flex; align-items: center; gap: 5px; }
.pf-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .25); background: var(--panel3); }
.pf-sw.pair { border-color: var(--gold); background: rgba(244, 194, 91, .25); }
.pf-sw.suited { border-color: #59a8ff; background: rgba(89, 168, 255, .22); }
.pf-sw.off { border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); }

/* ===== Workshop ===== */
.ws { display: flex; flex-direction: column; height: 100%; padding: 12px 14px 0; gap: 10px; }
.ws-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-head .spacer { flex: 1; }
.ws-tabs { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.ws-tab { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.ws-tab:hover { color: var(--text); background: var(--panel2); }
.ws-tab.on { background: linear-gradient(180deg, rgba(244, 194, 91, .25), rgba(244, 194, 91, .1)); color: var(--gold); }
.ws-ti { font-size: 16px; }
.ws-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr) var(--odds-w); gap: 12px; }
.ws-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ws-side-head { display: flex; justify-content: space-between; align-items: center; }
.ws-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; }
.ws-item { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.ws-item:hover { border-color: #4a5d7a; }
.ws-item.on { border-color: var(--gold); background: linear-gradient(135deg, rgba(244, 194, 91, .12), var(--panel)); }
.ws-item-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ws-item-d { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.ws-editor { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; min-height: 0; }
.ws-ed-head { display: flex; gap: 8px; align-items: center; }
.ws-name { font-size: 18px; font-weight: 800; flex: 1; max-width: 520px; }
.ws-presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.ws-use { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; background: linear-gradient(135deg, rgba(53, 208, 127, .12), var(--panel)); border: 1px solid rgba(53, 208, 127, .35); border-radius: 12px; padding: 8px 10px; }
.ws-analysis { border-radius: 14px; border: 1px solid var(--border); margin-bottom: 12px; }
.ws-matrix { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px; overflow-x: auto; }
.deck-mx { border-collapse: separate; border-spacing: 3px; margin: 0 auto; }
.deck-mx th { font-size: 13px; padding: 3px 6px; color: #c7d1de; user-select: none; }
.deck-mx th small { display: block; font-size: 9px; color: var(--muted); font-weight: 600; }
.deck-mx th.sh { font-size: 19px; min-width: 54px; }
.deck-mx th.sh.off { opacity: .35; }
.deck-mx th.red, .deck-mx td.red { color: #ff6b7d; } .deck-mx th.blue, .deck-mx td.blue { color: #7cb7ff; } .deck-mx th.green, .deck-mx td.green { color: #5fe0a0; } .deck-mx th.purple, .deck-mx td.purple { color: #c3a3ff; } .deck-mx th.orange, .deck-mx td.orange { color: #ffb36b; }
.deck-mx td { width: 54px; height: 30px; text-align: center; border-radius: 6px; background: var(--panel3); font-weight: 800; font-size: 13px; user-select: none; }
.deck-mx td.c0 { background: #121822; color: var(--dim); }
.deck-mx td.c2 { background: #3a3220; }
.deck-mx td.c3 { background: #4d3a12; }
.deck-mx td.sum { background: transparent; color: var(--muted); font-weight: 700; }
.deck-mx.edit td:not(.sum), .deck-mx.edit th.rh, .deck-mx.edit th.sh { cursor: pointer; }
.deck-mx.edit td:not(.sum):hover { outline: 2px solid var(--gold); }
.deck-mx th.rh { font-size: 15px; font-weight: 850; }
.deck-mx.edit.rm td:not(.sum):hover { outline-color: #ff5f6d; }
.ws-mode { display: flex; gap: 6px; align-items: center; justify-content: center; }
.ws-mode-btn { min-width: 92px; justify-content: center; font-size: 14px; font-weight: 800; }
.ws-mode-btn.on { background: rgba(95, 224, 160, .18); border-color: #5fe0a0; color: #c9f7df; }
.ws-mode-btn.rm.on { background: rgba(255, 95, 109, .2); border-color: #ff5f6d; color: #ffc2c8; }
.ws-count { text-align: center; color: var(--muted); margin-top: 8px; font-size: 13px; }
.ws-count b { color: var(--text); }
.ws-faces { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.ws-face { display: flex; align-items: center; gap: 14px; padding: 4px 6px; border-radius: 10px; background: var(--panel2); }
.ws-face label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.ws-face input { width: 90px; }
.ws-face-p { margin-left: auto; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.ws-face-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ws-wheel { display: flex; gap: 6px; background: #0e5a33; border-radius: 12px; padding: 10px; box-shadow: inset 0 0 0 4px #3b2413; }
.wp-zeros { display: flex; flex-direction: column; gap: 3px; width: 7%; min-width: 52px; }
.wp-zeros .wp { flex: 1; }
.wp-nums { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.wp { border: 1px solid rgba(255, 255, 255, .5); border-radius: 6px; color: #fff; font-weight: 800; font-size: 15px; min-height: 46px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.wp small { font-size: 10px; color: var(--gold); }
.wp.red { background: #ad1f2e; } .wp.black { background: #15171c; } .wp.green { background: #0f8a46; }
.wp.off { background: repeating-linear-gradient(45deg, #2a2f38 0 6px, #22262d 6px 12px); opacity: .45; }
.wp.sel { outline: 3px solid var(--gold); z-index: 1; }
.ws-pocket-detail { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
.ws-pd { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ws-pd input { width: 90px; }
.ws-pays { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ws-pays-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }
.ws-pays-grid label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #c7d1de; font-size: 13px; }
.ws-pays-grid input { width: 72px; }
.ws-rank { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.ws-rank-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 100px 90px 90px 130px; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--panel2); font-variant-numeric: tabular-nums; font-size: 13px; }
.ws-rank-row.head { background: transparent; font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.ws-rank-row small { display: block; color: var(--muted); font-size: 11px; }
.ws-rank-row.off { opacity: .45; }
.ws-rank-row.inv { box-shadow: inset 3px 0 0 var(--orange); background: rgba(255, 159, 67, .1); }
.ws-rk { font-weight: 850; color: var(--gold); text-align: center; }
.ws-rank-btns { display: flex; gap: 2px; align-items: center; justify-content: flex-end; }
@media (max-width: 1400px) { .ws-body { grid-template-columns: 240px minmax(0, 1fr); } .ws-analysis { grid-column: 1 / -1; } .ws { overflow-y: auto; } .ws-body { min-height: auto; } }

@media (max-width: 1050px) { .pl { grid-template-columns: 1fr; height: auto; } .pl-left { overflow: visible; } .pl-player.wide { grid-column: auto; } .bj-chart-grid { grid-template-columns: 1fr; } .ws-body { grid-template-columns: 1fr; } }

/* ---------- Set the outcome (rig) ---------- */
.rig-btn.armed { background: linear-gradient(180deg, rgba(47, 212, 196, .3), rgba(47, 212, 196, .12)); border-color: var(--teal); color: #c9fff8; box-shadow: 0 0 12px rgba(47, 212, 196, .35); }
.rig-modal { display: flex; flex-direction: column; gap: 12px; }
.rig-modal .rf-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rig-slots { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.rig-group { display: flex; flex-direction: column; gap: 5px; }
.rig-gl { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.rig-cells { display: flex; gap: 6px; flex-wrap: wrap; }
.rig-slot { position: relative; width: 62px; height: 74px; border-radius: 8px; border: 2px dashed var(--border2); background: var(--panel); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; font-family: inherit; }
.rig-slot small { font-size: 10px; color: var(--muted); line-height: 1.1; text-align: center; }
.rig-slot b { font-size: 20px; font-weight: 800; }
.rig-slot.set { border-style: solid; background: #fff; }
.rig-slot.set small { color: #56607a; }
.rig-slot.set b { color: #1b1f27; }
.rig-slot.set b.red { color: #d3263a; } .rig-slot.set b.blue { color: #1f63c8; } .rig-slot.set b.green { color: #138a4a; } .rig-slot.set b.purple { color: #7a3fd0; } .rig-slot.set b.orange { color: #d26a00; }
.rig-slot.active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47, 212, 196, .35); }
.rig-x { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-style: normal; font-size: 13px; line-height: 18px; text-align: center; cursor: pointer; }
.rig-quickrow { display: flex; gap: 8px; }
.rig-quick { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--border2); border-radius: 8px; color: var(--text); padding: 8px 10px; font-family: var(--mono); font-size: 13px; }
.rig-grid { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.rig-row { display: flex; gap: 4px; }
.rig-card { position: relative; flex: 0 0 auto; width: 42px; height: 50px; border-radius: 6px; border: 1px solid #c9ced8; background: #fff; color: #1b1f27; font-weight: 800; font-size: 14px; cursor: pointer; padding: 0; font-family: inherit; }
.rig-card.red { color: #d3263a; } .rig-card.blue { color: #1f63c8; } .rig-card.green { color: #138a4a; } .rig-card.purple { color: #7a3fd0; } .rig-card.orange { color: #d26a00; }
.rig-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--teal); }
.rig-card:disabled { opacity: .22; cursor: not-allowed; }
.rig-card.none { visibility: hidden; }
.rig-card sup { position: absolute; top: 1px; right: 3px; font-size: 9px; color: #56607a; }
.rig-rolls { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.rig-roll { display: flex; align-items: center; gap: 8px; }
.rig-roll > b { width: 56px; color: var(--muted); font-size: 12px; }
.rig-sum { width: 40px; font-weight: 800; color: var(--gold); }
.rig-presets { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.rig-presets .btn.red { border-color: rgba(255, 95, 109, .6); }
.rig-seq { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; }
.rig-pockets { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; }
.rig-pk { position: relative; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; color: #fff; font-weight: 800; padding: 7px 6px; cursor: pointer; font-family: inherit; font-size: 13px; background: #2a2f38; }
.rig-pk.red { background: #ad1f2e; } .rig-pk.black { background: #15171c; } .rig-pk.green { background: #0f8a46; }
span.rig-pk { cursor: default; padding-right: 14px; }
button.rig-pk:hover { filter: brightness(1.3); }

/* ---------- Video poker round tally ---------- */
.vp-tally { background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 7px 10px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.vt-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.vt-head > b { color: #ffe27a; letter-spacing: .6px; text-transform: uppercase; }
.vt-head .pos { color: var(--green); } .vt-head .neg { color: var(--red); }
.vt-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.vt-chip { display: inline-flex; align-items: baseline; gap: 5px; background: rgba(47, 82, 216, .45); border: 1px solid rgba(120, 150, 255, .5); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.vt-chip b { color: #ffe27a; }
.vt-chip small { color: #b9c6ff; font-size: 11px; }
.vt-chip.mid { background: rgba(53, 208, 127, .3); border-color: rgba(53, 208, 127, .6); }
.vt-chip.big { background: rgba(244, 194, 91, .35); border-color: var(--gold); }
.vt-chip.none { background: transparent; color: #aab4d4; }
.op-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

/* ---------- Header session reset ---------- */
.wb-reset { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0 2px; line-height: 1; vertical-align: baseline; }
.wb-reset:hover { color: var(--gold); }

/* ===== Texas Hold'em ===== */
.hm-felt { --cw: clamp(28px, min(4.2cqw, 7cqh), 60px); --ch: calc(var(--cw) * 1.42); padding: 0; overflow: hidden; }
.hm-felt .felt-decor { width: min(38cqh, 26cqw); top: 47%; }
.hm-rail { position: absolute; left: 7%; right: 7%; top: 12%; bottom: 12%; border-radius: 50%; border: 2px solid rgba(244, 194, 91, .22); box-shadow: inset 0 0 0 7px rgba(0, 0, 0, .07), inset 0 0 50px rgba(0, 0, 0, .25); pointer-events: none; z-index: 0; }
.hm-center { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.hm-pot { font-size: 14px; color: #fff; background: rgba(0, 0, 0, .45); padding: 3px 12px; border-radius: 14px; min-height: 22px; white-space: nowrap; }
.hm-pot:empty { visibility: hidden; }
.hm-pot b { color: var(--gold); }
.hm-pot span { color: rgba(255, 255, 255, .6); font-size: 12px; }
.hm-board { --cw: clamp(34px, min(6cqw, 10.5cqh), 92px); display: flex; gap: 6px; }
.hm-slot { width: var(--cw); height: calc(var(--cw) * 1.42); border-radius: calc(var(--cw) * .1); border: 1.5px dashed rgba(255, 255, 255, .13); }
.hm-slot:not(:empty) { border-color: transparent; }
.hm-msg { font-size: 12.5px; color: rgba(255, 255, 255, .82); min-height: 18px; font-weight: 650; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.hm-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 2; transition: opacity .2s; }
.hm-seat.you { --cw: clamp(38px, min(5.6cqw, 9.6cqh), 84px); }
.hm-cards { display: flex; min-height: calc(var(--cw) * 1.42); }
.hm-cards .card + .card { margin-left: calc(var(--cw) * -0.28); }
.hm-seat.you .hm-cards .card + .card { margin-left: 4px; }
.card.peek .card-face.front { box-shadow: 0 0 0 2px rgba(89, 168, 255, .7); }
.hm-plate { position: relative; display: flex; align-items: center; gap: 6px; background: rgba(8, 12, 18, .8); border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 4px 9px 4px 6px; min-width: max(118px, calc(var(--cw) * 2.2)); margin-top: -8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); transition: box-shadow .2s, border-color .2s; }
.hm-ava { font-size: 18px; line-height: 1; }
.hm-mood { font-size: 12px; line-height: 1; flex: none; }
.hm-mood:empty { display: none; }
.hm-quip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 6px) scale(.95); background: rgba(14, 20, 30, .94); color: #f6f8fc; border: 1px solid rgba(244, 194, 91, .45); border-radius: 10px; padding: 4px 9px; font-size: 11px; font-weight: 650; line-height: 1.25; max-width: 175px; text-align: center; white-space: normal; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); pointer-events: none; opacity: 0; transition: opacity .22s ease, transform .22s ease; z-index: 6; }
.hm-quip.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hm-quip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: rgba(14, 20, 30, .94); }
.hm-seat.tilted .hm-plate { border-color: rgba(255, 110, 110, .55); }
.hm-seat.heater .hm-plate { border-color: rgba(244, 194, 91, .48); }
.hm-id { display: flex; flex-direction: column; min-width: 0; }
.hm-id b { font-size: 12.5px; white-space: nowrap; }
.hm-id small { font-size: 9.5px; color: var(--muted); white-space: nowrap; letter-spacing: .3px; }
.hm-id small:empty { display: none; }
.hm-stack { margin-left: auto; font-weight: 800; color: var(--gold); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-seat.allin .hm-stack::after { content: ' ALL-IN'; color: var(--red); font-size: 9px; font-weight: 900; }
.hm-pos { position: absolute; top: -9px; right: -6px; font-size: 9.5px; font-weight: 850; background: #e8edf4; color: #111; padding: 1px 5px; border-radius: 6px; letter-spacing: .3px; }
.hm-act { position: absolute; bottom: -19px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: rgba(89, 168, 255, .92); color: #021a33; white-space: nowrap; z-index: 3; }
.hm-act:empty { display: none; }
.hm-act.aggr { background: #ff7d88; color: #2b0006; }
.hm-act.fold { background: rgba(255, 255, 255, .22); color: #e8edf4; }
.hm-desc { position: absolute; bottom: -40px; font-size: 11px; font-weight: 750; background: rgba(0, 0, 0, .75); color: #ffe9b0; padding: 2px 8px; border-radius: 8px; white-space: nowrap; z-index: 3; }
.hm-desc:empty { display: none; }
.hm-seat.you .hm-act { bottom: auto; top: -14px; }
.hm-seat.you .hm-desc { bottom: auto; top: -34px; }
.hm-seat.to-act .hm-plate { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(244, 194, 91, .55); }
.hm-seat.folded { opacity: .42; }
.hm-seat.winner .hm-plate { border-color: var(--green); box-shadow: 0 0 0 2px var(--green), 0 0 24px rgba(53, 208, 127, .5); }
.hm-bet { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 12.5px; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 9px 2px 2px; border-radius: 14px; z-index: 1; transition: opacity .25s; white-space: nowrap; }
.hm-bet .chip { --cs: 22px; }
.hm-bet.collect { opacity: 0; }
.hm-dealer { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: #f6f6f6; color: #111; font-weight: 900; font-size: 12px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .6), inset 0 0 0 2px #ccc; z-index: 1; transition: left .4s, top .4s; }
.hm-info { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hm-info b { color: var(--gold); }
.hm-actions { flex-wrap: nowrap; gap: 5px; }
.hm-actions .btn.xl { min-width: 78px; padding: 0 13px; font-size: 14px; }
.hm-size { position: relative; flex-direction: column; gap: 0; min-height: 44px; padding: 3px 10px; line-height: 1.1; border-radius: 10px; }
.hm-size .hm-sz { font-weight: 800; font-size: 13px; }
.hm-size small { font-size: 10.5px; opacity: .8; }
.hm-size kbd { position: absolute; left: 3px; top: 2px; font-size: 8.5px; padding: 0 3px; }
.hm-size.allin { background: linear-gradient(180deg, #ffa36b, #d8602f); border-color: #b04a20; color: #2b0d00; }
.hm-sizer { display: flex; align-items: center; gap: 5px; }
.hm-range { width: 82px; accent-color: var(--gold); }
.hm-amt { width: 64px; background: var(--panel2); color: var(--text); border: 1px solid var(--border2); border-radius: 7px; padding: 5px 6px; font-size: 12.5px; }
.hm-wait { color: var(--muted); font-size: 13px; }
/* coach panel */
.hm-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 1.5px; margin: 4px 0; }
.hm-gc { font-size: 9.5px; font-weight: 750; text-align: center; padding: 5px 0; border-radius: 3px; color: rgba(255, 255, 255, .93); text-shadow: 0 1px 1px rgba(0, 0, 0, .7); white-space: nowrap; overflow: hidden; cursor: default; }
.hm-gc.me { outline: 2px solid #fff; outline-offset: -1px; box-shadow: 0 0 10px rgba(255, 255, 255, .8); position: relative; z-index: 1; }
.hm-grid.mini { gap: 1px; }
.hm-grid.mini .hm-gc { padding: 0; height: 7px; border-radius: 1px; }
.hm-legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.hm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.hm-ranges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; }
.hm-rng-h { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.hm-rng-h b { color: var(--text); }
.hm-mixbar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; margin: 6px 0; font-size: 10.5px; font-weight: 750; background: var(--panel3); }
.hm-mixbar div { display: flex; align-items: center; justify-content: center; color: #fff; white-space: nowrap; overflow: hidden; }
.hm-grade { display: inline-block; font-size: 11px; font-weight: 850; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.hm-grade.best { background: var(--green); color: #032; }
.hm-grade.good { background: rgba(53, 208, 127, .22); color: #8ff0bd; border: 1px solid rgba(53, 208, 127, .5); }
.hm-grade.inacc { background: rgba(244, 194, 91, .18); color: var(--gold); border: 1px solid rgba(244, 194, 91, .5); }
.hm-grade.mistake { background: rgba(255, 159, 67, .22); color: #ffc08a; border: 1px solid rgba(255, 159, 67, .6); }
.hm-grade.blunder { background: var(--red); color: #2b0006; }
.hm-grades { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.hm-review { font-size: 13px; line-height: 1.6; }
.hm-log { max-height: 280px; overflow: auto; font-size: 12.5px; }
.hm-log-st { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 800; margin: 6px 0 2px; }
.hm-log-st span { text-transform: none; letter-spacing: 0; margin-left: 4px; }
.hm-log-row { padding: 1px 0; }
.hm-log-row.you b { color: var(--teal); }
.hm-why { color: var(--muted); font-size: 11.5px; margin: 0 0 2px 12px; }
/* modals */
.hm-setup { display: flex; flex-direction: column; gap: 10px; }
.hm-setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.hm-setup-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.hm-setup select, .hm-setup input[type=text], .hm-chart-ctl select { background: var(--panel2); color: var(--text); border: 1px solid var(--border2); border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.hm-lineup { display: flex; flex-direction: column; gap: 6px; }
.hm-lu-row { display: grid; grid-template-columns: 44px 130px minmax(0, 1fr) 190px; gap: 8px; align-items: center; }
.hm-lu-row.head { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.hm-lu-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.hm-lu-row select { width: 100%; }
.hm-lu-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hm-lu-tools .spacer { flex: 1; }
.hm-switches { display: flex; flex-direction: column; gap: 8px; }
.hm-chart-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.hm-chart-title { font-weight: 800; margin-bottom: 6px; }
.hm-charts .hm-gc { font-size: 11px; padding: 8px 0; }
.hm-hist { display: flex; flex-direction: column; gap: 6px; }
.hm-hh { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.hm-hh summary { cursor: pointer; font-size: 13px; }
.hm-hh-body { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }

/* Hold'em GTO Tooltips, Tutorials & Training Mode */
.hm-tip-pop { position: fixed; z-index: 2200; max-width: 290px; background: rgba(12, 18, 28, .97); color: #eef3fa; border: 1px solid rgba(244, 194, 91, .5); border-radius: 10px; padding: 9px 11px; box-shadow: 0 12px 32px rgba(0, 0, 0, .65); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease; font-size: 12px; line-height: 1.45; }
.hm-tip-pop.show { opacity: 1; transform: translateY(0); }
.hm-tip-title { font-weight: 800; color: var(--gold); font-size: 12px; margin-bottom: 3px; }
.hm-tip-body { color: #d7e0ec; }
.hm-tip-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(244, 194, 91, .16); border: 1px solid rgba(244, 194, 91, .5); color: var(--gold); font-size: 10px; font-weight: 900; margin-left: 5px; cursor: help; flex: none; vertical-align: middle; }
.hm-tip-dot:hover, .hm-tip-dot:focus { background: rgba(244, 194, 91, .32); outline: none; }
.hm-game.tips-off .hm-tip-dot { display: none; }
.hm-game:not(.tips-off) .hm-pos.hm-has-tip { cursor: help; }
.hm-game:not(.tips-off) .stat-grid > .hm-has-tip { cursor: help; }
.hm-game:not(.tips-off) .stat-grid > .hm-has-tip:hover { border-color: rgba(244, 194, 91, .45); }
.hm-tip-card { background: linear-gradient(135deg, rgba(244, 194, 91, .12), rgba(24, 34, 48, .85)); border: 1px solid rgba(244, 194, 91, .35); border-radius: 12px; padding: 9px 11px; font-size: 12px; line-height: 1.45; }
.hm-tip-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; color: var(--gold); }
.hm-tip-card-b { color: #dbe4f0; }
.hm-tip-hide { background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: var(--muted); border-radius: 6px; padding: 1px 6px; font-size: 10.5px; cursor: pointer; }
.hm-tip-hide:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.hm-welcome-cta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* Training Mode Banner & Debrief */
.hm-train-bar { background: linear-gradient(135deg, rgba(53, 180, 111, .14), rgba(19, 28, 42, .94)); border: 1px solid rgba(53, 208, 127, .42); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.hm-train-bar[hidden] { display: none; }
.hm-tb-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm-tb-badge { font-size: 11px; font-weight: 850; background: rgba(53, 208, 127, .22); color: #8ff0bd; border: 1px solid rgba(53, 208, 127, .5); padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.hm-tb-title { font-size: 13.5px; color: #fff; }
.hm-tb-free { font-size: 11px; color: var(--muted); }
.hm-tb-top .spacer { flex: 1; }
.hm-tb-brief { font-size: 12.5px; color: #dde6f2; line-height: 1.4; }
.hm-tb-hint { font-size: 12px; color: var(--gold); line-height: 1.35; }
.hm-tr-debrief { border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; line-height: 1.45; }
.hm-tr-debrief.pass { background: rgba(53, 208, 127, .12); border: 1px solid rgba(53, 208, 127, .45); }
.hm-tr-debrief.fail { background: rgba(255, 159, 67, .12); border: 1px solid rgba(255, 159, 67, .48); }
.hm-tr-debrief-h { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.hm-tr-debrief-why { color: #dce4f0; }
.hm-tr-debrief-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }

/* Training Mode Picker Modal */
.hm-tr-modal { display: flex; flex-direction: column; gap: 12px; }
.hm-tr-headbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.hm-tr-headbar .spacer { flex: 1; }
.hm-tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hm-tr-card { background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; transition: border-color .15s, transform .12s, background .15s; }
.hm-tr-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.hm-tr-card.done { border-color: rgba(53, 208, 127, .45); background: linear-gradient(135deg, rgba(53, 208, 127, .07), var(--panel2)); }
.hm-tr-card.current { outline: 2px solid var(--gold); }
.hm-tr-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hm-tr-num { font-size: 11px; font-weight: 850; color: var(--muted); }
.hm-tr-cards { margin-left: auto; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, .92); padding: 1px 6px; border-radius: 5px; }
.hm-tr-done { font-size: 11px; font-weight: 800; color: #5fe0a0; }
.hm-tr-title { font-weight: 800; font-size: 14px; color: var(--text); }
.hm-tr-cat { font-size: 11.5px; color: var(--gold); font-weight: 650; }
.hm-tr-brief { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* GTO Tutorials Modal */
.hm-tut-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; min-height: 420px; }
.hm-tut-nav { display: flex; flex-direction: column; gap: 5px; border-right: 1px solid var(--border); padding-right: 12px; }
.hm-tut-prog { font-size: 12px; color: var(--muted); padding: 2px 4px 6px; }
.hm-tut-prog b { color: var(--gold); }
.hm-tut-tab { display: flex; align-items: center; gap: 8px; text-align: left; background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.hm-tut-tab:hover { border-color: #4a5d7a; }
.hm-tut-tab.active { border-color: var(--gold); background: linear-gradient(135deg, rgba(244, 194, 91, .16), var(--panel2)); }
.hm-tut-ic { font-size: 17px; flex: none; }
.hm-tut-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hm-tut-meta b { font-size: 12.5px; line-height: 1.25; }
.hm-tut-meta small { font-size: 10.5px; color: var(--muted); }
.hm-tut-chk { color: #5fe0a0; font-weight: 900; font-size: 13px; flex: none; }
.hm-tut-content { display: flex; flex-direction: column; gap: 10px; }
.hm-tut-head h4 { margin: 5px 0 4px; font-size: 18px; }
.hm-tut-sub { margin: 0; color: var(--muted); font-size: 13px; }
.hm-tut-body { font-size: 13.5px; line-height: 1.6; color: #dbe4f0; display: flex; flex-direction: column; gap: 10px; }
.hm-tut-body p { margin: 0; }
.hm-tut-body code { background: var(--panel3); border: 1px solid var(--border2); border-radius: 4px; padding: 1px 5px; font-size: 12.5px; color: var(--gold); }
.hm-tut-box { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.hm-tut-box ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.hm-tut-formula { background: rgba(89, 168, 255, .1); border: 1px solid rgba(89, 168, 255, .35); border-radius: 10px; padding: 9px 12px; font-weight: 750; color: #a8d4ff; text-align: center; font-size: 13px; }
.hm-tut-takeaway { background: rgba(244, 194, 91, .1); border-left: 3px solid var(--gold); border-radius: 6px; padding: 8px 11px; font-size: 13px; color: #f6e7c4; }
.hm-tut-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.hm-tut-foot .spacer { flex: 1; }
@media (max-width: 820px) { .hm-tut-layout { grid-template-columns: 1fr; } .hm-tut-nav { border-right: 0; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 10px; } }
