:root {
  --paper: #fffaf5;
  --surface: rgba(255, 255, 255, 0.78);
  --ink: #4d3024;
  --muted: #826557;
  --line: rgba(179, 122, 86, 0.22);
  --peach: #e89468;
  --peach-dark: #bd6848;
  --mint: #8cc5b1;
  --aqua: #9ccde8;
  --shadow: 0 22px 60px rgba(116, 72, 45, 0.13);
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 246, 236, 0.94), rgba(255, 250, 245, 0.98) 48%, #fff),
    radial-gradient(circle at 78% 8%, rgba(156, 205, 232, 0.24), transparent 30%);
}

body.app-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.98), rgba(241, 251, 248, 0.98) 58%, #fff),
    radial-gradient(circle at 18% 0%, rgba(232, 148, 104, 0.18), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(156, 205, 232, 0.28), transparent 26%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
}

.brand img {
  width: 64px;
  height: 64px;
  padding: 2px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: #fff8ef;
  box-shadow: 0 8px 18px rgba(183, 103, 71, 0.18);
}

.brand strong {
  display: block;
  color: var(--peach-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #5d493f;
  font-size: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid rgba(199, 117, 76, 0.34);
  color: var(--peach-dark);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #e59568, #ca6b4c);
  box-shadow: 0 13px 26px rgba(204, 104, 70, 0.2);
}

.large {
  min-height: 50px;
  padding-inline: 26px;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(115, 69, 45, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 78px);
  padding: clamp(38px, 7vw, 92px) clamp(18px, 5vw, 58px) 58px;
  scroll-margin-top: 96px;
}

.hero-copy {
  max-width: 680px;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--peach-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.lead {
  margin: 0 0 30px;
  color: #765243;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.72;
}

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

.hero-art {
  overflow: hidden;
  border-radius: 8px;
  background: #fff6ed;
  box-shadow: var(--shadow);
}

.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ip-hero .hero-art img {
  object-position: center;
}

.story-hero h1 {
  font-size: clamp(54px, 6.2vw, 92px);
}

.story-hero {
  min-height: calc(100vh - 190px);
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: 30px;
}

.hero-note {
  max-width: 620px;
  margin: 26px 0 0;
  padding-left: 16px;
  border-left: 3px solid rgba(232, 148, 104, 0.46);
  color: #8a5d4b;
  font-size: 15px;
  line-height: 1.72;
}

.portrait-art {
  display: grid;
  justify-items: center;
  padding: clamp(16px, 3vw, 30px);
}

.portrait-art img {
  max-height: min(560px, calc(100vh - 250px));
  aspect-ratio: 5 / 6;
  object-fit: contain;
}

.portrait-art figcaption,
.story-art figcaption,
.app-wide-art figcaption,
.dual-media-grid figcaption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.portrait-art figcaption {
  max-width: 430px;
  padding: 14px 4px 0;
  text-align: center;
}

.app-shell {
  min-height: calc(100vh - 78px);
  padding: 18px clamp(14px, 3vw, 32px) 24px;
}

.app-stage {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 120px);
}

.app-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(140, 197, 177, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(72, 105, 99, 0.12);
}

.app-rail h1 {
  margin: 0 0 14px;
  color: var(--peach-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.app-rail h1 span {
  display: block;
}

.app-rail p {
  margin: 0;
  color: #6f5042;
  font-size: 17px;
}

.app-rail-intro {
  display: grid;
  gap: 16px;
}

.app-lumi-token {
  width: 86px;
  height: 108px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  background: #fff7ef;
  box-shadow: 0 14px 30px rgba(196, 105, 73, 0.16);
}

.app-download-actions {
  display: grid;
  gap: 12px;
}

.app-download-actions .large {
  width: 100%;
}

.webapp-frame-shell {
  overflow: hidden;
  min-height: 720px;
  border: 1px solid rgba(156, 205, 232, 0.34);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(57, 86, 94, 0.14);
}

.webapp-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 720px;
  border: 0;
  background: #fff;
}

.section {
  padding: 64px clamp(18px, 5vw, 58px);
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 28px;
}

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

h2 {
  margin: 0 0 12px;
  color: #9b563e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.story-copy,
.story-art,
.cast-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(112, 75, 50, 0.07);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.story-copy {
  padding: clamp(28px, 4vw, 44px);
}

.story-copy p {
  margin: 0 0 18px;
  font-size: 17px;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-art {
  overflow: hidden;
  margin: 0;
  background: #fff7ee;
}

.story-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.story-art figcaption {
  padding: 16px 20px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.story-art.wide-art img {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.narrative-section {
  padding-top: 34px;
}

.narrative-section .story-copy {
  padding-top: 8px;
}

.role-section .section-heading,
.app-universe-section .section-heading,
.app-high-role-section .section-heading {
  max-width: 960px;
}

.lumi-profile {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(179, 122, 86, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 239, 0.78)),
    linear-gradient(90deg, rgba(232, 148, 104, 0.12), rgba(156, 205, 232, 0.1));
  box-shadow: 0 18px 48px rgba(112, 75, 50, 0.08);
}

.lumi-profile img {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.lumi-profile h3 {
  color: #9b563e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
}

.lumi-profile blockquote,
.role-card blockquote {
  margin: 14px 0 0;
  color: #9b563e;
  font-weight: 700;
  line-height: 1.55;
}

.ability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ability-list li {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid rgba(140, 197, 177, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #6b5146;
  font-size: 14px;
  line-height: 1.5;
}

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

.role-card {
  overflow: hidden;
  border: 1px solid rgba(179, 122, 86, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 38px rgba(112, 75, 50, 0.07);
}

.role-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff8ef;
}

.role-card-body {
  padding: 18px;
}

.role-domain {
  display: block;
  margin-bottom: 9px;
  color: #2f7869;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-card h3 {
  color: #5c3a2e;
  font-size: 23px;
}

.role-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
}

.role-title,
.role-power {
  color: #5e746a;
  font-weight: 800;
}

.role-growth {
  color: #856250;
}

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

.compact-grid .role-card,
.mentor-grid .role-card {
  min-height: 100%;
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.feature-media,
.app-wide-art,
.dual-media-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(179, 122, 86, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(112, 75, 50, 0.08);
}

.feature-media img,
.app-wide-art img,
.dual-media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.feature-media img {
  min-height: 360px;
}

.feature-section .feature-media {
  align-self: start;
}

.feature-media + .feature-copy {
  align-self: stretch;
}

.feature-copy > p {
  margin: 0 0 22px;
  font-size: 17px;
}

@media (min-width: 901px) {
  .feature-section .feature-media {
    position: sticky;
    top: 104px;
  }
}

.app-universe-section,
.app-high-role-section {
  padding-inline: 0;
}

.app-universe-section > *,
.app-high-role-section > * {
  margin-inline: clamp(14px, 3vw, 32px);
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.app-feature-grid article {
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(140, 197, 177, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(72, 105, 99, 0.08);
}

.app-feature-grid h3 {
  color: #2f7869;
}

.app-feature-grid p {
  margin: 0;
  font-size: 14px;
}

.app-wide-art {
  margin-bottom: 18px;
}

.app-wide-art img {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

.app-wide-art figcaption,
.dual-media-grid figcaption {
  padding: 14px 18px 16px;
}

.app-role-grid {
  margin-top: 18px;
}

.dual-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.cast-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(250, 255, 251, 0.78)),
    linear-gradient(90deg, rgba(140, 197, 177, 0.14), rgba(156, 205, 232, 0.12));
}

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

.cast-card {
  overflow: hidden;
}

.cast-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  background: #fff6ed;
}

.cast-card div {
  padding: 22px;
}

.cast-card p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .story-section,
  .app-stage,
  .feature-section,
  .lumi-profile {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .story-art img {
    min-height: 360px;
  }

  .app-stage {
    min-height: auto;
  }

  .app-rail {
    gap: 18px;
  }

  .webapp-frame-shell,
  .webapp-frame {
    min-height: 780px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
    padding-inline: 16px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 8px;
    font-size: 13px;
    text-align: center;
  }

  .hero,
  .section {
    padding-inline: 16px;
    scroll-margin-top: 176px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 72px);
  }

  .story-hero h1 {
    font-size: clamp(42px, 11vw, 58px);
  }

  .hero {
    scroll-margin-top: 176px;
  }

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

  .story-copy {
    padding: 24px;
  }

  .story-art img {
    min-height: 260px;
  }

  .app-shell {
    padding: 12px;
  }

  .app-rail h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .ability-list,
  .role-grid,
  .app-feature-grid,
  .dual-media-grid {
    grid-template-columns: 1fr;
  }

  .role-card-body {
    padding: 16px;
  }

  .feature-media img,
  .app-wide-art img,
  .dual-media-grid img {
    min-height: 230px;
  }

  .webapp-frame-shell,
  .webapp-frame {
    min-height: 700px;
  }
}
