* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  margin: 0;
  background: #f4f4f7;
  color: #222;
}

header {
  background: linear-gradient(135deg, #d52b1e, #a30000);
  color: white;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

.subtitle {
  font-style: italic;
  opacity: 0.9;
}

.disclaimer {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  margin: 1.5rem auto;
  max-width: 800px;
  padding: 1.5rem;
  border-radius: 10px;
}

.disclaimer h2 {
  margin-top: 0;
  color: #856404;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

section {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.rank-row label {
  flex: 0 0 200px;
  font-weight: bold;
}

.rank-select, #new-person-input {
  flex: 1;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

button {
  background: #a30000;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}

button:hover {
  background: #7a0000;
}

#results-list li {
  padding: 0.6rem 0.3rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

#results-list li:first-child {
  font-weight: bold;
  color: #a30000;
  font-size: 1.1rem;
}

.instructions {
  color: #555;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: #777;
  font-size: 0.85rem;
}

#vote-message, #propose-message {
  font-weight: bold;
  margin-top: 0.5rem;
}
