/* Hallmark · genre: editorial-commerce · macrostructure: Split Studio · H6 photographic fold
 * theme: custom · vibe: "樱花纸张、晴空、木色旅馆、橙色行动" · paper: oklch(99.58% 0.0025 345.2) · accent: oklch(77.20% 0.1738 64.6)
 * display: Noto Serif SC · body: Noto Sans SC · axes: light / roman-serif / chromatic-amber
 * nav: N1b links=5/dropdowns=none/always-solid · footer: Ft1 mast-headed/links=wrapped · enrichment: E8 real game still
 * studied: no · context: explicit · pre-emit critique: P5 H5 E4 S5 R5 V4 · contrast: pass (40–41) · slop: pass (42–49) · mobile: pass (34, 49, 50–57)
 */
@import url("../../tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--color-paper); }
body { margin: 0; min-width: 20rem; overflow-x: clip; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65; padding-block-end: var(--sticky-h); }
body.has-dialog { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: var(--rule-hair); text-underline-offset: var(--space-2xs); }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
a[aria-disabled="true"], button:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
a:not(.button):active { opacity: 0.78; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-style: normal; color: var(--color-ink-strong); letter-spacing: -0.025em; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: var(--text-display); line-height: 1.05; font-weight: 800; }
h2 { font-size: var(--text-xl); line-height: 1.2; font-weight: 800; }
h3 { font-size: var(--text-md); line-height: 1.35; font-weight: 700; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.hero :focus-visible, .promo :focus-visible, .info-band :focus-visible, .download-panel :focus-visible, .guide-toc :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--color-sky); }
[hidden] { display: none !important; }
section[id], article[id] { scroll-margin-top: calc(var(--banner-h) + var(--nav-h) + var(--space-lg)); }
.shell { width: min(100%, var(--content-max)); margin-inline: auto; padding-inline: var(--page-pad); }
.section-pad { padding-block: var(--space-3xl); }
.section-head { display: grid; gap: var(--space-sm); padding-block-end: var(--space-xl); max-width: 48rem; }
.section-head p { max-width: 64ch; color: var(--color-ink-soft); }
.section-rule { border-block-start: var(--rule-hair) solid var(--color-rule); }
.skip-link { position: fixed; inset: var(--space-sm) auto auto var(--space-sm); z-index: var(--z-toast); transform: translateY(-150%); background: var(--color-indigo); color: var(--color-on-dark); padding: var(--space-sm) var(--space-md); }
.skip-link:focus { transform: none; }

.site-head { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky-nav); }
.promo { height: var(--banner-h); display: flex; align-items: center; justify-content: center; gap: var(--space-sm); padding-inline: var(--space-md); background: var(--color-maple); color: var(--color-on-dark); font-size: var(--text-sm); }
.promo p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo a { font-weight: 800; white-space: nowrap; }
.promo__close { width: 44px; height: 44px; margin-inline-start: auto; border: 0; background: transparent; color: inherit; cursor: pointer; line-height: 1; }
.site-head.is-dismissed .promo { display: none; }
.nav-bar { height: var(--nav-h); background: var(--color-nav); border-block-end: var(--rule-hair) solid var(--color-rule); backdrop-filter: blur(12px); }
.nav-inner { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-lg); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; white-space: nowrap; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: var(--radius-pill); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: var(--font-display); color: var(--color-ink-strong); }
.brand small { font-size: var(--text-xs); color: var(--color-ink-soft); }
.nav-links { justify-self: center; display: flex; align-items: center; gap: var(--space-xs); }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: var(--space-sm); text-decoration: none; white-space: nowrap; font-size: var(--text-sm); font-weight: 700; }
.nav-links a[aria-current="page"] { color: var(--color-maple); text-decoration: underline; }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); cursor: pointer; white-space: nowrap; }

