:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f4efe3;
  --muted: rgba(244, 239, 227, 0.62);
  --dim: rgba(244, 239, 227, 0.38);
  --gold: #c7a46b;
  --gold-soft: rgba(199, 164, 107, 0.24);
  --violet: #8b79b8;
  --blue: #90a8c6;
  --panel: rgba(18, 17, 16, 0.72);
  --line: rgba(244, 239, 227, 0.13);
  --radius: 8px;
  font-family:
    "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

html {
  background: #050505;
}

body {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(74, 63, 96, 0.2), transparent 28rem),
    linear-gradient(135deg, #0f0e0c 0%, #030303 55%, #12100e 100%);
  color: var(--ink);
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(93, 84, 129, 0.18), transparent 16rem),
    radial-gradient(circle at 48% 56%, rgba(153, 128, 88, 0.1), transparent 16rem),
    linear-gradient(180deg, #060606 0%, #090806 50%, #020202 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.68);
}

.phone-shell:has(#homeScreen.is-active) {
  width: min(100vw, calc(100dvh * 853 / 1844));
  max-width: 430px;
}

.phone-shell:has(#homeScreen.is-active) .star-canvas {
  opacity: 0;
}

.star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
}

.screen {
  position: absolute;
  inset: 0;
  height: 100%;
  display: none;
  min-height: 100%;
  padding: 24px;
  overflow-y: auto;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
  animation: screenIn 520ms ease both;
}

.screen-home {
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0;
  background: #000;
}

.gallery-space {
  --home-orb-center-x: 50%;
  --home-orb-center-y: 50%;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 920px;
  transform: none;
  transform-style: preserve-3d;
}

.home-poster-stage {
  z-index: 1;
  overflow: hidden;
  background: #000;
  perspective: none;
}

.home-poster-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
}

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

.poster-start-button {
  position: absolute;
  left: 50%;
  top: 82.6%;
  z-index: 12;
  width: min(62vw, 268px);
  height: min(13vw, 58px);
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  transform: translate(-50%, -50%);
}

.poster-start-button::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid transparent;
  border-radius: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.poster-start-button:active::after {
  border-color: rgba(241, 219, 172, 0.62);
  box-shadow:
    0 0 24px rgba(199, 164, 107, 0.18),
    inset 0 0 0 1px rgba(255, 248, 224, 0.06);
  transform: scale(0.985);
}

.gallery-vignette {
  position: absolute;
  inset: -12%;
  z-index: 8;
  background:
    radial-gradient(circle at 50% 38%, transparent 0 37%, rgba(0, 0, 0, 0.28) 64%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 18%, transparent 66%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.cinematic-depth {
  position: absolute;
  left: var(--home-orb-center-x);
  top: var(--home-orb-center-y);
  width: min(128vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.86;
  translate: -50% -50%;
  transform: rotateX(66deg) rotateZ(-14deg) translateY(-36px);
  transform-style: preserve-3d;
  animation: cinematicDrift 18s ease-in-out infinite alternate;
}

.cinematic-depth::before,
.cinematic-depth::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 50%;
}

.cinematic-depth::before {
  border: 1px solid rgba(199, 164, 107, 0.16);
  background:
    radial-gradient(circle at center, transparent 0 19%, rgba(199, 164, 107, 0.12) 19.2% 19.6%, transparent 19.9%),
    radial-gradient(circle at center, transparent 0 38%, rgba(199, 164, 107, 0.1) 38.2% 38.6%, transparent 38.9%),
    radial-gradient(circle at center, transparent 0 58%, rgba(199, 164, 107, 0.12) 58.2% 58.6%, transparent 58.9%),
    conic-gradient(from 18deg, rgba(199, 164, 107, 0.24) 0deg 0.8deg, transparent 0.8deg 29deg, rgba(199, 164, 107, 0.14) 29deg 30deg, transparent 30deg 60deg);
  filter: blur(0.2px);
}

.cinematic-depth::after {
  inset: 22%;
  border: 1px solid rgba(144, 168, 198, 0.08);
  box-shadow:
    0 0 110px rgba(105, 93, 147, 0.1),
    inset 0 0 44px rgba(199, 164, 107, 0.035);
}

.cinematic-depth span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 164, 107, 0.2), transparent);
  transform-origin: left center;
}

.cinematic-depth span:nth-child(1) { transform: rotate(24deg); }
.cinematic-depth span:nth-child(2) { transform: rotate(82deg); }
.cinematic-depth span:nth-child(3) { transform: rotate(151deg); }
.cinematic-depth span:nth-child(4) { transform: rotate(226deg); }

.astro-grid {
  position: absolute;
  left: var(--home-orb-center-x);
  top: var(--home-orb-center-y);
  width: min(116vw, 512px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 164, 107, 0.1);
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(199, 164, 107, 0.08));
  opacity: 0.72;
  translate: -50% -50%;
  animation: slowSpin 86s linear infinite;
}

.astro-grid::before,
.astro-grid::after {
  position: absolute;
  inset: 13%;
  content: "";
  border: 1px solid rgba(199, 164, 107, 0.1);
  border-radius: 50%;
}

.astro-grid::after {
  inset: -15%;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(199, 164, 107, 0.18) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(199, 164, 107, 0.12) 50%, transparent 50.3%);
}

.zodiac-marks {
  position: absolute;
  left: var(--home-orb-center-x);
  top: var(--home-orb-center-y);
  width: min(106vw, 468px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.78;
  translate: -50% -50%;
  animation: slowSpin 108s linear infinite reverse;
}

.zodiac-marks span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(232, 202, 139, 0.52);
  box-shadow: 0 0 10px rgba(232, 202, 139, 0.28);
  transform:
    rotate(calc(var(--i) * 30deg))
    translateY(min(-48vw, -214px));
}

.zodiac-marks span:nth-child(1) { --i: 0; }
.zodiac-marks span:nth-child(2) { --i: 1; }
.zodiac-marks span:nth-child(3) { --i: 2; }
.zodiac-marks span:nth-child(4) { --i: 3; }
.zodiac-marks span:nth-child(5) { --i: 4; }
.zodiac-marks span:nth-child(6) { --i: 5; }
.zodiac-marks span:nth-child(7) { --i: 6; }
.zodiac-marks span:nth-child(8) { --i: 7; }
.zodiac-marks span:nth-child(9) { --i: 8; }
.zodiac-marks span:nth-child(10) { --i: 9; }
.zodiac-marks span:nth-child(11) { --i: 10; }
.zodiac-marks span:nth-child(12) { --i: 11; }

.orbiting-card-ring {
  position: absolute;
  left: var(--home-orb-center-x);
  top: var(--home-orb-center-y);
  width: min(102vw, 430px);
  aspect-ratio: 1;
  z-index: 4;
  border-radius: 50%;
  translate: -50% -50%;
  transform: rotateX(14deg);
  animation: cardRingFloat 34s linear infinite;
}

.orbiting-card-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 43px;
  border: 1px solid rgba(232, 202, 139, 0.38);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 34%, rgba(232, 202, 139, 0.24), transparent 26%),
    linear-gradient(135deg, rgba(255, 235, 178, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(31, 23, 18, 0.82), rgba(4, 4, 4, 0.9));
  box-shadow:
    0 0 14px rgba(199, 164, 107, 0.14),
    inset 0 0 0 6px rgba(199, 164, 107, 0.03);
  opacity: 0.66;
  translate: -50% -50%;
  transform:
    rotate(calc(var(--card-i) * 45deg))
    translateY(min(-51vw, -206px))
    rotate(calc(-1 * var(--card-i) * 45deg));
}

.orbiting-card-ring span::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid rgba(232, 202, 139, 0.22);
  border-radius: 4px;
}

