:root {
  --sky: #4a90e2;
  --sky-soft: #dff2ff;
  --white: #fafafa;
  --gold: #ffd700;
  --amber: #ffb84d;
  --coral: #e91e63;
  --violet: #9c27b0;
  --night: #1a237e;
  --ink: #18304a;
  --muted: #5d7187;
  --paper: rgba(255, 255, 255, 0.86);
  --line: rgba(24, 48, 74, 0.14);
  --shadow: 0 18px 45px rgba(19, 47, 88, 0.16);
  --radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fafeff 0%, #e4f5ff 16%, #fafafa 30%, #fff6c9 46%, #ffe9f0 62%, #e91e63 78%, #9c27b0 89%, #1a237e 100%);
  line-height: 1.75;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(120deg, rgba(74, 144, 226, 0.24), rgba(255, 215, 0, 0.14) 38%, rgba(233, 30, 99, 0.13) 68%, rgba(26, 35, 126, 0.32)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 88px);
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--night);
  color: #fff;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(250, 250, 250, 0.78);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(20, 48, 82, 0.12);
  background: rgba(250, 250, 250, 0.93);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #15325a;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  object-fit: cover;
  background: #fafafa;
  box-shadow: 0 5px 12px rgba(20, 48, 82, 0.14);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: #294969;
  font-size: 15px;
  font-weight: 650;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(74, 144, 226, 0.12);
  color: #102e55;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #18304a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #102447;
  background: linear-gradient(135deg, #ffe875, var(--gold) 54%, #ffb84d);
  box-shadow: 0 10px 24px rgba(255, 184, 77, 0.32);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(255, 184, 77, 0.4);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: stretch;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 18px;
  z-index: -2;
  overflow: hidden;
  border: 16px solid rgba(116, 76, 38, 0.54);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    inset 0 0 0 12px rgba(255, 236, 178, 0.1),
    0 28px 70px rgba(25, 48, 79, 0.24);
  background: #dff2ff;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 7px), rgba(97, 62, 34, 0.55) calc(50% - 7px) calc(50% + 7px), transparent calc(50% + 7px)),
    linear-gradient(180deg, transparent calc(50% - 7px), rgba(97, 62, 34, 0.48) calc(50% - 7px) calc(50% + 7px), transparent calc(50% + 7px)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 28%, transparent 72%, rgba(26, 20, 16, 0.18));
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(250, 250, 250, 0.06), rgba(10, 28, 56, 0.52)),
    linear-gradient(90deg, rgba(13, 39, 75, 0.24), transparent 38%, rgba(12, 34, 62, 0.18));
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.2s ease-out;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  padding: 76px 0 64px;
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  align-content: stretch;
  justify-items: center;
  gap: 24px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(10, 34, 68, 0.48);
}

.hero.window-open .hero-media {
  transform: perspective(1200px) translateY(-10px) rotateX(1.5deg);
  transition: transform 0.65s ease;
}

.hero-phrase {
  position: relative;
  z-index: 6;
  max-width: min(820px, 92vw);
  border: 0;
  padding: 0 0 14px;
  color: #fff8c7;
  background: transparent;
  font-size: clamp(25px, 5vw, 58px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 3px 24px rgba(15, 32, 62, 0.52), 0 0 18px rgba(255, 215, 0, 0.38);
  cursor: pointer;
}

.hero-phrase::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(360px, 62vw);
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.62);
}

.hero-phrase:hover::after {
  height: 4px;
}

.hero-archive {
  justify-self: stretch;
  align-self: end;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr) auto;
  gap: 10px 22px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 248, 214, 0.28) 46%, rgba(19, 43, 80, 0.3)),
    rgba(19, 43, 80, 0.22);
  box-shadow: 0 18px 44px rgba(8, 23, 51, 0.22);
  backdrop-filter: blur(8px);
}

