/* Preserve the phone shell, gradient, typography and native controls of the main Demo. */
.child-route:has(> .child-atlas-home) {
  min-height: 355px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.child-route:has(> .child-atlas-home) > .v9-growth-topbar { flex: none; }
.child-atlas-home {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  position: relative;
  min-height: 290px;
  color: #020812;
  font-family: inherit;
  line-height: 1.4;
  padding: 0 0 6px;
  -webkit-tap-highlight-color: transparent;
}
.child-atlas-stage {
  --atlas-land-upper: .025;
  --atlas-land-mid: .12;
  --atlas-land-base: .4;
  --atlas-mist: 1;
  flex: 1 0 auto;
  position: relative;
  min-height: 155px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  outline-offset: -3px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.child-atlas-stage:focus-visible { outline: 2px solid #6bb667; border-radius: 16px; }
.child-atlas-stage::before {
  content: "";
  position: absolute;
  inset: 2% 2% -1%;
  background: radial-gradient(ellipse at 50% 64%, #edf6dbad 0%, #f4f9e838 47%, transparent 71%);
  opacity: var(--atlas-mist);
  pointer-events: none;
}
.child-atlas-canvas,.child-atlas-ground {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.child-atlas-ground {
  mask-image: linear-gradient(to bottom,transparent 0%,#000 12%,#000 86%,transparent 100%);
}
.child-atlas-home .child-atlas-land {
  position: absolute;
  max-width: none;
  height: auto;
  width: 230%;
  left: -65%;
  top: -38%;
  mask-image: linear-gradient(to bottom,rgba(0,0,0,var(--atlas-land-upper)) 30%,rgba(0,0,0,var(--atlas-land-mid)) 49%,rgba(0,0,0,var(--atlas-land-base)) 62%);
}
.child-atlas-shadow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,#4f503c55 1%,#69705632 40%,transparent 73%);
}
.child-atlas-person {
  position: absolute;
  display: block;
  height: 89%;
  aspect-ratio: 480 / 810;
  top: 4%;
  left: 25%;
}
.child-atlas-home .child-atlas-figure {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.child-atlas-camera-row {
  display: flex;
  justify-content: center;
  min-height: 34px;
  margin: -3px 0 2px;
  align-items: center;
  z-index: 1;
}
.child-atlas-home button.child-atlas-lens {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  background: transparent;
  color: #55705b;
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  border: 0;
  border-radius: 20px;
}
.child-atlas-lens svg { width: 17px; height: 17px; }
.child-atlas-plus { opacity: 0; }
.child-atlas-home[data-view="life"] .child-atlas-plus { opacity: 1; }
/* Atlas callouts sit above the artwork; their guide circles sit behind it. */
.atlas-guide {
  position:absolute; left:50%; top:var(--guide-y,48%); width:81%; aspect-ratio:1;
  transform:translate(-50%,-50%); border:1px solid #889b6b59; border-radius:50%;
  opacity:var(--near-opacity,1);
}
.atlas-guide::after { content:""; position:absolute; inset:6%; border:1px dashed #8a9e7145; border-radius:50%; }
.child-atlas-home[data-view="life"] .atlas-guide,
.child-atlas-home[data-view="life"] .child-atlas-stage::before { display:none; }
.child-atlas-stage[data-stop="life"][data-moving="false"] .child-atlas-ground { mask-image:none; }
.atlas-annotations,.atlas-leaders { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.atlas-annotations { opacity:var(--near-opacity,1); }
.atlas-annotations[data-layer="life"] { opacity:var(--far-opacity,0); }
.atlas-leaders { fill:none; stroke:#7e9066; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; }
.atlas-leaders circle { fill:#83946c; stroke:#fffdf1; stroke-width:1.6; }
.atlas-leaders :is([data-leader="heart"],[data-leader="school"]) { stroke:#a58669; }
.atlas-leaders :is([data-leader="heart"],[data-leader="school"]) circle { fill:#ae896a; }
.child-atlas-stage .atlas-note {
  position:absolute; translate:0 -50%; width:max-content; max-width:46%;
  padding:8px 9px; min-height:49px; display:grid; align-content:center; gap:3px;
  text-align:left; white-space:nowrap; border:0; border-radius:9px; cursor:pointer;
  font:inherit; color:#314733; background:linear-gradient(106deg,#fffef4f5,#fbfbf0dc 76%,#faf9ed73);
  pointer-events:auto; touch-action:none;
}
.atlas-note strong { font:600 clamp(20px,5.5vw,24px)/1.12 "Songti SC","STSong","Noto Serif CJK SC",serif; letter-spacing:.035em; }
.atlas-note small { font:500 .75rem/1.4 -apple-system,"PingFang SC",sans-serif; color:#50614a; }
.atlas-annotations[data-layer="life"] .atlas-note {
  padding:8px 10px; gap:4px;
  background:linear-gradient(110deg,#fffef7f5,#fbfcf0ed);
}
.atlas-annotations[inert] .atlas-note { pointer-events:none; }
.atlas-note:focus-visible,.child-atlas-lens:focus-visible { outline:2px solid #517746; outline-offset:2px; }
@media (hover:hover) { .atlas-note:hover { box-shadow:0 3px 15px #63714c24; } .child-atlas-stage {cursor:grab} }
