:root {
  --ink: #1f1820;
  --muted: #655866;
  --panel: rgba(255, 252, 249, 0.8);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(31, 24, 32, 0.1);
  --line-strong: rgba(31, 24, 32, 0.18);
  --shadow: 0 30px 90px rgba(43, 28, 34, 0.12);
  --display: "Source Han Serif SC", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  --accent: #d76b47;
  --accent-soft: rgba(215, 107, 71, 0.14);
  --accent-strong: #8f3414;
  --accent-rgb: 215, 107, 71;
  --bg-a: #f8efe8;
  --bg-b: #fcf8f4;
  --bg-c: #efe1d8;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

body[data-experience="zodiac"] {
  --accent: #5860de;
  --accent-soft: rgba(88, 96, 222, 0.16);
  --accent-strong: #27319f;
  --accent-rgb: 88, 96, 222;
  --bg-a: #eff0fb;
  --bg-b: #fafbff;
  --bg-c: #e1e6ff;
}

body[data-experience="tarot"] {
  --accent: #7c6bc4;
  --accent-soft: rgba(124, 107, 196, 0.14);
  --accent-strong: #4a3a8a;
  --accent-rgb: 124, 107, 196;
  --bg-a: #f0edf8;
  --bg-b: #faf9fd;
  --bg-c: #e4dff2;
}

body[data-experience="color"] .screen::after {
  background:
    conic-gradient(from 220deg, rgba(214, 107, 71, 0.28), rgba(255, 218, 170, 0.08), rgba(241, 145, 89, 0.2), rgba(214, 107, 71, 0.28));
}

body[data-experience="zodiac"] .screen::after {
  width: 430px;
  height: 430px;
  top: -120px;
  right: -96px;
  background:
    radial-gradient(circle, rgba(88, 96, 222, 0.18), rgba(88, 96, 222, 0) 58%),
    repeating-radial-gradient(circle at center, rgba(88, 96, 222, 0.1) 0 2px, transparent 2px 26px);
}

body[data-experience="tarot"] .screen::after {
  width: 310px;
  height: 430px;
  top: -110px;
  right: -78px;
  border-radius: 34px;
  transform: rotate(18deg);
  opacity: 0.72;
  background:
    linear-gradient(180deg, rgba(124, 107, 196, 0.18), rgba(255, 255, 255, 0.1)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 18px);
}

body[data-page="hub"] {
  --ink: #22191d;
  --muted: #6e5f65;
  --accent: #d76b47;
  --accent-soft: rgba(215, 107, 71, 0.14);
  --accent-strong: #8f3414;
  --accent-rgb: 215, 107, 71;
  --bg-a: #f4ebe5;
  --bg-b: #fbf7f2;
  --bg-c: #e9ddd4;
}

body[data-page="gift"] {
  --ink: #24191d;
  --muted: #74666c;
  --accent: #da8b60;
  --accent-soft: rgba(218, 139, 96, 0.16);
  --accent-strong: #9b4d2a;
  --accent-rgb: 218, 139, 96;
  --bg-a: #f7eee7;
  --bg-b: #fdf9f4;
  --bg-c: #eadbcc;
}

body[data-page="gift"]::before {
  opacity: 0.24;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.66), transparent 22%),
    linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
  mask-image: linear-gradient(180deg, black 0%, black 60%, transparent 100%);
}

body[data-page="gift"] .site-links {
  margin-left: auto;
}

body[data-page="hub"]::before {
  opacity: 0.26;
  background:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black 0%, black 46%, transparent 100%);
}

body[data-experience="zodiac"] .screen-frame::before,
body[data-experience="zodiac"] .loading-shell::before {
  border-style: dashed;
}

body[data-experience="tarot"] .screen-frame::before,
body[data-experience="tarot"] .loading-shell::before {
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(124, 107, 196, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.95), transparent 18%),
    radial-gradient(circle at 86% 14%, var(--accent-soft), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(var(--accent-rgb), 0.07), transparent 32%),
    linear-gradient(145deg, var(--bg-a) 0%, var(--bg-b) 55%, var(--bg-c) 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.45;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 18%, transparent 88%);
}

body::after {
  background:
    radial-gradient(circle at center, transparent 58%, rgba(255, 255, 255, 0.75) 100%);
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.9rem, 6vw, 4.9rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.16;
}

.stage-shell {
  width: min(940px, calc(100vw - 28px));
  margin: 0 auto;
  padding: calc(28px + var(--safe-top)) var(--safe-right) calc(34px + var(--safe-bottom)) var(--safe-left);
}

.site-shell {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: calc(22px + var(--safe-top)) var(--safe-right) calc(34px + var(--safe-bottom)) var(--safe-left);
}

.site-nav,
.experience-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  background: rgba(255, 251, 248, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(43, 28, 34, 0.08);
}

.site-brand,
.experience-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-links a,
.experience-back {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(31, 24, 32, 0.08);
}

.site-links a:hover,
.experience-back:hover {
  background: rgba(255, 255, 255, 0.96);
}

.site-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

body[data-page="hub"] .home-hero .site-eyebrow {
  font-size: 1.16rem;
  letter-spacing: 0.1em;
}

.home-main {
  display: grid;
  gap: 28px;
}

.home-hero,
.home-panel,
.boundary-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 252, 248, 0.62)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 58%);
  box-shadow: 0 30px 90px rgba(43, 28, 34, 0.12);
  backdrop-filter: blur(18px);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: clamp(26px, 5vw, 54px);
}

.motion-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hub-ready .home-hero.motion-item,
.motion-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-hero-copy,
.home-section,
.home-panel,
.boundary-panel {
  display: grid;
  gap: 18px;
}

