/* The doorway to My universe in More about me (Nov 30): tonight's real moon in a round window of the opening's night,
   with "Enter my universe" under it. Drawn once by features/universe-door.js. Nothing moves at rest. No lines. */
.world-door { display: grid; place-items: center; padding: clamp(28px, 4vw, 56px) 16px clamp(40px, 5vw, 72px); }
.ud-link { display: grid; justify-items: center; gap: clamp(18px, 2vw, 26px); color: inherit; text-decoration: none; border-radius: 40px; -webkit-tap-highlight-color: transparent; }
.ud-link:focus-visible { outline: none; }
.ud-win { position: relative; display: block; width: clamp(220px, 23vw, 320px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #171513;
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(229, 141, 151, 0); transition: translate 0.5s var(--e-out, ease-out), box-shadow 0.4s ease; }
.ud-sky { display: block; width: 100%; height: 100%; }
.ud-link:focus-visible .ud-win { box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.6), 0 0 0 5px rgba(140, 47, 57, 0.35); }
.ud-cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px 15px; border-radius: 999px; background: var(--sheet); color: var(--acc);
  font: 400 clamp(28px, 3vw, 40px)/1 var(--serif); white-space: nowrap; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.45); transition: translate 0.4s var(--e-out, ease-out), box-shadow 0.4s ease; }
.ud-cta span { font-family: var(--sans); font-size: 0.7em; transition: translate 0.4s var(--e-out, ease-out); }
@media (hover: hover) {
  .ud-link:hover .ud-win { translate: 0 -4px; }
  .ud-link:hover .ud-cta { translate: 0 -2px; box-shadow: 0 20px 38px -18px rgba(0, 0, 0, 0.5); }
  .ud-link:hover .ud-cta span { translate: 4px 0; }
}
@media (max-width: 600px) { .ud-win { width: min(64vw, 250px); } .ud-cta { font-size: 25px; padding: 11px 18px 12px; gap: 7px; } }
@media (prefers-reduced-motion: reduce) { .ud-win, .ud-cta, .ud-cta span { transition: none; } }

/* going through: the moon's light grows over the page (scaled, so only the compositor works). world.html opens in the
   same light (.uv-veil in features/universe.css) */
