/* ==========================================================================
   The moon and the sun (moon.html, sun.html + .da.html). You land here by
   clicking the disc in the sky: the moon at dusk and night, the sun by day
   (assets/world.js). The disc that is the moon or the sun everywhere else is
   the Earth here, and the way back. Placeholders for now: their own content
   comes later.
   ========================================================================== */

/* the sky of each, whatever the hour or season (assets/world.js sets these per season; these win) */
.sky-world{--ink:#eef2f6 !important;--ink2:#aab6c2 !important;--muted:#c9d2db !important;--menu:#cbd5df !important;
  --disc1:#cfe6ff !important;--disc2:#2f6aa8 !important;--dglow:#8fbfff !important}
.moon-world{--sky1:#05070c !important;--sky2:#04060a !important;--sky3:#020305 !important;--haze:#c8d2dc10 !important;--acc:#c9ccd1}
.sun-world{--sky1:#1a0603 !important;--sky2:#3a0c04 !important;--sky3:#7a2408 !important;--haze:#ff8a3a30 !important;--acc:#ffb24a;
  --ink2:#f2c9a4 !important}
.sky-world .fx{display:none}
.moon-world .star{background:#f2f5f8}

/* the Earth: blue, with a little cloud and land; from the moon its phase is the moon's turned around,
   from the sun it is always full */
.sky-world .disc{width:64px !important;height:64px !important;
  background:radial-gradient(circle at 30% 34%,rgba(255,255,255,.9) 0 7%,transparent 14%),
    radial-gradient(ellipse 30% 18% at 62% 40%,rgba(84,140,92,.85) 0 60%,transparent 70%),
    radial-gradient(ellipse 22% 26% at 40% 68%,rgba(96,148,96,.8) 0 55%,transparent 68%),
    radial-gradient(ellipse 50% 9% at 50% 56%,rgba(240,246,252,.55) 0 50%,transparent 70%),
    radial-gradient(circle at 38% 36%,#9cc8f4 0%,#3a78bb 55%,#1d4677 100%)}
.sky-world .craters{display:none}
.sky-world .shade path{fill:#02040a;fill-opacity:.92}

/* the surface you landed on */
.sky-ground{position:fixed;left:0;right:0;bottom:0;height:46vh;pointer-events:none;z-index:0;transform-origin:50% 100%}
.sky-ground svg{display:block;width:100%;height:100%;overflow:visible}
.sky-veil{position:fixed;inset:0;z-index:5;pointer-events:none;opacity:0;
  background:radial-gradient(circle at 50% 50%,#e4e6e8 0%,#c3c7cb 60%,#a9adb2 100%)}
.sun-world .sky-veil{background:radial-gradient(circle at 50% 50%,#fffbe6 0%,#fff0c0 100%)}

/* the sun: a burning horizon with arcs of fire over it, the air glowing above it */
.sky-glow{position:fixed;left:-20vw;right:-20vw;bottom:0;height:90vh;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse 60% 70% at 50% 100%,rgba(255,170,70,.55) 0%,rgba(255,110,30,.22) 40%,transparent 72%)}
.sun-grain{mix-blend-mode:multiply;opacity:.85}

.sky-hero{padding-top:12vh}
.sky-hero .nm{letter-spacing:.06em}
.sky-hero .title{color:var(--ink2)}
.sky-main{min-height:18vh}
.sky-world .world-foot{position:relative;z-index:1}

/* landing: the disc that filled the screen thins away as you settle onto the ground */
@media (prefers-reduced-motion:no-preference){
  .sky-veil{animation:sky-veil 1.1s ease-out both}
  .sky-ground{animation:sky-land 1.9s cubic-bezier(.12,.7,.2,1) both}
  .sky-world .sky-hero{animation:sky-rise 1.2s ease .9s both}
  .sky-world .disc{animation:sky-rise 1.4s ease .7s both}
  .sky-world .stars{animation:sky-rise 1.6s ease .4s both}
  .sky-glow{animation:sky-rise 1.6s ease .3s both,sun-breathe 7s ease-in-out 2s infinite}
  .sun-arcs path{animation:sun-flare 9s ease-in-out infinite}
  .sun-arcs path:nth-child(n+3){animation-delay:-3s}
}
@keyframes sky-veil{from{opacity:1}to{opacity:0}}
@keyframes sky-land{from{transform:scale(3.4) translateY(30%)}to{transform:none}}
@keyframes sky-rise{from{opacity:0}}
@keyframes sun-breathe{50%{opacity:.75}}
@keyframes sun-flare{0%,100%{opacity:.95}50%{opacity:.55}}

@media (max-width:760px){
  .sky-world .disc{width:58px !important;height:58px !important}
  .sky-ground{height:38vh}
}
