/* LALALAY Residences 360° — Base Tokens, WebGL Stage & Mood Lighting */
:root {
  --navy-deep: #07101e;
  --navy-glass: rgba(8, 17, 31, 0.76);
  --navy-panel: rgba(11, 22, 40, 0.9);
  --terracotta: #b85d43;
  --terracotta-glow: rgba(184, 93, 67, 0.45);
  --gold: #d8b36a;
  --gold-light: #f3dba4;
  --gold-border: rgba(216, 179, 106, 0.34);
  --ivory: #faf5ec;
  --muted: #c8bfa8;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-ui: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --blur-glass: blur(18px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button { font-family: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

#stage-360 {
  position: fixed;
  inset: 0;
  z-index: 1;
  transition: filter 0.9s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

#webgl-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
#webgl-canvas:active { cursor: grabbing; }

body.mood-sunset #stage-360 { filter: saturate(1.08) contrast(1.03) sepia(0.06); }
body.mood-dawn #stage-360 { filter: saturate(1.04) brightness(1.06) hue-rotate(-8deg); }
body.mood-gala #stage-360 { filter: saturate(1.16) brightness(0.76) contrast(1.14) hue-rotate(-14deg); }

.atmosphere-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(5, 11, 22, 0.56) 100%),
    linear-gradient(180deg, rgba(7, 16, 30, 0.45) 0%, transparent 18%, transparent 78%, rgba(7, 16, 30, 0.68) 100%);
  transition: opacity 0.6s ease;
}

body.mood-gala .atmosphere-vignette {
  background:
    radial-gradient(ellipse at center, rgba(216, 179, 106, 0.04) 45%, rgba(4, 8, 18, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 12, 24, 0.6) 0%, transparent 22%, transparent 74%, rgba(5, 10, 20, 0.84) 100%);
}

.sun-flare-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }

.sun-flare-core {
  position: absolute;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 243, 210, 0.78) 0%, rgba(243, 219, 164, 0.34) 24%, rgba(184, 93, 67, 0.14) 50%, transparent 72%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.25s linear;
}

.sun-flare-streak {
  position: absolute;
  width: 680px;
  height: 3px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(243, 219, 164, 0.65), rgba(255, 255, 255, 0.9), rgba(243, 219, 164, 0.65), transparent);
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0;
}

.scene-warp-veil {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(243, 219, 164, 0.25) 0%, rgba(7, 16, 30, 0.92) 70%);
  transition: opacity 0.48s var(--ease-luxury);
}

.scene-warp-veil.is-active { opacity: 1; }
