/* ============================================================
   GTO Heads-Up — solver-tool dark theme
   Charcoal surfaces + a single bright accent.
   ============================================================ */
:root {
  --bg:        #0c0e10;
  --bg-2:      #121519;
  --surface:   #171b20;
  --surface-2: #1d222a;
  --line:      #272d36;
  --line-2:    #333b46;
  --text:      #e8ecf1;
  --text-2:    #9aa3af;
  --text-3:    #646c78;

  --accent:    oklch(0.86 0.19 142);   /* bright lime-green */
  --accent-dim:oklch(0.86 0.19 142 / 0.14);
  --accent-2:  oklch(0.82 0.05 142);

  --good:  oklch(0.84 0.17 150);
  --ok:    oklch(0.84 0.14 110);
  --warn:  oklch(0.83 0.15 75);
  --bad:   oklch(0.70 0.18 25);

  --felt:  radial-gradient(120% 120% at 50% 18%, #1a2a24 0%, #14201c 45%, #0e1714 100%);
  --red:   oklch(0.72 0.17 18);

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 8px 30px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}
#root { height: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* ---------- App shell ---------- */
.app { display: flex; flex-direction: column; height: 100%; min-height: 100vh; min-height: 100dvh; }

.header {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  background: var(--bg-2); flex: none;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand .name {
  font-weight: 700; letter-spacing: -0.01em; font-size: 16px; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.brand .sub { font-size: 11px; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.02em; }

.hspace { flex: 1; }

.seg {
  display: inline-flex; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.seg button {
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text-2); transition: all .15s;
}
.seg button.on { background: var(--accent); color: #0a0c09; }
.seg button:not(.on):hover { color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600;
  color: var(--text); transition: border-color .15s;
}
.pill:hover { border-color: var(--line-2); }
.pill .k { color: var(--text-3); font-weight: 500; font-family: var(--mono); font-size: 11px; }
.pill .swatch { width: 8px; height: 8px; border-radius: 2px; }

.stat-pill { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.stat-pill .v { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.stat-pill .l { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Main layout ---------- */
.main { flex: 1; display: grid; grid-template-columns: 1fr 372px; min-height: 0; }
.tablewrap { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.felt {
  position: relative; flex: 1; margin: 18px; border-radius: 120px / 80px;
  background: var(--felt);
  border: 1px solid #243530;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.5), inset 0 0 0 8px rgba(255,255,255,0.012), var(--shadow);
  min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 18px 18px;
}
.felt::after {
  content: ""; position: absolute; inset: 14px; border-radius: 110px / 72px;
  border: 1px solid rgba(180, 255, 140, 0.05); pointer-events: none;
}

/* ---------- Seat ---------- */
.seat { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.seat.compact { flex-direction: row; align-items: center; gap: 12px; position: relative; }
.seat.compact .cards { margin-left: 4px; }
.seat.active .avatar { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim), 0 0 20px var(--accent-dim); }
.seat-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2);
  border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: var(--text-2); flex: none; transition: all .2s;
}
.seat-meta { display: flex; flex-direction: column; gap: 3px; min-width: 96px; }
.seat-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.seat-stack { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.pos-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2);
}
.pos-badge.btn { background: var(--accent); color: #0a0c09; border-color: var(--accent); }

/* ---------- Cards ---------- */
.cards { display: flex; gap: 7px; }
.card {
  width: clamp(46px, 7.2vmin, 66px); aspect-ratio: 5/7; border-radius: 8px;
  background: linear-gradient(160deg, #f7f4ec, #e9e4d6);
  color: #15110c; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 5px 6px; font-weight: 700; user-select: none;
}
.card .r { font-size: clamp(15px, 2.6vmin, 22px); line-height: 1; letter-spacing: -0.03em; }
.card .r.ten { font-size: clamp(12px, 2.1vmin, 18px); letter-spacing: -0.06em; }
.card.tiny .r.ten { font-size: clamp(9px, 1.5vmin, 13px); }
.card .s { font-size: clamp(14px, 2.4vmin, 20px); line-height: 1; align-self: flex-end; }
.card.red { color: var(--red); }
.card.back {
  background: repeating-linear-gradient(45deg, #1c2a25 0 7px, #16211d 7px 14px);
  border: 1px solid #2c3d36; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.card.back::after {
  content: ""; position: absolute; inset: 7px; border-radius: 5px;
  border: 1px solid rgba(180,255,140,0.12);
}
.card.muck { opacity: 0.5; filter: grayscale(0.4); }
.card.tiny { width: clamp(30px, 4.4vmin, 40px); border-radius: 6px; padding: 3px 4px; }
.card.deal-in { animation: dealIn .26s ease both; }
@keyframes dealIn { from { transform: translateY(-10px) scale(.94); } to { transform: none; } }

/* ---------- Board / pot ---------- */
.center { display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 2; }
.board { display: flex; gap: 8px; min-height: 1px; }
.board-slot { width: clamp(46px, 7.2vmin, 66px); aspect-ratio: 5/7; border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.06); }
.pot {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 16px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(180,255,140,0.12); border-radius: 999px;
  backdrop-filter: blur(4px);
}
.pot .lab { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.pot .val { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--text); }
.pot .val .bb { color: var(--text-3); font-size: 11px; font-weight: 500; }

.bet-chip {
  font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 3px 10px;
  background: rgba(0,0,0,0.45); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--accent); white-space: nowrap; flex: none;
}
.street-flag {
  position: absolute; top: 14px; left: 18px; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); padding: 4px 11px; border-radius: 999px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--line);
}
.live-eq {
  position: absolute; top: 14px; right: 18px; text-align: right;
}
.live-eq .v { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.live-eq .l { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Action bar ---------- */
.actionbar { flex: none; padding: 14px 18px 18px; border-top: 1px solid var(--line); background: var(--bg-2); }
.act-row { display: flex; gap: 10px; align-items: stretch; max-width: 720px; margin: 0 auto; }
.btn {
  flex: 1; padding: 15px 14px; border-radius: var(--r-md); font-size: 15px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  transition: all .13s; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.btn:hover:not(:disabled) { border-color: var(--text-3); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn .sub { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-3); }
.btn.fold { background: #1a1416; border-color: #3a2329; }
.btn.fold:hover:not(:disabled) { border-color: var(--bad); }
.btn.call { background: var(--surface-2); }
.btn.raise { background: var(--accent); color: #0a0c09; border-color: var(--accent); }
.btn.raise .sub { color: rgba(10,12,9,0.6); }
.btn.raise:hover:not(:disabled) { filter: brightness(1.07); }

.sizing { max-width: 720px; margin: 0 auto 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sizechip {
  padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; font-family: var(--mono);
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: all .12s;
}
.sizechip.on { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.sizechip:hover { color: var(--text); }
.slider-wrap { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; background: var(--line-2); border-radius: 999px; flex: 1; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 4px var(--accent-dim); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer; }
.raise-amt { font-family: var(--mono); font-weight: 700; font-size: 14px; min-width: 70px; text-align: right; }

.waiting { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px; color: var(--text-2); font-size: 14px; }
.keyhint { max-width: 720px; margin: 9px auto 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .02em; }
.keyhint b { display: inline-block; min-width: 15px; padding: 1px 4px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font-weight: 700; }
@media (max-width: 560px) { .keyhint { display: none; } }
.next-btn { padding: 15px 28px; border-radius: var(--r-md); font-weight: 700; font-size: 15px; background: var(--accent); color: #0a0c09; }
.kk { font-family: var(--mono); font-size: 0.78em; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,0.16); margin: 0 2px; }
.next-btn:hover { filter: brightness(1.07); }
.ghost-btn { padding: 13px 20px; border-radius: var(--r-md); font-weight: 600; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.ghost-btn:hover { border-color: var(--text-3); }

/* ---------- Coach rail ---------- */
.rail { border-left: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; min-height: 0; }
.rail-tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.rail-tabs button { flex: 1; padding: 13px 8px; font-size: 12px; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; }
.rail-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.rail-body { flex: 1; overflow-y: auto; padding: 16px; }
.rail-body::-webkit-scrollbar { width: 8px; }
.rail-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 12px; }
.panel h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 10px; font-weight: 700; }

.metric { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { border-bottom: none; }
.metric .l { font-size: 13px; color: var(--text-2); }
.metric .v { font-family: var(--mono); font-weight: 700; font-size: 15px; }

.eqbar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-top: 6px; }
.eqbar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s; }

.feedback-card { border-radius: var(--r-md); padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.fb-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.fb-good { background: oklch(0.84 0.17 150 / 0.15); color: var(--good); }
.fb-ok   { background: oklch(0.84 0.14 110 / 0.15); color: var(--ok); }
.fb-warn { background: oklch(0.83 0.15 75 / 0.15); color: var(--warn); }
.fb-bad  { background: oklch(0.70 0.18 25 / 0.18); color: var(--bad); }
.fb-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fb-line .mono { font-weight: 700; }
.fb-note { font-size: 13px; line-height: 1.5; color: var(--text-2); margin-top: 12px; }
.fb-note b { color: var(--text); font-weight: 600; }

.hist-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.hist-row .tag { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.hist-row .desc { flex: 1; color: var(--text-2); }
.hist-row .amt { color: var(--text-3); }

.empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 30px 10px; line-height: 1.6; }

/* ---------- Study-mode feedback overlay ---------- */
.overlay { position: absolute; inset: 0; background: rgba(8,10,12,0.62); backdrop-filter: blur(3px); z-index: 30;
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.overlay-card { width: min(440px, 94vw); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); animation: pop .2s ease both; }
@keyframes pop { from { transform: scale(.95) translateY(8px); } to { transform: none; } }
.overlay-card .ohead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.overlay-card .ohead .mono { white-space: nowrap; }
.cmp { display: flex; gap: 10px; margin: 14px 0; }
.cmp > div { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.cmp .clab { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.cmp .cval { font-weight: 700; font-size: 17px; margin-top: 3px; }
.cmp .opt { border-color: var(--accent); }
.cmp .opt .cval { color: var(--accent); }
.cmp .wrong { border-color: var(--bad); }
.cmp .wrong .cval { color: var(--bad); }
.solution-banner {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 4px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--accent-dim); border: 1px solid var(--accent);
  font-size: 14px; line-height: 1.4; color: var(--text);
}
.solution-banner .sol-ico { color: var(--accent); font-weight: 700; font-size: 16px; flex: none; }
.solution-banner b { color: var(--accent); font-weight: 700; }
.overlay-card .fb-note { font-size: 14px; line-height: 1.6; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Solver mix bar ---------- */
.mixbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 12px 0 2px; background: var(--line); }
.mixseg { height: 100%; }

/* ---------- Range-grid viewer ---------- */
.range-node-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.range-node-tabs button { padding: 6px 10px; font-size: 11px; font-weight: 600; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.range-node-tabs button.on { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.grid13 { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; }
.gcell { position: relative; aspect-ratio: 1 / 1; border-radius: 3px; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: default; }
.gcell .lab { position: relative; z-index: 1; font-family: var(--mono); font-size: clamp(6px, 1.4vmin, 9px); font-weight: 700; color: #0a0c09; letter-spacing: -0.02em; }
.gcell .bg { position: absolute; inset: 0; display: flex; }
.gcell .bg > i { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.ext-links { display: flex; flex-direction: column; gap: 8px; }
.ext-link { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 11px 13px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.ext-link:hover { border-color: var(--accent); color: var(--accent); }
.ext-link .arr { color: var(--text-3); }

/* ---------- Preset drills ---------- */
.drill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drill-card { text-align: left; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .12s; }
.drill-card:hover { border-color: var(--accent); }
.drill-card .dn { font-weight: 700; font-size: 13px; }
.drill-card .dd { font-size: 11px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }

/* ---------- Toast ---------- */
.toast { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 25;
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }

/* ---------- Settings sheet ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(6,8,10,0.7); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: min(520px, 96vw); max-height: 86vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.modal h2 { font-size: 18px; margin-bottom: 4px; }
.modal .msub { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.style-card { text-align: left; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: all .13s; }
.style-card.on { border-color: var(--accent); background: var(--accent-dim); }
.style-card .sn { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.style-card .sd { font-size: 12px; color: var(--text-2); margin-top: 5px; line-height: 1.45; }
.field { margin: 14px 0; }
.field label { font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; margin-bottom: 7px; }
.field .val { font-family: var(--mono); color: var(--accent); font-weight: 700; }

.iconbtn { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.iconbtn:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Main menu ---------- */
.menu { height: 100%; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 28px 24px;
  text-align: center; overflow-y: auto; background: radial-gradient(125% 90% at 50% -10%, #16241f 0%, var(--bg) 55%); }
.menu-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.menu-brand { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 13px; }
.menu-brand .dot { width: 13px; height: 13px; box-shadow: 0 0 20px var(--accent); }
.menu-sub { color: var(--text-2); font-size: 15px; max-width: 500px; line-height: 1.5; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 800px; width: 100%; }
.menu-card { position: relative; overflow: hidden; text-align: left; padding: 24px; border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2);
  transition: transform .16s, border-color .16s, box-shadow .16s; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.menu-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,0.5); }
.menu-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); opacity: 0; transition: opacity .16s; }
.menu-card:hover::after { opacity: 1; }
.mc-ico { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent); margin-bottom: 6px; }
.mc-tag { font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .07em; }
.mc-title { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.mc-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.mc-feat { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 6px 0 2px; flex: 1; }
.mc-feat li { font-size: 12.5px; color: var(--text-2); padding-left: 19px; position: relative; }
.mc-feat li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.mc-go { margin-top: 10px; font-weight: 700; color: var(--accent); font-size: 14px; }
.menu-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.menu-chips span { font-size: 11px; font-family: var(--mono); color: var(--text-3); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.menu-foot { color: var(--text-3); font-size: 12px; max-width: 640px; line-height: 1.5; }
@media (max-width: 640px) { .menu-grid { grid-template-columns: 1fr; } .menu-brand { font-size: 26px; } }

/* ---------- Tournament table ---------- */
.tarena { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 18px; overflow: hidden; }
.ttable { position: relative; width: min(980px, 100%); aspect-ratio: 1.62 / 1; max-height: 100%;
  border-radius: 50% / 50%; background: var(--felt); border: 2px solid #2c3d36;
  box-shadow: inset 0 0 110px rgba(0,0,0,0.55), inset 0 0 0 10px rgba(255,255,255,0.015), var(--shadow); }
.tpot { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); font-family: var(--mono); font-weight: 700; font-size: 14px;
  color: var(--text); background: rgba(0,0,0,0.42); border: 1px solid rgba(180,255,140,0.16); padding: 4px 16px; border-radius: 999px; white-space: nowrap; z-index: 2; }
.tboard { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; gap: 6px; z-index: 2; }
.tmsg { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); font-weight: 700; font-size: 14px; color: var(--accent); text-align: center; white-space: nowrap; z-index: 5; }
.tbtn { position: absolute; transform: translate(-50%,-50%); width: 22px; height: 22px; border-radius: 50%;
  background: #f2efe6; color: #15110c; font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5); z-index: 4; }
.tseat { position: absolute; transform: translate(-50%,-50%); width: 92px; z-index: 3; }
.tseat-in { background: rgba(23,27,32,0.95); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px 6px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.tseat.hero .tseat-in { border-color: var(--accent); transform: scale(1.08); }
.tseat.active .tseat-in { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim), 0 0 18px var(--accent-dim); }
.tseat.folded { opacity: 0.42; }
.tseat.out .tseat-in { opacity: 0.5; border-style: dashed; }
.tseat .nm { font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tseat .nm .role { font-family: var(--mono); font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); }
.tseat .stk { font-size: 11.5px; color: var(--accent-2); margin-top: 1px; }
.tseat .thole { display: flex; gap: 3px; justify-content: center; margin-top: 3px; }
.tseat .allin { font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--bad); margin-top: 1px; }
.tbet { position: absolute; transform: translate(-50%,-50%); font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: #0a0c09; background: var(--accent); border-radius: 999px; padding: 2px 9px; white-space: nowrap; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,0.45); }
@media (max-width: 680px) {
  .tarena { padding: 6px; }
  .ttable { aspect-ratio: 0.92 / 1; }
  .tseat { width: 78px; }
  .tseat-in { padding: 4px 5px; }
  .tseat .nm { font-size: 10px; gap: 3px; }
  .tseat .nm .role { font-size: 8px; }
  .tseat .stk { font-size: 10.5px; }
  .tpot { top: 35%; font-size: 12px; padding: 3px 12px; }
  .tmsg { font-size: 12px; top: 64%; }
  .tbet { font-size: 10px; padding: 1px 7px; }
  /* tournament header keeps blinds/stack visible (global rule below hides .stat-pill <560) */
  .theader .stat-pill { display: inline-flex; }
  .theader .stat-pill .v { font-size: 13px; }
  .theader .stat-pill .l { font-size: 9px; }
  .theader .brand .sub { display: none; }
}
@media (max-width: 400px) {
  .ttable { aspect-ratio: 0.8 / 1; }
  .tseat { width: 66px; }
  .tseat .nm { font-size: 9px; }
  .tseat .stk { font-size: 9.5px; }
  .tarena { padding: 3px; }
}

/* ---------- Mobile coach toggle ---------- */
.coach-fab { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  body { overflow: auto; }
  .main { grid-template-columns: 1fr; }
  .rail {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); z-index: 40;
    transform: translateX(100%); transition: transform .25s ease; border-left: 1px solid var(--line-2);
    box-shadow: -12px 0 40px rgba(0,0,0,0.5);
  }
  .rail.open { transform: none; }
  .rail-close { display: flex; }
  .coach-fab {
    display: flex; position: absolute; top: 50%; right: 0; transform: translateY(-50%);
    writing-mode: vertical-rl; padding: 14px 6px; background: var(--accent); color: #0a0c09;
    font-weight: 700; font-size: 12px; border-radius: 8px 0 0 8px; letter-spacing: .08em; z-index: 20;
  }
  .felt { margin: 10px; border-radius: 80px / 110px; padding: 20px 10px; min-height: 64vh; }
  .header { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .brand .sub { display: none; }
  .seat-meta { min-width: 80px; }
}
@media (max-width: 560px) {
  .act-row { gap: 6px; }
  .btn { padding: 13px 8px; font-size: 14px; }
  .header .seg button { padding: 6px 12px; }
  .stat-pill { display: none; }
  .felt { min-height: 60vh; }
}
.rail-close { display: none; position: absolute; top: 10px; right: 12px; }

/* ---------- Motion polish ---------- */
/* Stagger the community-card reveal so flop/turn/river feel dealt, not popped */
.board .card.deal-in:nth-child(2) { animation-delay: .06s; }
.board .card.deal-in:nth-child(3) { animation-delay: .12s; }
.board .card.deal-in:nth-child(4) { animation-delay: .06s; }
.board .card.deal-in:nth-child(5) { animation-delay: .06s; }
.bet-chip { animation: chipIn .2s ease both; }
@keyframes chipIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.btn, .next-btn, .sizechip, .seg button { transition: transform .06s ease, background .12s ease, border-color .12s ease; }
.btn:active, .next-btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .card.deal-in, .bet-chip { animation: none; }
  .btn, .next-btn { transition: none; }
}

/* ---------- Leak finder (Review tab) ---------- */
.leak { padding: 9px 0; border-bottom: 1px solid var(--line); }
.leak:last-child { border-bottom: none; }
.leak-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.leak-sit { font-size: 13px; font-weight: 600; color: var(--text); }
.leak-ev { font-size: 12px; color: var(--bad); }
.leak-bar { height: 5px; border-radius: 999px; background: var(--line); margin: 6px 0 4px; overflow: hidden; }
.leak-bar i { display: block; height: 100%; border-radius: 999px; background: var(--bad); }
.leak-sub { font-size: 11px; color: var(--text-3); }

.rev-list { display: flex; flex-direction: column; }
.rev-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rev-row:last-child { border-bottom: none; }
.rev-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rev-main { flex: 1; min-width: 0; }
.rev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rev-sit { font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-cards { flex: none; transform: scale(.62); transform-origin: right center; }
.rev-cards .cards { gap: 3px; }
.rev-sub { font-size: 11px; font-family: var(--mono); color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-arrow { color: var(--text-3); }
.rev-ev { font-size: 12px; flex: none; min-width: 32px; text-align: right; }
