:root {
  --bg: #000;
  --ink: #f3f5f8;
  --muted: #9ca6b4;
  --line: rgba(231, 238, 248, .28);
  --panel: rgba(0, 0, 0, .76);
  --main-gem: #1386d8;
  --small-gem: #d96e31;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", "Inter", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  width: 100%;
  overflow: hidden;
}

body {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

#cosmos3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .05), transparent 42%),
    radial-gradient(circle at 80% 78%, rgba(255, 255, 255, .035), transparent 38%),
    #000;
  opacity: 1;
  transition: opacity 1.15s ease, filter 1.15s ease;
}

#cosmos3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body:not([data-state="birth"]) #cosmos3d {
  opacity: .06;
  filter: blur(1.5px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .08) 38%, rgba(0, 0, 0, .68) 100%),
    radial-gradient(circle at 22% 42%, rgba(255, 255, 255, .035), transparent 34%);
  transition: background 1.1s ease;
}

body:not([data-state="birth"])::before {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .028), transparent 46%),
    linear-gradient(180deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .98));
}

.time-reversal {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 82px);
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(78vw, 300px);
  padding: 10px 13px;
  border: 1px solid rgba(235, 242, 250, .22);
  border-radius: 999px;
  background: rgba(2, 5, 12, .52);
  box-shadow: 0 12px 44px rgba(0, 0, 0, .42), 0 0 34px rgba(170, 205, 255, .12);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px) scale(.96);
  transition: opacity .45s ease, transform .45s ease;
}

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

.time-reversal span {
  color: rgba(231, 238, 248, .7);
  font-size: 8px;
  letter-spacing: .22em;
}

.time-reversal strong {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 18px 28px;
  overflow: hidden;
  pointer-events: none;
}

.phone-shell input,
.phone-shell select,
.phone-shell button,
.phone-shell label {
  pointer-events: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 10px;
  backdrop-filter: blur(10px);
}

.brand-wordmark {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 18px rgba(213, 229, 255, .25);
}

.brand-wordmark::after {
  content: ".";
}

.step-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.dot.active {
  width: 18px;
  background: rgba(255, 255, 255, .9);
}

.screen {
  position: absolute;
  inset: 64px 18px 24px;
  display: grid;
  align-content: center;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.98);
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.screen-hero {
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(220, 230, 245, .78);
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 342px;
  font-size: clamp(48px, 14vw, 68px);
  line-height: .86;
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(40px, 11vw, 54px);
  line-height: .88;
}

.subcopy {
  max-width: 278px;
  margin: 22px 0 0;
  color: rgba(243, 245, 248, .78);
  font-size: 13px;
  line-height: 1.45;
}

.birth-panel,
.detail-panel,
.story-card {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 32%),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  backdrop-filter: blur(22px);
  pointer-events: auto;
}

.birth-panel {
  display: grid;
  gap: 12px;
  margin-top: 72px;
  padding: 18px;
  border-radius: 22px;
}

label,
legend,
.gem-controls span {
  color: rgba(231, 238, 248, .66);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(235, 242, 250, .2);
  border-radius: 15px;
  background: rgba(0, 0, 0, .28);
  color: var(--ink);
  padding: 0 14px;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(243, 245, 248, .8) 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(243, 245, 248, .8) 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
    rgba(0, 0, 0, .28);
}

button {
  min-height: 54px;
  border: 1px solid rgba(247, 250, 255, .72);
  border-radius: 999px;
  background: rgba(242, 247, 255, .95);
  color: #050810;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 700;
}

.star-map-ghost {
  position: absolute;
  top: 72px;
  left: 50%;
  width: min(112vw, 520px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  opacity: .2;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .38) 0deg 1deg, transparent 1deg 5deg),
    radial-gradient(circle, transparent 48%, rgba(255, 255, 255, .8) 49%, transparent 50%, transparent 56%, rgba(255, 255, 255, .34) 57%, transparent 58%),
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, .45) 1px, transparent 2px),
    radial-gradient(circle at 58% 38%, rgba(255, 255, 255, .65) 1px, transparent 2px),
    radial-gradient(circle at 63% 66%, rgba(255, 255, 255, .5) 1px, transparent 2px);
  filter: blur(.1px);
  animation: rotateSlow 42s linear infinite;
}

.screen-location {
  align-content: start;
  padding-top: 12px;
  overflow-y: auto;
  scrollbar-width: none;
}

.screen-location::-webkit-scrollbar {
  display: none;
}

