/* Author: VIVI x Codex */
:root {
  --font-ui: "Manrope", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", serif;
  --font-display: "Cormorant Garamond", "Source Han Serif SC", serif;
  --font-tech: "Space Grotesk", "Manrope", "PingFang SC", sans-serif;
  --font-story: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-readable: "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-dark-title: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-dark-ui: "Manrope", "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: #f5efe4;
  background: #0d0e13;
}

body::selection {
  background: rgba(255, 224, 177, 0.24);
}

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

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.06) 0 0.8px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 0 0.9px, transparent 1.1px);
  background-size: 28px 28px, 36px 36px, 44px 44px;
}

.page-home::before,
.page-home::after,
.world-page::before,
.world-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.eyebrow,
.section-tag,
.card-index,
.signal-label,
.nav-mark {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 700;
}

.page-home {
  background:
    radial-gradient(circle at top, rgba(210, 98, 68, 0.28), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(145, 162, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #101018 0%, #0b0c11 100%);
  transition: background 320ms var(--ease-smooth);
}

.page-home::before {
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 244, 216, 0.12), transparent 12%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}

.page-home::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 48px;
  mix-blend-mode: screen;
  opacity: 0.18;
}

.page-home[data-preview="dark"] {
  background:
    radial-gradient(circle at top, rgba(53, 240, 255, 0.24), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 78, 201, 0.16), transparent 22%),
    linear-gradient(180deg, #04050a 0%, #13060f 100%);
}

.page-home[data-preview="light"] {
  background:
    radial-gradient(circle at top, rgba(245, 211, 152, 0.3), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(176, 219, 199, 0.22), transparent 24%),
    linear-gradient(180deg, #19201e 0%, #101512 100%);
}

.home-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 80px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: end;
  padding: 24px 0 72px;
}

.home-hero h1,
.world-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(54px, 10vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.home-hero h1 {
  max-width: 11ch;
}

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

.page-home .home-hero h1,
.page-home .signal-copy h2,
.page-home .compare-copy h2 {
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
  font-weight: 600;
}

.page-home .hero-copy,
.page-home .signal-line,
.page-home .compare-card strong {
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
}

.hero-copy,
.world-intro,
.world-subhead,
.signal-line,
.quote-text,
.scene-copy,
.closing-copy,
.atmosphere-text {
  font-family: var(--font-serif);
}

.hero-copy {
  width: min(720px, 100%);
  margin: 24px 0 0;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.9;
  color: rgba(245, 239, 228, 0.82);
}

.hero-divider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(860px, 100%);
  margin-top: 24px;
}

.hero-divider span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.7);
  backdrop-filter: blur(14px);
}

.hero-divider span:first-child {
  background:
    linear-gradient(90deg, rgba(81, 234, 255, 0.1), rgba(255, 70, 195, 0.05)),
    rgba(255, 255, 255, 0.03);
}

.hero-divider span:last-child {
  justify-content: flex-end;
  background:
    linear-gradient(90deg, rgba(232, 188, 116, 0.1), rgba(142, 181, 114, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.fork-panel {
  position: relative;
  min-height: 520px;
  padding: 26px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(11, 12, 18, 0.54);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.fork-panel::before,
.fork-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fork-panel::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04)),
    linear-gradient(90deg, rgba(88, 244, 255, 0.08), transparent 45%, rgba(232, 188, 116, 0.08));
}

.fork-panel::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 38px;
  opacity: 0.3;
}

.fork-label {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.64);
}

.fork-axis {
  position: absolute;
  top: 74px;
  bottom: 28px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  transform: translateX(-50%);
}

.fork-branch {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(82%, 320px);
  min-height: 176px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 240ms var(--ease-smooth),
    border-color 240ms var(--ease-smooth),
    box-shadow 240ms var(--ease-smooth);
}

.fork-branch:hover {
  transform: translateY(-4px);
}

.fork-branch-dark {
  margin-right: auto;
  background:
    linear-gradient(180deg, rgba(74, 242, 255, 0.1), rgba(255, 71, 200, 0.04)),
    rgba(10, 13, 22, 0.86);
  box-shadow: 0 0 36px rgba(45, 201, 255, 0.08);
}