.hero-archive::before {
  content: "";
  display: block;
  width: 42px;
  height: 30px;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  border: 1px solid rgba(255, 215, 0, 0.54);
  border-radius: 4px 4px 8px 8px;
  background:
    linear-gradient(180deg, rgba(250, 250, 250, 0.72), rgba(255, 215, 0, 0.2)),
    rgba(255, 248, 214, 0.4);
  opacity: 0.72;
}

.hero-archive .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin-right: 56px;
}

.hero-archive h1 {
  grid-column: 1;
  grid-row: 2;
}

.hero-archive .subtitle {
  grid-column: 2;
  grid-row: 1;
}

.hero-archive .intro {
  grid-column: 2;
  grid-row: 2;
}

.hero-archive .hero-actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  flex-direction: column;
  align-items: stretch;
  min-width: 138px;
}

.hero-archive .hero-meta {
  grid-column: 1 / -1;
  grid-row: 3;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fff8c7;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
}

.parallax-window h1 {
  font-size: clamp(36px, 6vw, 72px);
}

.window-cloud,
.window-tower,
.window-water,
.window-light {
  position: absolute;
  pointer-events: none;
  transition: transform 0.2s ease-out;
}

.window-cloud {
  z-index: 2;
  width: 210px;
  height: 56px;
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.58);
  filter: blur(1px);
}

.window-cloud::before,
.window-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.72);
}

.window-cloud::before {
  left: 34px;
  top: -24px;
  width: 78px;
  height: 78px;
}

.window-cloud::after {
  right: 34px;
  top: -16px;
  width: 64px;
  height: 64px;
}

.cloud-one {
  top: 12%;
  left: 8%;
  opacity: 0.62;
}

.cloud-two {
  top: 22%;
  right: 10%;
  opacity: 0.42;
  transform: scale(0.84);
}

.window-tower {
  z-index: 1;
  right: 18%;
  bottom: 34%;
  width: 86px;
  height: 210px;
  opacity: 0.24;
  background:
    linear-gradient(90deg, transparent 46%, rgba(250, 250, 250, 0.6) 48% 52%, transparent 54%),
    linear-gradient(62deg, transparent 47%, rgba(250, 250, 250, 0.48) 48% 52%, transparent 53%),
    linear-gradient(-62deg, transparent 47%, rgba(250, 250, 250, 0.48) 48% 52%, transparent 53%);
}

.window-water {
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 7%;
  height: 80px;
  opacity: 0.32;
  background:
    repeating-linear-gradient(0deg, rgba(250, 250, 250, 0.26) 0 2px, transparent 2px 15px),
    linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.34), transparent);
  filter: blur(0.4px);
}

.window-light {
  z-index: 3;
  inset: -18% -8%;
  background: linear-gradient(115deg, rgba(250, 250, 250, 0.36), transparent 34%, rgba(255, 215, 0, 0.16) 58%, transparent 78%);
  mix-blend-mode: screen;
}

.hero .subtitle {
  max-width: 740px;
  margin: 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 750;
}

.hero .intro {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.hero-meta li,
.pill {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.section {
  position: relative;
  padding: clamp(48px, 6vw, 82px) 0;
}

.section.tight {
  padding-top: 42px;
  padding-bottom: 56px;
}

.hero + .section {
  padding-top: clamp(34px, 4vw, 58px);
}

.section.night {
  color: rgba(255, 255, 255, 0.9);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.night .section-heading p,
.night .muted,
.night .footer-note {
  color: rgba(255, 255, 255, 0.72);
}

.summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.intro-compact {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.78fr);
}

.intro-note {
  display: grid;
  gap: 18px;
  min-height: auto;
}

.intro-note p {
  font-size: 16px;
}

.intro-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(24, 48, 74, 0.1);
  border-bottom: 1px solid rgba(24, 48, 74, 0.1);
}

.intro-points div {
  padding: 12px 14px;
  border-right: 1px solid rgba(24, 48, 74, 0.1);
}

.intro-points div:first-child {
  padding-left: 0;
}

.intro-points div:last-child {
  border-right: 0;
  padding-right: 0;
}

.intro-points strong,
.intro-points span {
  display: block;
}

.intro-points strong {
  color: #143d72;
  font-size: 15px;
}

.intro-points span {
  margin-top: 4px;
  color: #55718c;
  font-size: 14px;
  line-height: 1.55;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.08);
  color: #174b81;
  font-size: 14px;
  font-weight: 800;
}

