@font-face {
  font-family: "Dynamo Bold";
  src:
    local("Dynamo Bold"),
    local("Dynamo-Bold"),
    url("/public/fonts/DynamoBold.woff2") format("woff2"),
    url("/public/fonts/DynamoBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading: "Dynamo Bold", "Baloo 2", sans-serif;
  --font-body: "Outfit", sans-serif;
  --text-main: #20303a;
  --text-soft: #5d6b75;
  --shell-width: min(1400px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(239, 249, 255, 0.2), rgba(246, 239, 220, 0.54)),
    url("/assets/img/bg.png") center center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 248, 228, 0.96), rgba(255, 248, 228, 0) 28%),
    linear-gradient(180deg, rgba(243, 250, 255, 0.26), rgba(246, 236, 217, 0.56));
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: var(--shell-width);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar-inner,
.hero-card,
.board-card {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(68, 94, 115, 0.16);
  backdrop-filter: blur(12px);
}

.topbar {
  position: relative;
  z-index: 20;
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
}

.brand img {
  display: block;
  width: clamp(210px, 19vw, 280px);
  height: auto;
}

.menu {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.menu-link,
.tab-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 18px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.menu-link {
  color: #2f3640;
}

.menu-link.is-active,
.menu-link:hover,
.tab-btn.is-active,
.tab-btn:hover {
  background: linear-gradient(180deg, #74d737, #59b423);
  color: #fff;
  box-shadow: 0 10px 20px rgba(86, 168, 32, 0.28);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #253740;
}

.content-stack {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.hero-card,
.board-card {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(102, 191, 39, 0.14);
  color: #4b911d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-card h1,
.board-head h2 {
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 2.5vw, 50px);
  line-height: 1.04;
}

.hero-card p {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-soft);
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.board-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-weight: 700;
}

.leaderboard-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.leader-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.92);
}

.leader-row:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 223, 88, 0.92), rgba(255, 186, 35, 0.92));
}

.leader-row:nth-child(2) {
  background: linear-gradient(135deg, rgba(232, 236, 240, 0.95), rgba(194, 204, 214, 0.92));
}

.leader-row:nth-child(3) {
  background: linear-gradient(135deg, rgba(226, 173, 120, 0.95), rgba(195, 124, 67, 0.92));
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
  font-size: 20px;
}

.leader-copy strong,
.leader-value {
  font-family: var(--font-heading);
}

.leader-copy strong {
  display: block;
  font-size: clamp(22px, 1.6vw, 28px);
  line-height: 1.05;
}

.leader-copy span {
  display: block;
  margin-top: 6px;
  color: rgba(32, 48, 58, 0.72);
  font-size: 15px;
}

.leader-value {
  font-size: clamp(22px, 1.6vw, 30px);
  line-height: 1.05;
  text-align: right;
}

@media (max-width: 900px), (max-width: 1100px) and (max-height: 540px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    width: calc(100vw - 24px);
    padding-top: 12px;
  }

  .topbar-inner,
  .hero-card,
  .board-card {
    border-radius: 24px;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .menu {
    justify-content: center;
  }

  .menu-link,
  .tab-btn,
  .ghost-btn {
    width: 100%;
  }

  .board-head {
    align-items: stretch;
  }

  .board-meta {
    width: 100%;
    justify-content: space-between;
  }

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

  .leader-value {
    grid-column: 2;
    text-align: left;
  }
}
