/* ===== CSS Custom Properties — Luxury Dark Theme ===== */
:root {
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --bg-primary: #060912;
  --bg-secondary: #0a0e1a;
  --bg-surface: rgba(10, 14, 26, 0.8);
  --bg-elevated: rgba(12, 16, 30, 0.95);
  --bg-card: rgba(15, 20, 38, 0.88);

  --table-felt: #11472a;
  --table-felt-center: #196432;
  --table-border-gold: #c9982e;
  --table-border-inner: rgba(201, 152, 46, 0.3);
  --table-glow: rgba(201, 152, 46, 0.08);

  --text-primary: #eaf0f6;
  --text-secondary: rgba(234, 240, 246, 0.58);
  --text-muted: rgba(234, 240, 246, 0.28);

  --gold: #d4a843;
  --gold-bright: #e8c060;
  --gold-dim: rgba(212, 168, 67, 0.13);
  --blue: #6ea8fe;
  --blue-dim: rgba(110, 168, 254, 0.1);
  --green: #34d399;
  --green-bright: #6ee7b7;
  --green-dark: #0f7a4d;
  --green-dim: rgba(52, 211, 153, 0.1);
  --red: #f87171;
  --red-bright: #fca5a5;
  --red-dark: #b91c1c;
  --red-dim: rgba(248, 113, 113, 0.1);
  --indigo: #a5b4fc;
  --indigo-dark: #6366f1;
  --indigo-dim: rgba(99, 102, 241, 0.1);

  --glass-bg: rgba(10, 14, 26, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-blur: 24px;

  --card-w: 40px;
  --card-h: 54px;
  --card-w-sm: 34px;
  --card-h-sm: 47px;
  --card-radius: 6px;

  --avatar-size: 42px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-glow-gold: 0 0 40px rgba(212,168,67,0.06);
}

/* ===== Reset & Base ===== */
html { font-size: 18px; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 70% 50% at 30% 0%, rgba(212,168,67,0.025) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(99,102,241,0.025) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(6,9,18,0.5) 0%, transparent 70%);
  min-height: 100vh;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

.app {
  max-width: 1300px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.02);
}

.hidden { display: none !important; }

/* ===== Screen Transitions ===== */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: screenFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-screen {
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: 1fr;
  gap: 0;
}
.game-screen > .table-container { grid-column: 1; grid-row: 1; }
.game-screen > .fold-animation-layer { grid-column: 1; grid-row: 1; }
.game-screen > .next-hand-bar { grid-column: 1; grid-row: 1; align-self: end; justify-self: center; z-index: 10; }
.game-screen > .side-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
}
.game-screen > #action-indicator { grid-column: 1; grid-row: 1; }
@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Top Bar ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: linear-gradient(180deg, rgba(10,14,26,0.6) 0%, transparent 100%);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.top-bar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-bar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: scale(1.08);
}

.top-bar-close { font-size: 1.2rem; line-height: 1; }
.top-bar-time { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.top-bar-chips-info {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.top-chips-stack { color: var(--text-primary); }
.top-chips-pl { font-weight: 700; }
.top-chips-pl.pl-positive { color: var(--green); }
.top-chips-pl.pl-negative { color: var(--red); }
.top-chips-pl.pl-zero { color: var(--text-muted); }
.top-bar-right { display: flex; align-items: center; gap: 8px; }
.top-bar-dots { color: var(--text-muted); font-size: 1rem; }

/* ===== Home Screen ===== */
.home-screen {
  justify-content: center;
  padding: 32px 24px;
}
.home-content {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.home-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.04em;
  position: relative;
  text-shadow: 0 0 60px rgba(212,168,67,0.15);
}
.home-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  margin: 14px auto 0;
}

.home-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 16px 0 40px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.home-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.025) 0%, transparent 50%);
  pointer-events: none;
}

.home-option:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
}
.home-option:active:not(:disabled) { transform: scale(0.97); }
.home-option:disabled { cursor: default; opacity: 0.3; }

.home-option-primary {
  border-color: rgba(52, 211, 153, 0.15);
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.06) 0%, var(--bg-card) 50%);
}
.home-option-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(52,211,153,0.35) 50%, transparent 90%);
}
.home-option-primary:hover:not(:disabled) {
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(52,211,153,0.05);
}