.home-lead {
  max-width: 35rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

.hero-title-latin {
  display: grid;
  gap: 0.02em;
  max-width: 11.6ch;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(3rem, 6.6vw, 5.8rem);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.hero-title-latin span {
  display: block;
  white-space: nowrap;
}

.hero-title-top {
  padding-left: 0.05em;
  font-size: 0.95em;
}

.hero-title-bottom {
  margin-left: 0;
  font-size: 1.04em;
  font-style: italic;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.site-pill-row,
.home-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-pill-row span,
.home-card-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 24, 32, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

body[data-page="hub"] .site-pill-row span {
  padding: 12px 18px;
  border-color: rgba(var(--accent-rgb), 0.1);
  color: rgba(80, 62, 68, 0.9);
  font-weight: 600;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 244, 0.9));
  box-shadow: 0 10px 24px rgba(43, 28, 34, 0.05);
}

body[data-page="hub"] .site-pill-row span:nth-child(1) {
  color: #8a4f22;
  border-color: rgba(210, 144, 79, 0.2);
  background:
    linear-gradient(135deg, rgba(244, 210, 144, 0.62), rgba(255, 250, 240, 0.94));
}

body[data-page="hub"] .site-pill-row span:nth-child(2) {
  color: #a05432;
  border-color: rgba(228, 138, 98, 0.22);
  background:
    linear-gradient(135deg, rgba(240, 159, 123, 0.44), rgba(255, 246, 240, 0.94));
}

body[data-page="hub"] .site-pill-row span:nth-child(3) {
  color: #9a4b52;
  border-color: rgba(208, 118, 128, 0.18);
  background:
    linear-gradient(135deg, rgba(225, 167, 172, 0.44), rgba(255, 246, 247, 0.94));
}

body[data-page="hub"] .site-pill-row span:nth-child(4) {
  color: #6d5f2f;
  border-color: rgba(170, 156, 86, 0.18);
  background:
    linear-gradient(135deg, rgba(221, 212, 155, 0.44), rgba(255, 252, 240, 0.94));
}

.home-status-strip {
  position: relative;
  overflow: hidden;
  width: min(620px, 100%);
  padding: 12px 0;
  border-top: 1px solid rgba(31, 24, 32, 0.08);
  border-bottom: 1px solid rgba(31, 24, 32, 0.08);
}

.status-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-run 18s linear infinite;
}

.status-track span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 25, 29, 0.52);
}

.home-hero-stage {
  position: relative;
  min-height: 420px;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-stage::before {
  position: absolute;
  inset: 8% 4%;
  border-radius: 36px;
  background:
    linear-gradient(112deg, transparent 10%, rgba(255, 255, 255, 0.46) 28%, transparent 42%),
    radial-gradient(circle at 30% 26%, rgba(255, 187, 136, 0.18), transparent 18%),
    radial-gradient(circle at 72% 58%, rgba(88, 96, 222, 0.12), transparent 20%);
  opacity: 0.8;
  filter: blur(2px);
  content: "";
  pointer-events: none;
}

.hero-stage-grid,
.hero-orbit {
  position: absolute;
  inset: 0;
}

.hero-stage-grid {
  display: none;
}

.hero-orbit {
  display: grid;
  place-items: center;
}

.hero-orbit-ring,
.hero-orbit-node {
  display: none;
}

.hero-orbit-ring {
  border: 1px solid rgba(31, 24, 32, 0.1);
}

.hero-orbit-ring.ring-a {
  width: 210px;
  height: 210px;
}

.hero-orbit-ring.ring-b {
  width: 300px;
  height: 300px;
  border-style: dashed;
}

.hero-orbit-node {
  width: 10px;
  height: 10px;
  background: rgba(var(--accent-rgb), 0.44);
  box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0.08);
}

.hero-orbit-node.node-a {
  top: 88px;
  right: 120px;
}

.hero-orbit-node.node-b {
  left: 124px;
  bottom: 102px;
}

.hero-orbit-node.node-c {
  right: 88px;
  bottom: 74px;
}

.hero-poster {
  position: absolute;
  width: 186px;
  aspect-ratio: 4 / 5.4;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(26, 20, 26, 0.14);
  inset: 0;
  margin: auto;
  transform-origin: 50% 95%;
  transform: translate(var(--stage-x, 78px), var(--stage-y, 42px)) rotate(var(--fan, 0deg));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.hero-poster:hover {
  transform: translate(var(--stage-x, 78px), calc(var(--stage-y, 42px) - 26px)) rotate(var(--fan, 0deg));
  box-shadow: 0 40px 80px rgba(26, 20, 26, 0.24);
}

.hero-poster::before,
.hero-poster::after {
  position: absolute;
  content: "";
}

.hero-poster::before {
  inset: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-poster::after {
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster-nature {
  --fan: -7deg;
  z-index: 3;

  background:
    linear-gradient(180deg, rgba(18, 32, 24, 0.94), rgba(26, 46, 34, 0.96)),
    radial-gradient(circle at 30% 20%, rgba(74, 158, 110, 0.22), transparent 26%);
}

.hero-poster-nature::before {
  background:
    linear-gradient(180deg, transparent 0 55%, rgba(255, 255, 255, 0.05) 55%),
    linear-gradient(90deg, #3a7a52 0 30%, #4a9e6e 30% 60%, #1e4a32 60% 100%);
}

.hero-poster-color {
  --fan: -21deg;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(22, 16, 18, 0.9), rgba(40, 24, 26, 0.96)),
    radial-gradient(circle at 20% 18%, rgba(255, 178, 147, 0.22), transparent 26%);
}

.hero-poster-color::before {
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(255, 255, 255, 0.06) 58%),
    linear-gradient(90deg, #f3c28b 0 25%, #ef8758 25% 55%, #7a3422 55% 100%);
}

.hero-poster-zodiac {
  --fan: 7deg;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(210, 218, 255, 0.96), rgba(180, 195, 248, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(88, 96, 222, 0.28), transparent 22%);
}

.hero-poster-zodiac::before {
  background:
    radial-gradient(circle at center, transparent 0 54px, rgba(88, 96, 222, 0.14) 54px 56px, transparent 56px 72px, rgba(88, 96, 222, 0.12) 72px 74px, transparent 74px);
}

.hero-poster-tarot {
  --fan: 21deg;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 12, 22, 0.96), rgba(20, 24, 44, 0.96)),
    radial-gradient(circle at 50% 24%, rgba(157, 199, 255, 0.16), transparent 22%);
}

.hero-poster-tarot::before {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 58px, rgba(255, 255, 255, 0.12) 58px 60px, transparent 60px),
    linear-gradient(180deg, transparent 0 54%, rgba(255, 255, 255, 0.05) 54% 100%);
}