.button { position: relative; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: var(--space-sm) var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-sm); background: var(--color-paper); color: var(--color-ink-strong); font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; overflow: hidden; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.button--primary { border-color: var(--color-action-deep); background: var(--color-action); color: var(--color-action-ink); }
.button--primary::after { content: ""; position: absolute; inset: 0 auto 0 -35%; width: 24%; transform: skewX(-20deg); background: var(--color-on-dark-soft); opacity: 0.34; animation: action-shimmer 3.6s var(--ease-in-out) infinite; pointer-events: none; }
.button--dark { border-color: var(--color-indigo); background: var(--color-indigo); color: var(--color-on-dark); }
.button[aria-disabled="true"], .button:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.button[data-state="loading"] { color: transparent; }
.button[data-state="loading"]::before { content: ""; width: 20px; height: 20px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: var(--radius-pill); color: var(--color-action-ink); animation: spin 900ms linear infinite; }
.button[data-state="success"] { border-color: var(--color-success); }
.button[data-state="success"]::before { content: "完成  "; color: var(--color-success); }
.button[data-state="error"] { border-color: var(--color-error); color: var(--color-error); }
@keyframes action-shimmer { 0%, 68% { transform: translateX(0) skewX(-20deg); opacity: 0; } 72% { opacity: 0.34; } 100% { transform: translateX(640%) skewX(-20deg); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero { position: relative; min-height: clamp(39rem, 82dvh, 52rem); margin-block-start: calc(var(--banner-h) + var(--nav-h)); padding-block: var(--space-xl) var(--space-3xl); display: grid; align-items: end; isolation: isolate; background: var(--color-indigo-deep); color: var(--color-on-dark); }
.hero__media, .hero__shade { position: absolute; inset: 0; }
.hero__media { width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -3; }
.hero__shade { z-index: -2; background: linear-gradient(90deg, var(--color-overlay-strong), var(--color-overlay)); }
.hero__petals { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.hero__petals i { position: absolute; top: -10%; width: 8px; height: 14px; border-radius: var(--radius-pill) 0 var(--radius-pill) 0; background: var(--color-sakura); opacity: 0.5; animation: petal-drift 13s var(--ease-in-out) infinite; }
.hero__petals i:nth-child(1) { inset-inline-start: 14%; animation-delay: -2s; }
.hero__petals i:nth-child(2) { inset-inline-start: 36%; animation-delay: -7s; }
.hero__petals i:nth-child(3) { inset-inline-start: 68%; animation-delay: -4s; }
.hero__petals i:nth-child(4) { inset-inline-start: 88%; animation-delay: -10s; }
@keyframes petal-drift { 0% { transform: translate3d(0, -8%, 0) rotate(0deg); } 100% { transform: translate3d(48px, 112dvh, 0) rotate(240deg); } }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.7fr); gap: var(--space-xl); align-items: end; }
.hero__copy { display: grid; gap: var(--space-lg); max-width: 54rem; }
.hero h1, .hero h2, .hero h3 { color: var(--color-on-dark); }
.hero__logo { width: min(100%, 34rem); height: auto; filter: drop-shadow(0 2px 8px var(--color-shadow-deep)); }
.hero__title-zh { display: block; font-size: var(--text-lg); letter-spacing: 0.04em; }
.hero__lede { max-width: 58ch; font-size: var(--text-md); color: var(--color-on-dark-soft); }
.tag-row, .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.tag { display: inline-flex; align-items: center; min-height: 36px; padding-inline: var(--space-sm); border: var(--rule-hair) solid var(--color-on-dark-soft); color: var(--color-on-dark); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }
.tag--light { border-color: var(--color-rule); color: var(--color-ink); }
.action-row { margin-block-start: var(--space-lg); }
.action-row--wide { margin-block-start: var(--space-xl); }
.spaced-sm { margin-block-start: var(--space-sm); }
.hero__dialogue { align-self: end; display: grid; gap: var(--space-xs); padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule-dark); background: var(--color-nav); color: var(--color-ink); border-radius: var(--radius-sm); box-shadow: 0 12px 32px var(--color-shadow-deep); }
.hero__dialogue strong { color: var(--color-maple); }
.hero__dialogue .choice { min-height: 44px; display: flex; align-items: center; padding-inline: var(--space-md); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); color: var(--color-ink-strong); text-decoration: none; font-weight: 700; white-space: nowrap; }