.fork-branch-light {
  margin-top: 112px;
  margin-left: auto;
  background:
    linear-gradient(180deg, rgba(255, 252, 243, 0.78), rgba(246, 235, 204, 0.58)),
    rgba(255, 255, 255, 0.36);
  box-shadow: 0 18px 38px rgba(131, 155, 97, 0.12);
}

.fork-branch-index {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fork-branch strong {
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.28;
  font-weight: 600;
}

.fork-branch em {
  margin-top: auto;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.76;
}

.fork-branch-dark .fork-branch-index,
.fork-branch-dark em {
  color: #94f8ff;
}

.fork-branch-light .fork-branch-index,
.fork-branch-light em {
  color: #657e41;
}

.fork-branch-light strong {
  color: #3f3117;
}

.home-actions,
.hero-actions,
.closing-actions,
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button-primary,
.button-ghost,
.world-link,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 220ms var(--ease-smooth),
    background-color 220ms var(--ease-smooth),
    border-color 220ms var(--ease-smooth),
    color 220ms var(--ease-smooth),
    box-shadow 220ms var(--ease-smooth);
}

.button-primary {
  color: #130d08;
  background: linear-gradient(135deg, #f7d8a5, #d9a16e);
}

.button-ghost,
.nav-link {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.button-primary:hover,
.button-ghost:hover,
.world-link:hover,
.nav-link:hover {
  transform: translateY(-2px);
}

.signal-panel,
.compare-panel {
  display: grid;
  gap: 28px;
  align-items: end;
  margin: 20px 0 48px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.signal-panel {
  grid-template-columns: 1.4fr 1fr;
  position: relative;
}

.signal-copy h2,
.compare-copy h2,
.section-heading h2,
.scene-heading h2,
.closing-panel h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.08;
  text-wrap: pretty;
}

.signal-console {
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(10, 12, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.signal-line {
  margin: 28px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.85;
  color: rgba(249, 243, 234, 0.92);
}

.world-grid,
.compare-grid,
.rights-grid,
.scene-grid,
.story-grid,
.ambient-grid {
  display: grid;
  gap: 22px;
}

.world-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 44px 0;
}

.world-card,
.compare-card,
.story-card,
.rights-card,
.atmosphere-card,
.closing-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.world-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  min-height: 460px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.world-grid .world-card:first-child {
  margin-top: 8px;
}

.world-grid .world-card:last-child {
  margin-top: 34px;
}

.world-card-dark {
  background:
    linear-gradient(180deg, rgba(113, 245, 255, 0.12), rgba(255, 77, 199, 0.04)),
    linear-gradient(140deg, rgba(7, 11, 22, 0.94), rgba(22, 16, 31, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(111, 245, 255, 0.12),
    0 0 60px rgba(33, 215, 255, 0.08);
}

.world-card-light {
  color: #fff7ed;
  background:
    radial-gradient(circle at top, rgba(252, 238, 199, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(117, 160, 111, 0.4), rgba(225, 174, 104, 0.18) 42%, rgba(41, 67, 58, 0.7) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 219, 0.14),
    0 30px 70px rgba(65, 95, 63, 0.22);
}

.world-card::before,
.story-card::before,
.atmosphere-card::before,
.closing-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -20% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.5;
}

.world-card-dark::before,
.story-card.dark-scene::before,
.atmosphere-card.dark-note::before,
.closing-panel.dark-end::before {
  background: radial-gradient(circle, rgba(84, 239, 255, 0.46), transparent 65%);
}

.world-card-light::before,
.story-card.light-scene::before,
.atmosphere-card.light-note::before,
.closing-panel.light-end::before {
  background: radial-gradient(circle, rgba(232, 188, 116, 0.55), transparent 65%);
}

.world-card h2 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
}

.world-card-dark h2,
.world-card-dark .world-subhead,
.world-card-dark .world-quote {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
}

.world-card-light h2,
.world-card-light .world-subhead,
.world-card-light .world-quote {
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
}

.world-subhead {
  width: min(28ch, 100%);
  font-size: 22px;
  line-height: 1.7;
  color: rgba(247, 239, 230, 0.86);
}

.world-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 239, 230, 0.72);
}

.world-points li + li {
  margin-top: 14px;
}

.world-quote {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.8;
}

.world-link {
  align-self: flex-start;
  margin-top: auto;
  min-width: 172px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.compare-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.compare-grid .compare-card:first-child {
  margin-top: 18px;
}

.compare-card span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.compare-card strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
}

.world-page {
  position: relative;
  overflow-x: hidden;
}

.world-page.dark-mode {
  color: #f4eee3;
  background:
    radial-gradient(circle at 20% 10%, rgba(41, 232, 255, 0.18), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(255, 71, 200, 0.18), transparent 22%),
    linear-gradient(180deg, #04050a 0%, #07111a 34%, #100b18 68%, #14060f 100%);
}

.world-page.dark-mode::before {
  background:
    linear-gradient(transparent 0%, rgba(67, 255, 249, 0.03) 48%, transparent 100%),
    linear-gradient(90deg, rgba(255, 0, 170, 0.05), transparent 25%, transparent 75%, rgba(63, 245, 255, 0.05));
  mix-blend-mode: screen;
}

.world-page.dark-mode::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 242, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 3px, 64px 100%;
  opacity: 0.2;
}

.world-page.light-mode {
  color: #262117;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 234, 173, 0.86), transparent 24%),
    radial-gradient(circle at 16% 18%, rgba(166, 221, 204, 0.54), transparent 26%),
    linear-gradient(180deg, #b9d9ec 0%, #f6efcf 34%, #b8d79a 68%, #f4efdc 100%);
}

.world-page.light-mode::before {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.4), transparent 14%),
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.28), transparent 12%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 38%);
}