.orbiting-card-ring span:nth-child(1) { --card-i: 0; }
.orbiting-card-ring span:nth-child(2) { --card-i: 1; opacity: 0.42; filter: blur(0.3px); }
.orbiting-card-ring span:nth-child(3) { --card-i: 2; }
.orbiting-card-ring span:nth-child(4) { --card-i: 3; opacity: 0.38; filter: blur(0.4px); }
.orbiting-card-ring span:nth-child(5) { --card-i: 4; }
.orbiting-card-ring span:nth-child(6) { --card-i: 5; opacity: 0.44; filter: blur(0.3px); }
.orbiting-card-ring span:nth-child(7) { --card-i: 6; }
.orbiting-card-ring span:nth-child(8) { --card-i: 7; opacity: 0.36; filter: blur(0.5px); }

.orb-aura {
  position: absolute;
  left: var(--home-orb-center-x);
  top: var(--home-orb-center-y);
  z-index: 3;
  width: min(78vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 244, 212, 0.18), transparent 19%),
    radial-gradient(circle at 44% 46%, rgba(124, 111, 179, 0.22), transparent 44%),
    radial-gradient(circle at 66% 60%, rgba(199, 164, 107, 0.16), transparent 50%);
  filter: blur(24px);
  opacity: 0.82;
  translate: -50% -50%;
  animation: auraPulse 6s ease-in-out infinite;
}

.crystal-orb {
  position: relative;
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.86), transparent 10%),
    radial-gradient(circle at 37% 31%, rgba(168, 155, 217, 0.46), transparent 26%),
    radial-gradient(circle at 63% 58%, rgba(224, 188, 116, 0.22), transparent 40%),
    radial-gradient(circle at 46% 56%, rgba(21, 22, 33, 0.72), rgba(5, 5, 6, 0.9) 67%, rgba(241, 219, 172, 0.22) 100%);
  box-shadow:
    inset 19px 15px 34px rgba(255, 255, 255, 0.2),
    inset -28px -22px 48px rgba(0, 0, 0, 0.8),
    inset 0 0 24px rgba(232, 202, 139, 0.08),
    0 0 34px rgba(210, 190, 144, 0.16),
    0 0 100px rgba(111, 97, 155, 0.18);
  animation: orbBreath 5s ease-in-out infinite;
}

.home-orb {
  position: absolute;
  left: var(--home-orb-center-x);
  top: var(--home-orb-center-y);
  z-index: 5;
  width: min(70vw, 304px);
  translate: -50% -50%;
}

.cinematic-orb {
  border: 1px solid rgba(255, 248, 224, 0.16);
  box-shadow:
    inset 22px 18px 42px rgba(255, 255, 255, 0.23),
    inset -34px -29px 58px rgba(0, 0, 0, 0.84),
    inset 0 0 34px rgba(232, 202, 139, 0.09),
    0 18px 44px rgba(0, 0, 0, 0.52),
    0 0 42px rgba(210, 190, 144, 0.18),
    0 0 130px rgba(111, 97, 155, 0.24);
}

