@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=ZCOOL+XiaoWei&display=swap");

:root {
  --sky-top: #132541;
  --sky-mid: #41617d;
  --sky-low: #d99374;
  --night-card: rgba(34, 33, 42, 0.44);
  --paper: rgba(249, 241, 226, 0.92);
  --paper-strong: rgba(255, 248, 238, 0.98);
  --line: rgba(124, 89, 58, 0.16);
  --text: #493526;
  --muted: #775b48;
  --gold: #e1b36d;
  --copper: #ca8160;
  --olive: #83956e;
  --teal: #6e8b8a;
  --shadow: 0 24px 60px rgba(39, 28, 22, 0.18);
  --font-sans: "Nunito", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-display: "ZCOOL XiaoWei", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 236, 198, 0.12), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(255, 211, 168, 0.12), transparent 18%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 24%, #7c6f88 56%, var(--sky-low) 80%, #f0d4a6 100%);
}

.sky-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.52;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 200px 200px, 240px 240px, 40px 40px, 40px 40px;
}

.ambient-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-lines span {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 238, 213, 0.34);
  background: rgba(255, 247, 228, 0.08);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
  animation: drift 16s ease-in-out infinite;
}

.ambient-lines span:nth-child(1) {
  top: 12%;
  left: 2%;
}

.ambient-lines span:nth-child(2) {
  top: 24%;
  right: 4%;
  animation-delay: -4s;
}

.ambient-lines span:nth-child(3) {
  bottom: 18%;
  left: 6%;
  animation-delay: -8s;
}

a,
button {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.world-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.eyebrow,
.block-kicker,
.stage-kicker {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f1d0a0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: #fff1d8;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
  color: #fff0df;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: #5b3f2d;
}

.hero-text,
.panel-text,
.stage-description,
.stage-block p,
.scene-response p,
.mail-wall,
.mail-form,
.hope-block p,
.finale-card,
.side-text {
  line-height: 1.85;
}

.hero-text {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 238, 216, 0.84);
}

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

.hero-actions {
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: linear-gradient(180deg, var(--gold) 0%, var(--copper) 100%);
  color: #553622;
  box-shadow: 0 16px 32px rgba(203, 130, 95, 0.26);
}

.secondary-button {
  color: #fff2df;
  background: rgba(255, 246, 228, 0.1);
  border: 1px solid rgba(255, 236, 206, 0.24);
}

.primary-button:hover,
.secondary-button:hover,
.emotion-card:hover,
.choice-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.hero-scene,
.card,
.scene-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 223, 184, 0.18);
  box-shadow: var(--shadow);
}

.scene-card {
  min-height: 720px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 90%, rgba(255, 204, 146, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(17, 34, 59, 0.98) 0%, rgba(53, 76, 108, 0.95) 24%, rgba(124, 92, 114, 0.92) 54%, rgba(206, 139, 104, 0.9) 100%);
}

.scene-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 227, 184, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(18, 17, 22, 0.12));
}

.scene-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(44, 37, 35, 0), rgba(39, 30, 26, 0.48));
}

.moon,
.scene-stars,
.ridge,
.town-lights,
.flying-gondola,
.cloud,
.track,
.castle,
.scene-note,
.castle-shadow,
.castle-body,
.castle-wing,
.castle-tower,
.castle-window,
.castle-smoke {
  position: absolute;
}

.moon {
  top: 58px;
  right: 72px;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffce9, #f8e8be);
  box-shadow: 0 0 0 32px rgba(248, 233, 190, 0.14);
}

.scene-stars {
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 248, 219, 0.88) 0 1px, transparent 2px);
  background-size: 120px 120px;
  opacity: 0.34;
}

.cloud {
  height: 34px;
  border-radius: 999px;
  background: rgba(245, 230, 217, 0.16);
  box-shadow:
    24px -10px 0 10px rgba(245, 230, 217, 0.14),
    58px -2px 0 10px rgba(245, 230, 217, 0.16),
    84px -10px 0 7px rgba(245, 230, 217, 0.12);
  animation: drift 16s ease-in-out infinite;
}

