/* ---------- shell ---------- */
.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.brand { color: var(--ink); text-decoration: none; }
.topbar { flex-wrap: wrap; }
.topbar .stats small { color: var(--muted); font-size: 12px; }
body.casino-mode .edge-pill { display: none; }
.subbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; max-width: 1100px; width: 100%; margin: 0 auto; }
.subbar .game-name { font-weight: 800; font-size: 15px; letter-spacing: .3px; }
.subbar .spacer { flex: 1; }
.edge-pill { font-size: 12px; color: var(--ink); background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 3px 10px; }
.mini-select { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.mini-select select { font: inherit; color: #1b1b1b; border-radius: 6px; padding: 3px 4px; }
.chip.c1 { background: #f4f1e8; color: #1b1b1b; border-color: rgba(30,30,30,.5); }
.chip.selected { transform: translateY(-5px); box-shadow: 0 0 0 3px var(--gold), 0 6px 10px rgba(0,0,0,.5); }
.btn.small { padding: 5px 12px; min-width: 0; font-size: 13px; }
.history-row { display: flex; gap: 4px; flex-wrap: wrap; }
.hist { min-width: 24px; height: 24px; border-radius: 12px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; color: #fff; }
.hist.red { background: #c0302b; } .hist.black { background: #1c1c1c; } .hist.green { background: #178a3e; }
.coach .tips { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.coach .tips li { margin-bottom: 6px; }
.coach td.warn { color: #ffb0a8; font-weight: 700; } .coach td.good { color: var(--good); font-weight: 700; }
.coach .odds.dark { background: rgba(0,0,0,.25); margin: 8px 0; }
.coach .odds.dark .odds-title { color: var(--muted); font-size: 12px; font-weight: 600; }
.coach .odds.dark .tw { color: var(--good); } .coach .odds.dark .tl { color: #ff9a93; } .coach .odds.dark .tp { color: var(--muted); }
.coach { max-width: 720px; }
.big-num { font-size: 30px; font-weight: 800; }
.puck { display: inline-block; font-size: 10px; font-weight: 800; border-radius: 50%; width: 28px; height: 28px; line-height: 28px; text-align: center; letter-spacing: .3px; }
.puck.on { background: #fff; color: #111; border: 2px solid #111; }
.puck.off { background: #111; color: #fff; border: 2px solid #fff; }

/* ---------- lobby ---------- */
.lobby { max-width: 1100px; margin: 0 auto; padding: 18px 16px 30px; }
.ready-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.ready-item { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; }
.ready-item.is-ready { border-color: var(--good); }
.ri-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 6px; flex-wrap: wrap; }
.ri-top span { color: var(--muted); }
.meter { height: 8px; background: rgba(255,255,255,.15); border-radius: 4px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.is-ready .meter span { background: var(--good); }
.ready-strip.light .ready-item { background: #f0ede3; border-color: #e0dccf; color: #1b1b1b; }
.ready-strip.light .ri-top span { color: #555; }
.ready-strip.light .meter { background: #ddd8c8; }
.edge-board { background: #fbfaf6; color: #1b1b1b; border-radius: 16px; padding: 18px; }
.edge-board h2 { margin: 0 0 6px; }
.edge-board p { font-size: 14px; color: #444; line-height: 1.45; }
.eb { display: grid; gap: 6px; margin: 12px 0; }
.eb-row { display: grid; grid-template-columns: minmax(150px, 260px) 1fr 56px; align-items: center; gap: 10px; font-size: 13px; }
.eb-track { height: 12px; background: #ece8dc; border-radius: 6px; overflow: hidden; }
.eb-bar { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.eb-bar.good { background: #2e9d5b; } .eb-bar.mid { background: #c79a1e; } .eb-bar.bad { background: #c9463f; }
.eb-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.footnote { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }

/* ---------- stats modal ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { background: #ece8dc; border: none; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.tab.on { background: #1e7d44; color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.stat-tile { background: #f0ede3; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.stat-tile span { font-size: 12px; color: #555; } .stat-tile b { font-size: 20px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table th, .stat-table td { padding: 7px 8px; border-bottom: 1px solid #e5e2d8; text-align: right; }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; color: #444; }
.stat-table .up { color: #1e7d44; } .stat-table .down { color: #a8322d; }
.chart-box { position: relative; }
.chart-box svg { width: 100%; height: 200px; display: block; }
.ch-grid { stroke: #e5e2d8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-zero { stroke: #8a8578; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ch-line { fill: none; stroke: #1e7d44; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ch-cross { stroke: #8a8578; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-dot { fill: #1e7d44; stroke: #fbfaf6; stroke-width: 2; }
.ch-axis { font-size: 11px; fill: #666; }
.ch-tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); background: #1b1b1b; color: #fff; border-radius: 6px; padding: 4px 8px; font-size: 12px; pointer-events: none; white-space: nowrap; display: flex; flex-direction: column; }
.ch-tip span { color: #bbb; font-size: 11px; }

/* ---------- roulette ---------- */
.rl-top { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; width: 100%; }
.wheel-wrap { position: relative; width: 210px; height: 210px; }
.wheel-wrap svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
#rlWheelG { transform-origin: 0 0; }
.wheel-ball { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff; opacity: 0; transition: all .25s; border: 3px solid #fff; }
.wheel-ball.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wheel-ball.red { background: #c0302b; } .wheel-ball.black { background: #1c1c1c; } .wheel-ball.green { background: #178a3e; }
.rl-history { max-width: 300px; }
.rl-board-wrap { width: 100%; overflow-x: auto; padding: 8px 2px 14px; }
.rl-board { position: relative; width: 100%; min-width: 620px; max-width: 900px; margin: 0 auto; aspect-ratio: 14 / 5.4; }
.rl-board .cell { position: absolute; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; font-weight: 700; font-size: 14px; font-family: Georgia, serif; display: flex; align-items: center; justify-content: center; padding: 0; }
.rl-board .cell.red { background: rgba(192,48,43,.92); } .rl-board .cell.black { background: rgba(28,28,28,.92); } .rl-board .cell.green { background: rgba(23,138,62,.95); }
.rl-board .cell.out { font-family: inherit; font-size: 12px; background: rgba(0,0,0,.08); }
.rl-board .cell:hover, .rl-board .cell.lit { outline: 3px solid var(--gold); outline-offset: -3px; z-index: 1; }
.diamond { width: 26px; height: 16px; transform: rotate(0); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.diamond.red { background: #c0302b; } .diamond.black { background: #1c1c1c; }
.rl-board .hot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: none; background: transparent; z-index: 3; padding: 0; }
.rl-board .hot:hover { background: rgba(242,201,76,.75); }
.chip-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.table-chip { position: absolute; transform: translate(-50%, -50%); min-width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; border: 3px dashed rgba(255,255,255,.85); box-shadow: 0 2px 4px rgba(0,0,0,.6); padding: 0 2px; }
.table-chip.inline { position: static; transform: none; display: inline-flex; margin: 2px; border-radius: 13px; padding: 0 6px; }
.table-chip.c1 { background: #f4f1e8; color: #1b1b1b; border-color: rgba(0,0,0,.4); } .table-chip.c5 { background: #c0392b; } .table-chip.c25 { background: #1e8449; } .table-chip.c100 { background: #222; } .table-chip.c500 { background: #6c3483; }

/* ---------- craps ---------- */
.cr-top { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.dice { display: flex; gap: 12px; }
.die { width: 54px; height: 54px; background: #fff; border-radius: 10px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 7px; box-shadow: 0 3px 6px rgba(0,0,0,.5); }
.die span { display: block; margin: auto; width: 9px; height: 9px; border-radius: 50%; }
.die span.pip-on { background: #b3261e; }
.dice.rolling .die { animation: shake .16s linear infinite; }
@keyframes shake { 0% { transform: rotate(-12deg) translateY(-3px); } 50% { transform: rotate(10deg) translateY(2px); } 100% { transform: rotate(-12deg) translateY(-3px); } }
.cr-status { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cr-board { display: grid; grid-template-columns: 1fr 260px; gap: 12px; width: 100%; max-width: 1000px; }
.cr-main { display: flex; flex-direction: column; gap: 6px; }
.cr-row { display: flex; gap: 6px; }
.cr-board button { background: rgba(0,0,0,.12); color: #fff; border: 2px solid rgba(255,255,255,.6); border-radius: 8px; padding: 8px; font-weight: 800; letter-spacing: .5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; min-height: 54px; }
.cr-board button:hover { border-color: var(--gold); background: rgba(242,201,76,.08); }
.cr-board button small { font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.cr-points .cr-num, .cr-points .cr-dc { flex: 1; min-height: 86px; }
.cr-num .num { font-size: 22px; font-family: Georgia, serif; }
.cr-num.is-point { border-color: #fff; background: rgba(255,255,255,.1); }
.cr-num .puck { position: absolute; top: -10px; right: -6px; }
.cr-dc .puck { position: absolute; top: -10px; right: -6px; }
.stack-row { display: flex; flex-wrap: wrap; justify-content: center; }
.cr-come { width: 100%; min-height: 60px; font-size: 18px; }
.cr-field { width: 100%; color: #ffe08a !important; }
.cr-line > button:first-child { flex: 1; }
.cr-pass { min-height: 60px !important; font-size: 18px; }
.cr-odds { width: 130px; flex: none; }
.cr-odds.disabled { opacity: .35; }
.cr-center { background: rgba(0,0,0,.2); border-radius: 10px; padding: 8px; }
.cr-props { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cr-prop { min-height: 50px !important; font-size: 13px; }
.cr-prop.wide { grid-column: span 2; }
.roll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; margin: 8px 0 4px; }
.rg { background: rgba(0,0,0,.25); border-radius: 6px; padding: 4px; text-align: center; font-size: 12px; display: flex; flex-direction: column; }
.rg b { font-size: 15px; } .rg small { color: var(--muted); font-size: 10px; }
.rg.up span { color: var(--good); font-weight: 700; } .rg.down span { color: #ff9a93; font-weight: 700; }

/* ---------- hold'em ---------- */
.he-board { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 80px; background: rgba(0,0,0,.14); border: 2px solid rgba(255,255,255,.08); min-width: min(560px, 100%); }
.he-pot { font-weight: 800; color: var(--gold); min-height: 20px; }
.he-community { gap: 6px; }
.he-community .card + .card { margin-left: 0; }
.card.slot { background: transparent; border: 2px dashed rgba(255,255,255,.18); box-shadow: none; }
.he-log { font-size: 13px; color: var(--muted); min-height: 18px; text-align: center; }
.he-seats { gap: 10px; }
.seat.he { min-width: 108px; transition: opacity .2s; }
.seat.he .hand .card + .card { margin-left: -16px; }
.seat.he.folded { opacity: .45; }
.seat.he.turn { box-shadow: 0 0 0 2px var(--gold); }
.seat.he.winner { border-color: var(--good); }
.seat.he.you { order: 99; flex-basis: 100%; max-width: 300px; margin: 6px auto 0; }
.card.sm { --card-w: 40px; --card-h: 56px; width: 40px; height: 56px; }
.card.sm .corner { font-size: 12px; } .card.sm .corner small { font-size: 10px; } .card.sm .pip { font-size: 18px; } .card.sm.face .pip { inset: 6px 5px 6px 15px; } .card.sm .br { display: none; }
.dealer-btn { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #111; font-size: 10px; font-weight: 800; align-items: center; justify-content: center; vertical-align: middle; letter-spacing: 0; }
.raise-box { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 160px; }
.raise-box input { width: 100%; accent-color: var(--gold); }
.raise-presets { display: flex; gap: 10px; }
ol.ranks li { margin-bottom: 4px; }

@media (max-width: 760px) {
  .cr-board { grid-template-columns: 1fr; }
  .cr-num .num { font-size: 16px; }
  .cr-points .cr-num, .cr-points .cr-dc { min-height: 70px; padding: 4px 2px; }
  .cr-points .cr-dc span { font-size: 10px; }
  .eb-row { grid-template-columns: 1fr 70px 50px; }
  .wheel-wrap { width: 170px; height: 170px; }
  .topbar nav .icon-btn { padding: 5px 8px; }
}

/* fairness tab & backup */
.stat-table .warn { color: #b0521c; font-weight: 700; }
.stat-table.fair { margin-bottom: 6px; }
.stat-table.fair td small { display: block; font-size: 11px; font-weight: 400; }
#modal .muted { color: #8a877d; }
.btn-line { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { cursor: pointer; }

/* drills */
.drill-head { display: flex; gap: 14px; font-size: 13px; color: #6f6b60; margin: -4px 0 6px; }
.drill-head span:first-child { font-weight: 700; color: #0f6b3a; margin-right: auto; }
.drill-table { display: flex; flex-wrap: wrap; gap: 18px 28px; background: radial-gradient(ellipse at 50% 30%, #17844a, #0b5530); border-radius: 12px; padding: 14px 18px; margin: 10px 0 12px; }
.drill-table small { display: block; color: #cfe6d6; font-size: 12px; margin-bottom: 6px; }
.drill-table .hand { display: flex; gap: 6px; min-height: 0; }
#modalFoot [data-ans] { min-width: 96px; }


/* ---------- lobby: casino floor ---------- */
:root { --brass: #d4a944; --brass-dark: #9c7624; --ivory: #fbf7ec; --chip-red: #c8352e; --deep: #083d22; }
.marquee { position: relative; margin: 6px auto 0; max-width: 620px; text-align: center; padding: 30px 24px 26px;
  background: linear-gradient(180deg, #1d140c, #120c07); border: 3px solid var(--brass); border-radius: 18px;
  box-shadow: inset 0 0 0 6px #120c07, inset 0 0 0 8px var(--brass-dark), 0 18px 40px rgba(0,0,0,.35); }
.marquee h1 { font-family: "Limelight", "Didot", "Bodoni 72", Georgia, serif; font-weight: 400; font-size: clamp(40px, 7vw, 66px); line-height: 1; margin: 0;
  color: #ffe9a8; letter-spacing: 1px; text-shadow: 0 0 6px rgba(255,214,120,.75), 0 0 22px rgba(255,170,60,.45); }
.marquee-sub { margin: 10px 0 0; color: #e8d3a0; font-size: 16px; letter-spacing: .3px; }
.bulbs { position: absolute; left: 18px; right: 18px; display: flex; justify-content: space-between; }
.bulbs.top { top: 9px; } .bulbs.bottom { bottom: 9px; }
.bulbs i { width: 7px; height: 7px; border-radius: 50%; background: #ffe7a0; box-shadow: 0 0 6px 1px rgba(255,210,110,.85); }
@media (prefers-reduced-motion: no-preference) {
  .bulbs i { animation: bulb-on .9s ease-out both; animation-delay: calc(var(--i) * 45ms); }
  @keyframes bulb-on { 0% { background: #5a4a2a; box-shadow: none; } 60% { background: #fff6d0; box-shadow: 0 0 10px 3px rgba(255,220,130,1); } 100% { background: #ffe7a0; } }
}
.lobby-intro { max-width: 640px; margin: 16px auto 22px; text-align: center; color: var(--muted); line-height: 1.55; font-size: 15px; }
.lobby-intro b { color: var(--ink); }

.floor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.table-door { display: flex; flex-direction: column; text-decoration: none; color: #2a241a; background: var(--ivory); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 24px rgba(0,0,0,.28); transition: transform .15s ease, box-shadow .15s ease; }
.table-door:hover, .table-door:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.36); }
.table-door:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.td-felt { background: radial-gradient(ellipse at 50% 40%, #17844a, var(--deep)); border-bottom: 4px solid var(--brass); height: 118px; display: grid; place-items: center; }
.td-felt svg { width: 150px; height: 112px; }
.td-body { padding: 14px 16px 6px; flex: 1; }
.td-body h2 { margin: 0 0 6px; font-size: 21px; color: #14110b; }
.td-body p { margin: 0; font-size: 14px; line-height: 1.45; color: #4d463a; }
.td-foot { padding: 10px 16px 14px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.placard { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 10px; border-radius: 6px; background: linear-gradient(180deg, #e9c766, #b98c2c); color: #2b1f07; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(0,0,0,.25); }
.placard small { font-size: 10.5px; line-height: 1.2; }
.placard b { font-size: 17px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.td-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: #7b7365; text-align: right; }
.placard b, .td-go { white-space: nowrap; }
.td-go { background: var(--chip-red); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }

/* emblems */
.em-card { fill: #fffdf6; stroke: #cfc6b0; stroke-width: 1.2; }
.em-ink, .em-red { font: 700 15px Georgia, serif; } .em-ink { fill: #1b1b1b; } .em-red { fill: var(--chip-red); }
.em-big { font-size: 22px; } .em-sm { font-size: 12px; }
.em-rim { fill: #5a3a1c; stroke: var(--brass); stroke-width: 3; }
.em-redfill { fill: var(--chip-red); } .em-blackfill { fill: #1b1b1b; } .em-green { fill: #1d9a52; }
.em-felt { fill: #3a2614; stroke: var(--brass-dark); stroke-width: 1.5; }
.em-brass { fill: var(--brass); } .em-spoke { stroke: var(--brass); stroke-width: 2.5; stroke-linecap: round; }
.em-ball { fill: #fff; stroke: #bbb; }
.em-die { fill: #f6f1e4; stroke: #c9bfa6; stroke-width: 1.2; } .em-pip { fill: var(--chip-red); }
.em-chip { fill: var(--chip-red); stroke: #8e211c; stroke-width: 1.2; }
.em-chipshadow { fill: rgba(0,0,0,.28); }
.em-chipedge { fill: #fbf7ec; }
.em-chipring { fill: none; stroke: rgba(251,247,236,.85); stroke-width: 1.3; stroke-dasharray: 2.6 2.4; }
.em-chipcenter { fill: #b52d27; stroke: rgba(251,247,236,.5); stroke-width: .8; }

/* players club + practice */
.club-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 26px; }
.club-card { position: relative; border-radius: 16px; padding: 18px 20px 14px; color: #f6ecd2; overflow: hidden;
  background: linear-gradient(135deg, #2b1e10 0%, #3b2914 55%, #241809 100%); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.club-card::before { content: ""; position: absolute; left: 0; right: 0; top: 54px; height: 6px; background: linear-gradient(90deg, var(--brass-dark), #f1d17a, var(--brass-dark)); opacity: .85; }
.club-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.club-name { font-family: "Limelight", Georgia, serif; font-size: 22px; color: #f1d17a; }
.club-bank { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.club-q { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; } .club-q span { font-size: 13px; color: #d9c59a; }
.club-meter { margin-bottom: 12px; }
.club-meter > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 5px; flex-wrap: wrap; }
.club-meter span { color: #d9c59a; }
.club-card .meter { background: rgba(255,255,255,.12); }
.club-card .meter span { background: linear-gradient(90deg, var(--brass-dark), #f1d17a); }
.club-card .is-ready .meter span { background: var(--good); }
.club-foot { display: flex; gap: 16px; align-items: center; font-size: 13px; color: #d9c59a; border-top: 1px solid rgba(241,209,122,.25); padding-top: 10px; flex-wrap: wrap; }
.club-foot b { color: #f6ecd2; }
.club-foot .link { margin-left: auto; color: #f1d17a; }
.practice { background: var(--ivory); color: #2a241a; border-radius: 16px; padding: 18px 20px; box-shadow: 0 10px 24px rgba(0,0,0,.22); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.practice h2 { margin: 0 0 4px; font-size: 20px; color: #14110b; }
.practice p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #4d463a; }
.practice .fair-link { margin: auto 0 0; padding-top: 10px; font-size: 13px; color: #7b7365; }
.practice .link { color: #0f6b3a; font-weight: 700; }

.edge-board { background: var(--ivory); border-top: 4px solid var(--brass); }

@media (max-width: 860px) { .floor { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .club-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .floor { grid-template-columns: 1fr; } .td-felt { height: 100px; } .marquee { padding: 26px 16px 22px; } }
/* dialogs that bring their own buttons drop the generic "Got it" */
#modal:has(.modal-foot .btn) > form { display: none; }
.modal-foot:has(.btn) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.modal-foot .link { color: #0f6b3a; font-weight: 600; margin-right: auto; order: -1; }
#modal .drill-table .hand .card + .card { margin-left: 0 !important; }
.guides-link { text-align: center; font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.guides-link a { color: #ffe9a8; font-weight: 700; }

/* mode switch info + pending state */
.mode-wrap { position: relative; display: flex; align-items: center; gap: 6px; }
.mode-info { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--muted); font: italic 700 11px/16px Georgia, serif; }
.mode-info:hover, .mode-info:focus-visible { color: var(--ink); border-color: var(--ink); }
.mode-tip { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: 260px; padding: 10px 12px; border-radius: 10px; background: #fbf7ec; color: #2a241a; font-size: 13px; line-height: 1.45; box-shadow: 0 8px 22px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .12s, transform .12s, visibility .12s; }
.mode-info:hover + .mode-tip, .mode-info:focus-visible + .mode-tip, .mode-wrap.show-tip .mode-tip { opacity: 1; visibility: visible; transform: none; }

/* coach on/off switch */
.coach-switch { display: inline-flex; align-items: center; gap: 7px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 10px 4px 12px; color: var(--ink); font-size: 13px; font-weight: 700; }
.coach-switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cs-track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.22); transition: background .15s; }
.cs-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); transition: transform .15s; }
.coach-switch.on .cs-track { background: var(--gold); }
.coach-switch.on .cs-knob { transform: translateX(14px); }
.cs-state { min-width: 22px; text-align: left; color: var(--muted); font-weight: 600; }
.coach-switch.pending .cs-track { box-shadow: 0 0 0 2px var(--gold); }
@media (prefers-reduced-motion: no-preference) { .coach-switch.pending .cs-track { animation: pend 1.2s ease-in-out infinite; } @keyframes pend { 50% { box-shadow: 0 0 0 2px transparent; } } }

/* ---------- chips on the table ---------- */
.chip-stack { display: inline-flex; align-items: flex-end; gap: 6px; vertical-align: bottom; }
.cs-pile { position: relative; width: 30px; display: inline-block; }
.chip-stack .sc { position: absolute; left: 0; width: 30px; height: 16px; border-radius: 50%;
  border: 2.5px dashed rgba(255,255,255,.92); box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 0 0 3px rgba(0,0,0,.14); }
.chip-stack.small .cs-pile { width: 22px; }
.chip-stack.small .sc { width: 22px; height: 12px; border-width: 2px; }
.sc.c1, .fly-chip.c1 { background: #f4f1e8; border-color: rgba(30,30,30,.45); }
.sc.c5, .fly-chip.c5 { background: #c0392b; } .sc.c25, .fly-chip.c25 { background: #1e8449; }
.sc.c100, .fly-chip.c100 { background: #222; } .sc.c500, .fly-chip.c500 { background: #6c3483; }
.cs-amt { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; padding-bottom: 4px; white-space: nowrap; }
.chip-stack.small .cs-amt { font-size: 12px; color: var(--muted); }
.fly-chip { position: fixed; z-index: 60; width: 30px; height: 30px; border-radius: 50%; pointer-events: none;
  border: 3px dashed rgba(255,255,255,.9); box-shadow: 0 6px 10px rgba(0,0,0,.45); }
@media (prefers-reduced-motion: no-preference) {
  .cs-pile.land { animation: pile-bump .22s ease-out both; animation-delay: .32s; }
  @keyframes pile-bump { 0% { transform: none; } 45% { transform: translateY(2px) scaleY(.94); } 100% { transform: none; } }
  @keyframes chip-land { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: none; } }
  .table-chip.land { animation: tchip-land .26s ease-out both; animation-delay: .3s; }
  @keyframes tchip-land { 0% { opacity: 0; transform: translate(-50%, -70%); } 100% { opacity: 1; transform: translate(-50%, -50%); } }
  .table-chip.inline.land { animation-name: chip-land; }
}
/* blackjack betting circle */
.bet-spot { margin: 10px auto 2px; width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(242,201,76,.55); display: grid; place-items: center; position: relative; }
.bet-spot { margin-bottom: 18px; }
.bet-spot .chip-stack { position: absolute; left: 50%; top: 50%; transform: translate(-15px, -50%); }
.bet-spot .cs-amt { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); }
.bet-spot.empty::after { content: "Bet"; font-size: 12px; color: rgba(242,201,76,.6); }
.hand-stack { margin-top: 6px; min-height: 30px; }
.seat.bot .hand-stack { min-height: 22px; }
/* hold'em seat bets + pot */
.he-betstack { margin-top: 4px; min-height: 22px; }
.he-potstack { display: flex; justify-content: center; margin-bottom: 4px; min-height: 30px; }
.em-tag { font: 700 13px Georgia, serif; fill: #f1d17a; }
.em-shoe { fill: #5a3a1c; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; }
.em-shoetop { fill: #3a2614; stroke: var(--brass-dark); stroke-width: 1.5; }
.em-slot { fill: #1b120a; }
.em-shoebase { fill: var(--brass-dark); }

/* ---------- Three Card Poker ---------- */
.hand.spread .card + .card { margin-left: 6px; }
.tc-player { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 10px; }
.tc-spots { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.tc-spot { width: 86px; height: 86px; border-radius: 50%; border: 2px solid rgba(242,201,76,.55); background: rgba(0,0,0,.12); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; font: inherit; cursor: pointer; position: relative; }
.tc-spot.main { width: 96px; height: 96px; border-width: 3px; }
.tc-spot.off { border-style: dashed; border-color: rgba(255,255,255,.25); cursor: default; }
.tc-spot:not(.off):hover { background: rgba(242,201,76,.08); }
.tc-spot:focus-visible, .bac-spot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tc-name { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(242,201,76,.85); font-weight: 700; }
.tc-spot.off .tc-name { color: var(--muted); }
.tc-stack:empty { display: none; }
.tc-result, .bac-result { min-height: 30px; display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center; margin-top: 8px; font-size: 14px; }
.tc-line { padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.3); }
.tc-line.win { color: var(--good); } .tc-line.lose { color: #ff9a93; } .tc-line.push { color: var(--muted); }
.tc-net { font-weight: 800; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.45); }
.tc-net.win { color: var(--good); } .tc-net.lose { color: #ff9a93; }
.tc-note { width: 100%; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Baccarat ---------- */
.bac-hands { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; width: 100%; }
.bac-side { display: flex; flex-direction: column; align-items: center; min-width: 200px; }
.bac-side .hand .card.third { margin-left: 14px !important; box-shadow: 0 0 0 2px rgba(242,201,76,.55), 0 2px 6px rgba(0,0,0,.4); }
.bac-result { width: 100%; }
.bac-head { font-size: 17px; width: 100%; text-align: center; }
.bac-head.player { color: #9ec5ff; } .bac-head.banker { color: #ff9a93; } .bac-head.tie { color: var(--good); }
.bac-layout { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 10px; width: 100%; max-width: 560px; margin: 12px auto 6px; }
.bac-spot { min-height: 96px; border-radius: 14px; border: 2px solid rgba(242,201,76,.5); background: rgba(0,0,0,.14); color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; padding: 8px 4px; transition: background .15s; }
.bac-spot b { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.bac-spot small { font-size: 11px; color: var(--muted); }
.bac-spot.player b { color: #9ec5ff; } .bac-spot.banker b { color: #ff9a93; } .bac-spot.tie b { color: var(--good); }
.bac-spot:hover { background: rgba(242,201,76,.08); }
.bac-spot.won { background: rgba(242,201,76,.16); border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242,201,76,.35); }
.bac-stack { min-height: 18px; }
.bac-road { width: 100%; max-width: 560px; margin: 6px auto 0; }
.hist.bac-P { background: #2b5ea8; } .hist.bac-B { background: #b2352e; } .hist.bac-T { background: #178a3e; }
.muted-road { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) {
  .tc-spot { width: 72px; height: 72px; } .tc-spot.main { width: 80px; height: 80px; }
  .bac-hands { gap: 10px; } .bac-side { min-width: 0; }
  .bac-spot { min-height: 82px; } .bac-spot b { font-size: 14px; }
}
/* Net by game */
.net-game td.ng-ret { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ng-bar { position: relative; width: 80px; height: 10px; flex: none; }
.ng-bar::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: #bdb8a8; }
.ng-fill { position: absolute; top: 1px; height: 8px; border-radius: 4px; }
.ng-fill.up { background: #1e7d44; } .ng-fill.down { background: #a8322d; }
.net-game td.ng-ret span:last-child { min-width: 52px; }
@media (max-width: 520px) { .ng-bar { display: none; } .net-game th, .net-game td { padding: 6px 4px; font-size: 13px; } }
/* What your play costs */
.stat-tile .up { color: #1e7d44; } .stat-tile .down { color: #a8322d; }
.cost-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: #e5e2d8; margin: 4px 0 6px; }
.cost-bar span { display: block; height: 100%; }
.cb-edge { background: #6b6658; } .cb-mis { background: #c0302b; }
.cost-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #444; }
.cost-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.real-cost { display: grid; gap: 2px; background: #f0ede3; border-left: 4px solid var(--gold); border-radius: 8px; padding: 10px 14px; margin-top: 10px; }
.real-cost span { font-size: 12px; color: #555; } .real-cost b { font-size: 20px; } .real-cost small { font-size: 13px; color: #555; }
/* Side bets, exposed: lobby strip */
.sb-strip { display: grid; grid-template-columns: 1.2fr 1.6fr auto; gap: 18px; align-items: center; margin: -8px 0 26px; padding: 18px 22px; border-radius: 16px; color: #f6ecd2;
  background: linear-gradient(135deg, #3a0f0c 0%, #5a1a14 60%, #2e0b08 100%); box-shadow: 0 10px 24px rgba(0,0,0,.3); border: 1px solid rgba(241,209,122,.35); }
.sb-strip h2 { font-family: "Limelight", Georgia, serif; font-weight: 400; font-size: 22px; color: #f1d17a; margin: 0 0 4px; }
.sb-strip p { margin: 0; font-size: 14px; color: #e6d3b0; }
.sb-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sb-strip li { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: rgba(0,0,0,.25); }
.sb-strip li b { font-size: 22px; font-variant-numeric: tabular-nums; color: #ffb0a8; }
.sb-strip li span { font-size: 12px; color: #e6d3b0; }
@media (max-width: 860px) { .sb-strip { grid-template-columns: 1fr; } }
/* Side bet cards (in the dialog) */
.sb-game { margin-top: 18px; }
.sb-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sb-card { background: #f0ede3; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.sb-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sb-card h3 { margin: 0; font-size: 17px; }
.sb-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.sb-tag.ok { background: #d7ecdc; color: #1e6b3a; } .sb-tag.warn { background: #f6e3c4; color: #8a4e10; } .sb-tag.bad { background: #f3d2ce; color: #8f2620; }
.sb-big { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.sb-big b { font-size: 28px; font-variant-numeric: tabular-nums; }
.sb-big span { font-size: 12px; color: #555; line-height: 1.3; }
.sb-row { display: grid; grid-template-columns: 118px 1fr 52px; gap: 8px; align-items: center; font-size: 12px; margin: 3px 0; }
.sb-lab { color: #555; } .sb-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.sb-track { height: 8px; border-radius: 4px; background: #e2ddd0; overflow: hidden; }
.sb-fill { display: block; height: 100%; border-radius: 4px; }
.sb-fill.main { background: #6b6658; } .sb-fill.ok { background: #1e7d44; } .sb-fill.warn { background: #c27a1c; } .sb-fill.bad { background: #b2352e; }
.sb-card p { margin: 8px 0 0; line-height: 1.45; }
.sb-card details { margin-top: 8px; } .sb-card summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.sb-card .stat-table { font-size: 13px; margin-top: 4px; }

/* ---------- The Daily: its own room, midnight instead of felt ---------- */
.daily-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 0 0 22px; padding: 16px 22px; border-radius: 16px; text-decoration: none; color: #e8ecf6;
  background: radial-gradient(120% 140% at 0% 0%, #23345e 0%, #121c36 55%, #0b1226 100%); border: 1px solid rgba(241,209,122,.45); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.daily-banner:hover { border-color: #f1d17a; }
.db-title { display: flex; flex-direction: column; line-height: 1; }
.db-title span { font-family: "Limelight", Georgia, serif; font-size: 24px; color: #f1d17a; }
.db-title b { font-size: 13px; letter-spacing: 1px; color: #9fb0d6; margin-top: 6px; }
.daily-banner p { margin: 0; font-size: 15px; color: #c9d3ea; } .daily-banner p b { color: #fff; }
.db-side { display: flex; align-items: center; gap: 14px; }
.db-streak { font-size: 13px; color: #9fb0d6; } .db-streak b { font-size: 20px; color: #f1d17a; margin-right: 3px; }
@media (max-width: 700px) { .daily-banner { grid-template-columns: 1fr; gap: 10px; } }

/* The midnight color goes on the page itself, so long results never scroll onto green felt. */
body.in-daily { background: radial-gradient(130% 70% at 50% 0%, #1d2b52 0%, #101a33 55%, #0a1022 100%) fixed; }
body.in-daily .topbar { background: rgba(5, 9, 20, .55); }
.daily-view { color: #e8ecf6; }
.dy-room { width: 100%; max-width: 760px; margin: 0 auto; padding: 22px 16px 40px; }
.dy-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.dy-kicker { font-family: "Limelight", Georgia, serif; color: #f1d17a; font-size: 18px; }
.dy-head h1 { margin: 2px 0; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.dy-date { color: #9fb0d6; font-size: 14px; }
.dy-streak { text-align: center; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(241,209,122,.4); }
.dy-streak b { display: block; font-size: 26px; color: #f1d17a; line-height: 1; } .dy-streak span { font-size: 12px; color: #9fb0d6; }
.dy-pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-bottom: 14px; }
.dy-pip { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.dy-pip.done { background: #f1d17a; } .dy-pip.now { background: rgba(241,209,122,.45); }
.dy-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 20px; }
.dy-num { font-size: 12px; color: #9fb0d6; letter-spacing: 1px; }
.dy-q { font-size: 20px; font-weight: 700; margin: 4px 0 14px; }
.dy-table { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
.dy-table small { display: block; text-align: center; color: #9fb0d6; margin-bottom: 6px; font-size: 13px; }
.dy-fine { text-align: center; color: #9fb0d6; font-size: 14px; margin: 12px 0 0; }
.dy-answers { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.dy-answers .btn { min-width: 110px; }
.dy-bets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dy-bet { background: rgba(255,255,255,.06); border: 1px solid rgba(241,209,122,.35); color: #e8ecf6; border-radius: 12px; padding: 18px 12px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.dy-bet b { font-size: 16px; } .dy-bet small { color: #9fb0d6; }
.dy-bet:hover, .dy-bet:focus-visible { border-color: #f1d17a; background: rgba(241,209,122,.08); outline: none; }
.dy-room .locked { background: #f1d17a !important; color: #1b1b1b !important; }
.dy-coach { text-align: center; font-size: 12px; color: #7f8fb5; margin: 14px 0 0; }
.dy-intro .dy-lede { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.dy-rules { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dy-rules li { background: rgba(255,255,255,.05); border-radius: 10px; padding: 10px 12px; color: #c9d3ea; }
.dy-rules b { color: #f1d17a; font-size: 18px; margin-right: 6px; }
.dy-note { color: #9fb0d6; font-size: 14px; line-height: 1.5; }
.dy-go { margin-top: 6px; }
.dy-score { display: flex; gap: 18px; align-items: center; }
.dy-score > b { font-size: 64px; line-height: 1; color: #f1d17a; font-variant-numeric: tabular-nums; } .dy-score > b small { font-size: 24px; color: #9fb0d6; }
.dy-score p { margin: 0 0 4px; font-size: 16px; } .dy-cost { color: #9fb0d6; font-size: 14px !important; } .dy-cost b { color: #fff; }
.dy-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 16px 0; }
.dy-strip span { height: 14px; border-radius: 4px; } .dy-strip .ok { background: #3fae6a; } .dy-strip .miss { background: #d0574e; }
.dy-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .dy-next { color: #9fb0d6; font-size: 14px; }
.dy-h2 { font-size: 15px; color: #9fb0d6; font-weight: 600; margin: 24px 0 8px; }
.dy-review { display: grid; gap: 6px; }
.dy-rev { background: rgba(255,255,255,.05); border-radius: 10px; padding: 0 14px; border-left: 4px solid #3fae6a; } .dy-rev.miss { border-left-color: #d0574e; }
.dy-rev summary { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none; }
.dy-rev summary::-webkit-details-marker { display: none; }
.dy-mark { font-size: 12px; font-weight: 700; color: #3fae6a; } .dy-rev.miss .dy-mark { color: #ff9a93; }
.dy-rc { color: #ff9a93; font-variant-numeric: tabular-nums; font-size: 13px; }
.dy-rev p { margin: 0 0 10px; color: #c9d3ea; font-size: 14px; line-height: 1.5; }
.dy-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 340px; }
.dy-day { aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,.05); display: grid; place-items: center; font-size: 11px; color: #7f8fb5; }
.dy-day.s0 { background: #4a2a35; color: #e8ecf6; } .dy-day.s1 { background: #6b5a2a; color: #e8ecf6; } .dy-day.s2 { background: #8a7a30; color: #fff; } .dy-day.s3 { background: #b99a35; color: #1b1b1b; } .dy-day.s4 { background: #f1d17a; color: #1b1b1b; }
.dy-day.today { outline: 2px solid #f1d17a; outline-offset: 1px; }
.dy-stats { color: #9fb0d6; font-size: 13px; }

/* ---------- Counting trainer ---------- */
.ct-strip { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 18px; align-items: center; margin: 0 0 26px; padding: 18px 22px; border-radius: 16px; color: #ecebe4;
  background: linear-gradient(135deg, #1e2422 0%, #2b3330 100%); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.ct-strip h2 { font-family: "Limelight", Georgia, serif; font-weight: 400; font-size: 22px; color: #f1d17a; margin: 0 0 4px; }
.ct-strip p { margin: 0; font-size: 14px; color: #c8c6bb; }
.ct-strip-tags { display: flex; gap: 8px; } .ct-strip-tags span { flex: 1; text-align: center; background: rgba(0,0,0,.3); border-radius: 10px; padding: 8px 4px; font-size: 12px; color: #c8c6bb; }
.ct-strip-tags b { display: block; font-size: 20px; color: #fff; }
@media (max-width: 860px) { .ct-strip { grid-template-columns: 1fr; } }
.em-bead-b { fill: #b2352e; stroke: #f1d17a; stroke-width: 1.5; } .em-bead-p { fill: #2b5ea8; stroke: #f1d17a; stroke-width: 1.5; }
.em-bead { font: 700 13px system-ui, sans-serif; fill: #fff; }
.in-daily #coachSwitch, .in-daily #modeInfo { visibility: hidden; }

/* ---------- Counting trainer: the back room ---------- */
body.in-count { background: radial-gradient(ellipse at 50% 0%, #26332d 0%, #151c19 60%, #0e1311 100%) fixed; }
.ct-room { width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px 18px 40px; color: #e9e6da; }
.cr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.cr-kicker { color: #b9b39c; font-size: 13px; }
.cr-head h1 { font-family: "Limelight", Georgia, serif; font-weight: 400; color: #f1d17a; font-size: clamp(26px, 4vw, 36px); margin: 2px 0 0; line-height: 1.1; }
.cr-mastery { min-width: 220px; font-size: 13px; color: #b9b39c; } .cr-mastery b { color: #fff; font-size: 16px; }
.cr-bar, .cr-prog { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 6px; }
.cr-bar i, .cr-prog i { display: block; height: 100%; background: linear-gradient(90deg, #c9a43c, #f1d17a); border-radius: inherit; transition: width .3s; }
.cr-path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.cp-step { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; cursor: pointer; font: inherit; color: #e9e6da;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); position: relative; }
.cp-step:hover { background: rgba(255,255,255,.08); }
.cp-step:focus-visible { outline: 2px solid #f1d17a; outline-offset: 2px; }
.cp-step.on { background: rgba(241,209,122,.12); border-color: #f1d17a; }
.cp-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; border: 1.5px solid rgba(255,255,255,.35); }
.cp-step.on .cp-num { border-color: #f1d17a; color: #f1d17a; }
.cp-step.done .cp-num { background: #2f8a55; border-color: #2f8a55; color: #fff; }
.cp-txt { display: flex; flex-direction: column; min-width: 0; } .cp-name { font-weight: 700; font-size: 14px; line-height: 1.2; } .cp-sub { font-size: 12px; color: #9e9986; }
.cr-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.cr-main { min-width: 0; }
.cr-panel { background: #1d2622; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px 22px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.cr-panel h2 { margin: 0 0 8px; font-size: 21px; color: #fff; } .cr-panel h3 { margin: 18px 0 8px; font-size: 16px; color: #f1d17a; }
.cr-panel p, .cr-panel li { line-height: 1.6; font-size: 15px; color: #d6d2c4; max-width: 68ch; }
.cr-side { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px 18px; font-size: 14px; position: sticky; top: 12px; }
.cr-side h3 { font-size: 13px; color: #b9b39c; font-weight: 600; margin: 14px 0 8px; } .cr-side h3:first-child { margin-top: 0; }
.cr-goals { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cr-goals li { display: flex; gap: 9px; align-items: flex-start; color: #cfcab9; line-height: 1.35; }
.cr-goals li i { flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); }
.cr-goals li.ok { color: #fff; } .cr-goals li.ok i { background: #2f8a55; border-color: #2f8a55; box-shadow: inset 0 0 0 3px #1d2622; }
.cr-dots { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; } .cr-dots i { width: 10px; height: 10px; border-radius: 3px; }
.cr-dots i.y { background: #3fae6a; } .cr-dots i.n { background: #d0574e; }
.cr-kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0; } .cr-kv dt { color: #a9a48f; } .cr-kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cr-tip { font-size: 13px !important; color: #a9a48f !important; line-height: 1.5; }
.cr-by { width: 100%; border-collapse: collapse; font-size: 13px; } .cr-by td { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.06); } .cr-by td:last-child { text-align: right; color: #a9a48f; font-variant-numeric: tabular-nums; }
.cr-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.cr-tags div { background: radial-gradient(ellipse at center, var(--felt) 0%, var(--felt-dark) 100%); border-radius: 12px; padding: 14px 10px; text-align: center; }
.cr-tags b { display: block; font-size: 30px; color: #fff; } .cr-tags span { display: block; font-weight: 700; letter-spacing: .5px; } .cr-tags small { color: var(--muted); font-size: 12px; }
.cr-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .cr-cols h3 { margin-top: 6px; } .cr-cols p { font-size: 14px; }
.cr-seg { display: flex; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; } .cr-seg > span { width: 110px; font-size: 13px; color: #a9a48f; }
.cr-seg > div { display: inline-flex; background: rgba(0,0,0,.3); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.cr-seg button { border: 0; background: none; color: #d6d2c4; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.cr-seg button.on { background: #f1d17a; color: #1b1b1b; font-weight: 700; }
.cr-pad { margin-top: 14px; min-height: 250px; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, var(--felt) 0%, var(--felt-dark) 75%, var(--felt-edge) 100%); box-shadow: inset 0 0 0 6px #3a2716, inset 0 0 0 7px rgba(241,209,122,.4); }
.cr-pad h2 { color: #fff; }
.cr-flash { min-height: var(--card-h); }
.cr-pad .cr-prog { width: min(320px, 80%); }
.cr-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cr-stepper { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 12px; }
.cr-stepper output { min-width: 92px; text-align: center; font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.cr-stepper .btn { width: 52px; height: 52px; font-size: 24px; border-radius: 50%; }
.cr-result { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 14px; background: rgba(63,174,106,.12); border: 1px solid rgba(63,174,106,.5); }
.cr-result.miss { background: rgba(208,87,78,.12); border-color: rgba(208,87,78,.55); }
.cr-result > b { font-size: 46px; font-weight: 800; min-width: 80px; text-align: center; font-variant-numeric: tabular-nums; color: #fff; }
.cr-result h2 { margin: 0 0 4px; } .cr-result p { margin: 0; font-size: 14px; }
.cr-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.cr-replay { margin-top: 16px; } .cr-replay summary { cursor: pointer; font-weight: 600; color: #f1d17a; }
.cr-rvs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cr-rv { display: flex; flex-direction: column; align-items: center; gap: 3px; } .cr-rv .card { margin: 0 !important; } .cr-rv small { font-size: 11px; color: #a9a48f; font-variant-numeric: tabular-nums; }
.cr-tcpad { flex-direction: row; gap: 30px; min-height: 190px; }
.cr-tray { display: flex; gap: 10px; }
.cr-tray > div { width: 46px; height: 140px; border-radius: 6px; background: rgba(0,0,0,.35); position: relative; display: flex; align-items: flex-end; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.cr-tray span { width: 100%; background: repeating-linear-gradient(0deg, #b2352e 0 3px, #8f2620 3px 4px); } .cr-tray span.d { background: repeating-linear-gradient(0deg, #e9e3d2 0 3px, #bdb6a3 3px 4px); }
.cr-tray small { position: absolute; top: 5px; left: 0; right: 0; text-align: center; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; }
.cr-read { display: grid; gap: 14px; text-align: left; } .cr-read small { display: block; color: var(--muted); font-size: 12px; } .cr-read b { font-size: 34px; color: #fff; font-variant-numeric: tabular-nums; }
.cr-units { display: flex; gap: 8px; flex-wrap: wrap; } .cr-units .btn { min-width: 58px; }
.cr-ramp { border-collapse: collapse; margin-top: 14px; font-size: 13px; width: 100%; max-width: 520px; }
.cr-ramp th, .cr-ramp td { border: 1px solid rgba(255,255,255,.12); padding: 6px 8px; text-align: center; } .cr-ramp th { color: #a9a48f; font-weight: 600; text-align: left; }
.cr-ramp td.on { background: #f1d17a; color: #1b1b1b; font-weight: 800; }
.cr-line { padding: 10px 14px; border-radius: 10px; border-left: 4px solid #3fae6a; background: rgba(63,174,106,.1); margin: 12px 0 0; }
.cr-line.miss { border-left-color: #d0574e; background: rgba(208,87,78,.1); }
.cr-edge { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(208,87,78,.12); border: 1px solid rgba(208,87,78,.45); }
.cr-edge.up { background: rgba(63,174,106,.14); border-color: rgba(63,174,106,.55); }
.cr-edge small { grid-column: 1 / -1; color: #a9a48f; font-size: 12px; } .cr-edge b { font-size: 30px; color: #fff; font-variant-numeric: tabular-nums; } .cr-edge span { font-size: 14px; color: #d6d2c4; }
.cr-tcbadge { background: rgba(0,0,0,.4); border-radius: 999px; padding: 6px 16px; font-size: 14px; color: var(--muted); } .cr-tcbadge b { color: #f1d17a; font-size: 20px; margin-left: 4px; }
.cr-pad .dy-table small { color: var(--muted); }
.cr-list { padding-left: 20px; } .cr-list li { margin-bottom: 6px; }
.cr-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); cursor: pointer; margin-top: 14px; }
.cr-toggle input { width: 20px; height: 20px; accent-color: #f1d17a; margin-top: 2px; } .cr-toggle b { display: block; color: #fff; } .cr-toggle small { color: #a9a48f; }
.cr-foot { text-align: center; color: #8d8873; font-size: 12px; margin-top: 18px; }
.cr-panel .stat-table { color: #d6d2c4; } .cr-panel .legend { color: #a9a48f; }
@media (max-width: 900px) { .cr-body { grid-template-columns: 1fr; } .cr-side { position: static; } .cr-path { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; } .cr-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cr-tcpad { flex-direction: column; } .cr-panel { padding: 16px; } .cr-result > b { font-size: 34px; min-width: 56px; } }

/* Count check at the blackjack table */
.cc-panel { width: min(560px, 94vw); margin: 8px auto 0; padding: 14px 16px; border-radius: 14px; background: rgba(10,20,15,.82); border: 1px solid rgba(241,209,122,.45); color: #e9e6da; box-shadow: 0 10px 26px rgba(0,0,0,.35); animation: ccIn .25s ease-out; }
@keyframes ccIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-panel { animation: none; } }
.cc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .cc-top b { color: #f1d17a; } .cc-top small { color: var(--muted); font-size: 12px; }
.cc-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.cc-panel .cr-stepper { margin: 4px 0; } .cc-panel .cr-stepper output { font-size: 34px; min-width: 70px; } .cc-panel .cr-stepper .btn { width: 44px; height: 44px; }
.cc-panel .cr-tray > div { height: 80px; width: 32px; }
.cc-line { font-size: 14px; margin: 8px 0 0; line-height: 1.5; } .cc-line.ok { color: #9be3b4; } .cc-line.miss { color: #ffb3ad; }
.cc-panel .cr-edge { margin-top: 10px; padding: 10px 12px; } .cc-panel .cr-edge b { font-size: 24px; }
.cc-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* casino-ready grid (players club + stats) */
.ready-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.rg-item { background: rgba(0,0,0,.25); border: 1px solid rgba(241,209,122,.18); border-radius: 12px; padding: 10px 11px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rg-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.rg-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-pill { flex: none; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.1); color: #d9c59a; }
.rg-won { display: flex; align-items: baseline; gap: 6px; } .rg-won b { font-size: 24px; font-variant-numeric: tabular-nums; color: #f6ecd2; } .rg-won span { font-size: 12px; color: #d9c59a; }
.rg-item small { font-size: 11px; color: #bfae86; line-height: 1.35; }
.rg-item .meter { height: 6px; }
.rg-ready { border-color: #3fae6a; background: rgba(47,138,85,.22); }
.rg-ready .rg-pill { background: #2f8a55; color: #fff; }
.rg-ready .meter span, .club-card .rg-ready .meter span { background: #3fae6a; }
.rg-work .rg-pill { background: #8a6a1e; color: #fff; }
.ready-grid.light .rg-item { background: #f0ede3; border-color: #e0dccf; color: #1b1b1b; }
.ready-grid.light .rg-won b { color: #1b1b1b; } .ready-grid.light .rg-won span, .ready-grid.light small { color: #5c5547; }
.ready-grid.light .rg-pill { background: #e0dccf; color: #4d463a; } .ready-grid.light .rg-ready { background: #e3f1e8; border-color: #3fae6a; } .ready-grid.light .rg-ready .rg-pill { background: #2f8a55; color: #fff; }
.ready-grid.light .rg-work .rg-pill { background: #f3e3b5; color: #6b4f0e; }
.ready-grid.light .meter { background: #ddd8c8; } .ready-grid.light .meter span { background: #c9a43c; }
.rg-skill.ok { color: #1e6b3a !important; font-weight: 600; }
@media (max-width: 1000px) { .ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The Playbook link band in the lobby */
.pb-band { margin: 4px 0 18px; padding: 18px 0 6px; border-top: 1px solid rgba(241,209,122,.3); }
.pb-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.pb-head h2 { font-family: "Limelight", Georgia, serif; font-weight: 400; font-size: 22px; color: #f1d17a; margin: 0; }
.pb-head p { margin: 0; font-size: 14px; color: var(--muted); }
.pb-all { margin-left: auto; color: #ffe9a8; font-weight: 700; font-size: 14px; }
.pb-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pb-links a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); }
.pb-links a:hover { border-color: #f1d17a; color: #ffe9a8; }
.pb-links a:focus-visible { outline: 2px solid #f1d17a; outline-offset: 2px; }
.fb-text textarea { width: 100%; margin-top: 6px; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid #cfc9b8; resize: vertical; }
.pb-top { text-decoration: none; } @media (max-width: 640px) { .pb-top { display: none; } }

.feedback-line { text-align: center; font-size: 14px; color: var(--ink); margin: 22px 0 0; }
.feedback-line a, .feedback-line .link { color: #ffe9a8; font-weight: 700; }
/* Narrow screens: put the status pill under the game name so names never truncate */
@media (max-width: 560px) {
  .rg-top { flex-wrap: wrap; row-gap: 4px; }
  .rg-top b { overflow: visible; white-space: normal; flex: 1 1 100%; }
}
/* Phones: keep the coach tooltip inside the screen (it was widening the page to 425px) */
@media (max-width: 560px) {
  .mode-tip { left: auto; right: 0; width: min(260px, calc(100vw - 24px)); }
}
/* Phones: smaller pucks that sit above the box labels instead of on them.
   The OFF puck on Don't Come is dropped here; the status line above the table already shows it. */
@media (max-width: 560px) {
  .cr-num .puck { width: 22px; height: 22px; line-height: 22px; font-size: 8px; top: -13px; right: -5px; }
  .cr-dc .puck { display: none; }
}

/* Phones: upright roulette board (built by roulette.js when the screen is narrow) */
.rl-board.vertical { min-width: 0; max-width: 360px; aspect-ratio: 5 / 14; }
.rl-board.vertical .cell { font-size: 17px; }
.rl-board.vertical .cell.out { font-size: 13px; line-height: 1.15; text-align: center; }
.rl-board.vertical .hot { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
/* Phones: opponents three across in compact seats, so your own hand and the
   action buttons stay near the top of the screen. */
@media (max-width: 560px) {
  .he-seats { gap: 6px 4px; }
  .seat.he.bot-seat { min-width: 0; flex: 0 0 calc(33.333% - 4px); padding: 4px 2px 3px; }
  .seat.he.bot-seat .label { font-size: 11px; }
  .seat.he.bot-seat .he-hole { min-height: 58px; }
  .seat.he.bot-seat .meta { font-size: 12px; }
  .seat.he.bot-seat .he-betstack { margin-top: 2px; min-height: 18px; }
  .seat.he.bot-seat .result { font-size: 11px; min-height: 14px; margin-top: 2px; }
  .he-board { padding: 8px 10px; border-radius: 40px; }
  .at-word { display: none; }
}

/* Table buttons: one row. On phones it scrolls sideways instead of stacking three rows deep. */
.subbar-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .subbar { row-gap: 8px; padding: 8px 12px; }
  .subbar .spacer { display: none; }
  .subbar-btns { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -12px; padding: 0 12px 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .subbar-btns::-webkit-scrollbar { display: none; }
  .subbar-btns > * { flex: none; }
  .he-seats .seat.he.bot-seat { flex-basis: calc(20% - 4px); }
  .seat.he.bot-seat .hand .card + .card { margin-left: -24px; }
  .seat.he.you { order: -1; margin: 0 auto 4px; }
}
/* Phones: long row labels in coach tables wrap instead of widening the page. */
@media (max-width: 560px) {
  .moves td:first-child { white-space: normal; }
}
/* Safety net: nothing may make the page wider than the screen (a wider page makes
   phones zoom out and pushes the bottom action bar out of view). */
html, body { overflow-x: clip; }
/* Keyboard hints mean nothing on touch screens */
@media (hover: none) and (pointer: coarse) { .key-hint { display: none; } }
/* Phones: tighter stats tables so the last column stays inside the card */
@media (max-width: 560px) { .modal-body .stat-table { font-size: 12.5px; } .modal-body .stat-table th, .modal-body .stat-table td { padding-left: 4px; padding-right: 4px; } }