.home-option-placeholder { border-style: dashed; border-color: rgba(255,255,255,0.03); }

.home-option-icon { font-size: 1.5rem; margin-bottom: 10px; opacity: 0.85; }
.home-option-label { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; letter-spacing: 0.03em; }
.home-option-desc { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }

/* ===== Settings Screen ===== */
.settings-screen {
  overflow-y: auto;
  padding: 16px 24px 32px;
}
.settings-content {
  max-width: 380px;
  margin: 0 auto;
}

.settings-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 36px;
  text-align: center;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.settings-section { margin-bottom: 28px; }

.settings-section-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.settings-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-choice {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.settings-choice:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.settings-choice.active {
  background: linear-gradient(135deg, rgba(52,211,153,0.12) 0%, rgba(52,211,153,0.06) 100%);
  border-color: rgba(52,211,153,0.3);
  color: var(--green-bright);
  box-shadow: 0 0 20px rgba(52,211,153,0.06), inset 0 0 0 1px rgba(52,211,153,0.08);
}

.settings-choices-blinds .settings-choice { min-width: 68px; text-align: center; }
.settings-choices-toggle .settings-choice { min-width: 76px; text-align: center; }

.settings-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 8px 0 0;
  font-weight: 400;
}

.btn-enter-game {
  display: block;
  width: 100%;
  margin-top: 40px;
  padding: 15px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark) 0%, #1a9d63 50%, var(--green-dark) 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(52,211,153,0.12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-enter-game::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.btn-enter-game:hover {
  box-shadow: 0 8px 36px rgba(52,211,153,0.18);
  transform: translateY(-2px);
}
.btn-enter-game:active { transform: scale(0.97); }

/* ===== Table Area ===== */
.table-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px 0;
  min-height: 0;
  overflow: visible;
}