.cloud-a {
  top: 140px;
  left: 80px;
  width: 90px;
}

.cloud-b {
  top: 116px;
  left: 252px;
  width: 96px;
  animation-delay: -4s;
}

.ridge {
  bottom: 160px;
  border-radius: 50% 50% 0 0;
}

.ridge-back {
  left: -6%;
  width: 72%;
  height: 160px;
  background: rgba(45, 60, 82, 0.66);
}

.ridge-front {
  right: -10%;
  width: 68%;
  height: 150px;
  background: rgba(62, 78, 90, 0.72);
}

.town-lights {
  left: 60px;
  bottom: 132px;
  width: 220px;
  height: 96px;
  opacity: 0.88;
  background:
    radial-gradient(circle at 12% 58%, rgba(255, 220, 145, 0.92) 0 4px, transparent 5px),
    radial-gradient(circle at 24% 42%, rgba(255, 220, 145, 0.88) 0 3px, transparent 4px),
    radial-gradient(circle at 38% 64%, rgba(255, 220, 145, 0.88) 0 4px, transparent 5px),
    radial-gradient(circle at 52% 44%, rgba(255, 220, 145, 0.92) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 58%, rgba(255, 220, 145, 0.88) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 38%, rgba(255, 220, 145, 0.88) 0 3px, transparent 4px);
}

.flying-gondola {
  top: 204px;
  right: 94px;
  width: 74px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(71, 57, 52, 0.92), rgba(35, 27, 24, 0.94));
  box-shadow: 0 0 0 3px rgba(255, 228, 186, 0.06);
  animation: drift 18s ease-in-out infinite;
}

.flying-gondola::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: -16px;
  height: 16px;
  border: 2px solid rgba(255, 232, 192, 0.34);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
}

.track {
  left: 50%;
  bottom: 0;
  width: 170px;
  height: 280px;
  transform: translateX(-50%);
  border-radius: 56% 56% 0 0;
  background: linear-gradient(180deg, rgba(233, 196, 145, 0.8) 0%, rgba(164, 110, 79, 0.92) 100%);
}

.track::before,
.track::after {
  content: "";
  position: absolute;
  inset: 0;
}

.track::before {
  left: 18px;
  width: 4px;
  background: rgba(95, 57, 43, 0.6);
  box-shadow: 126px 0 0 rgba(95, 57, 43, 0.6);
}

.track::after {
  background:
    linear-gradient(180deg, transparent 0 10%, rgba(101, 66, 51, 0.55) 10% 12%, transparent 12% 22%, rgba(101, 66, 51, 0.55) 22% 24%, transparent 24% 34%, rgba(101, 66, 51, 0.55) 34% 36%, transparent 36% 46%, rgba(101, 66, 51, 0.55) 46% 48%, transparent 48% 58%, rgba(101, 66, 51, 0.55) 58% 60%, transparent 60% 70%, rgba(101, 66, 51, 0.55) 70% 72%, transparent 72% 82%, rgba(101, 66, 51, 0.55) 82% 84%, transparent 84%);
}

.castle {
  left: 50%;
  bottom: 112px;
  width: 390px;
  height: 290px;
  transform: translateX(-50%);
  animation: sway 6.2s ease-in-out infinite;
}

.castle-shadow {
  bottom: -8px;
  left: 46px;
  width: 300px;
  height: 58px;
  border-radius: 50%;
  background: rgba(39, 25, 19, 0.34);
  filter: blur(12px);
}

