:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: #fff;
  --text: #1d1d1f;
  --description: #43434b;
  --muted: #55555e;
  --status: #666671;
  --footer: #5b5b65;
  --topbar-line: #e6e6ea;
  --divider: #e8e8ec;
  --active-border: #dedee6;
  --hover: #f1f1f4;
  --arrow: #e8e8ed;
  --arrow-hover: #dedee5;
  --arrow-text: #27272c;
  --link: #0057ad;
  --focus: #0061b9;
  --download: #005ebd;
  --download-hover: #004991;
  --tooltip: #232329;
  --tooltip-text: #fff;
  --art-center: #f1f1f5;
  --art-edge: #e3e3eb;
  --upcoming-center: #f7eeee;
  --upcoming-edge: #efdee1;
  --card-shadow: #24243b10;
  --active-shadow: #24243b15;
  --art-shadow: #22233a24;
  --mobile-arrow-shadow: #20202b22;
  --github-filter: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111113;
  --surface: #1c1c20;
  --text: #f3f3f5;
  --description: #d2d2db;
  --muted: #b3b3bf;
  --status: #b3b3bf;
  --footer: #a9a9b5;
  --topbar-line: #303039;
  --divider: #35353e;
  --active-border: #444450;
  --hover: #34343e;
  --arrow: #2a2a32;
  --arrow-hover: #3c3c46;
  --arrow-text: #ededf2;
  --link: #8bc3ff;
  --focus: #93c7ff;
  --download: #0666c7;
  --download-hover: #0753a0;
  --tooltip: #ededf2;
  --tooltip-text: #232329;
  --art-center: #32323c;
  --art-edge: #24242c;
  --upcoming-center: #3d2a31;
  --upcoming-edge: #291f26;
  --card-shadow: #0005;
  --active-shadow: #0008;
  --art-shadow: #0006;
  --mobile-arrow-shadow: #0008;
  --github-filter: grayscale(1) invert(1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
a:focus-visible, button:focus-visible, .gallery-items:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(780px, calc(100% - 64px)); margin-inline: auto; }
.topbar { padding-top: clamp(6px, 1.6vw, 20px); }
.topbar-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--topbar-line); }
.site-name { font-size: 1rem; font-weight: 650; text-decoration: none; }
.site-name:hover { color: var(--link); }
.contact-links { display: flex; align-items: center; gap: 2px; }
.brand-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; }
.brand-link:hover { background: var(--hover); }
.theme-toggle { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.theme-sun, [data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
.rednote img { width: 26px; height: 26px; padding-inline: 2px; background: #e52343; border-radius: 6px; }
.gmail img { width: 20px; height: 20px; }
.theme-toggle svg { width: 20px; height: 20px; }
.gallery { padding-block: clamp(22px, 4.8vh, 48px) clamp(22px, 5vh, 48px); }
h2, p { margin: 0; }
.gallery-stage { position: relative; }
.gallery-arrow { position: absolute; z-index: 1; inset-block-start: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--divider); border-radius: 50%; background: var(--arrow); color: var(--arrow-text); cursor: pointer; }
.gallery-prev { inset-inline-start: 0; }
.gallery-next { inset-inline-end: 0; }
.gallery-arrow:hover { background: var(--arrow-hover); }
.gallery-items {
  --stage-inset: max(38px, calc((100% - 524px) / 2));
  --edge-fade: clamp(24px, 5vw, 62px);
  display: flex;
  gap: 18px;
  padding: 14px var(--stage-inset) 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent);
}
.gallery-items::-webkit-scrollbar { display: none; }
.gallery-items.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.app {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  border-radius: 27px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 3px 10px var(--card-shadow);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.gallery-items.is-ready .app { opacity: .54; }
.gallery-items.is-ready .app:not(.is-current) .releases { visibility: hidden; }
.gallery-items.is-ready .app.is-current {
  opacity: 1;
  box-shadow: 0 0 0 1px var(--active-border), 0 6px 16px var(--active-shadow);
}
.art { height: clamp(148px, 42vw, 186px); display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 32%, var(--art-center), transparent 75%), linear-gradient(var(--art-edge), var(--surface)); }
.art img { display: block; width: calc(clamp(92px, 27vw, 120px) / var(--visible-ratio)); height: auto; filter: drop-shadow(0 10px 16px var(--art-shadow)); }
.record { --visible-ratio: .828125; }
.keyline { --visible-ratio: .90625; }
.app:has(.upcoming) {
  grid-template-rows: auto auto;
  align-content: center;
  background: radial-gradient(ellipse at 50% 40%, var(--upcoming-center), transparent 76%), linear-gradient(var(--upcoming-edge), var(--surface));
}
.upcoming { --visible-ratio: .85; background: none; }
.app-info { padding: 8px clamp(16px, 5vw, 32px) 19px; text-align: center; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.375rem); letter-spacing: -.045em; line-height: 1.15; }
.description { color: var(--description); margin-top: 10px; font-size: .9375rem; line-height: 1.6; }
.compat { margin-top: 8px; color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.releases { align-self: center; margin: 0 clamp(18px, 5vw, 32px) 24px; }
.release { display: flex; align-items: center; justify-content: space-between; gap: 5px 14px; flex-wrap: wrap; border-top: 1px solid var(--divider); padding-block: 10px; }
.release:last-child { padding-bottom: 0; }
.release-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.release-label { font-size: .875rem; }
.version { color: var(--muted); font-size: .8125rem; }
.release-actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; }
.download, .checksum, .github, .status { display: inline-flex; min-height: 44px; align-items: center; font-size: .8125rem; white-space: nowrap; }
.download { padding-inline: 15px; border-radius: 999px; background: var(--download); color: #fff; font-weight: 600; text-decoration: none; }
.download:hover { background: var(--download-hover); }
.checksum { color: var(--link); text-underline-offset: 3px; }
.github-entry { position: relative; display: inline-flex; }
.github { min-width: 36px; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; opacity: .72; cursor: pointer; }
.github img { filter: var(--github-filter); }
.github:hover, .github:focus-visible { background: var(--hover); opacity: 1; }
.github-note { position: absolute; z-index: 2; bottom: calc(100% - 2px); right: 0; display: none; padding: 6px 10px; border-radius: 8px; background: var(--tooltip); color: var(--tooltip-text); font-size: .75rem; white-space: nowrap; }
.github-entry:hover .github-note, .github:focus-visible + .github-note, .github-entry[data-open="true"] .github-note { display: block; }
.status { color: var(--status); }
.site-footer { padding: 19px 16px 24px; text-align: center; color: var(--footer); font-size: .8125rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .gallery-stage { margin-inline: -16px; }
  .gallery-arrow { inset-block-start: calc(14px + clamp(148px, 42vw, 186px) / 2); background: var(--surface); box-shadow: 0 2px 8px var(--mobile-arrow-shadow); }
  .gallery-prev { inset-inline-start: 5px; }
  .gallery-next { inset-inline-end: 5px; }
  .gallery-items { --stage-inset: max(33px, calc((100% - 524px) / 2)); --edge-fade: 13px; gap: 9px; }
  .app { border-radius: 22px; }
}
@media (max-width: 420px) {
  .release-actions { column-gap: 9px; }
  .download { padding-inline: 11px; }
}
