:root {
  --felt: #0b5d3b;
  --felt-dark: #083f29;
  --ink: #f4f1e8;
  --card: #fffdf7;
  --red: #c0272d;
  --accent: #f2c14e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--felt-dark);
  color: var(--ink);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
}

h1 { text-align: center; margin: 0.5rem 0 1rem; }
h2 { font-size: 1rem; margin: 0.5rem 0; }

.panel, .seat, .scoreboard {
  background: var(--felt);
  border-radius: 12px;
  padding: 1rem;
}

.panel { display: grid; gap: 1rem; }

.row { display: flex; gap: 0.5rem; }

input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  border-radius: 8px;
  border: 0;
  font-size: 1rem;
  text-transform: none;
}

button {
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  background: var(--ink);
  color: #1b1b1b;
}

button.primary { background: var(--accent); font-weight: 600; }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.banner {
  background: var(--accent);
  color: #1b1b1b;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
}

.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.seat { margin-bottom: 0.75rem; }
.seat.me { outline: 2px solid var(--accent); }
.seat.active { box-shadow: 0 0 0 3px var(--accent); }
.seat .name { font-weight: 600; }
.seat .status { opacity: 0.85; font-size: 0.9rem; }
.seat .outcome-win { color: var(--accent); font-weight: 700; }
.seat .outcome-lose { color: #ff9b9b; font-weight: 700; }
.seat .offline { opacity: 0.6; }

.total { opacity: 0.8; font-weight: 400; }

.cards { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 4.4rem; margin-top: 0.4rem; }

.card {
  width: 3rem;
  height: 4.2rem;
  border-radius: 6px;
  background: var(--card);
  color: #1b1b1b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.card .suit { font-size: 1.4rem; line-height: 1; }
.card.red { color: var(--red); }

.card.hidden {
  background: repeating-linear-gradient(45deg, #1d3f8a, #1d3f8a 6px, #2a56b8 6px, #2a56b8 12px);
}

.card.hidden span { display: none; }

.turn-info { text-align: center; min-height: 1.5rem; font-weight: 600; }

.actions { display: flex; gap: 0.5rem; margin: 1rem 0; }
.actions button { flex: 1; }

.scoreboard { width: 100%; border-collapse: collapse; }
.scoreboard th, .scoreboard td { text-align: left; padding: 0.35rem 0.25rem; }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  .card { width: 2.6rem; height: 3.7rem; }
  .row { flex-direction: column; }
}
