/* MYBC prelander kit: tokens + components. Flat surfaces, no card gradients, no glass, no neon.
   The only gradient is the primary CTA (brand spec). Stage feel comes from the art. */
:root {
  --pl-page: #1b1941;
  --pl-surface: #201d47;
  --pl-surface-2: #2a2660;
  --pl-line: #3b376c;
  --pl-well: #15132f;
  --pl-text: #fff;
  --pl-text-2: #c2c5d6;
  --pl-text-3: #939cc0;
  --pl-gold: #FFB521;
  --pl-orange: #FF7B17;
  --pl-violet: #3a3585;
  --pl-cta: linear-gradient(192deg, #FFB521 0%, #FF7B17 100%);
  --pl-cta-hover: linear-gradient(192deg, #FFD159 0%, #FFA633 100%);
  --pl-ghost-bg: rgba(26, 26, 61, .8);
  --pl-ghost-line: #484384;
  --pl-r: 8px;
  --pl-r-card: 12px;
  --pl-cta-h: 52px;
  --pl-font: 'Gilroy', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pl-ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--pl-page); color: var(--pl-text); }
html { overflow-x: clip; }
body {
  font-family: var(--pl-font); font-weight: 500; line-height: 1.45;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pl-gold); outline-offset: 3px; border-radius: 4px; }
.pl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.pl-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.pl-header { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--pl-line); }
.pl-wordmark { font-weight: 800; font-size: 20px; letter-spacing: .06em; color: #fff; text-decoration: none; }
.pl-wordmark span { color: var(--pl-gold); }
.pl-badge {
  display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 38px; padding: 0 8px;
  font-size: 12px; font-weight: 800; color: #fff; border: 1px solid var(--pl-ghost-line); border-radius: 999px; background: var(--pl-ghost-bg);
}
.pl-main { display: grid; gap: 16px; padding: 16px 0 28px; }
@media (min-width: 960px) {
  .pl-main { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 56px; row-gap: 20px; padding: 40px 0 56px; align-items: start; }
  .pl-hero { grid-row: 1 / span 3; }
  .pl-stage, .pl-result { grid-column: 2; }
}

/* ---------- hero ---------- */
.pl-hero { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 14px; align-items: center; }
.pl-title { margin: 0; font-size: 28px; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.pl-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--pl-text-2); }
.pl-sub b { color: var(--pl-gold); font-weight: 700; }
@media (min-width: 960px) {
  .pl-hero { grid-template-columns: 1fr; gap: 28px; position: sticky; top: 32px; }
  .pl-title { font-size: 54px; }
  .pl-sub { font-size: 18px; margin-top: 14px; max-width: 34ch; }
}

/* hero art: dark placeholder box until art/<slug>.webp exists, then the cut-out fades in */
.pl-art {
  position: relative; aspect-ratio: 1; width: 100%; border-radius: var(--pl-r-card);
  background: var(--pl-well); border: 1px solid var(--pl-line); overflow: hidden; display: grid; place-items: center;
}
.pl-art__ph { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-text-3); }
.pl-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s ease; }
.pl-art.is-loaded { background: transparent; border-color: transparent; }
.pl-art.is-loaded img { opacity: 1; }
.pl-art.is-loaded .pl-art__ph { display: none; }
@media (min-width: 960px) { .pl-art { max-width: 480px; } }

/* ---------- mechanic stage ---------- */
.pl-stage {
  position: relative; display: grid; gap: 14px; justify-items: center; text-align: center;
  background: var(--pl-surface); border: 1px solid var(--pl-line); border-radius: var(--pl-r-card); padding: 18px 16px;
}
.pl-stage__lead { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.pl-stage__hint { margin: 0; font-size: 13px; color: var(--pl-text-2); min-height: 1.45em; }
.pl-prizes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pl-prizes li {
  font-size: 12px; font-weight: 600; color: var(--pl-text-2); background: var(--pl-well);
  border: 1px solid var(--pl-line); border-radius: 999px; padding: 4px 10px;
}
.pl-prizes li.is-hit { color: #1b1941; background: var(--pl-gold); border-color: var(--pl-gold); }

/* ---------- buttons ---------- */
.pl-btn {
  appearance: none; border: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: var(--pl-cta-h); padding: 0 20px; border-radius: var(--pl-r);
  background: var(--pl-cta); color: #fff; font: 700 16px/1 var(--pl-font); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent;
}
.pl-btn:hover { background: var(--pl-cta-hover); }
.pl-btn:active { transform: translateY(1px) scale(.99); }
.pl-btn[disabled], .pl-btn[aria-disabled="true"] {
  background: var(--pl-ghost-bg); border: 1px solid var(--pl-ghost-line); color: var(--pl-text-3); cursor: default; pointer-events: none; animation: none;
}
.pl-btn--ghost { background: var(--pl-ghost-bg); border: 1px solid var(--pl-ghost-line); }
.pl-btn--ghost:hover { background: #24224f; }
.pl-link { color: var(--pl-text-2); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pl-link:hover { color: #fff; }
@media (min-width: 960px) { .pl-btn { height: 56px; font-size: 17px; } }

/* ---------- result card ---------- */
.pl-result {
  display: grid; gap: 10px; text-align: center; scroll-margin: 16px;
  background: var(--pl-surface); border: 1px solid var(--pl-gold); border-radius: var(--pl-r-card); padding: 20px 16px 18px;
}
.pl-result[hidden] { display: none; }
.pl-result.is-in { animation: pl-in .55s var(--pl-ease) both; }
@keyframes pl-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.pl-result__eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-gold); }
.pl-result__name { margin: 0; font-size: 34px; line-height: 1.04; font-weight: 800; letter-spacing: -.01em; outline: none; }
.pl-result__detail { margin: -4px 0 0; font-size: 15px; font-weight: 700; color: var(--pl-gold); }
.pl-result__unlock { margin: 0; font-size: 15px; font-weight: 700; }
.pl-result__note { margin: 0; font-size: 13px; color: var(--pl-text-2); }
.pl-timer {
  justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 4px;
  font-size: 13px; color: var(--pl-text-2); background: var(--pl-well); border: 1px solid var(--pl-line); border-radius: 999px; padding: 6px 12px;
}
.pl-timer b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 800; }

/* ---------- trust + footer ---------- */
.pl-trust { border-top: 1px solid var(--pl-line); padding: 20px 0 8px; display: grid; gap: 10px; font-size: 13px; color: var(--pl-text-2); }
.pl-trust p { margin: 0; }
.pl-trust__row { display: flex; align-items: center; gap: 10px; }
.pl-trust__row .pl-badge { flex: none; }
.pl-trust a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.pl-footer { padding: 8px 0 36px; font-size: 12px; line-height: 1.55; color: var(--pl-text-3); }
.pl-footer p { margin: 0 0 6px; }

/* ---------- motion ---------- */
@keyframes pl-nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.pl-nudge { animation: pl-nudge 1.6s ease-in-out infinite; }
@keyframes pl-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.pl-shake { animation: pl-shake .32s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.pl-reduced *, .pl-reduced *::before, .pl-reduced *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
