:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color-scheme: light;
  --background: #f6f3ed;
  --text: #292820;
  --muted: #736e65;
  --line: #ded9cf;
  --accent: #c15b3c;
  --button: #30342e;
  --button-text: #fff;
  --soft: #ebe6dc;
  color: var(--text);
  background: var(--background);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #181b18;
  --text: #ebe8df;
  --muted: #aba99e;
  --line: #353733;
  --accent: #ec9978;
  --button: #e5dfd0;
  --button-text: #22251f;
  --soft: #292c26;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.topbar { max-width: 1440px; margin: auto; padding: 26px 48px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 13px; font-weight: 650; letter-spacing: .13em; }
.theme { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; }
.theme img { width: 20px; height: 20px; }
.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; filter: invert(1); }
:root[data-theme="dark"] .moon { display: none; }
main { max-width: 1400px; margin: auto; padding: 0 40px; }
.hero { text-align: center; padding-top: 32px; }
h1 { margin: 0; font-size: clamp(38px, 4.45vw, 64px); font-weight: 600; line-height: 1.35; letter-spacing: -.055em; }
h1 span { display: inline-block; color: var(--accent); }
.intro { margin: 19px auto 0; max-width: 680px; font-size: 16px; color: var(--muted); line-height: 1.85; text-wrap: balance; }
.intro span { display: inline-block; }
.download-section { max-width: 650px; margin: 30px auto 0; }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.download { min-width: 0; text-align: center; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 15px 20px; border: 1px solid transparent; border-radius: 11px; background: var(--button); color: var(--button-text); font-size: 15px; font-weight: 500; transition: transform .2s, background-color .2s; }
.download-button img { width: 18px; height: 18px; filter: invert(1); transform: rotate(90deg); }
:root[data-theme="dark"] .download-button img { filter: none; }
.download-button:hover[href] { transform: translateY(-2px); }
.download-button[aria-disabled="true"] { background: var(--soft); color: var(--muted); cursor: default; }
.download-button[aria-disabled="true"] img { opacity: .6; filter: none; }
:root[data-theme="dark"] .download-button[aria-disabled="true"] img { filter: invert(1); }
.platform { font-size: 12px; letter-spacing: .03em; color: var(--muted); margin: 13px 0 5px; }
.release-info { margin: 0; min-height: 21px; font-size: 11px; line-height: 1.85; color: var(--muted); }
.retry { border: 0; padding: 10px; background: transparent; color: var(--accent); font-size: 12px; text-decoration: underline; }
.mobile-note { display: none; }
.story-scene { margin: 12px auto 0; max-width: 1240px; }
.story-picture {
  display: block;
  /* Fade only the empty margins of the real scene asset into the page. */
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent), linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.story-picture img { display: block; width: 100%; height: auto; aspect-ratio: 1717 / 916; }
.install-help { max-width: 760px; margin: 24px auto 0; padding-top: 23px; border-top: 1px solid var(--line); }
.install-help > summary { text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.install-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 12px 0; }
.install-columns h2 { margin: 18px 0 10px; font-size: 14px; font-weight: 600; }
.install-columns p { font-size: 13px; line-height: 1.9; color: var(--muted); }
footer { display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 36px auto 0; padding: 24px 48px 32px; font-size: 11px; color: var(--muted); }
footer span { letter-spacing: .13em; }
footer p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .story-picture { animation: scene-arrive .9s ease-out both; }
  @keyframes scene-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 760px) {
  .topbar { padding: 18px 22px; }
  .brand span { font-size: 12px; }
  .brand img { width: 27px; height: 27px; }
  main { padding: 0 22px; }
  .hero { padding-top: 26px; }
  h1 { font-size: clamp(33px, 8.8vw, 48px); line-height: 1.42; }
  h1 span { display: block; }
  .intro { font-size: 14px; max-width: 380px; margin-top: 17px; }
  .download-section { margin-top: 25px; }
  .downloads { gap: 14px; }
  .download-button { min-height: 50px; padding: 13px 7px; gap: 6px; font-size: 13px; }
  .platform { font-size: 11px; margin-top: 11px; letter-spacing: 0; }
  .release-info { font-size: 10px; }
  .mobile-note { display: block; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.8; margin: 17px 0 0; }
  .story-scene { width: calc(100% + 44px); margin: 22px -22px 0; }
  .story-picture img { border-radius: 0; }
  .install-help { margin-top: 24px; padding-top: 20px; }
  .install-columns { grid-template-columns: 1fr; gap: 0; }
  footer { padding: 22px; margin-top: 20px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .download-button { border: 1px solid ButtonText; }
}

/* Shared UStori wordmark: preserve the orange U in both themes. */
.brand .brand-wordmark { position:relative; display:block; flex:0 0 auto; width:96px; height:32px; }
.brand .brand-wordmark > img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.brand .brand-light-lettering { display:none; clip-path:inset(0 0 0 24%); filter:brightness(0) invert(1); }
:root[data-theme="dark"] .brand .brand-light-lettering { display:block; }
