* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f4f5f7;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: #3498db;
  color: #fff;
  transition: background 0.15s, opacity 0.15s, box-shadow 0.15s;
  line-height: 1.2;
}

.btn:hover:not(:disabled) {
  background: #2980b9;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: #3498db;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #2980b9;
}

.btn-secondary {
  background: #fff;
  color: #444;
  border: 1px solid #d0d0d0;
}

.btn-secondary:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #aaa;
}

.btn-success {
  background: #27ae60;
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background: #219a52;
}

.btn-success.ready-active {
  background: #e74c3c;
}

.btn-success.ready-active:hover:not(:disabled) {
  background: #c0392b;
}

.btn-ghost {
  background: transparent;
  color: #666;
  border: 1px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: #eee;
  color: #333;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* ── Form elements ── */
.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  color: #222;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.text-input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.text-input::placeholder {
  color: #aaa;
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-row .text-input {
  flex: 1;
  min-width: 0;
}

.team-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Shared section styles ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.panel-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
}

.status-bar {
  font-size: 0.82rem;
  color: #777;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.4;
}

.status-bar.error {
  color: #c0392b;
}

.status-bar.success {
  color: #27ae60;
}

.countdown-big {
  font-size: 1.2rem;
  font-weight: 700;
  color: #27ae60;
}
