:root {
  --bg: #f5f2eb;
  --bg-raise: #fffaf5;
  --ink: #0f140d;
  --muted: #6d6a64;
  --faint: #8d8a83;
  --green: #1e3b25;
  --green-deep: #173021;
  --cream: #f5f2eb;
  --wash: rgba(94, 122, 64, 0.1);
  --line: rgba(15, 20, 13, 0.1);
  --shadow: 0 24px 60px rgba(30, 59, 37, 0.08);
  --serif: "Hedvig Letters Serif", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --header: 72px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #121613;
  --bg-raise: #1a201c;
  --ink: #f5f2eb;
  --muted: #b7b3aa;
  --faint: #8d8a83;
  --green: #d7e4cf;
  --green-deep: #1e3b25;
  --cream: #f5f2eb;
  --wash: rgba(245, 242, 235, 0.08);
  --line: rgba(245, 242, 235, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header);
  padding: 0 clamp(1.1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--green);
}

html[data-theme="dark"] .logo {
  color: var(--cream);
}

.logo__mark {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.logo__word {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.045em;
  line-height: 1;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.nav__item {
  position: relative;
}

.nav__btn,
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  cursor: pointer;
}

.nav__lang {
  color: var(--muted);
  cursor: default;
}

.nav__btn svg,
.nav__lang svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: 0.7;
}

.nav__btn[aria-expanded="true"],
.nav__btn:hover {
  background: var(--wash);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raise);
  box-shadow: var(--shadow);
}

.dropdown[hidden] {
  display: none;
}

.dropdown a {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
}

.dropdown a:hover {
  background: var(--wash);
}

.dropdown strong {
  font-weight: 500;
  font-size: 14.5px;
}

.dropdown span {
  color: var(--muted);
  font-size: 13px;
}

.header__end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.btn--green {
  background: #1e3b25;
  color: #f5f2eb;
}

.btn--green:hover {
  background: #274a32;
}

.btn--wash {
  background: var(--wash);
  color: var(--ink);
}

.btn--wash:hover {
  background: color-mix(in srgb, var(--green) 16%, transparent);
}

.btn--cream {
  background: var(--cream);
  color: #1e3b25;
}

