:root {
  --night: #100b1e;
  --night-soft: #18102b;
  --plum: #2a193f;
  --plum-light: #3b2657;
  --cream: #faf2e3;
  --cream-deep: #efe1c8;
  --ink: #2a1b36;
  --ink-soft: #695b6e;
  --gold: #d9b66f;
  --gold-bright: #f1d79f;
  --gold-deep: #b88b48;
  --paper-gold: rgba(194, 151, 81, 0.28);
  --text: #f7efdf;
  --muted: #b8aac4;
  --line: rgba(229, 198, 141, 0.2);
  --line-soft: rgba(229, 198, 141, 0.11);
  --rose: #e1a4a9;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 52% at 50% -10%, rgba(114, 73, 157, 0.27), transparent 65%),
    radial-gradient(ellipse 60% 45% at 110% 38%, rgba(178, 125, 71, 0.1), transparent 58%),
    linear-gradient(180deg, #0f0a1d 0%, #18102b 42%, #110c20 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

p,
h1,
h2,
h3,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
blockquote {
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(217, 182, 111, 0.32);
  color: #fff9eb;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

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

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}

.ambient-glow--one {
  top: -18vh;
  left: 8vw;
  width: 58vw;
  height: 55vw;
  background: rgba(92, 57, 127, 0.26);
}

.ambient-glow--two {
  right: -24vw;
  top: 48vh;
  width: 60vw;
  height: 60vw;
  background: rgba(185, 136, 70, 0.1);
}

.starfield {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: #f7e8c8;
  opacity: var(--opacity, 0.4);
  box-shadow: 0 0 7px rgba(247, 232, 200, 0.36);
  animation: twinkle var(--duration, 5s) ease-in-out var(--delay, 0s) infinite;
}

.star--cross {
  border-radius: 0;
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: var(--size, 7px);
  line-height: 1;
  opacity: var(--opacity, 0.5);
  box-shadow: none;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 250, 238, 0.42) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 42px);
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(13, 9, 26, 0.9) 0%, rgba(13, 9, 26, 0.65) 65%, transparent 100%);
  backdrop-filter: blur(5px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(224, 190, 127, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(245, 219, 169, 0.18), transparent 48%),
    rgba(73, 44, 97, 0.5);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 19px;
  box-shadow: inset 0 0 0 3px rgba(15, 10, 28, 0.55);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-en {
  color: var(--gold);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.23em;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(229, 198, 141, 0.18);
  border-radius: 999px;
  color: rgba(247, 239, 223, 0.7);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.header-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px rgba(217, 182, 111, 0.7);
}

main {
  position: relative;
  padding-top: 72px;
}

.view {
  min-height: calc(100svh - 72px);
}

.view.is-active {
  animation: view-in 520ms var(--ease-out) both;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.kicker > span {
  width: 23px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.kicker > span::after {
  content: "✦";
  display: block;
  margin-left: 19px;
  font-size: 7px;
  transform: translateY(-5px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  border-color: rgba(255, 240, 202, 0.34);
  background: linear-gradient(135deg, #f4dcaa 0%, #ddb76f 48%, #c89a54 100%);
  color: #2a1a37;
  box-shadow:
    0 14px 34px rgba(198, 148, 77, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  box-shadow:
    0 18px 42px rgba(198, 148, 77, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-outline {
  border-color: rgba(229, 198, 141, 0.4);
  background: rgba(20, 13, 35, 0.32);
  color: var(--gold-bright);
}

.btn-outline:hover {
  border-color: rgba(241, 215, 159, 0.75);
  background: rgba(229, 198, 141, 0.09);
}

.btn-full {
  width: 100%;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: rgba(247, 239, 223, 0.62);
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: rgba(229, 198, 141, 0.28);
  text-underline-offset: 4px;
  transition: color 180ms ease;
}

.text-button:hover {
  color: var(--gold-bright);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* Home */
.home-view {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4.3vw, 50px) 88px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(20px, 4vw, 62px);
  min-height: calc(100svh - 104px);
  padding: 26px 0 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 650px;
}

.hero-copy .kicker {
  margin-bottom: 24px;
  animation: rise-in 720ms 80ms var(--ease-out) both;
}

.hero-copy h1 {
  max-width: 680px;
  color: #fff8eb;
  font-family: var(--font-display);
  font-size: clamp(56px, 7.2vw, 94px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-shadow: 0 12px 60px rgba(0, 0, 0, 0.24);
  animation: rise-in 820ms 130ms var(--ease-out) both;
}

.hero-copy h1 em {
  color: transparent;
  background: linear-gradient(115deg, #fbf0d6 5%, #dcb872 48%, #af7c3c 92%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
  text-shadow: none;
}

.hero-subtitle {
  margin-top: 25px;
  color: rgba(247, 239, 223, 0.91);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 23px);
  letter-spacing: 0.025em;
  line-height: 1.7;
  animation: rise-in 820ms 210ms var(--ease-out) both;
}

.hero-description {
  max-width: 475px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  animation: rise-in 820ms 280ms var(--ease-out) both;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  animation: rise-in 820ms 350ms var(--ease-out) both;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid rgba(229, 198, 141, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.035);
  color: rgba(247, 239, 223, 0.79);
  font-size: 10px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(5px);
}

.hero-tags i {
  color: var(--gold);
  font-style: normal;
}

.hero-cta {
  min-width: 280px;
  margin-top: 30px;
  min-height: 58px;
  padding: 0 28px;
  animation: rise-in 820ms 420ms var(--ease-out) both;
}

.hero-cta .icon {
  transition: transform 180ms ease;
}

.hero-cta:hover .icon {
  transform: translateX(3px);
}

.micro-disclaimer {
  margin-top: 12px;
  color: rgba(184, 170, 196, 0.62);
  font-size: 9px;
  letter-spacing: 0.06em;
  animation: rise-in 820ms 470ms var(--ease-out) both;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 540px;
  animation: art-in 1100ms 240ms var(--ease-out) both;
}

.oracle-stage {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 0.85;
  display: grid;
  place-items: center;
}

.oracle-stage::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 146, 84, 0.18), rgba(90, 59, 123, 0.09) 43%, transparent 70%);
  filter: blur(20px);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(229, 198, 141, 0.16);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 13px rgba(217, 182, 111, 0.6);
}

.orbit--outer {
  width: 92%;
  aspect-ratio: 1;
  border-style: dashed;
  opacity: 0.44;
  animation: orbit-spin 56s linear infinite;
}

.orbit--outer::before {
  top: 12%;
  right: 16%;
}

.orbit--outer::after {
  bottom: 7%;
  left: 29%;
  width: 3px;
  height: 3px;
}

.orbit--inner {
  width: 74%;
  aspect-ratio: 1;
  opacity: 0.42;
}

.orbit--inner::before {
  left: 8%;
  top: 35%;
}

.orbit--inner::after {
  right: 13%;
  bottom: 20%;
  width: 3px;
  height: 3px;
}

.rune {
  position: absolute;
  z-index: 1;
  color: rgba(232, 197, 133, 0.55);
  font-family: var(--font-display);
  text-shadow: 0 0 18px rgba(217, 182, 111, 0.35);
}

.rune--one {
  top: 14%;
  left: 4%;
  font-size: 24px;
}

.rune--two {
  top: 8%;
  right: 16%;
  font-size: 12px;
}

.rune--three {
  right: 3%;
  bottom: 22%;
  font-size: 18px;
}

.oracle-card {
  position: relative;
  z-index: 2;
  width: min(302px, 67%);
  aspect-ratio: 0.67;
  padding: 17px 17px 15px;
  border: 1px solid rgba(229, 198, 141, 0.54);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 28%, rgba(111, 69, 143, 0.5), transparent 38%),
    linear-gradient(145deg, #27173e 0%, #170f2a 56%, #231639 100%);
  box-shadow:
    0 38px 80px rgba(0, 0, 0, 0.45),
    0 0 0 7px rgba(217, 182, 111, 0.035),
    inset 0 0 45px rgba(229, 198, 141, 0.045);
  transform: rotate(-4deg);
  overflow: hidden;
}

.oracle-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(229, 198, 141, 0.19);
  border-radius: 13px;
  pointer-events: none;
}

.oracle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 241, 207, 0.07) 46%, transparent 65%);
  transform: translateX(-130%);
  animation: card-sheen 8s 2.4s ease-in-out infinite;
  pointer-events: none;
}

.card-corner {
  position: absolute;
  width: 25px;
  height: 25px;
  border-color: rgba(229, 198, 141, 0.54);
  z-index: 2;
}

.card-corner--tl {
  top: 12px;
  left: 12px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.card-corner--tr {
  top: 12px;
  right: 12px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.card-corner--bl {
  bottom: 12px;
  left: 12px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.card-corner--br {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.card-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 1px 5px;
  color: rgba(229, 198, 141, 0.62);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.card-seal {
  position: absolute;
  z-index: 3;
  top: 43px;
  right: 25px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(229, 198, 141, 0.35);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 15px;
  opacity: 0.82;
}

.card-art {
  position: relative;
  z-index: 1;
  height: 55%;
  margin: 7px 0 -2px;
}

.card-art svg {
  width: 100%;
  height: 100%;
}

.card-caption {
  position: relative;
  z-index: 2;
  text-align: center;
}

.card-caption > p {
  color: rgba(229, 198, 141, 0.56);
  font-size: 7px;
  letter-spacing: 0.26em;
}

.card-caption h2 {
  margin-top: 5px;
  color: #fff3da;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.card-caption h2 em {
  color: var(--gold-bright);
  font-style: normal;
}

.card-caption small {
  display: block;
  margin-top: 8px;
  color: rgba(229, 198, 141, 0.36);
  font-size: 5px;
  letter-spacing: 0.19em;
  line-height: 1.6;
}

.card-bottomline {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 14px;
  left: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(229, 198, 141, 0.43);
  font-size: 6px;
  letter-spacing: 0.13em;
  text-align: center;
}

.card-bottomline span:nth-child(2) {
  flex: 1;
}

.card-bottomline span:first-child,
.card-bottomline span:last-child {
  font-size: 5px;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 124px;
  padding: 10px 12px;
  border: 1px solid rgba(229, 198, 141, 0.25);
  border-radius: 13px;
  background: rgba(31, 20, 50, 0.82);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.floating-card > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(229, 198, 141, 0.25);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 10px;
}

.floating-card b,
.floating-card small {
  display: block;
}

.floating-card b {
  color: #f6ead4;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.floating-card small {
  margin-top: 2px;
  color: rgba(184, 170, 196, 0.65);
  font-size: 7px;
}

.floating-card--one {
  top: 22%;
  right: 1%;
  animation: float-soft 6s ease-in-out infinite;
}

.floating-card--two {
  bottom: 17%;
  left: 1%;
  animation: float-soft 7s 1s ease-in-out infinite reverse;
}

.home-ritual {
  padding: clamp(54px, 7vw, 96px) 0 18px;
  border-top: 1px solid rgba(229, 198, 141, 0.1);
}

.ritual-heading {
  max-width: 650px;
}

.ritual-heading h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.32;
}

.ritual-heading h2 em {
  color: var(--gold-bright);
  font-style: normal;
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.ritual-card {
  position: relative;
  min-height: 222px;
  padding: 25px 22px 22px;
  border: 1px solid rgba(229, 198, 141, 0.15);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 250, 238, 0.055), rgba(255, 250, 238, 0.018)),
    rgba(19, 12, 32, 0.28);
  overflow: hidden;
}

.ritual-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(229, 198, 141, 0.1);
  border-radius: 50%;
}

.ritual-number {
  position: absolute;
  top: 12px;
  right: 18px;
  color: rgba(229, 198, 141, 0.18);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.ritual-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(229, 198, 141, 0.24);
  border-radius: 50%;
  color: var(--gold);
  font-size: 16px;
}

.ritual-card h3 {
  margin-top: 26px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ritual-card p {
  margin-top: 8px;
  color: rgba(184, 170, 196, 0.77);
  font-size: 11px;
  line-height: 1.75;
}

.manifesto {
  position: relative;
  margin-top: 18px;
  padding: clamp(38px, 6vw, 62px) 24px;
  border: 1px solid rgba(229, 198, 141, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(123, 82, 157, 0.2), transparent 60%),
    rgba(20, 13, 34, 0.36);
  text-align: center;
  overflow: hidden;
}

.manifesto::before,
.manifesto::after {
  content: "✦";
  position: absolute;
  color: rgba(229, 198, 141, 0.3);
  font-size: 10px;
}

.manifesto::before {
  top: 26px;
  left: 28px;
}

.manifesto::after {
  right: 28px;
  bottom: 26px;
}

.manifesto-mark {
  position: absolute;
  top: 16px;
  left: 50%;
  color: rgba(229, 198, 141, 0.17);
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  transform: translateX(-50%);
}

.manifesto p {
  position: relative;
  color: #f8efdd;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.4vw, 39px);
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.manifesto cite {
  display: block;
  margin-top: 16px;
  color: rgba(184, 170, 196, 0.62);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.13em;
}

.manifesto .btn {
  min-width: 230px;
  margin-top: 27px;
}

/* Flow shell */
.flow-view {
  position: relative;
}

.flow-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(900px, 100%);
  height: 640px;
  background: radial-gradient(ellipse at 50% 5%, rgba(110, 70, 148, 0.2), transparent 64%);
  transform: translateX(-50%);
  pointer-events: none;
}

.flow-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 28px 20px 94px;
}

.flow-shell--quiz {
  width: min(100%, 800px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(247, 239, 223, 0.62);
  font-size: 11px;
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--gold-bright);
}

.step-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}

.step-rail__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(184, 170, 196, 0.46);
  font-size: 9px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.step-rail__item b {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
}

.step-rail__item.is-current {
  color: var(--gold-bright);
}

.step-rail > i {
  width: 30px;
  height: 1px;
  background: rgba(229, 198, 141, 0.17);
}

.flow-heading {
  margin-top: clamp(26px, 4vw, 42px);
}

.flow-heading h2 {
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.flow-heading h2 em {
  color: var(--gold-bright);
  font-style: normal;
}

.flow-heading > p:last-child {
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
}

.flow-footnote {
  margin-top: 18px;
  color: rgba(184, 170, 196, 0.52);
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.upload-card {
  position: relative;
  margin-top: 30px;
  padding: clamp(20px, 3.6vw, 32px);
  border: 1px solid rgba(255, 248, 233, 0.8);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 180, 121, 0.12), transparent 42%),
    linear-gradient(150deg, #fffaf0 0%, #f5ead8 55%, #eee0c8 100%);
  color: var(--ink);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.upload-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(127, 93, 55, 0.1);
  border-radius: 23px;
  pointer-events: none;
}

.upload-empty {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px 10px;
  text-align: center;
}

.upload-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px dashed rgba(101, 65, 119, 0.32);
  border-radius: 50%;
  color: var(--plum);
}

.upload-orbit::before,
.upload-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(101, 65, 119, 0.12);
  border-radius: 50%;
}

.upload-orbit::before {
  inset: 10px;
}

.upload-orbit::after {
  inset: 24px;
  background: rgba(255, 255, 255, 0.42);
}

.upload-orbit .icon {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  stroke-width: 1.2;
}

.upload-orbit > span {
  position: absolute;
  z-index: 3;
  top: 4px;
  right: 13px;
  color: var(--gold-deep);
  font-size: 10px;
}

.upload-empty h3 {
  margin-top: 23px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.upload-empty > p {
  max-width: 360px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 430px;
  margin-top: 25px;
}

.btn-upload-primary,
.btn-upload-secondary {
  min-height: 48px;
  border-radius: 15px;
  font-size: 12px;
}

.btn-upload-primary {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(140deg, #38234e, #231534);
  color: #fff3db;
  box-shadow: 0 10px 24px rgba(42, 27, 54, 0.18);
}

.btn-upload-secondary {
  border-color: rgba(49, 30, 64, 0.18);
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
}

.btn-upload-secondary:hover {
  background: rgba(255, 255, 255, 0.62);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  max-width: 380px;
  margin-top: 19px;
  color: rgba(63, 46, 74, 0.61);
  font-size: 9px;
  line-height: 1.55;
}

.privacy-note .icon {
  margin-top: 1px;
  font-size: 11px;
}

.camera-fallback {
  margin-top: 5px !important;
  color: rgba(63, 46, 74, 0.38) !important;
  font-size: 8px !important;
}

.photo-preview {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  padding: 9px 0 5px;
}

.photo-preview__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 440px;
  margin: 0 auto;
  border: 1px solid rgba(198, 155, 90, 0.4);
  border-radius: 23px;
  background: #241632;
  box-shadow: 0 22px 45px rgba(44, 27, 56, 0.22);
  overflow: hidden;
}

.photo-preview__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(21, 12, 32, 0.5));
  pointer-events: none;
}