.note,
.fact-card,
.route-card,
.guide-card,
.faq-card,
.album-card,
.link-card,
.timeline-item,
.question-card,
.version-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.note {
  padding: 26px;
}

.note h3,
.fact-card h3,
.route-card h3,
.guide-card h3,
.faq-card h3,
.album-card h3,
.question-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.note p,
.fact-card p,
.route-card p,
.guide-card p,
.faq-card p,
.album-card p,
.question-card p {
  margin: 0;
  color: #395873;
}

.fact-grid {
  display: grid;
  gap: 10px;
}

.compact-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact-card {
  padding: 16px;
}

.fact-card span {
  display: block;
  margin-bottom: 4px;
  color: #55718c;
  font-size: 13px;
  font-weight: 800;
}

.fact-card strong {
  display: block;
  font-size: 17px;
}

.feature-grid,
.guide-grid,
.page-grid,
.friend-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.mini-index-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

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

.route-card,
.guide-card,
.faq-card,
.question-card,
.link-card {
  padding: 20px;
}

.route-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.route-card img {
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: min(54%, 170px);
  max-height: 185px;
  object-fit: contain;
  filter: drop-shadow(0 16px 14px rgba(28, 63, 96, 0.18));
}

.route-card p,
.route-card h3 {
  position: relative;
  z-index: 1;
  max-width: 70%;
}

.route-card .tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.12);
  color: #1b5c9e;
  font-size: 12px;
  font-weight: 800;
}

.album-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.memory-board {
  position: relative;
  column-count: 3;
  column-gap: 22px;
  padding: 28px;
  border: 1px solid rgba(116, 76, 38, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 22%, rgba(255, 215, 0, 0.06)),
    repeating-linear-gradient(0deg, rgba(116, 76, 38, 0.14) 0 1px, transparent 1px 46px),
    linear-gradient(135deg, rgba(159, 111, 59, 0.26), rgba(255, 248, 217, 0.46));
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.16), var(--shadow);
}

.memory-board::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 215, 0, 0.34);
  border-radius: 6px;
  pointer-events: none;
}

.memory-board .album-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
}

.album-card {
  position: relative;
  padding: 10px 10px 18px;
  background: #fffef6;
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  overflow: hidden;
}

.album-card:nth-child(2n) {
  transform: rotate(1.3deg);
}

.album-card:nth-child(3n) {
  transform: rotate(-0.6deg) translateY(18px);
}

.album-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff8bd, var(--gold));
  box-shadow: 0 2px 6px rgba(88, 52, 18, 0.28);
}

.album-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  transform: translateX(-120%) rotate(18deg);
  background: linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.54), transparent 58%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.album-card:hover {
  transform: rotate(0deg) translateY(-6px);
  filter: saturate(1.06);
}

.album-card:hover::after {
  transform: translateX(110%) rotate(18deg);
}

.album-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.album-card h3,
.album-card p {
  padding: 0 8px;
}

.album-card h3 {
  margin-top: 14px;
}

.album-date {
  display: inline-flex;
  margin: 12px 8px 8px;
  padding: 4px 9px;
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 999px;
  color: #1b5c9e;
  background: rgba(74, 144, 226, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.text-polaroid {
  min-height: 220px;
  padding-top: 22px;
  background:
    linear-gradient(180deg, #fffef8, #fff7d7),
    #fffef6;
}

.text-polaroid h3 {
  color: #122f55;
}

.island-character-map {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.62fr);
  gap: 24px;
  align-items: stretch;
}

.island-map-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 215, 0, 0.22), transparent 30%),
    rgba(250, 250, 250, 0.4);
  box-shadow: var(--shadow);
}

.island-map-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 2;
  border: 2px dashed rgba(255, 215, 0, 0.64);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}

