:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22c55e;
  --danger: #ef4444;
  --warn: #f59e0b;
  --line: #334155;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
.container { max-width: 980px; margin: 0 auto; padding: 16px; }
.hero { padding: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; }
.hero.compact { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card, .subcard {
  background: rgba(17,24,39,0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.small { font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid.two { grid-template-columns: 1fr 1fr; } }
label { display:block; margin: 8px 0 6px; color: var(--muted); }
input, select, button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
  padding: 12px;
  font-size: 16px;
}
button { background: var(--accent); color: #052e16; font-weight: 700; cursor: pointer; }
button.secondary { background: #1e293b; color: var(--text); }
button.warn { background: var(--warn); color: #111827; }
button.danger { background: var(--danger); color: white; }
button + button { margin-top: 8px; }
.hidden { display: none !important; }
.result img { max-width: 220px; display: block; margin: 12px auto; background: white; padding: 8px; border-radius: 12px; }
.pill { background: #1e293b; color: var(--text); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.player-row, .log-row, .card-row {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(148,163,184,0.15);
}
.player-row:last-child, .log-row:last-child, .card-row:last-child { border-bottom: none; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); }
.badge.turn { background: rgba(34,197,94,0.15); color: #86efac; }
.badge.out { background: rgba(239,68,68,0.12); color: #fca5a5; }
.note { color: var(--muted); font-size: 14px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.role-chip { background: #0b1220; border: 1px solid var(--line); padding: 8px 10px; border-radius: 999px; font-size: 14px; }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions-grid.full { grid-template-columns: 1fr; }
.inline-form { display: grid; gap: 8px; margin-top: 12px; }
.muted { color: var(--muted); }
.success { color: #86efac; }
.warning { color: #fcd34d; }
.error { color: #fca5a5; }