.photo-preview__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-corner {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 240, 206, 0.76);
}

.frame-corner--tl {
  top: 13px;
  left: 13px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.frame-corner--tr {
  top: 13px;
  right: 13px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.frame-corner--bl {
  bottom: 13px;
  left: 13px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.frame-corner--br {
  right: 13px;
  bottom: 13px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.preview-label {
  position: absolute;
  z-index: 3;
  bottom: 17px;
  left: 50%;
  color: rgba(255, 242, 217, 0.54);
  font-size: 6px;
  letter-spacing: 0.23em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.photo-status {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.photo-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.btn-quiet {
  min-height: 43px;
  border-color: rgba(49, 30, 64, 0.15);
  background: rgba(255, 255, 255, 0.32);
  color: var(--ink);
  font-size: 11px;
  border-radius: 13px;
}

.photo-preview .btn-full {
  min-height: 53px;
  margin-top: 13px;
  border-radius: 15px;
}

.privacy-note--dark {
  margin: 12px auto 0;
}

/* Transition */
.transition-view {
  display: grid;
  place-items: center;
  padding: 50px 20px 90px;
  overflow: hidden;
}

.transition-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 620px);
  text-align: center;
}

.transition-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 174px;
  height: 174px;
  margin-bottom: 34px;
}

.transition-portrait::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 182, 111, 0.18), transparent 66%);
  filter: blur(12px);
}

