:root {
  --mist: #e6f2f5;
  --mist-light: #f0f7fa;
  --white: #ffffff;
  --ink: #2a3a4a;
  --ink-soft: #536474;
  --line: #c8dce2;
  --navy: #244e78;
  --navy-dark: #183650;
  --cat-yellow: #fcdfa2;
  --paw-pink: #ffc6c7;
  --hydrangea: #8d76bf;
  --leaf: #4f9565;
  --shadow: 0 14px 34px rgba(35, 71, 91, 0.12);
  --content: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist-light);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 9px 14px;
  color: var(--white);
  background: var(--navy-dark);
  transform: translateY(-160%);
}

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

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

.icon,
.menu-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-icon {
  width: 24px;
  height: 24px;
}

.menu-icon-close {
  display: none;
}

.floating-action {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--leaf);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(42, 86, 61, 0.3);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.floating-action,
.nav-action,
.button-cta {
  border-radius: 9999px !important;
  overflow: hidden;
  background-clip: padding-box;
}

.floating-action .icon {
  width: 18px;
  height: 18px;
}

.floating-action:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 72px;
  color: var(--ink);
  background: rgba(240, 247, 250, 0.95);
  border-bottom: 1px solid rgba(42, 58, 74, 0.12);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--content));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 148px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-dark);
}

.brand img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(36, 78, 120, 0.18);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, border-radius 180ms ease, box-shadow 160ms ease, text-shadow 160ms ease;
}

.primary-nav a .icon,
.footer-shell nav a .icon {
  width: 15px;
  height: 15px;
}

.primary-nav a:not(.nav-action):hover,
.primary-nav a:not(.nav-action).is-active {
  color: var(--leaf);
  border-color: rgba(79, 149, 101, 0.68);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(79, 149, 101, 0.16), 0 0 13px rgba(79, 149, 101, 0.28);
  text-shadow: 0 0 8px rgba(79, 149, 101, 0.42);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  color: var(--white);
  background: var(--leaf);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(79, 149, 101, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-action:hover {
  color: var(--white) !important;
  background: var(--leaf);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 78svh;
  max-height: 820px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-dark);
}

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

.hero-media {
  object-fit: cover;
  object-position: center center;
  transition: transform 900ms cubic-bezier(0.2, 0.65, 0.3, 1), filter 500ms ease;
}

.hero-shade {
  background: rgba(16, 42, 62, 0.52);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--content));
  min-height: 78svh;
  max-height: 820px;
  margin: 0 auto;
  padding: 146px 0 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 72px;
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 4px 24px rgba(10, 32, 48, 0.34);
}

.hero-copy {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.75;
  text-shadow: 0 2px 12px rgba(10, 32, 48, 0.38);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-width: 128px;
  min-height: 46px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 800;
  line-height: 1.4;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, border-radius 180ms ease;
}

.button-cta {
  border-radius: 999px;
}

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