.home-section {
  gap: 18px;
}

.gift-main {
  display: grid;
  gap: 24px;
}

.gift-hero,
.gift-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 250, 246, 0.68)),
    linear-gradient(135deg, rgba(218, 139, 96, 0.08), transparent 58%);
  box-shadow: 0 28px 84px rgba(43, 28, 34, 0.1);
  backdrop-filter: blur(18px);
}

.gift-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
  padding-bottom: clamp(42px, 7vw, 76px);
}

.gift-copy,
.gift-panel-head {
  display: grid;
  gap: 18px;
}

.gift-title-latin {
  display: grid;
  gap: 0.02em;
  max-width: 9.8ch;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.1rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.048em;
}

.gift-title-latin span {
  display: block;
  white-space: nowrap;
}

.gift-title-top {
  padding-left: 0.03em;
  font-size: 1em;
}

.gift-title-bottom {
  margin-left: 0;
  font-size: 0.86em;
  font-style: italic;
  letter-spacing: -0.02em;
}

.gift-lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.gift-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gift-chip-row span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(155, 77, 42, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 241, 229, 0.96), rgba(255, 255, 255, 0.84));
  color: rgba(110, 77, 63, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(43, 28, 34, 0.05);
}

.gift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

body[data-page="gift"] .gift-actions .large-button {
  border-radius: 999px;
  min-width: 220px;
  min-height: 60px;
  padding: 0 32px;
}

body[data-page="gift"] .gift-actions .primary-button {
  background: linear-gradient(135deg, #e39a6b, #b4562e);
  box-shadow: 0 18px 42px rgba(180, 86, 46, 0.22);
}

body[data-page="gift"] .gift-actions .secondary-button {
  min-height: 60px;
  border-color: rgba(31, 24, 32, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(43, 28, 34, 0.06);
}

.gift-scene {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.gift-halo,
.gift-card-back,
.gift-box,
.gift-shadow {
  position: absolute;
}

.gift-halo {
  border-radius: 50%;
  filter: blur(12px);
}

.gift-halo.halo-one {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(248, 210, 168, 0.52), transparent 66%);
  top: 36px;
  right: 48px;
}

.gift-halo.halo-two {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(240, 150, 123, 0.24), transparent 68%);
  bottom: 44px;
  left: 58px;
}

.gift-card-back {
  width: 198px;
  aspect-ratio: 4 / 5.2;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(43, 28, 34, 0.08);
  opacity: 0.72;
}

.gift-card-back.card-back-one {
  background:
    linear-gradient(180deg, rgba(252, 239, 221, 0.96), rgba(244, 211, 176, 0.9));
  transform: translate(74px, 14px) rotate(11deg);
}

.gift-card-back.card-back-two {
  background:
    linear-gradient(180deg, rgba(233, 182, 150, 0.92), rgba(202, 128, 90, 0.88));
  transform: translate(-56px, 24px) rotate(-12deg);
}

.gift-box {
  position: relative;
  width: min(330px, 68%);
  aspect-ratio: 1 / 1;
  border-radius: 34px;
  background:
    linear-gradient(145deg, #fff6ed 0%, #f7dbbf 48%, #ebaa78 100%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 28px 70px rgba(128, 76, 47, 0.18);
  transform: rotate(-5deg);
}

.gift-box::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d97a49, #9d431f 72%);
  box-shadow: 0 10px 18px rgba(117, 55, 27, 0.16);
  transform: translate(-50%, -50%);
  content: "";
  z-index: 2;
}

.gift-box::after {
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  content: "";
  pointer-events: none;
}

.gift-ribbon {
  position: absolute;
  background: linear-gradient(180deg, #bc5d34, #8e3917);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.gift-ribbon.ribbon-vertical {
  top: -2%;
  bottom: -2%;
  left: 50%;
  width: 14%;
  transform: translateX(-50%);
  border-radius: 26px;
}

.gift-ribbon.ribbon-horizontal {
  top: 50%;
  left: -2%;
  right: -2%;
  height: 14%;
  transform: translateY(-50%);
  border-radius: 26px;
}

.gift-bow {
  position: absolute;
  top: 50%;
  width: 20%;
  height: 12%;
  border-radius: 100% 20% 100% 20%;
  background: linear-gradient(145deg, #d4713f, #a44722);
  box-shadow: 0 12px 20px rgba(117, 55, 27, 0.14);
  z-index: 1;
  transform-origin: 50% 100%;
}

.gift-bow.bow-left {
  left: 50%;
  transform: translate(-88%, -118%) rotate(-38deg);
}

.gift-bow.bow-right {
  left: 50%;
  transform: translate(-12%, -118%) rotate(38deg);
}

.gift-tag {
  position: absolute;
  right: 13%;
  bottom: 18%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 250, 244, 0.88);
  border: 1px solid rgba(155, 77, 42, 0.12);
  color: rgba(121, 66, 42, 0.92);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
  letter-spacing: 0.02em;
  transform: rotate(6deg);
}

.gift-shadow {
  width: 290px;
  height: 46px;
  bottom: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 62, 42, 0.18), transparent 72%);
  filter: blur(6px);
}

.gift-panel {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
}

.gift-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gift-preview-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 246, 0.78)),
    linear-gradient(135deg, rgba(218, 139, 96, 0.08), transparent 72%);
  box-shadow: 0 18px 42px rgba(43, 28, 34, 0.06);
}

.gift-preview-card::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 186, 126, 0.44), transparent 70%);
  content: "";
}

.gift-preview-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.16;
}

.gift-preview-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.72;
}