.location-copy {
  margin-bottom: 14px;
  max-width: 330px;
}

.location-copy p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.location-sky-preview {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 330px;
  margin-bottom: 18px;
}

.location-sky-preview h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1;
  text-align: center;
}

.location-map-disc {
  position: relative;
  width: min(82vw, 350px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(239, 245, 252, .34);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .48);
  overflow: hidden;
}

.location-map-disc.is-recentered {
  animation: recenterPulse 1.8s ease;
}

.location-map-disc img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  animation: rotateMap 90s linear infinite;
}

#locationPreviewLabel {
  margin: -2px 0 0;
  max-width: 320px;
  color: rgba(231, 238, 248, .68);
  font-size: 10px;
  line-height: 1.35;
  text-align: left;
}

.screen-story {
  align-content: start;
  padding-top: 12px;
  overflow-y: auto;
  scrollbar-width: none;
}

.screen-story::-webkit-scrollbar {
  display: none;
}

.selection-header {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

.birth-sky-result {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
}

.birth-sky-result h2 {
  max-width: 360px;
  font-size: clamp(38px, 11vw, 56px);
  line-height: .92;
}

.result-star-map {
  width: min(86vw, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(239, 245, 252, .34);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.result-star-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sky-story-panel {
  border: 1px solid rgba(235, 242, 250, .18);
  border-radius: 18px;
  padding: 18px;
  background: rgba(4, 7, 13, .62);
  backdrop-filter: blur(18px);
}

.sky-story-panel p {
  margin: 0;
  color: rgba(231, 238, 248, .84);
  font-size: 14px;
  line-height: 1.65;
}

.sky-story-panel .story-note {
  margin-top: 12px;
}

.selection-header h2 {
  max-width: 360px;
  font-size: clamp(34px, 10vw, 48px);
}

.selection-header p:last-child {
  max-width: 340px;
  margin: 14px 0 0;
  color: rgba(231, 238, 248, .74);
  font-size: 12px;
  line-height: 1.5;
}

.jewelry-grid {
  display: none;
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 12px;
}

.jewelry-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 174px;
  padding: 10px;
  border: 1px solid rgba(232, 239, 249, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(175, 206, 255, .16), transparent 46%),
    rgba(4, 7, 13, .66);
  color: var(--ink);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}

.jewelry-card.active {
  border-color: rgba(245, 249, 255, .72);
  box-shadow:
    0 0 0 1px rgba(245, 249, 255, .16),
    0 20px 54px rgba(93, 139, 210, .28);
}

.jewelry-card.active::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f3f7ff;
  box-shadow: 0 0 18px rgba(208, 227, 255, .9);
}

.product-art {
  position: relative;
  display: block;
  height: 104px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .22), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  overflow: hidden;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bracelet::before {
  width: 88px;
  height: 54px;
  border: 5px solid rgba(221, 228, 238, .88);
  border-top-color: rgba(250, 253, 255, .98);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .7), 0 0 24px rgba(210, 230, 255, .22);
}

.bracelet::after {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff, var(--main-gem) 48%, #07101e 76%);
  box-shadow: 0 0 18px var(--main-gem);
}

.bracelet-b::before {
  width: 96px;
  height: 40px;
  border-radius: 999px;
  border-style: dashed;
}

.necklace::before {
  width: 96px;
  height: 72px;
  border: 2px solid rgba(228, 235, 244, .72);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translate(-50%, -58%);
}

.necklace::after {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(12, 21, 38, .96) 0 38%, rgba(231, 237, 247, .9) 39% 48%, transparent 49%),
    conic-gradient(from 20deg, rgba(255, 255, 255, .3), rgba(80, 124, 190, .1), rgba(255, 255, 255, .22));
  box-shadow: 0 0 26px rgba(204, 224, 255, .26);
  transform: translate(-50%, -6%);
}

.necklace-b::after {
  border-radius: 40% 40% 50% 50%;
}

.ring::before {
  width: 62px;
  height: 62px;
  border: 8px solid rgba(220, 227, 237, .88);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .78), 0 0 22px rgba(206, 226, 255, .22);
}

.ring::after {
  width: 24px;
  height: 17px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 30%, #fff, var(--small-gem) 46%, #111827 80%);
  box-shadow: 0 0 18px var(--small-gem);
  transform: translate(-50%, -42px);
}

.ring-b::before {
  width: 74px;
  height: 48px;
}

.product-meta {
  display: grid;
  gap: 4px;
}

