:root {
  --bg: #ffeada;
  --text: #062e59;
  --muted: rgba(6, 46, 89, 0.72);
  --blue: #062e59;
  --cream: #ffeada;
  --red: #f55142;
  --gold: #f5bf4d;
  --gold-light: #ffe59c;
  --silver-bg: #dde2e6;
  --silver-text: #69717a;
  --bronze-bg: #d8b09a;
  --bronze-text: #7a4d33;
  --card-border: rgba(6, 46, 89, 0.12);
  --card-bg: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.app-shell {
  min-height: 100vh;
}

.hero-section {
  position: relative;
  min-height: 337px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--blue);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("./hero-decoration.png");
  background-repeat: no-repeat;
  background-size: 629px 418px;
  background-position: calc(50% + 515px) -191px;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 337px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 42px;
  padding-bottom: 30px;
  text-align: center;
  color: var(--cream);
}

.hero-logo {
  width: min(414px, 88vw);
  height: auto;
}

.hero-brand {
  width: min(179px, 42vw);
  height: auto;
  margin-top: 36px;
}

.content-wrap {
  padding: 64px 0 80px;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-kicker {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 14px 0 12px;
  color: var(--blue);
  font-size: clamp(1.9rem, 4.3vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.loading-state,
.status-message {
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 18px 20px;
  border-radius: 18px;
  text-align: center;
}

.loading-state {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--card-border);
}

.status-message--error {
  color: #9d251b;
  background: rgba(245, 81, 66, 0.08);
  border: 1px solid rgba(245, 81, 66, 0.22);
}

.podium-grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 52px;
}

.podium-column {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-column--second {
  order: 1;
}

.podium-column--first {
  order: 2;
}

.podium-column--third {
  order: 3;
}

.podium-meta {
  margin-bottom: 14px;
  text-align: center;
}

.podium-meta strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--blue);
}

.podium-meta span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.podium-badge {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border-radius: 999px;
  font-size: 1.7rem;
}

.podium-badge--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #3e2d06;
}

.podium-badge--silver {
  background: var(--silver-bg);
  color: var(--silver-text);
}

.podium-badge--bronze {
  background: var(--bronze-bg);
  color: var(--bronze-text);
}

.podium-base {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 22px;
  border-radius: 22px 22px 0 0;
}

.podium-base span {
  font-size: 2.5rem;
  font-weight: 900;
}

.podium-base--1 {
  height: 240px;
  background: linear-gradient(180deg, #0c4f91, var(--blue));
  color: #fff;
}

.podium-base--2 {
  height: 180px;
  background: rgba(171, 181, 189, 0.4);
  color: #6d7278;
}

.podium-base--3 {
  height: 140px;
  background: rgba(165, 104, 68, 0.28);
  color: #915b3d;
}

.ranking-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: var(--card-bg);
}

.ranking-position {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(6, 46, 89, 0.08);
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.ranking-name {
  min-width: 0;
  font-weight: 600;
  color: var(--text);
}

.ranking-value {
  white-space: nowrap;
  font-weight: 800;
  color: var(--text);
}

@media (max-width: 760px) {
  .hero-section {
    min-height: 320px;
  }

  .hero-content {
    min-height: 320px;
  }

  .content-wrap {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .podium-grid {
    gap: 14px;
  }

  .podium-column {
    width: 140px;
  }

  .ranking-row {
    grid-template-columns: 56px 1fr;
  }

  .ranking-value {
    grid-column: 2;
  }
}

@media (max-width: 500px) {
  .hero-section,
  .hero-content {
    min-height: 300px;
  }

  .hero-overlay {
    background-size: 500px 332px;
    background-position: calc(50% + 250px) -120px;
  }

  .hero-brand {
    margin-top: 30px;
  }

  .podium-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 24px;
  }

  .podium-column {
    width: 100%;
    order: initial !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: 0 10px 24px rgba(6, 46, 89, 0.08);
  }

  .podium-meta {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
  }

  .podium-badge {
    width: 42px;
    height: 42px;
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 1rem;
  }

  .podium-meta strong {
    grid-column: 2;
    font-size: 0.92rem;
  }

  .podium-meta span {
    grid-column: 2;
    margin-top: 0;
    font-size: 0.8rem;
  }

  .podium-base {
    width: 44px;
    height: 44px !important;
    flex: 0 0 auto;
    align-items: center;
    padding-bottom: 0;
    border-radius: 14px;
  }

  .podium-base span {
    font-size: 1.15rem;
  }

  .ranking-row {
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    padding: 12px;
  }

  .ranking-position {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .ranking-name {
    font-size: 0.92rem;
  }

  .ranking-value {
    grid-column: auto;
    font-size: 0.82rem;
    font-weight: 500;
  }
}
