/* evo 2026-11-15 — Cobalt Leonid watch / Observatory Terrace
   Base layer is a GENERATED background (image generator): evo/images/leonid-observatory-bg.jpg, 1280x720.
   All motion is code: CSS layers here + canvases in scene.js. */
:root {
  --cobalt: #6f9bff;
  --aurora: #4dffc3;
  --magenta: #ff52d9;
  --amber: #ffbf5e;
  --glass: rgba(8, 8, 28, 0.72);
  --px: 0px;
  --py: 0px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #07061a; color: #f0f2ff;
  font-family: ui-sans-serif, system-ui, Segoe UI, Inter, Roboto, sans-serif;
}

.scene { position: fixed; inset: 0; overflow: hidden; background: #07061a; }

.stage {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 177.7778vh);
  height: max(56.25vw, 100vh);
  background: #07061a url("/evo/images/leonid-observatory-bg.jpg") center / cover no-repeat;
  transform: translate(-50%, -50%) translate3d(var(--px), var(--py), 0) scale(1.05);
  will-change: transform;
}

/* aurora band over the horizon (painted ~y 237-312, x 700-1280): slow curtain ripple */
.aurora { position: absolute; left: 50%; top: 27%; width: 52%; height: 22%; pointer-events: none; overflow: hidden; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 55% 60%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 55% 60%, #000 30%, transparent 100%); }
.aurora::before, .aurora::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 200%; height: 100%;
  background-repeat: repeat-x; background-size: 25% 100%;
  background-image: linear-gradient(90deg, transparent 0, rgba(77,255,195,.20) 20%, rgba(90,160,255,.10) 45%, rgba(77,255,195,.24) 70%, transparent 100%);
  animation: auroraDrift 26s linear infinite, auroraBreath 7s ease-in-out infinite;
}
.aurora::after { background-size: 17% 100%; animation-duration: 41s, 9.5s; animation-direction: reverse, alternate; opacity: .7;
  background-image: linear-gradient(90deg, transparent 0, rgba(170,120,255,.16) 35%, rgba(77,255,195,.14) 60%, transparent 100%); }
@keyframes auroraDrift { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes auroraBreath { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* moon halo (painted crescent at ~1085,109) */
.moon-halo {
  position: absolute; left: 84.8%; top: 15.1%; width: 12%; height: 21%; pointer-events: none; mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255,240,215,.26), rgba(170,150,255,.08) 45%, transparent 70%);
  animation: moonBreath 9s ease-in-out infinite;
}
@keyframes moonBreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* milky way shimmer along the painted band (~350,75 to 725,250) */
.galaxy { position: absolute; left: 41%; top: 21%; width: 42%; height: 18%; pointer-events: none; mix-blend-mode: screen;
  transform: translate(-50%, -50%) rotate(25deg);
  background: radial-gradient(ellipse at 50% 50%, rgba(220,170,255,.18), rgba(120,140,255,.06) 50%, transparent 72%);
  animation: moonBreath 13s ease-in-out infinite; }

/* dome glass glow (dome ~194,190) */
.dome-glow { position: absolute; left: 15.2%; top: 25%; width: 24%; height: 34%; pointer-events: none; mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(140,110,255,.26), rgba(255,82,217,.08) 45%, transparent 70%);
  animation: domePulse 5.2s ease-in-out infinite; }
@keyframes domePulse { 0%, 100% { opacity: .5; filter: hue-rotate(0deg); } 50% { opacity: 1; filter: hue-rotate(30deg); } }

/* painted holo orb / panels: breathing glow + scanlines */
.holo { position: absolute; pointer-events: none; mix-blend-mode: screen; transform: translate(-50%, -50%);
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.10) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 50%, rgba(var(--hc),.34), rgba(var(--hc),.06) 55%, transparent 72%);
  background-size: 100% 8px, 100% 100%;
  animation: holoBreath var(--hd, 4s) ease-in-out infinite, holoScan 2.4s linear infinite;
}
.holo.orb { border-radius: 50%; }
.holo.glitch { filter: hue-rotate(70deg) brightness(1.6); transform: translate(-50%, -50%) translateX(3px) skewX(-6deg); }
@keyframes holoBreath { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes holoScan { from { background-position: 0 0, 0 0; } to { background-position: 0 8px, 0 0; } }

/* river shimmer (painted river ~x 650-1125, y 550-600) */
.river { position: absolute; left: 50%; top: 74%; width: 42%; height: 10%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 25%, rgba(140,170,255,.16) 42%, rgba(255,82,217,.10) 52%, transparent 66%);
  background-size: 260% 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
  animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* cold haze settling over the valley */
.valley-haze { position: absolute; left: 0; top: 46%; width: 100%; height: 30%; pointer-events: none; overflow: hidden; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 60%, transparent); }
.valley-haze::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 200%; height: 100%;
  background-repeat: repeat-x; background-size: 50% 100%;
  background-image:
    radial-gradient(ellipse 18% 30% at 15% 50%, rgba(170,160,255,.12), transparent 70%),
    radial-gradient(ellipse 24% 26% at 55% 40%, rgba(150,190,255,.10), transparent 70%),
    radial-gradient(ellipse 14% 34% at 85% 60%, rgba(200,170,255,.11), transparent 70%);
  animation: auroraDrift 48s linear infinite;
}