.table-oval {
  position: relative;
  width: 78%;
  max-width: 460px;
  aspect-ratio: 2.3 / 1;
  max-height: 42vh;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, var(--table-felt-center) 0%, var(--table-felt) 50%, #0b3219 95%, #081f10 100%);
  border: 3px solid var(--table-border-gold);
  border-radius: 50% / 42%;
  box-shadow:
    inset 0 2px 40px rgba(0, 0, 0, 0.55),
    inset 0 0 100px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(201,152,46,0.12),
    0 0 60px var(--table-glow),
    0 16px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.table-oval::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50% / 42%;
  border: 1px solid var(--table-border-inner);
  pointer-events: none;
}
.table-oval::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50% / 42%;
  background: radial-gradient(ellipse 35% 25% at 50% 28%, rgba(255,255,255,0.035) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Seats Ring ===== */
.seats-ring {
  position: absolute;
  inset: -16% -20%;
  pointer-events: none;
}
.seats-ring .seat-item { pointer-events: auto; }

.seat-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seat-item.seat-bottom { flex-direction: column; transform: translate(-50%, 0); }
.seat-item.seat-bottom .seat-bet-inside { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; }
.seat-item.seat-bottom .seat-outside { display: flex; flex-direction: column; align-items: center; }

.seat-item.seat-top { flex-direction: column; transform: translate(-50%, -100%); }
.seat-item.seat-top .seat-bet-inside { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; }
.seat-item.seat-top .seat-outside { display: flex; flex-direction: column-reverse; align-items: center; }

.seat-item.seat-left { flex-direction: column; transform: translate(-50%, -50%); }
.seat-item.seat-left .seat-bet-inside { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 4px; }
.seat-item.seat-left .seat-outside { display: flex; flex-direction: column; align-items: center; }

.seat-item.seat-right { flex-direction: column; transform: translate(-50%, -50%); }
.seat-item.seat-right .seat-bet-inside { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 4px; }
.seat-item.seat-right .seat-outside { display: flex; flex-direction: column; align-items: center; }

.seat-row-avatar { height: var(--avatar-size); display: flex; align-items: center; justify-content: center; }
.seat-row-cards { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 3px; perspective: 600px; }
.seat-row-stack { height: 18px; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; }
.seat-item.seat-left .seat-row-avatar,
.seat-item.seat-right .seat-row-avatar { width: var(--avatar-size); height: var(--avatar-size); }
.seat-item.seat-left .seat-row-cards,
.seat-item.seat-right .seat-row-cards { min-height: 48px; }
.seat-item.seat-left .seat-row-stack,
.seat-item.seat-right .seat-row-stack { height: 18px; }

/* ===== Bet Chip Badge ===== */
.seat-bet-inside {
  padding: 3px 10px 3px 7px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a1a;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  min-width: 2em;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.seat-bet-inside::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 20%, var(--gold) 60%, #b8860b 100%);
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.seat-bet-inside:empty { display: none; }
.seat-bet-inside:not(:empty) { display: inline-flex; }

.seat-folded { opacity: 0.35; filter: grayscale(0.6); }
.seat-folded .seat-pill::after { content: ' FOLD'; font-size: 0.7em; opacity: 0.9; }

/* ===== Table Center ===== */
.table-center-faint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 1px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.table-center-blinds {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 6px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.table-oval-in-game .table-center-blinds { margin-bottom: 2px; }

/* ===== Street Indicator ===== */
.street-indicator {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-bottom: 6px;
}
.street-step {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.street-step.active {
  color: var(--gold-bright);
  background: rgba(212, 168, 67, 0.1);
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.12);
}
.street-step.past {
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.street-dot { width: 2px; height: 2px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }

/* ===== Pot Badge ===== */
.table-pot-badge {
  padding: 4px 14px 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(212, 168, 67, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.table-pot-badge::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 15%, var(--gold) 55%, #b8860b 100%);
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

/* ===== Community Cards ===== */
.table-community {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 54px;
  margin-bottom: 4px;
  perspective: 800px;
}
.table-community .card.community-card-reveal {
  animation: communityFlip 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  transform: rotateY(180deg) scale(0.7);
}
@keyframes communityFlip {
  0% { transform: rotateY(180deg) scale(0.7); opacity: 0; filter: brightness(0.4); }
  30% { transform: rotateY(90deg) scale(0.9); opacity: 0.8; filter: brightness(0.7); }
  60% { transform: rotateY(20deg) scale(1.06); opacity: 1; filter: brightness(1.1); }
  100% { transform: rotateY(0) scale(1); opacity: 1; filter: brightness(1); }
}

/* ===== Winner Banner ===== */
.table-winner-banner {
  padding: 7px 18px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.8), rgba(15, 122, 77, 0.85));
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.15);
  animation: winnerPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  letter-spacing: 0.03em;
}
@keyframes winnerPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Start / Next Hand Button ===== */
.table-start-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: auto;
}
.table-start-wrap.hidden { display: none !important; }

.btn-start-on-table {
  padding: 12px 40px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 4px 28px rgba(99, 102, 241, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-start-on-table::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 45%);
  pointer-events: none;
}
.btn-start-on-table:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 36px rgba(99, 102, 241, 0.3);
}
.btn-start-on-table:active { transform: scale(0.96); }

.next-hand-bar {
  display: flex;
  justify-content: center;
  padding: 18px 0 20px;
}
.next-hand-bar.hidden { display: none !important; }
.btn-next-hand {
  padding: 10px 48px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}
.btn-next-hand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 45%);
  pointer-events: none;
}
.btn-next-hand:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
}
.btn-next-hand:active { transform: scale(0.96); }

/* ===== Cards ===== */
.card {
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--card-radius);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 3px 0 0 4px;
  font-weight: 700;
  background: linear-gradient(168deg, #ffffff 0%, #f6f6f8 30%, #ededf0 70%, #e4e4e8 100%);
  color: #1a1a2e;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.18),
    0 4px 10px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.95);
  position: relative;
  line-height: 1;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}
