:root {
  --paper: #f3eee4;
  --ink: #1a1d22;
  --accent: #c2622d;
  --accent-soft: #f7d5c2;
  --a: #246a4d;
  --b: #9e2d2d;
  --muted: #5f6470;
  --panel: #fffdf8;
  --line: #ddd4c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 0, #f8f1e3 0, transparent 32%),
    radial-gradient(circle at 100% 100%, #ecdcc7 0, transparent 38%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

.page {
  width: min(920px, 94vw);
  margin: 0 auto;
  padding: 28px 0 44px;
}

.hero {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  border-color: #d8ccbb;
  background:
    linear-gradient(180deg, rgba(214, 32, 39, 0.08) 0%, rgba(255, 255, 255, 0.7) 38%, rgba(37, 54, 86, 0.08) 100%),
    #fffdf8;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(214, 32, 39, 0.2) 0, rgba(214, 32, 39, 0) 26%),
    radial-gradient(circle at 90% 88%, rgba(37, 54, 86, 0.2) 0, rgba(37, 54, 86, 0) 28%);
  pointer-events: none;
}

.landing-hero > * {
  position: relative;
  z-index: 1;
}

.london-skyline {
  width: 100%;
  height: 56px;
  margin: -2px 0 14px;
  border-radius: 10px;
  background-color: #18243b;
  background-repeat: repeat-x;
  background-size: auto 56px;
  background-position: bottom;
  box-shadow: inset 0 -10px 24px rgba(0, 0, 0, 0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='56' viewBox='0 0 420 56'%3E%3Crect width='420' height='56' fill='%2318243b'/%3E%3Crect x='0' y='33' width='40' height='23' fill='%230f1728'/%3E%3Crect x='36' y='20' width='14' height='36' fill='%230f1728'/%3E%3Crect x='50' y='28' width='30' height='28' fill='%230f1728'/%3E%3Crect x='84' y='16' width='16' height='40' fill='%230f1728'/%3E%3Cpolygon points='92,8 100,16 84,16' fill='%230f1728'/%3E%3Crect x='106' y='34' width='36' height='22' fill='%230f1728'/%3E%3Crect x='148' y='30' width='22' height='26' fill='%230f1728'/%3E%3Crect x='174' y='12' width='7' height='44' fill='%230f1728'/%3E%3Crect x='186' y='26' width='30' height='30' fill='%230f1728'/%3E%3Crect x='222' y='18' width='11' height='38' fill='%230f1728'/%3E%3Crect x='236' y='32' width='30' height='24' fill='%230f1728'/%3E%3Crect x='272' y='25' width='20' height='31' fill='%230f1728'/%3E%3Crect x='296' y='10' width='12' height='46' fill='%230f1728'/%3E%3Cpolygon points='302,4 308,10 296,10' fill='%230f1728'/%3E%3Crect x='312' y='35' width='26' height='21' fill='%230f1728'/%3E%3Crect x='342' y='27' width='28' height='29' fill='%230f1728'/%3E%3Crect x='374' y='20' width='12' height='36' fill='%230f1728'/%3E%3Crect x='390' y='33' width='30' height='23' fill='%230f1728'/%3E%3C/svg%3E");
}

.landing-subtitle {
  max-width: 42ch;
}

.landing-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.landing-btn {
  width: 100%;
  min-height: 46px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.team-a-btn {
  background: #1f6b50;
}

.team-b-btn {
  background: #992a2f;
}

.leaders-btn {
  background: #e9dfd2;
}

.landing-note {
  margin-top: 14px;
  font-size: 12px;
}

.kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.links {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn,
button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.secondary,
button.secondary {
  background: #ece6db;
  color: var(--ink);
}

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 12;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.card.team-a {
  border-left: 5px solid var(--a);
}

.card.team-b {
  border-left: 5px solid var(--b);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  background: var(--accent-soft);
  color: #73320f;
}

.stop-title {
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.hints {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hints li {
  border: 1px solid var(--line);
  background: #fdfaf3;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.task {
  margin-top: 12px;
  border-radius: 10px;
  padding: 10px;
  background: #f5efe3;
  font-size: 14px;
}

.stop-stack {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.stop-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fffdf8;
}

.stop-section.current {
  border-color: #d8bf96;
  background: #fff7ea;
}

.stop-section.completed {
  border-color: #d9d4cb;
  background: #faf8f2;
}

.mono {
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}

.login {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

input {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
}

.team-controls {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notice {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .half {
    grid-column: span 6;
  }

  .landing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