.world-page.light-mode::after {
  background:
    radial-gradient(circle at 20% 86%, rgba(111, 158, 84, 0.14), transparent 14%),
    radial-gradient(circle at 72% 88%, rgba(255, 236, 182, 0.18), transparent 18%);
  opacity: 0.8;
}

.light-mode .grain {
  opacity: 0.12;
}

.world-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.world-nav {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 11, 17, 0.56);
  backdrop-filter: blur(20px);
}

.dark-mode .world-nav {
  border-color: rgba(95, 241, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(5, 11, 20, 0.9), rgba(20, 9, 28, 0.72)),
    rgba(9, 11, 17, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(255, 75, 197, 0.08),
    0 0 32px rgba(36, 217, 255, 0.12);
}

.light-mode .world-nav {
  color: #2d261a;
  border-color: rgba(121, 141, 86, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 243, 0.86), rgba(248, 239, 218, 0.72)),
    rgba(249, 243, 232, 0.74);
  box-shadow: 0 16px 40px rgba(128, 144, 94, 0.12);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-brand strong {
  font-size: 15px;
}

.world-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: end;
  min-height: calc(100vh - 112px);
  padding: 42px 0 38px;
}

.dark-mode .eyebrow,
.dark-mode .section-tag,
.dark-mode .nav-mark,
.dark-mode .signal-label {
  font-family: var(--font-dark-ui);
  color: #79f6ff;
  text-shadow: 0 0 12px rgba(61, 233, 255, 0.34);
}

.light-mode .eyebrow,
.light-mode .section-tag,
.light-mode .nav-mark,
.light-mode .signal-label {
  color: #688245;
}