.castle-body,
.castle-wing,
.castle-tower {
  border: 1px solid rgba(249, 218, 171, 0.16);
  background: linear-gradient(180deg, #766055 0%, #4d3c36 100%);
}

.castle-body {
  left: 90px;
  bottom: 82px;
  width: 202px;
  height: 116px;
  border-radius: 36px 28px 24px 22px;
}

.castle-wing {
  left: 42px;
  bottom: 112px;
  width: 104px;
  height: 82px;
  border-radius: 26px 22px 18px 20px;
}

.tower-a {
  left: 124px;
  bottom: 180px;
  width: 60px;
  height: 84px;
  border-radius: 18px 18px 12px 12px;
}

.tower-b {
  right: 98px;
  bottom: 170px;
  width: 56px;
  height: 94px;
  border-radius: 20px 20px 12px 12px;
}

.castle-tower::before,
.castle-wing::before {
  content: "";
  position: absolute;
  top: -22px;
  left: -10px;
  width: calc(100% + 20px);
  height: 34px;
  background: linear-gradient(180deg, #b36f58 0%, #7c4d42 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0 100%);
}

.castle-window {
  width: 14px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffeb9c 0%, #f0ba64 100%);
  box-shadow: 0 0 14px rgba(255, 212, 119, 0.32);
}

.window-a {
  left: 132px;
  bottom: 138px;
}

.window-b {
  left: 190px;
  bottom: 134px;
}

.window-c {
  right: 110px;
  bottom: 136px;
}

.castle-smoke {
  border-radius: 50%;
  background: rgba(226, 222, 216, 0.3);
}

.smoke-a {
  top: 20px;
  left: 150px;
  width: 40px;
  height: 40px;
  animation: smoke 4.5s ease-in-out infinite;
}

.smoke-b {
  top: 0;
  left: 176px;
  width: 28px;
  height: 28px;
  animation: smoke 4.5s ease-in-out infinite 1s;
}

.scene-note {
  left: 36px;
  bottom: 40px;
  padding: 14px 16px;
  border: 1px solid rgba(249, 224, 183, 0.16);
  border-radius: 18px;
  background: rgba(36, 31, 34, 0.46);
  backdrop-filter: blur(12px);
  color: #fff0d9;
  z-index: 1;
}

.scene-note p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5d2a2;
}

.scene-note strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
}

.progress-strip,
.card {
  border-radius: 30px;
  background: var(--night-card);
  backdrop-filter: blur(16px);
}

.progress-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 42px;
  padding: 24px 28px;
  border: 1px solid rgba(247, 223, 184, 0.18);
}

.progress-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-item {
  min-height: 74px;
  padding: 16px 14px;
  border-radius: 22px;
  color: rgba(255, 239, 215, 0.72);
  background: rgba(255, 247, 228, 0.06);
  border: 1px solid rgba(255, 235, 205, 0.08);
}

.progress-item.is-current,
.progress-item.is-complete {
  color: #fff2de;
  border-color: rgba(255, 228, 186, 0.18);
}

.progress-item.is-current {
  background: rgba(255, 232, 192, 0.12);
}

.progress-item.is-complete {
  background: rgba(114, 144, 126, 0.24);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.card {
  padding: 28px;
}

.side-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.side-text {
  margin-top: 12px;
  color: rgba(255, 237, 214, 0.82);
}

.map-lantern {
  position: relative;
  width: 132px;
  height: 170px;
  margin: 22px auto;
}

.map-lantern span {
  position: absolute;
}

.lantern-glow {
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 222, 156, 0.5), transparent 66%);
}

.lantern-top {
  top: 10px;
  left: 48px;
  width: 34px;
  height: 18px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, #ab6d55, #7f4b3e);
}

.lantern-body {
  left: 26px;
  top: 28px;
  width: 80px;
  height: 104px;
  border-radius: 28px 28px 34px 34px;
  background: linear-gradient(180deg, rgba(255, 243, 209, 0.9), rgba(240, 191, 119, 0.76));
  box-shadow: 0 0 26px rgba(245, 203, 128, 0.3);
}

.status-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.status-list div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 247, 228, 0.08);
}

.status-list dt {
  margin: 0 0 4px;
  color: #f2cfa1;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-list dd {
  margin: 0;
  color: #fff0d8;
}