.card .card-rank { font-size: 14px; line-height: 1; display: block; font-weight: 800; }
.card .card-suit { font-size: 11px; line-height: 1; display: block; margin-top: 1px; }
.card .card-center-suit {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  opacity: 0.12;
}
.card.red { color: #c41e3a; }

.card.back {
  background:
    repeating-conic-gradient(rgba(255,255,255,0.04) 0% 25%, transparent 0% 50%) 0 0 / 7px 7px,
    linear-gradient(155deg, #8b1428 0%, #6b0e1e 50%, #4a0a14 100%);
  color: transparent;
  border: 1px solid rgba(180,30,50,0.35);
  box-shadow:
    0 2px 10px rgba(0,0,0,0.4),
    inset 0 0 0 2px rgba(255,80,80,0.06);
  padding: 0;
  align-items: center;
  justify-content: center;
}
.card.back::before {
  content: '♠';
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.12);
  font-weight: 900;
}

.table-community .card { width: var(--card-w-sm); height: var(--card-h-sm); }
.table-community .card .card-rank { font-size: 13px; }
.table-community .card .card-suit { font-size: 10px; }
.table-community .card .card-center-suit { font-size: 18px; }

/* ===== Avatar System ===== */
.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  border: 2px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}
.avatar::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.9;
}
.avatar-hero {
  background: linear-gradient(135deg, #c41e3a 0%, #8b1428 100%);
  border-color: var(--gold);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212,168,67,0.2);
}
.avatar-robot { border-color: rgba(255, 255, 255, 0.08); }
.avatar-robot::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='8' width='16' height='12' rx='2'/%3E%3Cline x1='12' y1='4' x2='12' y2='8'/%3E%3Ccircle cx='12' cy='4' r='1.5'/%3E%3Ccircle cx='9' cy='14' r='1.5' fill='%23fff'/%3E%3Ccircle cx='15' cy='14' r='1.5' fill='%23fff'/%3E%3Cline x1='1' y1='13' x2='4' y2='13'/%3E%3Cline x1='20' y1='13' x2='23' y2='13'/%3E%3C/svg%3E");
  opacity: 0.7;
}

