:root {
  color-scheme: light;
  --ink: #142022;
  --muted: #627174;
  --paper: #fbf8f1;
  --panel: #ffffff;
  --line: #dfe6df;
  --teal: #0f7d7e;
  --teal-dark: #075052;
  --coral: #f06543;
  --lime: #b7d94c;
  --amber: #f5b84b;
  --shadow: 0 24px 80px rgba(13, 34, 35, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 125, 126, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(240, 101, 67, 0.10), transparent 34%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.hero {
  position: relative;
  min-height: clamp(470px, 70vh, 680px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #0a2528;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(5, 30, 32, 0.92) 0%, rgba(5, 30, 32, 0.70) 39%, rgba(5, 30, 32, 0.08) 78%),
    linear-gradient(0deg, rgba(5, 30, 32, 0.50), transparent 42%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  padding: clamp(28px, 7vw, 84px);
  color: #fffaf1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--teal);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 9ch;
  font-size: clamp(3.35rem, 10vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: 520px;
  margin-bottom: 30px;
  color: rgba(255, 250, 241, 0.82);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.65;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
  color: rgba(255, 250, 241, 0.78);
  font-size: 0.9rem;
}

.hero__stats strong {
  color: #fff;
  font-size: 1rem;
}

.board {
  margin-top: 28px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 60px rgba(13, 34, 35, 0.08);
}

.board__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: end;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1;
  letter-spacing: 0;
}

.select-wrap {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

select {
  min-width: 180px;
  height: 44px;
  border: 1px solid #cbd8d4;
  border-radius: 8px;
  padding: 0 38px 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ride-card {
  display: grid;
  grid-template-columns: minmax(54px, 70px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(13, 34, 35, 0.06);
}

.rank {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.ride-card:first-child .rank {
  background: var(--coral);
}

.ride-card:nth-child(2) .rank {
  background: var(--teal);
}

.ride-card:nth-child(3) .rank {
  background: var(--amber);
  color: #352719;
}

.ride-main {
  min-width: 0;
}

.ride-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.ride-title h3 {
  margin: 0;
  font-size: clamp(1.13rem, 2.2vw, 1.45rem);
  letter-spacing: 0;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 125, 126, 0.10);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.meta {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs li {
  padding: 7px 9px;
  border-radius: 8px;
  background: #f2f5ef;
  color: #405052;
  font-size: 0.84rem;
  font-weight: 700;
}

.score {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.score strong {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--teal-dark);
}

.score span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status {
  margin: 18px 0 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    min-height: 620px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(5, 30, 32, 0.40), rgba(5, 30, 32, 0.94) 58%),
      linear-gradient(90deg, rgba(5, 30, 32, 0.62), transparent);
  }

  .hero__content {
    display: flex;
    min-height: 620px;
    flex-direction: column;
    justify-content: end;
    padding: 28px 22px;
  }

  h1 {
    max-width: 8ch;
  }

  .board__header,
  .ride-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .board__header {
    display: grid;
  }

  .controls {
    display: grid;
    justify-content: stretch;
  }

  select {
    width: 100%;
  }

  .ride-card {
    min-height: auto;
  }

  .score {
    justify-items: start;
    grid-template-columns: auto auto;
    align-items: baseline;
  }
}
