:root {
  --bg: #14161a;
  --panel: #1e2126;
  --border: #33383f;
  --text: #e8eaed;
  --muted: #9aa1ab;
  --accent: #4fa8ff;
  --blue: #4f8dff;
  --amber: #ffb020;
  --coral: #ff5d6c;
  --danger: #ff5d6c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 720px;
  padding: 24px 16px 60px;
}

h1 { font-size: 1.4rem; margin: 0 0 16px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

label { display: block; font-size: 0.85rem; color: var(--muted); margin: 12px 0 4px; }

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  background: #101216;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
}

input[type="number"] {
  width: 100px;
  padding: 8px 10px;
  background: #101216;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

button {
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #262b33;
  color: var(--text);
  cursor: pointer;
}

button.primary { background: var(--accent); border-color: var(--accent); color: #0a0f16; font-weight: 600; }
button.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

.room-code {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.score-bar { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 0.95rem; }
.score-bar .you { color: var(--accent); font-weight: 600; }

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.card {
  background: #101216;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  min-height: 90px;
}

.card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(79, 168, 255, 0.4); }
.card svg { width: 34px; height: 34px; }

.status-line { min-height: 1.4em; color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }

.banner {
  background: #3a2c1a;
  border: 1px solid #a97a2b;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.error-text { color: var(--danger); font-size: 0.85rem; margin-top: 6px; min-height: 1.2em; }