.avatar[data-color="0"] { background: linear-gradient(135deg, #c41e3a, #8b1428); }
.avatar[data-color="1"] { background: linear-gradient(135deg, #2563eb, #1e40af); }
.avatar[data-color="2"] { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.avatar[data-color="3"] { background: linear-gradient(135deg, #ea580c, #9a3412); }
.avatar[data-color="4"] { background: linear-gradient(135deg, #0891b2, #0e7490); }
.avatar[data-color="5"] { background: linear-gradient(135deg, #be185d, #831843); }
.avatar[data-color="6"] { background: linear-gradient(135deg, #4f46e5, #3730a3); }
.avatar[data-color="7"] { background: linear-gradient(135deg, #0d9488, #115e59); }
.avatar[data-color="8"] { background: linear-gradient(135deg, #b45309, #78350f); }

.seat-active-turn .avatar {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(232,192,96,0.2), 0 0 24px rgba(212,168,67,0.12);
  animation: turnGlow 2.2s ease-in-out infinite;
}
@keyframes turnGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232,192,96,0.2), 0 0 24px rgba(212,168,67,0.12); }
  50% { box-shadow: 0 0 0 5px rgba(232,192,96,0.1), 0 0 36px rgba(212,168,67,0.16); }
}

.turn-indicator { display: none; }

/* ===== Dealer Button ===== */
.dealer-btn {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #e8e8ea 100%);
  color: #1a1a2e;
  font-size: 8px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  z-index: 5;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: -0.02em;
}

/* ===== Seat Details ===== */
.seat-pill {
  margin-top: 3px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.seat-pill-hero { background: rgba(196, 30, 58, 0.65); color: #fff; }
.seat-pill-robot { background: rgba(255, 255, 255, 0.07); color: var(--text-secondary); }

.seat-stack {
  font-size: 0.72rem;
  margin-top: 1px;
  color: var(--text-secondary);
}
.seat-stack.stack-negative {
  color: #ef4444;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.seat-cards {
  display: flex;
  gap: 3px;
  margin-top: 4px;
  min-height: 50px;
  justify-content: center;
}

.seat-hand-desc {
  margin-bottom: 2px;
  padding: 2px 8px;
  background: rgba(212, 168, 67, 0.18);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.04em;
  animation: fadeSlideIn 0.3s ease both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  padding: 1px 4px;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 700;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* ===== Fold Animation ===== */
.fold-animation-layer {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: visible;
}
.fold-animation-layer .card-fold-fly {
  position: fixed;
  width: var(--card-w);
  height: var(--card-h);
  z-index: 101;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease, filter 0.5s ease;
  will-change: transform;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.fold-animation-layer .card-fold-fly.fold-animate {
  transform: translate(var(--fold-dx, 0), var(--fold-dy, 0)) rotate(-18deg) scale(0.6);
  opacity: 0;
  filter: blur(2px);
}

/* ===== Deal Animation ===== */
.deal-animation-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: visible;
}
.deal-animation-layer.hidden { display: none !important; }

@keyframes dealFromCenter {
  0% { transform: translate(var(--deal-from-x, 0), var(--deal-from-y, 0)) scale(0.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
.card-deal-anim {
  animation: dealFromCenter 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ===== Action Indicator ===== */
.action-indicator {
  position: fixed;
  z-index: 150;
  min-width: 72px;
  padding: 5px 14px;
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 168, 67, 0.1);
  pointer-events: none;
  transform: translate(-50%, 0);
  box-shadow: var(--shadow-md);
  animation: indicatorPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
@keyframes indicatorPop {
  0% { transform: translate(-50%, 4px) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
.action-indicator.hidden { display: none !important; }

/* ===== AI Analysis Panel ===== */
.analysis-panel {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 14px 16px 10px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.analysis-in-game {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.analysis-tags {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.analysis-tag {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.tag-position { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(110,168,254,0.15); }
.tag-street { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(212,168,67,0.15); }
.tag-hand { background: var(--green-dim); color: var(--green-bright); border: 1px solid rgba(52,211,153,0.15); }

.analysis-win-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.analysis-win-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.analysis-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.analysis-value { font-size: 1.0rem; font-weight: 800; color: var(--text-primary); min-width: 30px; }
.analysis-tier {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.03em;
}
.tier-strong { background: var(--green-dim); color: var(--green-bright); }
.tier-good { background: var(--blue-dim); color: var(--blue); }
.tier-marginal { background: var(--gold-dim); color: var(--gold); }
.tier-weak { background: var(--red-dim); color: var(--red); }

.progress-wrap {
  height: 7px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  min-width: 60px;
}
.progress-bar {
  height: 100%;
  border-radius: 3px;
  width: 50%;
  transition: width 0.4s ease, background 0.4s ease;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 45%, var(--green) 100%);
  background-size: 200% 100%;
}

.analysis-draw-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  padding: 4px 9px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,168,67,0.12);
  border-radius: var(--radius-sm);
}
.analysis-draw-row.hidden { display: none !important; }
.draw-icon { font-size: 0.9rem; }
.draw-text { font-size: 0.78rem; color: var(--gold); font-weight: 500; }

.advice-action-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.advice-action {
  font-weight: 700;
  font-size: 0.94rem;
  padding: 4px 14px;
  border-radius: 12px;
  display: inline-block;
  letter-spacing: 0.02em;
}
.advice-action-raise { background: var(--green-dim); color: var(--green-bright); }
.advice-action-call { background: var(--blue-dim); color: var(--blue); }
.advice-action-fold { background: var(--red-dim); color: var(--red); }
.advice-action-check { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); }
.advice-action-bet { background: var(--green-dim); color: var(--green-bright); }

.advice-coach {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(99, 102, 241, 0.35);
}

/* ===== Recap Panel ===== */
.analysis-recap {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin-top: 4px;
}
.analysis-recap.hidden { display: none !important; }

/* 复盘模式：recap-active class 保留兼容 */
.analysis-panel.recap-active {
  flex: 1 1 0;
}

.recap-showdown {
  font-size: 0.66rem;
  line-height: 1.65;
  color: var(--text-secondary);
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(212, 168, 67, 0.05);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-sm);
  white-space: pre-line;
}

.recap-grade-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.recap-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}
.recap-grade-S { background: linear-gradient(135deg, rgba(212,168,67,0.25), rgba(212,168,67,0.12)); color: var(--gold); border: 1px solid rgba(212,168,67,0.3); }
.recap-grade-A { background: var(--green-dim); color: var(--green-bright); border: 1px solid rgba(52,211,153,0.25); }
.recap-grade-B { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(110,168,254,0.2); }
.recap-grade-C { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(212,168,67,0.2); }
.recap-grade-D { background: var(--red-dim); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }
.recap-grade-summary {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}

.recap-chip-change {
  font-size: 0.64rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 0.02em;
}
.recap-chip-win { background: var(--green-dim); color: var(--green-bright); }
.recap-chip-lose { background: var(--red-dim); color: var(--red); }

.recap-decisions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.recap-decision {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.025);
  transition: border-color 0.25s;
}
.recap-decision:hover {
  border-color: rgba(255,255,255,0.06);
}
.recap-decision-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.recap-decision-street {
  font-size: 0.56rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.recap-decision-action {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.recap-decision-rating {
  font-size: 0.54rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: auto;
  letter-spacing: 0.02em;
}
.rating-good { background: var(--green-dim); color: var(--green-bright); }
.rating-mistake { background: var(--red-dim); color: var(--red); }
.recap-decision-analysis {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.recap-decision-suggestion {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--blue);
  margin-top: 5px;
  padding-left: 8px;
  border-left: 2px solid rgba(110,168,254,0.2);
}


/* ===== Bottom Action Panel ===== */
.bottom-panel {
  flex-shrink: 0;
  padding: 10px 14px 14px;
  background: var(--bg-elevated);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid rgba(255,255,255,0.06);
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 7px;
}
.panel-row:last-child { margin-bottom: 0; }

.panel-btn {
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.panel-btn:active { transform: scale(0.95); }

.panel-row-pot .panel-btn { flex: 1; min-width: 0; max-width: 72px; font-variant-numeric: tabular-nums; }

.panel-input {
  flex: 1;
  max-width: 100px;
  height: 36px;
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: all 0.25s ease;
}
.panel-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.panel-row-mod .panel-btn.mod { width: 36px; flex: 0; font-weight: 600; }

.panel-row-actions { gap: 6px; }
.panel-row-actions .panel-btn {
  padding: 13px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  border-radius: var(--radius-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-row-actions .fold {
  background: linear-gradient(135deg, rgba(248,113,113,0.85) 0%, rgba(185,28,28,0.85) 100%);
  color: #fff;
  flex: 1;
  max-width: 88px;
  box-shadow: 0 2px 12px rgba(248, 113, 113, 0.12);
}
.panel-row-actions .fold:hover {
  box-shadow: 0 4px 20px rgba(248, 113, 113, 0.2);
  transform: translateY(-1px);
}

.panel-row-actions .call-bet {
  background: linear-gradient(135deg, rgba(52,211,153,0.85) 0%, rgba(15,122,77,0.85) 100%);
  color: #fff;
  flex: 2;
  max-width: 155px;
  box-shadow: 0 2px 12px rgba(52, 211, 153, 0.12);
}
.panel-row-actions .call-bet:hover {
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.2);
  transform: translateY(-1px);
}

.panel-row-actions .check {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 1;
  max-width: 88px;
}
.panel-row-actions .check:hover:not(.btn-disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

.panel-row-actions .btn-disabled {
  opacity: 0.25;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===== Win Celebration ===== */
@keyframes confettiDrift {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-60px) rotate(360deg); opacity: 0; }
}
.win-confetti {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  animation: confettiDrift 1.2s ease-out forwards;
  pointer-events: none;
  z-index: 20;
}

/* ===== Side Panel ===== */
.side-panel {
  background: linear-gradient(180deg, rgba(8,11,22,0.98) 0%, rgba(6,9,18,1) 100%);
  border-left: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
}
.side-panel .analysis-panel {
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 16px 16px 12px;
}
.side-panel .bottom-panel {
  border-radius: 0;
  padding: 12px 14px 16px;
  background: transparent;
  border-top: none;
}
.side-panel .panel-btn { padding: 8px 8px; font-size: 0.74rem; }
.side-panel .panel-row-pot .panel-btn { padding: 7px 4px; font-size: 0.7rem; }
.side-panel .panel-row-actions .panel-btn { padding: 14px 10px; font-size: 0.82rem; }

/* ===== Responsive ===== */
@media (min-width: 1300px) {
  .app { max-width: 1440px; }
  .game-screen { grid-template-columns: 1fr 400px; }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid rgba(110, 168, 254, 0.5);
  outline-offset: 2px;
}
button:focus:not(:focus-visible) { outline: none; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ===== Selection ===== */
::selection { background: rgba(212,168,67,0.2); color: var(--text-primary); }
