:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --ink: #252722;
  --muted: #5d6259;
  --rule: #d8d9ce;
  --accent: #a14328;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover, summary:hover { color: var(--accent); }
:where(a, button, summary, video):focus-visible { outline: 3px solid #a14328; outline-offset: 3px; }
.wrap { width: min(1160px, 91%); margin-inline: auto; }
.skip { position: absolute; left: 8px; top: -8rem; z-index: 2; padding: .6rem 1rem; background: white; }
.skip:focus { top: 8px; }
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner, .brand, .masthead nav, .kicker, .category, .app-jumps a,
.primary-actions, .policy-links, footer { display: flex; align-items: center; }
.masthead-inner { justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { gap: 9px; font-size: 22px; font-weight: 700; letter-spacing: -.055em; }
.brand img { flex: none; }
.masthead nav { gap: clamp(12px, 2.2vw, 32px); font-size: 14px; }
.masthead nav a, .detail-link, .policy-links a, footer a {
  display: inline-flex; align-items: center; min-height: 44px;
}
.language { font: inherit; font-size: 13px; color: inherit; border: 1px solid #c6c7bb; border-radius: 6px; background: transparent; padding: 0 12px; min-height: 36px; min-width: 48px; cursor: pointer; }
.language:hover { background: #ebece3; }
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 205px);
  align-items: end; gap: 40px; padding-block: clamp(28px, 3.6vw, 52px) clamp(23px, 2.7vw, 39px);
}
.kicker, .category { gap: 9px; font: 600 11px/1.4 var(--mono); letter-spacing: .075em; }
.kicker { text-transform: uppercase; color: var(--muted); margin-bottom: 13px; }
.key { width: 8px; height: 8px; background: #b34f30; border-radius: 2px; flex: none; }
h1 { font-size: clamp(42px, 4.7vw, 70px); line-height: 1.02; letter-spacing: -.058em; font-weight: 610; }
h1 em { display: block; font: italic 1.04em/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.05em; color: var(--accent); }
:lang(zh-CN) h1 { letter-spacing: -.055em; line-height: 1.1; }
:lang(zh-CN) h1 em { font: inherit; font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; }
.app-jumps { border-top: 1px solid var(--rule); }
.app-jumps a { min-height: 44px; gap: 10px; border-bottom: 1px solid var(--rule); font-size: 14px; font-weight: 560; }
.jump-arrow { margin-left: auto; font-weight: 400; color: var(--muted); }
.signal { display: block; width: 16px; height: 16px; flex: none; }
.signal.glowrally { background: radial-gradient(circle, #774b85 1.8px, transparent 2.2px) 0 0 / 5.3px 5.3px; }
.signal.engine-simulator { background: linear-gradient(#a14328 0 0) left center/3px 6px, linear-gradient(#a14328 0 0) 4px center/3px 12px, linear-gradient(#a14328 0 0) 8px center/3px 16px, linear-gradient(#a14328 0 0) 12px center/3px 9px; background-repeat: no-repeat; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.project { background: #fdfcf9; border: 1px solid var(--rule); border-radius: 12px; }
.project:target { outline: 2px solid var(--accent); outline-offset: 2px; }
.artwork { display: block; border-radius: 11px 11px 0 0; background: #13111c; }
.artwork img { display: block; width: 100%; height: auto; border-radius: inherit; }
.card-body { padding: clamp(17px, 2vw, 28px); }
.category { color: var(--muted); }
.category .key { width: 13px; height: 3px; border-radius: 0; }
[data-app="glowrally"] .category .key { background: #80508f; }
.project h2 { font-size: clamp(27px, 2.45vw, 37px); font-weight: 620; line-height: 1.16; letter-spacing: -.045em; margin-block: 6px 9px; }
.description, .studio p, .demo p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.primary-actions { flex-wrap: wrap; column-gap: 14px; }
.play-badge { display: inline-flex; border-radius: 6px; }
.play-badge img { display: block; width: 147px; height: auto; }
.play-badge .badge-zh, :lang(zh-CN) .play-badge .badge-en { display: none; }
:lang(zh-CN) .play-badge .badge-zh { display: block; }
.detail-link { gap: 6px; font-size: 14px; font-weight: 560; }
.qr { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
.qr img { width: 88px; height: 88px; display: block; border: 1px solid var(--rule); border-radius: 4px; }
.policy-links { border-top: 1px solid var(--rule); margin-top: 15px; gap: 20px; font-size: 12px; color: var(--muted); }
.policy-links a:hover, .detail-link:hover, .support-link:hover, .demo a:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo { font-size: 14px; border-top: 1px solid var(--rule); }
.demo summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 560; }
.demo video { display: block; width: 100%; height: auto; border-radius: 5px; background: #12101b; }
.demo p { margin-block: 10px; }
.demo a, .support-link { text-decoration: underline; text-underline-offset: 3px; }
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 8vw, 110px); margin-top: 42px; border-top: 1px solid var(--rule); padding-block: 28px 36px; }
.studio h2 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 6px; }
.support-link { display: inline-block; margin-top: 7px; }
footer { justify-content: space-between; border-top: 1px solid var(--rule); padding-block: 12px; font-size: 12px; color: var(--muted); }

@media (min-width: 761px) and (max-height: 800px) {
  .intro { padding-block: 22px; }
  h1 { font-size: clamp(40px, 4vw, 56px); }
  .actions { align-items: flex-start; }
}
@media (max-width: 900px) {
  .primary-actions { column-gap: 9px; }
  .qr img { width: 74px; height: 74px; }
}
@media (max-width: 760px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .wrap { width: min(92%, 590px); }
  .masthead-inner { min-height: 60px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 17px; padding-block: 26px 18px; }
  .app-jumps { display: flex; column-gap: 22px; flex-wrap: wrap; border-top: 0; }
  .app-jumps a { min-height: 42px; gap: 7px; font-size: 13px; }
  .jump-arrow { margin-left: 3px; }
  .card-body { padding-block: 18px 10px; }
  .qr { font-size: 12px; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
  .qr img { display: none; }
  .actions { margin-top: 10px; }
  .policy-links { margin-top: 10px; }
  .studio { margin-top: 30px; padding-block: 24px; gap: 22px; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 395px) {
  .brand { font-size: 19px; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .masthead nav { font-size: 13px; gap: 10px; }
  .language { padding-inline: 8px; min-width: 40px; }
  .app-jumps { column-gap: 14px; }
  .play-badge img { width: 128px; }
  .actions { column-gap: 9px; }
}
