html { scroll-padding-top: 72px; }
.site-nav { position: sticky; top: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.nb { white-space: nowrap; }
img, video, svg { max-width: 100%; }
a { text-decoration: none; }
.btn-pri { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px 0 18px; border-radius: var(--radius-m); background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.btn-pri:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-pri svg { width: 18px; height: 18px; flex: none; }
.tlink { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.tlink svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.hero { padding: 72px 0 0; text-align: center; }
.rel { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: var(--radius-pill); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-subtle); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.rel:hover { color: var(--text-1); background: var(--bg-inset); }
.rel i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.rel b { color: var(--text-1); font-weight: 500; }
.rel-more { color: var(--accent); }
.hero h1 { font-size: 56px; line-height: 1.14; letter-spacing: -0.032em; font-weight: 600; margin: 22px 0 0; }
.sub { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 600px; margin: 18px auto 0; text-wrap: balance; }
.cta { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 32px; }
.cta-meta { margin: 14px auto 0; font-size: 13px; color: var(--text-3); max-width: 640px; }
.cta-meta a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-default); text-underline-offset: 3px; }
.cta-meta a:hover { color: var(--text-1); }

.demo { margin: 48px auto 0; max-width: 1040px; text-align: left; }
.demo .bar, .demo .body { background: var(--bg-raised); }
.demo .bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px var(--border-default); font-size: 12.5px; color: var(--text-3); position: relative; z-index: 1; }
.demo .dots { display: flex; gap: 6px; margin-right: 8px; }
.demo .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-default); }
.demo .bar b { color: var(--text-2); font-weight: 500; }
.demo .body { display: grid; grid-template-columns: 1fr 272px; height: 470px; border-radius: 0 0 12px 12px; box-shadow: 0 0 0 1px var(--border-default), var(--shadow-pop); overflow: hidden; }
.demo .main { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border-subtle); }
.strip { margin: 14px 14px 0; border-radius: 12px; background: var(--bg-base); box-shadow: 0 0 0 1px var(--border-default); padding: 0 8px 0 14px; height: 46px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-1); }
.strip svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.strip .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .txt::after { content: ""; display: inline-block; width: 1.5px; height: 18px; background: var(--accent); vertical-align: -3px; margin-left: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--accent-muted); color: var(--accent); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.canvas { --s: 1; --ox: -88px; --oy: -12px; position: relative; flex: 1; margin: 14px; border-radius: var(--radius-m); background: var(--bg-canvas); overflow: hidden; }
.map { position: absolute; left: 0; top: 0; width: 1024px; height: 896px; transform-origin: 0 0; transform: translate(calc(var(--ox) * var(--s)), calc(var(--oy) * var(--s))) scale(var(--s)); }
.map img { display: block; width: 1024px; max-width: none; height: 896px; image-rendering: pixelated; }
.cells { position: absolute; inset: 0; width: 1024px; max-width: none; height: 896px; }
.cells .cv { fill: var(--cover); }
.cells .gh { fill: var(--ghost); }
.cells #cg path { stroke: var(--border-subtle); stroke-width: 1; }
.cells #gg path { stroke: var(--ghost-edge); stroke-width: 1.5; }
.tag, .pin { position: absolute; left: calc((var(--cx) * 32px + var(--ox)) * var(--s)); top: calc((var(--cy) * 32px + var(--oy)) * var(--s)); }
.tag { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--bg-raised); box-shadow: var(--shadow-pop); font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--text-1); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag.w i { background: var(--warning); }
.t1 { --cx: 12.4; --cy: 4.1; } .t2 { --cx: 5.2; --cy: 9.4; }
.pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 4px; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-raised), var(--shadow-pop); transform: rotate(-45deg); }
.p1 { --cx: 8.6; --cy: 2.2; } .p2 { --cx: 3.4; --cy: 7.6; }
.steps { padding: 16px 16px 14px; display: flex; flex-direction: column; font-size: 13px; background: var(--bg-surface); }
.steps .h { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.steps .h span { font-size: 12.5px; color: var(--text-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.steps li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 7px 8px; border-radius: var(--radius-s); }
.steps li.now { background: var(--accent-muted); }
.steps li > i { width: 16px; height: 16px; border-radius: 50%; margin-top: 2px; box-shadow: inset 0 0 0 1.5px var(--border-default); display: grid; place-items: center; }
.steps li.done > i { background: var(--text-1); box-shadow: none; color: var(--bg-base); }
.steps li.done > i svg { width: 10px; height: 10px; }
.steps li.now > i { box-shadow: inset 0 0 0 2px var(--accent); }
.steps li b { display: block; font-weight: 500; color: var(--text-1); }
.steps li span { display: block; color: var(--text-3); font-size: 12px; line-height: 1.45; }
.steps li:not(.done):not(.now) b { color: var(--text-2); }
.prog { height: 4px; border-radius: 2px; background: var(--border-default); margin: 14px 2px 0; overflow: hidden; }
.prog div { height: 100%; width: 46%; background: var(--accent); border-radius: 2px; }
.st-act { margin-top: auto; display: flex; gap: 8px; }
.st-act span { flex: 1; display: grid; place-items: center; height: 32px; border-radius: var(--radius-s); box-shadow: inset 0 0 0 1px var(--border-default); background: var(--bg-base); font-size: 12.5px; color: var(--text-2); }
.demo-cap { margin-top: 12px; font-size: 13px; color: var(--text-3); text-align: center; }

.sec { padding: 128px 0 0; }
.sec h2 { font-size: 40px; line-height: 1.2; letter-spacing: -0.028em; font-weight: 600; margin: 0; }
.sec .lede { font-size: 18px; color: var(--text-2); max-width: 620px; margin: 14px 0 0; }
.sec .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec .head .tlink { font-size: 15px; }
.shot { border-radius: var(--radius-m); overflow: hidden; background: var(--bg-canvas); box-shadow: 0 0 0 1px var(--border-subtle); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.px img { image-rendering: pixelated; }
.feat-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px 24px; margin-top: 44px; }
.feat { margin: 0; }
.feat.big { grid-row: span 2; }
.feat.big .shot { aspect-ratio: 1600 / 1000; }
.feat .shot { aspect-ratio: 4 / 3; }
.feat figcaption { margin-top: 14px; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.feat figcaption b { display: block; color: var(--text-1); font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.game { color: var(--text-1); }
.game:hover { color: var(--text-1); }
.game:hover .shot { box-shadow: 0 0 0 1px var(--border-strong); }
.game .shot { aspect-ratio: 16 / 9; }
.game .meta { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.game b { font-size: 17px; font-weight: 600; }
.game .meta span { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.game p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.note { margin: 24px 0 0; font-size: 14px; color: var(--text-3); }
.posts { margin-top: 36px; border-top: 1px solid var(--border-subtle); }
.prow { display: grid; grid-template-columns: 168px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border-subtle); align-items: center; color: var(--text-1); }
.prow:hover { color: var(--text-1); }
.prow:hover b { color: var(--accent); }
.prow .shot { aspect-ratio: 1200 / 630; border-radius: var(--radius-s); }
.prow .d { font-size: 13px; color: var(--text-3); }
.prow b { display: block; font-size: 17px; font-weight: 500; line-height: 1.45; margin-top: 2px; }
.prow p { margin: 4px 0 0; font-size: 14.5px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ending { margin-top: 128px; padding: 56px 0 0; text-align: center; border-top: 1px solid var(--border-subtle); }
.ending h2 { font-size: 32px; letter-spacing: -0.025em; font-weight: 600; margin: 0; }
.ending p { color: var(--text-2); margin: 10px 0 0; font-size: 16px; }
.end-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; }

@media (max-width: 900px) {
  .demo .body { grid-template-columns: 1fr 236px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 36px; line-height: 1.2; margin-top: 18px; }
  .sub { font-size: 16px; margin-top: 14px; }
  .cta { flex-direction: column; gap: 14px; margin-top: 26px; }
  .btn-pri { width: 100%; }
  .demo { margin: 36px -8px 0; }
  .demo .bar .ttl { display: none; }
  .demo .body { grid-template-columns: 1fr; height: 332px; }
  .demo .main { border-right: 0; }
  .steps { display: none; }
  .strip { margin: 10px 10px 0; height: 42px; font-size: 14px; }
  .strip .pill { display: none; }
  .canvas { --s: 0.5; --ox: -24px; --oy: -8px; margin: 10px; }
  .t1 { --cx: 9.6; --cy: 3.2; }
  .t2, .pin { display: none; }
  .sec { padding-top: 80px; }
  .sec h2 { font-size: 28px; }
  .sec .lede { font-size: 16px; }
  .sec .head { display: block; }
  .sec .head .tlink { margin-top: 12px; }
  .feat-grid { grid-template-columns: 1fr; margin-top: 28px; gap: 28px; }
  .feat.big { grid-row: auto; }
  .games { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .prow { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; }
  .prow b { font-size: 15px; }
  .prow p { display: none; }
  .ending { margin-top: 80px; }
  .ending h2 { font-size: 24px; }
}