.step-panels {
  display: grid;
  gap: 20px;
}

.step-panel {
  background: linear-gradient(180deg, var(--paper-strong) 0%, var(--paper) 100%);
}

.step-panel.is-hidden {
  display: none;
}

.step-panel h2 {
  color: #5a3f2d;
}

.step-panel .eyebrow {
  color: #d3a76b;
}

.panel-text {
  margin-top: 14px;
  color: var(--muted);
}

.emotion-grid,
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.emotion-card,
.choice-button {
  text-align: left;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid rgba(130, 95, 66, 0.14);
  box-shadow: 0 12px 24px rgba(90, 68, 50, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.emotion-card strong,
.choice-button strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #5b402d;
}

.emotion-card span,
.choice-button span {
  color: var(--muted);
  line-height: 1.6;
}

.emotion-card.is-selected,
.choice-button.is-selected {
  background: linear-gradient(180deg, rgba(255, 240, 213, 0.96), rgba(244, 222, 189, 0.92));
  border-color: rgba(197, 129, 95, 0.42);
  box-shadow: 0 18px 30px rgba(203, 130, 95, 0.18);
}

.panel-actions {
  margin-top: 24px;
}

.stage-card,
.hope-card,
.energy-card,
.finale-card,
.mail-wall {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 244, 0.84);
}

.stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.stage-pill {
  padding: 8px 14px;
  border-radius: 999px;
  color: #69452e;
  background: rgba(229, 191, 130, 0.36);
}

.stage-columns,
.hope-layout,
.mail-layout,
.finale-layout {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

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

.stage-block,
.hope-block {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 245, 225, 0.78);
}

.scene-stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.scene-illustration {
  position: relative;
  min-height: 300px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 230, 170, 0.36), transparent 28%),
    linear-gradient(180deg, rgba(62, 83, 105, 0.96), rgba(233, 183, 128, 0.76));
}

.scene-illustration span,
.scene-illustration button,
.scene-whisper {
  position: absolute;
}

.scene-orb {
  top: 32px;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 170, 0.56), transparent 68%);
}

.scene-floor {
  left: 24px;
  right: 24px;
  bottom: 18px;
  height: 26px;
  border-radius: 50%;
  background: rgba(67, 52, 45, 0.22);
}

.scene-object.main-object {
  left: 50%;
  bottom: 52px;
  width: 108px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 30px 30px 24px 24px;
  background: linear-gradient(180deg, #ffde98, #c97851);
  box-shadow: 0 0 30px rgba(255, 213, 119, 0.28);
}

.scene-object.side-object {
  right: 34px;
  bottom: 72px;
  width: 66px;
  height: 92px;
  border-radius: 24px;
  background: rgba(71, 85, 77, 0.62);
}

.scene-spark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 223, 154, 0.86);
  animation: pulse 2s ease-in-out infinite;
}

.scene-hotspot {
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle, rgba(255, 240, 198, 0.22), rgba(255, 228, 164, 0.02));
  box-shadow:
    0 0 0 1px rgba(255, 236, 206, 0.26),
    0 0 0 12px rgba(255, 226, 171, 0.06);
  animation: pulse 2.2s ease-in-out infinite;
}

.scene-hotspot::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 241, 214, 0.48);
}

.scene-whisper {
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(255, 243, 220, 0.9);
  background: rgba(34, 30, 30, 0.26);
  backdrop-filter: blur(10px);
  line-height: 1.7;
}

.scene-illustration.scene-embers {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 222, 156, 0.44), transparent 28%),
    linear-gradient(180deg, rgba(80, 64, 60, 0.94), rgba(227, 154, 105, 0.8));
}

.scene-illustration.scene-embers .scene-hotspot {
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
}

.scene-illustration.scene-fog {
  background:
    radial-gradient(circle at 50% 26%, rgba(245, 236, 214, 0.42), transparent 26%),
    linear-gradient(180deg, rgba(92, 111, 122, 0.96), rgba(195, 185, 167, 0.82));
}

