:root {
  color-scheme: light;
  --paper: #f8f7ef;
  --ink: #182f25;
  --body: #465a4d;
  --forest: #244939;
  --line: #d9ded1;
  --gold: #f2d48d;
  --card-radius: 13px;
  --serif: Georgia, 'Times New Roman', 'Songti SC', 'Noto Serif CJK SC', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 28px; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
a:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid #ad6d19;
  outline-offset: 5px;
}
.skip {
  position: absolute; top: 8px; left: 12px; z-index: 2;
  padding: 10px 14px; border-radius: 5px;
  background: #fff; transform: translateY(-150%);
}
.skip:focus { transform: none; }
.shell { width: min(calc(100% - 48px), 1500px); margin-inline: auto; }
.container { width: min(calc(100% - 112px), 1200px); margin-inline: auto; }

.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px;
  padding: 18px 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  font-size: 19px; letter-spacing: -.035em; font-weight: 750; text-decoration: none;
}
.brand img { flex: none; }
.site-header nav, .header-end, .footer-links { display: flex; align-items: center; gap: 28px; }
.site-header nav a, .header-end a, .footer-links a {
  text-decoration: none; font-weight: 650; font-size: 15px;
}
.site-header a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-header nav a { color: var(--body); white-space: nowrap; }
.header-end { justify-self: end; gap: 17px; white-space: nowrap; }
.header-link { border: 1px solid var(--line); padding: 9px 13px; border-radius: 7px; }
.header-link span { margin-left: 3px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; font-size: .8rem;
  letter-spacing: .13em; font-weight: 750; line-height: 1.5; text-transform: uppercase;
}
.hero-tag {
  width: fit-content; margin-bottom: 22px; padding: 6px 10px;
  color: #fff5d7; background: #19382bcf; border: 1px solid #f5e4b757; border-radius: 5px;
}
.dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #e7c16f; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(4.1rem, 8.2vw, 8.35rem); letter-spacing: -.055em; line-height: .91; }
h1 em { color: #f5db9b; font-weight: inherit; }
.hero-copy {
  max-width: 45ch; margin: 23px 0 27px;
  color: #fffaf0; font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.6;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 11px 19px; border: 1px solid transparent; border-radius: 7px;
  font-size: 1rem; font-weight: 720; text-decoration: none; line-height: 1.4;
  transition: background-color .18s, border-color .18s;
}
.button.primary { background: #f2d48d; color: #222c20; }
.button.primary:hover { background: #ffe9ac; }
.button.ghost { background: #152e28a6; border-color: #f8f4e580; color: #fffaf0; }
.button.ghost:hover { background: #315142; }

.section { padding-block: clamp(59px, 7vw, 105px); }
.section-heading { margin-bottom: clamp(22px, 2.5vw, 34px); }
.section-heading > p {
  max-width: 62ch; margin-top: 12px;
  color: var(--body); font-size: clamp(1.1875rem, calc(1.1rem + .35vw), 1.375rem);
  line-height: 1.55;
}
.tech-card > p:last-child, .faq p { color: var(--body); line-height: 1.7; font-size: 1.0625rem; }
.section-index { margin-bottom: 10px; color: #48614e; }
.section-index span { width: 22px; height: 1px; background: currentColor; opacity: .6; }
h2 { font-size: clamp(2.35rem, 4.4vw, 4.25rem); letter-spacing: -.068em; line-height: 1.05; }
h3 { font-size: 1.25rem; line-height: 1.33; letter-spacing: -.025em; }

.tech-grid, .build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
@media (max-width: 480px) {
  .demo-playlist ul { grid-auto-flow: column; grid-auto-columns: 125px; grid-template-columns: none; overflow-x: auto; padding-bottom: 6px; }
  .demo-choice { grid-template-columns: minmax(0, 1fr); align-content: start; height: 100%; }
}
.demo-credit { margin-top: 14px; color: var(--body); font-size: 1rem; line-height: 1.55; }
.controls { padding-top: clamp(30px, 3.5vw, 53px); }
summary { cursor: pointer; padding: 16px 2px; font-size: 1.0625rem; font-weight: 700; }
summary:hover { text-decoration: underline; text-underline-offset: 4px; }
details img { width: 100%; margin-block: 10px 18px; border-radius: 8px; }

.tech { background: #e8eee3; border-block: 1px solid #d7e1d5; }
.tech-card { background: #f9faf3; border: 1px solid #d5ded3; border-radius: var(--card-radius); padding: clamp(20px, 3vw, 35px); }
.tech-card > .eyebrow { color: #48614e; margin-bottom: 8px; }
.tech-card h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.pipeline, .build-steps ol { list-style: none; counter-reset: sequence; padding: 0; }
.pipeline li, .build-steps li {
  position: relative; padding: 12px 0 12px 42px; min-height: 48px; border-bottom: 1px solid var(--line);
  color: var(--body); line-height: 1.5; font-size: 1.0625rem; counter-increment: sequence;
}
.pipeline li::before, .build-steps li::before {
  content: counter(sequence, decimal-leading-zero); position: absolute; left: 0; top: 13px;
  display: grid; place-items: center; width: 29px; height: 25px;
  border-radius: 4px; background: #e5ecdf; color: #355643; font: 700 .8rem var(--sans);
}
.status .dot { background: #986420; }
.status dl { margin: 15px 0 13px; }
.status dl div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem;
}
.status dt { color: var(--body); }
.status dd { margin: 0; text-align: right; font-weight: 650; }
.status > p:last-child { font-size: 1.0625rem; }

.requirements, .build-steps { border: 1px solid var(--line); border-radius: var(--card-radius); padding: clamp(20px, 3vw, 35px); }
.requirements ul { margin: 10px 0 0; padding: 0; color: var(--body); font-size: 1.0625rem; }
.requirements li { list-style: none; padding-block: 14px; border-bottom: 1px solid var(--line); }
.notice {
  margin-top: 20px; background: #f2ebd9; border-left: 3px solid #b78a3e; border-radius: 4px;
  padding: 13px 15px; font-size: 1.0625rem; line-height: 1.6; color: #4e442d;
}
.button.solid { background: var(--forest); color: #fffaf0; }
.button.solid:hover { background: #35614b; }
.text-link { display: inline-block; margin-left: 13px; font-size: 1rem; font-weight: 700; }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px 45px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px 4px;
  font-size: clamp(1.125rem, calc(1rem + .45vw), 1.375rem); line-height: 1.4;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { color: var(--forest); }
.faq-indicator {
  position: relative; flex: 0 0 30px; height: 30px; border-radius: 50%;
  background: #e5ecdf; color: var(--forest);
}
.faq-indicator::before, .faq-indicator::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 12px; height: 2px; border-radius: 1px; background: currentColor;
}
.faq-indicator::after { transform: rotate(90deg); transition: transform .18s ease; }
.faq-list details[open] .faq-indicator::after { transform: rotate(0); }
.faq p:not(.eyebrow) { max-width: 68ch; margin: 0 42px 19px 4px; font-size: 1.0625rem; }
.credits { background: #e8eee3; color: var(--ink); padding-block: 53px; border-block: 1px solid #d7e1d5; }
.credits .eyebrow { color: #48614e; margin-bottom: 9px; }
.credits h2 { font-size: clamp(2.15rem, 4vw, 3.5rem); }
.credit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 19px; margin-top: 25px; }  /* four credits since Glovebox (2026-11-14) */
.credit-grid article { border-top: 1px solid #819b87; padding-top: 13px; }
.credit-grid a { text-decoration: none; }
.credit-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.credit-grid h3 span { color: #79501d; font-size: .8rem; }
.credit-grid p { margin-top: 6px; color: var(--body); line-height: 1.55; font-size: 1.0625rem; }
.footer { padding-block: 25px 31px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer p { max-width: 83ch; margin-top: 14px; font-size: 1.0625rem; line-height: 1.65; color: var(--body); }

:lang(zh-CN) h1 { font-size: clamp(3.3rem, 8vw, 7.4rem); line-height: 1.15; letter-spacing: 0; }
:lang(zh-CN) h1 em { font-style: normal; }
:lang(zh-CN) h2 { letter-spacing: -.05em; }
:lang(zh-CN) .hero-copy { max-width: 28em; }
:lang(zh-CN) .section-heading > p { max-width: 35em; }

@media (max-width: 900px) {
  .container { width: calc(100% - 64px); }
  .site-header { gap: 15px; padding-inline: 4px; }
  .site-header nav { gap: 16px; }
}
@media (max-width: 840px) {
  .site-header { grid-template-columns: 1fr auto; gap: 10px; padding-block: 11px; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 24px); }
  .container { width: calc(100% - 36px); }
  .header-end a { padding-block: 5px; }
  .site-header .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .header-end { gap: 11px; }
  h1 { font-size: clamp(3.5rem, 11vw, 5rem); }
  .hero-copy { margin-block: 16px 20px; }
  .hero-tag { margin-bottom: 15px; letter-spacing: .06em; }
  .tech-grid, .build-grid, .faq { grid-template-columns: 1fr; }
  .credit-grid { grid-template-columns: 1fr; }
  .faq-list summary { padding-block: 16px; }
  .faq p:not(.eyebrow) { margin-right: 4px; }
  .footer-row { flex-wrap: wrap; }
  .footer-links { gap: 13px; flex-wrap: wrap; justify-content: end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .faq-indicator::after { transition: none; }
}

/* GitHub entries (build.py github_entries) */
.gh { flex: none; width: 1.05em; height: 1.05em; }
.header-link { display: inline-flex; align-items: center; gap: 7px; }
.source { margin-top: 18px; }
.source-link {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; max-width: 100%;
  font-size: 1rem; font-weight: 600; text-decoration: none;
}
.source-url { min-width: 0; }
.source-url .nw { white-space: nowrap; }
a.source-link:hover .source-url { text-decoration: underline; text-underline-offset: 4px; }
.source-state {
  padding: 2px 8px; border-radius: 5px; font-size: .8rem; font-weight: 700; white-space: nowrap;
  background: #f2ebd9; color: #6b4a14;
}
.source-state.open { background: #e2ecd9; color: #2c5a3e; }
.hero-source { color: #fffaf0; }
.hero-source .source-state { background: #f2d48d; color: #222c20; }
.hero-source .source-state.open { background: #cfe3c4; color: #1d3a2b; }
.build-source { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.source-label { font-size: .8rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: #48614e; }
@media (max-width: 690px) {
  .header-link { padding: 7px 10px; }
  .source-link { font-size: .94rem; flex-wrap: nowrap; align-items: flex-start; }
  .source-link .gh { margin-top: .2em; }
}

/* Community section (GitHub, issues, discussions, X, Reddit) */
.community { background: #1d3a2d; color: #fff9ea; }
.hero a:focus-visible, a.community-card:focus-visible, .featured a:focus-visible { outline-color: var(--gold); }
.community .section-index { color: #f1d697; }
.community .section-heading > p { color: #dfe9da; }
.repo-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px 28px;
  padding: clamp(24px, 3vw, 38px); border-radius: var(--card-radius); background: var(--paper); color: var(--ink);
  border: 1px solid #c7d3c6;
}
.repo-icon { display: grid; place-items: center; align-self: start; width: 64px; height: 64px; border-radius: 12px; background: #e5ecdf; color: var(--forest); }
.repo-icon .gh { width: 34px; height: 34px; }
.repo-card .eyebrow { flex-wrap: wrap; color: #48614e; margin-bottom: 8px; gap: 6px 12px; }
.repo-card .eyebrow .source-state { letter-spacing: .02em; text-transform: none; }
.repo-name { font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -.03em; line-height: 1.3; overflow-wrap: anywhere; }
.repo-name a { color: var(--forest); text-decoration-thickness: .055em; text-underline-offset: .16em; }
.repo-name a:hover { text-decoration-thickness: .1em; }
.repo-body > p:last-child { margin-top: 8px; color: var(--body); font-size: 1.0625rem; line-height: 1.6; max-width: 60ch; }
.repo-action { display: grid; gap: 8px; }
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; margin-top: 19px; }
.community-card {
  display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2.2vw, 26px); border-radius: var(--card-radius);
  background: #264a39; border: 1px solid #3f6a54; color: #fff9ea; text-decoration: none;
}
a.community-card:hover { background: #2e5744; border-color: #f2d48d; }
a.community-card:hover .card-cta { text-decoration: underline; text-underline-offset: 3px; }
.community-card h3 { font-size: 1.3rem; }
.community-card p { color: #dfe9da; font-size: 1.0625rem; line-height: 1.6; flex: 1; }
.card-cta { margin-top: 6px; font-size: 1.0625rem; font-weight: 700; color: #f2d48d; }
.featured {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 26px; padding-top: 22px;
  border-top: 1px solid #3f6a54; font-size: 1.0625rem; color: #dfe9da;
}
.featured strong { color: #f1d697; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; }
.featured a { font-weight: 700; color: #fff9ea; }
@media (max-width: 900px) {
  .repo-card { grid-template-columns: auto minmax(0, 1fr); }
  .repo-action { display: flex; flex-wrap: wrap; grid-column: 2; }
}
@media (max-width: 690px) {
  .repo-card { grid-template-columns: 1fr; gap: 16px; }
  .repo-icon { width: 56px; height: 56px; border-radius: 14px; }
  .repo-icon .gh { width: 30px; height: 30px; }
  .repo-action { grid-column: 1; }
  .repo-action .button { width: 100%; }
  .community-grid { grid-template-columns: 1fr; }
}

/* Controls section */
.controls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.control-card { background: #fffdf7; border: 1px solid var(--line); border-radius: var(--card-radius); padding: clamp(20px, 2.4vw, 30px); }
.control-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--forest); }
.control-card h3 small { font-size: .88rem; font-weight: 600; color: var(--body); letter-spacing: 0; }
.control-card dl { margin: 0; }
.control-card dl div {
  display: grid; grid-template-columns: minmax(0, 12.5ch) minmax(0, 1fr); column-gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.control-card dt { grid-row: span 3; font-weight: 700; font-size: 1.0625rem; line-height: 1.45; color: var(--ink); }
.control-card dd { grid-column: 2; margin: 0; font-size: 1.0625rem; line-height: 1.45; color: var(--body); }
.control-card dd + dd { margin-top: 3px; }
.control-card dt, .control-card dd { overflow-wrap: anywhere; }
:lang(zh-CN) .control-card dl div { grid-template-columns: minmax(0, 8em) minmax(0, 1fr); }
.control-tips { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 19px; margin-top: 19px; }
.control-tips article { background: #e8eee3; border: 1px solid #d7e1d5; border-radius: var(--card-radius); padding: 18px 22px; }
.control-tips h3 { font-size: 1.0625rem; color: #7a4f12; }
.control-tips p { margin-top: 6px; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.control-tips article:nth-child(4) { grid-column: 1 / -1; }  /* Magnesis: a row of its own, as on the diagram */
.button.outline { margin-top: 22px; border-color: var(--forest); color: var(--forest); background: transparent; }
.button.outline:hover { background: #e8eee3; }
@media (max-width: 1000px) {
  .credit-grid { grid-template-columns: 1fr 1fr; }
  .controls-grid { grid-template-columns: 1fr 1fr; }
  .controls-grid .control-card:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .control-tips { grid-template-columns: 1fr 1fr; }
  .control-tips article:last-child { grid-column: auto; }
  .control-tips article:nth-child(4) { grid-column: auto; }
}
@media (max-width: 690px) {
  .controls-grid, .control-tips { grid-template-columns: 1fr; }
  .controls-grid .control-card:nth-child(2) { grid-row: auto; }
  .control-tips article:last-child, .control-tips article:nth-child(4) { grid-column: auto; }
  .control-card dl div { grid-template-columns: minmax(0, 10.5ch) minmax(0, 1fr); column-gap: 12px; }
  :lang(zh-CN) .control-card dl div { grid-template-columns: minmax(0, 7em) minmax(0, 1fr); }
}

/* In-page image viewer (assets/lightbox.js) */
a.zoom { cursor: zoom-in; }
.controls-diagram {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--card-radius);
}
.controls-diagram img { width: 100%; height: auto; }
.controls-zoom-icon {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: #fffaf0;
}
.controls-zoom-icon::before {
  content: ""; position: absolute; top: 11px; left: 11px;
  width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%;
}
.controls-zoom-icon::after {
  content: ""; position: absolute; top: 23px; left: 22px;
  width: 8px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg);
}
.controls-details > summary { width: fit-content; list-style: none; text-decoration: none; }
.controls-details > summary::-webkit-details-marker { display: none; }
.controls-details[open] .controls-expand { display: none; }
.controls-details[open] .controls-collapse { display: inline; }
.controls-chevron {
  width: 8px; height: 8px; margin: 0 2px 4px 3px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.controls-details[open] .controls-chevron { margin-bottom: -4px; transform: rotate(225deg); }
.controls-details > .controls-grid { margin-top: 19px; }
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: #fffaf0;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox::backdrop { background: #0d1d18f2; }
.lightbox img {
  width: auto; max-width: min(94vw, 1600px); max-height: calc(100vh - 120px);
  margin: 0; border-radius: 10px; object-fit: contain; box-shadow: 0 20px 60px #0009; cursor: default;
}
.lightbox-close {
  position: fixed; top: 16px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #f8f4e566; background: #1a3329e8; color: #fffaf0;
  font: 400 30px/1 var(--sans); cursor: pointer;
}
.lightbox-close:hover { background: #315142; }
.lightbox-close:focus-visible { outline: 3px solid #f2d48d; outline-offset: 3px; }
.lightbox-hint { font-size: .95rem; color: #e2ebde; cursor: pointer; }
html:has(.lightbox[open]) { overflow: hidden; }
/* setup card: the installer download and the build-from-source guide side by side (2026-11-14) */
.build-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.build-actions .button { margin-top: 0; }
.build-guide { margin-top: 14px; font-size: 1rem; }
.build-guide a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.build-steps ol { margin-block: 10px 0; }
.build-steps li { padding-block: 14px; }
.build-steps li::before { top: 15px; }
.requirements li strong, .build-steps li strong { display: block; color: var(--ink); font-size: 1.125rem; }
.requirements li p, .build-steps li p { margin-top: 3px; line-height: 1.55; }
.build-prep { margin-top: 16px; border-top: 1px solid var(--line); }
.build-prep summary { color: var(--forest); }
.build-prep p { color: var(--body); font-size: 1.0625rem; line-height: 1.55; margin-bottom: 10px; }
.build-prep pre {
  margin: 0; padding: 10px 12px; border-radius: 6px; background: #e8eee3;
  white-space: pre-wrap; overflow-wrap: anywhere;
}

/* Header: brand on the left; language, GitHub and Follow on X on the right (2026-11-15) */
.site-header { grid-template-columns: 1fr auto; }
.follow-x {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: var(--ink); color: #fffaf0; font-weight: 700;
}
.follow-x:hover { background: var(--forest); text-decoration: none !important; }
.x-icon { flex: none; }

/* Hero: the gameplay video on top, unobstructed; title and download below it in one dark band */
.hero { position: relative; overflow: hidden; border-radius: 18px; color: #fffaf0; background: #10261e; }
.hero-player { position: relative; height: clamp(320px, calc(100vh - 330px), 700px); background: #102319; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none; background: linear-gradient(0deg, #0b1d1680, transparent); }
.hero-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 40px;
  padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3.4vw, 48px) clamp(22px, 2.8vw, 36px);
}
.hero-bar h1 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: 1; }
.hero-bar h1 br { display: none; }
.hero-bar .hero-tag { margin-bottom: 12px; background: transparent; }
.hero-bar .hero-copy { margin: 12px 0 0; max-width: 60ch; font-size: clamp(1rem, 1.2vw, 1.15rem); color: #e8efe2; }
:lang(zh-CN) .hero-bar .hero-copy { max-width: 36em; }
.hero-bar .actions { flex-wrap: nowrap; }
.button .gh, .dl-icon { width: 17px; height: 17px; }
.hero-controls {
  position: absolute; right: clamp(12px, 2vw, 26px); bottom: clamp(12px, 2vw, 22px);
  display: flex; align-items: center; gap: 10px;
}
.hero-scene {
  padding: 6px 12px; border-radius: 999px; background: #0b1d16a6; font-size: .92rem; font-weight: 650;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-buttons {
  display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px;
  background: #0b1d16a6; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fffaf0; cursor: pointer;
}
.hero-btn:hover { background: #ffffff26; }
.hero-btn:focus-visible, .hero-dot:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hero-btn svg { width: 20px; height: 20px; }
.hero-btn[data-act="pause"] svg:last-child, .is-paused .hero-btn[data-act="pause"] svg:first-child { display: none; }
.is-paused .hero-btn[data-act="pause"] svg:last-child { display: block; }
.hero-btn[data-act="sound"] svg:last-child, .has-sound .hero-btn[data-act="sound"] svg:first-child { display: none; }
.has-sound .hero-btn[data-act="sound"] svg:last-child { display: block; }
.hero-btn[data-act="sound"] { background: var(--gold); color: #222c20; }
.has-sound .hero-btn[data-act="sound"] { background: transparent; color: #fffaf0; }
.hero-dots { display: flex; gap: 2px; padding-inline: 2px; }
.hero-dot { width: 22px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dot::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fffaf080; transition: width .2s, background-color .2s;
}
.hero-dot[aria-current]::after { width: 20px; border-radius: 4px; background: var(--gold); }
.scene-count { margin-left: 8px; opacity: .72; font-variant-numeric: tabular-nums; }
.demo-credit { margin-top: 10px; color: var(--body); font-size: .92rem; }

/* Below the banner: three points on the left, the checklist on the right */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start;
  padding-top: clamp(40px, 5vw, 72px);
}
.intro-facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.intro-facts li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.intro-facts li:first-child { padding-top: 6px; }
.intro-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #e3eadb; color: var(--forest); }
.intro-icon svg { width: 26px; height: 26px; }
.intro-facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -.04em; line-height: 1.15; }
.intro-facts div span { display: block; margin-top: 6px; color: var(--body); font-size: 1.0625rem; line-height: 1.55; }
.need-card { padding: clamp(22px, 2.6vw, 32px); border-radius: 18px; background: var(--forest); color: #fffaf0; }
.need-card .need-label { margin: 0 0 8px; color: var(--gold); }
.need-list { display: grid; margin: 0 0 22px; padding: 0; list-style: none; }
.need-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #ffffff22; font-weight: 650; line-height: 1.4; }
.need-list svg { flex: none; color: var(--gold); }
.need-card .button.solid { width: 100%; background: var(--gold); color: #222c20; border-color: transparent; }
.need-card .button.solid:hover { background: #ffe9ac; }

/* Install: the installer's screens beside the steps */
.build-grid { align-items: start; }
.build-shots { display: grid; gap: 10px; }
.build-shots a { display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 30px #183a2b22; }
.build-shot-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.build-shots figcaption { color: var(--body); font-size: .95rem; line-height: 1.5; }
.build-steps { border: 1px solid var(--line); border-radius: var(--card-radius); padding: clamp(20px, 3vw, 35px); }
.requirements-list { margin: 10px 0 0; padding: 0; color: var(--body); }
.requirements-list li { list-style: none; padding-block: 10px; border-bottom: 1px solid var(--line); }
.requirements-list p { margin-top: 3px; }

@media (max-width: 860px) {
  .hero-bar { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
  }
  .site-header .brand { max-width: 100%; overflow-wrap: anywhere; }
  .header-end { flex-wrap: wrap; max-width: 100%; gap: 4px 10px; }
  .header-end a { display: inline-flex; align-items: center; min-height: 44px; }
  .follow-x { padding: 7px 11px; }
  .header-link { padding: 7px 10px; }
  .hero { border-radius: 13px; }
  .hero-player { height: auto; aspect-ratio: 16/10; }
  .hero-controls { bottom: 8px; right: 8px; }
  .hero-dots { display: none; }
  .hero-controls { left: 8px; justify-content: space-between; }
  .hero-scene { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .82rem; padding: 5px 10px; }
  .hero-btn { width: 34px; height: 34px; }
  .hero-bar .actions { flex-wrap: wrap; }
  .hero-bar .actions .button { flex: 1 1 auto; }
  .build-shot-row { grid-template-columns: 1fr; }
}