.button .icon {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.button:hover .icon,
.floating-action:hover .icon,
.nav-action:hover .icon,
.footer-shell nav a:hover .icon {
  transform: translateX(2px);
}

.button-primary {
  color: var(--white);
  background: var(--leaf);
  box-shadow: 0 10px 24px rgba(24, 54, 80, 0.24);
}

.button-primary:hover {
  background: var(--leaf);
}

.button-secondary {
  color: var(--white);
  background: rgba(24, 54, 80, 0.34);
  border-color: rgba(255, 255, 255, 0.68);
}

.button-secondary:hover {
  background: rgba(24, 54, 80, 0.68);
  border-color: var(--white);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  width: min(670px, 100%);
  margin: 42px 0 0;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-facts div {
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-facts div:last-child {
  border-right: 0;
}

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

.hero-facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.section-band {
  scroll-margin-top: 72px;
}

.section-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 96px 0;
}

.narrow-shell {
  max-width: 920px;
}

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

.section-copy h2,
.section-heading h2,
.guide-copy h2 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 38px;
  line-height: 1.28;
}

.section-copy > p:not(.section-kicker),
.section-heading > p:not(.section-kicker),
.guide-copy > p:not(.section-kicker) {
  margin: 20px 0 0;
  color: var(--ink-soft);
}

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

.compact-heading {
  margin-bottom: 38px;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 32px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.fact-strip span {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.fact-strip strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.4;
}

.feature-figure,
.guide-figure,
.route-image {
  margin: 0;
}

.feature-figure img,
.guide-figure img,
.route-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform 420ms ease, filter 420ms ease, box-shadow 420ms ease;
}

figcaption {
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.intro {
  background: var(--mist-light);
}

.content-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.content-item {
  position: relative;
  min-height: 230px;
  padding: 34px 34px 32px 72px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-item:nth-child(2) {
  background: #fffaf0;
}

.content-item:nth-child(3) {
  background: #fff7f7;
}

.item-number {
  position: absolute;
  top: 33px;
  left: 28px;
  color: var(--hydrangea);
  font-size: 13px;
  font-weight: 900;
}

.content-item h3,
.feature-list h3,
.guide-steps h3,
.dialogue-callout h3 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 20px;
  line-height: 1.4;
}

.content-item p,
.feature-list p,
.guide-steps p,
.dialogue-callout p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.characters {
  background: var(--mist);
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(0, 0.9fr);
  gap: 52px;
  align-items: center;
}

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

.route-list li {
  position: relative;
  padding: 18px 0 18px 54px;
  counter-increment: route;
  border-bottom: 1px solid rgba(42, 58, 74, 0.16);
}

.route-list li::before {
  position: absolute;
  top: 18px;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  content: counter(route, decimal-leading-zero);
  color: var(--navy-dark);
  background: var(--cat-yellow);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.route-list strong,
.route-list span {
  display: block;
}

.route-list strong {
  color: var(--navy-dark);
}

.route-list span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

.dialogue-callout {
  margin-top: 54px;
  padding: 24px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  background: var(--white);
  border-left: 5px solid var(--hydrangea);
  box-shadow: var(--shadow);
}

.dialogue-callout img {
  width: 270px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.guide {
  background: var(--white);
}

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

.guide-steps {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.guide-steps article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.guide-steps p {
  font-size: 14px;
}

.guide-figure {
  position: sticky;
  top: 106px;
}

.features {
  background: #f5f2fb;
  border-top: 1px solid #dcd4ea;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #d8d0e7;
  border: 1px solid #d8d0e7;
  border-radius: 6px;
}

.feature-list article {
  min-height: 190px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
}

.feature-list article:nth-child(2),
.feature-list article:nth-child(6) {
  background: #fff8e8;
}

.feature-list article:nth-child(4) {
  background: #f0f8f2;
}

.screenshot-heading {
  margin-top: 58px;
  margin-bottom: 26px;
}

.screenshot-heading h2 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 32px;
  line-height: 1.3;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.screenshot-main {
  position: relative;
  min-width: 0;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  background: var(--navy-dark);
  border: 1px solid #d8d0e7;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.screenshot-main img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.screenshot-main figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(24, 54, 80, 0.82);
  border-radius: 4px;
  font-size: 13px;
}

.screenshot-thumbs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.screenshot-thumb {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--navy-dark);
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(35, 71, 91, 0.12);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.screenshot-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(24, 54, 80, 0.08);
  transition: background-color 160ms ease;
}

.screenshot-thumb img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.screenshot-thumb:hover {
  border-color: var(--leaf);
  box-shadow: 0 8px 18px rgba(79, 149, 101, 0.28);
  transform: translateY(-2px);
}

.screenshot-thumb:hover::after {
  background: rgba(79, 149, 101, 0.08);
}

.screenshot-thumb.is-active {
  border-color: var(--hydrangea);
  box-shadow: 0 0 0 2px rgba(141, 118, 191, 0.24), 0 8px 18px rgba(141, 118, 191, 0.24);
}

@media (hover: hover) and (pointer: fine) {
  .hero:hover .hero-media {
    transform: scale(1.025);
    filter: saturate(1.06) contrast(1.02);
  }

  .feature-figure:hover img,
  .guide-figure:hover img,
  .route-image:hover img {
    transform: scale(1.018);
    filter: saturate(1.06);
    box-shadow: 0 18px 36px rgba(35, 71, 91, 0.2);
  }

  .content-item,
  .feature-list article,
  .route-list li,
  .dialogue-callout,
  .guide-steps article,
  .update-list li {
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .content-item {
    z-index: 0;
  }

  .content-item:hover {
    z-index: 1;
    background: var(--white);
    box-shadow: 0 12px 26px rgba(35, 71, 91, 0.14);
    transform: translateY(-4px);
  }

  .content-item:nth-child(2):hover {
    background: #fffaf0;
  }

  .content-item:nth-child(3):hover {
    background: #fff7f7;
  }

  .feature-list article:hover {
    background: var(--white);
    box-shadow: inset 0 3px 0 var(--leaf), 0 10px 22px rgba(35, 71, 91, 0.1);
    transform: translateY(-3px);
  }

  .feature-list article:nth-child(2):hover,
  .feature-list article:nth-child(6):hover {
    background: #fff8e8;
  }

  .feature-list article:nth-child(4):hover {
    background: #f0f8f2;
  }

  .route-list li:hover {
    background: rgba(255, 255, 255, 0.46);
    border-bottom-color: rgba(79, 149, 101, 0.42);
    transform: translateX(5px);
  }

  .route-list li:hover::before {
    color: var(--white);
    background: var(--leaf);
    transform: scale(1.08);
  }

  .route-list li::before {
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
  }

  .dialogue-callout:hover {
    border-left-color: var(--leaf);
    box-shadow: 0 16px 32px rgba(35, 71, 91, 0.16);
    transform: translateY(-3px);
  }

  .guide-steps article:hover {
    background: var(--mist-light);
    border-bottom-color: rgba(79, 149, 101, 0.42);
    transform: translateX(5px);
  }

  .update-list li:hover {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(79, 149, 101, 0.42);
    box-shadow: inset 3px 0 0 var(--leaf);
  }

  .update-list li:hover::before {
    color: var(--leaf);
    transform: translateX(3px);
  }

  .update-list li::before {
    transition: color 160ms ease, transform 160ms ease;
  }

  .faq-list details:hover summary {
    color: var(--leaf);
    background: rgba(230, 242, 245, 0.52);
  }

  .faq-list summary {
    transition: color 160ms ease, background-color 160ms ease;
  }
}

.updates {
  background: var(--mist-light);
}

.update-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: update;
  border-top: 1px solid var(--line);
}

.update-list li {
  position: relative;
  min-height: 74px;
  padding: 20px 10px 20px 70px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  counter-increment: update;
  border-bottom: 1px solid var(--line);
}

.update-list li::before {
  position: absolute;
  left: 12px;
  color: var(--hydrangea);
  content: counter(update, decimal-leading-zero);
  font-size: 17px;
  font-weight: 900;
}

.update-list strong {
  color: var(--navy-dark);
}

.update-list span {
  color: var(--ink-soft);
}

.faq {
  background: var(--white);
  border-top: 1px solid var(--line);
}

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

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

.faq-list summary {
  position: relative;
  min-height: 70px;
  padding: 21px 54px 19px 0;
  color: var(--navy-dark);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  top: 34px;
  right: 14px;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--leaf);
  transition: transform 180ms ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list details[open] summary {
  color: var(--leaf);
}

.faq-list details p {
  max-width: 790px;
  margin: -4px 0 22px;
  color: var(--ink-soft);
}

.friend-links {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.friend-links-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 34px 0 38px;
  text-align: center;
}

.friend-links h2 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 28px;
  line-height: 1.3;
}

.friend-links nav {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.friend-links nav a {
  min-height: 44px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  background: var(--white);
  border: 1px solid rgba(79, 149, 101, 0.12);
  border-radius: 999px;
  box-shadow: 0 7px 16px rgba(35, 71, 91, 0.1);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.friend-links nav a:hover {
  color: var(--white);
  background: var(--leaf);
  border-color: var(--leaf);
  box-shadow: 0 9px 20px rgba(79, 149, 101, 0.24);
  transform: translateY(-2px);
}

.site-footer {
  color: #d9e5eb;
  background: #182b3a;
}

.footer-shell {
  width: min(calc(100% - 40px), var(--content));
  min-height: 160px;
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: center;
}

.footer-shell > div strong,
.footer-shell > div span {
  display: block;
}

.footer-shell > div strong {
  color: var(--white);
  font-size: 18px;
}

.footer-shell > div span {
  color: #91a8b5;
  font-size: 12px;
}

.footer-shell nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.footer-shell nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-shell nav a:hover {
  color: var(--cat-yellow);
}

.footer-shell p {
  grid-column: 1 / -1;
  margin: 0;
  color: #91a8b5;
  font-size: 12px;
}

@media (max-width: 1040px) {
  .primary-nav {
    gap: 14px;
    font-size: 13px;
  }

  .split-layout,
  .guide-layout {
    gap: 46px;
  }

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

@media (max-width: 860px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header,
  .nav-shell {
    height: 64px;
  }

  .nav-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon-open {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon-close {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    max-height: calc(100svh - 64px);
    padding: 18px 24px 28px;
    display: none;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: var(--ink);
    background: var(--mist-light);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(42, 58, 74, 0.12);
  }

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

  .primary-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav .nav-action {
    margin-top: 14px;
    padding: 12px 18px;
    text-align: center;
    border-bottom: 0;
  }

  .hero,
  .hero-content {
    min-height: 82svh;
    max-height: none;
  }

  .hero-content {
    padding-top: 120px;
  }

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

  h1 {
    font-size: 54px;
  }

  .hero-copy {
    max-width: 560px;
    font-size: 17px;
  }

  .section-shell {
    padding: 76px 0;
  }

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

  .feature-figure,
  .guide-figure {
    max-width: 700px;
  }

  .guide-figure {
    position: static;
    order: -1;
  }

  .route-layout {
    gap: 32px;
  }

  .dialogue-callout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .dialogue-callout img {
    width: 220px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .nav-shell,
  .hero-content,
  .section-shell,
  .footer-shell {
    width: calc(100% - 32px);
  }

  .hero,
  .hero-content {
    min-height: 84svh;
  }

  .hero-content {
    padding: 108px 0 42px;
  }

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

  .hero-shade {
    background: rgba(16, 42, 62, 0.63);
  }

  h1 {
    font-size: 44px;
  }

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

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 30px;
    padding: 0;
  }

  .hero-facts div,
  .hero-facts div:first-child {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .hero-facts dt,
  .hero-facts dd {
    display: inline;
  }

  .hero-facts dd {
    margin-left: 8px;
  }

  .section-shell {
    padding: 64px 0;
  }

  .section-copy h2,
  .section-heading h2,
  .guide-copy h2 {
    font-size: 30px;
  }

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

  .fact-strip {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .content-item {
    min-height: 0;
    padding: 28px 24px 28px 62px;
  }

  .item-number {
    top: 28px;
    left: 22px;
  }

  .route-list li {
    padding-right: 0;
  }

  .dialogue-callout {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .dialogue-callout img {
    width: 100%;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .screenshot-main,
  .screenshot-main img {
    min-height: 300px;
  }

  .screenshot-thumbs {
    min-height: 240px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .update-list li {
    padding: 18px 4px 18px 48px;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .update-list li::before {
    left: 4px;
  }

  .faq-list summary {
    padding-right: 46px;
  }

  .floating-action {
    right: 16px;
    bottom: 16px;
    min-width: 106px;
    padding: 11px 16px;
    font-size: 14px;
  }

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

  .footer-shell nav {
    flex-wrap: wrap;
  }

  .friend-links-shell {
    width: calc(100% - 32px);
    padding: 30px 0 34px;
  }

  .friend-links h2 {
    font-size: 25px;
  }

  .friend-links nav {
    gap: 10px;
  }

  .friend-links nav a {
    flex: 1 1 145px;
    padding: 10px 14px;
  }
}

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

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

  .hero-media,
  .feature-figure img,
  .guide-figure img,
  .route-image img {
    filter: none !important;
    transform: none !important;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .floating-action,
  .friend-links,
  .site-footer {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 0;
    color: var(--ink);
    background: var(--white);
  }

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

.error-page {
  width: min(calc(100% - 32px), 680px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page img {
  width: 210px;
  height: 210px;
  margin-bottom: 30px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.error-page h1 {
  color: var(--navy-dark);
  font-size: 36px;
  text-shadow: none;
}

.error-page p:not(.section-kicker) {
  margin: 18px 0 28px;
  color: var(--ink-soft);
}

.error-page .button {
  width: auto;
}
