:root {
  --bg: #ebf5ec;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --ink: #0f2d16;
  --text: #37474f;
  --muted: #78909c;
  --green: #1e3824;
  --yellow: #ffb300;
  --blue: #81d4fa;
  --pink: #ff4081;
  --pink-hover: #f50057;
  --line: rgba(30, 56, 36, 0.16);
  --shadow: 0 20px 60px rgba(15, 45, 22, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-glow {
  0%,
  100% {
    box-shadow: 0 14px 34px rgba(255, 64, 129, 0.28);
  }

  50% {
    box-shadow: 0 18px 44px rgba(255, 64, 129, 0.4);
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  color: #11451f;
  font-size: clamp(2.35rem, 6.3vw, 5.25rem);
  text-shadow: 0 3px 0 rgba(255, 179, 0, 0.26);
}

h2 {
  color: #1d6b36;
  font-size: clamp(1.48rem, 3vw, 2.35rem);
}

h3 {
  color: var(--ink);
  font-size: 1.18rem;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--green);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(235, 245, 236, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--ink);
  transition: transform 180ms ease, color 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  color: #1d6b36;
  transform: translateY(-1px);
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 45, 22, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 12px 28px rgba(15, 45, 22, 0.22);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.96rem;
  color: var(--ink);
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-height: 38px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(255, 179, 0, 0.2);
  color: #12451e;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 0, 0.55);
  transform: translateY(-1px);
}

.nav-menu .nav-download {
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  padding-inline: 0.95rem;
  box-shadow: 0 10px 24px rgba(255, 64, 129, 0.22);
}

.nav-menu .nav-download:hover,
.nav-menu .nav-download:focus-visible {
  background: var(--pink-hover);
  color: #fff;
  box-shadow: 0 12px 28px rgba(245, 0, 87, 0.28);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.36rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  min-height: 40px;
  padding: 0 0.8rem;
  font: inherit;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero-bg,
.hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(235, 245, 236, 0.94) 0%, rgba(235, 245, 236, 0.72) 44%, rgba(235, 245, 236, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 45, 22, 0.45), rgba(15, 45, 22, 0.04) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.eyebrow {
  color: var(--pink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  max-width: 760px;
  margin-top: 1rem;
  color: var(--ink);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 64, 129, 0.28);
  animation: soft-glow 3.2s ease-in-out infinite;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--pink-hover);
  box-shadow: 0 18px 44px rgba(245, 0, 87, 0.36);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 45, 22, 0.14);
}

.icon {
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
  display: inline-block;
  background: currentColor;
  vertical-align: -0.15em;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-download {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a1 1 0 0 1 1 1v8.59l2.3-2.3a1 1 0 1 1 1.4 1.42l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.42l2.3 2.3V4a1 1 0 0 1 1-1Zm-7 14a1 1 0 0 1 1 1v1h12v-1a1 1 0 1 1 2 0v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

.icon-book {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4.5A2.5 2.5 0 0 1 7.5 2H20v17H7.5A2.5 2.5 0 0 0 5 21.5v-17ZM7.5 4a.5.5 0 0 0-.5.5v12.55c.17-.03.33-.05.5-.05H18V4H7.5ZM4 4a1 1 0 0 1 1 1v16.5a.5.5 0 0 0 .5.5H19a1 1 0 1 1 0 2H5.5A2.5 2.5 0 0 1 3 21.5V5a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

.icon-clover {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.9 3.4a3.4 3.4 0 0 1 1.1 2.5 3.4 3.4 0 1 1 1.1-2.5A3.4 3.4 0 1 1 18.1 8a3.4 3.4 0 0 1-2.5 1.1A3.4 3.4 0 1 1 12 14.8V22a1 1 0 1 1-2 0v-7.2A3.4 3.4 0 1 1 8.4 9.1 3.4 3.4 0 1 1 5.9 8a3.4 3.4 0 0 1 5-4.6Z'/%3E%3C/svg%3E");
}

.icon-spark {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a1 1 0 0 1 .95.68l1.68 5.05 5.05 1.68a1 1 0 0 1 0 1.9l-5.05 1.69-1.68 5.04a1 1 0 0 1-1.9 0L9.37 13l-5.05-1.68a1 1 0 0 1 0-1.9l5.05-1.68 1.68-5.05A1 1 0 0 1 12 2Zm0 4.16-.9 2.7a1 1 0 0 1-.63.63l-2.7.9 2.7.9a1 1 0 0 1 .63.63l.9 2.7.9-2.7a1 1 0 0 1 .63-.63l2.7-.9-2.7-.9a1 1 0 0 1-.63-.63l-.9-2.7Z'/%3E%3C/svg%3E");
}

.icon-map {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3a1 1 0 0 1 .45.1L15 6.38l4.55-2.28A1 1 0 0 1 21 5v13a1 1 0 0 1-.55.9l-5 2.5a1 1 0 0 1-.9 0L8 18.12 3.45 20.4A1 1 0 0 1 2 19.5v-13a1 1 0 0 1 .55-.9l5-2.5A1 1 0 0 1 8 3Zm1 2.62v10.76l5 2.5V8.12l-5-2.5Zm7 2.5v10.76l3-1.5V6.62l-3 1.5Zm-12-.5v10.76l3-1.5V5.62l-3 1.5Z'/%3E%3C/svg%3E");
}

.icon-image {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3Zm0 2a1 1 0 0 0-1 1v8.59l3.3-3.3a1 1 0 0 1 1.4 0l2.3 2.3 4.3-4.3a1 1 0 0 1 1.4 0l3.3 3.3V7a1 1 0 0 0-1-1H5Zm14 12a1 1 0 0 0 1-1v-.59l-4-4-4.3 4.3a1 1 0 0 1-1.4 0L8 14.41 4.41 18H19ZM8 8a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z'/%3E%3C/svg%3E");
}

.icon-help {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 12a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-10a3.2 3.2 0 0 1 3.3 3.1c0 1.22-.66 1.98-1.72 2.65-.7.44-.83.66-.83 1.25a.75.75 0 0 1-1.5 0c0-1.35.65-1.95 1.53-2.5.77-.49 1.02-.82 1.02-1.5A1.72 1.72 0 0 0 12 7.5c-.84 0-1.47.43-1.78 1.22a.75.75 0 1 1-1.4-.54A3.3 3.3 0 0 1 12 6Z'/%3E%3C/svg%3E");
}

.icon-menu {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Zm0 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Zm1 5a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H5Z'/%3E%3C/svg%3E");
}

.icon-clock {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 2a1 1 0 0 1 1 1v4.59l2.7 2.7a1 1 0 1 1-1.4 1.42l-3-3A1 1 0 0 1 11 12V7a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

.icon-heart {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21a1 1 0 0 1-.62-.22C5.5 16.1 2 12.73 2 8.61A5.42 5.42 0 0 1 7.5 3.1c1.74 0 3.35.8 4.5 2.05a6.05 6.05 0 0 1 4.5-2.05A5.42 5.42 0 0 1 22 8.61c0 4.12-3.5 7.49-9.38 12.17A1 1 0 0 1 12 21Z'/%3E%3C/svg%3E");
}

.icon-up {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a1 1 0 0 1 .7.29l6 6a1 1 0 0 1-1.4 1.42L13 7.41V19a1 1 0 1 1-2 0V7.41l-4.3 4.3a1 1 0 1 1-1.4-1.42l6-6A1 1 0 0 1 12 4Z'/%3E%3C/svg%3E");
}

.icon-prev {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.7 5.3a1 1 0 0 1 0 1.4L10.41 12l5.3 5.3a1 1 0 1 1-1.42 1.4l-6-6a1 1 0 0 1 0-1.4l6-6a1 1 0 0 1 1.42 0Z'/%3E%3C/svg%3E");
}

.icon-next {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.3 18.7a1 1 0 0 1 0-1.4l5.29-5.3-5.3-5.3a1 1 0 0 1 1.42-1.4l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.42 0Z'/%3E%3C/svg%3E");
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 900px;
  margin: 2rem 0 0;
}

.hero-meta div,
.fact-grid article,
.character-card,
.guide-panel,
.analysis-grid article,
.timeline article,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.hero-meta div:hover,
.fact-grid article:hover,
.character-card:hover,
.guide-panel:hover,
.analysis-grid article:hover,
.timeline article:hover,
.faq-list details:hover,
.content-main:hover,
.content-cards article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 179, 0, 0.55);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 45, 22, 0.18);
}

.hero-meta div {
  padding: 0.85rem;
}

.hero-meta dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-meta dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5.6rem 0;
  animation: fade-up 560ms ease both;
  scroll-margin-top: 92px;
}

.hero,
.cta,
.friend-links {
  scroll-margin-top: 92px;
}

.section.compact {
  padding-top: 2rem;
}

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

.media-text {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.55rem;
}

.media-text figure,
.gallery-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.media-text figure:hover,
.gallery-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 212, 250, 0.75);
  box-shadow: 0 24px 70px rgba(15, 45, 22, 0.18);
}