.ud-pass { position: fixed; z-index: 9000; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(closest-side, #FFF8EA 0%, #FFF6E4 45%, rgba(250, 240, 220, 0.96) 58%, rgba(244, 233, 212, 0.85) 70%, rgba(236, 226, 206, 0.5) 84%, rgba(236, 226, 206, 0) 100%); }

/* ---------- Dec 1: the section is only the doorway, on the opening's night ----------
   Her words: "just say enter my universe ... i don't rlly like the backsplash of more abt me ... find a way to indicate
   that it's delineated from music". So no backdrop and no title: the whole section is the night (#171513, the same in
   light and dark), with a lot of room around the moon, which sets it apart from Music's cream sheet and photo backdrop. */
main > #after-hours.uv-night, [data-theme="dark"] main > #after-hours.uv-night { color: #F4EFE6;
  /* a few still stars (no twinkle) over a sky that deepens toward the edges, so it stands apart from Music in dark mode too */
  background:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(255, 246, 228, 0.7), transparent 60%),
    radial-gradient(1px 1px at 27% 68%, rgba(255, 246, 228, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 14%, rgba(255, 246, 228, 0.55), transparent 60%),
    radial-gradient(1px 1px at 61% 80%, rgba(255, 246, 228, 0.45), transparent 60%),
    radial-gradient(1.3px 1.3px at 72% 26%, rgba(255, 246, 228, 0.65), transparent 60%),
    radial-gradient(1px 1px at 84% 58%, rgba(255, 246, 228, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 91% 16%, rgba(255, 246, 228, 0.6), transparent 60%),
    radial-gradient(1px 1px at 6% 84%, rgba(255, 246, 228, 0.45), transparent 60%),
    radial-gradient(ellipse 70% 80% at 50% 42%, #24201B 0%, #151311 55%, #0B0A09 100%); }
#after-hours.uv-night .world-door { padding: clamp(72px, 9vw, 136px) 16px clamp(80px, 9vw, 136px); }
#after-hours.uv-night .ud-cta { margin: 0; letter-spacing: 0; }
#after-hours.uv-night .ud-win { box-shadow: 0 0 80px -10px rgba(255, 246, 228, 0.16); }

/* ---------- Dec 1, her note: "the enter my universe text should look more mystical" ----------
   No pill: the words sit straight on the night in Instrument Serif italic, moonlit cream with a soft glow, between two
   small four-point stars. A slow sweep of moonlight passes across the letters once as the section arrives (.lit, set by
   features/universe-door.js) and again whenever you point at it, and the stars wake. Still at rest. Reduced motion: still. */
#after-hours.uv-night .ud-cta { gap: clamp(14px, 1.4vw, 22px); padding: 4px 6px; background: none; box-shadow: none; color: #F6EEDF;
  font: italic 400 clamp(36px, 3.8vw, 56px)/1.15 var(--serif); letter-spacing: 0.005em; }
#after-hours.uv-night .ud-word { padding: 0 0.08em 0.06em;
  background: linear-gradient(105deg, #D9CFBC 0%, #F6EEDF 30%, #FFFDF8 46%, #FFFFFF 50%, #FFFDF8 54%, #F6EEDF 70%, #D9CFBC 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 246, 228, 0.28)) drop-shadow(0 0 2px rgba(255, 246, 228, 0.35)); transition: filter 0.6s ease; }
#after-hours.uv-night .ud-star { flex: none; width: 0.32em; height: 0.32em; fill: #FFF6E4; opacity: 0.6;
  filter: drop-shadow(0 0 6px rgba(255, 246, 228, 0.7)); transition: opacity 0.5s ease, scale 0.6s var(--e-out, ease-out), rotate 0.8s var(--e-out, ease-out); }
#after-hours.uv-night .ud-star-2 { width: 0.24em; height: 0.24em; translate: 0 -0.32em; }
@keyframes ud-sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes ud-wake { 0%, 100% { opacity: 0.6; scale: 1; } 45% { opacity: 1; scale: 1.35; } }
html.motion #after-hours.uv-night .ud-link.lit .ud-word { animation: ud-sweep 2.6s cubic-bezier(0.45, 0, 0.25, 1) both; }
html.motion #after-hours.uv-night .ud-link.lit .ud-star { animation: ud-wake 1.6s ease-in-out 0.5s both; }
html.motion #after-hours.uv-night .ud-link.lit .ud-star-2 { animation-delay: 1.2s; }
@media (hover: hover) {
  #after-hours.uv-night .ud-link:hover .ud-cta { translate: 0 -2px; box-shadow: none; }
  #after-hours.uv-night .ud-link:hover .ud-word,
  #after-hours.uv-night .ud-link:focus-visible .ud-word { filter: drop-shadow(0 0 22px rgba(255, 246, 228, 0.5)) drop-shadow(0 0 3px rgba(255, 246, 228, 0.5)); }
  html.motion #after-hours.uv-night .ud-link.lit:hover .ud-word { animation: ud-sweep 1.8s cubic-bezier(0.45, 0, 0.25, 1) both; }
  #after-hours.uv-night .ud-link:hover .ud-star { opacity: 1; scale: 1.25; rotate: 45deg; }
}
#after-hours.uv-night .ud-link:focus-visible .ud-star { opacity: 1; }
@media (max-width: 600px) { #after-hours.uv-night .ud-cta { font-size: 30px; padding: 4px; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { #after-hours.uv-night .ud-word { background-position: 50% 0; } #after-hours.uv-night .ud-star { transition: none; } }
/* the older rule ".ud-cta span" styled the arrow (sans, smaller, nudged on hover): keep the words in the serif, unmoved */
#after-hours.uv-night .ud-cta .ud-word { font: inherit; translate: none; }

/* ---------- Dec 1, night: a quieter doorway ----------
   Her note: "it's kinda yelling out that theres a gimmick i want it just to be clear that theres something happening
   there not necessarily that it's 'my universe'". So: a plain night (no star dots or vignette), tonight's moon a little
   smaller with a soft glow, and one small line under it, "tap the moon". It brightens a touch when pointed at. */
main > #after-hours.uv-night { background: #1A1816; }   /* the footer's own night, so the two read as one */
[data-theme="dark"] main > #after-hours.uv-night { background: #0E0C0A; }
#after-hours.uv-night .world-door { padding: clamp(56px, 6vw, 96px) 16px clamp(60px, 6.4vw, 100px); }
#after-hours.uv-night .ud-win { width: clamp(170px, 16vw, 230px); box-shadow: 0 0 60px -14px rgba(255, 246, 228, 0.14); transition: box-shadow 0.5s ease, translate 0.6s var(--e-out, ease); }
#after-hours.uv-night .ud-link:hover .ud-win, #after-hours.uv-night .ud-link:focus-visible .ud-win { box-shadow: 0 0 80px -8px rgba(255, 246, 228, 0.26); }
#after-hours.uv-night .ud-cta { margin-top: clamp(16px, 1.6vw, 22px); padding: 0; gap: 0; background: none; box-shadow: none; font: 500 15px/1 var(--sans); letter-spacing: 0.08em; text-transform: lowercase; color: rgba(246, 238, 223, 0.78); transition: color 0.4s ease; }
#after-hours.uv-night .ud-link:hover .ud-cta, #after-hours.uv-night .ud-link:focus-visible .ud-cta { color: rgba(246, 238, 223, 0.95); }
#after-hours.uv-night .ud-cue { animation: none !important; background: none; -webkit-text-fill-color: currentColor; filter: none; translate: none; }
@media (max-width: 600px) { #after-hours.uv-night .ud-cta { font-size: 13px; padding: 0; } }

/* ---------- Dec 1, night: a cleaner moon, and "tap the moon" in the serif ----------
   No dark round window: the canvas draws tonight's moon (soft shadow, warm earthshine) with a soft halo and a quiet
   ring of the month's phases, straight onto the section's night (features/universe-door.js). */
#after-hours.uv-night .ud-win, [data-theme="dark"] #after-hours.uv-night .ud-win { width: clamp(240px, 22vw, 320px); background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
#after-hours.uv-night .ud-link:hover .ud-win, #after-hours.uv-night .ud-link:focus-visible .ud-win { box-shadow: none; filter: brightness(1.08); }
#after-hours.uv-night .ud-cta { margin-top: clamp(8px, 1vw, 14px); font: italic 400 clamp(19px, 1.5vw, 22px)/1.2 var(--serif); letter-spacing: 0; text-transform: none; }
@media (max-width: 600px) { #after-hours.uv-night .ud-win { width: min(72vw, 280px); } #after-hours.uv-night .ud-cta { font-size: 19px; } }

/* tonight's moon, merged in from the footer: one quiet line between the moon and "tap the moon" */
#after-hours.uv-night .ud-tonight { margin: clamp(6px, 0.8vw, 10px) 0 0; font: 500 13px/1.3 var(--sans); letter-spacing: 0.04em; color: rgba(246, 238, 223, 0.5); text-align: center; }