.gift-preview-index {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-floating-note {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(43, 28, 34, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 25, 29, 0.6);
  backdrop-filter: blur(14px);
}

.hero-floating-note.note-left {
  left: 16px;
  bottom: 24px;
}

.hero-floating-note.note-right {
  top: 26px;
  right: 18px;
}

.section-head {
  display: grid;
  gap: 8px;
}

.home-card-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-card,
.boundary-grid article,
.home-panel {
  padding: 22px;
  border-radius: 26px;
}

.home-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 252, 249, 0.72)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 70%);
  box-shadow: 0 22px 54px rgba(43, 28, 34, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-card::after {
  position: absolute;
  right: -30px;
  bottom: -46px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  content: "";
  opacity: 0.22;
}

.home-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%);
  transform: translateX(-120%);
  content: "";
  transition: transform 620ms ease;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 58px rgba(43, 28, 34, 0.13);
  border-color: rgba(var(--accent-rgb), 0.18);
}

.home-card:hover::before {
  transform: translateX(120%);
}

.home-card.theme-color::after {
  background: radial-gradient(circle, rgba(239, 135, 88, 0.9), transparent 68%);
}

.home-card.theme-zodiac::after {
  background: radial-gradient(circle, rgba(95, 166, 245, 0.96), transparent 68%);
}

.home-card.theme-tarot::after {
  background: radial-gradient(circle, rgba(134, 110, 255, 0.96), transparent 68%);
}

.home-card.theme-coming::after {
  background: radial-gradient(circle, rgba(223, 178, 110, 0.98), transparent 70%);
}

.home-card-coming {
  border-style: dashed;
  border-color: rgba(143, 111, 86, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 249, 244, 0.72)),
    linear-gradient(135deg, rgba(188, 152, 122, 0.08), transparent 72%);
}

.home-card-coming::after {
  width: 170px;
  height: 170px;
  right: -18px;
  bottom: -34px;
  opacity: 0.3;
}

.home-card-coming:hover {
  transform: none;
  box-shadow: 0 22px 54px rgba(43, 28, 34, 0.08);
  border-color: rgba(143, 111, 86, 0.22);
}

.home-card-coming:hover::before {
  transform: translateX(-120%);
}

.home-card h3,
.showcase-copy h3,
.flow-card h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.12;
}

.home-card p,
.showcase-copy p,
.flow-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.72;
}

.home-card-index {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
}

.showcase-section,
.flow-section {
  display: grid;
  gap: 18px;
}

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

.showcase-card,
.flow-card,
.final-cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 252, 249, 0.72)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 70%);
  box-shadow: 0 22px 54px rgba(43, 28, 34, 0.08);
}

.showcase-card {
  min-height: 340px;
  padding: 18px;
}