.dark-mode .world-hero h1,
.dark-mode .section-heading h2,
.dark-mode .scene-heading h2,
.dark-mode .closing-panel h2,
.dark-mode .world-card h2,
.dark-mode .story-card h3,
.dark-mode .rights-card h3,
.dark-mode .atmosphere-card h3 {
  font-family: var(--font-dark-title);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.dark-mode .world-hero h1 {
  max-width: 9ch;
}

.light-mode .world-hero h1,
.light-mode .section-heading h2,
.light-mode .scene-heading h2,
.light-mode .closing-panel h2,
.light-mode .world-card h2,
.light-mode .story-card h3,
.light-mode .rights-card h3,
.light-mode .atmosphere-card h3 {
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.light-mode .world-hero h1 {
  max-width: 10ch;
}

.world-intro {
  width: min(33ch, 100%);
  margin: 26px 0 0;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.82;
  color: inherit;
  opacity: 0.84;
}

.dark-mode .world-intro,
.dark-mode .scene-copy,
.dark-mode .closing-copy,
.dark-mode .atmosphere-text,
.dark-mode .echo-quote,
.dark-mode .echo-copy,
.dark-mode .quote-note,
.dark-mode .world-subhead {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  color: rgba(233, 244, 255, 0.82);
}

.dark-mode .echo-quote {
  font-family: var(--font-dark-title);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.22;
  color: #d6deed;
}

.dark-mode .echo-copy {
  max-width: 28ch;
  color: rgba(214, 222, 237, 0.78);
}

.light-mode .world-intro,
.light-mode .atmosphere-text,
.light-mode .world-subhead,
.light-mode .story-quote {
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
  color: rgba(58, 47, 23, 0.82);
}

.light-mode .scene-copy,
.light-mode .closing-copy,
.light-mode .quote-note,
.light-mode .rights-card p,
.light-mode .scene-fragments li,
.light-mode .world-points,
.light-mode .scene-status,
.light-mode .narrative-index {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  color: rgba(67, 55, 30, 0.78);
}

.quote-monitor,
.atmosphere-monitor {
  position: relative;
  min-height: 420px;
  padding: 28px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(14, 15, 22, 0.46);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dark-mode .quote-monitor,
.dark-mode .atmosphere-monitor {
  border-color: rgba(92, 244, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(73, 224, 255, 0.1), rgba(255, 69, 195, 0.04)),
    linear-gradient(180deg, rgba(5, 8, 18, 0.92), rgba(15, 8, 21, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(91, 241, 255, 0.06),
    0 0 40px rgba(32, 185, 255, 0.1);
  border-radius: 22px;
}

.light-mode .quote-monitor,
.light-mode .atmosphere-monitor {
  border-color: rgba(121, 141, 86, 0.14);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.64), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 238, 0.8), rgba(245, 235, 211, 0.66)),
    rgba(248, 243, 232, 0.72);
  box-shadow: 0 24px 60px rgba(121, 141, 86, 0.1);
}

.dark-console::before,
.storybook-monitor::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dark-console::before {
  inset: 14px;
  border-radius: 28px;
  border: 1px solid rgba(114, 245, 255, 0.18);
  background:
    linear-gradient(transparent 92%, rgba(90, 243, 255, 0.1) 100%),
    linear-gradient(90deg, rgba(88, 244, 255, 0.06), transparent 28%, transparent 72%, rgba(255, 70, 202, 0.06));
}

.storybook-monitor::before {
  inset: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.74), transparent 15%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.52), transparent 12%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 60%);
}

.quote-monitor::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  background: currentColor;
  opacity: 0.18;
}

.system-intrusion {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 26px;
  padding: 16px 18px;
  border: 1px solid rgba(95, 241, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(67, 242, 255, 0.08), rgba(255, 70, 203, 0.03)),
    rgba(7, 10, 18, 0.78);
  overflow: hidden;
}

.system-intrusion::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 94%, rgba(95, 241, 255, 0.09) 100%),
    linear-gradient(90deg, rgba(95, 241, 255, 0.05), transparent 34%, transparent 72%, rgba(255, 70, 203, 0.05));
  pointer-events: none;
}

.intrusion-mark,
.intrusion-state {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #95fbff;
}

.intrusion-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(222, 240, 255, 0.86);
}

.quote-text {
  margin: 24px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.4;
  text-wrap: pretty;
}

.dark-mode .quote-text {
  font-family: var(--font-mono), "Noto Sans SC", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #c7fbff;
  text-shadow: 0 0 24px rgba(70, 228, 255, 0.2);
}

.light-mode .quote-text {
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
  font-weight: 600;
  color: #3f3418;
}

.quote-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: inherit;
  opacity: 0.62;
}

.section-block {
  padding: 42px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: end;
}

.section-heading p,
.scene-copy,
.closing-copy,
.atmosphere-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.82;
  opacity: 0.82;
}

.section-heading > p {
  max-width: 38ch;
}

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

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

