/* lockstep.page: the launcher's poster look (ui/src/style_tokens.css, style_deco.css; D-376). Static, no build. */

@font-face { font-family: Dela; src: url('fonts/dela-gothic-one.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Golos; src: url('fonts/golos-text.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }

:root {
  color-scheme: dark;
  --ow: #f3ecda; --ink: #050708; --lit: #ff7a3c; --lit-hi: #ff9a66; --teal: #52e5cf; --gold: #ffc84a; --red: #ff6250; --sky: #6cb6ff; --violet: #b9b4f0;
  --page: #1f2629; --panel: #283135; --raise: #323d42; --well: #13181a; --rail: #171c1e;
  --hair: #f3ecda1c; --line: #f3ecda2e;
  --t2: color-mix(in srgb, var(--ow) 76%, transparent);
  --t3: color-mix(in srgb, var(--ow) 64%, transparent);
  --ff-body: Golos, 'Segoe UI', sans-serif; --ff-head: Dela, Golos, sans-serif;
  --fs-body: 16px; --fs-title: 24px; --fs-display: clamp(30px, 4.4vw, 56px);
  --pad: clamp(16px, 4vw, 48px); --wrap: 1120px;
  font: 400 var(--fs-body)/1.55 var(--ff-body);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column; color: var(--ow);
  background: radial-gradient(circle at 1px 1px, #f3ecda12 1px, transparent 1.6px) 0 0 / 7px 7px, var(--page);
}
main { flex: 1; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ow); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--ff-head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: var(--fs-display); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 .8em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--t2); }
.meta { color: var(--t3); font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--rail); border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ow); text-decoration: none; font: 400 20px var(--ff-head); }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--t2); text-decoration: none; padding: 8px 12px; border-radius: 4px; font-weight: 500; }
.nav a:hover { color: var(--ow); background: #f3ecda0f; }
.nav a[aria-current='page'] { color: var(--ow); box-shadow: inset 0 -3px 0 var(--lit); border-radius: 4px 4px 0 0; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang button { font: 600 13px var(--ff-body); color: var(--t2); background: none; border: 0; padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--raise); color: var(--ow); }
.menu-btn { display: none; }

/* buttons */
.go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  font: 400 18px var(--ff-head); color: #0b0706; background: var(--lit); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.5deg);
  transition: background .12s;
}
.go:hover { background: var(--lit-hi); color: #0b0706; }
.go:active { transform: rotate(-1.5deg) translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.go.xl { min-height: 64px; font-size: clamp(20px, 2vw, 26px); padding: 0 34px; }
.go.cream { background: var(--ow); }
.go.cream:hover { background: #fff; }
.go.small { min-height: 40px; font-size: 15px; padding: 0 16px; box-shadow: 3px 3px 0 var(--ink); }
.ghost {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; color: var(--ow); text-decoration: none;
  border: 1px solid var(--line); border-radius: 4px; background: #f3ecda0d; font-weight: 600;
}
.ghost:hover { background: #f3ecda17; color: var(--ow); }

/* panels and chips */
.panel { background: var(--panel); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair); padding: 22px; }
.well { background: var(--well); border-radius: 4px; padding: 16px 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--t2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.chip.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.tag { white-space: nowrap; font: 400 12px var(--ff-head); letter-spacing: .6px; text-transform: uppercase; color: #0b0706; background: var(--gold);
  border: 2px solid var(--ink); padding: 2px 8px; border-radius: 3px; }
.tag.teal { background: var(--teal); }
.tag.orange { background: var(--lit); }
.tag.gold { background: var(--gold); }
.tag.sky { background: var(--sky); }
.tag.violet { background: var(--violet); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); }
.hero .wrap { position: relative; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 13em; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--t2); max-width: 34em; margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* sections */
section.block { padding: clamp(40px, 6vw, 72px) 0; }
section.block + section.block, .band + section.block { padding-top: 0; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature .ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink);
  border-radius: 3px; box-shadow: 2px 2px 0 var(--ink); background: var(--teal); color: var(--ink); font: 400 16px var(--ff-head); }
.feature:nth-child(3n+2) .ico { background: var(--lit); }
.feature:nth-child(3n) .ico { background: var(--gold); }
.feature p { color: var(--t2); margin: 0; }
.killer { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.killer .panel { padding: 28px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink), inset 0 0 0 1px var(--hair); }
.killer h3 { font-size: clamp(21px, 2vw, 26px); margin: 16px 0 10px; }
.killer p { color: var(--t2); margin: 0; font-size: 17px; }
.killer .panel:first-child { background: var(--raise); }

/* modes */
.mode { display: flex; flex-direction: column; gap: 10px; }
.mode .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mode p { color: var(--t2); margin: 0; }
.mode .meta { margin-top: auto; }

/* mode cards, like the launcher's Play tab (ui/src/style_play.css): media frame (video / gif / image) on top, text below */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.mode-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--panel);
  border: 2px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.mode-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; border-bottom: 2px solid var(--ink);
  background: radial-gradient(circle at 1px 1px, #f3ecda14 1px, transparent 1.6px) 0 0 / 6px 6px, linear-gradient(135deg, var(--well), var(--rail)); }
.media video, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-name { font: 400 clamp(24px, 2.6vw, 34px) var(--ff-head); color: transparent; -webkit-text-stroke: 1.2px #f3ecda38; text-align: center; padding: 0 16px; }
.mc-body { flex: 1; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.mc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.mc-head h3 { margin: 0; }
.mc-body p { color: var(--t2); margin: 0; }
.mc-body .row { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px;
  border: 1px solid var(--line); color: var(--t2); }
.state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--t3); }
.state.open { color: var(--teal); border-color: #52e5cf66; }
.state.open::before { background: var(--teal); box-shadow: 0 0 8px var(--teal); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; background: var(--ow);
  color: var(--ink); font: 400 18px var(--ff-head); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink); }
.steps h3 { margin: 6px 0 4px; }
.steps p { color: var(--t2); margin: 0; }
code, kbd { font: 14px Consolas, monospace; background: var(--well); padding: 2px 6px; border-radius: 3px; }

/* news */
.news { display: grid; gap: 14px; }
.news article .row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.news-body { display: grid; gap: 10px; color: var(--t2); line-height: 1.55; max-width: 72ch; }
.news-body :is(p, ul, h4) { margin: 0; }
.news-body { --s: var(--teal); }
.news-body .sec-new { --s: var(--teal); }
.news-body .sec-fix { --s: var(--sky); }
.news-body .sec-change { --s: var(--gold); }
.news-body h4 { margin-top: 6px; font: 400 13px var(--ff-head); letter-spacing: .6px; text-transform: uppercase; color: var(--ow); }
.news-body h4[class] { color: var(--s); }
.news-body mark { padding: 0 3px; border-radius: 2px; color: var(--ow); background: color-mix(in srgb, var(--teal) 26%, transparent); }
.news-body ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.news-body li { position: relative; padding-left: 20px; }
.news-body li::before { content: ''; position: absolute; left: 3px; top: 0.62em; width: 6px; height: 6px; background: var(--s); transform: rotate(45deg); }
.news-body strong { color: var(--ow); font-weight: 700; }
.news-cover { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 4px; margin-bottom: 14px; background: var(--well); }

/* faq */
details { background: var(--panel); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 17px; list-style: none; display: flex; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+'; font: 400 18px var(--ff-head); color: var(--lit); width: 14px; }
details[open] summary::before { content: '−'; }
details .body { padding: 0 20px 18px 46px; color: var(--t2); }

/* page title band */
.band { padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); }
.band p { color: var(--t2); max-width: 40em; font-size: 18px; }

/* profile (profile.js) */
.top .ghost.small, .pf-side .ghost.small, .pf-codes .ghost.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
button.ghost { font: 600 15px var(--ff-body); cursor: pointer; }
.pf-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.pf-side { display: grid; gap: 18px; justify-items: start; }
.pf-side .panel, .pf-signin { width: 100%; max-width: 40em; }
.pf-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pf-head h2 { margin: 0 0 8px; }
.pf-avatar { width: 72px; height: 72px; flex: none; border: 2px solid var(--ink); border-radius: 4px; background: var(--well); }
.pf-chips, .pf-perks { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pf-stat { display: grid; gap: 4px; padding: 12px 14px; }
.pf-stat b { font-size: 20px; }
.pf-modes, .pf-codes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pf-modes li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hair); padding: 4px 0; }
.pf-codes li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--well); padding: 8px 12px; border-radius: 4px; }
.pf-codes code { font-size: 16px; letter-spacing: 1px; }
.pf-codes .meta { flex: 1; }
.pf-err { color: var(--lit); font-weight: 600; }
.cta-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.inv-state { font-size: 16px; }
.pf-card h3 { margin: 22px 0 10px; }
@media (max-width: 760px) { .pf-grid { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--rail); border-top: 2px solid var(--ink); padding: 28px 0; margin-top: 40px; color: var(--t3); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.foot p { margin: 0 0 4px; max-width: 46em; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--t2); }

@media (max-width: 760px) {
  .top .wrap { gap: 12px; }
  .menu-btn { display: inline-flex; margin-left: auto; background: none; color: var(--ow); border: 1px solid var(--line);
    border-radius: 4px; padding: 6px 10px; font: 600 14px var(--ff-body); cursor: pointer; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--rail);
    border-bottom: 2px solid var(--ink); padding: 8px var(--pad) 14px; }
  .top.open .nav { display: flex; }
}
.legal { white-space: pre-line; font-size: 14px; color: var(--t2); }
.block h2 + .news, .news + .muted { margin-top: 14px; }
