/* Landing page layout. Loaded after /play/app.css, which holds every colour, type and motion token (light and dark).
   No colour values here: only var(--...) and rgba black or white. rem units only for type. */
html { scroll-behavior: smooth; }
body.landing { line-height: 1.6; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }

.hero { padding-top: max(0.75rem, env(safe-area-inset-top)); padding-bottom: 2.5rem; overflow: hidden; }
.lnav { display: flex; align-items: center; gap: 0.6rem; min-height: 3.5rem; }
.lnav .logo { width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; border-radius: 0.9rem; color: var(--c-on-primary);
  background: linear-gradient(145deg, var(--c-primary), var(--c-primary-2)); box-shadow: var(--shadow-1); }
.lnav .logo svg { width: 70%; height: 70%; }
.lnav .brand { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-m); }
.lnav .spacer { flex: 1; }
.theme-btn { color: var(--c-text); }
.hero-in { display: grid; gap: 1.5rem; align-items: center; margin-top: 1rem; }
.eyebrow { display: inline-flex; margin: 0 0 0.8rem; padding: 0.2rem 0.8rem; border-radius: var(--radius-pill); font-weight: 800; font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-accent); border: 0.0625rem solid color-mix(in srgb, var(--c-accent) 45%, transparent); background: color-mix(in srgb, var(--c-accent) 10%, transparent); }
.hero h1 { font-size: var(--fs-2xl); line-height: 1; letter-spacing: -0.02em; }
.hero h1 .hl { background: linear-gradient(100deg, var(--c-primary), var(--c-primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .by { margin-top: 0.6rem; }
.sub { color: var(--c-text-muted); font-size: var(--fs-m); max-width: 34rem; margin: 0.8rem 0 1.4rem; }
.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0; }
.play-now { min-width: 12rem; font-size: 1.35rem; }
.mini { margin: 0.6rem 0 0; }
.mini a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--c-text-muted); font-weight: 600; }

/* the hero board: a tilted lacquer cross board with pieces bobbing over it */
.hero-stage { position: relative; width: min(100%, 19rem); aspect-ratio: 1; justify-self: center; perspective: 60rem; }
.hero-art { width: 100%; height: 100%; display: block; transform: rotateX(28deg) rotateZ(-10deg); transform-origin: 50% 60%;
  filter: drop-shadow(0 1.6rem 1.6rem rgba(0, 0, 0, 0.45)); animation: hero-float 7s ease-in-out infinite alternate; }
.hero-art .hb { fill: var(--wood); stroke: var(--line); stroke-width: 1.5; }
.hero-art .hl { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-linejoin: round; }
.hero-art .hc { fill: color-mix(in srgb, var(--line) 14%, transparent); }
.hero-art .pc { fill: var(--text); }
.tok { position: absolute; width: 13%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 -0.3rem 0 rgba(0, 0, 0, 0.25), 0 0.8rem 1rem rgba(0, 0, 0, 0.35); animation: hero-bob 3.2s ease-in-out infinite alternate; }
.tok.t0 { left: 42%; top: 10%; background: radial-gradient(circle at 35% 30%, var(--p0-hi), var(--p0) 60%); }
.tok.t1 { left: 74%; top: 38%; border-radius: 28%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--p1) 55%, rgba(255, 255, 255, 1)), var(--p1) 60%); animation-delay: -0.8s; }
.tok.t2 { left: 46%; top: 70%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--p2) 55%, rgba(255, 255, 255, 1)), var(--p2) 60%); animation-delay: -1.6s; }
.tok.t3 { left: 12%; top: 44%; border-radius: 28%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--p3) 55%, rgba(255, 255, 255, 1)), var(--p3) 60%); animation-delay: -2.4s; }
@keyframes hero-float { from { transform: rotateX(28deg) rotateZ(-10deg) translateY(0); } to { transform: rotateX(24deg) rotateZ(-6deg) translateY(-0.4rem); } }
@keyframes hero-bob { from { transform: translateY(0); } to { transform: translateY(-0.7rem); } }

section.wrap { padding-top: 2.75rem; padding-bottom: 0.5rem; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.lede { margin: 0.5rem 0 1.4rem; }
.card .motif { display: grid; place-items: center; position: relative; z-index: 1; }
.card .card-name { display: block; }
.card .hook { display: block; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.2rem 0 0.8rem; display: grid; gap: 0.8rem; }
.steps li { counter-increment: s; display: flex; gap: 0.9rem; align-items: flex-start; background: var(--c-surface); border: 0.0625rem solid var(--c-border); border-radius: var(--radius-m); padding: 0.9rem 1rem; box-shadow: var(--shadow-1); }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary); font-weight: 800; }
.note { color: var(--c-text-muted); }
.about p { max-width: 42rem; color: var(--c-text-muted); font-size: var(--fs-m); }
.about h2 { margin-bottom: 0.8rem; }
.about .credits a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.lfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.2rem 1.2rem; margin-top: 2.5rem; padding-top: 1rem; padding-bottom: max(2rem, env(safe-area-inset-bottom));
  border-top: 0.0625rem solid var(--c-border); color: var(--c-text-muted); font-size: var(--fs-s); }
.lfoot a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 0.3rem; font-weight: 700; color: var(--c-text); }
.lfoot .made { display: inline-flex; align-items: center; gap: 0.35rem; min-height: var(--tap); }
.lfoot .made i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c-primary-2); display: inline-block; }

@media (min-width: 48rem) {
  .hero { padding-bottom: 3.5rem; }
  .hero-in { grid-template-columns: 1.3fr 1fr; margin-top: 2rem; }
  .hero-stage { width: min(100%, 24rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