.showcase-surface {
  position: relative;
  height: 100%;
  min-height: 304px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.showcase-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.showcase-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.showcase-color .showcase-surface {
  background:
    linear-gradient(180deg, rgba(17, 15, 20, 0.92), rgba(28, 21, 24, 0.96)),
    radial-gradient(circle at 18% 18%, rgba(243, 122, 77, 0.22), transparent 24%);
}

.showcase-swatch-row {
  position: absolute;
  inset: 22px 22px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.showcase-swatch-row span {
  height: 180px;
  border-radius: 20px;
}

.showcase-swatch-row span:nth-child(1) {
  background: linear-gradient(180deg, #d7ddf7, #7482c8);
}

.showcase-swatch-row span:nth-child(2) {
  background: linear-gradient(180deg, #f0c38a, #ef8758);
}

.showcase-swatch-row span:nth-child(3) {
  background: linear-gradient(180deg, #222845, #111424);
}

.showcase-zodiac .showcase-surface {
  background:
    linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(236, 239, 255, 0.94)),
    radial-gradient(circle at 70% 24%, rgba(88, 96, 222, 0.16), transparent 22%);
}

.showcase-orbit-mark {
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, transparent 0 56px, rgba(88, 96, 222, 0.18) 56px 58px, transparent 58px 88px, rgba(88, 96, 222, 0.14) 88px 90px, transparent 90px),
    linear-gradient(180deg, transparent 0 62%, rgba(255, 255, 255, 0.54) 62%);
}

.showcase-tarot .showcase-surface {
  background:
    linear-gradient(180deg, rgba(8, 10, 20, 0.96), rgba(19, 23, 40, 0.96)),
    radial-gradient(circle at 50% 24%, rgba(157, 199, 255, 0.16), transparent 22%);
}

.showcase-tarot-stack {
  position: absolute;
  inset: 28px auto auto 50%;
  width: 168px;
  height: 230px;
  transform: translateX(-50%);
}

.showcase-tarot-stack span {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(20, 25, 49, 0.96), rgba(9, 12, 22, 0.96));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.showcase-tarot-stack span:nth-child(1) {
  transform: rotate(-10deg) translateX(-36px);
}

.showcase-tarot-stack span:nth-child(2) {
  transform: rotate(8deg) translateX(34px);
}

.showcase-tarot-stack span:nth-child(3)::before {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  content: "";
}

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

.flow-card {
  padding: 24px;
}

.flow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.final-cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
}

.site-footer {
  padding: 24px 6px 8px;
  text-align: center;
}

@keyframes marquee-run {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes hero-sweep {
  0% {
    transform: translateX(-8%);
    opacity: 0.24;
  }
  50% {
    transform: translateX(8%);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-8%);
    opacity: 0.24;
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.34;
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  }
  50% {
    opacity: 0.78;
    box-shadow: 0 0 0 18px rgba(var(--accent-rgb), 0.05);
  }
}

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

.experience-nav {
  width: min(940px, calc(100vw - 28px));
  margin: 0 auto;
  padding: calc(16px + var(--safe-top)) var(--safe-right) 0 var(--safe-left);
}

.experience-nav-copy {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.experience-nav-copy span {
  font-size: 0.95rem;
  font-weight: 700;
}

.experience-nav-copy small {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

body[data-experience="tarot"] .experience-nav-copy span {
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.screen {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 62px);
  min-height: calc(100dvh - 62px - var(--safe-top) - var(--safe-bottom));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 252, 249, 0.64)),
    linear-gradient(130deg, rgba(var(--accent-rgb), 0.06), transparent 58%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.screen::before,
.screen::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.screen::before {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
}

.screen::after {
  width: 340px;
  height: 340px;
  top: -82px;
  right: -64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0) 70%);
}

.hidden {
  display: none !important;
}

body[data-platform="android"] .screen {
  backdrop-filter: blur(12px);
}

body[data-touch="coarse"] .primary-button,
body[data-touch="coarse"] .secondary-button,
body[data-touch="coarse"] .option-button {
  min-height: 52px;
}

.screen-intro,
.screen-loading {
  display: grid;
  place-items: center;
  padding: clamp(32px, 5vw, 58px);
}

.screen-frame,
.loading-shell {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.screen-frame::before,
.loading-shell::before {
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 28px;
  content: "";
  pointer-events: none;
}

.screen-kicker,
.mini-label,
.loading-label {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.screen-lead,
.hero-note,
.report-narrative,
.insight-card p,
.report-footnote,
.analysis-step p,
.metric-card p {
  color: var(--muted);
  line-height: 1.82;
}

.screen-lead {
  max-width: 620px;
  font-size: 1.02rem;
}

body[data-experience="tarot"] #heroTitle {
  font-size: clamp(3.8rem, 7vw, 5.9rem);
  letter-spacing: 0.04em;
}

.hero-note,
.report-narrative {
  max-width: 600px;
}

.theme-preview {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 6px;
}

.result-artifact {
  width: min(560px, 100%);
  margin-top: 8px;
}

.artifact-color-card,
.artifact-zodiac-card,
.artifact-tarot-card {
  display: grid;
  gap: 14px;
}

.artifact-line,
.artifact-dossier span {
  color: var(--muted);
}

.artifact-dossier {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.artifact-dossier span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
}

.preview-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.preview-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 600;
}

.pill-row,
.report-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill-row span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(23, 16, 19, 0.06);
  font-size: 0.9rem;
  font-weight: 600;
}

.large-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.large-button,
.primary-button {
  color: #fffdfa;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 40px rgba(var(--accent-rgb), 0.28);
}

.large-button {
  min-width: 214px;
  min-height: 60px;
  padding: 0 34px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.primary-button {
  min-height: 50px;
  padding: 0 20px;
  font-weight: 700;
}

.secondary-button {
  min-height: 50px;
  padding: 0 20px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.large-button.secondary-button {
  min-height: 56px;
}

body[data-page="hub"] .home-cta-row .large-button {
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
}

body[data-page="hub"] .home-cta-row .primary-button {
  background: linear-gradient(135deg, #de875f, #a63d17);
  box-shadow: 0 20px 40px rgba(166, 61, 23, 0.22);
}

body[data-page="hub"] .home-cta-row .secondary-button {
  min-height: 60px;
  border-color: rgba(31, 24, 32, 0.07);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(43, 28, 34, 0.06);
}

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

.primary-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.screen-quiz,
.screen-report {
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 42px);
}

.question-shell,
.report-shell {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 252, 249, 0.7));
  box-shadow: 0 18px 50px rgba(38, 25, 31, 0.08);
}

.color-preview .palette-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(400px, 100%);
  padding: 14px;
  gap: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(38, 25, 31, 0.08);
}

.artifact-color-card {
  justify-items: center;
}

.artifact-image {
  width: min(360px, 100%);
  height: 270px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(circle at 30% 30%, var(--tone-a), transparent 28%),
    radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, var(--tone-b), var(--tone-c));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  position: relative;
  overflow: hidden;
}

.artifact-image::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%);
  mix-blend-mode: screen;
}

.artifact-spectrum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(360px, 100%);
  gap: 10px;
}

.artifact-spectrum span {
  height: 18px;
  border-radius: 999px;
}

.palette-band {
  height: 124px;
  border-radius: 18px;
}

.band-red {
  background: linear-gradient(180deg, #ffb28e, #d76b47);
}

.band-peach {
  background: linear-gradient(180deg, #ffe3cf, #efb18b);
}

.band-sand {
  background: linear-gradient(180deg, #f2e7d8, #d7c0a5);
}

.band-ink {
  background: linear-gradient(180deg, #493842, #231a21);
}

.zodiac-preview .orbit-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0 18%, transparent 18% 100%),
    repeating-radial-gradient(circle at center, rgba(88, 96, 222, 0.14) 0 1px, transparent 1px 28px);
}

.artifact-zodiac-card {
  justify-items: center;
}

.artifact-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0 16%, transparent 16% 100%),
    repeating-radial-gradient(circle at center, rgba(88, 96, 222, 0.12) 0 1px, transparent 1px 24px);
}

.artifact-orbit::before,
.artifact-orbit::after {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(88, 96, 222, 0.16);
  border-radius: 50%;
  content: "";
}

.artifact-orbit::after {
  inset: 52px;
}

.artifact-glyph {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f78ef, #303fbd);
  box-shadow: 0 18px 40px rgba(48, 63, 189, 0.22);
  color: #fff;
  font-family: var(--display);
  font-size: 2rem;
}

.orbit-core,
.orbit-node {
  position: absolute;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.orbit-core {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #7280f0, #2d38b1);
  color: #fff;
}

.orbit-node {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.84);
  color: #2d38b1;
  box-shadow: 0 12px 28px rgba(45, 56, 177, 0.12);
}

.orbit-node-a { top: 18px; left: 118px; }
.orbit-node-b { top: 118px; right: 18px; }
.orbit-node-c { bottom: 18px; left: 118px; }
.orbit-node-d { top: 118px; left: 18px; }

.tarot-preview .tarot-preview-stack {
  position: relative;
  width: 340px;
  height: 280px;
}

.artifact-tarot-card {
  justify-items: center;
  position: relative;
}

