:root {
  --bg: #0b1021;
  --card: #151b34;
  --accent: #4ade80;
  --muted: #94a3b8;
  --danger: #ef4444;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
  background: var(--bg);
  color: #e5e7eb;
}
.wrap {
  max-width: 980px;
  margin: 32px auto;
  padding: 0 16px;
}
h1 {
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.panel {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-right: 8px;
}
input {
  background: #0f1530;
  border: 1px solid #273158;
  color: #e5e7eb;
  padding: 8px 12px;
  border-radius: 10px;
  outline: none;
}
button {
  background: #1f2a5a;
  border: 1px solid #273158;
  color: #e5e7eb;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.15s transform, 0.15s opacity;
}
button:hover {
  transform: translateY(-1px);
}
button.badge,
.badge {
  background: #0f1530;
  color: #93c5fd;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #1e293b;
}
button.danger,
.danger {
  background: #34151b;
  border-color: #7f1d1d;
  color: #fecaca;
}
.hint {
  color: var(--muted);
  font-size: 14px;
}
.room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.dealer {
  margin-top: 8px;
}
.players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.card {
  background: #10173a;
  border: 1px solid #1d2957;
  border-radius: 14px;
  padding: 12px;
}
.player .name {
  font-weight: 700;
}
.value {
  color: #cbd5e1;
  font-size: 13px;
  margin-top: 6px;
}
.hand {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.playing #hit,
.playing #stand {
  margin-right: 6px;
}
.controls {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hostOnly {
  outline: 1px dashed #334155;
}
.chips {
  color: var(--accent);
  font-weight: 700;
}
.bet {
  color: #93c5fd;
  font-weight: 600;
}

/* carte semplici */
.cardface {
  background: #0b122b;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 44px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.cardface.heart,
.cardface.diamond {
  color: #fca5a5;
}
.cardface.spade,
.cardface.club {
  color: #e5e7eb;
}
