@property --detail-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0turn;
}

:root {
  --milk: #fffdf9;
  --sakura: #fff0f5;
  --sakura-deep: #fbe2eb;
  --mocha: #7f4f37;
  --mocha-dark: #4d2c20;
  --toffee: #b87333;
  --strawberry: #ff69b4;
  --peach: #ff85a2;
  --rose: #e84f8d;
  --ink: #3f302d;
  --muted: #75645f;
  --line: rgba(127, 79, 55, 0.14);
  --white: #ffffff;
  --shadow-sm: 0 12px 30px rgba(92, 52, 37, 0.08);
  --shadow-md: 0 24px 64px rgba(92, 52, 37, 0.14);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --container: 1180px;
  --header-height: 78px;
  --font-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", SimSun, serif;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--milk);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .floating-detail,
body.nav-open .back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .floating-detail,
body.lightbox-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}

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

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

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

button {
  font: inherit;
}

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

h1,
h2,
h3 {
  color: var(--mocha-dark);
  font-family: var(--font-serif);
  line-height: 1.25;
}

h1,
h2 {
  color: var(--mocha-dark);
  background: linear-gradient(120deg, var(--mocha-dark) 0%, var(--mocha) 52%, var(--strawberry) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  color: var(--white);
  background: var(--strawberry);
}

:focus-visible {
  outline: 3px solid rgba(255, 105, 180, 0.55);
  outline-offset: 4px;
}

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

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.16em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--mocha-dark);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1001;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--peach), var(--strawberry), var(--toffee));
  box-shadow: 0 0 14px rgba(255, 105, 180, 0.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(127, 79, 55, 0.08);
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(18px) saturate(150%);
  transition: box-shadow 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 10px 30px rgba(79, 43, 31, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand img {
  width: 50px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(127, 79, 55, 0.16);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  color: var(--mocha-dark);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.5vw, 24px);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav > a:not(.nav-cta) {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: #5d4a45;
  white-space: nowrap;
}

.site-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--strawberry);
  border-radius: 999px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.site-nav > a:not(.nav-cta):hover,
.site-nav > a:not(.nav-cta).is-active {
  color: var(--rose);
}

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

.nav-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 9px;
  padding: 13px 25px;
  color: var(--white);
  background: linear-gradient(135deg, #ff277d 0%, #ff4f91 48%, #ff854d 100%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(255, 67, 139, 0.28), 0 12px 28px rgba(169, 42, 91, 0.3);
  font-size: 0.96rem;
  font-weight: 800;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease, filter 200ms ease;
  will-change: transform;
}

.nav-cta:hover {
  box-shadow: 0 0 28px rgba(255, 67, 139, 0.42), 0 17px 34px rgba(169, 42, 91, 0.38);
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-2px);
}

.nav-cta:active {
  box-shadow: 0 0 14px rgba(255, 67, 139, 0.3), 0 7px 16px rgba(169, 42, 91, 0.3);
  transform: scale(0.97);
  transition-duration: 70ms;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  color: var(--mocha-dark);
  background: var(--sakura);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 4px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 105, 180, 0.14), transparent 27%),
    radial-gradient(circle at 16% 70%, rgba(184, 115, 51, 0.1), transparent 25%),
    linear-gradient(135deg, var(--milk) 0%, var(--sakura) 58%, #fff8f0 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: radial-gradient(rgba(127, 79, 55, 0.13) 0.8px, transparent 0.8px);
  background-size: 24px 24px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: 70px 110px;
  gap: clamp(40px, 6vw, 86px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin-bottom: 16px;
  color: var(--toffee);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  margin-right: 10px;
  padding: 5px 10px;
  color: var(--white);
  background: var(--mocha);
  border-radius: 999px;
  letter-spacing: 0.1em;
}

.hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.6vw, 5.35rem);
  letter-spacing: -0.07em;
  line-height: 0.98;
  text-shadow: 0 8px 30px rgba(127, 79, 55, 0.1);
}

