* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #0f1220;
  color: #f2f3f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 60px;
}
h1 { font-size: 1.6rem; margin: 8px 0 4px; }
.subtitle { color: #9aa0c3; margin-bottom: 24px; text-align: center; }
.card {
  background: #1a1e33;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #333a5c;
  background: #0f1220;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}
button {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: #5b6bff; color: white; }
.btn-primary:hover:not(:disabled) { background: #4757e6; }
.btn-secondary { background: #2b3054; color: #cfd3ff; }
.btn-danger { background: #40203a; color: #ff9ecb; }

.buzz-btn {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #33395f;
  color: #6b729c;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease;
}
.buzz-btn.live {
  background: #ff3b5c;
  color: white;
  box-shadow: 0 0 0 8px rgba(255,59,92,0.15);
}
.buzz-btn.live:active { transform: scale(0.96); }
.buzz-btn.pressed {
  background: #22c55e;
  color: white;
}

.status-line { text-align: center; font-size: 1.05rem; margin: 14px 0; min-height: 1.4em; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: #2b3054;
  color: #cfd3ff;
  margin-left: 6px;
}
.badge.winner { background: #16401f; color: #7ef29a; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #262b4a; }
th { color: #9aa0c3; font-weight: 600; }
tr:last-child td { border-bottom: none; }

.timer-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 6px;
  background: #262b4a;
  overflow: hidden;
  margin: 4px 0 16px;
}
.timer-bar-fill {
  height: 100%;
  background: #ff3b5c;
  width: 100%;
  transform-origin: left;
}

.section-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #9aa0c3; margin: 0 0 10px; }
.empty-hint { color: #6b729c; font-size: 0.9rem; text-align: center; padding: 8px 0; }
.conn-list { display: flex; flex-wrap: wrap; gap: 6px; }
