@font-face {
  font-family: "Pretendard Yeonri";
  src: url("./assets/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #fce8e2;
  --ink-soft: #e9b9b6;
  --night: #190a0f;
  --wine: #35131b;
  --wine-light: #542027;
  --red: #d82e35;
  --red-bright: #ff545b;
  --blush: #f7d7d1;
  --paper: #f9ece7;
  --paper-ink: #4d2025;
  --gold: #e7b66f;
  --line: rgba(255, 218, 209, 0.22);
  --radius: 14px;
  font-family: "Pretendard Yeonri", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #0f070a;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, #0e0608 0, #1d0b11 25%, #1d0b11 75%, #0e0608 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #fff4ed;
  outline-offset: 3px;
}

::selection {
  color: #2b0c13;
  background: #ffb8b2;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #17090e;
}

::-webkit-scrollbar-thumb {
  background: #8f343b;
  border: 2px solid #17090e;
  border-radius: 999px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.experience {
  position: relative;
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.48);
}

.scene {
  position: relative;
  width: 100%;
  min-height: 100svh;
}

.cover-scene {
  display: grid;
  min-height: 100svh;
  place-items: center;
  background: #35171b;
}

.cover-start {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100svh;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: #35171b;
}

.cover-start img {
  display: block;
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02) brightness(0.97);
}

.cover-hint {
  position: absolute;
  left: 50%;
  bottom: max(clamp(200px, 25svh, 240px), calc(env(safe-area-inset-bottom) + 190px));
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 9px 15px;
  color: #fff2ee;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 219, 210, 0.42);
  border-radius: 999px;
  background: rgba(39, 10, 15, 0.74);
  transform: translateX(-50%);
  animation: hint-breathe 2.6s ease-in-out infinite;
}

@keyframes hint-breathe {
  0%, 100% { opacity: 0.72; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-4px); }
}

.intro-scene {
  display: grid;
  min-height: 100svh;
  place-items: center;
  background: #15090c;
}

.intro-scene video {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.12) brightness(0.92);
}

.intro-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 5, 8, 0.22), transparent 24%, transparent 72%, rgba(15, 5, 8, 0.58)),
    rgba(92, 17, 28, 0.08);
}

.intro-controls {
  position: absolute;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  display: flex;
  gap: 8px;
}

.result-menu {
  border: 1px solid rgba(255, 230, 222, 0.32);
  background: rgba(32, 8, 13, 0.74);
}

.skip-control {
  padding: 8px 0 8px 10px;
  color: #ffe7e1;
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  border: 0;
  background: transparent;
  text-shadow: 0 2px 10px rgba(20, 2, 8, 0.82);
  cursor: pointer;
  transition: color 180ms ease-out, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-control:hover {
  color: #fff;
  transform: translateX(2px);
}

.intro-progress {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 20px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}

.intro-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #ffdad2;
}

.video-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
  background: #2a1017;
}

.consultation-scene {
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  background: #2c1018;
}

.result-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 42px 1fr 48px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: max(12px, env(safe-area-inset-top)) 18px 10px;
  border-bottom: 1px solid var(--line);
  background: #2b0f17;
}

.result-header p,
.result-header h1 {
  margin: 0;
}

.result-header p {
  color: #e3aaa8;
  font-size: 0.72rem;
  font-weight: 650;
}

.result-header h1 {
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 570;
  letter-spacing: -0.025em;
}

.result-menu {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
}

.result-menu svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oracle-stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #36141b;
}

.oracle-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 38%,
    rgba(4, 2, 3, 0.08) 52%,
    rgba(4, 2, 3, 0.55) 76%,
    rgba(4, 2, 3, 0.82) 100%
  );
  transition: background 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.oracle-crop {
  position: absolute;
  inset: 0;
  background: #36141b;
}

.oracle-crop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 144%;
  object-fit: cover;
  object-position: center 39%;
  transform: translateY(-15%);
  transition: filter 280ms cubic-bezier(0.16, 1, 0.3, 1), transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.oracle-crop video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #36141b;
  filter: brightness(0.94) contrast(1.03) saturate(0.98);
  transition: filter 280ms cubic-bezier(0.16, 1, 0.3, 1), transform 280ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease-out;
}

.oracle-crop.is-fallback video {
  opacity: 0;
}

.oracle-thread {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 86%;
  overflow: visible;
}