.island-map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 52% 52%, rgba(255, 248, 210, 0.26), transparent 38%),
    linear-gradient(180deg, rgba(250, 250, 250, 0.05), rgba(26, 35, 126, 0.54));
  pointer-events: none;
}

.island-map-stage > img {
  width: 100%;
  height: 590px;
  object-fit: cover;
  filter: saturate(1.08) brightness(1.08);
}

.landmark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  min-width: 98px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  padding: 8px 10px;
  color: #11355e;
  background: rgba(250, 250, 250, 0.86);
  box-shadow: 0 10px 26px rgba(18, 42, 79, 0.18);
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.landmark::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
  background: inherit;
}

.landmark span {
  display: block;
  color: #567089;
  font-size: 12px;
  font-weight: 800;
}

.landmark:hover,
.landmark.is-active {
  border-color: rgba(255, 215, 0, 0.9);
  background: linear-gradient(135deg, #fffef8, #fff0a8);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2), 0 16px 32px rgba(18, 42, 79, 0.2);
}

.character-focus {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(250, 250, 250, 0.84), rgba(255, 247, 204, 0.76) 55%, rgba(233, 30, 99, 0.16)),
    rgba(250, 250, 250, 0.68);
  box-shadow: var(--shadow);
}

.character-focus::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: 6px;
  pointer-events: none;
}

.character-focus img {
  width: min(72%, 240px);
  height: 300px;
  margin: 8px auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(35, 64, 97, 0.2));
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.character-focus.is-switching img {
  opacity: 0.2;
  transform: translateY(10px);
}

.character-focus .tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1b5c9e;
  background: rgba(74, 144, 226, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.character-focus h3 {
  margin: 0 0 12px;
  color: #122f55;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.15;
}

.character-focus p {
  margin: 0;
  color: #395873;
}

.version-list {
  display: grid;
  gap: 12px;
}

.version-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
}

.version-row strong {
  color: #143d72;
}

.version-row span {
  color: #65758a;
  font-size: 14px;
}

.route-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow);
}

.route-map > img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: saturate(1.08) brightness(1.05);
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 12%, rgba(250, 250, 250, 0.08) 42%, rgba(18, 43, 80, 0.64));
}

.map-chip {
  min-height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}

.map-chip strong {
  display: block;
  color: #122f55;
}

.map-chip span {
  color: #506a84;
  font-size: 14px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 16px 18px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details.faq-card {
  padding: 0;
  overflow: hidden;
}

details.faq-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

details.faq-card summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.12);
  color: #1b5c9e;
  font-weight: 900;
}

details.faq-card[open] summary::after {
  content: "-";
}

details.faq-card p {
  margin: 0;
  padding: 0 20px 20px;
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
}

.page-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 51, 90, 0.18), rgba(14, 34, 67, 0.72));
}

.page-hero .container {
  padding: 96px 0 62px;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-meta li {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

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

.article-flow {
  display: grid;
  gap: 22px;
}

.article-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.article-block h2,
.article-block h3 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.article-block p,
.article-block li {
  color: #395873;
}

.article-block p {
  margin: 0 0 12px;
}

.article-block p:last-child {
  margin-bottom: 0;
}

.article-block ul,
.article-block ol {
  margin: 0;
  padding-left: 1.35em;
}

.side-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
}

.side-panel .note,
.side-panel .fact-card {
  box-shadow: 0 12px 28px rgba(19, 47, 88, 0.12);
}

.table-like {
  display: grid;
  gap: 10px;
}

.table-like div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(24, 48, 74, 0.1);
}

.table-like div:last-child {
  border-bottom: 0;
}

.table-like dt {
  margin: 0;
  color: #587089;
  font-weight: 800;
}

.table-like dd {
  margin: 0;
  color: #274962;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  box-shadow: none;
}

.timeline-item time {
  color: #1b5c9e;
  font-weight: 900;
}

.notice {
  border-left: 4px solid var(--gold);
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(255, 248, 211, 0.82);
  color: #4d4a2b;
}