.life { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.signs { position: absolute; inset: 0; pointer-events: none; transform: translate3d(calc(var(--px) * -.4), calc(var(--py) * -.3), 0); }
.neon-sign {
  position: absolute; padding: .3rem .65rem;
  font-size: clamp(.68rem, 1.35vw, 1rem); font-weight: 650;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor; border-radius: 4px;
  background: rgba(6, 6, 24, .58);
  transition: opacity .04s linear;
  animation: hum 4.6s ease-in-out infinite alternate;
}
.sign-cobalt { color: #f0f4ff; border-color: rgba(111,155,255,.9);
  text-shadow: 0 0 4px #fff, 0 0 10px var(--cobalt), 0 0 22px rgba(111,155,255,.8);
  box-shadow: 0 0 14px rgba(111,155,255,.42), inset 0 0 12px rgba(111,155,255,.2); }
.sign-aurora { color: #effff9; border-color: rgba(77,255,195,.85);
  text-shadow: 0 0 4px #fff, 0 0 10px var(--aurora), 0 0 22px rgba(77,255,195,.7);
  box-shadow: 0 0 14px rgba(77,255,195,.35), inset 0 0 12px rgba(77,255,195,.16); }
.sign-amber { color: #fff8ec; border-color: rgba(255,191,94,.9);
  text-shadow: 0 0 4px #fff, 0 0 10px var(--amber), 0 0 22px rgba(255,191,94,.75);
  box-shadow: 0 0 14px rgba(255,191,94,.4), inset 0 0 12px rgba(255,191,94,.18); }
.neon-sign.dim { opacity: .28; text-shadow: none; box-shadow: none; }
.neon-sign.half { opacity: .62; }
.neon-sign.flip { animation: flip .9s steps(2, jump-none) 3; }
@keyframes flip { 0% { filter: brightness(1.5); } 100% { filter: brightness(.7); } }
@keyframes hum { from { filter: brightness(.94); } to { filter: brightness(1.06); } }

.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.glass-sheen {
  position: absolute; inset: 14px; pointer-events: none;
  background: linear-gradient(115deg, rgba(220,220,255,.06) 0 7%, transparent 26%),
    linear-gradient(to bottom, transparent 62%, rgba(6,4,20,.3));
  mix-blend-mode: screen;
}
.window-frame {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 14px #07061a, inset 0 0 0 16px #4b45a8, inset 0 0 90px rgba(0,0,0,.6);
}

.today-card {
  position: absolute; z-index: 12; right: 1.75rem; bottom: 1.75rem;
  max-width: min(22rem, calc(100vw - 3.5rem));
  padding: .85rem 1rem; border: 1px solid rgba(111,155,255,.5); border-radius: 12px;
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(111,155,255,.22), 0 0 40px rgba(77,255,195,.10);
}
.today-card .kicker { margin: 0 0 .2rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #9fb9ff; }
.today-card h1 { margin: 0 0 .35rem; font-size: clamp(1rem, 2.4vw, 1.35rem); line-height: 1.2; font-weight: 650; color: #f4f6ff; text-shadow: 0 0 12px rgba(111,155,255,.6); }
.today-card p { margin: 0; font-size: .85rem; line-height: 1.45; color: #e4e6f8; }

@media (max-width: 640px) {
  .today-card { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; padding: .7rem .85rem; }
  .today-card p { font-size: .8rem; }
  .neon-sign { padding: .25rem .5rem; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  .signs { transform: none; }
  .stage { transform: translate(-50%, -50%) scale(1.05); }
  .aurora::before, .aurora::after, .moon-halo, .galaxy, .dome-glow, .holo, .river, .valley-haze::before, .neon-sign { animation: none !important; }
  .aurora::before, .moon-halo, .galaxy, .dome-glow, .holo { opacity: .8; }
  .river { display: none; }
  .motes { display: none; }
}