.light-path .narrative-step:nth-child(2),
.light-path .narrative-step:nth-child(4) {
  margin-top: 26px;
}

.dark-path .narrative-step:nth-child(2),
.dark-path .narrative-step:nth-child(4) {
  margin-top: 18px;
}

.narrative-step {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 360px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dark-path .narrative-step {
  background:
    linear-gradient(180deg, rgba(74, 243, 255, 0.08), rgba(255, 76, 196, 0.03)),
    rgba(7, 10, 18, 0.78);
  border-color: rgba(86, 243, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 36px rgba(35, 200, 255, 0.05);
  border-radius: 20px;
}

.light-path .narrative-step {
  background:
    linear-gradient(180deg, rgba(255, 252, 243, 0.8), rgba(242, 232, 199, 0.66)),
    rgba(255, 255, 255, 0.52);
  border-color: rgba(121, 141, 86, 0.14);
  box-shadow: 0 20px 44px rgba(126, 151, 97, 0.08);
  border-radius: 34px;
}

.light-mode .story-grid .story-card:nth-child(2),
.light-mode .ambient-grid .atmosphere-card:nth-child(2) {
  transform: translateY(20px);
}

.narrative-index {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}

.narrative-step h3 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.04;
}

.dark-mode .narrative-step h3 {
  font-family: var(--font-dark-title);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.light-mode .narrative-step h3 {
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
  font-weight: 600;
  color: #43361e;
}

.narrative-step p {
  margin: 0;
  max-width: 24ch;
  line-height: 1.84;
  opacity: 0.84;
}

.story-quote {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.84;
  max-width: 24ch;
}

.light-mode .story-quote {
  border-top-color: rgba(121, 141, 86, 0.12);
}

.full-height {
  min-height: 100%;
}

.story-card,
.atmosphere-card {
  padding: 26px;
  min-height: 320px;
}

.story-card {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .story-card,
.dark-mode .atmosphere-card,
.dark-mode .rights-card,
.dark-mode .closing-panel,
.dark-mode .scene-terminal {
  border-color: rgba(86, 243, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(67, 242, 255, 0.06), rgba(255, 70, 203, 0.03)),
    rgba(7, 10, 18, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 36px rgba(35, 200, 255, 0.06);
  border-radius: 22px;
}

.light-mode .story-card,
.light-mode .atmosphere-card,
.light-mode .rights-card,
.light-mode .closing-panel {
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.78), rgba(243, 232, 205, 0.6)),
    rgba(255, 255, 255, 0.44);
  border-color: rgba(121, 141, 86, 0.14);
  box-shadow: 0 20px 50px rgba(126, 151, 97, 0.1);
  border-radius: 34px;
}

.story-label,
.rights-card span,
.atmosphere-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
}

.light-mode .story-label,
.light-mode .rights-card span,
.light-mode .atmosphere-card span {
  background: rgba(121, 141, 86, 0.1);
}

.dark-mode .story-label,
.dark-mode .rights-card span,
.dark-mode .atmosphere-card span,
.dark-mode .scene-status,
.dark-mode .narrative-index {
  font-family: var(--font-dark-ui);
}

.story-card h3,
.rights-card h3,
.atmosphere-card h3 {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.98;
}

.dark-mode .story-card h3,
.dark-mode .atmosphere-card h3,
.dark-mode .rights-card h3 {
  color: #f6f8ff;
  text-shadow: 0 0 18px rgba(90, 242, 255, 0.08);
}

.light-mode .story-card h3,
.light-mode .atmosphere-card h3,
.light-mode .rights-card h3 {
  color: #43361e;
}

.scene-grid {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
}

.scene-stage {
  position: relative;
  min-height: 460px;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 11, 18, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  overflow: hidden;
}

.dark-mode .scene-stage {
  border-color: rgba(82, 243, 255, 0.18);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 72, 203, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(4, 8, 17, 0.92), rgba(8, 5, 17, 0.88));
}

.light-mode .scene-stage {
  border-color: rgba(121, 141, 86, 0.16);
  background:
    linear-gradient(180deg, rgba(208, 235, 247, 0.76), rgba(252, 244, 207, 0.88) 58%, rgba(130, 179, 93, 0.86) 100%);
  box-shadow: 0 28px 60px rgba(120, 155, 89, 0.18);
}

