:root {
  --felt: #0a5c36;
  --felt-dark: #074d2c;
  --gold: #d4af37;
  --gold-light: #f4e4a6;
  --card-white: #fffef7;
  --text-light: #e8f5e9;
  --red: #c62828;
  --blue: #1565c0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--felt-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app {
  max-width: 720px;
  width: 100%;
  padding: 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

header h1 {
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.subtitle {
  opacity: 0.9;
  font-size: 0.95rem;
}

.game-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.pot {
  color: var(--gold-light);
}

.table {
  background: var(--felt);
  border: 4px solid var(--gold);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.player-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.player-ai {
  margin-bottom: 1rem;
}

.player-human {
  margin-top: 1rem;
}

.player-name {
  font-weight: 600;
  min-width: 80px;
}

.player-chips {
  color: var(--gold-light);
  font-size: 0.9rem;
}

.cards {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.card {
  width: 44px;
  height: 62px;
  background: var(--card-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card.red { color: var(--red); }
.card.black { color: #1a1a1a; }

.community-area {
  text-align: center;
  padding: 1rem;
  min-height: 80px;
}

.community-cards {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.current-bet {
  font-size: 0.85rem;
  opacity: 0.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.actions.hidden {
  display: none;
}

.btn {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-fold { background: #6d4c41; color: white; }
.btn-check { background: #78909c; color: white; }
.btn-call { background: var(--blue); color: white; }
.btn-allin { background: var(--red); color: white; }
.btn-primary { background: var(--gold); color: #1a1a1a; }

.raise-group {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

#raise-amount {
  width: 80px;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  font-size: 0.95rem;
}

.btn-raise { background: #6a1b9a; color: white; }

.start-hand {
  text-align: center;
  margin-bottom: 1rem;
}

.start-hand.hidden {
  display: none;
}

.message {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gold-light);
  min-height: 1.5em;
}

.result {
  text-align: center;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 1rem;
}

.result.hidden {
  display: none;
}

.result.winner {
  color: var(--gold);
  font-weight: 600;
}