.transition-portrait img {
  position: relative;
  z-index: 2;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(229, 198, 141, 0.56);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    0 0 0 8px rgba(229, 198, 141, 0.045);
}

.transition-ring {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(229, 198, 141, 0.27);
  border-radius: 50%;
}

.transition-ring--one {
  inset: 11px;
  border-style: dashed;
  animation: orbit-spin 19s linear infinite;
}

.transition-ring--two {
  inset: -6px;
  opacity: 0.42;
  animation: pulse-ring 2.8s ease-in-out infinite;
}

.transition-star {
  position: absolute;
  z-index: 3;
  color: var(--gold-bright);
  font-size: 10px;
  animation: twinkle 2.4s ease-in-out infinite;
}

.transition-star--one {
  top: 7px;
  right: 16px;
}

.transition-star--two {
  bottom: 15px;
  left: 9px;
  animation-delay: 0.6s;
}

.transition-star--three {
  top: 41%;
  right: -9px;
  animation-delay: 1.2s;
}

.transition-shell .kicker {
  justify-content: center;
}

.transition-shell h2 {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: clamp(31px, 5vw, 46px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.42;
}

.transition-copy {
  max-width: 380px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.reading-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.reading-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(229, 198, 141, 0.15);
  border-radius: 999px;
  color: rgba(247, 239, 223, 0.62);
  font-size: 9px;
}

.reading-list i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

.reading-list span:nth-child(2) i {
  animation-delay: 0.35s;
}

.reading-list span:nth-child(3) i {
  animation-delay: 0.7s;
}

/* Quiz */
.quiz-view::before {
  height: 500px;
}

.quiz-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-counter {
  color: rgba(247, 239, 223, 0.48);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.quiz-counter b {
  color: var(--gold-bright);
  font-size: 24px;
  font-weight: 500;
}

.progress-wrap {
  margin-top: 20px;
}

.progress-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(229, 198, 141, 0.12);
  overflow: hidden;
}

.progress-track > i {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b58545, #f2d9a2);
  box-shadow: 0 0 12px rgba(229, 198, 141, 0.34);
  transition: width 520ms var(--ease-out);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: rgba(184, 170, 196, 0.57);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.quiz-card {
  position: relative;
  margin-top: 22px;
  padding: clamp(21px, 4vw, 36px);
  border: 1px solid rgba(255, 248, 233, 0.82);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 5%, rgba(221, 186, 123, 0.13), transparent 31%),
    linear-gradient(152deg, #fffbf2 0%, #f5ead8 62%, #eee0c8 100%);
  color: var(--ink);
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.29),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.quiz-card::after {
  content: "";
  position: absolute;
  top: -65px;
  right: -55px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(111, 76, 51, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(111, 76, 51, 0.035);
  pointer-events: none;
}

.quiz-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quiz-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8b6636;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.quiz-tag::before {
  content: "✦";
  font-size: 8px;
}

.quiz-hint {
  color: rgba(73, 54, 81, 0.47);
  font-size: 9px;
}

.quiz-card h2 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-top: 17px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(25px, 4vw, 35px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.42;
}

.quiz-options {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 11px 14px;
  border: 1px solid rgba(57, 37, 70, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  text-align: left;
  transition:
    transform 170ms var(--ease-out),
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease;
}

.quiz-option:hover {
  border-color: rgba(98, 67, 113, 0.36);
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

.quiz-option.is-selected {
  border-color: rgba(77, 48, 95, 0.76);
  background: linear-gradient(135deg, #3a2450, #251637);
  color: #fff7e8;
  box-shadow: 0 13px 28px rgba(38, 22, 54, 0.19);
}

.option-letter {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(67, 43, 82, 0.18);
  border-radius: 50%;
  color: #7d5931;
  font-family: var(--font-display);
  font-size: 12px;
  transition: inherit;
}

.quiz-option.is-selected .option-letter {
  border-color: rgba(255, 237, 199, 0.38);
  background: rgba(229, 198, 141, 0.1);
  color: var(--gold-bright);
}

.option-copy {
  min-width: 0;
}

.option-copy b {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.option-copy small {
  display: block;
  margin-top: 2px;
  color: rgba(73, 54, 81, 0.58);
  font-size: 10px;
  line-height: 1.5;
  transition: color 170ms ease;
}

.quiz-option.is-selected .option-copy small {
  color: rgba(255, 247, 232, 0.62);
}

.option-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(55, 35, 68, 0.16);
  border-radius: 50%;
  color: transparent;
  font-size: 10px;
}

.quiz-option.is-selected .option-check {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.quiz-option.is-selected .option-check .icon {
  stroke-width: 2.4;
}

.quiz-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
}

.quiz-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 180px;
}

.quiz-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(62, 42, 74, 0.15);
  transition: width 220ms ease, background 220ms ease;
}

.quiz-dot.is-done {
  background: rgba(134, 99, 56, 0.48);
}

.quiz-dot.is-current {
  width: 18px;
  border-radius: 999px;
  background: #9a7036;
}

.quiz-actions .btn {
  min-width: 150px;
  min-height: 48px;
  border-radius: 14px;
  font-size: 12px;
}

/* Result */
.result-view {
  --d-bg: #1b1135;
  --d-bg2: #3b205f;
  --d-accent: #e8bd70;
  --d-accent-soft: #fae7bc;
  --d-ink: #fff8ea;
  --d-aura: rgba(232, 189, 112, 0.28);
}

.result-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1000px, 100%);
  height: 720px;
  background: radial-gradient(ellipse at 50% 2%, var(--d-aura), transparent 63%);
  opacity: 0.52;
  transform: translateX(-50%);
  pointer-events: none;
}

.result-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 26px 20px 146px;
}

.result-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.result-topline h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.5vw, 34px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.fortune-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(20px, 4vw, 38px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 248, 235, 0.86);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 12%, var(--d-aura), transparent 34%),
    radial-gradient(circle at 92% 90%, rgba(255, 255, 255, 0.48), transparent 32%),
    linear-gradient(148deg, #fffbf2 0%, #f5ead8 58%, #eee0c9 100%);
  color: var(--d-bg);
  box-shadow:
    0 44px 100px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.fortune-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(88, 60, 46, 0.1);
  border-radius: 24px;
  pointer-events: none;
}