.orb-core,
.orb-rings,
.orb-card-shadow,
.orb-mist,
.orb-refraction,
.orb-glass-flare,
.orb-caustic {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.orb-mist {
  inset: 9%;
  background:
    radial-gradient(ellipse at 34% 42%, rgba(134, 119, 188, 0.35), transparent 34%),
    radial-gradient(ellipse at 68% 58%, rgba(223, 193, 130, 0.18), transparent 33%),
    conic-gradient(from 110deg, transparent, rgba(255, 255, 255, 0.12), transparent, rgba(109, 97, 158, 0.16), transparent);
  filter: blur(9px);
  opacity: 0.8;
  animation: mistDrift 16s ease-in-out infinite alternate;
}

.orb-refraction {
  inset: 4%;
  border: 1px solid rgba(255, 248, 224, 0.12);
  background:
    linear-gradient(117deg, transparent 19%, rgba(255, 255, 255, 0.13) 33%, transparent 48%),
    radial-gradient(ellipse at 72% 22%, rgba(255, 255, 255, 0.38), transparent 13%),
    radial-gradient(ellipse at 29% 78%, rgba(199, 164, 107, 0.16), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.82;
}

.orb-core {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 230, 164, 0.18), transparent 4%),
    conic-gradient(from 20deg, transparent, rgba(199, 164, 107, 0.26), transparent, rgba(136, 123, 188, 0.28), transparent);
  mask-image: radial-gradient(circle, #000 0 62%, transparent 67%);
  animation: slowSpin 22s linear infinite reverse;
}

.orb-rings {
  inset: 16%;
  border: 1px solid rgba(199, 164, 107, 0.27);
  box-shadow: inset 0 0 0 22px rgba(199, 164, 107, 0.035);
  animation: slowSpin 28s linear infinite;
}

.orb-card-shadow {
  inset: 30% 37%;
  border: 1px solid rgba(241, 219, 172, 0.42);
  border-radius: 7px;
  opacity: 0.64;
  transform: rotate(0deg);
  box-shadow:
    0 0 18px rgba(241, 219, 172, 0.08),
    inset 0 0 14px rgba(0, 0, 0, 0.22);
}

.orb-glass-flare {
  inset: -1%;
  background:
    radial-gradient(circle at 73% 22%, rgba(255, 255, 255, 0.58), transparent 8%),
    radial-gradient(ellipse at 57% 8%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(150deg, transparent 50%, rgba(255, 255, 255, 0.08) 62%, transparent 75%);
  opacity: 0.88;
}

.orb-caustic {
  inset: 8%;
  background:
    linear-gradient(94deg, transparent 0 26%, rgba(255, 241, 198, 0.1) 38%, transparent 55%),
    linear-gradient(150deg, transparent 0 38%, rgba(139, 121, 184, 0.14) 51%, transparent 68%);
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0.68;
  animation: causticSweep 9s ease-in-out infinite alternate;
}

.light-pedestal {
  position: absolute;
  left: var(--home-orb-center-x);
  top: calc(var(--home-orb-center-y) + min(32vw, 140px));
  z-index: 4;
  width: min(78vw, 318px);
  height: 54px;
  border: 1px solid rgba(199, 164, 107, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(235, 204, 139, 0.42), transparent 60%),
    linear-gradient(90deg, transparent, rgba(235, 204, 139, 0.14), transparent);
  box-shadow:
    0 0 36px rgba(199, 164, 107, 0.17),
    0 18px 44px rgba(0, 0, 0, 0.56);
  filter: blur(0.3px);
  translate: -50% -50%;
}

.home-copy {
  position: relative;
  z-index: 10;
  margin-bottom: 68px;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(48px, 14.2vw, 66px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-shadow:
    0 2px 0 rgba(255, 245, 214, 0.08),
    0 0 26px rgba(244, 239, 227, 0.16),
    0 0 68px rgba(199, 164, 107, 0.18);
}

h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.subline {
  max-width: 332px;
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.home-value {
  max-width: 300px;
  margin: 0 auto 8px;
  color: rgba(247, 233, 196, 0.95);
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 18px;
  line-height: 1.5;
  text-shadow: 0 0 22px rgba(199, 164, 107, 0.2);
}

.home-proof {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  color: rgba(244, 239, 227, 0.52);
  font-size: 11px;
}

.home-proof span {
  position: relative;
  padding: 5px 9px;
  border: 1px solid rgba(199, 164, 107, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.026);
}

.home-proof span:not(:last-child)::after {
  position: absolute;
  right: -8px;
  top: 50%;
  width: 8px;
  height: 1px;
  content: "";
  background: rgba(199, 164, 107, 0.22);
}

.home-mantra {
  max-width: 286px;
  margin: 0 auto 24px;
  color: rgba(199, 164, 107, 0.72);
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 13px;
  line-height: 1.7;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid rgba(230, 205, 149, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(12, 11, 10, 0.78);
  box-shadow: 0 0 28px rgba(199, 164, 107, 0.12);
  color: #f7e9c4;
  backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.screen-home .primary-action {
  min-width: min(72vw, 244px);
  border-color: rgba(230, 205, 149, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 249, 230, 0.1), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 50% 0%, rgba(199, 164, 107, 0.16), transparent 70%),
    rgba(9, 8, 7, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 224, 0.04),
    0 0 34px rgba(199, 164, 107, 0.13),
    0 20px 50px rgba(0, 0, 0, 0.34);
}

.primary-action:not(.is-disabled):active {
  transform: scale(0.98);
  box-shadow: 0 0 34px rgba(199, 164, 107, 0.22);
}

.primary-action.is-disabled {
  opacity: 0.42;
  cursor: default;
}

.disclaimer,
.result-disclaimer {
  position: relative;
  z-index: 10;
  margin: 0 auto 18px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 24px;
  color: var(--muted);
}

.ghost-button,
.ghost-pill {
  border: 1px solid rgba(244, 239, 227, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.ghost-button {
  min-width: 56px;
  min-height: 32px;
  border-radius: 999px;
}

.screen-intent {
  overflow: hidden auto;
  background:
    radial-gradient(circle at 52% 16%, rgba(139, 121, 184, 0.14), transparent 14rem),
    radial-gradient(circle at 50% 48%, rgba(199, 164, 107, 0.07), transparent 16rem),
    linear-gradient(180deg, rgba(5, 5, 7, 0.98), rgba(2, 2, 2, 0.99));
}

.intent-oracle {
  position: absolute;
  left: 50%;
  top: 138px;
  width: 254px;
  aspect-ratio: 1;
  border: 1px solid rgba(199, 164, 107, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(199, 164, 107, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at center, transparent 0 34%, rgba(199, 164, 107, 0.13) 34.5% 35%, transparent 35.5%),
    radial-gradient(circle at center, transparent 0 62%, rgba(199, 164, 107, 0.12) 62.5% 63%, transparent 63.5%),
    conic-gradient(from 18deg, transparent 0 11%, rgba(199, 164, 107, 0.12) 11.3% 11.7%, transparent 12% 24%);
  opacity: 0.54;
  pointer-events: none;
  transform: translateX(-50%);
}

.intent-oracle span {
  position: absolute;
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(230, 205, 149, 0.74);
  box-shadow: 0 0 16px rgba(230, 205, 149, 0.38);
}

.intent-oracle span:nth-child(1) { left: 24%; top: 38%; }
.intent-oracle span:nth-child(2) { right: 22%; top: 25%; }
.intent-oracle span:nth-child(3) { left: 54%; bottom: 18%; }

.intent-copy {
  position: relative;
  z-index: 1;
  margin: 20px 0 20px;
  text-align: center;
}

.intent-copy h2 {
  max-width: 332px;
  margin-right: auto;
  margin-left: auto;
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 400;
  line-height: 1.35;
}

.intent-guidance {
  max-width: 302px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.intent-label {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: rgba(199, 164, 107, 0.76);
  font-size: 12px;
}

.theme-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.theme-option,
.state-chip {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(14, 13, 12, 0.76);
  text-align: left;
}

.theme-option {
  display: grid;
  min-height: 132px;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 13px 12px;
}

.theme-option strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.theme-option span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.theme-sigil {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(199, 164, 107, 0.22);
  border-radius: 50%;
  color: var(--gold) !important;
  font-size: 15px !important;
  line-height: 1;
}

.theme-body {
  min-width: 0;
}

.theme-prompt {
  display: block;
  margin-top: 8px;
  color: rgba(244, 239, 227, 0.48);
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
}

.theme-option.is-selected,
.state-chip.is-selected {
  border-color: rgba(199, 164, 107, 0.58);
  background:
    radial-gradient(circle at 18% 16%, rgba(199, 164, 107, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.018)),
    rgba(14, 13, 12, 0.78);
  box-shadow: inset 0 0 0 1px rgba(199, 164, 107, 0.14), 0 0 26px rgba(199, 164, 107, 0.08);
}

.state-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.state-chip {
  padding: 14px 15px;
  color: rgba(244, 239, 227, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.screen-summon {
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.summon-stage {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  text-align: center;
}

.summon-orb {
  width: 210px;
  transform: scale(0.96);
  animation: summonPulse 4s ease-in-out infinite;
}

.summon-cards {
  position: absolute;
  width: 310px;
  aspect-ratio: 1;
  animation: slowSpin 9s linear infinite;
}

.summon-cards span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 66px;
  border: 1px solid rgba(199, 164, 107, 0.48);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(239, 215, 157, 0.18), transparent 42%),
    linear-gradient(180deg, #17120f, #050505);
  opacity: 0;
  transform-origin: 0 150px;
  animation: cardBirth 3.5s ease-in-out infinite;
}

.summon-cards span:nth-child(1) { transform: rotate(8deg) translateY(-145px); animation-delay: 0ms; }
.summon-cards span:nth-child(2) { transform: rotate(82deg) translateY(-145px); animation-delay: 260ms; }
.summon-cards span:nth-child(3) { transform: rotate(154deg) translateY(-145px); animation-delay: 520ms; }
.summon-cards span:nth-child(4) { transform: rotate(226deg) translateY(-145px); animation-delay: 780ms; }
.summon-cards span:nth-child(5) { transform: rotate(298deg) translateY(-145px); animation-delay: 1040ms; }

#summonLine {
  position: absolute;
  bottom: 50px;
  max-width: 260px;
  color: var(--muted);
  line-height: 1.8;
}

.ghost-pill {
  position: absolute;
  bottom: 32px;
  left: 50%;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.screen-draw {
  flex-direction: column;
  overflow: hidden;
  padding: 20px 22px 18px;
}

.screen-draw .screen-header {
  margin-bottom: 14px;
}

.draw-copy {
  position: relative;
  z-index: 2;
  min-height: 58px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.draw-copy p {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.draw-copy strong {
  color: var(--gold);
  font-size: 12px;
  font-weight: 400;
}

.flat-astro-stage {
  position: relative;
  flex: 1;
  min-height: 318px;
  margin: 0 0 8px;
  perspective: 880px;
  transform-style: preserve-3d;
}

.flat-astro-plate {
  position: absolute;
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  width: min(74vw, 292px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 164, 107, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(232, 202, 139, 0.24), transparent 5%),
    radial-gradient(circle at center, transparent 35%, rgba(199, 164, 107, 0.15) 35.4%, transparent 36%),
    radial-gradient(circle at center, transparent 58%, rgba(199, 164, 107, 0.18) 58.4%, transparent 59%),
    linear-gradient(90deg, transparent 49.8%, rgba(199, 164, 107, 0.22) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(199, 164, 107, 0.18) 50%, transparent 50.2%);
  box-shadow:
    inset 0 0 70px rgba(199, 164, 107, 0.05),
    0 0 44px rgba(128, 111, 166, 0.09);
  transform: translate(-50%, -50%);
}

.flat-astro-plate::before,
.flat-astro-plate::after {
  position: absolute;
  inset: 17%;
  content: "";
  border: 1px solid rgba(199, 164, 107, 0.22);
  border-radius: 50%;
}

.flat-astro-plate::after {
  inset: 4%;
  background: conic-gradient(
    from 0deg,
    rgba(199, 164, 107, 0.26) 0deg 1deg,
    transparent 1deg 30deg,
    rgba(199, 164, 107, 0.18) 30deg 31deg,
    transparent 31deg 60deg
  );
  opacity: 0.6;
}

.draw-orb {
  position: absolute;
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  z-index: 2;
  width: 96px;
  opacity: 0.92;
  transform: translate(-50%, -50%) scale(0.88);
}

.orbit-cards {
  position: absolute;
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  width: 292px;
  height: 292px;
  z-index: 3;
  transform: translate(-50%, -50%) rotateZ(0deg);
  transform-origin: center;
  transform-style: preserve-3d;
  animation: flatOrbitSpin 42s linear infinite;
}

.flat-astro-stage.is-spinning .orbit-cards {
  animation: flatOrbitDraw 1840ms cubic-bezier(0.16, 1, 0.3, 1);
}

.orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 32px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(232, 202, 139, 0.76);
  border-radius: 5px;
  background:
    radial-gradient(circle at center, rgba(232, 202, 139, 0.35), transparent 34%),
    linear-gradient(135deg, rgba(245, 226, 172, 0.2), transparent 38%),
    linear-gradient(180deg, #251b12, #080706);
  box-shadow: 0 0 18px rgba(199, 164, 107, 0.18);
  opacity: var(--card-opacity);
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(-118px)
    rotate(calc(-1 * var(--angle)))
    rotateY(var(--tilt))
    translateZ(var(--z))
    scale(var(--scale));
  transform-origin: center;
}

.orbit-card::before,
.orbit-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(232, 202, 139, 0.32);
  border-radius: 5px;
}

.orbit-card::after {
  inset: 3px -5px -3px 5px;
  border-color: rgba(102, 77, 45, 0.42);
  background: linear-gradient(180deg, rgba(64, 45, 30, 0.48), rgba(8, 6, 5, 0.78));
  transform: translateZ(-8px);
  z-index: -1;
}

.draw-progress {
  position: absolute;
  left: 50%;
  bottom: 6px;
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.chosen-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 76px;
  padding-bottom: 8px;
}

.chosen-slot {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(244, 239, 227, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  font-size: 12px;
  text-align: center;
  animation: slotIn 320ms ease both;
}

.chosen-slot.is-filled {
  border-color: rgba(199, 164, 107, 0.5);
  background:
    radial-gradient(circle at 50% 20%, rgba(199, 164, 107, 0.14), transparent 40%),
    rgba(255, 255, 255, 0.035);
  color: var(--gold);
}

.chosen-slot strong,
.chosen-slot small,
.chosen-slot span {
  display: block;
}

.chosen-slot strong {
  margin: 4px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.chosen-slot small {
  color: var(--dim);
}

.draw-action {
  align-self: center;
  min-height: 48px;
  margin-bottom: 0;
}

.draw-action:disabled {
  opacity: 0.58;
  cursor: default;
}

.screen-draw {
  background:
    radial-gradient(circle at 50% 35%, rgba(111, 97, 155, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(5, 5, 5, 0.24), rgba(2, 2, 2, 0.5));
}

.screen-draw .screen-header,
.draw-copy,
.chosen-slots,
.draw-action {
  position: relative;
  z-index: 10;
}

.draw-copy {
  min-height: 54px;
}

.flat-astro-stage {
  --draw-center-x: 50%;
  --draw-center-y: 49%;
  min-height: 332px;
  border-radius: 8px;
  isolation: isolate;
  perspective: 920px;
  transform-style: preserve-3d;
}

.draw-ritual-vignette,
.draw-astro-halo,
.draw-energy-beam {
  position: absolute;
  pointer-events: none;
}

.draw-ritual-vignette {
  inset: -18px -22px;
  z-index: 1;
  background:
    radial-gradient(circle at var(--draw-center-x) var(--draw-center-y), transparent 0 37%, rgba(0, 0, 0, 0.34) 68%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 36%, rgba(0, 0, 0, 0.26));
}

.draw-astro-halo {
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  z-index: 2;
  width: min(84vw, 328px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(230, 205, 149, 0.18), transparent 7%),
    radial-gradient(circle, transparent 42%, rgba(199, 164, 107, 0.1) 42.4%, transparent 43%),
    conic-gradient(from 12deg, transparent, rgba(199, 164, 107, 0.2), transparent 18%, rgba(139, 121, 184, 0.18), transparent 39%);
  filter: blur(0.2px);
  opacity: 0.82;
  translate: -50% -50%;
  animation: slowSpin 52s linear infinite;
}

.draw-energy-beam {
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  z-index: 6;
  width: 2px;
  height: min(45vw, 174px);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 235, 179, 0.94), transparent);
  box-shadow:
    0 0 16px rgba(230, 205, 149, 0.46),
    0 0 42px rgba(139, 121, 184, 0.32);
  opacity: 0;
  transform-origin: center bottom;
  translate: -50% -92%;
}

.flat-astro-stage.is-revealing .draw-energy-beam {
  animation: drawBeam 1840ms cubic-bezier(0.16, 1, 0.3, 1);
}

.flat-astro-stage.is-revealing .draw-astro-halo {
  opacity: 0.96;
  transform: scale(1.012);
}

.draw-summon-flare,
.draw-summon-trail,
.draw-spark-field {
  position: absolute;
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  pointer-events: none;
}

.draw-summon-flare {
  z-index: 8;
  width: min(48vw, 188px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 241, 198, 0.74) 0 2px, transparent 3px),
    radial-gradient(circle at center, rgba(255, 228, 173, 0.35), transparent 22%),
    radial-gradient(circle at center, transparent 40%, rgba(199, 164, 107, 0.2) 41%, transparent 54%),
    conic-gradient(from 14deg, transparent, rgba(255, 228, 173, 0.34), transparent 22%, rgba(169, 112, 255, 0.22), transparent 42%);
  opacity: 0;
  translate: -50% -50%;
  transform: scale(0.42) rotate(0deg);
  will-change: transform, opacity;
}

.draw-summon-trail {
  z-index: 8;
  width: 120px;
  height: 222px;
  opacity: 0;
  transform:
    translate(calc(-50% + var(--summon-target-x, 0px)), -12%)
    rotate(var(--summon-rotation, 0deg));
  transform-origin: center top;
  will-change: transform, opacity;
}

.draw-summon-trail::before,
.draw-summon-trail::after {
  position: absolute;
  left: 50%;
  top: 0;
  content: "";
  border-radius: 999px;
  transform: translateX(-50%);
}

.draw-summon-trail::before {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 241, 198, 0.92), rgba(199, 164, 107, 0.24), transparent);
  box-shadow:
    0 0 18px rgba(255, 228, 173, 0.48),
    0 0 54px rgba(151, 87, 210, 0.28);
}

.draw-summon-trail::after {
  width: 58px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 228, 173, 0.16), transparent 64%);
}

.draw-spark-field {
  z-index: 10;
  width: min(64vw, 248px);
  aspect-ratio: 1;
  opacity: 0;
  translate: -50% -50%;
  will-change: transform, opacity;
}

.draw-spark-field span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 239, 192, 0.96);
  box-shadow:
    0 0 10px rgba(255, 228, 173, 0.72),
    0 0 22px rgba(174, 119, 255, 0.38);
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--spark-i) * 45deg))
    translateY(-18px);
}

.draw-spark-field span:nth-child(1) { --spark-i: 0; }
.draw-spark-field span:nth-child(2) { --spark-i: 1; }
.draw-spark-field span:nth-child(3) { --spark-i: 2; }
.draw-spark-field span:nth-child(4) { --spark-i: 3; }
.draw-spark-field span:nth-child(5) { --spark-i: 4; }
.draw-spark-field span:nth-child(6) { --spark-i: 5; }
.draw-spark-field span:nth-child(7) { --spark-i: 6; }
.draw-spark-field span:nth-child(8) { --spark-i: 7; }

.draw-spark-field span:nth-child(n + 5) {
  display: none;
}

.flat-astro-stage.is-charging .draw-astro-halo,
.flat-astro-stage.is-charging .flat-astro-plate,
.flat-astro-stage.is-charging .draw-cosmic-void {
  opacity: 0.94;
}

.flat-astro-stage.is-charging .draw-astro-halo,
.flat-astro-stage.is-charging .draw-cosmic-void {
  transform: scale(1.01);
}

.flat-astro-stage.is-charging .flat-astro-plate {
  transform: translate(-50%, -50%) scale(1.01);
}

.flat-astro-stage.is-charging .draw-summon-flare {
  animation: summonFlare 2560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.flat-astro-stage.is-revealing .draw-summon-trail {
  animation: summonTrail 1840ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.flat-astro-stage.is-revealing .draw-spark-field {
  animation: sparkBurst 1840ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.flat-astro-stage.is-settling .flat-astro-plate {
  animation: plateSettle 440ms ease-out both;
}

.flat-astro-plate {
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  z-index: 3;
  width: min(78vw, 306px);
  box-shadow:
    inset 0 0 76px rgba(199, 164, 107, 0.07),
    0 0 54px rgba(128, 111, 166, 0.12),
    0 0 110px rgba(0, 0, 0, 0.34);
}

.draw-orb {
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  z-index: 5;
  width: 106px;
  border: 1px solid rgba(255, 248, 224, 0.12);
  box-shadow:
    inset 13px 11px 24px rgba(255, 255, 255, 0.2),
    inset -16px -14px 28px rgba(0, 0, 0, 0.82),
    0 0 40px rgba(199, 164, 107, 0.14);
}

.orbit-cards {
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  z-index: 4;
  width: min(78vw, 306px);
  height: min(78vw, 306px);
  transform: translate(-50%, -50%) rotateZ(0deg);
  transform-style: preserve-3d;
  animation: flatOrbitSpin 38s linear infinite;
}

.flat-astro-stage.is-spinning .orbit-cards {
  animation: flatOrbitDraw 1840ms cubic-bezier(0.16, 1, 0.3, 1);
}

.orbit-card {
  width: 30px;
  height: 47px;
  border-color: rgba(232, 202, 139, 0.7);
  background:
    radial-gradient(circle at 50% 34%, rgba(232, 202, 139, 0.28), transparent 31%),
    linear-gradient(135deg, rgba(245, 226, 172, 0.22), transparent 40%),
    linear-gradient(180deg, #211711, #050505);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(199, 164, 107, 0.18);
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(min(-31vw, -122px))
    rotate(calc(-1 * var(--angle)))
    rotateY(var(--tilt))
    translateZ(var(--z))
    scale(var(--scale));
}

.draw-progress {
  bottom: 2px;
  z-index: 8;
  color: rgba(230, 205, 149, 0.86);
}

.chosen-slots {
  gap: 8px;
  min-height: 104px;
  padding-bottom: 10px;
}

.chosen-slot {
  min-height: 100px;
  align-content: center;
  gap: 3px;
  border-color: rgba(244, 239, 227, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
    rgba(3, 3, 3, 0.38);
  overflow: hidden;
}

.chosen-slot.is-filled {
  border-color: rgba(199, 164, 107, 0.46);
  background:
    radial-gradient(circle at 50% 18%, rgba(199, 164, 107, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016));
}

.chosen-card-face {
  display: grid;
  width: 34px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(230, 205, 149, 0.58);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 34%, rgba(230, 205, 149, 0.2), transparent 32%),
    linear-gradient(180deg, #1b130e, #050505);
  box-shadow: 0 0 18px rgba(199, 164, 107, 0.16);
  color: rgba(230, 205, 149, 0.88);
  font-family: "Songti SC", serif;
  font-size: 12px;
}

.chosen-slot.is-fresh .chosen-card-face {
  animation: cardLand 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.flat-astro-stage.is-settling + .chosen-slots .chosen-slot.is-fresh {
  animation: slotWake 440ms ease-out both;
}

.chosen-slot strong {
  max-width: 100%;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.2;
}

.chosen-slot span,
.chosen-slot small {
  font-size: 11px;
}

.draw-action {
  min-width: min(72vw, 236px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 224, 0.035),
    0 0 34px rgba(199, 164, 107, 0.14);
}

.screen-draw {
  background:
    radial-gradient(circle at 50% 48%, rgba(83, 47, 118, 0.2), transparent 18rem),
    radial-gradient(circle at 78% 22%, rgba(199, 164, 107, 0.08), transparent 10rem),
    linear-gradient(180deg, #050509 0%, #08070a 54%, #020202 100%);
}

.flat-astro-stage {
  --draw-center-y: 43%;
  min-height: 390px;
}

.draw-constellation-web {
  position: absolute;
  inset: -18px -24px;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 24%, rgba(245, 226, 172, 0.54) 0 1px, transparent 2px),
    radial-gradient(circle at 29% 18%, rgba(170, 139, 255, 0.68) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 22%, rgba(245, 226, 172, 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 73%, rgba(245, 226, 172, 0.52) 0 1px, transparent 2px),
    linear-gradient(128deg, transparent 0 17%, rgba(199, 164, 107, 0.12) 17.2% 17.5%, transparent 18%),
    linear-gradient(48deg, transparent 0 63%, rgba(199, 164, 107, 0.1) 63.2% 63.5%, transparent 64%);
  opacity: 0.82;
}

.draw-constellation-web span {
  position: absolute;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 205, 149, 0.28), transparent);
  transform-origin: left center;
}

.draw-constellation-web span:nth-child(1) { left: 6%; top: 28%; transform: rotate(-18deg); }
.draw-constellation-web span:nth-child(2) { right: 9%; top: 20%; transform: rotate(28deg); }
.draw-constellation-web span:nth-child(3) { left: 16%; bottom: 29%; transform: rotate(18deg); }
.draw-constellation-web span:nth-child(4) { right: 5%; bottom: 22%; transform: rotate(-35deg); }

.draw-cosmic-void {
  position: absolute;
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  z-index: 5;
  width: min(38vw, 150px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 164, 107, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 0 46%, rgba(60, 34, 82, 0.34) 62%, transparent 72%),
    radial-gradient(circle at 50% 50%, rgba(131, 83, 181, 0.3), transparent 68%);
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.84),
    0 0 42px rgba(118, 72, 157, 0.28),
    0 0 92px rgba(199, 164, 107, 0.08);
  translate: -50% -50%;
}

.draw-cosmic-void::before,
.draw-cosmic-void::after,
.draw-cosmic-void span {
  position: absolute;
  inset: -18%;
  content: "";
  border: 1px solid rgba(199, 164, 107, 0.16);
  border-radius: 50%;
}

.draw-cosmic-void::after {
  inset: 18%;
  border-color: rgba(131, 83, 181, 0.22);
  filter: blur(0.3px);
}

.draw-cosmic-void span {
  inset: -31%;
  border-color: rgba(199, 164, 107, 0.08);
  animation: slowSpin 36s linear infinite reverse;
}

.draw-astro-halo {
  top: var(--draw-center-y);
  width: min(96vw, 382px);
  background:
    radial-gradient(circle, rgba(230, 205, 149, 0.2), transparent 3%),
    radial-gradient(circle, transparent 29%, rgba(199, 164, 107, 0.16) 29.4%, transparent 30%),
    radial-gradient(circle, transparent 46%, rgba(199, 164, 107, 0.13) 46.4%, transparent 47%),
    radial-gradient(circle, transparent 63%, rgba(199, 164, 107, 0.16) 63.4%, transparent 64%),
    conic-gradient(from 0deg, rgba(199, 164, 107, 0.28) 0deg 0.8deg, transparent 0.8deg 29deg, rgba(199, 164, 107, 0.13) 29deg 30deg, transparent 30deg 60deg);
}

.flat-astro-plate {
  top: var(--draw-center-y);
  width: min(92vw, 362px);
  border-color: rgba(199, 164, 107, 0.18);
  background:
    radial-gradient(circle at center, transparent 0 24%, rgba(199, 164, 107, 0.18) 24.4%, transparent 25%),
    radial-gradient(circle at center, transparent 41%, rgba(199, 164, 107, 0.13) 41.4%, transparent 42%),
    radial-gradient(circle at center, transparent 58%, rgba(199, 164, 107, 0.15) 58.4%, transparent 59%),
    linear-gradient(90deg, transparent 49.9%, rgba(199, 164, 107, 0.24) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, rgba(199, 164, 107, 0.16) 50%, transparent 50.1%);
}

.floating-card-field {
  position: absolute;
  inset: -24px -30px -8px;
  z-index: 7;
  width: auto;
  height: auto;
  transform: none;
  transform-style: preserve-3d;
  animation: cardFieldDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.flat-astro-stage.is-spinning .floating-card-field {
  animation: cardFieldDraw 1840ms cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-card-field .orbit-card {
  left: var(--x);
  top: var(--y);
  width: 34px;
  height: 54px;
  border-color: rgba(255, 216, 161, 0.74);
  background:
    radial-gradient(circle at 50% 52%, rgba(230, 205, 149, 0.26), transparent 18%),
    linear-gradient(90deg, transparent 48%, rgba(230, 205, 149, 0.24) 49.5%, transparent 51%),
    linear-gradient(180deg, transparent 48%, rgba(230, 205, 149, 0.18) 49.5%, transparent 51%),
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(230, 205, 149, 0.16) 35%, transparent 37%),
    linear-gradient(180deg, #130f13, #030306);
  box-shadow:
    0 0 0 1px rgba(255, 246, 220, 0.06),
    0 0 18px rgba(199, 164, 107, 0.22),
    0 0 34px rgba(151, 87, 210, 0.1);
  opacity: var(--card-opacity);
  transform:
    translate(-50%, -50%)
    rotate(var(--rotate))
    rotateY(var(--tilt))
    translateZ(var(--z))
    scale(var(--scale));
}

.floating-card-field .orbit-card::before {
  inset: 7px;
  border-color: rgba(230, 205, 149, 0.28);
}

.floating-card-field .orbit-card::after {
  inset: 3px -6px -3px 6px;
  border-color: rgba(113, 74, 48, 0.52);
  background: linear-gradient(180deg, rgba(64, 41, 30, 0.62), rgba(3, 3, 5, 0.86));
  transform: translateZ(-8px);
}

.summoned-card {
  position: absolute;
  left: var(--draw-center-x);
  top: var(--draw-center-y);
  z-index: 9;
  display: grid;
  width: 46px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 228, 173, 0.78);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 228, 173, 0.3), transparent 18%),
    linear-gradient(90deg, transparent 48%, rgba(255, 228, 173, 0.25) 49.5%, transparent 51%),
    linear-gradient(180deg, transparent 48%, rgba(255, 228, 173, 0.2) 49.5%, transparent 51%),
    radial-gradient(circle at 50% 50%, transparent 0 33%, rgba(255, 228, 173, 0.18) 34%, transparent 37%),
    linear-gradient(180deg, #181014, #020205);
  box-shadow:
    0 0 0 1px rgba(255, 248, 224, 0.07),
    0 0 22px rgba(255, 228, 173, 0.36),
    0 0 52px rgba(151, 87, 210, 0.24);
  opacity: 0;
  pointer-events: none;
  transform:
    translate(-50%, -50%)
    rotateY(38deg)
    rotateZ(-4deg)
    scale(0.72);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.summoned-card span {
  width: 22px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 228, 173, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(255, 228, 173, 0.035);
}

.summoned-card i {
  position: absolute;
  width: 1px;
  height: 84%;
  background: linear-gradient(180deg, transparent, rgba(255, 228, 173, 0.55), transparent);
  opacity: 0.7;
}

.summoned-card i:first-of-type {
  transform: rotate(34deg);
}

.summoned-card i:last-of-type {
  transform: rotate(-34deg);
}

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

.summoned-card::before {
  inset: 5px;
  border: 1px solid rgba(255, 228, 173, 0.3);
  border-radius: 5px;
}

.summoned-card::after {
  inset: 4px -7px -4px 7px;
  border: 1px solid rgba(113, 74, 48, 0.52);
  border-radius: 7px;
  background: rgba(3, 3, 5, 0.7);
  transform: translateZ(-10px);
}

.flat-astro-stage.is-revealing .summoned-card {
  animation: summonedCardLand 1840ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.draw-progress {
  bottom: 4px;
}

.chosen-slots {
  min-height: 116px;
}

.chosen-slot {
  min-height: 110px;
  border-color: rgba(230, 205, 149, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(230, 205, 149, 0.16), transparent 11%),
    linear-gradient(90deg, transparent 49.7%, rgba(230, 205, 149, 0.16) 50%, transparent 50.3%),
    linear-gradient(180deg, #100d12, #030306);
  box-shadow:
    0 -8px 24px rgba(151, 87, 210, 0.1),
    inset 0 0 0 1px rgba(255, 246, 220, 0.04);
}

.chosen-slot::before,
.chosen-slot::after {
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: rgba(225, 181, 255, 0.9);
  box-shadow: 0 0 14px rgba(225, 181, 255, 0.72);
  transform: translateX(-50%);
}

.chosen-slot::before { top: -3px; }
.chosen-slot::after { bottom: -3px; }

.draw-action {
  margin-top: 2px;
}

.draw-energy-beam {
  top: calc(var(--draw-center-y) + 28%);
  height: 132px;
}

.screen-draw .draw-copy {
  margin-bottom: -4px;
}

.screen-result {
  flex-direction: column;
  padding-bottom: 38px;
  background:
    radial-gradient(circle at 50% 10%, rgba(139, 121, 184, 0.16), transparent 15rem),
    radial-gradient(circle at 50% 40%, rgba(199, 164, 107, 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(6, 6, 8, 0.95), rgba(2, 2, 2, 0.98));
}

.result-hero {
  position: relative;
  margin: 18px 0 22px;
  padding: 28px 10px 12px;
  text-align: center;
}

.result-hero::before {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 182px;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 38%, rgba(199, 164, 107, 0.14) 38.5% 39%, transparent 39.5%),
    radial-gradient(circle at center, transparent 0 62%, rgba(199, 164, 107, 0.12) 62.5% 63%, transparent 63.5%),
    conic-gradient(from 12deg, transparent 0 7%, rgba(199, 164, 107, 0.2) 7.4% 7.8%, transparent 8.2% 15%);
  opacity: 0.58;
  transform: translateX(-50%);
  pointer-events: none;
}

.result-oracle-glow {
  position: absolute;
  left: 50%;
  top: 12px;
  width: min(72vw, 286px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 232, 177, 0.13), transparent 18%),
    radial-gradient(circle at center, transparent 41%, rgba(199, 164, 107, 0.12) 41.5%, transparent 42.5%),
    radial-gradient(circle at center, transparent 64%, rgba(139, 121, 184, 0.1) 64.5%, transparent 65.5%),
    conic-gradient(from 18deg, transparent 0 8%, rgba(199, 164, 107, 0.18) 8.2% 8.7%, transparent 9% 16%);
  opacity: 0.72;
  transform: translateX(-50%);
  pointer-events: none;
}

.result-seal {
  position: relative;
  width: fit-content;
  margin: 0 auto 12px;
  padding: 5px 12px;
  border: 1px solid rgba(199, 164, 107, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(199, 164, 107, 0.72);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.result-hero h2 {
  position: relative;
  margin-bottom: 16px;
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 0 0 22px rgba(199, 164, 107, 0.18);
}

.result-hero p:last-child {
  position: relative;
  color: var(--muted);
  line-height: 1.75;
}

.result-question-label {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 6px 12px;
  border: 1px solid rgba(199, 164, 107, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 239, 227, 0.64);
  font-size: 11px;
  line-height: 1.45;
}

.result-tonight-line {
  position: relative;
  max-width: 322px;
  margin: 16px auto 0;
  padding: 12px 14px;
  border-top: 1px solid rgba(199, 164, 107, 0.18);
  border-bottom: 1px solid rgba(199, 164, 107, 0.1);
  color: rgba(247, 233, 196, 0.86) !important;
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}

.result-cards {
  position: relative;
}

.destiny-spread {
  display: grid;
  gap: 14px;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  overflow: hidden;
  padding: 14px 14px 14px 12px;
  border: 1px solid rgba(199, 164, 107, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(199, 164, 107, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 227, 0.035);
}

.result-card-index {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 2;
  color: rgba(199, 164, 107, 0.32);
  font-family: "Songti SC", serif;
  font-size: 28px;
  line-height: 1;
}

.result-card-thread {
  position: absolute;
  left: 54px;
  top: -24px;
  bottom: -24px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(199, 164, 107, 0.22), transparent);
  opacity: 0.72;
}

.result-card::before {
  position: absolute;
  inset: -42% auto auto -18%;
  width: 160px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(199, 164, 107, 0.13);
  border-radius: 50%;
  opacity: 0.72;
}

.result-card-face,
.tarot-face {
  position: relative;
  display: grid;
  min-height: 116px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(199, 164, 107, 0.52);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 34%, rgba(139, 121, 184, 0.22), transparent 29%),
    radial-gradient(circle at 50% 55%, rgba(199, 164, 107, 0.2), transparent 32%),
    linear-gradient(180deg, #18110e, #050505);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    inset 0 0 22px rgba(199, 164, 107, 0.08);
  text-align: center;
  transform: perspective(420px) rotateY(calc((var(--card-index, 1) - 1) * -6deg)) rotateZ(calc((var(--card-index, 1) - 1) * 2deg));
  transform-style: preserve-3d;
}

.result-card-face::before,
.result-card-face::after {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.result-card-face::before {
  width: 52px;
  aspect-ratio: 1;
  border: 1px solid rgba(199, 164, 107, 0.28);
  box-shadow: inset 0 0 0 14px rgba(199, 164, 107, 0.035);
}

.result-card-face::after {
  width: 5px;
  aspect-ratio: 1;
  background: rgba(245, 213, 151, 0.96);
  box-shadow: 0 0 18px rgba(245, 213, 151, 0.68);
}

.result-card-face span,
.tarot-face span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--gold);
  font-family: "Songti SC", serif;
  font-size: 22px;
}

.result-card-face small,
.tarot-face small {
  position: relative;
  z-index: 1;
  color: var(--dim);
  font-size: 10px;
}

.result-card-oracle {
  position: relative;
  z-index: 1;
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.result-card .position {
  color: var(--gold);
  font-size: 12px;
}

.result-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.result-card .card-reminder {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 239, 227, 0.08);
  color: rgba(244, 239, 227, 0.76);
}

.why-box,
.advice-box,
.feedback-box,
.share-preview {
  margin-top: 16px;
  border: 1px solid rgba(199, 164, 107, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 239, 227, 0.045), transparent 52%),
    rgba(255, 255, 255, 0.028);
}

.why-box {
  padding: 14px;
}

.why-box summary {
  color: var(--gold);
  cursor: pointer;
}

.why-box p,
.advice-box p,
.feedback-box p {
  color: var(--muted);
  line-height: 1.75;
}

.advice-box,
.feedback-box,
.share-preview {
  padding: 15px;
}

.advice-box span {
  color: var(--gold);
  font-size: 12px;
}

.feedback-box div {
  display: flex;
  gap: 8px;
}

.feedback-box button {
  flex: 1;
  min-height: 38px;
  border: 1px solid rgba(244, 239, 227, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.feedback-box button.is-selected {
  border-color: rgba(199, 164, 107, 0.5);
  color: var(--gold);
}

.feedback-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: rgba(244, 239, 227, 0.46);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.share-card {
  position: relative;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  overflow: hidden;
  padding: 34px 24px 32px;
  border: 1px solid rgba(199, 164, 107, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(139, 121, 184, 0.2), transparent 17rem),
    radial-gradient(circle at 50% 42%, rgba(199, 164, 107, 0.12), transparent 16rem),
    linear-gradient(180deg, #09090d, #030303 72%);
  box-shadow: inset 0 0 54px rgba(199, 164, 107, 0.05);
}

.share-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.share-toolbar .section-label {
  margin: 0;
}

.share-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.share-icon-button {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(199, 164, 107, 0.28);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 7, 7, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 224, 0.03), 0 0 18px rgba(199, 164, 107, 0.08);
  color: rgba(247, 233, 196, 0.9);
  font-size: 18px;
  line-height: 1;
}

.share-icon-button:active {
  transform: scale(0.98);
}

.share-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(244, 239, 227, 0.5);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

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

.share-card::before {
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 213, 151, 0.48) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 13%, rgba(191, 158, 255, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 62%, rgba(245, 213, 151, 0.42) 0 1px, transparent 1.8px),
    radial-gradient(circle at 23% 74%, rgba(191, 158, 255, 0.42) 0 1px, transparent 1.8px);
  opacity: 0.66;
}

.share-moon-gate {
  position: absolute;
  left: 50%;
  top: 36%;
  z-index: 1;
  width: min(92vw, 354px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 36%, rgba(199, 164, 107, 0.11) 36.4%, transparent 37.2%),
    radial-gradient(circle at center, transparent 0 61%, rgba(199, 164, 107, 0.1) 61.4%, transparent 62.2%),
    conic-gradient(from 0deg, rgba(199, 164, 107, 0.18) 0deg 0.7deg, transparent 0.7deg 29deg, rgba(139, 121, 184, 0.1) 29deg 30deg, transparent 30deg 60deg);
  opacity: 0.82;
  transform: translate(-50%, -50%);
}

.share-card::after {
  left: 50%;
  top: 48px;
  width: 1px;
  height: 82%;
  background: linear-gradient(180deg, transparent, rgba(199, 164, 107, 0.26), transparent);
  transform: translateX(-50%);
}

.share-brand {
  position: relative;
  z-index: 2;
  color: var(--gold);
  font-family: "Songti SC", serif;
  font-size: 26px;
  letter-spacing: 0.2em;
  text-align: center;
}

.share-sigil-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  color: rgba(244, 239, 227, 0.36);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.share-sigil-row span {
  position: relative;
}

.share-sigil-row span:not(:last-child)::after {
  position: absolute;
  right: -12px;
  top: 50%;
  width: 6px;
  height: 1px;
  content: "";
  background: rgba(199, 164, 107, 0.28);
}

.share-zodiac {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 292px;
  aspect-ratio: 1;
  border: 1px solid rgba(199, 164, 107, 0.26);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 34%, rgba(199, 164, 107, 0.14) 34.4% 35%, transparent 35.6%),
    radial-gradient(circle at center, transparent 0 58%, rgba(199, 164, 107, 0.14) 58.4% 59%, transparent 59.6%),
    linear-gradient(90deg, transparent 49.6%, rgba(199, 164, 107, 0.16) 50%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, rgba(199, 164, 107, 0.16) 50%, transparent 50.4%),
    conic-gradient(from 14deg, transparent 0 7.7%, rgba(199, 164, 107, 0.18) 7.9% 8.2%, transparent 8.4% 15.9%);
  opacity: 0.66;
  transform: translate(-50%, -50%);
}

.share-card-spread {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 196px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 6px;
}

.share-mini-card {
  position: relative;
  display: grid;
  width: 62px;
  height: 100px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(245, 213, 151, 0.58);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 44%, rgba(139, 121, 184, 0.22), transparent 34%),
    linear-gradient(180deg, #17110f, #050505);
  color: var(--gold);
  font-family: "Songti SC", serif;
  box-shadow: 0 0 24px rgba(199, 164, 107, 0.2);
  transform: translateY(8px);
}

.share-mini-card:nth-child(1) {
  transform: translateY(20px) rotate(-7deg);
}

.share-mini-card:nth-child(2) {
  transform: translateY(-6px);
}

.share-mini-card:nth-child(3) {
  transform: translateY(20px) rotate(7deg);
}

.share-mini-card::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(199, 164, 107, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.share-mini-card span,
.share-mini-card small {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.share-mini-card span {
  align-self: end;
  font-size: 18px;
}

.share-mini-card small {
  max-width: 52px;
  align-self: start;
  color: var(--dim);
  font-family: inherit;
  font-size: 9px;
  line-height: 1.25;
}

.share-copy {
  position: relative;
  z-index: 2;
}

.share-hook {
  position: relative;
  padding: 18px 0 8px;
}

.share-hook::before {
  position: absolute;
  left: 50%;
  top: 0;
  width: 88px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(199, 164, 107, 0.48), transparent);
  transform: translateX(-50%);
}

.share-hook span {
  display: block;
  margin-bottom: 10px;
  color: rgba(199, 164, 107, 0.78);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-align: center;
}

.share-copy h3 {
  margin: 0 0 16px;
  font-family: "Songti SC", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 0 24px rgba(199, 164, 107, 0.14);
}

.share-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.share-cta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 12px auto 0;
  padding: 18px 0 2px;
  border: 0;
  border-top: 1px solid rgba(199, 164, 107, 0.22);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.share-cta span {
  color: var(--dim);
  font-size: 11px;
}

.share-cta strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.share-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 239, 227, 0.08);
  color: var(--dim);
  font-size: 12px;
}

@media (min-width: 560px) {
  body {
    padding: 22px 0;
  }

  .phone-shell {
    height: min(900px, calc(100vh - 44px));
    min-height: 720px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
  }

  .phone-shell:has(#homeScreen.is-active) {
    width: min(430px, calc(max(720px, min(930px, calc(100vh - 44px))) * 853 / 1844));
    height: min(930px, max(720px, calc(100vh - 44px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .floating-card-field,
  .draw-astro-halo,
  .draw-summon-flare,
  .draw-summon-trail,
  .draw-spark-field,
  .orbiting-card-ring,
  .cinematic-depth,
  .orb-aura {
    animation: none !important;
  }

  .flat-astro-stage.is-revealing .summoned-card {
    opacity: 0.9;
    transform:
      translate(calc(-50% + var(--summon-target-x, 0px)), var(--summon-target-y, min(44vw, 178px)))
      scale(0.72);
  }
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cinematicDrift {
  0% {
    opacity: 0.72;
    transform: rotateX(66deg) rotateZ(-18deg) translateY(-38px) scale(0.98);
  }
  100% {
    opacity: 0.92;
    transform: rotateX(64deg) rotateZ(-8deg) translateY(-30px) scale(1.03);
  }
}

@keyframes cardRingFloat {
  0% {
    transform: rotateX(14deg) rotateZ(0deg) scale(1);
  }
  50% {
    transform: rotateX(18deg) rotateZ(180deg) scale(1.025);
  }
  100% {
    transform: rotateX(14deg) rotateZ(360deg) scale(1);
  }
}

@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.05);
  }
}

@keyframes causticSweep {
  0% {
    opacity: 0.42;
    transform: rotate(-10deg) translateX(-4px);
  }
  100% {
    opacity: 0.78;
    transform: rotate(8deg) translateX(5px);
  }
}

@keyframes drawBeam {
  0% {
    opacity: 0;
    transform: scaleY(0.14) rotate(0deg);
  }
  34% {
    opacity: 1;
    transform: scaleY(1) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: scaleY(0.22) rotate(-4deg);
  }
}

@keyframes summonFlare {
  0% {
    opacity: 0;
    transform: scale(0.32) rotate(-28deg);
  }
  22% {
    opacity: 0.95;
    transform: scale(0.78) rotate(8deg);
  }
  58% {
    opacity: 0.74;
    transform: scale(1.18) rotate(54deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.5) rotate(96deg);
  }
}

@keyframes summonTrail {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  78% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

@keyframes sparkBurst {
  0% {
    opacity: 0;
    transform: scale(0.18) rotate(-18deg);
  }
  28% {
    opacity: 1;
    transform: scale(0.78) rotate(8deg);
  }
  72% {
    opacity: 0.86;
    transform: scale(1.22) rotate(34deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.5) rotate(62deg);
  }
}

@keyframes cardLand {
  0% {
    opacity: 0;
    transform: translateY(-42px) scale(0.72) rotate(-8deg);
  }
  70% {
    opacity: 1;
    transform: translateY(3px) scale(1.04) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes slotWake {
  0% {
    opacity: 0.82;
    transform: translateY(-4px) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes plateSettle {
  0% {
    transform: translate(-50%, -50%) scale(1.035);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes summonedCardLand {
  0% {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      rotateY(68deg)
      rotateZ(-12deg)
      translateZ(-30px)
      scale(0.58);
  }
  28% {
    opacity: 1;
    transform:
      translate(-50%, -58%)
      rotateY(18deg)
      rotateZ(2deg)
      translateZ(38px)
      scale(1.06);
  }
  72% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--summon-target-x, 0px)), var(--summon-target-y, min(40vw, 162px)))
      rotateY(-16deg)
      rotateZ(var(--summon-rotation, 6deg))
      translateZ(12px)
      scale(0.82);
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--summon-target-x, 0px)), var(--summon-target-y, min(44vw, 178px)))
      rotateY(-24deg)
      rotateZ(var(--summon-rotation, 2deg))
      translateZ(0)
      scale(0.68);
  }
}

@keyframes cardFieldDrift {
  0% {
    transform: translate3d(-4px, -2px, 0);
  }
  100% {
    transform: translate3d(5px, 3px, 0);
  }
}

@keyframes cardFieldDraw {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  58% {
    transform: translate3d(0, -6px, 0) scale(1.035);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes flatOrbitSpin {
  to {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes flatOrbitDraw {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg) scale(1);
  }
  55% {
    transform: translate(-50%, -50%) rotateZ(300deg) scale(1.04);
  }
  100% {
    transform: translate(-50%, -50%) rotateZ(720deg) scale(1);
  }
}

@keyframes slotIn {
  from {
    opacity: 0.45;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes orbBreath {
  0%,
  100% {
    filter: brightness(0.94) saturate(0.92);
  }
  50% {
    filter: brightness(1.1) saturate(1.06);
  }
}

@keyframes mistDrift {
  0% {
    opacity: 0.62;
    transform: rotate(-8deg) scale(1);
  }
  100% {
    opacity: 0.9;
    transform: rotate(13deg) scale(1.07);
  }
}

@keyframes summonPulse {
  0%,
  100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1);
  }
}

@keyframes cardBirth {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  28%,
  78% {
    opacity: 0.78;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    filter: blur(8px);
  }
}
