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

body {
  font-family: system-ui, sans-serif;
  background: #f5f5f3;
  color: #1a1a18;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1 { font-size: 1.5rem; font-weight: 500; }
.subtitle { font-size: 0.9rem; color: #666; }

#name-input {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #d0d0cc;
  border-radius: 8px;
  background: #fff;
}

#name-input:focus { outline: none; border-color: #888; }

#generate-btn {
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid #d0d0cc;
  border-radius: 8px;
  background: #fff;
  transition: background 0.15s;
}

#generate-btn:hover { background: #eee; }
#generate-btn:active { transform: scale(0.98); }

.error { font-size: 0.85rem; color: #c0392b; min-height: 1rem; }

#results { display: flex; flex-direction: column; gap: 1rem; }

.meta { font-size: 0.85rem; color: #666; }

.day-card {
  background: #fff;
  border: 1px solid #e0e0dc;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.day-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.pair-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f5f5f3;
  border-radius: 8px;
  font-size: 0.875rem;
}

.pair-vs { font-size: 0.75rem; color: #aaa; }
.bye-pill { color: #888; font-style: italic; }