.artifact-tarot-halo {
  position: absolute;
  top: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(124, 107, 196, 0.16), rgba(124, 107, 196, 0.06) 40%, rgba(124, 107, 196, 0) 68%),
    repeating-radial-gradient(circle at center, rgba(124, 107, 196, 0.06) 0 2px, transparent 2px 22px);
  filter: blur(0.2px);
}

.artifact-tarot-spread {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.main-card,
.mini-card {
  display: inline-grid;
  place-items: center;
  width: 132px;
  height: 198px;
  border-radius: 18px;
  border: 1px solid rgba(124, 107, 196, 0.18);
  background:
    linear-gradient(180deg, rgba(240, 237, 248, 0.95), rgba(228, 223, 242, 0.98)),
    radial-gradient(circle at center, rgba(124, 107, 196, 0.08), transparent 58%);
  box-shadow: 0 20px 48px rgba(74, 58, 138, 0.1);
}

.mini-card {
  width: 92px;
  height: 152px;
  opacity: 0.76;
}

.main-card {
  color: var(--accent-strong);
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.tarot-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid rgba(124, 107, 196, 0.18);
  box-shadow: 0 18px 42px rgba(124, 107, 196, 0.12);
}

.tarot-card-back {
  transform: rotate(-10deg) translateX(-22px);
  background:
    linear-gradient(180deg, rgba(124, 107, 196, 0.24), rgba(255, 255, 255, 0.6)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 4px, transparent 4px 12px);
}

.tarot-card-mid {
  transform: rotate(8deg) translateX(22px);
  background:
    linear-gradient(180deg, rgba(124, 107, 196, 0.18), rgba(255, 255, 255, 0.74)),
    radial-gradient(circle at center, rgba(124, 107, 196, 0.14), transparent 60%);
}

.tarot-card-front {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.3rem;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 237, 248, 0.92)),
    radial-gradient(circle at center, rgba(124, 107, 196, 0.08), transparent 58%);
}

.question-shell {
  padding: clamp(26px, 4vw, 38px);
  display: grid;
  gap: 22px;
}

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

.question-heading {
  display: grid;
  gap: 10px;
}

.question-step {
  font-size: 1rem;
  color: var(--accent-strong);
}

.question-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.question-bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 240ms ease;
}

.options-wrap {
  display: grid;
  gap: 12px;
}

.option-button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px 18px 18px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 30px rgba(30, 21, 24, 0.05);
}

.option-button:hover {
  border-color: rgba(var(--accent-rgb), 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.option-button.selected {
  border-color: rgba(var(--accent-rgb), 0.38);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.92));
}

.option-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.option-copy {
  line-height: 1.65;
  font-size: 0.98rem;
}

.quiz-actions,
.report-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.loading-shell {
  gap: 22px;
}

.loading-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 212px;
  height: 212px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--progress, 0deg), rgba(255, 255, 255, 0.56) 0deg);
  box-shadow: 0 22px 54px rgba(var(--accent-rgb), 0.18);
}

.loading-ring::before {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: rgba(255, 252, 249, 0.96);
  content: "";
}

.loading-ring-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.loading-percent {
  font-family: var(--display);
  font-size: 2.8rem;
  line-height: 1;
}

.analysis-steps {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
}

.analysis-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.analysis-step-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.analysis-step.current {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.analysis-step.complete .analysis-step-index,
.analysis-step.current .analysis-step-index {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.report-shell {
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 22px;
}

body[data-experience="color"] .screen-report {
  background:
    linear-gradient(180deg, rgba(18, 15, 18, 0.92), rgba(30, 23, 26, 0.95)),
    radial-gradient(circle at 20% 12%, rgba(243, 122, 77, 0.14), transparent 24%);
}

body[data-experience="color"] .screen-report .report-shell,
body[data-experience="color"] .screen-report .metric-card,
body[data-experience="color"] .screen-report .insight-card,
body[data-experience="color"] .screen-report .quote-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body[data-experience="color"] .screen-report .report-footnote,
body[data-experience="color"] .screen-report .report-narrative,
body[data-experience="color"] .screen-report .insight-card p,
body[data-experience="color"] .screen-report .metric-card p,
body[data-experience="color"] .screen-report .artifact-line,
body[data-experience="color"] .screen-report .artifact-dossier span {
  color: rgba(243, 236, 231, 0.78);
}

body[data-experience="color"] .screen-report .mini-label,
body[data-experience="color"] .screen-report .screen-kicker,
body[data-experience="color"] .screen-report .metric-card strong,
body[data-experience="color"] .screen-report .quote-panel blockquote,
body[data-experience="color"] .screen-report .meta-chip,
body[data-experience="color"] .screen-report .pill-row span {
  color: #fff5ef;
}

body[data-experience="color"] .screen-report .report-shell {
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-experience="color"] .screen-report .report-head {
  color: #fff5ef;
}

body[data-experience="zodiac"] .question-shell,
body[data-experience="zodiac"] .report-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 251, 255, 0.88));
  border-style: dashed;
}

body[data-experience="zodiac"] .question-shell::before,
body[data-experience="zodiac"] .report-shell::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(88, 96, 222, 0.12);
  border-radius: 20px;
  content: "";
  pointer-events: none;
}

body[data-experience="zodiac"] .question-head,
body[data-experience="zodiac"] .report-head {
  position: relative;
  z-index: 1;
}


.report-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.metrics-grid,
.insight-grid {
  display: grid;
  gap: 14px;
}

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

.metric-card,
.insight-card,
.quote-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(24, 18, 21, 0.06);
}

.metric-card {
  padding: 18px 18px 16px;
  display: grid;
  gap: 10px;
}

.metric-card strong {
  font-size: 1.5rem;
  font-family: var(--display);
}

.metric-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
}

.metric-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

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

.insight-card,
.quote-panel {
  padding: 18px 20px;
}

.quote-panel {
  display: grid;
  gap: 12px;
}

.quote-panel blockquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.45;
}