.info-band { background: var(--color-indigo); color: var(--color-on-dark); border-block-end: var(--rule-hair) solid var(--color-rule-dark); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-grid div { min-width: 0; padding: var(--space-lg) var(--space-md); border-inline-end: var(--rule-hair) solid var(--color-rule-dark); border-block-end: var(--rule-hair) solid var(--color-rule-dark); }
.info-grid dt { color: var(--color-on-dark-soft); font-size: var(--text-xs); letter-spacing: 0.08em; }
.info-grid dd { margin-block-start: var(--space-xs); font-weight: 800; overflow-wrap: anywhere; }

.story-layout { display: grid; gap: var(--space-xl); }
.story-copy { display: grid; gap: var(--space-lg); max-width: 68ch; font-size: var(--text-md); }
.story-key { align-self: start; background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); padding: var(--space-xl); }
.story-key dl { display: grid; gap: var(--space-md); }
.story-key div { display: flex; justify-content: space-between; gap: var(--space-lg); border-block-end: var(--rule-hair) solid var(--color-rule); padding-block-end: var(--space-sm); }
.story-key dt { color: var(--color-ink-soft); }
.story-key dd { font-weight: 800; text-align: end; }

.feature-strip { display: grid; border-block: var(--rule-hair) solid var(--color-rule); }
.feature-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); padding: var(--space-xl) 0; border-block-end: var(--rule-hair) solid var(--color-rule); box-shadow: 0 5px 14px var(--color-shadow); transition: transform var(--dur-short) var(--ease-out); }
.feature-card:last-child { border-block-end: 0; }
.feature-card__mark { width: 44px; height: 44px; display: grid; place-items: center; border: var(--rule-hair) solid var(--color-rule); color: var(--color-maple); font-family: var(--font-display); font-weight: 800; }
.feature-card p { max-width: 62ch; color: var(--color-ink-soft); }

.route-board { display: grid; gap: var(--space-xl); align-items: start; }
.route-list { display: grid; gap: var(--space-sm); list-style: none; padding: 0; margin: var(--space-lg) 0 0; }
.route-list li { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: var(--space-md); padding-block: var(--space-sm); border-block-end: var(--rule-hair) solid var(--color-rule); }
.route-list strong { color: var(--color-ink-strong); }
.route-visual { position: relative; min-width: 0; }
.route-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.route-visual figcaption { margin-block-start: var(--space-xs); color: var(--color-ink-soft); font-size: var(--text-sm); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.gallery-card { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--color-ink); text-align: start; cursor: zoom-in; }
.gallery-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-paper-3); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-long) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.gallery-card span { display: flex; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-sm); border-block-end: var(--rule-hair) solid var(--color-rule); font-weight: 700; }
.gallery-card span small { color: var(--color-ink-soft); }
.gallery-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-block-end: var(--space-xl); }
.gallery-tabs button { min-height: 44px; padding-inline: var(--space-md); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); font-weight: 700; white-space: nowrap; cursor: pointer; }
.gallery-tabs button[aria-selected="true"] { border-color: var(--color-indigo); background: var(--color-indigo); color: var(--color-on-dark); }

.download-panel { display: grid; gap: var(--space-xl); padding: var(--space-xl); background: var(--color-indigo); color: var(--color-on-dark); border-radius: var(--radius-sm); }
.download-panel h2, .download-panel h3 { color: var(--color-on-dark); }
.download-panel p { color: var(--color-on-dark-soft); max-width: 60ch; }
.download-panel__copy { display: grid; gap: var(--space-lg); align-content: center; }
.download-ticket { background: var(--color-paper); color: var(--color-ink); padding: var(--space-lg); border-radius: var(--radius-sm); }
.download-ticket dl { display: grid; }
.download-ticket div { display: flex; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-sm); border-block-end: var(--rule-hair) solid var(--color-rule); }
.download-ticket dt { color: var(--color-ink-soft); }
.download-ticket dd { color: var(--color-ink-strong); font-weight: 800; text-align: end; }
.platform-grid { display: grid; gap: var(--space-lg); }
.platform-card { position: relative; display: grid; gap: var(--space-lg); padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); }
.platform-card--recommended { border-color: var(--color-action-deep); }
.platform-card__badge { position: absolute; inset: var(--space-sm) var(--space-sm) auto auto; color: var(--color-maple); font-size: var(--text-sm); font-weight: 800; }
.steps { counter-reset: install; display: grid; gap: var(--space-lg); }
.step { counter-increment: install; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.step::before { content: counter(install); width: 48px; height: 48px; display: grid; place-items: center; background: var(--color-sakura); color: var(--color-ink-strong); font-family: var(--font-display); font-weight: 800; }
.notice { padding: var(--space-lg); border: var(--rule-hair) solid var(--color-maple); background: var(--color-paper-2); }
.notice strong { display: block; color: var(--color-maple); margin-block-end: var(--space-xs); }

.spec-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { padding: var(--space-md); border-block-end: var(--rule-hair) solid var(--color-rule); text-align: start; vertical-align: top; }
.spec-table th { width: 34%; color: var(--color-ink-soft); font-weight: 500; }
.timeline { border-block-start: var(--rule-hair) solid var(--color-rule); }
.timeline details, .faq details { border-block-end: var(--rule-hair) solid var(--color-rule); }
.timeline summary, .faq summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); cursor: pointer; font-weight: 800; list-style: none; }
.timeline summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.timeline summary::after, .faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-display); font-size: var(--text-md); color: var(--color-maple); }
.timeline details[open] summary::after, .faq details[open] summary::after { content: "−"; }
.timeline__body, .faq__answer { padding: 0 0 var(--space-lg); max-width: 70ch; color: var(--color-ink-soft); }
.timeline__body ul { margin: 0; padding-inline-start: var(--space-lg); }
.fit-grid { display: grid; gap: var(--space-md); }
.fit-card { padding: var(--space-lg); border-block-start: 3px solid var(--color-indigo); background: var(--color-paper-3); }
.fit-card:nth-child(2) { border-block-start-color: var(--color-sakura-strong); background: var(--color-paper-2); }
.fit-card:nth-child(3) { border-block-start-color: var(--color-wood); background: var(--color-paper); }