.btn--cream:hover {
  background: #fff;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

html[data-theme="dark"] .icon-btn {
  color: var(--cream);
}

.icon-btn:hover {
  background: var(--wash);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.icon-moon,
html[data-theme="dark"] .icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-moon {
  display: block;
  fill: currentColor;
  stroke: none;
}

.menu-toggle {
  display: grid;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.mobile-nav {
  position: sticky;
  top: var(--header);
  z-index: 30;
  display: grid;
  gap: 0.2rem;
  padding: 0.4rem 1rem 1rem;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.8rem 0.2rem;
  text-decoration: none;
  font-size: 15px;
}

.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.25rem 2.5rem;
  text-align: center;
}

.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f7d46;
  box-shadow: 0 0 0 5px rgba(47, 125, 70, 0.15);
}

.hero__title {
  display: grid;
  justify-items: center;
  gap: 0.02em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 8vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero__title em {
  font-style: italic;
}

.pill {
  display: inline-block;
  margin: 0.06em 0;
  padding: 0.02em 0.34em 0.06em;
  border-radius: 999px;
  background: #1e3b25;
  color: #f5f2eb;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.pill.is-out {
  opacity: 0;
  transform: translateY(0.12em);
}

.hero__lead {
  max-width: 38rem;
  margin: 1.6rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.7rem;
}

.hero__fine {
  max-width: 34rem;
  margin: 1.1rem auto 0;
  color: var(--faint);
  font-size: 13px;
}

.wrap {
  width: min(1080px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 28px;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(245, 242, 235, 0.16), transparent 46%),
    radial-gradient(50% 70% at 0% 100%, rgba(0, 0, 0, 0.22), transparent 60%),
    #1e3b25;
  color: #f3efe6;
  box-shadow: var(--shadow);
}

.panel__main {
  display: grid;
  gap: 1.75rem;
}

.kicker {
  margin: 0 0 0.35rem;
  color: rgba(243, 239, 230, 0.68);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel__num {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.panel__num--sm {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.panel__sub {
  margin: 0.45rem 0 0;
  color: rgba(243, 239, 230, 0.74);
}

.panel__you .btn {
  margin-top: 1rem;
}

.panel__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin: 1.8rem 0 0;
}

.panel__meta div {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(243, 239, 230, 0.16);
}

.panel__meta dt {
  color: rgba(243, 239, 230, 0.62);
  font-size: 13px;
}

.panel__meta dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section__intro h2,
.board__head h2,
.faq-section h2,
.closer h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.section__intro h2 em,
.faq-section h2 em,
.closer h2 em {
  font-style: italic;
}

.section__intro p:last-child,
.board__head p {
  max-width: 36rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.index {
  margin: 0 0 0.7rem;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.earn {
  display: grid;
  gap: 0;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.earn li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.earn span,
.boosts li::before {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #1e3b25;
}

html[data-theme="dark"] .earn span,
html[data-theme="dark"] .boosts li::before {
  color: var(--cream);
}

.earn h3,
.boosts h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.earn p,
.boosts p,
.faq p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}

.text-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boosts {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: boost;
}

.boosts li {
  padding: 1.25rem 1.3rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-raise);
}

.boosts li::before {
  counter-increment: boost;
  content: counter(boost, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
}

.board {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-raise);
}

.board__head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.board__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board__list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.board__list .rank {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.board__list .addr {
  font-variant-numeric: tabular-nums;
}

.board__list .pts {
  font-weight: 500;
}

.referral {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.referral label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 13px;
}

.referral__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.referral input {
  flex: 1 1 220px;
  min-width: 0;
  height: 42px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.faq-section {
  display: grid;
  gap: 1.5rem;
}

.faq {
  display: grid;
  gap: 0.55rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  padding: 1rem 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  padding: 0 0 1rem;
  max-width: 40rem;
}

.faq a {
  color: var(--ink);
}

.closer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  margin-bottom: 4rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 28px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.closer > div {
  flex: 1 1 auto;
  min-width: 0;
}

.closer h2 {
  max-width: 10em;
}

.closer .btn {
  flex: none;
}

.closer p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer__top,
.footer__cols,
.legal {
  width: min(1080px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.open {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer__cols p {
  margin: 0 0 0.55rem;
  color: var(--faint);
  font-size: 13px;
}

.footer__cols a {
  display: block;
  padding: 0.22rem 0;
  color: var(--ink);
  text-decoration: none;
}

.footer__cols a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal {
  margin-top: 2rem;
  color: var(--faint);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 60;
  translate: -50% 140%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #1e3b25;
  color: #f5f2eb;
  font-size: 14px;
  transition: translate 0.3s ease;
}

.toast.is-visible {
  translate: -50% 0;
}

@media (min-width: 760px) {
  .panel__main,
  .panel__meta,
  .section--split,
  .faq-section,
  .board__head,
  .closer {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .panel__meta {
    display: grid;
  }

  .section--split {
    display: grid;
    align-items: start;
    gap: 3rem;
  }

  .section--split .boosts {
    margin-top: 0;
  }

  .board__head,
  .closer,
  .faq-section {
    display: grid;
    align-items: end;
  }

  .faq-section {
    align-items: start;
    gap: 3rem;
  }

  .closer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

@media (min-width: 980px) {
  .nav {
    display: flex;
    margin-left: auto;
  }

  .menu-toggle {
    display: none;
  }

  .earn {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .earn li:nth-child(1),
  .earn li:nth-child(2) {
    border-top: 0;
    margin-top: -1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pill,
  .btn,
  .toast {
    transition: none;
  }
}