.hero-jp {
  margin: 14px 0 24px;
  color: var(--strawberry);
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-style: italic;
  letter-spacing: 0.09em;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: #5f4c47;
  font-size: clamp(1.02rem, 1.5vw, 1.17rem);
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button .icon {
  width: 1.15em;
  height: 1.15em;
}

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

.button-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 58px;
  gap: 10px;
  padding: 16px 32px;
  color: var(--white);
  background: linear-gradient(135deg, #ff277d 0%, #ff4f91 48%, #ff854d 100%);
  border-color: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(255, 67, 139, 0.3), 0 16px 36px rgba(169, 42, 91, 0.34);
  font-size: 1.02rem;
  font-weight: 800;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease, filter 200ms ease;
  will-change: transform;
}

.button-primary:hover {
  box-shadow: 0 0 32px rgba(255, 67, 139, 0.46), 0 21px 44px rgba(169, 42, 91, 0.42);
  filter: saturate(1.08) brightness(1.04);
}

.button-primary:active {
  box-shadow: 0 0 15px rgba(255, 67, 139, 0.32), 0 8px 18px rgba(169, 42, 91, 0.3);
  transform: scale(0.97);
  transition-duration: 70ms;
}

.button-secondary {
  color: var(--mocha-dark);
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(127, 79, 55, 0.18);
}

.button-secondary:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.hero-meta {
  display: flex;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

.hero-meta li {
  display: grid;
  min-width: 120px;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.hero-meta li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.hero-meta strong {
  color: var(--mocha-dark);
  font-size: 0.93rem;
}

.hero-art {
  position: relative;
  margin: 0;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.hero-art::before {
  top: -38px;
  right: -38px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 105, 180, 0.35);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.22);
}

.hero-art::after {
  bottom: -45px;
  left: -40px;
  width: 110px;
  height: 110px;
  background: rgba(184, 115, 51, 0.11);
}

.hero-art-frame {
  position: relative;
  overflow: hidden;
  padding: 10px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 44% 28% 42% 24% / 22% 38% 26% 42%;
  box-shadow: 0 35px 80px rgba(90, 48, 35, 0.2);
  transform: rotate(1.2deg);
}

.hero-art-frame img {
  width: 100%;
  border-radius: inherit;
}

.hero-art figcaption {
  position: absolute;
  right: 28px;
  bottom: -25px;
  display: grid;
  min-width: 230px;
  padding: 16px 22px;
  color: var(--mocha-dark);
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-art figcaption span {
  color: var(--strawberry);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.hero-ornament {
  position: absolute;
  border: 1px solid rgba(255, 105, 180, 0.18);
  border-radius: 50%;
}

.hero-ornament-one {
  top: 10%;
  left: -130px;
  width: 360px;
  height: 360px;
}

.hero-ornament-two {
  right: 10%;
  bottom: -260px;
  width: 520px;
  height: 520px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  color: var(--mocha);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(127, 79, 55, 0.22);
}

.scroll-cue i::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: var(--strawberry);
  content: "";
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  to { top: 140%; }
}

.section {
  position: relative;
  padding-block: clamp(86px, 10vw, 140px);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-heading {
  max-width: 750px;
  margin-bottom: 48px;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(1.72rem, 2.9vw, 2.65rem);
  letter-spacing: -0.04em;
}

.section-heading h2::after {
  display: block;
  width: 62px;
  height: 4px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--strawberry), var(--toffee));
  border-radius: 999px;
  content: "";
}

.section-heading-centered h2::after {
  margin-inline: auto;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.framed-media {
  margin: 0;
}

.framed-media img {
  width: 100%;
  border: 10px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.framed-media figcaption {
  margin: 15px 10px 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.story-visual {
  position: relative;
}

.story-visual::before {
  position: absolute;
  z-index: -1;
  top: -28px;
  left: -28px;
  width: 70%;
  height: 70%;
  background: var(--sakura);
  border-radius: var(--radius-lg);
  content: "";
}

.lead-paragraph {
  color: var(--mocha-dark);
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.8;
}

.story-copy > p:not(.lead-paragraph) {
  color: #604f4a;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.fact-grid div {
  display: grid;
  padding: 18px;
  background: rgba(255, 240, 245, 0.45);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-grid div:nth-child(2n) {
  border-right: 0;
}

.fact-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.fact-grid span {
  color: var(--muted);
  font-size: 0.72rem;
}

.fact-grid strong {
  color: var(--mocha-dark);
  font-size: 0.95rem;
}

.content-section {
  background:
    linear-gradient(rgba(127, 79, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 79, 55, 0.035) 1px, transparent 1px),
    var(--sakura);
  background-size: 32px 32px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.route-card {
  overflow: hidden;
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid rgba(127, 79, 55, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.route-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-7px);
}

.route-card-large {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  align-items: stretch;
}

.route-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--sakura-deep);
}

.route-card:not(.route-card-large) figure {
  aspect-ratio: 16 / 9;
}

.route-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.route-card:hover figure img {
  transform: scale(1.035);
}

.route-content {
  padding: clamp(26px, 4vw, 42px);
}

.route-number {
  color: var(--strawberry);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.route-content h3 {
  margin: 10px 0 14px;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

.route-content p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  gap: 8px;
}

.tag-list li {
  padding: 6px 11px;
  color: var(--mocha);
  background: var(--sakura);
  border: 1px solid rgba(255, 105, 180, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.character-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 30px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.character-strip article {
  min-height: 210px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  transition: background 180ms ease;
}

.character-strip article:last-child {
  border-right: 0;
}

.character-strip article:hover {
  background: var(--sakura);
}

.character-strip span {
  color: var(--strawberry);
  font-size: 0.68rem;
  font-weight: 800;
}

.character-strip h3 {
  margin: 10px 0 12px;
  font-size: 1.12rem;
}

.character-strip p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

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

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.75fr);
  align-items: start;
  gap: clamp(40px, 7vw, 90px);
}

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

.guide-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  gap: 20px;
}

.guide-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-steps > li > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--mocha);
  border-radius: 50% 50% 50% 18%;
  font-family: Georgia, serif;
  font-size: 0.85rem;
}

.guide-steps h3 {
  margin-bottom: 7px;
  font-size: 1.16rem;
}

.guide-steps p {
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.route-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  background: var(--mocha-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  gap: 8px;
}

.route-order span {
  flex: 0 0 100%;
  margin-bottom: 6px;
  color: var(--peach);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.route-order p {
  margin: 0;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.route-order i {
  color: var(--peach);
  font-style: normal;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 64px;
  gap: 18px;
}

.tips-grid article {
  padding: 28px;
  background: var(--sakura);
  border: 1px solid rgba(255, 105, 180, 0.13);
  border-radius: var(--radius-sm);
}

.tips-grid span {
  color: var(--strawberry);
  font-size: 1.5rem;
}

.tips-grid h3 {
  margin: 10px 0;
  font-size: 1.08rem;
}

.tips-grid p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.features-section {
  color: rgba(255, 255, 255, 0.83);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 105, 180, 0.18), transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(184, 115, 51, 0.22), transparent 27%),
    var(--mocha-dark);
}

.features-section .section-heading h2,
.features-section h3 {
  color: var(--white);
}

.features-section .section-heading h2 {
  background: linear-gradient(120deg, var(--white) 0%, #ffd9e9 48%, var(--peach) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-section .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

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

.feature-grid article {
  min-height: 265px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  transition: background 200ms ease, transform 200ms ease;
}

.feature-grid article:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-5px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--mocha-dark);
  background: linear-gradient(135deg, var(--sakura), var(--peach));
  border-radius: 50% 50% 18% 50%;
}

.feature-icon .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.9;
}

.feature-grid h3 {
  margin: 26px 0 10px;
  font-size: 1.22rem;
}

.feature-grid p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.spec-panel {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  gap: 36px;
}

.spec-panel h3 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.spec-panel dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0;
}

.spec-panel dl div {
  padding: 0 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.spec-panel dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
}

.spec-panel dd {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}

.screenshots-block {
  margin-top: clamp(72px, 9vw, 110px);
  padding-top: clamp(58px, 7vw, 82px);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.screenshots-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.screenshots-heading h2 {
  margin-bottom: 16px;
  color: var(--white);
  background: linear-gradient(120deg, var(--white) 0%, #ffd9e9 48%, var(--peach) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.72rem, 2.9vw, 2.65rem);
  letter-spacing: -0.04em;
}

.screenshots-heading h2::after {
  display: block;
  width: 62px;
  height: 4px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--strawberry), var(--toffee));
  border-radius: 999px;
  content: "";
}

.screenshots-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 18px;
}

.screenshot-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #261713;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(20, 8, 5, 0.24);
  cursor: zoom-in;
}