.scene-orb {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  align-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.45), transparent 18%),
    radial-gradient(circle, rgba(219, 96, 84, 0.46), rgba(31, 24, 27, 0.18) 62%, transparent 78%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 60px rgba(224, 90, 74, 0.24);
  animation: pulse 7s ease-in-out infinite;
}

.dark-mode .scene-orb {
  max-width: 240px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(113, 244, 255, 0.7), rgba(255, 66, 194, 0.28)),
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.56), transparent 18%);
  box-shadow:
    inset 0 0 0 1px rgba(239, 255, 255, 0.16),
    0 0 70px rgba(52, 219, 255, 0.26);
  backdrop-filter: blur(10px);
}

.light-mode .scene-orb {
  max-width: 200px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.64), transparent 16%),
    radial-gradient(circle, rgba(237, 188, 102, 0.48), rgba(215, 232, 210, 0.34) 62%, transparent 82%);
  box-shadow:
    0 0 0 1px rgba(38, 33, 23, 0.08),
    0 0 60px rgba(231, 192, 112, 0.24);
  margin-bottom: auto;
}

.scene-status {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.66;
}

.scene-terminal {
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.dark-mode .scene-terminal,
.dark-mode .story-card,
.dark-mode .atmosphere-card,
.dark-mode .closing-panel {
  position: relative;
}

.dark-mode .scene-terminal::after,
.dark-mode .story-card::after,
.dark-mode .atmosphere-card::after,
.dark-mode .closing-panel::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(108, 245, 255, 0), rgba(108, 245, 255, 0.7), rgba(255, 72, 199, 0.3), rgba(255, 72, 199, 0));
  opacity: 0.72;
}

.dark-mode .story-grid .story-card:nth-child(2),
.dark-mode .ambient-grid .atmosphere-card:nth-child(2) {
  transform: translateY(-14px);
}

.dark-terminal {
  background:
    linear-gradient(180deg, rgba(60, 241, 255, 0.08), rgba(255, 61, 193, 0.03)),
    rgba(6, 10, 18, 0.76);
}

.light-terminal {
  background:
    linear-gradient(180deg, rgba(255, 252, 243, 0.72), rgba(244, 232, 202, 0.56)),
    rgba(255, 255, 255, 0.42);
}

.light-mode .scene-terminal {
  border-color: rgba(121, 141, 86, 0.14);
}

.scene-heading p {
  opacity: 0.62;
}

.scene-copy {
  margin: 22px 0 0;
  max-width: 31ch;
}

.scene-fragments {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.scene-fragments li {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  line-height: 1.76;
}

.light-mode .scene-fragments li {
  border-top-color: rgba(121, 141, 86, 0.12);
}

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

.rights-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.rights-card p {
  margin: 14px 0 0;
  line-height: 1.76;
  opacity: 0.74;
}

.atmosphere-monitor {
  min-height: 210px;
  margin-bottom: 22px;
}

.breeze-band {
  position: relative;
  margin: 8px 0 10px;
  padding: 22px 26px 24px;
  border-radius: 999px;
  border: 1px solid rgba(121, 141, 86, 0.12);
  background:
    radial-gradient(circle at 14% 30%, rgba(255, 255, 255, 0.7), transparent 12%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.52), transparent 10%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.68), rgba(244, 235, 214, 0.5)),
    rgba(255, 255, 255, 0.36);
  box-shadow: 0 18px 42px rgba(134, 162, 98, 0.12);
  overflow: hidden;
}

.breeze-band::before,
.breeze-band::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  pointer-events: none;
}

.breeze-band::before {
  top: 28px;
  right: 11%;
  width: 88px;
  height: 14px;
  box-shadow:
    34px -8px 0 6px rgba(255, 255, 255, 0.44),
    92px 2px 0 0 rgba(255, 255, 255, 0.38);
}

