:root {
  --milk: #fff5f8;
  --paper: #ffffff;
  --pink: #ff2a85;
  --pink-dark: #d81768;
  --brown: #5c323e;
  --brown-soft: #7b5260;
  --purple: #b86bff;
  --purple-soft: #f1e4ff;
  --yellow: #ffe033;
  --line: #ebccd7;
  --muted: #765965;
  --shadow: 0 16px 44px rgba(92, 50, 62, 0.13);
  --page: 1180px;
  --header-height: 72px;
  --radius-card: 16px;
  --radius-image: 12px;
  --radius-label: 4px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--brown);
  background: var(--milk);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--brown);
  line-height: 1.15;
  letter-spacing: 0;
}

h1,
h2 {
  color: transparent;
  background: linear-gradient(105deg, var(--pink-dark) 0%, var(--pink) 38%, var(--purple) 72%, var(--brown) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin-bottom: 24px;
  font-size: 44px;
  font-weight: 900;
}

h3 {
  font-size: 22px;
}

p {
  margin-bottom: 18px;
}

::selection {
  color: var(--brown);
  background: var(--yellow);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.page-width {
  width: min(calc(100% - 48px), var(--page));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--brown);
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 245, 248, 0.95);
  border-bottom: 1px solid rgba(235, 204, 215, 0.8);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 30px rgba(92, 50, 62, 0.1);
}

.nav-shell {
  width: min(calc(100% - 32px), 1320px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  min-width: 224px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
  border: 2px solid var(--pink);
  border-radius: 50%;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.mobile-nav-cta {
  display: none !important;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a,
.nav-cta,
.button,
.text-link,
.floating-cta {
  gap: 8px;
}

.site-nav svg,
.nav-cta svg,
.button svg,
.text-link svg,
.floating-cta svg,
.zoom-badge svg,
.lightbox button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
}

.site-nav svg {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--pink-dark);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-width: 92px;
  padding: 9px 18px;
  color: var(--paper);
  background: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  background: var(--brown);
  border-color: var(--brown);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--brown);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 760px;
  margin-top: var(--header-height);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--brown);
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: 1;
  background: rgba(46, 22, 30, 0.48);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 86px 72px;
  color: var(--paper);
}