.guide-layout { display: grid; gap: var(--space-xl); align-items: start; }
.guide-toc { padding: var(--space-lg); background: var(--color-indigo); color: var(--color-on-dark); }
.guide-toc h2 { color: var(--color-on-dark); font-size: var(--text-md); }
.guide-toc nav { display: grid; margin-block-start: var(--space-md); }
.guide-toc a { min-height: 44px; display: flex; align-items: center; border-block-end: var(--rule-hair) solid var(--color-rule-dark); text-decoration: none; white-space: nowrap; }
.guide-prose { min-width: 0; }
.guide-prose article { display: grid; gap: var(--space-lg); padding-block: var(--space-xl); border-block-end: var(--rule-hair) solid var(--color-rule); }
.guide-prose p, .guide-prose li { max-width: 72ch; }
.guide-prose table { width: 100%; border-collapse: collapse; }
.guide-prose th, .guide-prose td { padding: var(--space-sm); border: var(--rule-hair) solid var(--color-rule); text-align: start; vertical-align: top; }
.guide-cards { display: grid; gap: var(--space-md); }
.guide-card { display: grid; gap: var(--space-sm); padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); text-decoration: none; }
.guide-card span { color: var(--color-maple); font-weight: 800; }

.subhero { padding-block: calc(var(--banner-h) + var(--nav-h) + var(--space-2xl)) var(--space-2xl); background: var(--color-paper-2); border-block-end: var(--rule-hair) solid var(--color-rule); }
.subhero__inner { display: grid; gap: var(--space-lg); max-width: 60rem; }
.subhero p { max-width: 65ch; font-size: var(--text-md); color: var(--color-ink-soft); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); color: var(--color-ink-soft); font-size: var(--text-sm); }
.breadcrumbs a { white-space: nowrap; }

.site-footer { padding-block: var(--space-2xl) calc(var(--space-2xl) + var(--sticky-h)); background: var(--color-indigo-deep); color: var(--color-on-dark-soft); }
.footer-main { display: grid; gap: var(--space-xl); }
.footer-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); align-items: center; }
.footer-brand img { width: 84px; height: 84px; border-radius: var(--radius-pill); }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; color: var(--color-on-dark); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.footer-links a { white-space: nowrap; }
.footer-related { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); margin-block-start: var(--space-lg); }
.footer-related a { min-height: 40px; display: flex; align-items: center; text-decoration: none; overflow-wrap: normal; white-space: nowrap; }
.colophon { padding-block-start: var(--space-lg); border-block-start: var(--rule-hair) solid var(--color-rule-dark); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }

.sticky-download { position: fixed; inset: auto 0 0; z-index: var(--z-sticky); min-height: var(--sticky-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-xs) max(var(--space-md), env(safe-area-inset-right)) max(var(--space-xs), env(safe-area-inset-bottom)) max(var(--space-md), env(safe-area-inset-left)); background: var(--color-nav); border-block-start: var(--rule-hair) solid var(--color-rule); backdrop-filter: blur(12px); }
.sticky-download p { display: none; color: var(--color-ink-soft); }
.sticky-download .button { flex: 1; }
.back-top { position: fixed; inset: auto var(--space-md) calc(var(--sticky-h) + var(--space-md)) auto; z-index: var(--z-dropdown); width: 48px; height: 48px; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.lightbox { position: fixed; inset: 0; margin: auto; width: min(94%, 76rem); height: fit-content; max-height: 88dvh; padding: var(--space-md); border: 0; background: var(--color-indigo-deep); color: var(--color-on-dark); overflow: auto; }
.lightbox::backdrop { background: var(--color-overlay-strong); }
.lightbox__figure { display: grid; gap: var(--space-sm); }
.lightbox__image { width: 100%; max-height: 76dvh; object-fit: contain; }
.lightbox__caption { color: var(--color-on-dark-soft); }
.icon-button { position: fixed; width: 48px; height: 48px; border: var(--rule-hair) solid var(--color-rule-dark); background: var(--color-indigo); color: var(--color-on-dark); cursor: pointer; }
.nav-toggle:disabled, .gallery-tabs button:disabled, .gallery-card:disabled, .icon-button:disabled, .back-top:disabled { opacity: 0.55; cursor: not-allowed; }
.lightbox__close { inset: var(--space-md) var(--space-md) auto auto; }
.lightbox__prev { inset: 50% auto auto var(--space-md); }
.lightbox__next { inset: 50% var(--space-md) auto auto; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--color-paper-2); }
  .button--primary:hover { background: var(--color-action-deep); }
  .button--dark:hover { background: var(--color-indigo-deep); }
  .gallery-card:hover img, .gallery-card:focus-visible img { transform: scale(1.02); }
  .feature-card:hover { transform: translateY(-2px); }
  .nav-links a:hover { color: var(--color-maple); }
  .footer-links a:hover, .footer-related a:hover { color: var(--color-sakura); }
  .brand:hover { opacity: 0.78; }
  .choice:hover, .breadcrumbs a:hover, .promo a:hover { color: var(--color-maple); }
  .nav-toggle:hover, .gallery-tabs button:hover, .back-top:hover { background: var(--color-paper-2); }
  .icon-button:hover { background: var(--color-indigo-deep); }
  .promo__close:hover { background: var(--color-overlay); }
  .guide-card:hover { background: var(--color-paper-2); }
}
.button:active, .gallery-card:active, .nav-toggle:active, .gallery-tabs button:active, .icon-button:active, .promo__close:active, .back-top:active { transform: translateY(1px); }

@media (min-width: 40rem) {
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-grid, .fit-grid, .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-panel { grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr); }
  .sticky-download p { display: block; }
  .sticky-download .button { flex: 0 0 auto; }
}

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .story-layout { grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr); }
  .feature-strip { grid-template-columns: 1.2fr 0.9fr 1.1fr; }
  .feature-card { grid-template-columns: 1fr; padding: var(--space-xl); border-block-end: 0; border-inline-end: var(--rule-hair) solid var(--color-rule); }
  .feature-card:last-child { border-inline-end: 0; }
  .route-board { grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.2fr); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: 18rem minmax(0, 1fr); }
  .guide-toc { position: sticky; inset-block-start: calc(var(--banner-h) + var(--nav-h) + var(--space-md)); }
}

@media (max-width: 59.999rem) {
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .nav-links { position: fixed; inset: calc(var(--banner-h) + var(--nav-h)) var(--space-md) auto; display: none; padding: var(--space-sm); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); box-shadow: 0 12px 30px var(--color-shadow); }
  .nav-links.is-open { display: grid; }
  .nav-links a { justify-content: flex-start; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__dialogue { max-width: 32rem; }
  .brand small { display: none; }
}

@media (max-width: 29rem) {
  .site-head .button--nav { display: none; }
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .hero { min-height: 46rem; }
  .hero__lede { font-size: var(--text-base); }
  .hero__actions .button { width: 100%; }
  .route-list li { grid-template-columns: 1fr; gap: var(--space-xs); }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .promo p { max-width: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 150ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; }
  .hero__petals { display: none; }
  .button--primary::after { display: none; }
  .button, .gallery-card, .gallery-card img, .feature-card, .nav-toggle, .gallery-tabs button, .icon-button, .promo__close, .back-top { transform: none !important; transition: none !important; }
}