.breeze-band::after {
  bottom: 22px;
  left: 10%;
  width: 66px;
  height: 10px;
  box-shadow:
    22px -10px 0 4px rgba(255, 255, 255, 0.42),
    76px -3px 0 2px rgba(255, 255, 255, 0.34);
}

.breeze-mark {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6c8750;
}

.breeze-copy {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  max-width: 54ch;
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.9;
  color: rgba(61, 48, 25, 0.82);
}

.atmosphere-text {
  margin-top: 18px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.68;
  max-width: 28ch;
  text-wrap: pretty;
}

.atmosphere-break {
  display: block;
  height: 0.7em;
}

.echo-quote,
.echo-copy {
  margin: 0;
}

.echo-quote {
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  font-size: clamp(24px, 2.5vw, 40px);
  line-height: 1.22;
  white-space: nowrap;
}

.echo-copy {
  max-width: 30ch;
  margin-top: 22px;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.72;
  text-wrap: pretty;
  opacity: 0.8;
}

.keep-phrase {
  white-space: nowrap;
}

.closing-panel {
  padding: 32px;
}

.closing-copy {
  width: min(52ch, 100%);
  margin-top: 18px;
}

.dark-mode .button-primary,
.dark-mode .world-link {
  color: #071116;
  background:
    linear-gradient(135deg, rgba(124, 248, 255, 0.94), rgba(255, 90, 216, 0.88)),
    rgba(255, 255, 255, 0.12);
  border-color: rgba(111, 245, 255, 0.24);
  box-shadow: 0 0 30px rgba(85, 237, 255, 0.18);
}

.dark-mode .button-ghost,
.dark-mode .nav-link {
  border-color: rgba(97, 241, 255, 0.2);
  background: rgba(5, 16, 21, 0.42);
}

.light-mode .button-primary,
.light-mode .world-link {
  color: #38290b;
  background:
    linear-gradient(135deg, #f7e39d, #d5bc7a),
    rgba(255, 255, 255, 0.56);
  border-color: rgba(172, 146, 83, 0.22);
  box-shadow: 0 16px 32px rgba(208, 181, 109, 0.24);
  border-radius: 999px;
  font-family: "Source Han Serif SC", "Noto Serif SC", serif;
  letter-spacing: 0.04em;
  text-transform: none;
}

.light-mode .button-ghost,
.light-mode .nav-link {
  border-color: rgba(121, 141, 86, 0.18);
  background: rgba(255, 251, 242, 0.46);
  border-radius: 999px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  text-transform: none;
  letter-spacing: 0.06em;
}

.dark-mode .button-primary,
.dark-mode .button-ghost,
.dark-mode .world-link,
.dark-mode .nav-link {
  border-radius: 16px;
  font-family: var(--font-dark-ui);
}

.cyber-stage::before,
.cyber-stage::after,
.meadow-stage::before,
.meadow-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.cyber-stage::before {
  bottom: 18%;
  height: 42%;
  background:
    linear-gradient(rgba(105, 241, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 241, 255, 0.16) 1px, transparent 1px);
  background-size: 100% 28px, 34px 100%;
  transform: perspective(460px) rotateX(72deg);
  transform-origin: center bottom;
  opacity: 0.56;
}

.cyber-stage::after {
  bottom: 0;
  height: 32%;
  background:
    linear-gradient(180deg, transparent, rgba(5, 7, 14, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(24, 241, 255, 0.3) 0 8px,
      transparent 8px 24px,
      rgba(255, 69, 199, 0.22) 24px 34px,
      transparent 34px 58px
    );
  clip-path: polygon(0 100%, 0 52%, 8% 64%, 14% 28%, 21% 70%, 30% 22%, 38% 68%, 45% 34%, 53% 74%, 61% 20%, 69% 66%, 77% 30%, 86% 72%, 94% 44%, 100% 62%, 100% 100%);
  opacity: 0.68;
}

.cyber-visual,
.meadow-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cyber-line {
  position: absolute;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 245, 255, 0.94), transparent);
  box-shadow: 0 0 16px rgba(113, 245, 255, 0.44);
  animation: drift-line 5.8s linear infinite;
}

.cyber-line-one {
  top: 18%;
  left: -8%;
}

.cyber-line-two {
  top: 34%;
  left: 12%;
  animation-delay: 1.4s;
}