.screenshot-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 8, 5, 0.72), transparent 50%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.screenshot-card:hover img,
.screenshot-card:focus-visible img {
  transform: scale(1.05);
}

.screenshot-card:hover::after,
.screenshot-card:focus-visible::after,
.screenshot-card:hover .screenshot-zoom,
.screenshot-card:focus-visible .screenshot-zoom {
  opacity: 1;
}

.screenshot-zoom {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(77, 44, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  gap: 6px;
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 220ms ease;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: rgba(20, 10, 8, 0.96);
  border: 0;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(20, 10, 8, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-shell {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  width: min(calc(100% - 40px), 1440px);
  height: min(calc(100% - 40px), 920px);
  gap: 18px;
}

.lightbox figure {
  display: grid;
  align-content: center;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.lightbox figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 130px);
  margin-inline: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1000px);
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  gap: 20px;
}

.lightbox figcaption small {
  flex: 0 0 auto;
  color: var(--peach);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

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

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

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
}

.lightbox-nav .icon,
.lightbox-close .icon {
  width: 23px;
  height: 23px;
}

.lightbox-prev {
  justify-self: end;
}

.lightbox-next {
  justify-self: start;
}

.updates-section {
  background: var(--sakura);
}

.update-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 18px;
}

.update-grid article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  width: 100%;
  padding: clamp(26px, 4vw, 38px);
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(127, 79, 55, 0.09);
  border-radius: var(--radius-sm);
  gap: 22px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.update-grid article:hover {
  border-color: rgba(255, 105, 180, 0.35);
  transform: translateY(-3px);
}

