:root {
  --bg: #07090d;
  --panel: #10151d;
  --line: #2a3443;
  --text: #ecf3ff;
  --muted: #8d9bab;
  --blue: #0b6fb8;
  --felt: #0c67a6;
  --green-card: #6fb354;
  --blue-card: #5e8794;
  --red-card: #a84a47;
  --black-card: #364657;
  --chip-red: #d94141;
  --chip-blue: #6fb7ff;
  --chip-gold: #e8c14a;
  --chip-white: #f3f6fb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(49, 112, 154, .18), transparent 34%),
    linear-gradient(135deg, #090b10, #050608 52%, #0b0d12);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}
body.focus-mode {
  overflow: hidden;
}
button, select, input { font: inherit; }

.topbar {
  min-height: 64px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(7, 9, 13, .92);
  border-bottom: 1px solid #1d2532;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-chip {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #02050a;
  box-shadow: 0 0 0 1px #0b74bb, 0 10px 22px rgba(14,165,233,.25);
  overflow: hidden;
}
.brand-chip img { width: 100%; height: 100%; object-fit: cover; }
h1 { margin: 0; font-size: 18px; }
p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.controls { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; position: relative; }
label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
select, input {
  min-height: 36px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0d131d;
  color: white;
  padding: 7px 10px;
}
.btn {
  min-height: 38px;
  border: 1px solid #334155;
  border-radius: 9px;
  background: #182232;
  color: white;
  padding: 8px 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:not(:disabled):active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: #0b74bb; border-color: #38bdf8; }
.danger { background: #a51f28; border-color: #ef4444; }
.success { background: #137b45; border-color: #22c55e; }
.warning { background: #d29b17; border-color: #facc15; color: #111827; }
.sound.on { background: #14532d; border-color: #22c55e; }
.icon-btn {
  width: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.settings-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 700;
  width: 260px;
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(9, 14, 23, .98);
  border: 1px solid #263a56;
  box-shadow: 0 18px 46px rgba(0,0,0,.55);
}
.settings-head {
  color: #dbeafe;
  font-weight: 950;
  font-size: 13px;
}
.settings-panel input[type="range"] {
  width: 100%;
  min-height: 20px;
  padding: 0;
}
.settings-panel select {
  width: 100%;
}

.app {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(820px, 1fr) 460px;
  gap: 12px;
}
body.focus-mode .topbar {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 200;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
}
body.focus-mode .brand,
body.focus-mode .controls > label,
body.focus-mode .controls > .btn:not(#focusBtn):not(#settingsBtn) {
  display: none;
}
body.focus-mode .settings-panel label,
body.focus-mode .settings-panel .btn,
body.focus-mode .settings-panel .settings-head { display: grid; }
body.focus-mode .settings-panel .btn { display: block; }
body.focus-mode .controls {
  display: block;
}
body.focus-mode #focusBtn {
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
body.focus-mode .app {
  width: 100%;
  height: 100vh;
  padding: 8px;
  display: block;
  overflow: hidden;
}
body.focus-mode .coach {
  display: none;
}
body.focus-mode .table-shell {
  height: 100vh;
  padding-right: 310px;
  padding-bottom: 0;
}
body.focus-mode .table {
  height: calc(100vh - 16px);
  min-height: 520px;
}
body.focus-mode .action-dock {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: auto;
  transform: none;
  width: 286px;
  margin: 0;
  z-index: 100;
  gap: 7px;
  padding: 10px;
  box-shadow: 0 18px 46px rgba(0,0,0,.55);
}
body.focus-mode .hero-panel {
  left: 50%;
  bottom: 18px;
  z-index: 70;
}
body.focus-mode .s3 {
  top: 82%;
}
body.focus-mode .hero-cards .card {
  width: 54px;
  height: 74px;
}
body.focus-mode .decision-line {
  font-size: 12px;
  line-height: 1.25;
}
body.focus-mode .count-btn {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}
body.focus-mode .action-row {
  grid-template-columns: 1fr;
  gap: 6px;
}
body.focus-mode .action-row .btn {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 13px;
}
body.focus-mode .bet-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
body.focus-mode .bet-row input[type="range"] {
  grid-column: 1 / -1;
  height: 5px;
}
body.focus-mode .bet-row .btn,
body.focus-mode .bet-row strong {
  min-height: 30px;
  padding: 5px 7px;
  font-size: 12px;
}
body.focus-mode .bet-row strong {
  grid-column: 1 / -1;
}
body.focus-mode .reason {
  min-height: 32px;
  font-size: 12px;
  padding: 6px 8px;
}
body.focus-mode .continue-btn {
  min-height: 34px;
  padding: 6px 9px;
}
.table-shell {
  min-width: 0;
}
.table {
  position: relative;
  height: 650px;
  border-radius: 999px;
  overflow: visible;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.12), transparent 54%),
    linear-gradient(145deg, #0c6aa8, #064875 70%, #033152);
  border: 22px solid #1b222c;
  box-shadow:
    0 0 0 5px #050608,
    inset 0 0 70px rgba(0,0,0,.28),
    0 26px 60px rgba(0,0,0,.55);
}
.table::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.09);
  pointer-events: none;
}
.felt-glow {
  position: absolute;
  inset: 11% 14%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(106, 185, 255, .18), transparent 63%);
  pointer-events: none;
}

.seat {
  position: absolute;
  width: 180px;
  min-height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  padding: 7px 12px 8px 50px;
  background: linear-gradient(180deg, rgba(28,32,39,.94), rgba(10,12,17,.94));
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 24px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
  z-index: 10;
}
.seat.hero {
  width: 210px;
  min-height: 86px;
  border-color: #61c36d;
  box-shadow: 0 0 0 3px rgba(97,195,109,.20), 0 12px 28px rgba(0,0,0,.42);
}
.seat.active { box-shadow: 0 0 0 3px #f3d54e, 0 0 25px rgba(243,213,78,.32); }
.seat.folded { opacity: .45; filter: grayscale(.6); }
.s0 { left: 50%; top: 4%; }
.s1 { left: 81%; top: 20%; }
.s2 { left: 84%; top: 58%; }
.s3 { left: 50%; top: 90%; }
.s4 { left: 16%; top: 58%; }
.s5 { left: 19%; top: 20%; }
.avatar {
  position: absolute;
  left: 6px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--avatar-a, #5eead4), var(--avatar-b, #334155) 55%, #111827);
  border: 2px solid rgba(255,255,255,.20);
  color: white;
  font-weight: 950;
  font-size: 13px;
}
.avatar .face {
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.35));
}
.name { font-weight: 900; font-size: 13px; color: #dce7f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack { margin-top: 2px; color: #b9e98f; font-weight: 950; font-size: 16px; }
.bet-line { margin-top: 3px; color: #f6d96a; font-weight: 950; font-size: 11px; min-height: 14px; }
.read { position: absolute; right: 10px; top: -12px; padding: 3px 8px; border-radius: 999px; background: #111827; border: 1px solid rgba(255,255,255,.16); font-size: 10px; font-weight: 900; color: #cbd5e1; }
.read.role-btn { background: #f8fafc; color: #111827; border-color: #93c5fd; }
.read.role-sb { background: #0ea5e9; color: #eff6ff; border-color: #bae6fd; }
.read.role-bb { background: #facc15; color: #111827; border-color: #fde68a; }
.dealer { position: absolute; right: -8px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #d5dde8; color: #111827; font-size: 12px; font-weight: 950; border: 2px solid #718096; }
.board-zone {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 9px;
  z-index: 5;
}
.board, .hero-cards { display: flex; gap: 8px; align-items: center; justify-content: center; }
.street-label { color: #b9d8f8; font-size: 12px; font-weight: 900; }
.pot-label {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(5, 10, 18, .70);
  color: #cce9ff;
  font-weight: 950;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.12);
}
.pot-stack {
  position: relative;
  width: 150px;
  height: 58px;
  display: grid;
  place-items: center;
}
.chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: absolute;
  border: 2px solid #eef2f7;
  background:
    radial-gradient(circle, #f8fafc 0 25%, transparent 26%),
    repeating-conic-gradient(var(--chip-red) 0 14deg, var(--chip-white) 14deg 24deg, var(--chip-red) 24deg 38deg);
  box-shadow: 0 8px 12px rgba(0,0,0,.35);
}
.chip::after {
  content: attr(data-v);
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: #111827;
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
}
.chip.blue { background: radial-gradient(circle, #f8fafc 0 25%, transparent 26%), repeating-conic-gradient(#4da7ff 0 14deg, #f8fafc 14deg 24deg, #4da7ff 24deg 38deg); }
.chip.gold { background: radial-gradient(circle, #f8fafc 0 25%, transparent 26%), repeating-conic-gradient(#e5b736 0 14deg, #f8fafc 14deg 24deg, #e5b736 24deg 38deg); }
.chip.green { background: radial-gradient(circle, #f8fafc 0 25%, transparent 26%), repeating-conic-gradient(#22c55e 0 14deg, #f8fafc 14deg 24deg, #22c55e 24deg 38deg); }
.chip.black { background: radial-gradient(circle, #f8fafc 0 25%, transparent 26%), repeating-conic-gradient(#111827 0 14deg, #f8fafc 14deg 24deg, #111827 24deg 38deg); }
.chip-stack {
  position: relative;
  width: 92px;
  height: 66px;
  display: block;
}
.chip-stack .chip, .pot-stack .chip {
  left: calc(8px + var(--col) * 20px);
  bottom: calc(7px + var(--row) * 9px);
}
.chip-amount {
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(5,10,18,.92);
  border: 1px solid rgba(255,255,255,.18);
  color: #eaf6ff;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}
.chip-layer { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.fly-chip {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  background: repeating-conic-gradient(#e5b736 0 14deg, white 14deg 24deg, #e5b736 24deg 38deg);
  transition: transform .42s cubic-bezier(.18,.82,.18,1), opacity .42s ease;
  box-shadow: 0 8px 14px rgba(0,0,0,.35);
}
.fly-chip::after {
  content: attr(data-v);
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: #111827;
  font-size: 7px;
  font-weight: 950;
}
.bet-chip-marker {
  position: absolute;
  width: 92px;
  height: 66px;
  pointer-events: none;
  z-index: 12;
}
.s0 .bet-chip-marker { left: 50%; top: 90%; transform: translateX(-50%); }
.s1 .bet-chip-marker,
.s2 .bet-chip-marker { left: -58px; top: 50%; transform: translateY(-50%); }
.s4 .bet-chip-marker,
.s5 .bet-chip-marker { right: -58px; top: 50%; transform: translateY(-50%); }
.s3 .bet-chip-marker { left: 50%; top: -68px; transform: translateX(-50%); }
.bet-chip-marker .chip-stack {
  transform: scale(.9);
  transform-origin: center;
}
.bet-chip-marker .chip-amount {
  top: 48px;
  font-size: 10px;
}

.card {
  width: 58px;
  height: 78px;
  border-radius: 7px;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 6px 5px;
  color: rgba(255,255,255,.92);
  font-weight: 950;
  border: 1px solid rgba(0,0,0,.28);
  box-shadow: 0 8px 16px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.18);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .18;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.8), transparent 16%),
    radial-gradient(circle at 72% 76%, rgba(0,0,0,.9), transparent 20%);
}
.card .rank { z-index: 1; font-size: 26px; line-height: 1; }
.card .suit { z-index: 1; font-size: 21px; opacity: .55; }
.card .mini { z-index: 1; align-self: end; justify-self: end; font-size: 12px; opacity: .8; }
.card.c { background: var(--green-card); }
.card.d { background: var(--blue-card); }
.card.h { background: var(--red-card); }
.card.s { background: var(--black-card); }
.card.back {
  background: linear-gradient(145deg, #262c35, #11151c);
}
.card.back .rank, .card.back .suit, .card.back .mini { display: none; }
.seat .cards {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.seat.hero .cards {
  display: none;
}
.seat .card { width: 32px; height: 44px; border-radius: 5px; }
.seat .card .rank { font-size: 13px; }
.seat .card .suit { font-size: 10px; }
.seat .card .mini { display: none; }

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: -118px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  z-index: 20;
}
.hero-cards .card { width: 62px; height: 84px; }
.action-dock {
  margin: 118px auto 0;
  width: min(780px, 100%);
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13,19,29,.95), rgba(7,10,15,.96));
  border: 1px solid #253246;
}
.decision-line { color: #b9c7d8; font-weight: 800; text-align: center; }
.count-btn {
  justify-self: center;
  background: #101827;
  border-color: #475569;
  color: #dbeafe;
}
.action-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.action-row.no-fold { grid-template-columns: repeat(2, 1fr); }
.bet-row { display: grid; grid-template-columns: 1fr auto auto auto auto 90px; gap: 8px; align-items: center; }
.bet-row strong { min-height: 36px; display: grid; place-items: center; border-radius: 8px; background: #101827; border: 1px solid #334155; }
.reason { width: 100%; }
.progress-panel {
  margin: 12px auto 0;
  width: min(780px, 100%);
  padding: 12px;
  border-radius: 12px;
  background: rgba(9, 15, 27, .92);
  border: 1px solid #253246;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #dce7f7;
  font-size: 13px;
  margin-bottom: 8px;
}
.progress-head span { color: var(--muted); font-weight: 800; }
.progress-chart {
  height: 96px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.progress-bar {
  flex: 1;
  min-width: 5px;
  border-radius: 4px 4px 0 0;
  background: #22c55e;
}
.progress-bar.loss { background: #ef4444; }
.progress-bar.flat { background: #64748b; }
.learning-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.learning-card {
  padding: 10px;
  border-radius: 9px;
  background: rgba(8, 18, 32, .9);
  border: 1px solid #263346;
  color: #dce7f7;
  font-size: 13px;
  line-height: 1.4;
}
.learning-card strong { color: #dbeafe; }
.local-coach .coach-warn { color: #fde68a; font-weight: 900; }
.local-coach .coach-bad { color: #fecaca; font-weight: 900; }
.local-coach .coach-good { color: #bbf7d0; font-weight: 900; }
.dictionary-chat {
  height: 130px;
  overflow: auto;
  display: grid;
  gap: 6px;
  margin: 8px 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(2, 6, 12, .45);
  border: 1px solid rgba(255,255,255,.07);
}
.dictionary-chat div {
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .9);
}
.dictionary-chat .user-msg { background: rgba(14, 116, 144, .35); }
.dictionary-chat span { color: #93c5fd; font-weight: 900; }
.dictionary-input { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.dictionary-input input { min-width: 0; }
.dictionary-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.dictionary-suggestions button {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #101827;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.sizing-coach ul { margin: 8px 0 0; padding-left: 18px; }
.sizing-coach li { margin: 4px 0; }
.preflop-card {
  grid-column: 1 / -1;
}
.preflop-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.preflop-head span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
}
.preflop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.preflop-tabs button {
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #101827;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.preflop-tabs button.active {
  border-color: #38bdf8;
  background: #0c4a6e;
}
.preflop-tabs button.hero-pos {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, .9) inset;
}
.preflop-matrix {
  display: grid;
  grid-template-columns: repeat(13, minmax(34px, 1fr));
  gap: 3px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(2, 6, 12, .45);
  border: 1px solid rgba(255,255,255,.07);
}
.preflop-cell {
  min-width: 0;
  aspect-ratio: 1 / .78;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  color: #e5eefc;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  cursor: default;
}
.preflop-cell.open { background: linear-gradient(180deg, #0ea5e9, #075985); }
.preflop-cell.defend { background: linear-gradient(180deg, #eab308, #854d0e); color: #0b111b; }
.preflop-cell.threebet { background: linear-gradient(180deg, #a855f7, #581c87); }
.preflop-cell.fold { background: #182130; color: #64748b; }
.preflop-cell.hero-hand {
  outline: 3px solid #facc15;
  box-shadow: 0 0 18px rgba(250, 204, 21, .6);
  transform: scale(1.04);
  z-index: 1;
}
.preflop-advice {
  margin-top: 8px;
  color: #cfe1f6;
}
.preflop-advice p {
  margin: 6px 0 0;
}
.preflop-now {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.preflop-now span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
}
.preflop-action {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, .15);
  border: 1px solid rgba(56, 189, 248, .35);
}
.preflop-action.fold { background: rgba(239, 68, 68, .16); border-color: rgba(248, 113, 113, .4); }
.preflop-action.call { background: rgba(234, 179, 8, .16); border-color: rgba(250, 204, 21, .45); }
.preflop-action.raise { background: rgba(168, 85, 247, .16); border-color: rgba(192, 132, 252, .45); }
.preflop-action.check { background: rgba(34, 197, 94, .16); border-color: rgba(74, 222, 128, .45); }
.preflop-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.preflop-legend span {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.lg-threebet { background: #581c87; color: #f5e8ff; }
.lg-open { background: #075985; color: #e0f2fe; }
.lg-defend { background: #ca8a04; color: #111827; }
.lg-fold { background: #1f2937; color: #94a3b8; }
.hidden { display: none !important; }

.coach { display: grid; gap: 10px; align-content: start; }
.panel {
  border-radius: 12px;
  background: rgba(14, 20, 31, .96);
  border: 1px solid #253246;
  padding: 12px;
}
.panel h2 { margin: 0 0 10px; color: #d7e4f5; font-size: 15px; }
.money-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.money-grid div { padding: 9px; border-radius: 9px; background: #0b111b; border: 1px solid #202b3a; }
.money-grid span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.money-grid strong { display: block; margin-top: 4px; font-size: 17px; }
.combo-box, .review, .replay-list {
  color: #dce7f7;
  font-size: 13px;
  line-height: 1.45;
}
.combo-panel {
  min-height: 250px;
}
.combo-box {
  max-height: 430px;
  overflow: auto;
}
.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 9px; }
.combo-grid div { border-radius: 9px; padding: 8px; background: #0b111b; border: 1px solid #263346; }
.combo-grid strong { display: block; font-size: 20px; }
.bad { color: #fecaca; }
.even { color: #fde68a; }
.good { color: #bbf7d0; }
.examples { color: #b7c7da; }
.lesson {
  margin-top: 8px;
  padding: 9px;
  border-radius: 9px;
  background: rgba(8, 18, 32, .9);
  border: 1px solid #263346;
}
.lesson strong { color: #dbeafe; }
.study-panel {
  border-color: rgba(56,189,248,.34);
}
.street-panel {
  border-color: rgba(168,85,247,.32);
}
.spot-coach {
  display: grid;
  gap: 8px;
  color: #dce7f7;
  font-size: 13px;
  line-height: 1.45;
}
.spot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.spot-card {
  border-radius: 9px;
  background: #0b111b;
  border: 1px solid #263346;
  padding: 8px;
}
.spot-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.spot-card strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}
.spot-advice {
  padding: 10px;
  border-radius: 10px;
  background: rgba(8, 18, 32, .92);
  border: 1px solid #263346;
}
.spot-advice.badline {
  border-color: rgba(239,68,68,.7);
  background: rgba(127,29,29,.22);
}
.spot-advice.warnline {
  border-color: rgba(250,204,21,.65);
  background: rgba(113,63,18,.22);
}
.review-gate {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(127, 29, 29, .24);
  border: 1px solid rgba(239, 68, 68, .75);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.35;
}
.review-gate .btn {
  justify-self: start;
}
.street-timeline {
  display: grid;
  gap: 8px;
  color: #dce7f7;
  font-size: 13px;
  line-height: 1.42;
  max-height: 520px;
  overflow: auto;
}
.street-note {
  padding: 9px;
  border-radius: 10px;
  background: #0b111b;
  border: 1px solid #263346;
}
.street-note.ok {
  border-color: rgba(34,197,94,.58);
  background: rgba(20,83,45,.18);
}
.street-note.badline {
  border-color: rgba(239,68,68,.65);
  background: rgba(127,29,29,.20);
}
.street-note.warnline {
  border-color: rgba(250,204,21,.58);
  background: rgba(113,63,18,.18);
}
.street-note.pending {
  opacity: .72;
}
.yt-music {
  position: fixed;
  right: 8px;
  bottom: 8px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: .01;
  pointer-events: none;
}
.street-note strong {
  color: #dbeafe;
}
.street-note div {
  margin-top: 4px;
}
.street-note small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.replay-list { max-height: 210px; overflow: auto; display: grid; gap: 6px; }
.replay-item {
  width: 100%;
  min-height: 34px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid #263346;
  background: #0b111b;
  color: #dce7f7;
  padding: 7px 9px;
  cursor: pointer;
  font-weight: 800;
}
.replay-item:hover { border-color: #38bdf8; }
.replay-detail { margin-top: 8px; color: #b7c7da; }
.replay-combo {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #263346;
}
.action-toast {
  position: fixed;
  left: 50%;
  top: 74px;
  transform: translate(-50%, -10px);
  z-index: 500;
  width: min(470px, calc(100vw - 24px));
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(15, 23, 42, .96);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  color: white;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.action-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.action-toast strong {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.18);
  color: #fff;
  letter-spacing: .2px;
}
.action-toast.good {
  background: linear-gradient(135deg, rgba(20,83,45,.98), rgba(22,101,52,.98));
  border-color: #22c55e;
}
.action-toast.bad {
  background: linear-gradient(135deg, rgba(127,29,29,.98), rgba(185,28,28,.98));
  border-color: #ef4444;
}
.action-toast.warn {
  background: linear-gradient(135deg, rgba(113,63,18,.98), rgba(161,98,7,.98));
  border-color: #facc15;
}
.action-toast.blue {
  background: linear-gradient(135deg, rgba(30,64,175,.98), rgba(37,99,235,.98));
  border-color: #60a5fa;
}
.action-toast.purple {
  background: linear-gradient(135deg, rgba(88,28,135,.98), rgba(126,34,206,.98));
  border-color: #c084fc;
}

@media (max-width: 1260px) {
  .app { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .app { padding: 8px; }
  .table { height: 560px; transform-origin: top left; }
  .seat { width: 150px; }
  .action-row, .bet-row { grid-template-columns: 1fr; }
  .learning-grid { grid-template-columns: 1fr; }
  .preflop-matrix { grid-template-columns: repeat(13, minmax(26px, 1fr)); gap: 2px; padding: 5px; }
  .preflop-cell { font-size: 9px; border-radius: 4px; }
}