.eyebrow,
.section-index,
.mini-label {
  margin-bottom: 14px;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: transparent;
  background: linear-gradient(100deg, #ffffff 0%, #fff5f8 42%, var(--yellow) 72%, #ff9bc4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 72px;
  font-weight: 950;
  text-shadow: 0 3px 20px rgba(44, 20, 27, 0.65);
}

.hero h1 span,
.hero h1 small {
  display: block;
}

.hero h1 small {
  margin-top: 12px;
  color: transparent;
  background: linear-gradient(90deg, var(--yellow), #fff5b0, #ff9bc4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 32px;
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: #fffafc;
  font-size: 19px;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(44, 20, 27, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 5px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 10px 30px rgba(255, 42, 133, 0.3);
}

.button-primary:hover {
  color: var(--brown);
  background: var(--yellow);
  border-color: var(--yellow);
}

.button-quiet {
  color: var(--paper);
  background: rgba(92, 50, 62, 0.55);
  border-color: rgba(255, 255, 255, 0.75);
}

.button-quiet:hover {
  background: var(--brown);
  border-color: var(--paper);
}

.hero-facts {
  margin: 52px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.hero-facts div {
  min-width: 145px;
  padding: 0 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.hero-facts dd {
  color: var(--paper);
  font-size: 17px;
  font-weight: 800;
}

.signal-bar {
  color: var(--brown);
  background: var(--yellow);
  border-top: 2px solid var(--brown);
  border-bottom: 2px solid var(--brown);
}

.signal-grid {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.signal-grid span {
  padding: 10px 26px;
  font-weight: 900;
  text-align: center;
  border-left: 1px solid rgba(92, 50, 62, 0.3);
}

.signal-grid span:first-child {
  border-left: 0;
}

.signal-grid b {
  margin-right: 8px;
  color: var(--pink-dark);
}

.section {
  padding-block: 112px;
}

.intro-section,
.guide-section,
.gallery-section,
.config-section {
  background: var(--paper);
}

.split-layout,
.feature-layout,
.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 72px;
  align-items: center;
}

.feature-visual,
.customize-visual,
.route-panel figure,
.guide-aside,
.gallery-track figure {
  margin-bottom: 0;
}

.feature-visual {
  position: relative;
  padding: 16px 16px 46px;
  background: var(--purple-soft);
  border: 2px solid var(--brown);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.feature-visual::before {
  content: "SCENE 01";
  position: absolute;
  top: -16px;
  left: 24px;
  padding: 5px 12px;
  color: var(--brown);
  background: var(--yellow);
  border: 2px solid var(--brown);
  font-size: 12px;
  font-weight: 900;
}

.feature-visual img,
.customize-visual img,
.route-panel img,
.guide-aside img {
  width: 100%;
  object-fit: cover;
}

.feature-visual img {
  aspect-ratio: 1000 / 563;
}

.feature-visual figcaption,
.customize-visual figcaption,
.route-panel figcaption {
  margin-top: 13px;
  color: var(--brown-soft);
  font-size: 13px;
  line-height: 1.5;
}

.section-copy .lead,
.feature-copy .lead {
  color: var(--brown);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
}

.section-copy > p:not(.section-index):not(.lead),
.section-heading > p:last-child,
.update-intro > p,
.faq-intro > p,
.config-copy > p:last-child {
  color: var(--muted);
}

.inline-note {
  margin-top: 30px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--yellow);
  border-left: 5px solid var(--pink);
  border-radius: 4px;
}

.inline-note strong {
  flex: 0 0 auto;
  color: var(--pink-dark);
}

.system-section {
  background: var(--milk);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 64px;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 18px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--brown);
  border-bottom: 2px solid var(--brown);
}

.system-item {
  position: relative;
  min-height: 290px;
  padding: 34px 26px;
  border-left: 1px solid var(--line);
}

.system-item:first-child {
  border-left: 0;
}

.system-item:hover {
  background: var(--paper);
}

.system-number {
  display: block;
  margin-bottom: 42px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.system-item h3 {
  margin-bottom: 14px;
}

.system-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.route-panel {
  margin-top: 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
  background: var(--brown);
  border: 2px solid var(--brown);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.route-copy {
  padding: 48px;
}

.route-copy .mini-label {
  color: var(--yellow);
}

.route-copy h3 {
  margin-bottom: 32px;
  color: var(--paper);
  font-size: 30px;
}

.route-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-steps li {
  position: relative;
  padding: 0 0 24px 28px;
  color: rgba(255, 255, 255, 0.76);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.route-steps li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.route-steps li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -6px;
  width: 11px;
  height: 11px;
  background: var(--pink);
  border: 2px solid var(--yellow);
  border-radius: 50%;
}

.route-steps b,
.route-steps span {
  display: block;
}

.route-steps b {
  margin-bottom: 4px;
  color: var(--paper);
}

.route-steps span {
  font-size: 14px;
  line-height: 1.65;
}

.route-panel figure {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.route-panel img {
  min-height: 100%;
  flex: 1 1 auto;
  object-position: center;
}

.route-panel figcaption {
  margin: 0;
  padding: 12px 16px;
  color: var(--brown-soft);
  background: var(--paper);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 72px;
  align-items: start;
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--brown);
}

.guide-list li {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.guide-list > li > span {
  color: var(--pink);
  font-size: 14px;
  font-weight: 900;
}

.guide-list h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.guide-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.guide-aside {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  padding-bottom: 26px;
  background: var(--purple-soft);
  border: 2px solid var(--brown);
  border-radius: 6px;
  overflow: hidden;
}

.guide-aside img {
  aspect-ratio: 16 / 9;
}

.guide-aside h3 {
  margin: 24px 24px 14px;
}

.guide-aside ul {
  margin: 0;
  padding: 0 24px 0 42px;
}

.guide-aside li {
  margin: 8px 0;
  color: var(--brown-soft);
}

.feature-section {
  color: var(--brown);
  background: var(--purple-soft);
  border-top: 1px solid #dcb9ff;
  border-bottom: 1px solid #dcb9ff;
}

.feature-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.feature-points {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--brown);
}

.feature-points div {
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid rgba(92, 50, 62, 0.2);
}

.feature-points div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid rgba(92, 50, 62, 0.2);
}

.feature-points b,
.feature-points span {
  display: block;
}

.feature-points b {
  margin-bottom: 4px;
}

.feature-points span {
  color: var(--muted);
  font-size: 14px;
}

.customize-visual {
  padding: 14px 14px 20px;
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.customize-visual img {
  aspect-ratio: 789 / 577;
}

.gallery-section {
  overflow: hidden;
}

.gallery-heading {
  margin-bottom: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.gallery-heading h2 {
  margin-bottom: 0;
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.gallery-controls button {
  width: 46px;
  height: 46px;
  color: var(--brown);
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.gallery-controls button:hover {
  color: var(--paper);
  background: var(--pink);
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 760px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) var(--line);
  overscroll-behavior-inline: contain;
}

.gallery-track figure {
  min-width: 0;
  scroll-snap-align: start;
}

.gallery-track img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--brown);
  border-radius: 6px;
}

.gallery-track figcaption {
  padding: 12px 4px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.gallery-track figcaption span {
  color: var(--pink);
  font-size: 12px;
}

.update-section {
  background: var(--brown);
}

.update-layout,
.faq-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 86px;
  align-items: start;
}

.update-intro {
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.update-intro .section-index {
  color: var(--yellow);
}

.update-intro h2,
.update-intro > p {
  color: var(--paper);
}

.update-intro h2 {
  font-size: 40px;
}

.update-intro > p {
  color: rgba(255, 255, 255, 0.72);
}

.update-status {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 10px;
  color: var(--brown);
  background: var(--yellow);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 900;
}

.update-list {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.update-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.update-list summary {
  min-height: 76px;
  padding: 20px 48px 20px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}

.update-list summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.update-list summary::after,
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.update-list details[open] summary::after,
.faq-list details[open] summary::after {
  content: "−";
}

.update-list summary span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.update-list summary b {
  font-size: 18px;
}

.update-list details p {
  max-width: 760px;
  margin: -3px 48px 0 38px;
  padding-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
}

.config-layout {
  align-items: start;
}

.config-copy {
  max-width: 490px;
}

.config-list {
  margin: 0;
  border-top: 2px solid var(--brown);
}

.config-list div {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.config-list dt {
  font-weight: 900;
}

.config-list dd {
  color: var(--muted);
}

.faq-section {
  background: var(--milk);
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.faq-intro h2 {
  font-size: 40px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-dark);
  font-weight: 900;
  border-bottom: 2px solid var(--pink);
}

.text-link:hover {
  color: var(--brown);
  border-bottom-color: var(--brown);
}

.faq-list {
  border-top: 2px solid var(--brown);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 78px;
  padding: 22px 56px 22px 0;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--brown);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::after {
  color: var(--pink);
}

.faq-list details p {
  margin: -2px 48px 0 0;
  padding-bottom: 25px;
  color: var(--muted);
}

.closing-section {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.closing-section picture,
.closing-section picture img,
.closing-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing-section picture img {
  object-fit: cover;
  object-position: center 42%;
}

.closing-shade {
  z-index: 1;
  background: rgba(55, 27, 36, 0.62);
}

.closing-copy {
  position: relative;
  z-index: 2;
  color: var(--paper);
  text-align: center;
}

.closing-copy p {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
}

.closing-copy h2 {
  max-width: 740px;
  margin: 0 auto 30px;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(44, 20, 27, 0.7);
}

.site-footer {
  padding: 58px 0 26px;
  color: rgba(255, 255, 255, 0.72);
  background: #3d2029;
}

.footer-grid {
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 2px solid var(--pink);
  border-radius: 50%;
}

.footer-brand b,
.footer-brand span {
  display: block;
}

.footer-brand b {
  color: var(--paper);
}

.footer-brand span {
  font-size: 13px;
}

.footer-grid nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.footer-grid nav a {
  font-size: 14px;
}

.footer-grid nav a:hover,
.footer-bottom a:hover {
  color: var(--yellow);
}

.footer-grid > p {
  margin-bottom: 0;
  font-size: 13px;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

/* Six-image screenshot grid and accessible lightbox */
.gallery-section {
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 12% 16%, rgba(184, 107, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 74%, rgba(255, 42, 133, 0.16), transparent 32%),
    #24151b;
}

.gallery-heading {
  align-items: end;
}

.gallery-heading h2 {
  background: linear-gradient(95deg, #ffffff, #ffb5d3 50%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-heading > p {
  max-width: 420px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.64);
  text-align: right;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.screenshot-item {
  min-width: 0;
  margin: 0;
}

.screenshot-open {
  position: relative;
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  color: var(--paper);
  background: #110b0e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  cursor: zoom-in;
}

.screenshot-open img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 260ms ease, filter 260ms ease;
}

.screenshot-open:hover img,
.screenshot-open:focus-visible img {
  transform: scale(1.05);
  filter: brightness(0.74);
}

.zoom-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--paper);
  background: rgba(36, 21, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  backdrop-filter: blur(8px);
}

.screenshot-open:hover .zoom-badge,
.screenshot-open:focus-visible .zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-item figcaption {
  padding: 12px 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.screenshot-item figcaption span {
  color: var(--yellow);
  font-size: 12px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 28px 82px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 8, 0.93);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 18px;
  align-items: center;
}

.lightbox-dialog figure {
  min-width: 0;
  margin: 0;
}

.lightbox-dialog figure img {
  width: 100%;
  max-height: calc(100vh - 130px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d090b;
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
}

.lightbox-dialog figcaption {
  padding-top: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: var(--paper);
}

.lightbox-dialog figcaption span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.lightbox-close,
.lightbox-nav {
  width: 50px;
  height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--brown);
  background: var(--yellow);
  transform: scale(1.06);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2;
}

.lightbox-prev {
  grid-column: 1;
}

.lightbox-dialog figure {
  grid-column: 2;
}

.lightbox-next {
  grid-column: 3;
}

/* Full-width update cards */
.update-layout,
.faq-layout {
  display: block;
}

.update-intro,
.faq-intro {
  position: static;
  max-width: none;
  margin-bottom: 50px;
}

.update-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 70px;
  align-items: end;
}

.update-intro .section-index,
.update-intro h2 {
  grid-column: 1;
}

.update-intro h2 {
  margin-bottom: 0;
  color: transparent;
  background: linear-gradient(95deg, #ffffff, #ffb5d3 52%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.update-summary {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.update-summary p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.update-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border: 0;
}

.update-card {
  width: 100%;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.6fr);
  gap: 50px;
  color: var(--brown);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
}

.update-card-title {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.update-card-title > span {
  padding-top: 3px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 950;
}

.update-card-title small {
  display: block;
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.update-card-title h3 {
  margin-bottom: 0;
  font-size: 21px;
}

.update-card-body {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.update-card-body p {
  margin-bottom: 10px;
  color: var(--muted);
}

.update-card-body p:last-child {
  margin-bottom: 0;
}

/* Full-width FAQ cards */
.faq-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 70px;
  align-items: end;
}

.faq-intro .section-index,
.faq-intro h2 {
  grid-column: 1;
}

.faq-intro h2 {
  margin-bottom: 0;
}

.faq-summary {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.faq-summary p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border: 0;
}

.faq-list details {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 9px 24px rgba(92, 50, 62, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.faq-list details[open] {
  border-color: rgba(255, 42, 133, 0.42);
  box-shadow: 0 14px 30px rgba(92, 50, 62, 0.1);
}

.faq-list summary {
  min-height: 82px;
  padding: 23px 68px 23px 28px;
}

.faq-list summary::after {
  right: 28px;
}

.faq-list details p {
  margin: 0;
  padding: 0 68px 28px 28px;
}

/* Floating detail button replaces the removed closing CTA block */
.floating-cta {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 90;
  min-height: 54px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(255, 42, 133, 0.38);
  font-size: 15px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(255, 42, 133, 0.48);
}

/* Unified type scale and corner system */
h2,
.update-intro h2,
.faq-intro h2 {
  font-size: 38px;
}

.feature-visual,
.route-panel,
.guide-aside,
.customize-visual,
.update-card,
.faq-list details,
.error-page main,
.system-grid,
.feature-points,
.guide-list,
.config-list {
  border-radius: var(--radius-card);
}

.system-grid,
.feature-points,
.guide-list,
.config-list {
  overflow: hidden;
}

.inline-note {
  border-radius: var(--radius-card);
}

.feature-visual img,
.customize-visual img,
.route-panel img,
.guide-aside img,
.screenshot-open,
.screenshot-open img,
.lightbox-dialog figure img {
  border-radius: var(--radius-image);
}

.update-status,
.zoom-badge,
.feature-visual::before {
  border-radius: var(--radius-label);
}

.button,
.nav-cta,
.floating-cta,
.friend-links a,
.error-secondary {
  border-radius: var(--radius-pill);
}

/* High-contrast detail CTAs */
.detail-cta {
  position: relative;
  min-height: 54px;
  padding: 14px 28px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(115deg, #ff1f78 0%, #ff2a85 38%, #b44dff 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  box-shadow:
    0 10px 24px rgba(255, 42, 133, 0.34),
    0 0 22px rgba(184, 107, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: 16px;
  font-weight: 900;
  transition:
    transform 170ms cubic-bezier(0.2, 0.85, 0.35, 1.35),
    box-shadow 170ms ease,
    filter 170ms ease;
}

.detail-cta::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -45%;
  width: 30%;
  height: 240%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(22deg);
  transition: left 420ms ease;
  pointer-events: none;
}

.detail-cta:hover {
  color: #ffffff;
  background: linear-gradient(115deg, #ff176f 0%, #ff2a85 35%, #a83fff 100%);
  border-color: #ffffff;
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-2px) scale(1.025);
  box-shadow:
    0 14px 30px rgba(255, 42, 133, 0.44),
    0 0 30px rgba(184, 107, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.detail-cta:hover::before {
  left: 125%;
}

.detail-cta:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

.nav-cta.detail-cta {
  min-width: 116px;
  min-height: 50px;
  padding: 11px 22px;
  font-size: 14px;
}

.floating-cta.detail-cta {
  position: fixed;
  min-height: 58px;
  padding: 14px 24px;
}

/* Theme-colored friend-link band */
.site-footer {
  padding-top: 0;
}

.friend-links {
  margin-bottom: 58px;
  padding: 52px 0 48px;
  color: var(--paper);
  background: linear-gradient(105deg, #6c3b49 0%, var(--brown) 55%, #7e3d4b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  text-align: center;
}

.friend-links h2 {
  margin-bottom: 26px;
  color: transparent;
  background: linear-gradient(90deg, #ffffff, #fff0f5, #ffe6a3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 32px;
}

.friend-links nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.friend-links a {
  min-height: 48px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  background: var(--milk);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(42, 18, 25, 0.16);
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.friend-links a:hover {
  color: var(--paper);
  background: var(--pink);
  transform: translateY(-2px);
}

button:not(.screenshot-open) {
  border-radius: var(--radius-pill);
}

@media (max-width: 1120px) {
  .site-nav {
    gap: 15px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .brand {
    min-width: auto;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .split-layout,
  .feature-layout {
    gap: 48px;
  }

  .system-item {
    padding-inline: 20px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 66px;
  }

  .nav-shell {
    gap: 12px;
  }

  .brand {
    margin-right: auto;
  }

  .brand span {
    display: inline;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-cta {
    order: 1;
  }

  .nav-shell > .nav-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 99;
    height: calc(100dvh - var(--header-height));
    margin: 0;
    padding: 30px 24px 50px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    background: var(--milk);
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 17px 4px;
    color: var(--brown);
    font-size: 20px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .mobile-nav-cta {
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    padding: 13px 22px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    font-size: 16px;
  }

  .hero {
    min-height: 660px;
  }

  .hero h1 {
    max-width: 650px;
    font-size: 50px;
  }

  .hero h1 small {
    font-size: 27px;
  }

  .hero-media img {
    object-position: 42% center;
  }

  .section {
    padding-block: 88px;
  }

  h2 {
    font-size: 38px;
  }

  .split-layout,
  .feature-layout,
  .config-layout,
  .route-panel,
  .update-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .split-layout .feature-visual {
    max-width: 700px;
  }

  .system-grid {
    grid-template-columns: 1fr 1fr;
  }

  .system-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .system-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .route-panel {
    margin-top: 64px;
  }

  .route-panel figure {
    order: -1;
  }

  .route-panel img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
    max-width: 620px;
  }

  .update-layout,
  .faq-layout {
    gap: 48px;
  }

  .update-intro,
  .faq-intro {
    position: static;
    max-width: 640px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > p {
    grid-column: 1 / -1;
    max-width: 650px;
  }
}

@media (max-width: 640px) {
  .page-width {
    width: min(calc(100% - 32px), var(--page));
  }

  .nav-shell {
    width: calc(100% - 20px);
  }

  .brand span {
    max-width: 112px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .nav-cta {
    min-width: 78px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 40px;
    padding-inline: 8px;
  }

  .hero {
    min-height: calc(100svh - var(--header-height) - 40px);
    max-height: 720px;
    align-items: flex-end;
  }

  .hero-media img {
    object-position: 38% center;
  }

  .hero-shade {
    background: rgba(46, 22, 30, 0.58);
  }

  .hero-content {
    padding-block: 48px 22px;
  }

  .hero h1 {
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  .hero h1 small {
    margin-top: 8px;
    font-size: 23px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-width: 0;
    padding-inline: 14px;
  }

  .hero-facts {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts div,
  .hero-facts div:first-child {
    min-width: 0;
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
  }

  .hero-facts div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .hero-facts dd {
    font-size: 14px;
  }

  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .signal-grid span {
    padding: 9px 8px;
    font-size: 13px;
    border-bottom: 1px solid rgba(92, 50, 62, 0.24);
  }

  .signal-grid span:nth-child(3) {
    border-left: 0;
  }

  .section {
    padding-block: 68px;
  }

  h2,
  .update-intro h2,
  .faq-intro h2 {
    margin-bottom: 18px;
    font-size: 31px;
  }

  .section-copy .lead,
  .feature-copy .lead {
    font-size: 18px;
  }

  .split-layout,
  .feature-layout {
    gap: 44px;
  }

  .feature-visual {
    padding: 9px 9px 38px;
  }

  .inline-note {
    display: block;
  }

  .inline-note strong,
  .inline-note span {
    display: block;
  }

  .inline-note strong {
    margin-bottom: 4px;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .section-heading > p:last-child {
    font-size: 16px;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .system-item,
  .system-item:nth-child(3),
  .system-item:nth-child(4) {
    min-height: 0;
    padding: 28px 4px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .system-item:first-child {
    border-top: 0;
  }

  .system-number {
    margin-bottom: 16px;
  }

  .route-panel {
    margin-inline: -4px;
  }

  .route-copy {
    padding: 32px 24px;
  }

  .route-copy h3 {
    font-size: 25px;
  }

  .guide-list li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .guide-list h3 {
    font-size: 18px;
  }

  .feature-points {
    grid-template-columns: 1fr;
  }

  .feature-points div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .gallery-heading {
    align-items: center;
  }

  .gallery-heading h2 {
    font-size: 28px;
  }

  .gallery-controls button {
    width: 42px;
    height: 42px;
  }

  .gallery-track {
    grid-auto-columns: 91%;
    gap: 14px;
  }

  .update-list summary {
    padding-right: 36px;
  }

  .update-list details p {
    margin-right: 12px;
    margin-left: 0;
  }

  .config-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .faq-list summary {
    min-height: 72px;
    padding-right: 40px;
    font-size: 16px;
  }

  .faq-list details p {
    margin-right: 0;
  }

  .closing-section {
    min-height: 420px;
  }

  .closing-section picture img {
    object-position: 38% center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid > p {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 980px) {
  h2,
  .update-intro h2,
  .faq-intro h2 {
    font-size: 34px;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-intro,
  .faq-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .update-intro .section-index,
  .update-intro h2,
  .faq-intro .section-index,
  .faq-intro h2,
  .update-summary,
  .faq-summary {
    grid-column: 1;
    grid-row: auto;
  }

  .update-summary,
  .faq-summary {
    max-width: 740px;
  }

  .update-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .update-card-body {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 74px;
  }

  h2,
  .update-intro h2,
  .faq-intro h2 {
    font-size: 28px;
  }

  .friend-links {
    margin-bottom: 42px;
    padding: 42px 0 38px;
  }

  .friend-links h2 {
    margin-bottom: 22px;
    font-size: 27px;
  }

  .friend-links nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .friend-links a {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
  }

  .nav-cta.detail-cta {
    min-width: 104px;
    min-height: 46px;
    padding: 9px 15px;
    font-size: 13px;
  }

  .gallery-heading {
    display: block;
  }

  .gallery-heading > p {
    margin-top: 14px;
    text-align: left;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .zoom-badge {
    right: 12px;
    bottom: 12px;
    opacity: 1;
    transform: none;
  }

  .update-card {
    padding: 26px 20px;
    border-radius: var(--radius-card);
  }

  .update-card-title {
    grid-template-columns: 32px 1fr;
    gap: 9px;
  }

  .update-card-title h3 {
    font-size: 19px;
  }

  .faq-list summary {
    min-height: 74px;
    padding: 20px 54px 20px 20px;
  }

  .faq-list summary::after {
    right: 20px;
  }

  .faq-list details p {
    padding: 0 20px 24px;
  }

  .floating-cta {
    right: auto;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(calc(100% - 32px), 360px);
    min-height: 54px;
    padding: 12px 20px;
    font-size: 15px;
    transform: translateX(-50%);
  }

  .floating-cta.detail-cta:hover {
    transform: translateX(-50%) translateY(-2px) scale(1.01);
  }

  .floating-cta.detail-cta:active {
    transform: translateX(-50%) scale(0.97);
  }

  .lightbox {
    padding: 64px 12px 24px;
  }

  .lightbox-dialog {
    width: 100%;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .lightbox-dialog figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    background: rgba(36, 21, 27, 0.82);
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/* Unified desktop hover interactions — CSS only, 0.3s */
.feature-visual,
.system-item,
.route-panel,
.guide-list li,
.guide-aside,
.feature-points div,
.customize-visual,
.screenshot-item,
.update-card,
.faq-list details,
.config-list div {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.feature-visual img,
.route-panel img,
.guide-aside img,
.customize-visual img,
.screenshot-open img {
  transform-origin: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.button,
.nav-cta,
.floating-cta,
.friend-links a,
.lightbox-close,
.lightbox-nav,
.menu-toggle {
  transition:
    transform 0.3s ease,
    filter 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.detail-cta {
  transition:
    transform 0.3s cubic-bezier(0.2, 0.85, 0.35, 1.35),
    filter 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.site-nav a::after {
  transition: transform 0.3s ease;
}

.footer-grid nav a {
  position: relative;
  padding-bottom: 4px;
}

.footer-grid nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-visual:hover {
    transform: translateY(-8px) rotate(-1deg);
    border-color: var(--pink);
    box-shadow:
      0 22px 48px rgba(92, 50, 62, 0.2),
      0 0 30px rgba(255, 42, 133, 0.2),
      0 0 42px rgba(184, 107, 255, 0.15);
  }

  .route-panel:hover,
  .guide-aside:hover,
  .customize-visual:hover,
  .update-card:hover,
  .faq-list details:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 42, 133, 0.72);
    box-shadow:
      0 20px 46px rgba(92, 50, 62, 0.2),
      0 0 28px rgba(255, 42, 133, 0.2),
      0 0 40px rgba(184, 107, 255, 0.13);
  }

  .system-item:hover,
  .guide-list li:hover,
  .feature-points div:hover,
  .config-list div:hover {
    z-index: 1;
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
      0 14px 30px rgba(92, 50, 62, 0.14),
      inset 0 0 24px rgba(255, 42, 133, 0.08),
      0 0 24px rgba(184, 107, 255, 0.12);
  }

  .screenshot-item:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 16px 22px rgba(255, 42, 133, 0.2));
  }

  .feature-visual:hover img,
  .route-panel:hover img,
  .guide-aside:hover img,
  .customize-visual:hover img,
  .screenshot-open:hover img {
    transform: scale(1.05);
    filter: brightness(1.04) saturate(1.06);
  }

  .button:hover,
  .nav-cta:hover,
  .friend-links a:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.1) saturate(1.08);
  }

  .floating-cta.detail-cta:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.1) saturate(1.08);
  }

  .lightbox-close:hover,
  .lightbox-nav:hover,
  .menu-toggle:hover {
    transform: scale(1.08);
    filter: brightness(1.12);
  }

  .site-nav a:hover::after,
  .site-nav a.is-active::after,
  .footer-grid nav a:hover::after,
  .footer-grid nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (max-width: 640px) and (hover: hover) and (pointer: fine) {
  .floating-cta.detail-cta:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.03);
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.error-page {
  min-height: 100svh;
  padding: 32px;
  display: grid;
  place-items: center;
  background: var(--milk);
}

.error-page main {
  width: min(100%, 640px);
  text-align: center;
}

.error-page main > img {
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 4px solid var(--pink);
  border-radius: 50%;
}

.error-code {
  margin-bottom: 4px;
  color: var(--pink);
  font-size: 18px;
  font-weight: 900;
}

.error-page h1 {
  margin-bottom: 18px;
  font-size: 42px;
}

.error-page main > p:not(.error-code) {
  max-width: 540px;
  margin: 0 auto 28px;
  color: var(--muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.error-secondary {
  color: var(--brown);
  background: var(--paper);
  border-color: var(--brown);
}

.error-secondary:hover {
  color: var(--paper);
  background: var(--brown);
}

@media (max-width: 640px) {
  .error-page {
    padding: 24px;
  }

  .error-page h1 {
    font-size: 31px;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .gallery-controls,
  .closing-section,
  .site-footer {
    display: none !important;
  }

  .hero {
    min-height: 0;
    margin: 0;
    padding: 40px 0;
  }

  .hero-media,
  .hero-shade {
    display: none;
  }

  .hero h1,
  .hero-copy,
  .hero-facts dd {
    color: var(--brown);
    text-shadow: none;
  }

  .section {
    padding-block: 32px;
  }

  details > * {
    display: block !important;
  }
}