.product-meta small {
  color: rgba(231, 238, 248, .52);
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.product-meta strong {
  min-height: 34px;
  color: rgba(243, 245, 248, .94);
  font-size: 13px;
  line-height: 1.25;
}

.continue-button {
  position: sticky;
  bottom: 0;
  z-index: 3;
  width: 100%;
  margin-top: 4px;
}

.story-card {
  border-radius: 24px;
  padding: 24px;
}

.story-card h2 {
  margin-bottom: 22px;
}

.story-card p {
  color: rgba(231, 238, 248, .84);
  line-height: 1.62;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0;
}

.story-grid div {
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 12px;
}

.story-grid span {
  display: block;
  color: rgba(231, 238, 248, .48);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.story-grid strong {
  display: block;
  margin-top: 8px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.story-note {
  margin-bottom: 18px;
  color: rgba(231, 238, 248, .62) !important;
  font-size: 11px;
}

.detail-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
}

.picker-row {
  display: grid;
  gap: 8px;
}

.place-search {
  position: relative;
  display: grid;
  gap: 8px;
}

.place-input-row {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 8px;
}

.icon-action {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 15px;
  padding: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.place-results {
  display: none;
  max-height: 178px;
  overflow-y: auto;
  border: 1px solid rgba(235, 242, 250, .18);
  border-radius: 15px;
  background: rgba(3, 6, 13, .94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
}

.place-results.is-visible {
  display: grid;
}

.place-option {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  background: transparent;
  color: rgba(243, 245, 248, .88);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.35;
}

.place-option + .place-option {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.place-attribution {
  margin: -2px 0 0;
  color: rgba(231, 238, 248, .42);
  font-size: 10px;
  line-height: 1.35;
}

fieldset {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.time-options label {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}

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

.time-options label:has(input:checked) {
  background: rgba(238, 245, 255, .95);
  color: #050810;
}

.hint {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.screen-necklace {
  align-content: start;
  padding-top: 12px;
  overflow-y: auto;
  scrollbar-width: none;
}

.screen-necklace::-webkit-scrollbar {
  display: none;
}

.reveal-header {
  text-align: center;
  margin-bottom: 22px;
}

.reveal-header h2 {
  max-width: 320px;
  margin: 0 auto 12px;
}

.reveal-header p:last-child {
  margin: 0 auto;
  max-width: 295px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pendant-stage {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, .04), transparent 50%),
    rgba(0, 0, 0, .82);
  overflow: hidden;
  height: min(52vh, 430px);
  min-height: 360px;
  max-height: 52vh;
  perspective: 900px;
}

.product-photo-stage {
  display: grid;
  place-items: center;
  border-color: rgba(255, 255, 255, .08);
  border-radius: 0;
  background: #000;
  height: min(62vh, 520px);
  min-height: 430px;
  max-height: none;
  perspective: none;
}

#gemstoneCanvas,
.gem-controls {
  display: none !important;
}

.pendant-stage::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  opacity: .28;
}

.product-photo-stage::before {
  display: none;
}

.product-necklace-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.04) saturate(.96);
}

.product-photo-stage .object-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  text-align: center;
  color: rgba(238, 244, 255, .72);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

.celestial-pendant {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  perspective: 1200px;
}

.celestial-chain {
  position: absolute;
  top: 7%;
  width: min(58vw, 280px);
  height: min(34vw, 172px);
  border: 2px solid rgba(224, 232, 242, .54);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  filter: drop-shadow(0 0 14px rgba(202, 225, 255, .26));
  opacity: .78;
}

.celestial-disc {
  position: relative;
  width: min(72vw, 310px);
  aspect-ratio: 1;
  margin-top: 48px;
  border-radius: 50%;
  border: 1px solid rgba(246, 249, 255, .42);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .3), transparent 16%),
    radial-gradient(circle at 68% 72%, rgba(92, 145, 225, .18), transparent 28%),
    linear-gradient(135deg, rgba(238, 243, 250, .82), rgba(113, 127, 148, .18) 38%, rgba(5, 8, 14, .92) 58%);
  box-shadow:
    inset 0 0 0 8px rgba(214, 222, 233, .72),
    inset 0 0 0 10px rgba(255, 255, 255, .22),
    inset 0 0 42px rgba(0, 0, 0, .82),
    0 34px 95px rgba(0, 0, 0, .7),
    0 0 80px rgba(137, 183, 255, .22);
  overflow: hidden;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .28s ease;
}

.celestial-map-frame {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, .95),
    0 0 26px rgba(197, 219, 255, .22);
}