.update-grid article > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: var(--mocha);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.82rem;
}

.update-grid h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.update-grid p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.9;
}

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

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

.faq-intro {
  position: static;
}

.faq-intro .section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.faq-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: 100%;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--mocha), var(--mocha-dark));
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  gap: 18px;
}

.faq-note strong {
  display: block;
  margin-bottom: 0;
  color: var(--peach);
}

.faq-note p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.87rem;
}

.faq-list {
  display: grid;
  width: 100%;
  border-top: 0;
  gap: 14px;
}

.faq-list details {
  width: 100%;
  padding-inline: clamp(20px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(92, 52, 37, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-list details:hover,
.faq-list details[open] {
  border-color: rgba(255, 105, 180, 0.32);
  box-shadow: var(--shadow-sm);
}

.faq-list details:hover {
  transform: translateY(-2px);
}

.faq-list summary {
  position: relative;
  padding: 24px 54px 24px 0;
  color: var(--mocha-dark);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 750;
  list-style: none;
}

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

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 2px;
  background: var(--strawberry);
  border-radius: 999px;
  content: "";
  transition: transform 180ms ease;
}

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

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

.faq-list details p {
  max-width: 720px;
  padding: 0 54px 26px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.friend-links {
  padding-block: clamp(48px, 6vw, 76px);
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, var(--sakura) 0%, var(--sakura-deep) 55%, #ffe9f0 100%);
  border-top: 1px solid rgba(232, 79, 141, 0.1);
}

.friend-links h2 {
  margin: 0 0 26px;
  color: var(--mocha-dark);
  background: none;
  font-size: clamp(1.55rem, 2.7vw, 2.05rem);
  text-align: center;
  -webkit-text-fill-color: currentColor;
}

.friend-links-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.friend-links-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 24px;
  color: var(--mocha-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(127, 79, 55, 0.09);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(127, 79, 55, 0.08);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.friend-links-list a:hover {
  color: var(--rose);
  background: var(--white);
  border-color: rgba(232, 79, 141, 0.28);
  box-shadow: 0 14px 34px rgba(232, 79, 141, 0.16);
  transform: translateY(-3px);
}

.friend-links-list a:active {
  transform: scale(0.98);
}

.site-footer {
  padding-block: 42px;
  background: #2d1c17;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 26px 48px;
}

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

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-brand div {
  display: grid;
  line-height: 1.3;
}

.footer-brand strong {
  color: var(--white);
  font-family: var(--font-serif);
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
}

.site-footer nav a:hover {
  color: var(--peach);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  text-align: center;
}

.floating-detail {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 81;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 28px;
  color: var(--white);
  background: linear-gradient(135deg, #ff277d 0%, #ff4f91 48%, #ff854d 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(255, 67, 139, 0.34), 0 18px 42px rgba(132, 28, 72, 0.38);
  font-size: 1rem;
  font-weight: 800;
  gap: 10px;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease, filter 200ms ease;
  will-change: transform;
}

.floating-detail:hover {
  box-shadow: 0 0 34px rgba(255, 67, 139, 0.5), 0 23px 50px rgba(132, 28, 72, 0.46);
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-4px);
}

.floating-detail:active {
  box-shadow: 0 0 16px rgba(255, 67, 139, 0.34), 0 9px 20px rgba(132, 28, 72, 0.34);
  transform: scale(0.97);
  transition-duration: 70ms;
}

.nav-cta::before,
.button-primary::before,
.floating-detail::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.26), transparent 38%, rgba(255, 255, 255, 0.1));
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

@keyframes detail-border-flow {
  to {
    --detail-border-angle: 1turn;
  }
}

.nav-cta > .icon,
.nav-cta > span,
.button-primary > .icon,
.button-primary > span,
.floating-detail > .icon,
.floating-detail > span {
  position: relative;
  z-index: 2;
}

.nav-cta::after,
.button-primary::after,
.floating-detail::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2px;
  background: conic-gradient(
    from var(--detail-border-angle),
    #ff2f7d,
    #ff8a00,
    #ffe600,
    #36e27d,
    #24c8ff,
    #725cff,
    #e749ff,
    #ff2f7d
  );
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: detail-border-flow 1.45s linear infinite;
  animation-play-state: paused;
  transition: opacity 240ms ease, filter 240ms ease;
}

.nav-cta:hover::after,
.button-primary:hover::after,
.floating-detail:hover::after {
  opacity: 1;
  filter: brightness(1.3) saturate(1.25) drop-shadow(0 0 5px rgba(255, 255, 255, 0.62));
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta:hover::after,
  .button-primary:hover::after,
  .floating-detail:hover::after {
    animation-duration: 1.45s !important;
    animation-iteration-count: infinite !important;
    transition-duration: 240ms !important;
  }
}

.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(22px, env(safe-area-inset-bottom)) + 66px);
  z-index: 82;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--mocha);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--strawberry);
}

