/* Landing-page chrome.
 *
 * Loaded only by landing.html, on top of style.css. The dashboard at
 * admin.crunchyflix.net never sees this file, so nothing here can disturb it.
 *
 * Everything reuses the variables style.css already defines - no new palette.
 */

/* ----------------------------------------------------------------- hero */

.landing__hero {
  text-align: center;
  max-width: 660px;
  margin: 7vh auto 3.5vh;
  padding: 0 8px;
}

.landing__title {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.landing__lede {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  opacity: .78;
  margin: 0 auto 28px;
  max-width: 46ch;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ cta */

.landing__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid #e5a00d; outline-offset: 3px; }

.btn--primary { background: #e5a00d; color: #1a1204; }
.btn--primary:hover { filter: brightness(1.08); }

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: var(--ink, #e8edf5);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ------------------------------------------------------------- counters */
/* A <dl>, because these really are term/definition pairs. Grid places the
   number above its label without extra wrapper elements. */

.landing__stats {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  justify-content: center;
  gap: 4px 40px;
  margin: 34px 0 0;
  padding: 0;
}

.landing__statN {
  grid-row: 1;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.landing__statL {
  grid-row: 2;
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  opacity: .6;
}

@media (max-width: 520px) {
  .landing__stats { gap: 4px 22px; }
}

/* --------------------------------------------------------------- notice */

.notice {
  max-width: 720px;
  margin: 0 auto 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(20, 25, 34, .82);
  backdrop-filter: blur(6px);
}

.notice__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: .9;
  text-align: center;
}

.notice--warn  { border-color: rgba(229, 160, 13, .5); }
.notice--alert { border-color: rgba(239, 68, 68, .55); }

/* The landing page leads with the hero, so the tile grid should not also try
   to fill the viewport the way it does on the dashboard. */
.is-landing .board { min-height: 0; }

/* A quieter paragraph set below the main lede. */
.landing__aside {
  margin-top: 38px;
  font-size: 14px;
  opacity: .62;
}

/* Donate targets that have not been configured yet are hidden by donate.js
   rather than left as dead links. */
.is-unconfigured { display: none; }


/* ------------------------------------------------------------ daily game */

/* The one thing on this page a visitor can use without an account, so it gets
   real estate rather than a tile. One card per track running today. */
.daily {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 34px;
}

.daily__card {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: stretch;
  border: 1px solid color-mix(in srgb, var(--amber) 34%, var(--line));
  border-radius: var(--radius, 12px);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.daily__card:hover,
.daily__card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--amber) 62%, transparent);
}
.daily__card:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* The opening crop, exactly what a player sees before their first guess. */
.daily__art { position: relative; background: var(--panel-2); overflow: hidden; }
.daily__art img { width: 100%; height: 100%; object-fit: cover; }

.daily__body {
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  min-width: 0;
}

.daily__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
}
.daily__title { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.25; }
.daily__meta { margin: 0; font-size: 12px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

.daily__cta {
  margin-top: 10px;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--amber);
  color: #1a1205;
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 560px) {
  .daily { margin-bottom: 26px; }
  .daily__card { grid-template-columns: 94px 1fr; }
  .daily__body { padding: 12px 14px; }
  .daily__title { font-size: 15px; }
}