.scene-illustration.scene-fog .main-object {
  background: linear-gradient(180deg, #e6eced, #7f9da3);
}

.scene-illustration.scene-fog .scene-hotspot {
  left: 50%;
  top: 68px;
  transform: translateX(-50%);
}

.scene-illustration.scene-threshold {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 208, 145, 0.4), transparent 24%),
    linear-gradient(180deg, rgba(74, 80, 94, 0.96), rgba(201, 143, 95, 0.84));
}

.scene-illustration.scene-threshold .side-object {
  background: rgba(99, 82, 68, 0.76);
}

.scene-illustration.scene-threshold .scene-hotspot {
  right: 28px;
  bottom: 102px;
}

.scene-illustration.scene-return {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 227, 175, 0.4), transparent 26%),
    linear-gradient(180deg, rgba(70, 95, 118, 0.96), rgba(224, 181, 131, 0.8));
}

.scene-illustration.scene-return .main-object {
  background: linear-gradient(180deg, #ffe2a4, #d08f66);
}

.scene-illustration.scene-return .scene-hotspot {
  left: 50%;
  top: 92px;
  transform: translateX(-50%);
}

.spark-a {
  left: 34px;
  top: 52px;
}

.spark-b {
  right: 54px;
  top: 96px;
  animation-delay: -1s;
}

.scene-interaction {
  display: flex;
  flex-direction: column;
}

.ritual-panel {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.98), rgba(241, 228, 208, 0.96));
  border: 1px solid rgba(147, 106, 74, 0.12);
}

.ritual-copy,
.ritual-status,
.choice-lock {
  margin: 12px 0 0;
  line-height: 1.75;
  color: var(--muted);
}

.ritual-meter {
  position: relative;
  width: 100%;
  height: 12px;
  margin-top: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(112, 84, 60, 0.12);
}

.ritual-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  box-shadow: 0 0 16px rgba(226, 179, 109, 0.36);
  transition: width 260ms ease;
}

.scene-response {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 228, 0.94), rgba(241, 227, 206, 0.94));
}

.scene-response.is-hidden {
  display: none;
}

.choice-grid.is-locked {
  opacity: 0.48;
  pointer-events: none;
}

.scene-illustration.is-awake .scene-orb,
.scene-illustration.is-awake .main-object {
  box-shadow: 0 0 34px rgba(255, 214, 133, 0.32);
}

.scene-illustration[data-ritual-progress="1"] .scene-orb {
  transform: translateX(-50%) scale(1.04);
  opacity: 0.82;
}

.scene-illustration[data-ritual-progress="2"] .scene-orb {
  transform: translateX(-50%) scale(1.08);
  opacity: 1;
}

.scene-illustration.is-awake .scene-hotspot {
  box-shadow:
    0 0 0 1px rgba(255, 236, 206, 0.32),
    0 0 0 18px rgba(255, 226, 171, 0.12),
    0 0 24px rgba(255, 214, 133, 0.3);
}

.mail-form textarea {
  width: 100%;
  min-height: 180px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(126, 93, 63, 0.16);
  border-radius: 22px;
  resize: vertical;
  background: rgba(255, 252, 246, 0.92);
  color: var(--text);
}

.form-label {
  color: #624632;
  font-weight: 700;
}

.form-actions {
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.form-status {
  margin: 0;
  color: #8a5d42;
}

.note-list,
.resonance-list,
.energy-list,
.exit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list,
.resonance-list {
  display: grid;
  gap: 12px;
}

.note-card,
.resonance-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 245, 225, 0.78);
  line-height: 1.75;
}

.note-card strong,
.resonance-card strong {
  display: block;
  margin-bottom: 6px;
  color: #5c402d;
}

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

.hope-line {
  margin-top: 14px;
  color: #6b4d39;
}

.energy-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.energy-list li,
.exit-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.75;
  color: var(--muted);
}

