/* CSS sky from the first stars to the illustrated landscape. */
:root {
  --camp-sky-top: #06070e;
  --camp-sky-mid: #182c68;
  --camp-sky-blue: #b7deff;
  --camp-sky-bottom: #e2f4f8;
  --camp-night: #172b4d;
  --camp-starlight: #ffe089;
  --camp-night-depth: clamp(156px, 17vw, 286px);
  --camp-hero-fade: clamp(28px, 6vw, 98px);
}
body {
  isolation: isolate;
  position: relative;
  background: var(--camp-sky-bottom);
}
.home-page { --camp-hero-height: 760px; }
.camp-sky {
  position: absolute;
  z-index: -1;
  inset: var(--header) 0 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--camp-sky-top),
    #0a102a calc(var(--camp-night-depth) * .28),
    var(--camp-sky-mid) calc(var(--camp-night-depth) * .55),
    #457db6 calc(var(--camp-night-depth) * .78),
    var(--camp-sky-blue) var(--camp-night-depth),
    #d4ecff calc(var(--camp-night-depth) + 14rem),
    var(--camp-sky-bottom) calc(var(--camp-night-depth) + 50rem)
  );
}
.home-page .camp-sky {
  top: calc(var(--header) + var(--camp-hero-height) - var(--camp-hero-fade));
}
.camp-sky-stars,
.camp-sky-flares,
.camp-sky-cloud,
.camp-sky-comet { position: absolute; }
.camp-sky-stars {
  inset: 0 0 auto;
  height: calc(var(--camp-night-depth) + 36px);
  background-image:
    radial-gradient(circle at 5% 19%, #fff 0 1px, transparent 1.8px),
    radial-gradient(circle at 19% 65%, #e3edff 0 1px, transparent 1.8px),
    radial-gradient(circle at 31% 46%, #fff4cf 0 1.3px, transparent 2px),
    radial-gradient(circle at 41% 24%, #c2d8ff 0 1px, transparent 2px),
    radial-gradient(circle at 61% 60%, #fff 0 1.1px, transparent 2px),
    radial-gradient(circle at 73% 21%, #ddebff 0 1px, transparent 2px),
    radial-gradient(circle at 87% 45%, #fff4cf 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 96% 77%, #c6dcff 0 1px, transparent 1.8px),
    radial-gradient(circle at 33% 69%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 85% 24%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 71% 87%, #96b9ff 0 1px, transparent 2px),
    radial-gradient(circle at 60% 11%, #e3edff 0 .9px, transparent 1.8px);
  background-size:
    173px 137px, 211px 161px, 223px 147px, 177px 193px,
    191px 137px, 183px 157px, 263px 191px, 241px 183px,
    133px 153px, 293px 177px, 251px 135px, 239px 267px;
  mask-image: linear-gradient(#000 62%, transparent);
  opacity: .82;
  animation: camp-stars-breathe 8s ease-in-out infinite alternate;
}
.camp-sky-stars--far {
  inset: calc(var(--camp-night-depth) - 26px) 0 0;
  height: auto;
  mask-image: linear-gradient(180deg, #000 0, #0008 18rem, #0003 38rem);
  background-image:
    radial-gradient(circle at 15% 24%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 76% 65%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 57% 14%, #fff 0 1px, transparent 2px);
  background-size: 377px 329px, 473px 403px, 313px 237px;
  opacity: .8;
  animation: none;
}
.camp-sky-flares {
  inset: 0 0 auto;
  height: calc(var(--camp-night-depth) * .86);
}
.camp-sky-flare {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 22px);
  aspect-ratio: 1;
  filter: drop-shadow(0 0 5px #cfe5ff) drop-shadow(0 0 11px #7db9ff);
  animation: camp-flare-breathe 5.8s ease-in-out var(--delay, 0s) infinite alternate;
}
.camp-sky-flare::before {
  position: absolute;
  inset: 0;
  content: '';
  background: radial-gradient(circle, #fff 0 17%, #fff4d0 34%, #bcd9ff 70%);
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
}
.camp-sky-flare:nth-child(1) { --x: 9%; --y: 28%; --delay: -1.2s; }
.camp-sky-flare:nth-child(2) { --x: 21%; --y: 69%; --size: 17px; --delay: -3.8s; }
.camp-sky-flare:nth-child(3) { --x: 39%; --y: 19%; --size: 27px; --delay: -2.4s; }
.camp-sky-flare:nth-child(4) { --x: 54%; --y: 51%; --size: 16px; --delay: -4s; }
.camp-sky-flare:nth-child(5) { --x: 71%; --y: 34%; --size: 24px; --delay: -1.3s; }
.camp-sky-flare:nth-child(6) { --x: 83%; --y: 62%; --size: 19px; --delay: -2.8s; }
.camp-sky-flare:nth-child(7) { --x: 93%; --y: 11%; --size: 25px; --delay: -5s; }

.camp-sky-cloud {
  inset: calc(var(--camp-night-depth) - 52px) -8vw auto auto;
  width: clamp(260px, 61vw, 1160px);
  aspect-ratio: 4.6;
  opacity: .69;
  background:
    radial-gradient(ellipse at 60% 62%, #eef7ff 0 8%, transparent 16%),
    radial-gradient(ellipse at 46% 74%, #eaf7ff 0 11%, transparent 20%),
    radial-gradient(ellipse at 74% 72%, #e3f3ff 0 12%, transparent 22%),
    radial-gradient(ellipse at 59% 85%, #f5faff 0 15%, transparent 35%),
    radial-gradient(ellipse at 33% 85%, #dceeff 0 9%, transparent 26%);
  mask-image: linear-gradient(0deg, transparent, #000 22%);
  animation: camp-cloud-drift 35s ease-in-out infinite alternate;
}
.camp-sky-cloud--lower {
  inset: auto auto clamp(90px, 8%, 380px) -11vw;
  opacity: .63;
  animation-direction: alternate-reverse;
  animation-duration: 44s;
}
.camp-sky-comet {
  top: calc(var(--camp-night-depth) * .11);
  left: -9rem;
  width: clamp(88px, 11vw, 170px);
  height: 3px;
  border-radius: 50%;
  opacity: 0;
  transform-origin: right;
  background: linear-gradient(90deg, transparent, #b2dcfb 72%, #fff7d4 96%, #fff 100%);
  filter: drop-shadow(0 0 5px #fff4cb);
  animation: camp-comet-flight 16s linear -1.05s infinite;
}
.camp-sky-comet::after {
  content: '';
  position: absolute;
  top: -1.5px;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff9d8;
}
.camp-sky-comet--second {
  top: calc(var(--camp-night-depth) * .33);
  animation-delay: 7s;
  animation-duration: 23s;
}
@keyframes camp-stars-breathe {
  from { opacity: .61; }
  to { opacity: 1; }
}
@keyframes camp-flare-breathe {
  from { opacity: .54; transform: scale(.82); }
  to { opacity: 1; transform: scale(1.12); }
}
@keyframes camp-cloud-drift {
  from { transform: translateX(-4vw); }
  to { transform: translateX(4vw); }
}
@keyframes camp-comet-flight {
  0% { opacity: 0; transform: translate(5vw, 0) rotate(13deg); }
  5% { opacity: .98; }
  13% { opacity: .83; }
  20%, 100% { opacity: 0; transform: translate(115vw, calc(var(--camp-night-depth) * .58)) rotate(13deg); }
}
@media (max-width: 900px) {
  .home-page { --camp-hero-height: 800px; }
}
@media (max-width: 600px) {
  .home-page { --camp-hero-height: clamp(560px, calc(100svh - var(--header)), 800px); }
  .camp-sky-flare { width: clamp(12px, 4vw, 19px); }
}

body #main .stars-top,
body #main .stars-top.video-section {
  padding-top: calc(var(--camp-night-depth) + 8px);
  background: transparent;
}
body #main .stars-top::before { content: none; }
body.interior-page #main > :is(.pattern-blue,.pattern-gold):first-child { margin-block-start: var(--camp-night-depth); }
body #main .clouds,
body #main .testimonials { background: transparent; }
body #main .forest {
  background-color: transparent;
  margin-top: 0;
}
body #main .hero::before {
  background: linear-gradient(180deg, #0b142e57 0%, #0c1d3839 78%, #0c1d385e 100%);
}
body #main .hero {
  height: var(--camp-hero-height);
  min-height: 0;
  max-height: none;
  mask-image: linear-gradient(180deg, #000 0 calc(100% - var(--camp-hero-fade)), transparent 100%);
}
body .site-footer {
  background: linear-gradient(180deg, #97bd0c 0%, #c3de5c 18%, #e2efb8 100%);
  color: #243b18;
}
.site-footer .footer-item :is(h2,p), .site-footer .copyright { color: inherit; }
.site-footer .footer-item a { color: #274611; }
.site-footer a:hover { text-decoration: underline; }

.site-stats-banner[data-site="childrencamp"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 12px;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: min(55dvh, 18rem);
  margin: 0;
  overflow: auto;
  padding: 8px clamp(14px, 2.35vw, 48px) calc(8px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 3px solid var(--camp-starlight);
  border-radius: 0;
  background: var(--camp-night);
  color: #fffaec;
  font-family: Aleo, Georgia, serif;
}
.site-stats-banner[data-site="childrencamp"] :is(.site-stats-banner-title,.site-stats-copy) {
  margin: 0;
  color: inherit;
  font-size: .92rem;
  line-height: 1.45;
}
.site-stats-banner[data-site="childrencamp"] .site-stats-copy { flex: 1 1 260px; min-width: 0; }
.site-stats-banner[data-site="childrencamp"] .site-stats-banner-actions { flex: 0 0 auto; margin-inline-start: auto; }
.site-stats-banner[data-site="childrencamp"] :is(.site-stats-button,.site-stats-preferences) {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 6px 13px;
  border: 1px solid #aebdd3;
  border-radius: 6px;
  color: #fffaec;
  background: transparent;
  font-size: .9rem;
}
.site-stats-banner[data-site="childrencamp"] :is(.site-stats-button,.site-stats-preferences):hover {
  background: #314b73;
  color: #fff;
}
.site-stats-banner[data-site="childrencamp"] .site-stats-button:disabled {
  border-color: #8b9db8;
  background: #172b4d;
  color: #dce6f7;
}
.site-stats-banner[data-site="childrencamp"] .site-stats-notice {
  order: 4;
  flex-basis: 100%;
  margin: 4px 0 0;
  padding: 5px 9px;
}
body:has(.site-stats-banner[data-site="childrencamp"]) .scroll-top {
  bottom: calc(76px + env(safe-area-inset-bottom));
}
body.a11y-text-enlarged:has(.site-stats-banner[data-site="childrencamp"]) .scroll-top { visibility: hidden; }
body:is(.a11y-grayscale,.a11y-negative,.a11y-light,.high-contrast) .camp-sky { display: none; }
body.reduce-motion .camp-sky-comet { display: none; }

@media (max-width: 820px) {
  .site-stats-banner[data-site="childrencamp"] { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 3px 8px; }
  .site-stats-banner[data-site="childrencamp"] .site-stats-banner-actions { flex-shrink: 1; margin-inline-start: 0; }
  body:has(.site-stats-banner[data-site="childrencamp"]) .scroll-top { bottom: calc(150px + env(safe-area-inset-bottom)); }
  body:has(.site-stats-banner[data-site="childrencamp"]) .access-float { top: 37%; right: 11px; bottom: auto; transform: translateY(-50%); }
  body:has(.site-stats-banner[data-site="childrencamp"]) .access-float:hover { transform: translateY(-50%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .camp-sky :is(.camp-sky-stars,.camp-sky-cloud,.camp-sky-flare) { animation: none; }
  .camp-sky-comet { display: none; }
}
@media (forced-colors: active) {
  .camp-sky { display: none; }
  .site-stats-banner[data-site="childrencamp"] {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
  }
  .site-stats-banner[data-site="childrencamp"] :is(.site-stats-button,.site-stats-preferences) {
    background: ButtonFace;
    color: ButtonText;
    border-color: ButtonText;
  }
}
@media print {
  .camp-sky { display: none; }
  body #main .hero { mask-image: none; }
  body.interior-page #main > :is(.pattern-blue,.pattern-gold):first-child { margin-block-start: 0; }
  body .site-footer { background: #fff; color: #222; }
}