/* PONDUCK — the landing page.
 *
 * The same two components as the HUD — a bordered card with a hard offset
 * shadow, and a small tab riding on its top edge — at a larger size. It is the
 * same object because the landing page and the game are the same product, and
 * two card styles in one product is how a page starts feeling bolted on.
 *
 * ⚠ It sits OVER the live 3D scene at 0.86 alpha, so every card needs its own
 *   opaque background. A card that inherits transparency has a lawn moving
 *   behind its text.
 */

#landing {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(20, 34, 12, 0.72), rgba(12, 22, 8, 0.94));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  font-family: var(--mono);
  color: var(--card);
  padding: clamp(18px, 4vw, 48px);
}

.lp-shell {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 30px);
  /* Push the content down a little on tall screens so the title is not pinned
     to the very top edge, without ever centring it on short ones. */
  min-height: 100%;
  justify-content: center;
}

/* ------------------------------------------------------------- masthead */

.lp-head { display: flex; flex-direction: column; gap: 10px; }

.lp-title {
  margin: 0;
  font-size: clamp(38px, 8vw, 76px);
  letter-spacing: 0.16em;
  line-height: 0.95;
  font-weight: 800;
  color: #f4f1e6;
  text-shadow: 5px 5px 0 #101216;
}

.lp-sub {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #cfd8bd;
}

.lp-chip {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 2px solid #4d6b35;
  background: rgba(12, 22, 8, 0.6);
  color: #9db280;
}

.lp-chip.live { border-color: var(--accent); color: #ffc79a; }
.lp-chip.solo { border-color: #5c6a4c; color: #99a58c; }

/* ---------------------------------------------------------------- cards */

.lp-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
  align-items: start;
}

.lp-right { display: flex; flex-direction: column; gap: clamp(14px, 2.4vw, 26px); }

.lp-card {
  position: relative;
  background: rgba(14, 22, 10, 0.94);
  border: 2px solid var(--card);
  box-shadow: 5px 5px 0 #101216;
  padding: 20px 20px 18px;
}

.lp-tab {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
}

.lp-missions ol {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.lp-missions li { display: flex; gap: 9px; align-items: baseline; }
.lp-missions .box { flex: none; color: #7d8f6a; }

.lp-missions li.final {
  margin-top: 10px;
  padding-top: 11px;
  border-top: 1px dashed rgba(244, 241, 230, 0.4);
  color: #ffc79a;
}

.lp-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #9db280;
  letter-spacing: 0.02em;
}

.lp-how dl {
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 14px;
  font-size: 12px;
  line-height: 1.5;
}

.lp-how dt {
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #f4f1e6;
  white-space: nowrap;
}

.lp-how dd { margin: 0; color: #b9c9a4; letter-spacing: 0.02em; }

/* ----------------------------------------------------------------- gate */

.lp-gate { display: flex; flex-direction: column; gap: 10px; }

.lp-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  box-shadow: 4px 4px 0 #101216;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 60ms linear, box-shadow 60ms linear;
}

.lp-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #101216; }
.lp-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lp-btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.lp-btn-go { background: var(--accent); color: var(--accent-ink); }
.lp-btn-quiet { background: transparent; color: var(--card); border-color: #5c6a4c; box-shadow: none; }

.lp-why {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: #9db280;
  letter-spacing: 0.02em;
}

.lp-why strong { color: #d8e4c4; font-weight: 700; }

.lp-err {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #ffb08a;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.lp-picker { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.lp-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #5c6a4c;
  background: rgba(20, 32, 14, 0.9);
  color: var(--card);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: left;
}

.lp-wallet.home { border-color: var(--accent); }
.lp-wallet img { width: 22px; height: 22px; border-radius: 4px; flex: none; }

.lp-mono {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  background: #3d5230;
  font-weight: 700;
}

.lp-badge {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 780px) {
  .lp-cols { grid-template-columns: minmax(0, 1fr); }
  /* The gate comes FIRST on a phone. On a narrow screen the mission list is
     two thumb-scrolls tall, and burying the only two buttons under it means the
     page reads as an article rather than as a door. */
  .lp-right { order: -1; }
  .lp-shell { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-btn { transition: none; }
}