.report-footnote {
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.92), transparent 24%),
      linear-gradient(145deg, var(--bg-a) 0%, var(--bg-b) 55%, var(--bg-c) 100%);
  }

  .stage-shell {
    width: min(100vw - 16px, 100%);
    padding: calc(8px + var(--safe-top)) var(--safe-right) calc(18px + var(--safe-bottom)) var(--safe-left);
  }

  .site-shell {
    width: min(100vw - 16px, 100%);
    padding: calc(10px + var(--safe-top)) var(--safe-right) calc(18px + var(--safe-bottom)) var(--safe-left);
  }

  /* 手机上隐藏顶部导航栏和体验页标题栏 */
  .site-nav,
  .experience-nav {
    display: none;
  }

  .home-hero,
  .gift-hero,
  .home-card-grid,
  .gift-preview-grid,
  .showcase-grid,
  .flow-grid,
  .final-cta-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-links,
  .home-cta-row {
    width: 100%;
  }

  .site-links a,
  .home-cta-row a {
    width: 100%;
    justify-content: center;
  }

  .home-hero {
    padding: 22px;
  }

  .gift-hero,
  .gift-panel {
    padding: 22px;
  }

  .gift-title-latin {
    max-width: 8.2ch;
  }

  .gift-title-bottom {
    margin-left: 0;
  }

  .gift-actions {
    width: 100%;
  }

  .gift-actions a {
    width: 100%;
    justify-content: center;
  }

  .hero-title-bottom {
    margin-left: 0;
  }

  /* Hero 海报卡片：绝对定位 → 2×2 平铺网格 */
  .home-hero-stage {
    position: relative;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 4px;
  }

  .hero-orbit {
    display: none;
  }

  .hero-poster {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 5.4;
    transform: none !important;
    inset: auto !important;
    margin: 0 !important;
    z-index: 1 !important;
  }

  .hero-poster:hover {
    transform: translateY(-4px) !important;
  }

  /* BGM 按钮脱离 hero-stage，固定到视口右上角 */
  .bgm-toggle.hero-bgm {
    position: fixed;
    top: calc(16px + var(--safe-top));
    right: 16px;
    bottom: auto;
  }

  .gift-scene {
    min-height: 340px;
  }

  .gift-card-back {
    width: min(38vw, 180px);
  }

  .gift-box {
    width: min(280px, 72vw);
  }

  .gift-shadow {
    width: min(280px, 72vw);
    bottom: 18px;
  }

  /* hero-poster 覆盖已在 home-hero-stage 块内处理 */

  .showcase-card {
    min-height: 300px;
  }

  .showcase-surface {
    min-height: 264px;
  }

  .showcase-tarot-stack {
    width: 138px;
    height: 196px;
  }

  .hero-floating-note.note-right {
    top: 10px;
    right: 8px;
  }

  .home-status-strip {
    width: 100%;
  }

  .screen {
    min-height: calc(100vh - 20px);
    min-height: calc(100dvh - 20px - var(--safe-top) - var(--safe-bottom));
    border-radius: 24px;
    /* 去掉 backdrop-filter 避免手机边缘白色模糊晕染 */
    backdrop-filter: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 249, 0.94)),
      linear-gradient(130deg, rgba(var(--accent-rgb), 0.06), transparent 58%);
  }

  /* 手机去掉内边框和溢出装饰圆，消除白边 */
  .screen::before {
    display: none;
  }

  .screen::after {
    display: none;
  }

  .question-head,
  .report-actions {
    flex-direction: column;
  }

  /* 下一题在上、重新开始在下，防误触 */
  .quiz-actions {
    flex-direction: column-reverse;
  }

  .screen-intro,
  .screen-loading,
  .screen-quiz,
  .screen-report {
    padding: 16px;
  }

  .screen-frame,
  .loading-shell,
  .question-shell,
  .report-shell,
  .theme-preview,
  .result-artifact {
    width: 100%;
  }

  .palette-band {
    height: 88px;
  }

  .artifact-image {
    height: 220px;
  }

  .orbit-preview,
  .artifact-orbit {
    transform: scale(0.84);
  }

  .tarot-preview-stack {
    transform: scale(0.9);
    transform-origin: center top;
  }

  .question-shell {
    padding-bottom: 104px;
  }

  .quiz-actions {
    position: sticky;
    bottom: -12px;
    padding-top: 16px;
    padding-bottom: max(6px, var(--safe-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 252, 249, 0.96) 26%);
  }

  body[data-experience="tarot"] .quiz-actions {
    background: linear-gradient(180deg, rgba(255, 252, 249, 0), rgba(255, 252, 249, 0.96) 26%);
  }

  .metrics-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  /* 选项按钮：手机压缩 padding 和字号 */
  .option-button {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .option-index {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .option-copy {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Pill 按钮：4个整齐排成 2×2 网格 */
  .site-pill-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .site-pill-row span {
    text-align: center;
    justify-content: center;
  }

  .experience-nav {
    width: min(100vw - 16px, 100%);
    padding: calc(10px + var(--safe-top)) var(--safe-right) 0 var(--safe-left);
  }

  .experience-nav-copy {
    justify-items: start;
  }

  .final-cta-panel {
    align-items: flex-start;
  }
}

@media (pointer: coarse) {
  .screen-kicker,
  .hero-note,
  .screen-lead,
  .option-copy,
  .metric-card p,
  .insight-card p {
    line-height: 1.68;
  }

  .pill-row span,
  .report-meta span,
  .site-links a,
  .hero-floating-note {
    min-height: 40px;
    align-items: center;
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-item,
  .hero-poster,
  .hero-floating-note,
  .home-hero-stage::before,
  .hero-orbit-ring,
  .status-track,
  .home-card::before {
    animation: none !important;
    transition: none !important;
  }
}

/* ── BGM Toggle ── */

.bgm-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
}

.bgm-toggle.hero-bgm {
  position: absolute;
  top: 26px;
  right: 18px;
  bottom: auto;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: bgm-enter 0.6s ease 1s both;
}

.bgm-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.bgm-toggle:active {
  transform: scale(0.94);
}

.bgm-toggle .bgm-icon {
  display: none;
}

.bgm-toggle .bgm-icon-off {
  display: block;
}

.bgm-toggle.is-playing .bgm-icon-off {
  display: none;
}

.bgm-toggle.is-playing .bgm-icon-on {
  display: block;
}

.bgm-toggle.is-playing {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 600px) {
  .bgm-toggle {
    bottom: calc(16px + var(--safe-bottom));
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

@keyframes bgm-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Tarot Spread Screen ── */
/* ── Tarot Spread ── */
.screen-spread {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.spread-shell {
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 700px;
}


.spread-table {
  position: relative;
  margin-top: 2.5rem;
  padding: 3rem 1rem 2rem;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(124, 107, 196, 0.06), transparent),
    linear-gradient(180deg, var(--bg-a), var(--bg-b));
  border: 1px solid var(--line);
}

.table-glow {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: radial-gradient(ellipse 50% 40% at 50% 45%, rgba(124, 107, 196, 0.04), transparent);
  pointer-events: none;
}

.spread-fan {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.spread-card {
  position: absolute;
  width: 150px;
  aspect-ratio: 2.5 / 4;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transform-origin: 50% 95%;
  transform: rotate(var(--fan, 0deg));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease,
              filter 0.3s ease;
}

.spread-card:nth-child(1) { --fan: -18deg; z-index: 3; }
.spread-card:nth-child(2) { --fan: 0deg; z-index: 2; }
.spread-card:nth-child(3) { --fan: 18deg; z-index: 1; }

.spread-card:hover {
  transform: rotate(var(--fan, 0deg)) translateY(-28px);
  filter: brightness(1.15);
}

.spread-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.spread-card.is-flipped .spread-card-inner {
  transform: rotateY(180deg);
}

.spread-card-back,
.spread-card-front {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Card Back (ornate) ── */
.spread-card-back {
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(124, 107, 196, 0.06) 0deg 15deg, transparent 15deg 30deg),
    radial-gradient(circle at 50% 40%, rgba(124, 107, 196, 0.18), transparent 60%),
    linear-gradient(170deg, #2a2148 0%, #3d2f6a 50%, #2a2148 100%);
  border: 1.5px solid rgba(180, 160, 220, 0.3);
  box-shadow:
    0 4px 12px rgba(42, 33, 72, 0.2),
    0 16px 48px rgba(42, 33, 72, 0.15);
}

.card-back-frame {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(220, 200, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-frame::before,
.card-back-frame::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(220, 200, 255, 0.12);
}

.card-back-frame::before {
  inset: 5px;
  border-radius: 8px;
}

.card-back-frame::after {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  border-style: dashed;
  border-color: rgba(220, 200, 255, 0.1);
}

.card-back-diamond {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(220, 200, 255, 0.35);
  transform: rotate(45deg);
  position: relative;
}

.card-back-diamond::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(220, 200, 255, 0.2);
}

.card-back-diamond::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  font-size: 0.75rem;
  color: rgba(220, 200, 255, 0.5);
  text-shadow: 0 0 8px rgba(124, 107, 196, 0.3);
}

/* ── Card Front (reveal) ── */
.spread-card-front {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 25%, rgba(124, 107, 196, 0.08), transparent 55%),
    linear-gradient(170deg, #faf9fd 0%, #f0edf8 40%, #faf9fd 100%);
  border: 1.5px solid rgba(124, 107, 196, 0.2);
  box-shadow:
    0 4px 12px rgba(42, 33, 72, 0.1),
    0 16px 48px rgba(42, 33, 72, 0.08);
  flex-direction: column;
  gap: 0.4rem;
  padding: 10px 10px 12px;
}

.spread-card-front::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(124, 107, 196, 0.1);
  border-radius: 10px;
  pointer-events: none;
}

.spread-card-glyph {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

.spread-card-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.spread-card-trait {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── States ── */
.spread-card.is-dismissed {
  opacity: 0;
  pointer-events: none;
  transform: rotate(var(--fan, 0deg)) translateY(60px) scale(0.85);
  transition: transform 0.7s ease, opacity 0.6s ease;
}

.spread-card.is-selected {
  --fan: 0deg;
  z-index: 10;
  transform: rotate(0deg) translateY(-60px) scale(1.25);
  pointer-events: none;
  filter: brightness(1.1);
}

.spread-card.is-selected .spread-card-front {
  box-shadow:
    0 0 30px rgba(124, 107, 196, 0.15),
    0 20px 60px rgba(42, 33, 72, 0.12);
}

/* ── Breathing animation while waiting ── */
@keyframes card-breathe {
  0%, 100% { box-shadow: 0 4px 12px rgba(42,33,72,0.2), 0 16px 48px rgba(42,33,72,0.15); }
  50% { box-shadow: 0 4px 16px rgba(42,33,72,0.25), 0 16px 48px rgba(42,33,72,0.18), 0 0 24px rgba(124,107,196,0.08); }
}

.spread-card:not(.is-flipped):not(.is-dismissed) .spread-card-back {
  animation: card-breathe 3s ease-in-out infinite;
}

.spread-card:nth-child(2) .spread-card-back { animation-delay: 0.4s; }
.spread-card:nth-child(3) .spread-card-back { animation-delay: 0.8s; }
.spread-card:nth-child(4) .spread-card-back { animation-delay: 1.2s; }
.spread-card:nth-child(5) .spread-card-back { animation-delay: 1.6s; }

/* ── Mobile ── */
@media (max-width: 520px) {
  .spread-card {
    width: 110px;
  }
  .spread-fan {
    height: 300px;
  }
  .spread-table {
    padding: 2rem 0.5rem 1.5rem;
    margin-top: 1.5rem;
  }
  .spread-card-glyph {
    width: 48px;
    height: 48px;
  }
  .spread-card-name {
    font-size: 1rem;
  }
  .spread-card.is-selected {
    transform: rotate(0deg) translateY(-40px) scale(1.18);
  }
}