.energy-list li::before,
.exit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--copper));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(8px);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-7px);
  }
}

@keyframes smoke {
  0% {
    transform: translateY(0) scale(0.92);
    opacity: 0.18;
  }
  50% {
    transform: translateY(-18px) scale(1.1);
    opacity: 0.34;
  }
  100% {
    transform: translateY(-34px) scale(1.24);
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .hero,
  .game-layout,
  .scene-stage,
  .hope-layout,
  .finale-layout,
  .mail-layout,
  .progress-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .world-shell {
    width: min(100% - 24px, 1220px);
    padding-top: 20px;
  }

  .hero {
    gap: 18px;
    min-height: auto;
  }

  .hero-text {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.78;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    flex: 1 1 100%;
    min-height: 54px;
    border-radius: 20px;
  }

  .scene-card {
    min-height: 360px;
    border-radius: 30px;
  }

  .castle {
    width: 260px;
    height: 210px;
  }

  .moon {
    top: 30px;
    right: 28px;
    width: 88px;
    height: 88px;
    box-shadow: 0 0 0 20px rgba(248, 233, 190, 0.1);
  }

  .track {
    width: 124px;
    height: 190px;
  }

  .scene-note {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .scene-note strong {
    font-size: 1.08rem;
  }

  .progress-strip {
    gap: 14px;
    margin-top: 20px;
    padding: 18px 16px;
    border-radius: 28px;
    background: rgba(36, 40, 55, 0.4);
  }

  .progress-copy h2 {
    font-size: 1.9rem;
  }

  .progress-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .progress-item {
    min-height: auto;
    padding: 10px 10px 11px;
    border-radius: 16px;
    background: rgba(255, 247, 228, 0.02);
    border: 1px dashed rgba(255, 235, 205, 0.12);
    color: rgba(255, 239, 215, 0.58);
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .progress-item.is-current {
    background: rgba(255, 232, 192, 0.08);
    border-style: solid;
  }

  .progress-item.is-complete {
    background: rgba(114, 144, 126, 0.14);
    border-style: solid;
  }

  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .step-panels {
    order: 1;
  }

  .side-panel {
    order: 2;
    padding: 20px 18px;
    border-radius: 26px;
    background: rgba(49, 47, 59, 0.3);
  }

  .side-title {
    font-size: 1.58rem;
    line-height: 1.28;
  }

  .side-text {
    margin-top: 10px;
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .map-lantern {
    display: none;
  }

  .status-list {
    gap: 10px;
    margin-top: 14px;
  }

  .status-list div {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-radius: 0;
    background: none;
    border-bottom: 1px solid rgba(255, 236, 205, 0.1);
  }

  .status-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .status-list dt {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .status-list dd {
    font-size: 1rem;
    line-height: 1.5;
  }

  .emotion-grid,
  .choice-grid,
  .stage-columns {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px 20px;
  }

  .step-panel {
    border-radius: 28px;
  }

  .step-panel h2 {
    font-size: 2rem;
    line-height: 1.16;
  }

  .panel-text {
    margin-top: 12px;
    font-size: 0.99rem;
    line-height: 1.76;
  }

  .emotion-grid,
  .choice-grid {
    gap: 12px;
    margin-top: 20px;
  }

  .emotion-card,
  .choice-button {
    padding: 16px 16px 17px;
    border-radius: 18px;
  }

  .emotion-card strong,
  .choice-button strong {
    margin-bottom: 6px;
    font-size: 1.04rem;
  }

  .scene-stage {
    gap: 16px;
    margin-top: 18px;
  }

  .scene-illustration {
    min-height: 240px;
    border-radius: 22px;
  }

  .scene-hotspot {
    width: 72px;
    height: 72px;
  }

  .scene-whisper {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.94rem;
  }

  .panel-actions {
    gap: 10px;
  }

  .panel-actions .primary-button,
  .panel-actions .secondary-button {
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
  }
}
