:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --success: #3fb950;
  --error: #f85149;
}

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

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

header {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}

header h1 { font-size: 2.5rem; margin-bottom: 0.25rem; }
.subtitle  { color: var(--muted); margin-bottom: 0.75rem; }

.versions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
}

.versions span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  font-family: monospace;
}

main {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* Form */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

form { display: flex; flex-direction: column; gap: 0.75rem; }

input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
select option { background: var(--surface); }

button[type=submit] {
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #000;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem;
  transition: opacity .2s;
}
button[type=submit]:hover   { opacity: .85; }
button[type=submit]:disabled { opacity: .5; cursor: not-allowed; }

#form-status { font-size: 0.9rem; margin-top: 0.5rem; }
#form-status.success { color: var(--success); }
#form-status.error   { color: var(--error); }

/* Cheers list */
.cheers-section { display: flex; flex-direction: column; gap: 0; }

.cheer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}

.cheer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.cheer-name { font-weight: 600; }

.cheer-team {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.cheer-date { font-size: 0.78rem; color: var(--muted); margin-left: auto; }

.cheer-message { color: var(--text); line-height: 1.5; }

.loading, .empty, .error { color: var(--muted); text-align: center; padding: 2rem; }
.error { color: var(--error); }
