:root {
  color-scheme: dark;
  --ink: #edf5ff;
  --muted: #94a8c2;
  --paper: #070e1b;
  --cyan: #69dff5;
  --blue: #5594ff;
  --red: #b92f4e;
  --line: #90b4e326;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 85% 0, #183b663b, transparent 45%), linear-gradient(#83baff04 1px, transparent 1px), linear-gradient(90deg, #83baff04 1px, transparent 1px), var(--paper); background-size: auto, 48px 48px, 48px 48px, auto; color: var(--ink); font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.topbar { max-width: 1260px; margin: auto; padding: 23px 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 23px; text-decoration: none; font-weight: 650; letter-spacing: 3px; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #69dff563; border-radius: 9px; font-size: 25px; background: #69dff50b; color: var(--cyan); box-shadow: inset 0 0 15px #69dff50a; }
.brand-en { font: 10px var(--mono); letter-spacing: 3px; margin-left: 5px; color: var(--muted); }
.local { font-size: 11px; color: #a5bad2; display: flex; gap: 8px; align-items: center; }
.local i { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px #69dff54d; }
main { max-width: 1260px; margin: auto; padding: 0 48px; }
.intro { display: flex; align-items: center; justify-content: space-between; min-height: 208px; padding: 32px 0 35px; gap: 20px; }
.eyebrow { font: 10px var(--mono); letter-spacing: 2.2px; color: var(--cyan); }
.intro h1 { font-size: 43px; font-weight: 650; letter-spacing: -1px; line-height: 1.35; margin: 13px 0 10px; }
.intro p { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.7; }
.mobile-break { display: none; }
.intro-art { position: relative; width: 250px; height: 144px; margin-right: 12px; flex-shrink: 0; border: 1px solid #69dff519; border-radius: 12px; background: linear-gradient(#69dff508 1px, transparent 1px), linear-gradient(90deg, #69dff508 1px, transparent 1px); background-size: 24px 24px; }
.intro-art::before, .intro-art::after { position: absolute; font: 8px var(--mono); letter-spacing: 1.5px; color: #7299b9; }
.intro-art::before { content: "HAND / ANALYSIS"; top: 12px; left: 13px; }
.intro-art::after { content: "52 CARDS · LOCAL ENGINE"; bottom: 10px; right: 12px; }
.art-card { position: absolute; background: #f2f7ff; border: 1px solid #d3e2f7; box-shadow: 0 10px 28px #0005; border-radius: 7px; width: 59px; height: 83px; padding: 8px; font: 24px/1.1 var(--mono); }
.art-card:first-child { transform: rotate(-12deg); top: 36px; left: 38px; color: #162c44; }
.art-card:nth-child(2) { transform: rotate(9deg); top: 29px; left: 82px; }
.card-red { color: var(--red); }
.art-signal { position: absolute; right: 20px; top: 42px; height: 53px; display: flex; align-items: flex-end; gap: 5px; }
.art-signal i { width: 6px; background: linear-gradient(var(--cyan), #367eff42); border-radius: 2px 2px 0 0; }
.art-signal i:nth-child(1) { height: 18px; }.art-signal i:nth-child(2) { height: 28px; }.art-signal i:nth-child(3) { height: 24px; }.art-signal i:nth-child(4) { height: 41px; }.art-signal i:nth-child(5) { height: 50px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.table-panel { position: relative; min-width: 0; background: linear-gradient(135deg, #13243b99, #0d1728 65%); border: 1px solid #96baff36; border-radius: 18px; padding: 21px 27px 16px; box-shadow: 0 18px 45px #0003, inset 0 1px 0 #c3ddff0a; }
.section-top, .hand-heading, .board-heading, .opponents-heading, .results-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.light { color: #8cbaff; }
.text-button { border: 0; padding: 8px 2px; color: #a9c8ec; background: none; font-size: 11px; min-height: 44px; min-width: 44px; }
.text-button:hover { color: var(--cyan); }
.text-button:disabled { color: #72849c; }
.hand-heading { margin-top: 17px; }
.table-panel h2 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: .3px; }
.table-panel p { font-size: 11px; color: #96aecb; margin: 8px 0 0; line-height: 1.6; }
.pill { border: 1px solid #69dff540; border-radius: 5px; padding: 7px 10px; font-size: 9px; letter-spacing: 1px; color: var(--cyan); background: #69dff508; white-space: nowrap; }
.hero-cards { display: flex; gap: 13px; margin: 18px 0 25px; position: relative; }
.playing-card { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; border: 1px solid #dae7f8; border-radius: 8px; background: linear-gradient(145deg, #fff, #e4edf9); color: #16283f; box-shadow: 0 2px 0 #9cb1ca, 0 6px 15px #0003; padding: 11px 12px; width: 88px; height: 116px; position: relative; transition: transform .15s, background .15s, border-color .15s; }
.playing-card:not(:disabled):hover { transform: translateY(-3px); background: #fff; border-color: var(--cyan); }
.playing-card .rank { font: 600 31px/1 var(--mono); }
.playing-card .suit { font: 30px/1 Georgia, serif; align-self: flex-end; }
.playing-card.red { color: var(--red); }
.playing-card.empty { border: 1px dashed #6891bd66; background: #080f1e59; color: #9db6d5; justify-content: center; align-items: center; box-shadow: inset 0 0 20px #2847740a; }
.playing-card.empty:not(:disabled):hover { background: #69dff50a; }
.playing-card.empty .plus { font-size: 28px; font-weight: 200; color: #719ac5; }
.playing-card.empty .empty-label { font-size: 10px; margin-top: 7px; }
.board-heading { margin-bottom: 9px; }
.board-heading h2 span { font-size: 10px; color: #85b7ed; font-weight: 400; margin-left: 9px; letter-spacing: 0; }
.board-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.board-cards .playing-card { width: 100%; height: 97px; padding: 9px; }
.board-cards .rank, .board-cards .suit { font-size: 27px; }
.board-caption { display: grid; grid-template-columns: 3fr 1fr 1fr; text-align: center; font: 9px var(--mono); letter-spacing: 1px; color: #89a3c2; margin: 13px 0 24px; gap: 8px; }
.opponents-heading { border-top: 1px solid var(--line); padding-top: 21px; }
.stepper { display: flex; align-items: center; border: 1px solid #6386b345; border-radius: 8px; height: 44px; overflow: hidden; background: #080f1e80; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: #b9d6fb; font-size: 22px; }
.stepper button:hover { background: #69dff50b; }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 26px; text-align: center; font: 14px var(--mono); }
.opponent-list { margin-top: 15px; display: grid; gap: 10px; }
.opponent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 64px; padding: 9px 10px; background: #080f1e6b; border: 1px solid #8aaee12e; border-radius: 9px; }
.opponent-name { min-width: 62px; font-size: 11px; color: #dce9fa; white-space: nowrap; }
.opponent-avatar { color: #7aa9e4; font-size: 17px; }
.opponent-state { display: block; font-size: 10px; color: #82d1df; margin-top: 5px; }
.opponent-actions { display: flex; gap: 6px; margin-left: auto; }
.mode-button, .fold-button { border: 1px solid #789ed24d; border-radius: 6px; padding: 9px 10px; font-size: 11px; min-height: 44px; white-space: nowrap; }
.mode-button { background: #192c46; color: #bfd3ef; }
.mode-button:hover { background: #223b5f; }
.fold-button { background: #111d31; color: #b9cce8; border-color: #789ed24d; }
.fold-button:hover { background: #25354d; }
.fold-button.restore { color: #051926; background: #86dcee; border-color: #a3eeff; font-weight: 600; }
.opponent-row.folded { background: #171b29; border-style: dashed; border-color: #9e9bb75c; }
.folded .opponent-state { color: #d9adbb; }
.folded .mini-cards { opacity: .65; }
.mode-button:disabled { opacity: .45; }
.mini-cards { display: flex; gap: 5px; }
.mini-cards .playing-card { width: 44px; height: 44px; border-radius: 4px; padding: 3px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 1px; }
.mini-cards .rank, .mini-cards .suit { font-size: 15px; align-self: auto; }
.mini-cards .plus { font-size: 20px; }
.mini-cards .empty-label { display: none; }
.random-label { font-size: 10px; color: #91a8c5; }
.fold-help { line-height: 1.7; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 7px; color: #8ca4c0; font-size: 9px; }
.results-panel { min-width: 0; background: radial-gradient(ellipse at 50% 25%, #234e762e, transparent 55%), #0d1728; border: 1px solid #6db6ee59; border-radius: 18px; padding: 28px 27px 23px; display: flex; flex-direction: column; box-shadow: inset 0 2px 0 #69dff520, 0 15px 35px #0003; }
.status { font-size: 10px; color: #92adc9; text-align: right; }
.status.running { color: var(--cyan); }
.results-panel h2 { font-size: 17px; font-weight: 500; letter-spacing: .5px; margin: 23px 0 0; }
.equity-ring { --angle: 0deg; width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(var(--cyan) var(--angle), #253952 0); margin: 29px auto 0; padding: 5px; transform: rotate(-90deg); box-shadow: 0 0 0 8px #69dff503, 0 0 0 9px #69dff522, 0 0 35px #349ee40a; }
.ring-inner { height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #182d47, #0d192b); display: flex; flex-direction: column; justify-content: center; align-items: center; transform: rotate(90deg); box-shadow: inset 0 0 0 7px #0c1727; }
.ring-inner strong { font: 500 52px var(--mono); color: #eafaff; letter-spacing: -3px; font-variant-numeric: tabular-nums; text-shadow: 0 0 25px #69dff526; }
.ring-inner small { font: 20px var(--mono); color: var(--cyan); letter-spacing: 0; margin-left: 3px; }
.ring-inner > span { font-size: 10px; color: #96b0cf; margin-top: 12px; }
.result-note { color: #99b0cc; font-size: 11px; line-height: 1.8; text-align: center; min-height: 40px; margin: 23px 0 17px; }
.outcome-bar { height: 5px; display: flex; background: #253952; border-radius: 8px; overflow: hidden; margin-top: 4px; }
.outcome-bar i { transition: width .2s; width: 0; }
.outcome-bar i:nth-child(1), .dot.win { background: var(--cyan); }
.outcome-bar i:nth-child(2), .dot.tie { background: #7399ff; }
.outcome-bar i:nth-child(3), .dot.loss { background: #69778e; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 19px 0 25px; }
.stats > div { display: flex; flex-direction: column; gap: 11px; border-right: 1px solid var(--line); padding-left: 14px; }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border: 0; }
.stats span { font-size: 11px; color: #a3b8d3; display: flex; align-items: center; gap: 6px; }
.stats strong { font: 21px var(--mono); letter-spacing: -.8px; font-variant-numeric: tabular-nums; color: #e0efff; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 2px; }
.calculation-meta { border-top: 1px solid var(--line); padding-top: 17px; display: grid; gap: 14px; font-size: 11px; }
.calculation-meta > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.calculation-meta span, .calculation-meta label { color: #93a9c7; }
.calculation-meta strong { font-weight: 400; color: #c9dcf5; font-variant-numeric: tabular-nums; }
.calculation-meta select { font-size: 11px; color: #cce4ff; background: #162941; border: 1px solid #7da8dd47; border-radius: 6px; padding: 10px 7px; max-width: 180px; min-height: 44px; }
.auto-note { font-size: 10px; color: #91a7c2; text-align: center; margin: 20px 0 0; line-height: 1.6; }
.auto-note span { font-size: 14px; margin-right: 5px; color: var(--cyan); }
.explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; margin: 42px 0 35px; }
.explain-no { font: 9px var(--mono); letter-spacing: 1px; color: #76b7e8; }
.explain h3 { font-size: 14px; font-weight: 500; margin: 14px 0 10px; color: #d7e5f8; }
.explain p { color: #8fa5c0; font-size: 11px; line-height: 1.9; margin: 0; }
footer { border-top: 1px solid var(--line); padding: 23px 0 28px; display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #8ea2bc; line-height: 1.7; }
footer span:first-child { font-family: var(--mono); letter-spacing: 1px; color: #a2c8f1; white-space: nowrap; }
dialog { border: 1px solid #79c7e86b; border-radius: 18px; padding: 27px; max-width: 520px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; color: var(--ink); background: #101d30; box-shadow: inset 0 1px 0 #c7eaff14, 0 30px 100px #0009; }
dialog::backdrop { background: #020817d9; backdrop-filter: blur(6px); }
.picker-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.picker-top h2 { font-size: 21px; font-weight: 500; margin: 9px 0 0; }
.close { border: 1px solid #779cc246; background: #1a2d47; width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; font-size: 25px; color: #cde7ff; }
.picker-description { font-size: 12px; color: #a4bbd7; margin: 20px 0; }
.suit-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 20px; }
.suit-tab { padding: 11px 5px; min-height: 48px; border: 1px solid #7ea8d43d; border-radius: 8px; background: #1a2c44; color: #d8e5f7; font-size: 19px; }
.suit-tab span { font-size: 11px; margin-left: 6px; }
.suit-tab[aria-selected=true] { background: #8adcec; border-color: #b0f0fc; color: #102535; box-shadow: 0 0 18px #69dff51a; }
.suit-tab.red:not([aria-selected=true]) { color: #ffacba; }
.deck { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.deck .playing-card { width: 100%; height: 76px; padding: 7px; }
.deck .rank, .deck .suit { font-size: 23px; }
.deck .playing-card:disabled { opacity: .3; background: #a9b8cb; box-shadow: none; }
.deck .playing-card.current { outline: 3px solid var(--cyan); outline-offset: 2px; }
.picker-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 25px; font-size: 11px; color: #a0b8d4; }
.clear-card { border: 1px solid #8bb4e257; border-radius: 7px; padding: 11px; min-height: 44px; background: #1c2e47; color: #c3dcfa; font-size: 11px; }
.clear-card:disabled { opacity: .4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1100px) { .hero-cards .playing-card { width: 94px; height: 125px; } }
@media (max-width: 1000px) {
  .topbar { padding-left: 28px; padding-right: 28px; } main { padding: 0 28px; }
  .workspace { grid-template-columns: minmax(0, 1.25fr) minmax(290px, 1fr); gap: 18px; }
  .table-panel { padding-left: 20px; padding-right: 20px; } .results-panel { padding-left: 22px; padding-right: 22px; }
  .opponent-actions { width: 100%; justify-content: flex-end; }
  .board-cards { gap: 6px; } .board-cards .playing-card { height: 85px; padding: 8px; }
  .stats strong { font-size: 19px; }
}
@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; } .intro { min-height: 175px; } .intro h1 { font-size: 36px; }
  .intro-art { width: 205px; margin-right: 0; } .art-card:first-child { left: 19px; } .art-card:nth-child(2) { left: 60px; }
  .art-signal { right: 11px; gap: 3px; } .art-signal i { width: 5px; }
  .opponent-actions { width: auto; } .results-panel { padding: 25px 27px; }
  .board-cards .playing-card { height: 105px; } .explain { gap: 23px; }
}
@media (max-width: 480px) {
  .topbar { padding: 16px 18px; } .brand { font-size: 20px; gap: 8px; letter-spacing: 2px; }
  .brand-mark { width: 32px; height: 32px; font-size: 22px; } .brand-en { font-size: 9px; margin-left: 0; letter-spacing: 2px; }
  .local { font-size: 9px; gap: 5px; } main { padding: 0 13px; }
  .intro { min-height: 0; padding: 26px 6px 28px; gap: 0; } .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .intro h1 { font-size: 33px; margin: 11px 0 9px; letter-spacing: 0; } .mobile-break { display: block; }
  .intro p { font-size: 11px; max-width: 205px; }
  .intro-art { transform: scale(.8); transform-origin: center right; width: 124px; height: 139px; margin-left: -10px; }
  .intro-art::before { font-size: 7px; letter-spacing: .5px; left: 7px; } .intro-art::after { content: "LOCAL ENGINE"; right: 8px; font-size: 7px; }
  .art-card:first-child { left: 7px; top: 36px; } .art-card:nth-child(2) { left: 49px; top: 29px; } .art-signal { display: none; }
  .workspace { gap: 18px; } .table-panel { border-radius: 15px; padding: 13px 17px 10px; }
  .hand-heading { margin-top: 11px; } .table-panel h2 { font-size: 16px; } .table-panel p { font-size: 11px; }
  .hero-cards { margin: 16px 0 22px; } .hero-cards .playing-card { width: 81px; height: 110px; }
  .board-cards { gap: 6px; } .board-cards .playing-card { height: 80px; padding: 7px; }
  .board-cards .rank, .board-cards .suit { font-size: 24px; } .board-caption { margin-bottom: 21px; font-size: 8px; }
  .opponents-heading { padding-top: 18px; } .opponent-row { gap: 10px; padding: 10px; }
  .opponent-actions { width: 100%; justify-content: flex-end; } .opponent-name { margin-right: auto; }
  .fold-button { min-width: 61px; } .mode-button { min-width: 84px; }
  .table-foot { flex-wrap: wrap; gap: 0; font-size: 9px; } .table-foot .text-button { font-size: 10px; margin-left: auto; }
  .results-panel { border-radius: 15px; padding: 25px 23px; } .results-panel h2 { margin-top: 18px; }
  .equity-ring { width: 220px; height: 220px; margin-top: 28px; } .stats strong { font-size: 23px; }
  .explain { grid-template-columns: 1fr; gap: 23px; margin: 32px 8px; }
  .explain > div { padding-bottom: 22px; border-bottom: 1px solid var(--line); } .explain > div:last-child { padding: 0; border: 0; }
  .explain h3 { margin: 10px 0 8px; } footer { margin: 0 7px; font-size: 9px; align-items: flex-start; }
  footer span:last-child { text-align: right; max-width: 190px; }
  dialog { padding: 22px 17px; } .deck { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px 7px; }
  .deck .playing-card { height: 72px; padding: 7px; } .deck .rank, .deck .suit { font-size: 23px; }
  .suit-tabs { gap: 5px; } .suit-tab span { font-size: 10px; margin-left: 3px; } .picker-foot { font-size: 10px; }
}
@media (max-width: 350px) {
  .brand-en { display: none; } main { padding: 0 10px; } .intro-art { display: none; }
  .intro h1 { font-size: 31px; } .mobile-break { display: none; }
  .table-panel { padding-left: 13px; padding-right: 13px; }
  .board-cards .playing-card { height: 72px; padding: 5px; } .board-cards { gap: 5px; }
  .board-cards .rank, .board-cards .suit { font-size: 22px; }
  .results-panel { padding-left: 19px; padding-right: 19px; } .stats strong { font-size: 20px; }
  dialog { padding-left: 13px; padding-right: 13px; } .suit-tab span { margin-left: 2px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Exact final-hand distribution, kept separate from Monte Carlo equity. */
.hand-types[hidden] { display: none; }
.hand-types { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.hand-types-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hand-types-heading .pill { font-size: 9px; padding: 5px 8px; }
.hand-types h3 { margin: 12px 0 8px; font-size: 17px; letter-spacing: .2px; }
.hand-types-note, .hand-type-total { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 0; }
.hand-type-list { display: grid; gap: 0; margin: 13px 0 10px; }
.hand-type-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #90b2da14; font-size: 12px; }
.hand-type-row:last-child { border-bottom: 0; }
.hand-type-row strong { color: var(--cyan); font-size: 14px; font-variant-numeric: tabular-nums; }

/* v6: top-down poker table. All scenic layers are non-interactive. */
.workspace { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 25px; }
.table-panel { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.section-top { padding: 0 20px 10px; }
.poker-table {
  position: relative;
  isolation: isolate;
  padding: 47px 48px 38px;
  border: 20px solid #111e2b;
  border-radius: 46% / 26%;
  background: radial-gradient(ellipse at 50% 34%, #174e60, #103b4b 58%, #092734);
  box-shadow: 0 0 0 2px #557583, 0 0 0 5px #080f17, 0 17px 0 2px #060c14, 0 24px 0 2px #101b27, 0 30px 45px #0008, inset 0 0 0 2px #4d8a96, inset 0 5px 22px #0009;
}
.poker-table::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px dashed #69859588;
  border-radius: 46% / 26%;
  pointer-events: none;
  z-index: -1;
}
.poker-table::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid #9ce5e336;
  border-radius: 46% / 27%;
  background-image: repeating-linear-gradient(0deg, #defaff04 0, #defaff04 1px, transparent 1px, transparent 3px), repeating-linear-gradient(90deg, #00151a0d 0, #00151a0d 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: -1;
}
.felt-content { position: relative; z-index: 1; }
.table-decoration { position: absolute; inset: 0; pointer-events: none; user-select: none; z-index: 0; }
.felt-brand { position: absolute; right: 18%; top: 33%; color: #a4dcdf27; font: 600 23px var(--mono); letter-spacing: 4px; transform: rotate(-8deg); }
.felt-subtitle { position: absolute; right: 17%; top: 39%; color: #a4dcdf36; font: 8px var(--mono); letter-spacing: 2px; transform: rotate(-8deg); }
.dealer-token { position: absolute; left: 14%; top: 41%; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 3px double #d2e0e2; background: #dce8e7; color: #24414a; font: 700 12px var(--mono); box-shadow: 0 3px 0 #718d96, 0 6px 9px #0006; transform: rotate(-15deg); }
.chip-stack { position: absolute; bottom: 12%; width: 27px; height: 27px; border: 4px dashed #cbe6f4; border-radius: 50%; box-shadow: 0 2px 0 #0a1926, 0 4px 0 #6a9bac, 0 6px 0 #102330, 0 8px 0 #7394a6, 0 11px 9px #0008; }
.chip-stack::after { content: ""; position: absolute; inset: 3px; border: 1px solid #cbe6f49c; border-radius: 50%; }
.chip-stack-blue { left: 23%; background: #316293; transform: rotate(13deg); }
.chip-stack-cyan { right: 23%; background: #218993; transform: rotate(-10deg); bottom: 11%; }
.poker-table .hand-heading { margin-top: 0; justify-content: center; text-align: center; gap: 14px; }
.poker-table .hand-heading .pill { padding: 6px 8px; font-size: 8px; background: #071d2880; }
.poker-table p { color: #b6d1d8; }
.poker-table .hero-cards { justify-content: center; margin: 18px 0 26px; gap: 13px; }
.poker-table .playing-card { box-shadow: 0 2px 0 #a6c0ca, 0 8px 15px #00101688; }
.poker-table .playing-card.empty { background: #051e2b59; border-color: #90c8d77d; color: #c2dce2; box-shadow: inset 0 2px 9px #0003; }
.poker-table .playing-card.empty .plus { color: #a6ccd6; }
.poker-table .playing-card.empty:not(:disabled):hover { background: #103e50; border-color: #99edfa; }
.poker-table .board-heading { margin-bottom: 8px; }
.poker-table .board-heading h2 span { color: #b0d6e2; }
.poker-table .board-cards { gap: 8px; }
.poker-table .board-cards .playing-card { height: 96px; }
.poker-table .board-caption { color: #b0ced7; margin: 13px 0 22px; }
.poker-table .text-button { color: #c3dfe7; }
.opponent-console { margin-top: 43px; border: 1px solid #8aaee12e; border-radius: 14px; padding: 21px 23px 13px; background: linear-gradient(135deg, #13243b99, #0d1728); }
.opponents-heading { border: 0; padding-top: 0; }
.results-panel { margin-top: 54px; }
@media (max-width: 1100px) and (min-width: 761px) {
  .workspace { grid-template-columns: minmax(0, 1.4fr) minmax(290px, 1fr); gap: 21px; }
  .poker-table { padding: 42px 28px 34px; border-width: 17px; border-radius: 44% / 23%; }
  .poker-table::before, .poker-table::after { border-radius: 44% / 23%; }
  .poker-table .hand-heading { gap: 8px; }
  .poker-table .hand-heading .pill { display: none; }
  .poker-table .board-cards { gap: 6px; }
  .poker-table .board-cards .playing-card { height: 83px; padding: 7px; }
  .felt-brand, .felt-subtitle { right: 7%; font-size: 13px; top: 37%; }
  .felt-subtitle { font-size: 6px; top: 42%; letter-spacing: 1px; }
  .dealer-token { left: 6%; }
}
@media (max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .poker-table { padding: 45px 45px 34px; border-width: 18px; }
  .poker-table .hero-cards .playing-card { width: 88px; height: 116px; }
  .poker-table .board-cards .playing-card { height: 102px; }
  .results-panel { margin-top: 0; }
}
@media (max-width: 480px) {
  .section-top { padding: 0 11px 9px; }
  .poker-table { border-width: 12px; padding: 37px 16px 32px; border-radius: 44% / 21%; box-shadow: 0 0 0 1px #557583, 0 0 0 3px #080f17, 0 11px 0 1px #060c14, 0 16px 0 1px #101b27, 0 23px 28px #0008, inset 0 0 0 1px #4d8a96, inset 0 4px 15px #0009; }
  .poker-table::before { inset: -7px; border-radius: 44% / 21%; }
  .poker-table::after { inset: 10px; border-radius: 44% / 21%; }
  .poker-table .hand-heading { gap: 9px; }
  .poker-table .hand-heading .pill { display: none; }
  .poker-table .hero-cards { margin: 17px 0 23px; gap: 12px; }
  .poker-table .hero-cards .playing-card { width: 77px; height: 104px; }
  .poker-table .board-cards { gap: 5px; }
  .poker-table .board-cards .playing-card { height: 76px; padding: 6px; }
  .poker-table .board-cards .rank, .poker-table .board-cards .suit { font-size: 23px; }
  .poker-table .board-caption { font-size: 8px; margin-bottom: 19px; }
  .felt-brand { right: 4%; top: 35%; font-size: 12px; letter-spacing: 1px; writing-mode: vertical-rl; transform: rotate(0); }
  .felt-subtitle { display: none; }
  .dealer-token { left: 6%; top: 38%; width: 23px; height: 23px; font-size: 10px; }
  .chip-stack { width: 22px; height: 22px; border-width: 3px; bottom: 8%; }
  .chip-stack-blue { left: 21%; } .chip-stack-cyan { right: 21%; }
  .opponent-console { margin-top: 32px; padding: 20px 17px 10px; }
}
@media (max-width: 350px) {
  .poker-table { padding-left: 13px; padding-right: 13px; border-width: 10px; }
  .poker-table::before { inset: -6px; }
  .poker-table .board-cards { gap: 4px; }
  .poker-table .board-cards .playing-card { height: 69px; padding: 5px; min-width: 44px; }
  .poker-table .board-cards .rank, .poker-table .board-cards .suit { font-size: 21px; }
  .opponent-console { padding-left: 13px; padding-right: 13px; }
}

/* Standalone free practice entry; calculator styles stay independent. */
.practice-entry{display:inline-flex;margin-top:18px;padding:11px 18px;background:#69dff51a;border:1px solid #69dff570;border-radius:9px;text-decoration:none;color:var(--cyan);font-size:14px;font-weight:600}.practice-entry:hover{background:#69dff52a}