.cyber-line-three {
  top: 54%;
  left: 36%;
  animation-delay: 2.7s;
}

.meadow-stage::before {
  top: 8%;
  left: 8%;
  right: 8%;
  height: 42%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 243, 166, 0.84), rgba(255, 209, 121, 0.46) 48%, transparent 68%);
  filter: blur(6px);
  opacity: 0.72;
}

.meadow-stage::after {
  bottom: -2%;
  height: 34%;
  background:
    radial-gradient(circle at 15% 40%, rgba(152, 190, 99, 0.88), transparent 34%),
    radial-gradient(circle at 52% 18%, rgba(120, 166, 82, 0.92), transparent 40%),
    radial-gradient(circle at 85% 38%, rgba(138, 176, 93, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(95, 146, 74, 0.24), rgba(84, 124, 58, 0.88));
  clip-path: ellipse(70% 80% at 50% 100%);
}

.cloud {
  position: absolute;
  display: block;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    38px -10px 0 8px rgba(255, 255, 255, 0.82),
    84px 0 0 2px rgba(255, 255, 255, 0.72);
  animation: float-cloud 10s ease-in-out infinite;
}

.cloud-one {
  top: 14%;
  left: 10%;
  width: 88px;
}

.cloud-two {
  top: 20%;
  right: 22%;
  width: 102px;
  animation-delay: 2s;
}

.cloud-three {
  top: 28%;
  left: 44%;
  width: 72px;
  animation-delay: 4s;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 760ms var(--ease-smooth),
    transform 760ms var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.96);
  }

  50% {
    transform: scale(1.03);
  }
}

@keyframes drift-line {
  0% {
    transform: translateX(-30px);
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(220px);
    opacity: 0;
  }
}

@keyframes float-cloud {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(8px) translateY(-6px);
  }
}

@media (max-width: 980px) {
  .home-hero,
  .signal-panel,
  .world-hero,
  .section-heading,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .world-grid,
  .compare-grid,
  .narrative-sequence,
  .story-grid,
  .ambient-grid,
  .rights-grid {
    grid-template-columns: 1fr;
  }

  .world-shell,
  .home-shell {
    width: min(1180px, calc(100% - 28px));
  }

  .world-hero {
    min-height: auto;
  }

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

  .fork-panel {
    min-height: auto;
  }

  .fork-axis {
    display: none;
  }

  .fork-branch,
  .fork-branch-light {
    width: 100%;
    margin-top: 14px;
  }

  .world-grid .world-card:first-child,
  .world-grid .world-card:last-child,
  .compare-grid .compare-card:first-child,
  .light-path .narrative-step:nth-child(2),
  .light-path .narrative-step:nth-child(4),
  .dark-path .narrative-step:nth-child(2),
  .dark-path .narrative-step:nth-child(4),
  .light-mode .story-grid .story-card:nth-child(2),
  .light-mode .ambient-grid .atmosphere-card:nth-child(2),
  .dark-mode .story-grid .story-card:nth-child(2),
  .dark-mode .ambient-grid .atmosphere-card:nth-child(2) {
    margin-top: 0;
    transform: none;
  }
}

@media (max-width: 720px) {
  .home-shell,
  .world-shell {
    padding-top: 28px;
  }

  .home-hero h1,
  .world-hero h1 {
    font-size: clamp(46px, 16vw, 78px);
  }

  .signal-panel,
  .compare-panel,
  .story-card,
  .rights-card,
  .atmosphere-card,
  .scene-stage,
  .scene-terminal,
  .closing-panel,
  .world-card,
  .quote-monitor,
  .atmosphere-monitor {
    border-radius: 26px;
  }

  .world-nav {
    position: static;
    border-radius: 26px;
  }

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

  .breeze-band {
    border-radius: 28px;
  }

  .echo-quote {
    white-space: normal;
  }

  .atmosphere-break {
    height: 0;
  }

  .section-heading > p,
  .scene-copy,
  .closing-copy,
  .narrative-step p,
  .story-quote,
  .scene-fragments li,
  .atmosphere-text,
  .echo-copy {
    max-width: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