.oracle-thread path {
  fill: none;
  stroke: #ff3d43;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(255, 40, 49, 0.85));
}

.story-layer {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 0 16px max(18px, env(safe-area-inset-bottom));
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.oracle-dialogue {
  width: 100%;
  margin-bottom: clamp(46px, 6.5svh, 66px);
  padding: 0 3px 4px;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
  transition:
    opacity 190ms ease-in,
    transform 190ms ease-in,
    filter 190ms ease-in;
}

.oracle-dialogue.is-leaving {
  opacity: 0;
  transform: translateY(-5px);
  filter: blur(2px);
  pointer-events: none;
}

.oracle-dialogue.is-entering {
  pointer-events: none;
}

.speech-copy {
  display: -webkit-box;
  max-width: 24ch;
  margin: 0 auto 22px;
  overflow: hidden;
  color: #fff1ec;
  font-family: "Noto Serif KR", "Noto Serif CJK KR", "Batang", "바탕", serif;
  font-size: clamp(1.16rem, 5.5vw, 1.46rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.025em;
  text-align: center;
  white-space: pre-line;
  word-break: keep-all;
  text-wrap: wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-shadow: 0 2px 18px rgba(20, 2, 8, 0.92);
}

.oracle-dialogue.is-entering .speech-copy {
  animation: dialogue-text-in 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dialogue-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 9px;
}

.oracle-dialogue.is-entering .dialogue-actions {
  animation: dialogue-actions-in 220ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
}

.dialogue-choice {
  min-height: 52px;
  padding: 10px 14px;
  color: #522128;
  font-size: 0.86rem;
  font-weight: 680;
  border: 1px solid rgba(255, 230, 224, 0.76);
  border-radius: 12px;
  background: rgba(249, 236, 231, 0.94);
  box-shadow: 0 12px 28px rgba(16, 2, 7, 0.28);
  cursor: pointer;
}

.dialogue-choice:hover {
  background: #fff8f5;
}

.question-panel {
  width: 100%;
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  color: var(--paper-ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 20px 44px rgba(15, 3, 7, 0.34);
  pointer-events: auto;
  scrollbar-width: thin;
}

.question-panel.is-choice-panel,
.question-panel.is-chat-panel {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.question-panel.is-choice-panel {
  margin-bottom: clamp(30px, 4.5svh, 48px);
}

.question-panel.is-entering {
  pointer-events: none;
  animation: question-panel-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.choice-question-form,
.is-chat-panel .chat-question-form {
  padding: 0 3px 4px;
}

.is-choice-panel .form-heading h2,
.is-chat-panel .form-heading h2 {
  max-width: 24ch;
  margin-inline: auto;
  color: #fff1ec;
  font-family: "Noto Serif KR", "Noto Serif CJK KR", "Batang", "바탕", serif;
  font-size: clamp(1.16rem, 5.5vw, 1.46rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.025em;
  text-align: center;
  word-break: keep-all;
  text-wrap: wrap;
  text-shadow: 0 2px 18px rgba(20, 2, 8, 0.92);
}

.dialogue-option-grid {
  grid-template-columns: 1fr;
  gap: 9px;
}

.relation-select {
  display: grid;
  gap: 9px;
}

.relation-select > span {
  color: #ffe8e1;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 12px rgba(8, 2, 4, 0.78);
}

.relation-select select {
  width: 100%;
  min-height: 54px;
  padding: 0 44px 0 16px;
  color: #522128;
  border: 1px solid rgba(255, 230, 224, 0.76);
  border-radius: 12px;
  background: #f9ece7;
  box-shadow: 0 12px 28px rgba(16, 2, 7, 0.28);
  cursor: pointer;
}

.is-choice-panel .choice span {
  min-height: 52px;
  color: #522128;
  font-size: 0.86rem;
  border-color: rgba(255, 230, 224, 0.76);
  background: rgba(249, 236, 231, 0.94);
  box-shadow: 0 12px 28px rgba(16, 2, 7, 0.28);
}

.is-choice-panel .form-actions,
.is-chat-panel .form-actions {
  margin-top: 14px;
}

.is-choice-panel .paper-button,
.is-chat-panel .paper-button {
  color: #ffe8e1;
  border-color: rgba(255, 232, 225, 0.44);
  background: rgba(39, 10, 16, 0.7);
}

.consultation-scene.is-form-open .oracle-crop img {
  filter: brightness(0.58) saturate(0.78);
  transform: translateY(-15%) scale(1.02);
}

.consultation-scene.is-form-open .oracle-crop video {
  filter: brightness(0.54) contrast(1.02) saturate(0.76);
  transform: scale(1.02);
}

.consultation-scene.is-form-open .oracle-stage::after {
  background: linear-gradient(180deg, rgba(31, 8, 14, 0.28), rgba(30, 8, 14, 0.8));
}

.consultation-form {
  padding: 22px 18px 20px;
}

.form-heading {
  margin-bottom: 22px;
}

.form-heading h2 {
  max-width: 16ch;
  margin: 0;
  color: #482026;
  font-size: clamp(1.24rem, 6vw, 1.6rem);
  font-weight: 670;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 12px;
}

.field,
.field-block {
  display: grid;
  gap: 8px;
}

.field > span,
.field-label {
  color: #6a3338;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: #3b191f;
  border: 1px solid #d8aaa4;
  border-radius: 12px;
  background: #fffaf8;
}

.field textarea {
  min-height: 128px;
  padding-block: 12px;
  line-height: 1.65;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9c7672;
  opacity: 1;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: grid;
  min-height: 48px;
  padding: 8px 7px;
  place-items: center;
  color: #744047;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
  border: 1px solid #d9aea8;
  border-radius: 12px;
  background: #fffaf8;
  cursor: pointer;
}

.choice input:checked + span {
  color: #fff2ee;
  border-color: #7c2631;
  background: #7c2631;
}

.choice input:focus-visible + span {
  outline: 3px solid #8e2631;
  outline-offset: 2px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 20px;
  color: #744047;
  font-size: 0.76rem;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: #8b2933;
}

.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.chat-question-form {
  padding-top: 25px;
}

.chat-compose {
  overflow: hidden;
  border: 1px solid #d8aaa4;
  border-radius: 14px;
  background: #fffaf8;
}

.chat-compose textarea {
  display: block;
  width: 100%;
  min-height: 148px;
  padding: 15px 15px 8px;
  color: #3b191f;
  line-height: 1.7;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
}

.chat-compose textarea::placeholder {
  color: #916d6a;
  opacity: 1;
}

.chat-compose:focus-within {
  outline: 3px solid #8e2631;
  outline-offset: 2px;
}

.chat-compose-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px;
  border-top: 1px solid #ecd2cd;
}

.chat-send {
  min-height: 42px;
  padding: 0 18px;
  color: #fff5f1;
  font-weight: 680;
  border: 0;
  border-radius: 10px;
  background: #8b222d;
  cursor: pointer;
}

.paper-button,
.seal-button {
  min-height: 49px;
  padding: 0 18px;
  border-radius: 12px;
  cursor: pointer;
}

.paper-button {
  color: #652932;
  border: 1px solid #b77f7a;
  background: #fff9f6;
}

.seal-button {
  color: #fff5f1;
  border: 1px solid #8b222d;
  background: #8b222d;
}

.form-actions .seal-button {
  flex: 1;
}

.paper-button:hover,
.seal-button:hover,
.result-menu:hover {
  filter: brightness(1.08);
}

.seal-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.weaving-scene {
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background: #250d13;
}

.weaving-lattice {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 14%, #d78580 14.3%, transparent 14.6%, transparent 85.4%, #d78580 85.7%, transparent 86%),
    repeating-linear-gradient(180deg, transparent 0 78px, rgba(227, 158, 151, 0.45) 79px 80px);
}

.weaving-core {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: 11svh 28px 9svh;
  align-content: end;
}

.weaving-thread {
  position: absolute;
  inset: 5svh 0 auto;
  width: 100%;
  height: 68svh;
  overflow: visible;
}

.weaving-thread path {
  fill: none;
  stroke: #ff3941;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  filter: drop-shadow(0 0 8px rgba(255, 46, 54, 0.9));
  animation: weave-line 5.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.thread-knots circle {
  fill: #ffd0c8;
  opacity: 0;
  filter: drop-shadow(0 0 7px #ff3b43);
  animation: knot-light 0.25s ease-out forwards;
}

.thread-knots circle:nth-child(1) { animation-delay: 0.5s; }
.thread-knots circle:nth-child(2) { animation-delay: 1s; }
.thread-knots circle:nth-child(3) { animation-delay: 1.5s; }
.thread-knots circle:nth-child(4) { animation-delay: 2s; }
.thread-knots circle:nth-child(5) { animation-delay: 2.5s; }
.thread-knots circle:nth-child(6) { animation-delay: 3s; }
.thread-knots circle:nth-child(7) { animation-delay: 3.5s; }
.thread-knots circle:nth-child(8) { animation-delay: 4s; }

@keyframes weave-line { to { stroke-dashoffset: 0; } }
@keyframes knot-light { to { opacity: 1; transform: scale(1.25); } }

@keyframes dialogue-text-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes dialogue-actions-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes question-panel-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.weaving-core p,
.weaving-core strong,
.weaving-core span {
  position: relative;
  z-index: 2;
  margin: 0;
}

.weaving-core p {
  max-width: 16ch;
  color: #f8dad4;
  font-size: clamp(1.5rem, 7vw, 2.25rem);
  font-weight: 250;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.weaving-core strong {
  margin-top: 14px;
  color: #eab1ae;
  font-size: 0.84rem;
  font-weight: 560;
}

.weaving-core span {
  margin-top: 8px;
  color: #ca827f;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.result-scene {
  min-height: 100svh;
  overflow: visible;
  background: #f3dfda;
}

.result-header {
  position: sticky;
  top: 0;
  grid-template-columns: 44px 1fr 42px;
  color: var(--ink);
  background: rgba(43, 15, 23, 0.97);
}

.result-portrait {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 207, 0.4);
  border-radius: 50%;
}

.result-portrait img {
  width: 165%;
  height: 250%;
  object-fit: cover;
  object-position: center 39%;
  transform: translate(-20%, -25%);
}

.step-navigation {
  position: fixed;
  z-index: 9;
  top: 76px;
  left: 50%;
  width: min(100%, 480px);
  max-height: calc(100svh - 76px);
  padding: 12px 16px 24px;
  overflow-y: auto;
  transform: translateX(-50%);
  background: #2b0f17;
  box-shadow: 0 24px 46px rgba(17, 3, 7, 0.42);
}

.step-navigation a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 13px 4px;
  color: #f7ded8;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 218, 211, 0.12);
}

.step-navigation span {
  color: #d47775;
  font-variant-numeric: tabular-nums;
}

.result-intro {
  position: relative;
  min-height: 310px;
  padding: 86px 28px 60px;
  color: #fee8e1;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(123, 32, 42, 0.25), transparent 55%),
    #39141c;
}

.result-intro::after {
  position: absolute;
  right: -78px;
  bottom: 32px;
  width: 330px;
  height: 1px;
  content: "";
  background: #f43c45;
  box-shadow: 0 0 9px rgba(244, 60, 69, 0.9);
  transform: rotate(-16deg);
}

.result-seal {
  position: absolute;
  top: 46px;
  right: 30px;
  display: grid;
  width: 64px;
  height: 64px;
  color: #f3b3ad;
  font-family: serif;
  font-size: 2rem;
  place-items: center;
  border: 1px solid #ce6767;
  transform: rotate(6deg);
}

.result-intro p {
  position: relative;
  z-index: 2;
  max-width: 15ch;
  margin: 0;
  font-size: clamp(1.65rem, 7.4vw, 2.35rem);
  font-weight: 260;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.reading-panel {
  position: relative;
  min-height: 460px;
  padding: 68px 26px 72px;
  color: var(--paper-ink);
  overflow: hidden;
  border-bottom: 1px solid rgba(84, 31, 36, 0.16);
  background: var(--paper);
  scroll-margin-top: 78px;
}

.reading-panel:nth-child(even) {
  color: #f9e7e1;
  border-bottom-color: rgba(255, 218, 210, 0.14);
  background: #32121a;
}

.reading-panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  content: "";
  background: currentColor;
  opacity: 0.14;
}

.panel-index {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: #a54c50;
  font-size: 0.7rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.reading-panel:nth-child(even) .panel-index {
  color: #df8e8a;
}

.panel-index::after {
  width: 46px;
  height: 1px;
  content: "";
  background: currentColor;
}

.reading-panel h2 {
  max-width: 13ch;
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 8vw, 2.7rem);
  font-weight: 320;
  line-height: 1.22;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.panel-lead {
  max-width: 24ch;
  margin: 0 0 28px;
  color: #8d474a;
  font-size: 1.02rem;
  font-weight: 620;
  line-height: 1.62;
}

.reading-panel:nth-child(even) .panel-lead {
  color: #e9aaa5;
}

.panel-body {
  display: grid;
  max-width: 68ch;
  gap: 16px;
}

.panel-body p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.86;
}

.panel-evidence {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.evidence-item {
  padding: 16px 14px;
  border-top: 1px solid currentColor;
}

.evidence-item span {
  display: block;
  margin-bottom: 7px;
  color: #aa5c5f;
  font-size: 0.68rem;
  font-weight: 720;
}

.reading-panel:nth-child(even) .evidence-item span {
  color: #d88884;
}

.evidence-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 590;
  line-height: 1.45;
}

.reading-panel--comparison {
  background:
    linear-gradient(90deg, #f6e7e2 0 49.85%, #e5cbc5 50.15% 100%);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}

.comparison-grid h3 {
  margin: 0 0 10px;
  color: #8f3941;
  font-size: 0.78rem;
  font-weight: 760;
}

.comparison-grid p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
}

.reading-panel--quote {
  display: grid;
  min-height: 570px;
  align-content: center;
  color: #f8ded8;
  background: #45151d;
}

.reading-panel--quote h2,
.reading-panel--quote .panel-body {
  color: #f0c6c0;
}

.reading-panel--quote .panel-index {
  color: #e58e89;
}

.reading-panel--quote .panel-lead {
  max-width: 17ch;
  color: #ffd4cb;
  font-size: clamp(1.34rem, 6vw, 1.8rem);
  font-weight: 300;
  line-height: 1.55;
}

.reading-panel--quote::after {
  position: absolute;
  right: -90px;
  bottom: 68px;
  width: 350px;
  height: 185px;
  content: "";
  border: 1px solid #ff3d47;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 52, 62, 0.45);
  transform: rotate(-12deg);
}

.reading-panel--timing {
  background: #f7ebe6;
}

.timing-list {
  display: grid;
  gap: 0;
  margin-top: 34px;
}

.timing-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 19px 0;
  border-top: 1px solid rgba(87, 34, 40, 0.2);
}

.timing-item time {
  color: #9a3e45;
  font-size: 0.76rem;
  font-weight: 730;
}

.timing-item strong,
.timing-item p {
  display: block;
  margin: 0;
}

.timing-item strong {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.timing-item p {
  font-size: 0.82rem;
  line-height: 1.65;
}

.reading-panel--advice {
  color: #fae7e0;
  background: #240d13;
}

.advice-steps {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  counter-reset: advice;
}

.advice-step {
  position: relative;
  padding: 0 0 18px 48px;
  border-bottom: 1px solid rgba(255, 222, 214, 0.16);
  counter-increment: advice;
}

.advice-step::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #e47774;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  content: "0" counter(advice);
}

.advice-step strong,
.advice-step p {
  display: block;
  margin: 0;
}

.advice-step strong {
  margin-bottom: 6px;
  color: #ffd8d0;
  font-size: 0.94rem;
}

.advice-step p {
  color: #e6bab5;
  font-size: 0.84rem;
  line-height: 1.7;
}

.result-footer {
  padding: 58px 24px max(34px, env(safe-area-inset-bottom));
  color: #efc9c3;
  background: #17090e;
}

.result-footer > p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 18px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 12px 15px;
  color: #fff5f1;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 226, 218, 0.24);
  border-radius: 12px;
  background: #531822;
  box-shadow: 0 14px 32px rgba(15, 3, 7, 0.36);
}

@media (max-width: 374px) {
  .field-row,
  .comparison-grid,
  .footer-actions {
    grid-template-columns: 1fr;
  }

  .reading-panel {
    padding-inline: 22px;
  }
}

@media (min-width: 700px) {
  .experience {
    margin-block: 28px;
    min-height: calc(100svh - 56px);
    border-radius: 18px;
  }

  .scene,
  .cover-start,
  .intro-scene video,
  .weaving-core {
    min-height: calc(100svh - 58px);
    height: calc(100svh - 58px);
  }

  .result-scene {
    height: auto;
  }

  .consultation-scene {
    height: calc(100svh - 58px);
  }

  .consultation-scene .oracle-stage {
    height: calc(100svh - 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .weaving-thread path { stroke-dashoffset: 0; }
  .thread-knots circle { opacity: 1; }
}
