:root {
  --bg: #0f1020;
  --card: #1b1c34;
  --accent: #ff5d8f;
  --text: #f2f2f7;
  --muted: #9a9ab0;
}

* { box-sizing: border-box; }

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

main {
  width: 100%;
  max-width: 520px;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}
.logos img { height: 72px; width: auto; }

h1 { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.2; }
.subhed { color: var(--accent); font-weight: 600; margin: 0 0 16px; letter-spacing: 0.02em; text-align: center; }
.subtitle { color: var(--muted); margin: 0 0 24px; }

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }

input[type="email"], input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #33344f;
  background: #12132a;
  color: var(--text);
  font-size: 1rem;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: default; }
button.secondary { background: #33344f; }
button.danger { background: #c0392b; padding: 8px 12px; font-size: 0.85rem; }

.taboo-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #12132a;
  margin-bottom: 8px;
  cursor: pointer;
}
.taboo-option input { width: auto; }

.preview .taboo-option { cursor: default; }
.preview .taboo-option input { display: none; }

#vote-subtitle { text-align: center; }

.your-vote {
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ff8f5d;
  margin: 0 0 12px;
}

#register-btn:not(.hidden) {
  display: block;
  margin: 16px auto 0;
}

#status .msg { text-align: center; }

.list-heading {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

#change-vote-btn:not(.hidden) {
  display: block;
  margin: 0 auto 16px;
}

.voter-note {
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1f2a3a;
  color: #9bc6ff;
  font-weight: 600;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #12132a;
  margin-bottom: 8px;
}

.actions { display: flex; gap: 8px; flex-shrink: 0; }
.row .edit-input { flex: 1; padding: 8px 12px; font-size: 0.95rem; }
.row button { padding: 8px 12px; font-size: 0.85rem; }

.result {
  margin-bottom: 10px;
}
.result-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.bar {
  height: 14px;
  border-radius: 7px;
  background: #33344f;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff5d8f, #ff8f5d);
  width: 0;
  transition: width 0.6s ease;
}

.result-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; }
.msg.error { background: #3a1f2a; color: #ff9bb6; }
.msg.info { background: #1f2a3a; color: #9bc6ff; }

.spread { display: flex; gap: 10px; }
.spread input { flex: 1; }

a.nav { color: var(--muted); font-size: 0.85rem; }
.hidden { display: none; }

.toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle button {
  flex: 1;
  min-width: 110px;
  background: #12132a;
  border: 1px solid #33344f;
  color: var(--muted);
  font-weight: 500;
}
.toggle button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