#celestial-map {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 118%;
  transform: translate(-50%, -50%);
}

#celestial-map canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#generatedStarMap {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.celestial-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .22), transparent 32%),
    radial-gradient(circle at 60% 18%, rgba(255, 255, 255, .16), transparent 20%),
    radial-gradient(circle at 50% 90%, rgba(0, 0, 0, .36), transparent 34%);
  pointer-events: none;
}

.photo-gem {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  transform: translateZ(24px);
  mix-blend-mode: screen;
}

.photo-gem-main {
  left: auto;
  right: 18%;
  top: 24%;
  width: 11%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 32% 25%, rgba(255,255,255,.95), rgba(255,255,255,.25) 16%, transparent 28%),
    radial-gradient(circle at 50% 54%, color-mix(in srgb, var(--main-gem) 88%, white), var(--main-gem) 52%, rgba(2, 8, 18, .1) 74%, transparent 78%);
  box-shadow: 0 0 24px var(--main-gem), inset 0 0 12px rgba(255,255,255,.45);
}

.photo-gem-small {
  left: 18%;
  top: 67%;
  width: 5.8%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 32% 25%, rgba(255,255,255,.96), rgba(255,255,255,.25) 16%, transparent 28%),
    radial-gradient(circle at 50% 54%, color-mix(in srgb, var(--small-gem) 88%, white), var(--small-gem) 56%, rgba(2, 8, 18, .1) 74%, transparent 78%);
  box-shadow: 0 0 18px var(--small-gem), inset 0 0 9px rgba(255,255,255,.42);
}

.object-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  color: rgba(243, 245, 248, .55);
  font-size: 8px;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
}

#celestial-form,
#d3-celestial-footer,
.celestial-form {
  display: none !important;
}

.celestial-error {
  position: absolute;
  inset: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(241, 245, 251, .72);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  padding: 30px;
  background: radial-gradient(circle, rgba(24, 39, 68, .9), rgba(2, 4, 10, .96));
}

.gem-controls {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(0, 0, 0, .32);
}

.gem-controls div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gem-controls span {
  flex: 1;
  letter-spacing: .12em;
}

.swatch {
  position: relative;
  width: 38px;
  min-height: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 31% 22%, rgba(255,255,255,.98) 0 8%, rgba(255,255,255,.35) 9% 16%, transparent 17%),
    conic-gradient(from 26deg, rgba(255,255,255,.7), transparent 10%, rgba(0,0,0,.38) 18%, rgba(255,255,255,.32) 28%, transparent 42%, rgba(0,0,0,.32) 56%, rgba(255,255,255,.45) 72%, transparent 86%, rgba(255,255,255,.72)),
    radial-gradient(circle at 50% 56%, color-mix(in srgb, var(--swatch) 74%, white) 0 18%, var(--swatch) 42%, color-mix(in srgb, var(--swatch) 52%, black) 68%, #05070d 100%);
  border: 1px solid rgba(255, 255, 255, .58);
  box-shadow:
    inset -7px -9px 14px rgba(0, 0, 0, .42),
    inset 5px 5px 9px rgba(255, 255, 255, .28),
    0 8px 18px rgba(0, 0, 0, .42);
}

.swatch::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255,255,255,.42) 39% 41%, transparent 42%),
    linear-gradient(24deg, transparent 0 52%, rgba(255,255,255,.18) 53% 55%, transparent 56%);
  mix-blend-mode: screen;
}

.swatch::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 9px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  filter: blur(.2px);
}

.swatch.active {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .84),
    0 0 0 5px rgba(255, 255, 255, .08),
    0 0 26px color-mix(in srgb, var(--swatch) 78%, white),
    inset -7px -9px 14px rgba(0, 0, 0, .42),
    inset 5px 5px 9px rgba(255, 255, 255, .28);
}

.report-button {
  width: 100%;
  margin-top: 12px;
}

@keyframes rotateSlow {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

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

@keyframes recenterPulse {
  0% {
    transform: scale(.985);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .48), 0 0 0 rgba(232, 241, 255, 0);
  }
  45% {
    transform: scale(1.012);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .48), 0 0 42px rgba(232, 241, 255, .22);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .48), 0 0 0 rgba(232, 241, 255, 0);
  }
}

@media (min-width: 700px) {
  body {
    background: #000;
  }

  .phone-shell {
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 38px;
    overflow: hidden;
    background: rgba(0, 0, 0, .42);
  }
}
