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

:root {
  --primary: #6c5ce7;
  --accent: #00b894;
  --danger: #d63031;
  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #dfe6e9;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

header {
  text-align: center;
  padding: 24px 0 16px;
}

header h1 {
  font-size: 1.8rem;
  color: var(--primary);
}

.subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert-error {
  background: #ffeaea;
  color: var(--danger);
}

/* Empty state */
.empty {
  text-align: center;
  padding: 32px;
  color: var(--text-light);
}

/* Participant list */
.participant-list {
  list-style: none;
}

.participant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.participant-item:last-child {
  border-bottom: none;
}

.participant-name {
  font-weight: 500;
}

.participant-prediction {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Winner */
.participant-item-winner {
  background: #99FF99;
  border-radius: 4px;
  padding-left: 8px;
}

.participant-winner {
  font-weight: 800;
  color: #00cc00;
  font-size: 1.2rem;
}

/* Past-due participants */
.participant-past-due {
  text-decoration: line-through;
  color: var(--text-light);
}

@media (max-width: 400px) {
  #app { padding: 12px; }
  header h1 { font-size: 1.5rem; }
}
