/* Homepage sections. Shared components come from ui.css. Several effects are vanilla takes on React Bits components
   (reactbits.dev); the comments name the component. */

/* ---------- Hero ---------- */
/* The sky starts at the top of the window, behind the header, which is see-through until the page scrolls (ui.css pulls
   the page up by the header's height). The hero gives that height back as padding, so its content sits where it did. */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(880px + var(--header-height), 100svh); padding-block: calc(var(--header-height) + clamp(28px, 5vw, 64px)) clamp(72px, 8vw, 104px); overflow: hidden; }
.hero-sky { --px: 0; --py: 0; --sky-top: var(--header-height); position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #c9e4ff 0%, #ddeffc 34%, var(--sky-fade) 68%, var(--bg) 100%); transition: background .6s; }
.hero-sky::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgb(255 255 255 / .55) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / .55) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 10%, transparent 70%); opacity: .55; }
.hero-sky::after { content: ""; position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(180deg, transparent, var(--bg)); }
:root[data-theme="dark"] .hero-sky { background: linear-gradient(180deg, #050a15 0%, #08121f 40%, var(--sky-fade) 78%, var(--bg) 100%); }
:root[data-theme="dark"] .hero-sky::before { background-image: linear-gradient(to right, rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / .05) 1px, transparent 1px); opacity: 1; }


.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(16px, 3vw, 40px); }
.hero-copy { min-width: 0; translate: 0 calc(var(--sy, 0) * 90px); animation: rise-in .9s .05s var(--ease-out) both; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--surface-glass); border: 1px solid var(--line); box-shadow: var(--shadow-xs); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.kicker-block { width: 14px; height: 14px; background: linear-gradient(#7ad35a 0 35%, #8b5d3b 35%); box-shadow: inset -3px -3px 0 rgb(0 0 0 / .14); }
.hero h1 { margin-top: 22px; font-size: clamp(3.6rem, 8.4vw, 6.9rem); font-weight: 850; line-height: .95; letter-spacing: -.058em; }
.hero h1 .gradient-text { font-weight: 380; padding-right: .04em; animation: brand-flow 9s linear infinite; }
.hero-tagline { margin-top: 22px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 750; letter-spacing: .01em; }
.hero-lede { margin-top: 12px; max-width: 30em; color: var(--ink-2); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn:not(.btn-primary) { background: var(--surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; }
.hero-spec { font-size: .8rem; font-weight: 650; letter-spacing: .06em; color: var(--ink-3); }
/* The title's letters scramble and settle ("Decrypted Text"), and trade weight near the pointer ("Variable Proximity");
   the tagline drifts in out of a blur ("Blur Text"). */
.decrypt { white-space: nowrap; }
.decrypt .is-scrambling { opacity: .4; }
.blur-glyphs > span { display: inline-block; animation: blur-in .85s var(--ease-out) both; animation-delay: calc(.5s + var(--i) * 55ms); }
/* Two specks of light run along the download button's edge ("Star Border"). The ring grows with the button on hover,
   so the button itself stays put inside it. */
.star-border { position: relative; display: inline-flex; padding: 2px; border-radius: 16px; overflow: hidden; transition: scale .2s ease-in-out; }
.star-border::before, .star-border::after { content: ""; position: absolute; width: 300%; height: 50%; border-radius: 50%; background: radial-gradient(circle, #fff, var(--glow-b-2) 10%, transparent 22%); }
.star-border::before { top: -11px; left: -250%; animation: star-top 5s linear infinite alternate; }
.star-border::after { bottom: -11px; right: -250%; animation: star-bottom 5s linear infinite alternate; }
.star-border > .btn { position: relative; z-index: 1; }
.star-border > .btn.btn-primary:hover:not(:disabled) { scale: 1; }
@media (hover: hover) { .star-border:hover { scale: 1.02; } }
@keyframes star-top { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes star-bottom { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-100%); opacity: 0; } }
/* The glass button's edge catches the light near the pointer, and a highlight glides after it ("Specular Button"). The
   pointer position comes from the shared .spotlight handler. */
.specular { position: relative; }
.specular::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: radial-gradient(90px circle at var(--mx) var(--my), var(--accent), color-mix(in srgb, var(--violet) 70%, transparent) 55%, transparent 80%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; pointer-events: none; }
.specular.spotlight::after { background: radial-gradient(110px circle at var(--mx) var(--my), rgb(255 255 255 / .85), transparent 70%); }
:root[data-theme="dark"] .specular.spotlight::after { background: radial-gradient(110px circle at var(--mx) var(--my), rgb(255 255 255 / .16), transparent 70%); }
@media (hover: hover) { .specular:hover::before { opacity: 1; } }

.online-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 14px 4px 12px; border-radius: 999px; background: var(--surface-glass); border: 1px solid var(--line); box-shadow: var(--shadow-xs); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .84rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.online-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; }
.online-pill[data-state="ok"] .online-dot { background: #22c55e; }
.online-pill[data-state="ok"] .online-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.online-pill[data-state="stale"] .online-dot { background: #e0a21b; }
.online-pill[data-state="loading"] .online-dot { animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pulse-dot { 50% { opacity: .3; } }
/* The count rolls into place digit by digit ("Counter"). online.js draws this copy; #online-value keeps the sentence for
   screen readers. */
.online-line { line-height: 1.4; white-space: nowrap; }
.online-roll { display: inline-flex; height: 1.4em; overflow: hidden; vertical-align: bottom; color: var(--ink); font-weight: 800; }
.online-roll-digit { height: 1.4em; overflow: hidden; }
.online-roll-strip { display: flex; flex-direction: column; text-align: center; transition: transform 1.3s var(--ease-out); }
.online-roll-strip > span { height: 1.4em; }

.pvp-scene { position: relative; justify-self: end; width: 100%; max-width: 640px; margin: 0; translate: 0 calc(var(--sy, 0) * 40px); }
.pvp-playground { position: relative; display: block; width: 100%; aspect-ratio: 560 / 520; padding: 0; border: 0; border-radius: 28px; background: none; color: inherit; cursor: default; touch-action: pan-y; }
.pvp-playground:focus-visible { outline-offset: -6px; }
.pvp-playground canvas { width: 100%; height: 100%; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity 1s .1s, transform 1.4s .1s var(--ease-out); }
.pvp-playground.is-ready canvas { opacity: 1; transform: none; }
.pvp-playground.is-interacting { cursor: pointer; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; color: var(--ink-3); border: 1px solid var(--line); background: var(--surface-glass); backdrop-filter: blur(8px); transition: color .2s, border-color .2s; }
.scroll-cue:hover { color: var(--ink); border-color: var(--line-2); }
.scroll-cue svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Announcements band ---------- */
/* Below the download panel, opening the dotted half of the page: the first screen stays clear of it. It is hidden until
   home.js has announcements to show and brings no spacing of its own, so nothing is left behind when there are none. */
.news-board { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 28px; background: var(--surface-glass); border: 1px solid var(--line); box-shadow: var(--shadow-md); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.news-board-head { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 14px 16px; border-radius: 18px; overflow: hidden; color: var(--panel-ink); background: radial-gradient(120% 120% at 0% 0%, var(--panel-a), transparent 60%), radial-gradient(120% 120% at 100% 100%, var(--panel-b), transparent 60%), var(--panel-base); }
.news-board-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(140deg, #000, transparent 75%); mask-image: linear-gradient(140deg, #000, transparent 75%); pointer-events: none; }
.news-board-head h2 { position: relative; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
/* Pixel bell. */
.news-board-mark { position: relative; width: 28px; height: 28px; background: linear-gradient(#ffd75e, #ffd75e) 12px 0 / 4px 4px no-repeat, linear-gradient(#ffd75e, #f2b52c) 6px 4px / 16px 14px no-repeat, linear-gradient(#f2b52c, #f2b52c) 2px 18px / 24px 4px no-repeat, linear-gradient(#c98a06, #c98a06) 11px 23px / 6px 4px no-repeat; image-rendering: pixelated; transform-origin: 50% 0; animation: bell-ring 4.5s ease-in-out infinite; }
@keyframes bell-ring { 0%, 84%, 100% { rotate: 0deg; } 87% { rotate: 14deg; } 90% { rotate: -12deg; } 93% { rotate: 8deg; } 96% { rotate: -4deg; } }
.news-board-all { position: relative; color: var(--glow-a-3); font-size: .86rem; }
.news-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.news[data-count="1"] .news-strip { grid-template-columns: minmax(0, 1fr); }
.news[data-count="2"] .news-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-strip li { display: flex; min-width: 0; }
.news-tile { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.news-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.news-tile[data-pinned] { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, var(--surface)), var(--surface) 60%); }
.news-tile-meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-tile-pin { padding: 1px 7px; border-radius: 6px; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); color: var(--warning-text); font-size: .7rem; font-weight: 750; }
.news-tile-title { font-size: 1rem; line-height: 1.45; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-tile-summary { color: var(--ink-3); font-size: .84rem; line-height: 1.6; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Narrow tiles (three side by side) carry the cover as a short band across the top; the landscape shows more ground than sky in it. */
.news-strip li { container-type: inline-size; }
.news-tile > .news-cover { flex: none; margin: -16px -18px 6px; aspect-ratio: 2.5; max-height: 112px; border-radius: 17px 17px 0 0; }
.news-tile > .news-cover .news-cover-art { object-position: 50% 64%; }
/* A wide tile (one or two announcements) would stretch that band into a poster, so the cover moves to the side as a 16:9 thumbnail. */
@container (min-width: 460px) {
  .news-tile[data-cover] { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 30%, 232px); grid-template-rows: repeat(3, auto); align-content: center; column-gap: 18px; row-gap: 6px; padding: 12px 12px 12px 18px; }
  .news-tile > .news-cover { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 0; aspect-ratio: 16 / 9; max-height: none; border-radius: 12px; }
}
@media (max-width: 900px) {
  .news-board { grid-template-columns: 1fr; }
  .news-board-head { flex-direction: row; align-items: center; gap: 14px; }
  .news-board-all { margin-left: auto; }
}
@media (max-width: 760px) {
  .news-strip, .news[data-count] .news-strip { grid-template-columns: minmax(0, 1fr); }
  /* Stacked tiles keep the cover as a thumbnail at the side. */
  .news-tile[data-cover] { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-content: start; column-gap: 14px; row-gap: 4px; padding: 12px 16px 12px 12px; }
  .news-tile > .news-cover { grid-column: 1; grid-row: 1 / -1; align-self: stretch; margin: 0; aspect-ratio: auto; min-height: 70px; max-height: none; border-radius: 12px; }
}
@media (max-width: 560px) {
  .news-board { padding: 10px; border-radius: 22px; }
  .news-board-head h2 { font-size: 1.25rem; }
}

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2, .faq-intro h2, .download-copy h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -.04em; }
.section-head p, .faq-intro p { margin-top: 10px; max-width: 34em; color: var(--ink-3); font-size: 1.02rem; }
.faq-docs { display: inline-block; margin-top: 16px; font-size: .95rem; }

/* ---------- Client preview ---------- */
.features { padding-top: clamp(40px, 6vw, 72px); overflow-x: clip; }
.preview-stage { position: relative; isolation: isolate; display: grid; place-items: center; padding: clamp(18px, 4.6vw, 58px) clamp(8px, 3vw, 36px); border-radius: 30px; overflow: hidden; background: #6f8fb3; box-shadow: var(--shadow-lg); }
.preview-stage::before { content: ""; position: absolute; inset: -20px; z-index: -1; background: linear-gradient(180deg, rgb(140 180 255 / .32), rgb(60 100 60 / .12)), url("../preview/world.png") center / cover; filter: blur(8px) saturate(1.1); }
.preview-stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); pointer-events: none; }
/* The picture grows past the stage to full bleed as it scrolls up the screen ("Scroll Expand"). home-fx.js sets --bleed,
   the distance still kept from the screen edge; the 20px is the blur's overscan. */
.preview-stage.can-bleed { overflow: visible; background: none; box-shadow: none; }
.preview-stage.can-bleed::before { inset: -20px calc(50% - 50vw - 20px); clip-path: inset(20px calc(var(--bleed, 0px) + 20px) round var(--bleed-round, 30px)); }
.preview-stage.can-bleed::after { display: none; }
.preview-note { margin-top: 14px; text-align: center; color: var(--ink-3); font-size: .8rem; }

/* ---------- Download ---------- */
.download-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); align-items: center; gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 5.5vw, 68px); border-radius: 34px; overflow: hidden; color: var(--panel-ink); background: radial-gradient(110% 130% at 0% 0%, var(--panel-a) 0%, transparent 55%), radial-gradient(110% 120% at 100% 100%, var(--panel-b) 0%, transparent 58%), var(--panel-base); box-shadow: var(--shadow-lg); }
.download-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 30px 30px; -webkit-mask-image: linear-gradient(115deg, #000 10%, transparent 65%); mask-image: linear-gradient(115deg, #000 10%, transparent 65%); }
.download-panel::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--glow-a) 25%, transparent), transparent 65%); animation: orb 12s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translate(-60px, 80px) scale(1.15); } }
/* The panel's own gradient starts flowing and stirs around the pointer ("Grainient"); the CSS gradient above stays as the
   picture without WebGL. The grain is a static layer at full resolution. */
.panel-flow { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s; }
.panel-flow.is-ready { opacity: 1; }
.panel-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .34; mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.1 -.1'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 220px 220px; }
.download-copy h2 { color: #fff; line-height: 1.12; }
.download-copy > p { margin-top: 16px; color: rgb(255 255 255 / .72); font-size: 1.02rem; }
.download-specs { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 34px; }
.download-specs dt { font-size: .78rem; color: rgb(255 255 255 / .55); font-weight: 600; }
.download-specs dd { margin-top: 2px; font-size: 1.15rem; font-weight: 750; color: #fff; }
/* The launcher version flips into place like a departures board ("Split-Flap Text"). */
.flap { display: inline-flex; gap: 3px; }
.flap-cell { position: relative; min-width: .72em; padding: 1px .12em; border-radius: 5px; background: rgb(255 255 255 / .1); text-align: center; font-variant-numeric: tabular-nums; }
.flap-cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(0 0 0 / .45); }
.flap-cell.is-dot { min-width: 0; padding: 0; background: none; }
.flap-cell.is-dot::after { display: none; }
.flap-cell.is-flip { animation: flap .08s linear; }
@keyframes flap { from { transform: perspective(200px) rotateX(-80deg); } to { transform: none; } }
/* The three install steps light up in turn ("Stepper"). */
.download-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.download-guide { display: inline-block; margin-top: 28px; color: var(--glow-a); font-size: .92rem; font-weight: 650; text-underline-offset: 4px; }
.download-guide:hover { text-decoration: underline; }
.download-steps li { position: relative; display: grid; gap: 10px; color: color-mix(in srgb, var(--panel-ink) 55%, transparent); font-size: .9rem; font-weight: 650; transition: color .4s; }
.download-steps b { display: grid; place-items: center; width: 34px; height: 34px; background: rgb(255 255 255 / .1); color: color-mix(in srgb, var(--panel-ink) 70%, transparent); font: 850 .95rem var(--font-display); box-shadow: inset -3px -3px 0 rgb(0 0 0 / .25); transition: background-color .4s, color .4s; }
@property --step-fill { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.download-steps li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: 46px; right: 4px; height: 2px; background: linear-gradient(90deg, var(--glow-a) var(--step-fill), rgb(255 255 255 / .14) var(--step-fill)); transition: --step-fill .6s; }
.download-steps li.is-done { color: var(--panel-ink); }
.download-steps li.is-done b { background: var(--glow-a); color: var(--glow-ink); }
.download-steps li.is-done:not(:last-child)::after { --step-fill: 100%; }
.download-card { position: relative; padding: 28px; border-radius: 24px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.download-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--brand-angle), color-mix(in srgb, var(--glow-a) 90%, transparent), color-mix(in srgb, var(--glow-b) 90%, transparent), transparent 40%, color-mix(in srgb, var(--glow-a) 90%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: brand-flow 7s linear infinite; pointer-events: none; }
.download-platform { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.platform-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgb(255 255 255 / .08); }
.platform-icon svg { width: 26px; height: 26px; fill: var(--glow-a-2); }
.download-platform h3 { font-size: 1.35rem; color: #fff; }
.download-platform span { font-size: .85rem; color: rgb(255 255 255 / .6); }
.download-status { margin: 20px 0 16px; font-size: .9rem; color: rgb(255 255 255 / .82); }
.download .btn-primary { --btn-bg: var(--glow-a); --btn-fg: var(--glow-ink); }
.download .btn-primary:hover:not(:disabled) { --btn-bg: var(--glow-a); }
.download #installer-pending { --btn-bg: rgb(255 255 255 / .08); --btn-fg: rgb(255 255 255 / .7); --btn-border: rgb(255 255 255 / .12); }
.download-note { margin-top: 14px; font-size: .82rem; color: rgb(255 255 255 / .58); }
.installer-checksum { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .12); min-width: 0; }
.installer-checksum-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgb(255 255 255 / .82); font-size: .78rem; font-weight: 650; }
.installer-checksum button { padding: 5px 10px; border: 1px solid rgb(255 255 255 / .25); border-radius: 8px; background: transparent; color: var(--glow-a-3); font: inherit; cursor: pointer; }
.installer-checksum button:hover { background: rgb(255 255 255 / .08); }
.installer-checksum button:focus-visible { outline: 2px solid var(--glow-a-3); outline-offset: 3px; }
.installer-checksum code { display: block; margin-top: 8px; overflow-wrap: anywhere; color: rgb(255 255 255 / .86); font: .73rem/1.65 ui-monospace, Consolas, monospace; user-select: all; }
.installer-checksum code[hidden] { display: none; }
.installer-checksum p { margin-top: 7px; color: rgb(255 255 255 / .58); font-size: .75rem; line-height: 1.6; }
.download-discord { display: inline-block; margin-top: 12px; color: var(--glow-a-3); font-size: .88rem; }
/* Two editions: the online card keeps its colour and flowing edge; the offline one sits under it in grey and white,
   its edge dashed like an unplugged cable, and its button asks first (the dialog below). */
.download-options { display: grid; gap: 14px; }
.edition-tag { position: absolute; top: 28px; right: 28px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--glow-a) 16%, transparent); color: var(--glow-a-3); font-size: .74rem; font-weight: 750; white-space: nowrap; }
.download-offline { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; border: 1px dashed rgb(255 255 255 / .26); background: rgb(44 46 45 / .94); color: rgb(255 255 255 / .55); filter: grayscale(1); }
.offline-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgb(255 255 255 / .08); }
.offline-icon svg { width: 22px; height: 22px; fill: currentColor; }
.offline-text { min-width: 0; }
.offline-text strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: rgb(255 255 255 / .86); font-size: 1rem; font-weight: 750; }
.offline-chip { padding: 1px 8px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .18); color: rgb(255 255 255 / .62); font-size: .72rem; font-weight: 700; }
.offline-text > span { display: block; margin-top: 2px; font-size: .82rem; }
.download .offline-open { --btn-bg: rgb(255 255 255 / .08); --btn-fg: rgb(255 255 255 / .82); --btn-border: rgb(255 255 255 / .18); min-height: 40px; padding: 0 16px; font-size: .86rem; box-shadow: none; }
.download .offline-open:hover:not(:disabled) { --btn-bg: rgb(255 255 255 / .14); --btn-fg: #fff; --btn-border: rgb(255 255 255 / .3); }
.download .offline-open:focus-visible { outline-color: #fff; }

/* The offline dialog sets the two editions side by side, the online one dressed like the download panel with the same
   flowing edge, and leads with the online download. */
.offline-modal { width: min(540px, calc(100% - 32px)); }
.offline-modal::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-gradient); animation: brand-flow 9s linear infinite; }
.offline-kicker { display: block; margin-bottom: 6px; color: var(--ink-3); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.edition-compare { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
.edition { position: relative; display: grid; align-content: start; gap: 12px; padding: 16px; border-radius: 18px; }
.edition.is-online { color: var(--panel-ink); background: radial-gradient(120% 140% at 0% 0%, var(--panel-a) 0%, transparent 60%), radial-gradient(120% 120% at 100% 100%, var(--panel-b) 0%, transparent 62%), var(--panel-base); }
.edition.is-online::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--brand-angle), color-mix(in srgb, var(--glow-a) 90%, transparent), color-mix(in srgb, var(--glow-b) 90%, transparent), transparent 40%, color-mix(in srgb, var(--glow-a) 90%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: brand-flow 7s linear infinite; pointer-events: none; }
.edition.is-offline { border: 1px dashed var(--line-2); background: var(--surface-2); color: var(--ink-3); filter: grayscale(1); }
.edition-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.02rem; font-weight: 800; }
.edition.is-online .edition-name { color: #fff; }
.edition-name > span { padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--glow-a) 16%, transparent); color: var(--glow-a-3); font-size: .74rem; font-weight: 750; }
.edition ul { display: grid; gap: 8px; font-size: .86rem; }
.edition li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; text-wrap: pretty; }
.edition li svg.icon { width: 16px; height: 16px; margin-top: 3px; stroke-width: 2.4; }
.edition.is-online li svg.icon { color: var(--glow-a-2); }
.offline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.offline-actions .btn { flex: 1 1 auto; }
.offline-skip { color: var(--ink-3); font-size: .88rem; font-weight: 650; }
a.offline-skip { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color .2s; }
a.offline-skip:hover { color: var(--ink); }
/* The offline packages stay grey and dashed like the offline edition above them: side by side when they fit, one per
   row on phones, and a lone package takes the whole row. */
