:root {
  --bg: #f1ede4;
  --panel: #fffaf2;
  --ink: #1d1d1d;
  --accent: #8b1e1e;
  --accent-soft: #e7c8b8;
  --line: #d7ccbe;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #fffefb 0, #fffefb 15%, transparent 45%),
    linear-gradient(135deg, #ebe2d4 0%, var(--bg) 45%, #e4ddd1 100%);
}

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

.hero,
.grid-two,
.live-grid {
  display: grid;
  gap: 1rem;
}

.hero {
  grid-template-columns: 1.5fr auto;
  align-items: end;
  margin-bottom: 1rem;
}

.eyebrow,
.live-badge,
.subtle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.lede {
  max-width: 46rem;
  font-size: 1.15rem;
}

.activator-link {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
}

.grid-two,
.live-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.card {
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  backdrop-filter: blur(6px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.empty {
  text-align: center;
  color: #6d645d;
}

.stats {
  display: grid;
  gap: 1rem;
}

.stat {
  background: var(--accent-soft);
  padding: 0.9rem 1rem;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
}

.stat strong {
  font-size: 1.5rem;
}

.stat-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat-block li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.stats-row {
  margin-top: 1rem;
}

.stats-row .card .stats {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-template-rows: auto;
}

/* Slot status panel */
.slot-grid {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.slot-lamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 5rem;
  height: 5rem;
  border-radius: 14px;
  cursor: default;
  border: 1px solid transparent;
}

.slot-band {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.slot-mode {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.slot-green {
  background: #2e5e3a;
  color: #c8e6c4;
  border-color: #3d7a4d;
}

.slot-yellow {
  background: #5c4a14;
  color: #e8d79a;
  border-color: #7a6520;
}

.slot-red {
  background: #5c2020;
  color: #e8b8b8;
  border-color: #7a3030;
}

.slot-empty {
  margin: 0.5rem 0;
  color: #6d645d;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero,
  .grid-two,
  .live-grid {
    grid-template-columns: 1fr;
  }
}
