:root {
  color-scheme: light dark;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: #0b1020;
  color: #eef2ff;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
}

main {
  width: min(42rem, calc(100% - 3rem));
}

.eyebrow {
  color: #8da2fb;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.98;
}

.tagline {
  margin: 1.5rem 0;
  color: #c7d2fe;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
}

.status {
  max-width: 36rem;
  color: #aeb9d4;
  line-height: 1.7;
}

.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  background: #344a86;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cta:hover,
.cta:focus-visible {
  background: #4964ad;
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.home-actions,
.page-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.text-link,
.page-nav a,
.empty-state a {
  color: #a5b4fc;
}

.arena-page {
  display: block;
}

.arena-shell {
  width: min(90rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.arena-header {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.arena-header h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

.arena-header p,
.blind-note,
.section-label,
.prompt-rating legend {
  color: #aeb9d4;
}

.brand {
  color: #c7d2fe;
  font-weight: 700;
  text-decoration: none;
}

.prompt,
.prompt-rating,
.response-card,
.empty-state {
  border: 1px solid #293354;
  border-radius: 1rem;
  background: #11182c;
}

.prompt,
.empty-state {
  padding: 1.5rem;
}

.prompt p:last-child {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.65;
}

.section-label {
  margin-top: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vote-form {
  margin-top: 1rem;
}

.prompt-rating {
  margin: 0;
  padding: 1rem 1.5rem;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

.responses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.response-card {
  padding: 1.5rem;
}

.response-card h2 {
  margin-top: 0;
  color: #c7d2fe;
}

.response-text {
  line-height: 1.65;
}

.vote-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

button {
  min-height: 3rem;
  border: 1px solid #5265a8;
  border-radius: 0.75rem;
  background: #253563;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #344a86;
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.vote-row-secondary button {
  background: #18213a;
  font-weight: 500;
}

.empty-state {
  max-width: 42rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #293354;
  border-radius: 1rem;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  background: #11182c;
}

.rankings-table th,
.rankings-table td {
  padding: 1rem;
  border-bottom: 1px solid #293354;
  text-align: right;
}

.rankings-table th:nth-child(2),
.rankings-table td:nth-child(2) {
  text-align: left;
}

.rankings-table tbody tr:last-child th,
.rankings-table tbody tr:last-child td {
  border-bottom: 0;
}

.ranking-note {
  color: #aeb9d4;
  line-height: 1.6;
}

@media (max-width: 48rem) {
  .responses {
    grid-template-columns: 1fr;
  }

  .vote-row {
    grid-template-columns: 1fr;
  }
}