.offline-files { display: grid; gap: 8px; margin-top: 4px; }
.offline-files[hidden], .offline-file[hidden] { display: none; }
.offline-files-title { color: var(--ink-3); font-size: .8rem; font-weight: 700; }
.offline-file-list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.offline-file { flex: 1 1 200px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--surface-2); color: var(--ink-3); filter: grayscale(1); transition: color .2s, border-color .2s; }
.offline-file strong { display: block; color: var(--ink-2); font-size: .9rem; font-weight: 750; transition: color .2s; }
.offline-file-text > span { display: block; margin-top: 2px; font-size: .8rem; text-wrap: pretty; }
.offline-file svg.icon { width: 18px; height: 18px; }
.offline-file:hover { border-color: var(--ink-3); color: var(--ink-2); }
.offline-file:hover strong { color: var(--ink); }


/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-height) + 32px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 2px; font-size: 1.06rem; font-weight: 650; cursor: pointer; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-text); }
.faq-list summary:focus-visible { outline-offset: -3px; }
.faq-list details p { max-width: 46em; padding: 0 40px 24px 2px; color: var(--ink-2); line-height: 1.85; }
.faq-list details.is-animating { overflow: hidden; }
.faq-plus { position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); transition: transform .38s var(--ease-out), background-color .25s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; top: 14px; left: 9px; width: 12px; height: 2px; border-radius: 2px; background: var(--ink-2); }
.faq-plus::after { transform: rotate(90deg); }
.faq-list details[open] .faq-plus, .faq-list details[data-faq-open="true"] .faq-plus { transform: rotate(45deg); background: var(--accent-soft); }
.faq-list details[data-faq-open="true"] .faq-plus::before, .faq-list details[data-faq-open="true"] .faq-plus::after { background: var(--accent-text); }
.faq-list details[data-faq-open="false"] .faq-plus { transform: rotate(0); }