.site-footer {
  padding: 54px 0 36px;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, rgba(26, 35, 126, 0.94), #0f164a);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.8fr);
  gap: 34px;
}

.footer-links,
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.footer-links a,
.friend-links a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.friend-links a:hover,
.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.footer-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #123864;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.not-found {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 72px 0;
}

.not-found-box {
  width: min(720px, calc(100% - 32px));
  padding: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-box h1 {
  margin: 0;
  font-size: clamp(54px, 12vw, 118px);
  color: #1b5c9e;
  line-height: 1;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    background: rgba(250, 250, 250, 0.98);
    box-shadow: 0 16px 30px rgba(18, 43, 80, 0.16);
  }

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

  .nav-list {
    display: grid;
    gap: 6px;
  }

  .nav-list a {
    min-height: 46px;
    justify-content: center;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media {
    inset: 10px;
    border-width: 8px;
  }

  .hero-content {
    padding-top: 108px;
    padding-bottom: 58px;
    gap: 34px;
  }

  .section-heading,
  .summary-panel,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .memory-board {
    column-count: 2;
  }

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

  .intro-points div,
  .intro-points div:first-child,
  .intro-points div:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(24, 48, 74, 0.1);
  }

  .intro-points div:last-child {
    border-bottom: 0;
  }

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

  .character-focus {
    min-height: auto;
  }

  .version-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .container,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 15px;
  }

  .hero {
    min-height: 760px;
  }

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

  .hero-content {
    align-content: end;
    padding-top: 78px;
    padding-bottom: 48px;
  }

  .hero-archive {
    display: block;
    padding: 18px;
  }

  .hero-archive::before {
    float: right;
    margin-left: 12px;
  }

  .hero-archive .eyebrow,
  .hero-archive h1,
  .hero-archive .subtitle,
  .hero-archive .intro,
  .hero-archive .hero-actions,
  .hero-archive .hero-meta {
    display: revert;
  }

  .hero-archive .hero-actions {
    margin-top: 24px;
  }

  .hero-archive .hero-meta {
    margin-top: 24px;
  }

  .parallax-window h1,
  .page-hero h1 {
    font-size: clamp(40px, 14vw, 62px);
  }

  .hero-phrase {
    font-size: clamp(24px, 8vw, 38px);
  }

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

  .hero-actions,
  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .btn.secondary {
    width: 100%;
  }

  .content-grid,
  .feature-grid,
  .guide-grid,
  .page-grid,
  .friend-grid,
  .album-grid,
  .map-overlay {
    grid-template-columns: 1fr;
  }

  .memory-board {
    column-count: 1;
    padding: 18px;
  }

  .compact-facts {
    grid-template-columns: 1fr;
  }

  .album-card:nth-child(3n) {
    transform: rotate(-0.6deg);
  }

  .island-map-stage,
  .island-map-stage > img {
    min-height: 650px;
    height: 650px;
  }

  .landmark {
    min-width: 84px;
    padding: 7px 8px;
    font-size: 13px;
  }

  .landmark span {
    font-size: 11px;
  }

  .character-focus img {
    height: 230px;
  }

  .route-card {
    min-height: 245px;
  }

  .route-card p,
  .route-card h3 {
    max-width: 72%;
  }

  .route-map,
  .route-map > img {
    min-height: 680px;
    height: 680px;
  }

  .table-like div,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .article-block,
  .note {
    padding: 20px;
  }
}

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

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

