/* DENAI landing — palette from the game's UI system (Kenney pixel pack). */
:root {
  --sky: #aee3f5; --sky-pale: #dff4fb; --grass: #2eb082; --grass-dark: #1f8a63; --soil: #c9734a; --soil-dark: #8a4a2e;
  --wood: #a3703a; --wood-light: #c58747; --wood-dark: #6d4b27; --parchment: #fff1d2; --parchment-shade: #ecd6a6; --card: #fffaf0;
  --gold: #f4b41b; --gold-light: #fee481; --gold-shade: #c98a0e; --ribbon: #c4473d; --ribbon-dark: #8e3f38;
  --ink: #3a2814; --ink-soft: #6d4b27; --outline: #434a5f; --slate: #2b3245; --ok: #2b8a4e; --bad: #b5443a;
  --display: 'Lilita One', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--parchment); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ribbon-dark); font-weight: 800; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--outline); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.math { font-family: 'Cambria Math', 'Times New Roman', serif; font-style: italic; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-pale) 78%, #eaf7e0 100%); padding: 0 16px 0; }
.topbar { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0; }
.brand { font-family: var(--display); font-weight: 400; color: var(--outline); text-decoration: none; font-size: 18px; }
.toplink { font-size: 15px; color: var(--outline); }
.toplinks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
.hero-grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 24px; padding: 20px 0 30px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 40px; padding: 40px 0 70px; } .hero { padding: 0 32px; } }
.eyebrow { margin: 0; font-weight: 800; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.logo { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(76px, 17vw, 132px); line-height: .92; color: var(--gold); letter-spacing: .02em; -webkit-text-stroke: 3px var(--ribbon-dark); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ribbon-dark); }
.ribbon { display: inline-block; margin: 14px 0 0; padding: 4px 18px; font-family: var(--display); font-size: 18px; letter-spacing: .04em; color: #fff; background: var(--ribbon); border: 3px solid var(--ribbon-dark); border-radius: 4px; box-shadow: 0 3px 0 var(--ribbon-dark); text-transform: uppercase; }
.pitch { margin: 16px 0 0; font-size: 18.5px; max-width: 30em; }
.cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 400; letter-spacing: .05em; border-radius: 10px; text-align: center; }
.btn-play { font-size: 24px; padding: 14px 28px; min-height: 60px; color: var(--ink); background: var(--gold); border: 3px solid var(--wood-dark); box-shadow: 0 6px 0 var(--gold-shade), 0 6px 0 3px var(--wood-dark); }
.btn-play:hover { background: var(--gold-light); }
.btn-icon { font-size: .75em; }
.btn-ghost { font-size: 18px; padding: 12px 18px; color: var(--wood-dark); background: rgba(255, 250, 240, .7); border: 3px solid var(--wood); }
.btn-ghost:hover { background: var(--card); }
.btn-small { font-size: 18px; min-height: 48px; padding: 8px 18px; }
@media (prefers-reduced-motion: no-preference) {
  .btn-play { transition: transform .08s, box-shadow .08s; }
  .btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-shade), 0 2px 0 3px var(--wood-dark); }
}
.cta-note { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-soft); font-weight: 700; }
.players-live { margin: 8px 0 0; font-size: 15px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.players-live::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #2eb082; box-shadow: 0 0 0 3px #2eb08233; flex: none; }
.players-live[hidden] { display: none; }
.returning { margin-top: 16px; padding: 12px 16px; background: var(--card); border: 3px solid var(--wood); border-radius: 10px; box-shadow: 0 3px 0 var(--wood-dark); max-width: 30em; }
.welcome { margin: 0 0 6px; font-weight: 800; }
.stats { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.stats dt { font-size: 13px; color: var(--ink-soft); font-weight: 700; } .stats dd { margin: 0; font-family: var(--display); font-size: 22px; }

/* stage: real menu screenshot + animated Chill Boy standing in front */
.hero-stage { position: relative; padding-bottom: 34px; }
.stage-shot { border: 4px solid var(--outline); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 0 rgba(67, 74, 95, .3); transform: rotate(-1.2deg); image-rendering: pixelated; }
.chillboy { position: absolute; right: 2%; bottom: 0; width: 116px; height: 180px; background: url('img/chillboy-idle.webp') 0 0 / 1392px 180px no-repeat; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .15)); }
@media (max-width: 520px) { .chillboy { width: 77px; height: 120px; background-size: 928px 120px; } }
@media (prefers-reduced-motion: no-preference) { .chillboy { animation: idle 1.3s steps(12) infinite; } }
@media (prefers-reduced-motion: no-preference) and (max-width: 520px) { .chillboy { animation-name: idle-sm; } }
@keyframes idle { to { background-position: -1392px 0; } }
@keyframes idle-sm { to { background-position: -928px 0; } }
.speech { position: absolute; right: calc(2% + 100px); bottom: 120px; padding: 6px 12px; background: #fff; border: 3px solid var(--outline); border-radius: 10px; font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.speech::after { content: ''; position: absolute; right: -12px; bottom: 8px; border: 7px solid transparent; border-left-color: var(--outline); }
@media (max-width: 520px) { .speech { right: calc(2% + 66px); bottom: 80px; font-size: 13px; } }
/* pixel ground under the hero */
.ground { height: 38px; margin: 0 -32px; background:
  radial-gradient(circle at 20% 60%, rgba(255, 210, 160, .55) 2px, transparent 3px) 0 14px / 26px 18px,
  radial-gradient(circle at 70% 30%, rgba(138, 74, 46, .45) 2px, transparent 3px) 0 14px / 34px 22px,
  linear-gradient(180deg, var(--grass) 0 10px, var(--grass-dark) 10px 14px, var(--soil) 14px); border-top: 3px solid var(--outline); }

/* ---------- sections ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
@media (min-width: 900px) { main { padding: 0 32px 56px; } }
.block { padding: 44px 0 6px; }
.kicker { margin: 0 0 2px; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #a83a31; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(27px, 5vw, 36px); line-height: 1.12; margin: 0 0 12px; letter-spacing: .01em; }
.small { font-size: 15px; color: var(--ink-soft); margin: 10px 0 0; }
.textlink { display: inline-block; margin-top: 12px; }

.facts-strip { margin-top: 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--slate); color: #e8ecf5; border-radius: 14px; padding: 12px 8px; border: 3px solid #1f2533; box-shadow: 0 4px 0 #1f2533; }
.facts-strip div { text-align: center; line-height: 1.15; }
.facts-strip b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 6vw, 34px); color: var(--gold); }
.facts-strip span { font-size: clamp(11.5px, 2.8vw, 14px); font-weight: 700; }

/* demo machine */
.demo { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.machine { background: var(--parchment); border: 4px solid var(--wood-dark); border-radius: 14px; padding: 16px; box-shadow: 0 6px 0 var(--wood-dark); }
.machine-head { display: table; margin: 0 auto 12px; padding: 3px 16px; font-family: var(--display); letter-spacing: .06em; color: #fff; background: var(--ribbon); border: 3px solid var(--ribbon-dark); border-radius: 4px; }
.machine-flow { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 12px; background: #5b6676; border-radius: 10px; }
.slot { min-width: 84px; padding: 8px 10px; text-align: center; font: 800 16px/1.2 ui-monospace, Consolas, monospace; color: var(--outline); background: #d9e6f2; border: 3px solid #94afc6; border-radius: 8px; }
.slot-f { background: var(--gold); border-color: var(--gold-shade); color: var(--ink); }
.arrow { color: var(--gold-light); font-weight: 800; }
.choices { display: flex; justify-content: center; gap: 8px; margin: 14px 0 6px; }
.choices button { width: 52px; height: 52px; font: 800 20px ui-monospace, Consolas, monospace; color: var(--ink); background: var(--card); border: 3px solid var(--wood); border-radius: 10px; box-shadow: 0 3px 0 var(--wood-dark); cursor: pointer; }
.choices button.is-picked { background: var(--gold); border-color: var(--wood-dark); }
.gap { display: grid; grid-template-columns: 40px 1fr 40px; height: 74px; margin-top: 10px; align-items: start; background: linear-gradient(180deg, transparent 54px, #35b5e8 54px); border-radius: 0 0 8px 8px; overflow: hidden; }
.cliff { height: 74px; background: linear-gradient(180deg, var(--grass) 0 8px, var(--soil) 8px); border: 2px solid var(--outline); border-top-width: 3px; }
.cliff.right { border-left: 2px solid var(--outline); }
.planks { display: flex; gap: 2px; height: 14px; margin-top: 4px; padding-left: 2px; position: relative; }
.planks i { flex: 0 0 calc((100% - 14px) / 7); height: 14px; background: var(--wood-light); border: 2px solid var(--wood-dark); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) { .planks i { animation: plank .25s backwards; animation-delay: calc(var(--i) * 70ms); } }
@keyframes plank { from { transform: translateY(-18px); opacity: 0; } }
.planks[data-state="short"] i:last-child { transform: rotate(18deg) translateY(4px); transform-origin: left; }
.planks[data-state="long"] i:nth-child(n+8) { background: #e9b9a6; border-color: var(--bad); }
.machine-msg { margin: 12px 0 0; text-align: center; font-weight: 700; min-height: 3.2em; }
.machine-msg b { color: var(--bad); }
.machine-msg b.ok { color: var(--ok); }
#m-cta { display: flex; margin: 10px auto 0; width: max-content; }
#m-cta[hidden] { display: none; }

/* steps */
.steps { display: grid; gap: 18px; margin-top: 6px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { margin: 0; background: var(--card); border: 3px solid var(--parchment-shade); border-radius: 14px; padding: 10px 10px 14px; }
.step img { border-radius: 8px; border: 2px solid var(--outline); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; image-rendering: pixelated; }
.step figcaption { margin-top: 10px; font-size: 15.5px; }
.step figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--ink); }

.two { display: grid; gap: 30px; }
@media (min-width: 860px) { .two { grid-template-columns: 1.15fr 1fr; } }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px; background: var(--grass); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.ctl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctl { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--card); border: 3px solid var(--parchment-shade); border-radius: 12px; font-weight: 800; }
.ctl-k { display: flex; gap: 4px; }
kbd { display: inline-block; min-width: 30px; text-align: center; font: 700 14px/1.3 ui-monospace, Consolas, monospace; padding: 3px 7px; background: #fff; border: 2px solid var(--outline); border-bottom-width: 4px; border-radius: 6px; color: var(--outline); }

.faq details { background: var(--card); border: 3px solid var(--parchment-shade); border-radius: 12px; margin-top: 8px; }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 800; list-style-position: inside; }
.faq details p { margin: 0; padding: 0 16px 14px; }

.soon { margin-top: 44px; padding: 26px 20px; border-radius: 16px; color: #e8ecf5; background: linear-gradient(135deg, var(--slate), #434a5f); border: 3px solid #1f2533; display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .soon { grid-template-columns: 1fr auto; padding: 30px 32px; } }
.soon h2 { color: #fff; } .soon p { margin: 0; }
.soon-tag { display: inline-block; margin: 0 0 8px !important; padding: 2px 10px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--gold); border-radius: 999px; }

.foot { text-align: center; padding: 18px 16px 110px; font-size: 15px; color: var(--ink-soft); }
.foot p { margin: 4px 0; } .credit { font-size: 13px; }
@media (min-width: 900px) { .foot { padding-bottom: 32px; } }

/* phone dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 241, 210, 0), var(--parchment) 35%); }
.dock .btn-play { width: 100%; }
.dock[hidden] { display: none; }
@media (min-width: 900px) { .dock { display: none !important; } }
@media (max-width: 520px) {
  .machine { padding: 14px 12px; }
  .machine-flow { gap: 4px; padding: 10px 6px; flex-wrap: nowrap; }
  .slot { min-width: 0; padding: 7px 6px; font-size: 14px; }
  .choices button { width: 46px; height: 46px; }
}
@media (max-width: 520px) { .cta .btn { width: 100%; } }