.media-text img,
.guide-panel img,
.gallery-frame img {
  width: 100%;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
}

.media-text figure:hover img,
.guide-panel:hover img,
.gallery-frame:hover img,
.content-main:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.02);
}

.copy {
  display: grid;
  gap: 1rem;
}

.fact-grid,
.character-grid,
.guide-grid,
.analysis-grid,
.content-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.fact-grid article,
.character-card,
.analysis-grid article,
.content-cards article {
  padding: 1.2rem;
}

.fact-grid h3,
.character-card h3,
.analysis-grid h3,
.guide-panel h3,
.content-cards h3,
.content-main h3 {
  margin-bottom: 0.55rem;
}

.game-content {
  padding-top: 4.4rem;
}

.content-showcase {
  display: grid;
  gap: 1rem;
}

.content-main,
.content-cards article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.content-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem;
  align-items: center;
  overflow: hidden;
}

.content-main img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
}

.content-main div {
  padding: 1.3rem 1.3rem 1.3rem 0;
}

.content-main p + p {
  margin-top: 0.8rem;
}

.feature-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.feature-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(15, 45, 22, 0.08);
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card.active,
.feature-card:hover {
  background: #fff;
  border-color: rgba(255, 179, 0, 0.72);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(15, 45, 22, 0.14);
}