@media (max-width: 1120px) {
  :root {
    --header-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

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

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

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

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    gap: 4px;
    max-height: calc(100svh - var(--header-height));
    padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
    overflow: auto;
    visibility: hidden;
    background: rgba(255, 253, 249, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(77, 44, 32, 0.16);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav > a:not(.nav-cta) {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    text-align: left;
  }

  .site-nav > a:not(.nav-cta):hover,
  .site-nav > a:not(.nav-cta).is-active {
    background: var(--sakura);
  }

  .site-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 4px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }

  .character-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .character-strip article {
    border-bottom: 1px solid var(--line);
  }

  .character-strip article:nth-child(3n) {
    border-right: 0;
  }

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

  .spec-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 70px 115px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-art {
    width: min(100%, 680px);
    margin-inline: auto;
  }

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

  .guide-aside {
    position: static;
  }

  .route-card-large {
    display: block;
  }

  .route-card-large figure {
    aspect-ratio: 16 / 9;
  }

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

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

  .spec-panel dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 0;
  }

}

@media (max-width: 680px) {
  :root {
    --radius-md: 18px;
    --radius-lg: 26px;
  }

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

  .brand-copy small {
    display: none;
  }

  .hero-grid {
    padding-top: 54px;
    gap: 52px;
  }

  .eyebrow span {
    display: table;
    margin: 0 auto 8px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12.5vw, 3.65rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-meta li {
    min-width: 0;
    padding-inline: 10px;
  }

  .hero-meta strong {
    font-size: 0.75rem;
  }

  .hero-art figcaption {
    right: 12px;
    bottom: -30px;
    min-width: 190px;
    padding: 12px 16px;
    font-size: 0.78rem;
  }

  .section {
    padding-block: 78px;
  }

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

  .section-heading h2 {
    font-size: clamp(1.55rem, 7.2vw, 2.05rem);
  }

  .fact-grid,
  .route-grid,
  .feature-grid,
  .update-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-heading h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.35rem);
  }

  .route-card-large {
    grid-column: auto;
  }

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

  .character-strip article,
  .character-strip article:nth-child(3n) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .character-strip article:last-child {
    border-bottom: 0;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .feature-grid article {
    min-height: auto;
  }

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

  .update-grid article {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 22px 18px;
    gap: 14px;
  }

  .update-grid article > span {
    width: 40px;
    height: 40px;
  }

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

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

  .faq-note {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .lightbox-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    gap: 0;
  }

  .lightbox figure {
    grid-column: 1;
    grid-row: 1;
    padding: 52px 0 44px;
  }

  .lightbox figure img {
    max-height: calc(100svh - 145px);
  }

  .lightbox figcaption {
    padding-inline: 8px;
    font-size: 0.78rem;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }

  .lightbox-nav:hover {
    transform: translateY(-50%) scale(1.05);
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }

  .lightbox-close {
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
  }

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

  .footer-brand,
  .site-footer nav {
    justify-content: center;
  }

  .site-footer {
    padding-bottom: 108px;
  }

  .floating-detail {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    width: auto;
    min-height: 58px;
    padding: 15px 24px;
    font-size: 1rem;
    box-shadow: 0 0 26px rgba(255, 67, 139, 0.42), 0 16px 34px rgba(132, 28, 72, 0.42);
  }

  .back-to-top {
    right: 18px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px);
  }
}