/* ---------- Community ---------- */
.community { padding-top: 0; padding-bottom: clamp(56px, 7vw, 88px); }
.site-footer { margin-top: 0; }
/* The three links as one list: a band in the brand's colour slides in from the edge the pointer came through, with the
   row's text running inside it ("Flowing Menu"). home-fx.js adds .can-flow and fills the tracks. */
.flow-list { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.flow-row { --brand: var(--accent); --band: var(--brand); --band-ink: #fff; position: relative; display: block; overflow: hidden; }
.flow-row + .flow-row { border-top: 1px solid var(--line); }
.flow-row:focus-visible { outline-offset: -3px; }
.flow-row.discord { --brand: #5865f2; }
.flow-row.bilibili { --brand: #fb7299; --band: #e64980; }
.flow-row.github { --brand: var(--ink); --band: var(--ink); --band-ink: var(--bg); }
:root[data-theme="dark"] .flow-row.discord { --brand: #8d97ff; --band: #5865f2; }
.flow-rest { display: grid; grid-template-columns: 52px minmax(0, .9fr) minmax(0, 1.5fr) auto; align-items: center; gap: 20px; min-height: 104px; padding: 18px clamp(20px, 3vw, 34px); transition: background-color .25s; }
.flow-row:hover .flow-rest { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.flow-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
.flow-icon svg, .flow-mark svg { width: 26px; height: 26px; fill: currentColor; }
.flow-icon svg.stroke, .flow-mark svg.stroke { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flow-name { font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.flow-desc { color: var(--ink-3); font-size: .95rem; }
.flow-go { justify-self: end; font-size: .88rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
.flow-band { display: none; }
.can-flow .flow-band { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--band); color: var(--band-ink); transform: translateY(var(--flow-from, 101%)); transition: transform .5s var(--ease-out); pointer-events: none; }
.can-flow .flow-clip { display: flex; align-items: center; height: 100%; transform: translateY(calc(var(--flow-from, 101%) * -1)); transition: transform .5s var(--ease-out); }
.can-flow .flow-row.is-flowing :is(.flow-band, .flow-clip) { transform: none; }
.can-flow .flow-row.is-jumping :is(.flow-band, .flow-clip) { transition: none; }
.flow-track { display: flex; width: max-content; animation: flow-run 42s linear infinite paused; }
.flow-row.is-flowing .flow-track { animation-play-state: running; }
.flow-group { display: flex; align-items: center; }
.flow-word { padding-inline: 18px; font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.flow-word.is-quiet { font-weight: 450; opacity: .86; }
.flow-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--band-ink) 18%, transparent); }
@keyframes flow-run { to { transform: translateX(-50%); } }
.library-promo, .thanks-banner { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.community-text { display: grid; gap: 4px; }
.community-text strong { font-size: 1.12rem; font-family: var(--font-display); }
.community-text > span { color: var(--ink-3); font-size: .9rem; }
.community-go { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .84rem; font-weight: 650; color: var(--brand); }
.community-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.library-promo { flex-direction: row; align-items: center; gap: 20px; transition: border-color .25s, box-shadow .25s; }
.library-promo:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.library-promo .community-go { margin: 0 0 0 auto; padding: 0; border: 0; color: var(--accent-text); white-space: nowrap; }
/* A folder that opens and fans out three configs on hover ("Folder"). The middle paper sits behind the other two so
   every label stays readable once they spread. */
.folder-stage { position: relative; flex: none; display: grid; place-items: end center; width: 156px; height: 124px; padding-bottom: 4px; }
.folder { --f: var(--accent); --f-back: color-mix(in srgb, var(--accent) 78%, var(--accent-shade)); position: relative; width: 112px; height: 84px; }
.folder-back { position: absolute; inset: 0; border-radius: 4px 12px 12px 12px; background: var(--f-back); }
.folder-back::before { content: ""; position: absolute; left: 0; top: -10px; width: 44%; height: 14px; border-radius: 6px 8px 0 0; background: var(--f-back); }
.paper { position: absolute; left: 50%; top: 50%; display: grid; align-content: start; gap: 4px; width: 70%; height: 74%; padding: 8px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 6px 14px -8px rgb(0 0 0 / .35); translate: -50% -42%; transition: translate .45s var(--ease-out), rotate .45s var(--ease-out); color: #1b2a20; font: 750 8px/1.2 var(--font-sans); white-space: nowrap; }
.paper i { display: block; height: 3px; border-radius: 2px; background: #dfe7e1; }
.paper i:last-child { width: 70%; }
.paper.p1 { background: #eef1ef; }
.paper.p2 { background: #f6f8f7; }
.folder-front { position: absolute; inset: 12px 0 0; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--f) 88%, #fff), var(--f)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35); transform-origin: bottom; transition: transform .45s var(--ease-out); }
.folder-front::after { content: ""; position: absolute; right: 10px; bottom: 9px; width: 20px; height: 20px; background: url("../logo.svg") center / contain no-repeat; opacity: .9; }
.library-promo:is(:hover, :focus-visible) .folder-front { transform: skew(15deg) scaleY(.6); }
.library-promo:is(:hover, :focus-visible) .paper.p1 { translate: -112% -62%; rotate: -12deg; }
.library-promo:is(:hover, :focus-visible) .paper.p2 { translate: 12% -60%; rotate: 11deg; }
.library-promo:is(:hover, :focus-visible) .paper.p3 { translate: -50% -96%; rotate: 3deg; }
.thanks-banner { --shine-opacity: .3; container-type: inline-size; flex-direction: row; align-items: center; gap: 18px; background: linear-gradient(110deg, var(--accent-soft), var(--violet-soft)); border-color: transparent; }
/* Thanks for the cloud service: the hero's pixel clouds drift through the banner. */
.thanks-clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.thanks-clouds i { position: absolute; left: 0; top: 14%; width: 104px; height: 39px; opacity: .85; animation: thanks-drift 34s linear infinite; }
.thanks-clouds i:nth-child(2) { top: 58%; width: 72px; height: 27px; opacity: .6; animation-duration: 46s; animation-delay: -18s; }
.thanks-clouds i:nth-child(3) { top: 30%; width: 56px; height: 21px; opacity: .45; animation-duration: 58s; animation-delay: -40s; }
:root[data-theme="dark"] .thanks-clouds i { opacity: .1; }
@keyframes thanks-drift { from { transform: translateX(-120px); } to { transform: translateX(100cqw); } }
.thanks-mark { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--surface); color: var(--violet-text); font-size: 1.4rem; box-shadow: var(--shadow-sm); }
.thanks-banner strong { font-size: .98rem; }
.sponsor-promo { --shine-opacity: .3; position: relative; isolation: isolate; display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 22px 24px; border-radius: 22px; overflow: hidden; background: linear-gradient(110deg, var(--supporter-soft), var(--violet-soft)); }
.sponsor-promo-mark { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.sponsor-promo-mark img { width: 28px; height: 28px; }
.sponsor-promo .community-go { margin: 0 0 0 auto; padding: 0; border: 0; color: var(--supporter); white-space: nowrap; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .sponsor-promo:hover .sponsor-promo-mark img { animation: supporter-beat .7s var(--ease-out); } }
/* Holographic foil and glitter that follow the pointer ("Holo Card"), and a gleam across the title ("Shiny Text"). */
.holo { --hx: 50%; --hy: 50%; }
.holo-foil, .holo-glitter { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.holo-foil { background: linear-gradient(115deg, #ff7ac6, #ffd36e, #7af0c8, #7ab8ff, #c08bff, #ff7ac6, #ffd36e, #7af0c8) var(--hx) var(--hy) / 400% 400%; opacity: .3; -webkit-mask-image: radial-gradient(farthest-corner circle at var(--hx) var(--hy), #000, rgb(0 0 0 / .25) 70%); mask-image: radial-gradient(farthest-corner circle at var(--hx) var(--hy), #000, rgb(0 0 0 / .25) 70%); transition: opacity .4s; }
.holo:hover .holo-foil { opacity: .48; }
.holo-glitter { background-image: radial-gradient(circle, rgb(255 255 255 / .95) 0 1px, transparent 1.6px), radial-gradient(circle, rgb(255 255 255 / .7) 0 .8px, transparent 1.3px); background-size: 19px 19px, 11px 11px; background-position: 0 0, 5px 7px; -webkit-mask-image: radial-gradient(circle 220px at var(--hx) var(--hy), #000, transparent); mask-image: radial-gradient(circle 220px at var(--hx) var(--hy), #000, transparent); opacity: .8; }
:root[data-theme="dark"] .holo-foil { opacity: .16; }
:root[data-theme="dark"] .holo:hover .holo-foil { opacity: .28; }
:root[data-theme="dark"] .holo-glitter { opacity: .3; }
.shiny { justify-self: start; background: linear-gradient(110deg, var(--supporter) 38%, #ffc2de 50%, var(--supporter) 62%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shiny 3.4s linear infinite; }
@keyframes shiny { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* Credit to the original project: the author's name, and a commit graph where SoarClient branches off Legacy SoarClient. */
.origin-banner { --brand: var(--violet); position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 32px; margin-top: 16px; padding: 34px 36px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.origin-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle, var(--line-2) 1.1px, transparent 1.6px) 0 0 / 16px 16px; -webkit-mask-image: linear-gradient(100deg, transparent 32%, #000 78%); mask-image: linear-gradient(100deg, transparent 32%, #000 78%); }
.origin-banner.spotlight::after { background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--violet) 10%, transparent), transparent 60%); }
.origin-banner:hover { border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--violet) 55%, transparent); }
.origin-text { display: grid; justify-items: start; gap: 6px; }
.origin-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); }
.origin-author { font-family: var(--font-display); font-size: clamp(2.3rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; padding-bottom: .06em; background: linear-gradient(100deg, var(--ink) 35%, var(--violet-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.origin-text > span:not([class]) { color: var(--ink-3); font-size: .95rem; }
.origin-banner .community-go { margin-top: 14px; padding: 0; border: 0; color: var(--violet-text); }
.origin-graph { justify-self: end; width: 100%; max-width: 520px; height: auto; overflow: visible; }
.origin-graph text { font-family: var(--font-mono); font-size: 14px; font-weight: 600; fill: var(--ink-2); }
.origin-stop-trunk { stop-color: var(--ink-3); }
.origin-trunk, .origin-branch, .origin-pulse { fill: none; stroke-width: 3; stroke-linecap: round; }
.origin-trunk { stroke: url(#origin-trunk-fade); }
.origin-branch { stroke: url(#origin-branch-flow); }
.origin-pulse { stroke: var(--accent); stroke-width: 5; stroke-dasharray: 4 96; opacity: 0; filter: drop-shadow(0 0 4px var(--accent)); }
.origin-commit { fill: var(--surface); stroke: var(--ink-3); stroke-width: 2.5; transition: transform .4s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.origin-commit.is-fading { opacity: .45; }
.origin-commit.is-new { stroke: var(--violet); }
.origin-node-legacy rect { fill: var(--ink); }
.origin-node-legacy path { fill: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .origin-pulse { opacity: 1; animation: origin-pulse 4.5s linear infinite; }
  .origin-banner:hover .origin-commit.is-new { transform: scale(1.35); }
}
@keyframes origin-pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--header-height) + 36px); }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .pvp-scene { justify-self: center; max-width: 560px; }
  .scroll-cue { display: none; }
  .download-panel { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-intro { position: static; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
}
@media (max-width: 900px) {
  .flow-rest { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; min-height: 92px; padding-block: 14px; }
  .flow-icon { grid-row: span 2; }
  .flow-name { grid-column: 2; }
  .flow-desc { grid-column: 2; grid-row: 2; }
  .flow-go { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
  .community-row { grid-template-columns: 1fr; }
  .origin-banner { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; }
  .origin-banner::before { -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 85%); mask-image: linear-gradient(180deg, transparent 35%, #000 85%); }
  .origin-graph { justify-self: stretch; max-width: none; }
  .origin-graph text { font-size: 17px; }
  .origin-banner .community-go { margin-top: 8px; }
}
@media (max-width: 640px) {
  .download-steps { grid-template-columns: 1fr; }
  .download-steps li { grid-template-columns: auto 1fr; align-items: center; }
  .download-steps li:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) {
  .sky-sun, .sky-moon { --sky-at: .04; width: 52px; height: 52px; right: 5%; }
  .cloud { --scale: .55; opacity: .7; }
  .cloud-3 { display: none; }
  :root[data-theme="dark"] .cloud { opacity: .06; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.2rem); margin-top: 18px; }
  .hero-tagline { margin-top: 16px; }
  .hero-lede { font-size: .95rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn, .hero-actions .star-border { flex: 1 1 100%; }
  .star-border > .btn { width: 100%; }
  .preview-stage { border-radius: 20px; }
  .download-panel { border-radius: 24px; padding: 26px 18px; }
  .download-card { padding: 22px 18px; }
  /* Longer labels (English "Download Windows installer") wrap instead of pushing the cards past the panel. */
  .download .btn { white-space: normal; text-align: center; }
  .edition-tag { position: static; display: block; width: fit-content; margin-bottom: 16px; }
  .download-offline { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .download .offline-open { grid-column: 1 / -1; }
  /* ui.css turns dialogs into bottom sheets here. */
  .offline-modal { width: 100%; }
  .edition { padding: 12px; }
  .download-specs { gap: 12px 24px; }
  .library-promo { flex-wrap: wrap; }
  .library-promo .folder-stage { flex-basis: 100%; }
  .thanks-banner { align-items: flex-start; }
  .flow-rest { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding-inline: 16px; }
  .flow-icon { width: 44px; height: 44px; border-radius: 13px; }
  .flow-icon svg { width: 22px; height: 22px; }
  .flow-go { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 4px; }
  .sponsor-promo { flex-wrap: wrap; align-items: flex-start; padding: 20px 18px; }
  .sponsor-promo .community-text { flex: 1; min-width: 0; }
  .sponsor-promo .community-go { flex-basis: 100%; margin-left: 64px; }
  .faq-list summary { font-size: .98rem; padding-block: 20px; }
  .faq-list details p { padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pvp-playground canvas { opacity: 1; transform: none; }
  .star-border::before, .star-border::after, .blur-glyphs > span, .shiny, .thanks-clouds i { animation: none; }
  .thanks-clouds i { transform: translateX(40cqw); }
  .thanks-clouds i:nth-child(2) { transform: translateX(72cqw); }
  .thanks-clouds i:nth-child(3) { transform: translateX(14cqw); }
  .online-roll-strip { transition: none; }
}