.fortune-card::after {
  content: "✦";
  position: absolute;
  top: 29px;
  right: 34px;
  color: rgba(118, 80, 49, 0.16);
  font-size: 13px;
}

.fortune-aura {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 330px;
  height: 330px;
  border: 1px solid var(--d-accent);
  border-radius: 50%;
  opacity: 0.13;
  box-shadow:
    0 0 0 35px rgba(120, 86, 54, 0.025),
    0 0 0 70px rgba(120, 86, 54, 0.018);
  pointer-events: none;
}

.fortune-photo-wrap {
  position: relative;
  z-index: 1;
  padding: 13px 10px 31px;
}

.fortune-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(99, 65, 36, 0.28);
  border-radius: 130px 130px 21px 21px;
  background: var(--d-bg);
  box-shadow:
    0 25px 45px rgba(59, 40, 25, 0.19),
    0 0 0 6px rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.fortune-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(26, 14, 38, 0.3));
  pointer-events: none;
}

.fortune-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fortune-stamp {
  position: absolute;
  z-index: 3;
  right: -1px;
  bottom: 17px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--d-accent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.13), transparent 50%),
    var(--d-bg);
  color: var(--d-accent-soft);
  font-family: var(--font-display);
  font-size: 22px;
  box-shadow:
    0 13px 25px rgba(42, 24, 51, 0.22),
    inset 0 0 0 4px rgba(255, 255, 255, 0.045);
}