@media (max-width: 420px) {
  .hero-meta {
    gap: 8px;
  }

  .hero-meta li {
    padding-inline: 6px;
  }

  .hero-meta span {
    font-size: 0.62rem;
  }

  .fact-grid,
  .spec-panel dl {
    grid-template-columns: 1fr;
  }

  .fact-grid div,
  .fact-grid div:nth-child(2n),
  .fact-grid div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-grid div:last-child {
    border-bottom: 0;
  }

  .spec-panel dl div {
    padding-block: 8px;
  }
}

@media (max-width: 560px) {
  .friend-links-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .friend-links-list a {
    width: 100%;
    min-height: 52px;
    padding-inline: 18px;
    border-radius: 18px;
  }

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

  .screenshot-zoom {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .reading-progress,
  .scroll-cue,
  .back-to-top,
  .floating-detail,
  .lightbox,
  .hero-actions,
  .site-footer {
    display: none !important;
  }

  .section,
  .hero-grid {
    padding-block: 24px;
  }

  .hero,
  .content-section,
  .features-section,
  .updates-section {
    color: #000;
    background: #fff;
  }

  .features-section h2,
  .features-section h3 {
    color: #000;
  }

  h1,
  h2 {
    color: #000;
    background: none;
    -webkit-text-fill-color: #000;
  }
}
