:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--card);
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.col { flex: 1 1 300px; }

h1, h2, h3 { margin: 0 0 12px 0; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

label { display: block; margin: 8px 0 4px; color: var(--muted); }
input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #374151;
  background: #0b1220;
  color: var(--text);
}
button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: #0b1220;
  font-weight: 700;
  cursor: pointer;
}
button.danger { background: var(--danger); color: white; }
button.secondary { background: #374151; color: var(--text); }
button:disabled { opacity: .6; cursor: not-allowed; }

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td{
  padding: 8px 10px;
  border-bottom: 1px solid #1f2937;
}
.table th { text-align: left; color: var(--muted); }

.timer-big {
  font-size: clamp(48px, 12vw, 160px);
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;
  margin: 12px 0 16px;
}
.timer-warning { color: var(--warning); }
.timer-danger { color: var(--danger); }

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  background: #1f2937;
  color: var(--muted);
  font-size: 12px;
}

footer { color: var(--muted); font-size: 12px; text-align: center; padding: 12px; }
hr { border: 0; border-top: 1px solid #1f2937; margin: 16px 0; }

.form-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.form-inline .item { flex: 1 1 200px; }