.fortune-photo-caption {
  position: absolute;
  bottom: 11px;
  left: 21px;
  color: rgba(74, 49, 45, 0.43);
  font-size: 5px;
  letter-spacing: 0.2em;
}

.fortune-identity {
  position: relative;
  z-index: 1;
  padding: 13px 9px 14px 0;
}

.result-eyebrow {
  color: rgba(62, 45, 66, 0.56);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.result-english {
  margin-top: 15px;
  color: var(--d-accent);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.fortune-identity h2 {
  margin-top: 4px;
  color: var(--d-bg);
  font-family: var(--font-display);
  font-size: clamp(40px, 5.7vw, 58px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.result-title {
  margin-top: 7px;
  color: #795b34;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.result-quote {
  position: relative;
  margin-top: 18px;
  padding: 14px 0 0 14px;
  border-left: 1px solid rgba(135, 94, 54, 0.3);
  color: rgba(47, 32, 53, 0.73);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.8;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.keyword-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid rgba(110, 80, 55, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: rgba(70, 50, 72, 0.68);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.result-signature {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: rgba(70, 50, 72, 0.42);
  font-size: 7px;
  letter-spacing: 0.11em;
}

.result-signature::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(94, 60, 39, 0.25);
}

.result-signature b {
  color: rgba(70, 50, 72, 0.62);
  font-weight: 700;
}

.index-card {
  margin-top: 14px;
  padding: clamp(21px, 3.4vw, 32px);
  border: 1px solid rgba(229, 198, 141, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 0%, rgba(137, 93, 173, 0.12), transparent 35%),
    rgba(255, 250, 238, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading-row h2,
.report-preview-card > h2 {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.fun-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(229, 198, 141, 0.2);
  border-radius: 999px;
  color: rgba(229, 198, 141, 0.67);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.section-note {
  max-width: 530px;
  margin-top: 10px;
  color: rgba(184, 170, 196, 0.63);
  font-size: 9px;
  line-height: 1.65;
}

.index-list {
  display: grid;
  gap: 19px;
  margin-top: 25px;
}

.index-item {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(229, 198, 141, 0.09);
}

.index-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.index-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.index-heading > span {
  color: rgba(247, 239, 223, 0.83);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.index-heading strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.index-heading small {
  margin-left: 2px;
  color: rgba(184, 170, 196, 0.43);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 400;
}

.index-track {
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.08);
  overflow: hidden;
}

.index-track > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b98c4b, #f1d79f);
  box-shadow: 0 0 13px rgba(229, 198, 141, 0.3);
  transition: width 920ms 180ms var(--ease-out);
}

.index-item:nth-child(2) .index-track > i {
  background: linear-gradient(90deg, #8d75a2, #d8c2e5);
  box-shadow: 0 0 13px rgba(197, 168, 220, 0.25);
}

.index-item:nth-child(3) .index-track > i {
  background: linear-gradient(90deg, #9b655a, #e8b9a2);
  box-shadow: 0 0 13px rgba(225, 164, 169, 0.23);
}

.index-item > p {
  margin-top: 9px;
  color: rgba(184, 170, 196, 0.63);
  font-size: 9px;
  line-height: 1.65;
}

.report-preview-card {
  margin-top: 14px;
  padding: clamp(23px, 4vw, 34px);
  border: 1px solid rgba(255, 249, 237, 0.83);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 5%, rgba(218, 181, 116, 0.16), transparent 35%),
    linear-gradient(145deg, #fffaf0, #f4e8d5 60%, #efdfc5);
  color: var(--ink);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
}

.report-preview-card .kicker {
  color: #966f38;
}

.report-preview-card .kicker > span {
  background: linear-gradient(90deg, transparent, #b58a4e);
}

.relation-summary {
  max-width: 690px;
  margin-top: 16px;
  color: rgba(46, 31, 52, 0.76);
  font-size: 12px;
  line-height: 1.9;
}

.answer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.answer-pills span {
  padding: 5px 9px;
  border: 1px solid rgba(86, 54, 39, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: rgba(56, 39, 63, 0.6);
  font-size: 8px;
}

.btn-report-toggle {
  width: 100%;
  min-height: 49px;
  margin-top: 22px;
  border-color: rgba(69, 43, 78, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.27);
  color: var(--ink);
  font-size: 11px;
}

.btn-report-toggle .icon {
  transition: transform 220ms var(--ease-out);
}

.btn-report-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.report-details {
  margin-top: 14px;
  padding: 0 clamp(21px, 4vw, 34px);
  border: 1px solid rgba(229, 198, 141, 0.15);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.045), rgba(255, 250, 238, 0.025)),
    rgba(15, 10, 28, 0.28);
}

.report-section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(229, 198, 141, 0.1);
}

.report-numeral {
  color: rgba(229, 198, 141, 0.3);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
}

.report-label {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.report-section h2 {
  margin-top: 8px;
  color: #f8f0e0;
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.report-section__body > p:not(.report-label) {
  margin-top: 12px;
  color: rgba(230, 221, 231, 0.72);
  font-size: 11px;
  line-height: 1.9;
}

.wish-line {
  padding: 12px 14px;
  border-left: 1px solid rgba(229, 198, 141, 0.35);
  background: rgba(229, 198, 141, 0.045);
  color: rgba(247, 239, 223, 0.74) !important;
  font-family: var(--font-display);
  font-size: 11px !important;
}

.reminder-box {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 17px;
  padding: 15px;
  border: 1px solid rgba(229, 198, 141, 0.18);
  border-radius: 15px;
  background: rgba(229, 198, 141, 0.065);
}

.reminder-box .icon {
  margin-top: 2px;
  color: var(--gold);
}

.reminder-box p {
  color: rgba(247, 239, 223, 0.8);
  font-size: 11px;
  line-height: 1.8;
}

.closing-card {
  position: relative;
  margin: 27px 0;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(229, 198, 141, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 198, 141, 0.12), transparent 62%),
    rgba(229, 198, 141, 0.035);
  text-align: center;
  overflow: hidden;
}

.closing-card blockquote {
  max-width: 570px;
  margin: 14px auto 0;
  color: #fff6e6;
  font-family: var(--font-display);
  font-size: clamp(19px, 3vw, 25px);
  letter-spacing: 0.025em;
  line-height: 1.7;
}

.closing-flourish {
  display: block;
  margin-top: 14px;
  color: rgba(229, 198, 141, 0.56);
  font-size: 9px;
}

.scoring-details {
  padding: 0 0 26px;
  color: rgba(184, 170, 196, 0.68);
  font-size: 9px;
  line-height: 1.8;
}

.scoring-details summary {
  padding: 15px 0 2px;
  color: rgba(229, 198, 141, 0.72);
  cursor: pointer;
  font-size: 10px;
}

.scoring-details p {
  margin-top: 9px;
}

.score-ranking {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 18px;
  margin-top: 13px;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(229, 198, 141, 0.08);
}

.score-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-row b {
  color: rgba(241, 215, 159, 0.72);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
}

.score-row.is-winner span,
.score-row.is-winner b {
  color: var(--gold-bright);
}

.share-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 198, 141, 0.14);
  border-radius: 15px;
  background: rgba(255, 250, 238, 0.028);
}

.share-prompt__icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border: 1px solid rgba(229, 198, 141, 0.2);
  border-radius: 50%;
  color: var(--gold);
}

.share-prompt p {
  color: rgba(247, 239, 223, 0.63);
  font-size: 9px;
  line-height: 1.65;
}

.result-disclaimer {
  margin-top: 16px;
  color: rgba(184, 170, 196, 0.43);
  font-size: 8px;
  line-height: 1.7;
  text-align: center;
}

.result-dock {
  position: fixed;
  z-index: 35;
  right: 0;
  bottom: calc(12px + var(--safe-bottom));
  left: 50%;
  display: flex;
  gap: 9px;
  width: min(calc(100% - 24px), 760px);
  padding: 9px;
  border: 1px solid rgba(229, 198, 141, 0.24);
  border-radius: 20px;
  background: rgba(24, 15, 40, 0.9);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.47),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.result-dock .btn {
  min-height: 52px;
  border-radius: 13px;
}

.result-dock__primary {
  flex: 1;
  font-size: 12px;
}

.result-dock__secondary {
  flex: 0 0 auto;
  min-width: 76px;
  border-color: rgba(229, 198, 141, 0.2);
  background: rgba(255, 250, 238, 0.04);
  color: rgba(247, 239, 223, 0.7);
  font-size: 10px;
}

[data-view="result"] .site-footer {
  display: none;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 38px 20px calc(34px + var(--safe-bottom));
  border-top: 1px solid rgba(229, 198, 141, 0.08);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: rgba(247, 239, 223, 0.8);
}

.footer-brand > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(229, 198, 141, 0.2);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10px;
}

.footer-brand b {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-brand small {
  color: rgba(229, 198, 141, 0.45);
  font-size: 6px;
  letter-spacing: 0.15em;
}

.site-footer > p {
  max-width: 570px;
  color: rgba(184, 170, 196, 0.42);
  font-size: 8px;
  line-height: 1.7;
}

.footer-copy {
  margin-top: 5px;
  color: rgba(184, 170, 196, 0.25) !important;
  letter-spacing: 0.07em;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 16, 0.78);
  backdrop-filter: blur(8px);
  animation: fade-in 220ms ease both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 690px);
  max-height: calc(100svh - 32px);
  padding: clamp(19px, 3vw, 28px);
  border: 1px solid rgba(255, 248, 233, 0.75);
  border-radius: 27px;
  background:
    radial-gradient(circle at 88% 3%, rgba(218, 181, 116, 0.13), transparent 34%),
    linear-gradient(148deg, #fffaf0, #f4e8d4 62%, #eddfc7);
  color: var(--ink);
  box-shadow: 0 45px 110px rgba(0, 0, 0, 0.55);
  overflow: auto;
  animation: modal-in 320ms var(--ease-out) both;
  overscroll-behavior: contain;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-head .kicker {
  color: #956d36;
}

.modal-head .kicker > span {
  background: linear-gradient(90deg, transparent, #b78d4e);
}

.modal-head h2 {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.modal-head .icon-button {
  border-color: rgba(53, 34, 64, 0.14);
  background: rgba(255, 255, 255, 0.33);
  color: var(--ink);
}

.poster-panel {
  width: min(100%, 590px);
  border-color: rgba(229, 198, 141, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(117, 75, 151, 0.3), transparent 42%),
    linear-gradient(155deg, #221534, #120c21 72%);
  color: var(--text);
}

.poster-panel .modal-head .kicker {
  color: var(--gold);
}

.poster-panel .modal-head h2 {
  color: var(--text);
}

.poster-panel .modal-head .icon-button {
  border-color: rgba(229, 198, 141, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.poster-viewport {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
  max-height: 59svh;
  margin-top: 17px;
  padding: 10px;
  border: 1px solid rgba(229, 198, 141, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%) 0 0 / 12px 12px,
    rgba(7, 4, 14, 0.42);
  overflow: hidden;
}

.poster-viewport img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 57svh;
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
}

.poster-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  color: rgba(247, 239, 223, 0.58);
  font-size: 10px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(229, 198, 141, 0.17);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: orbit-spin 0.8s linear infinite;
}

.poster-help {
  margin-top: 10px;
  color: rgba(184, 170, 196, 0.52);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 15px;
}

.modal-actions .btn {
  min-height: 49px;
  border-radius: 13px;
  font-size: 11px;
}

.btn-modal-secondary {
  border-color: rgba(229, 198, 141, 0.2);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.info-content {
  display: grid;
  gap: 20px;
  margin: 22px 0;
}

.info-content section {
  padding-top: 18px;
  border-top: 1px solid rgba(58, 38, 68, 0.1);
}

.info-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.info-content h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.info-content p {
  margin-top: 8px;
  color: rgba(50, 34, 57, 0.67);
  font-size: 10px;
  line-height: 1.85;
}

.info-content .soft-note {
  padding: 10px 12px;
  border-left: 1px solid rgba(136, 96, 47, 0.3);
  background: rgba(255, 255, 255, 0.24);
  color: rgba(50, 34, 57, 0.55);
  font-size: 9px;
}

.info-panel > .btn-full {
  min-height: 48px;
  border-radius: 13px;
}

.confirm-panel {
  width: min(100%, 430px);
  text-align: center;
}

.confirm-symbol {
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  margin: 0 auto 16px;
  border: 1px solid rgba(107, 73, 43, 0.22);
  border-radius: 50%;
  color: #956d36;
  font-family: var(--font-display);
  font-size: 24px;
}

.confirm-panel h2 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
}

.confirm-panel > p {
  margin-top: 9px;
  color: rgba(50, 34, 57, 0.63);
  font-size: 10px;
  line-height: 1.75;
}

.confirm-panel .modal-actions .btn-modal-secondary {
  border-color: rgba(55, 35, 66, 0.15);
  background: rgba(255, 255, 255, 0.33);
  color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 120;
  right: 50%;
  bottom: calc(25px + var(--safe-bottom));
  max-width: min(calc(100% - 34px), 440px);
  padding: 11px 16px;
  border: 1px solid rgba(229, 198, 141, 0.27);
  border-radius: 12px;
  background: rgba(30, 19, 45, 0.95);
  color: #f8efdf;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 14px);
  transition:
    opacity 200ms ease,
    transform 230ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

.noscript-message {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 200;
  padding: 14px;
  border-radius: 12px;
  background: #fff4df;
  color: #2a1b36;
  font-size: 12px;
  text-align: center;
}

/* Motion */
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: calc(var(--opacity, 0.4) * 0.55);
    transform: scale(0.85);
  }
  50% {
    opacity: var(--opacity, 0.4);
    transform: scale(1.06);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes card-sheen {
  0%,
  62% {
    transform: translateX(-130%);
  }
  84%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.03);
  }
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 32px;
    gap: 14px;
  }

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

  .hero-copy h1 {
    font-size: clamp(55px, 9vw, 80px);
  }

  .hero-art {
    min-height: 490px;
    margin-top: 4px;
  }

  .oracle-stage {
    width: min(100%, 470px);
  }

  .oracle-card {
    width: min(286px, 62%);
  }

  .ritual-grid {
    gap: 9px;
  }

  .fortune-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    padding-right: 18px;
    padding-left: 18px;
  }

  main {
    padding-top: 64px;
  }

  .view {
    min-height: calc(100svh - 64px);
  }

  .header-note {
    padding: 6px 9px;
    font-size: 8px;
  }

  .home-view {
    padding-top: 13px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .home-hero {
    padding-top: 27px;
  }

  .hero-copy .kicker {
    margin-bottom: 19px;
  }

  .hero-copy h1 {
    font-size: clamp(51px, 14vw, 72px);
  }

  .hero-subtitle {
    margin-top: 20px;
    font-size: 19px;
  }

  .hero-description {
    margin-top: 12px;
    font-size: 12px;
  }

  .hero-tags {
    margin-top: 21px;
  }

  .hero-cta {
    width: 100%;
    max-width: 390px;
    margin-top: 24px;
  }

  .hero-art {
    min-height: 430px;
    margin-top: 18px;
  }

  .oracle-stage {
    aspect-ratio: 0.9;
  }

  .oracle-card {
    width: min(258px, 62%);
  }

  .floating-card {
    min-width: 110px;
    padding: 8px 10px;
  }

  .floating-card--one {
    right: 2%;
  }

  .floating-card--two {
    left: 2%;
  }

  .ritual-grid {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .ritual-card {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    min-height: 0;
    padding: 19px;
    column-gap: 12px;
  }

  .ritual-icon {
    grid-row: 1 / 3;
    align-self: start;
    margin-top: 2px;
  }

  .ritual-card h3 {
    margin-top: 0;
    font-size: 17px;
  }

  .ritual-card p {
    margin-top: 3px;
  }

  .ritual-number {
    font-size: 30px;
  }

  .flow-shell {
    padding-top: 19px;
  }

  .step-rail {
    gap: 7px;
  }

  .step-rail > i {
    flex: 1;
    width: auto;
  }

  .flow-heading h2 {
    font-size: clamp(37px, 10vw, 50px);
  }

  .upload-card {
    border-radius: 25px;
  }

  .fortune-card {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 17px;
  }

  .fortune-photo-wrap {
    width: min(100%, 400px);
    margin: 0 auto;
    padding: 10px 9px 24px;
  }

  .fortune-identity {
    padding: 8px 10px 16px;
  }

  .fortune-stamp {
    right: 1px;
    bottom: 9px;
  }

  .fortune-photo-caption {
    bottom: 3px;
  }

  .result-quote {
    margin-top: 14px;
  }

  .report-section {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
  }

  .report-numeral {
    font-size: 22px;
  }

  .modal {
    align-items: end;
    padding: 10px;
  }

  .modal-panel {
    width: 100%;
    max-height: 93svh;
    border-radius: 24px;
  }

  .poster-viewport {
    min-height: 300px;
    max-height: 56svh;
  }

  .poster-viewport img {
    max-height: 54svh;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

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

  .header-note {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(49px, 14.4vw, 62px);
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tags span {
    font-size: 9px;
  }

  .hero-art {
    min-height: 388px;
  }

  .oracle-card {
    width: min(235px, 66%);
    border-radius: 15px;
    padding: 14px 14px 12px;
  }

  .card-caption h2 {
    font-size: 22px;
  }

  .floating-card {
    min-width: 0;
    padding: 7px 8px;
    gap: 7px;
  }

  .floating-card > span {
    width: 21px;
    height: 21px;
    font-size: 8px;
  }

  .floating-card b {
    font-size: 8px;
  }

  .floating-card small {
    font-size: 6px;
  }

  .floating-card--one {
    top: 20%;
  }

  .floating-card--two {
    bottom: 16%;
  }

  .ritual-heading h2 {
    font-size: 33px;
  }

  .manifesto {
    padding-right: 17px;
    padding-left: 17px;
  }

  .manifesto p {
    font-size: 24px;
  }

  .upload-empty {
    padding-right: 4px;
    padding-left: 4px;
  }

  .upload-empty h3 {
    font-size: 24px;
  }

  .upload-actions {
    grid-template-columns: 1fr;
  }

  .btn-upload-primary,
  .btn-upload-secondary {
    min-height: 49px;
  }

  .quiz-card {
    border-radius: 24px;
  }

  .quiz-card h2 {
    font-size: 24px;
  }

  .quiz-option {
    grid-template-columns: 31px minmax(0, 1fr) 19px;
    gap: 10px;
    padding: 10px 12px;
  }

  .quiz-actions {
    align-items: flex-end;
  }

  .quiz-dots {
    max-width: 100px;
  }

  .quiz-actions .btn {
    min-width: 140px;
  }

  .reading-list span {
    font-size: 8px;
  }

  .result-view::before {
    height: 520px;
  }

  .result-topline {
    align-items: flex-start;
  }

  .result-topline .text-button {
    margin-top: 8px;
    font-size: 9px;
  }

  .fortune-identity h2 {
    font-size: clamp(38px, 12vw, 49px);
  }

  .result-title {
    font-size: 9px;
  }

  .fortune-card {
    border-radius: 27px;
  }

  .fortune-card::before {
    border-radius: 20px;
  }

  .section-heading-row {
    align-items: flex-start;
  }

  .index-card,
  .report-preview-card,
  .report-details {
    border-radius: 24px;
  }

  .report-details {
    padding-right: 18px;
    padding-left: 18px;
  }

  .report-section {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .report-numeral {
    font-size: 17px;
  }

  .score-ranking {
    grid-template-columns: 1fr;
  }

  .result-dock {
    gap: 7px;
    padding: 8px;
    border-radius: 18px;
  }

  .result-dock__primary {
    font-size: 11px;
  }

  .result-dock__secondary {
    min-width: 68px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .poster-help {
    font-size: 7px;
  }

  .confirm-panel {
    padding-bottom: calc(21px + var(--safe-bottom));
  }
}

@media (max-width: 370px) {
  .hero-copy h1 {
    font-size: 47px;
  }

  .hero-tags span:last-child {
    flex-basis: 100%;
    justify-content: center;
  }

  .flow-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .step-rail__item {
    font-size: 8px;
  }

  .step-rail > i {
    min-width: 9px;
  }

  .result-dock__secondary span {
    display: none;
  }

  .result-dock__secondary {
    min-width: 50px;
  }
}

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

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