/* One handheld composition at every viewport width; desktop only centers it. */
html { background: #090b1b; }
body {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 3%, #f4329a38 0, transparent 24%),
    radial-gradient(circle at 95% 24%, #19d6f126 0, transparent 33%),
    linear-gradient(155deg, #14102e 0%, #10172c 54%, #1a1230 100%);
}
main { overflow: visible; }
.mobile-view[hidden], .stage-lock[hidden], .portrait-shell[hidden], .spirit-copy[hidden] { display: none !important; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: none;
  min-height: 64px;
  padding: 12px 17px;
  gap: 9px;
  border-bottom: 0;
  background: #101126ef;
  backdrop-filter: blur(14px);
}
.wordmark { white-space: nowrap; font-size: 1.6rem; text-shadow: 0 0 20px #ff6fc866; }
.wordmark span { color: #ff6ec7; text-shadow: 0 0 13px #ff6ec7; }
.primary-nav { display: flex; gap: 2px; padding: 4px; border: 0; border-radius: 99px; background: #26203d; }
.nav-tab { min-height: 38px; padding: 6px 10px; border: 0; border-radius: 99px; background: transparent; color: #d8cbe9; font-size: .85rem; font-weight: 700; }
.nav-tab.active { background: #ff9bd3; color: #241126; }
.viewer-wrap { display: block; max-width: none; padding: 25px 17px 18px; }
.viewer-wrap::before { left: 8%; top: 0; width: 85%; height: 26%; background: #fb3aa344; }
.intro { position: relative; isolation: isolate; overflow: hidden; padding: 0; }
.intro::before {
  content: "영혼";
  position: absolute;
  z-index: -1;
  top: 36px;
  right: -13px;
  color: #ff82ca;
  opacity: .105;
  font-size: clamp(6rem, 28vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.13em;
  transform: rotate(-12deg);
  pointer-events: none;
}
.intro .eyebrow { margin: 0; }
.hero-kicker { color: #7ce8f2; font-size: .78rem; line-height: 1.35; letter-spacing: .11em; }
.intro h1 { max-width: none; margin: 17px 0 11px; font-family: Impact, "Arial Black", ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.65rem, 11.2vw, 3.35rem); font-weight: 900; line-height: .98; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 3px 4px 0 #120c2c; }
.intro h1 em { color: #ff9fd5; font-style: normal; text-shadow: 0 0 29px #ff419a82; }
.intro>p:not(.eyebrow) { max-width: 33ch; margin: 0; font-size: 1rem; line-height: 1.45; }
.birth-form { position: relative; overflow: hidden; margin: 23px 0 0; padding: 19px 18px 18px; border: 0; border-radius: 17px; background: #21182f; box-shadow: none; }
.birth-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #54c894 0 20%, #ff637d 20% 40%, #ffd078 40% 60%, #e9edff 60% 80%, #5aaeff 80%); }
.birth-form h2 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.48rem; font-weight: 850; letter-spacing: -.045em; }
.birth-fields { display: grid; grid-template-columns: 1fr; gap: 0; }
.birth-field input:not([type=checkbox]), .birth-field select { min-height: 51px; border: 0; border-bottom: 2px solid #645875; border-radius: 7px 7px 2px 2px; background: #101727; color: #fff; font-size: 1rem; }
.birth-field input::placeholder { color: #c5c2dd; opacity: 1; letter-spacing: .03em; }
.birth-field input:focus-visible, .birth-field select:focus-visible { outline: 2px solid #57dff0; outline-offset: 2px; border-bottom-color: #ff90cd; }
.birth-group-label { font-size: .9rem; font-weight: 700; color: #f3eaff; }
.date-input-wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .78fr) minmax(0, 1fr); gap: 7px; }
.date-input-wrap select, .date-input-wrap input { min-width: 0; padding-inline: 7px; font-size: .9rem !important; }
.date-input-wrap select:invalid { color: #c5c2dd; }
.date-input-wrap select option { color: #fff; }
.time-input-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.time-input-wrap select { min-width: 0; padding-inline: 10px; }
.time-input-wrap select:invalid { color: #c5c2dd; }
.time-input-wrap select option { color: #fff; }
.time-input-wrap span { color: #8deefd; font-size: 1.35rem; font-weight: 800; }
.birth-field>label, .checkbox-line, .control-label { font-size: .9rem; }
.birth-field small, .privacy-copy { font-size: .82rem; }
.birth-zone-control { min-width: 0; margin-top: 5px; font-size: .875rem; }
.birth-zone-control summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; min-height: 44px; cursor: pointer; color: #d8cbe9; list-style: none; }
.birth-zone-control summary::-webkit-details-marker { display: none; }
.birth-zone-control summary:focus-visible { outline: 2px solid #57dff0; outline-offset: 2px; }
.birth-zone-control strong { font-weight: 500; overflow-wrap: anywhere; }
.zone-change { margin-left: auto; color: #f6d887; text-decoration: underline; text-underline-offset: 3px; }
.birth-zone-control label { display: block; margin: 6px 0; }
.birth-zone-control select { max-width: 100%; }
.birth-zone-control small { display: block; margin-top: 7px; font-size: .875rem; }
.birth-form .primary-button { min-height: 52px; background: linear-gradient(110deg, #ffe29b, #ffa2d4); color: #24132e; font-size: 1rem; box-shadow: none; }
.birth-result { margin: 18px 0 0; }
.viewer { position: static; margin-top: 18px; padding: 10px; border: 0; border-radius: 20px; background: #1a1730; box-shadow: none; }
.viewer { scroll-margin-top: 80px; }
.viewer:focus-visible { outline: 2px solid #f6d887; outline-offset: 3px; }
.viewer.has-result .spirit-stage { height: clamp(220px, 34svh, 300px); min-height: 0; }
.viewer.has-result .portrait-shell { top: 50%; height: calc(100% - 24px); width: auto; max-width: 70%; }
.spirit-view { display: block; margin: 0; }
.spirit-stage { height: min(104vw, 400px); min-height: 320px; border: 0; border-radius: 13px; background: radial-gradient(circle at 50% 38%, #742b7466, transparent 48%), #101729; }
.stage-atmosphere { background: radial-gradient(ellipse at 50% 50%, transparent 18%, #0b1029ad 95%), linear-gradient(115deg, #fb38921a, transparent 48%, #13c6ea14); }
.portrait-shell { top: 45%; width: min(59%, 215px); }
.stage-orbit-one { width: 91%; height: 67%; }
.stage-orbit-two { width: 100%; height: 80%; }
.stage-lock {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 45%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  width: min(67%, 240px);
  aspect-ratio: 2 / 3;
  padding: 19px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 31%, #a52e8455, transparent 44%), linear-gradient(145deg, #392049, #10172f 72%, #12314a);
  box-shadow: 0 24px 50px #060515b8, 0 0 34px #ff5db875;
  text-align: center;
}
.stage-lock-script { padding: 4px 8px; color: #ffe6b8; font-family: Gungseo, "궁서", Gungsuh, "AppleMyungjo", "Noto Serif KR", serif; font-size: 1.35rem; font-weight: 700; line-height: 1.3; letter-spacing: .15em; text-shadow: 0 0 13px #f8c67e9c, 1px 2px 0 #301c37; }
.stage-lock-mark { color: #ffe7ae; font-size: 3.3rem; line-height: 1; text-shadow: 0 0 28px #ff79bd; }
.stage-lock strong { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.4rem; font-weight: 850; line-height: 1.12; letter-spacing: -.045em; }
.spirit-copy { padding: 12px 7px 4px; }
.spirit-copy h2 { font-size: 2rem; }
.spirit-copy .spirit-role { margin-bottom: 6px; }
.spirit-copy #spirit-tagline { margin: 6px 0; }
.spirit-copy .spirit-traits { margin: 8px 0 0; color: #bde8e6; font-size: 1rem; }
.spirit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.spirit-actions .detail-link { margin: 0; }
.detail-demo-note { flex-basis: 100%; color: #e2d7ef; font-size: .875rem; line-height: 1.4; }
.detail-demo-note[hidden] { display: none; }
.share-spirit-button { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 11px; background: #493956; color: #f8f0ff; font-weight: 700; }
.share-status { display: block; flex-basis: 100%; color: #bde8e6; font-size: .85rem; }
.share-status:empty { display: none; }
.share-target-note { display: block; flex-basis: 100%; color: #cfc0db; font-size: .82rem; line-height: 1.35; }
.share-target-note[hidden] { display: none; }
.detail-share { display: grid; justify-items: start; gap: 8px; margin-top: 18px; }
.preview-invitation { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-underline-offset: 4px; }
.share-privacy { flex-basis: 100%; color: #cfc0db; font-size: .875rem; }
.invitation-view { padding: 22px 24px 30px; text-align: center; }
.invitation-view .eyebrow { margin: 0 0 16px; font-size: .875rem; }
.invitation-view img { display: block; width: auto; height: min(34svh, 285px); max-width: 100%; margin: 0 auto 16px; border-radius: 16px; object-fit: contain; }
.invitation-view h1 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 2.2rem; line-height: 1.08; letter-spacing: -.04em; }
.invitation-view #invitation-summary { margin: 12px 0 18px; font-size: 1rem; }
.invitation-view .primary-button { width: 100%; }
.invitation-hint { color: #cfc0db; font-size: .875rem; }
#invitation-error { margin-top: 16px; color: #ffe29b; }
.ad-demo-dialog { width: min(calc(100% - 30px), 390px); padding: 22px; border: 0; border-radius: 20px; background: #271d3b; color: #f8f0ff; }
.ad-demo-dialog::backdrop { background: #080612d9; }
.ad-demo-dialog h2 { margin: 8px 0 0; font-family: Georgia, serif; font-size: 1.7rem; }
.ad-demo-dialog p { color: #e2d7ef; }
.ad-demo-screen { display: grid; place-content: center; justify-items: center; gap: 3px; min-height: 160px; margin: 18px 0; border: 0; border-radius: 17px; background: radial-gradient(circle, #54346e, #1b1a37 78%); }
.ad-demo-screen span { color: #ffe3a2; font-size: 2.8rem; }
.ad-demo-screen strong { font-family: Georgia, serif; font-size: 1.5rem; }
.ad-demo-dialog progress { display: block; width: 100%; height: 10px; accent-color: #ffe09a; }
.ad-demo-dialog #ad-demo-status { margin: 9px 0 16px; font-size: .9rem; }
.ad-demo-dialog button { width: 100%; min-height: 45px; border: 0; border-radius: 10px; background: #433354; color: #eee4fa; }
.personal-detail { max-width: none; padding: 36px 17px 48px; }
.detail-heading h2 { font-size: 2.5rem; }
.detail-layout, .detail-chapters, .detail-elements-panel { display: grid; grid-template-columns: 1fr; }
.detail-art { max-width: none; }
.detail-facts { grid-template-columns: 1fr; }
.detail-facts div { padding: 13px; }
.detail-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-elements-panel, .detail-pillars-panel { padding: 17px; }
.detail-chapters-heading { margin-top: 42px; }
.collection-section, .story-section { max-width: none; padding: 30px 17px 40px; }
.collection-section h1 { margin: 9px 0; font-family: Georgia, serif; font-size: 2.7rem; letter-spacing: -.05em; line-height: 1.04; }
.collection-section>p:not(.eyebrow) { color: #e1d5ef; }
.chooser { display: grid; gap: 8px; margin: 23px 0 19px; }
.chooser select { width: 100%; }
.elements { gap: 7px; }
.elements button { padding: 7px 11px; font-size: .85rem; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.collection-card { min-width: 0; padding: 0 0 10px; overflow: hidden; border: 0; border-radius: 12px; background: #241b39; }
.collection-card img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 0; }
.collection-card strong, .collection-card span { display: block; padding: 0 10px; }
.collection-card strong { margin-top: 8px; font-family: Georgia, serif; font-size: 1.1rem; line-height: 1.1; }
.collection-card span { color: #d5c4e8; font-size: .8rem; }
.story-section { border-top: 0; }
.section-heading h2 { font-size: 2.3rem; }
.section-heading>p:not(.eyebrow) { font-size: 1rem; }
.sample-people { justify-content: flex-start; margin: 21px 0; }
.reading-grid { grid-template-columns: 1fr; }
.reading-grid article { min-height: auto; padding: 19px; border: 0; background: #241d39; }
.birth-result { border: 0; background: #3b3045; }
.chooser select { border: 0; border-bottom: 2px solid #645875; border-radius: 7px 7px 2px 2px; background: #211b34; }
.elements button, .mode { border: 0; background: #302840; }
.elements button.active, .mode.active { border: 0; background: #e1c9ff; }

/* One-time entry transition. The vortex covers the viewport, not the 430px page. */
.arrival-vortex {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at center, #090917 0 12%, #28152f 35%, #050712 75%);
  animation: arrival-collapse 1.55s cubic-bezier(.73, .02, .16, 1) both;
}
.arrival-vortex::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 8%, #ed4395 13%, transparent 22% 34%, #42cddd 42%, transparent 49% 61%, #f6c274 68%, transparent 74% 84%, #7938a8 90%, transparent 96%);
  mask-image: radial-gradient(circle, transparent 0 9%, #000 24% 53%, transparent 75%);
  filter: blur(13px);
  animation: arrival-spin 1.55s cubic-bezier(.2, .75, .2, 1) both;
}
.arrival-vortex::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(33vmin, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #01030c;
  box-shadow: 0 0 0 16px #d7479970, 0 0 86px 45px #ca419491;
  animation: arrival-core 1.55s cubic-bezier(.73, .02, .16, 1) both;
}
.site-header, main { animation: arrival-surface 1.55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes arrival-collapse {
  0%, 18% { opacity: 1; visibility: visible; clip-path: circle(150vmax at 50% 50%); }
  72% { opacity: 1; visibility: visible; clip-path: circle(42vmin at 50% 50%); }
  100% { opacity: 0; visibility: hidden; clip-path: circle(0 at 50% 50%); }
}
@keyframes arrival-spin {
  0% { transform: translate(-50%, -50%) rotate(-90deg) scale(1.4); }
  100% { transform: translate(-50%, -50%) rotate(330deg) scale(.08); }
}
@keyframes arrival-core {
  0%, 30% { transform: translate(-50%, -50%) scale(1.4); }
  100% { transform: translate(-50%, -50%) scale(.02); }
}
@keyframes arrival-surface {
  0%, 16% { opacity: .12; transform: scale(.76) rotate(-3deg); filter: blur(13px); }
  68% { opacity: .72; transform: scale(.94) rotate(-.5deg); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: none; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 10px; }
  .wordmark { font-size: 1.27rem; }
  .nav-tab { padding: 6px 7px; font-size: .75rem; white-space: nowrap; }
  .detail-pillars { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-lock, .portrait-shell { transition: none; }
  .arrival-vortex { display: none; }
  .site-header, main { animation: none; }
}
