:root {
  --bg: #0c0f15;
  --panel: #131923;
  --card: #1b2230;
  --line: #2a3448;
  --text: #e6ebf5;
  --muted: #95a4bf;
  --green: #45d483;
  --yellow: #f3bd4f;
  --red: #f56b6b;
  --blue: #5ea3ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, #101520 0%, #0c0f15 100%);
  color: var(--text);
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr 360px;
}

.panel {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 16px;
  overflow-y: auto;
}

.panel-right {
  border-right: none;
  border-left: 1px solid var(--line);
}

h1 { margin: 0 0 8px; font-size: 1.5rem; }
h2 { margin: 0 0 10px; font-size: 1rem; }

.block {
  margin-top: 14px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.muted { color: var(--muted); margin: 0; }
.small { font-size: 0.83rem; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.btn {
  border: 1px solid var(--line);
  background: #232c3d;
  color: var(--text);
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #071123; border-color: #4a8ae0; }
.btn-danger { background: #69313a; border-color: #8f3f4f; }

.spot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spot-grid div {
  background: #20293a;
  border: 1px solid #2d3850;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spot-grid span { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }

.log {
  margin: 0;
  height: 220px;
  overflow: auto;
  background: #111722;
  border: 1px solid #27324a;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.table-wrap {
  padding: 18px;
}

.table-surface {
  height: calc(100vh - 36px);
  background: radial-gradient(circle at center, #1c3b2a 0%, #102818 70%, #0a1b12 100%);
  border: 1px solid #244733;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.cards { display: flex; gap: 8px; flex-wrap: wrap; }
.board { justify-content: center; min-height: 58px; margin-bottom: 16px; }

.card {
  width: 40px;
  height: 54px;
  border: 1px solid #4b5b77;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fbff;
  color: #101726;
  font-weight: 700;
}

.card.back { background: #25324a; color: #9db4d7; }

.players {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 10px;
  overflow: auto;
}

.player {
  background: rgba(13, 21, 36, 0.86);
  border: 1px solid #2c4462;
  border-radius: 10px;
  padding: 8px;
}

.player.current { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.player.folded { opacity: 0.5; }

.player-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
}

.hint { margin: 0; color: #d9e4ff; font-size: 0.95rem; }

.mix-bars { display: grid; gap: 8px; }
.mix-row { display: grid; grid-template-columns: 88px 1fr 42px; gap: 8px; align-items: center; }
.bar-track { width: 100%; height: 10px; background: #0f1521; border: 1px solid #2a3651; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; }

.range-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
}

.cell {
  aspect-ratio: 1;
  border-radius: 4px;
  font-size: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.bot-profiles { display: grid; gap: 6px; font-size: 0.83rem; }
.bot-line { display: flex; justify-content: space-between; background: #1a2333; border: 1px solid #2d3a53; border-radius: 8px; padding: 6px 8px; }

@media (max-width: 1280px) {
  .layout { grid-template-columns: 1fr; }
  .panel-right, .panel { border: none; }
  .table-surface { height: auto; min-height: 480px; }
}