/* Whitehat protocol additions. Existing site styles remain unchanged. */
.my-news-home, .my-news-page { --my-news-surface: var(--paper, rgba(255, 255, 255, 0.86)); --my-news-text: var(--ink, #18304a); --my-news-muted: var(--muted, #5d7187); --my-news-accent: var(--coral, #e91e63); --my-news-line: var(--line, rgba(24, 48, 74, 0.14)); }
.my-news-home { width: 100%; padding: 26px 16px 42px; color: var(--my-news-text); }
.my-news-home .my-news-shell, .my-news-page .my-news-shell { width: min(var(--container, var(--max, 1180px)), calc(100% - 0px)); margin: 0 auto; }
.my-news-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--my-news-line); }
.my-news-kicker { margin: 0 0 3px; color: var(--my-news-accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.my-news-heading h2, .my-news-page h1, .my-news-page h2, .my-news-card h2, .my-news-card h3 { color: var(--my-news-text); }
.my-news-heading h2 { margin: 0; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; }
.my-news-all-link, .my-news-card a, .my-news-back { display: inline-flex; align-items: center; width: fit-content; color: var(--my-news-text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--my-news-accent); }
.my-news-all-link:hover, .my-news-card a:hover, .my-news-back:hover { color: var(--my-news-accent); }
.my-news-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.my-news-card { display: flex; flex-direction: column; min-width: 0; min-height: 196px; padding: 20px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-card h2, .my-news-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.my-news-card time { display: block; margin: 10px 0 0; color: var(--my-news-muted); font-size: .86rem; }
.my-news-card p { margin: 10px 0 16px; color: var(--my-news-muted); }
.my-news-card a { margin-top: auto; }
.my-news-empty { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--my-news-muted); background: var(--my-news-surface); border: 1px dashed var(--my-news-line); border-radius: var(--radius, 8px); }
.my-news-page { min-height: 100vh; padding: 44px 16px 64px; color: var(--my-news-text); }
.my-news-page .my-news-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; color: var(--my-news-muted); }
.my-news-page .my-news-brand { margin: 0; color: var(--my-news-muted); font-size: .93rem; }
.my-news-page .my-news-intro { max-width: 760px; margin: 0 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-detail { max-width: 820px; padding: clamp(22px, 5vw, 44px); color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-page .my-news-detail h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.22; }
.my-news-page .my-news-detail time { display: block; margin: 16px 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-summary { margin: 0 0 20px; color: var(--my-news-muted); font-size: 1.05rem; }
.my-news-page .my-news-content { margin: 0; color: var(--my-news-text); white-space: pre-wrap; }
.my-news-page .my-news-footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.my-friend-link { color: inherit; }
.download-confirm-backdrop { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.64); }
.download-confirm-panel { width: min(460px, 100%); padding: 24px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 24px 70px rgba(0,0,0,.35)); }
.download-confirm-panel h2 { margin: 0 0 10px; color: var(--my-news-text); font-size: 1.3rem; }
.download-confirm-panel p { margin: 0; color: var(--my-news-muted); }
.download-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.download-confirm-actions button { min-height: 40px; padding: 0 16px; font: inherit; font-weight: 700; color: var(--my-news-text); background: transparent; border: 1px solid var(--my-news-line); border-radius: 6px; cursor: pointer; }
.download-confirm-actions .download-confirm-primary { color: #1b140c; background: var(--my-news-accent); border-color: var(--my-news-accent); }
@media (max-width: 640px) { .my-news-home { padding-inline: 12px; } .my-news-heading, .my-news-page .my-news-topbar { align-items: flex-start; flex-direction: column; } .my-news-page { padding: 26px 12px 44px; } .my-news-card { min-height: 0; } }
/* Keep the download confirmation viewport-centered and high contrast. */
.download-confirm-backdrop{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;margin:0!important;z-index:2147483000!important;display:grid!important;place-items:center!important;padding:18px!important;box-sizing:border-box!important;background:rgba(0,0,0,.84)!important;isolation:isolate!important}.download-confirm-panel{width:min(460px,100%)!important;max-height:calc(100vh - 36px)!important;overflow:auto!important;margin:auto!important;box-sizing:border-box!important;color:#f8fafc!important;background:#111827!important;border:1px solid #64748b!important;border-radius:12px!important;box-shadow:0 24px 70px rgba(0,0,0,.7)!important}.download-confirm-panel h2{color:#fff!important}.download-confirm-panel p{color:#e2e8f0!important}.download-confirm-actions button{color:#f8fafc!important;background:#1e293b!important;border-color:#94a3b8!important}.download-confirm-actions .download-confirm-primary{color:#fff!important;background:#2563eb!important;border-color:#60a5fa!important}
