:root {
  --bg: #0f1f1c;
  --felt: #17614f;
  --felt-dark: #0f3f35;
  --panel: #142b28;
  --line: #2e6156;
  --text: #f7fbf8;
  --muted: #b8cbc4;
  --gold: #f5c451;
  --red: #e64b5d;
  --black: #17202a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #12332d 0%, var(--bg) 54%, #081311 100%);
  color: var(--text);
}
button, input { font: inherit; }
button {
  border: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-shell {
  width: min(760px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 16px 14px 24px;
}
.topbar, .status-band, .hand-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eyebrow, .label, .status-label {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  line-height: .95;
}
.icon-button, .primary, .secondary {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
}
.icon-button {
  width: 48px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.primary {
  padding: 0 16px;
  background: var(--gold);
  color: #111827;
}
.secondary {
  padding: 0 12px;
  background: #1c3834;
  border: 1px solid var(--line);
}
.secondary.danger {
  border-color: rgba(230,75,93,.58);
  color: #ffd2d8;
}
button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.status-band, .hand-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(245,196,81,.28);
  border-radius: 8px;
  background: rgba(20,43,40,.88);
}
.status-text, .mini-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}
.table {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(245,196,81,.24);
  border-radius: 8px;
  background: var(--felt-dark);
}
.table-center {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 180px;
  border-radius: 999px;
  border: 12px solid #6b3f27;
  background: radial-gradient(circle, #1f8069, var(--felt));
  box-shadow: inset 0 0 28px rgba(0,0,0,.34);
}
.pot {
  display: grid;
  place-items: center;
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8,19,17,.58);
}
.pot span, .phase {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}
.pot strong {
  font-size: 1.35rem;
}
.phase {
  margin: 0 0 8px;
}
.community, .hand {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 82px;
}
.card {
  display: grid;
  place-items: center;
  width: 54px;
  height: 76px;
  border-radius: 8px;
  border: 2px solid rgba(248,250,252,.92);
  background: #f8fafc;
  color: var(--black);
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
}
.art-card {
  text-indent: -9999px;
  overflow: hidden;
}
.card.red {
  color: var(--red);
}
.card.back {
  background: repeating-linear-gradient(45deg, #243b55 0 8px, #16263a 8px 16px);
}
.card.muted {
  opacity: .82;
}
.seats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.seat {
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20,43,40,.86);
}
.seat span, .seat small {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seat strong {
  display: block;
  margin: 4px 0;
}
.seat.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245,196,81,.16);
}
.seat.folded {
  opacity: .58;
}
.bet-box {
  display: grid;
  gap: 4px;
  min-width: 108px;
}
.bet-box label {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.bet-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #0d211e;
  color: var(--text);
  font-weight: 900;
}
.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.mini-note {
  margin-top: 12px;
}
@media (max-width: 560px) {
  .status-band, .hand-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .seats, .actions {
    grid-template-columns: repeat(2, 1fr);
  }
}