.tagline {
  color: var(--pink);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

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

.guide-panel {
  overflow: hidden;
}

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

.guide-panel h3,
.guide-panel p {
  padding-inline: 1.1rem;
}

.guide-panel h3 {
  padding-top: 1rem;
}

.guide-panel p {
  padding-bottom: 1.2rem;
}

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

.gallery-shell {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 1rem;
  align-items: center;
}

.gallery-frame img {
  aspect-ratio: 16 / 9;
}

.gallery-frame figcaption {
  padding: 0 1rem 1rem;
}

.gallery-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gallery-btn:hover,
.gallery-btn:focus-visible {
  background: var(--yellow);
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(15, 45, 22, 0.18);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  padding: 1.2rem;
  border-left: 5px solid var(--yellow);
}

.timeline time {
  color: var(--muted);
  font-weight: 800;
}

.timeline ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.timeline li + li {
  margin-top: 0.35rem;
}

.update-note {
  margin-top: 0.8rem;
  color: var(--ink);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  transition: color 180ms ease;
}

.faq-list summary:hover,
.faq-list summary:focus-visible {
  color: #1d6b36;
}

.faq-list p {
  margin-top: 0.7rem;
}

.cta {
  width: min(1180px, calc(100% - 32px));
  margin: 1rem auto 5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--green);
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.cta h2 {
  color: #fff;
}

.cta p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 0.55rem;
}

.friend-links {
  background: var(--bg);
  padding: 3.8rem 1rem 4.2rem;
  text-align: center;
  animation: fade-up 560ms ease both;
}

.friend-links h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin-bottom: 1.45rem;
}

.friend-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.friend-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 800;
  border: 1px solid rgba(30, 56, 36, 0.08);
  box-shadow: 0 8px 22px rgba(15, 45, 22, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.friend-link-list a:hover,
.friend-link-list a:focus-visible {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 45, 22, 0.14);
}

.site-footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.82);
  padding: 2rem max(16px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  max-width: 760px;
  margin-top: 0.45rem;
}

.site-footer a {
  color: var(--yellow);
  font-weight: 800;
  white-space: nowrap;
}

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

  .section,
  .hero,
  .cta,
  .friend-links {
    scroll-margin-top: 86px;
  }

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

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-meta,
  .fact-grid,
  .character-grid,
  .guide-grid,
  .analysis-grid,
  .content-cards,
  .content-main,
  .media-text,
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .content-main div {
    padding: 0 1.1rem 1.2rem;
  }

  .content-main img {
    min-height: 260px;
  }

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

  .gallery-btn {
    display: none;
  }

  .cta,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding: 7rem 0 2.4rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .section {
    padding: 3.6rem 0;
  }

  .cta {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
