/* ═══ Tapri multi-source night lighting — crossover beams, pools, street glow ═══ */

@keyframes crossover-pulse {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes beam-sway {
  0%, 100% { opacity: 0.8; transform: rotate(var(--beam-rot, 0deg)) scaleX(1); }
  50% { opacity: 1; transform: rotate(calc(var(--beam-rot, 0deg) + 0.6deg)) scaleX(1.02); }
}

@keyframes street-lamp-hum {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  40% { opacity: 0.95; filter: brightness(1.08); }
  70% { opacity: 0.88; filter: brightness(0.96); }
}

@keyframes pool-shimmer {
  0%, 100% { opacity: 0.55; transform: scaleX(1); }
  50% { opacity: 0.85; transform: scaleX(1.06); }
}

@keyframes patila-wall-glow {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  35% { opacity: 0.95; transform: scale(1.08); }
  60% { opacity: 0.75; transform: scale(0.98); }
}

@keyframes fan-light-spin {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

/* ── Page-wide light rig ── */
.tapri-light-rig--page {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.tapri-light-beam {
  position: absolute;
  pointer-events: none;
  filter: blur(1px);
  animation: beam-sway var(--beam-dur, 7s) ease-in-out infinite;
  animation-delay: var(--beam-delay, 0s);
}

.tapri-light-beam--warm-l {
  top: -5%;
  left: 8%;
  width: 42%;
  height: 55%;
  --beam-rot: -8deg;
  --beam-dur: 8s;
  background: linear-gradient(
    168deg,
    rgba(255, 210, 140, 0.16) 0%,
    rgba(255, 170, 80, 0.07) 35%,
    transparent 72%
  );
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

.tapri-light-beam--warm-r {
  top: -2%;
  right: 6%;
  width: 38%;
  height: 50%;
  --beam-rot: 10deg;
  --beam-dur: 9s;
  --beam-delay: 1.5s;
  background: linear-gradient(
    195deg,
    rgba(255, 190, 110, 0.12) 0%,
    rgba(255, 140, 60, 0.05) 40%,
    transparent 75%
  );
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}

.tapri-light-beam--neon {
  top: 10%;
  right: 0;
  width: 45%;
  height: 40%;
  --beam-rot: -5deg;
  --beam-dur: 10s;
  --beam-delay: 0.8s;
  background: linear-gradient(
    225deg,
    rgba(255, 107, 53, 0.1) 0%,
    rgba(255, 80, 40, 0.04) 45%,
    transparent 70%
  );
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 20% 100%);
}

.tapri-light-beam--moon {
  top: 0;
  right: 12%;
  width: 28%;
  height: 35%;
  --beam-rot: 4deg;
  --beam-dur: 12s;
  --beam-delay: 2s;
  background: linear-gradient(
    180deg,
    rgba(180, 200, 255, 0.06) 0%,
    rgba(140, 170, 230, 0.02) 50%,
    transparent 100%
  );
  clip-path: polygon(35% 0, 65% 0, 80% 100%, 20% 100%);
}

.tapri-light-crossover {
  position: absolute;
  top: 18%;
  left: 32%;
  width: 36%;
  height: 28%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 70% 60% at 45% 40%, rgba(255, 220, 160, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 45% at 55% 55%, rgba(255, 140, 80, 0.08), transparent 70%);
  filter: blur(14px);
  animation: crossover-pulse 6s ease-in-out infinite;
}

.tapri-neon-spill {
  position: absolute;
  top: 8%;
  right: 5%;
  width: 220px;
  height: 220px;
  max-width: 40vw;
  max-height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.09), rgba(255, 80, 40, 0.03) 45%, transparent 70%);
  filter: blur(20px);
  animation: crossover-pulse 8s ease-in-out infinite;
  animation-delay: 1s;
}

.tapri-street-lamp {
  position: absolute;
  top: 6%;
  left: 1%;
  width: 48px;
  height: 100px;
  z-index: 2;
}

.tapri-street-lamp__pole {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 72%;
  background: linear-gradient(180deg, #4a4a50, #2a2a30);
  border-radius: 2px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
}

.tapri-street-lamp__head {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 14px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #3a3a40, #1a1a20);
  box-shadow: inset 0 -2px 4px rgba(255, 180, 80, 0.3);
}

.tapri-street-lamp__head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 200, 120, 0.9), rgba(255, 140, 60, 0.5));
  animation: street-lamp-hum 6s ease-in-out infinite;
}

.tapri-street-lamp__glow {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 90, 0.22), rgba(255, 140, 50, 0.06) 50%, transparent 72%);
  filter: blur(10px);
  animation: street-lamp-hum 6s ease-in-out infinite;
}

.tapri-street-lamp__beam {
  position: absolute;
  top: 22%;
  left: 60%;
  width: 120px;
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(255, 190, 100, 0.12) 0%,
    rgba(255, 160, 70, 0.04) 40%,
    transparent 75%
  );
  clip-path: polygon(0 0, 35% 0, 100% 100%, 0 80%);
  filter: blur(2px);
  animation: beam-sway 9s ease-in-out infinite;
  --beam-rot: 12deg;
}

.tapri-light-pool {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  animation: pool-shimmer var(--pool-dur, 7s) ease-in-out infinite;
  animation-delay: var(--pool-delay, 0s);
}

.tapri-light-pool--a {
  bottom: 12%;
  left: 18%;
  width: 140px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(255, 180, 80, 0.1), transparent 72%);
  --pool-dur: 8s;
}

.tapri-light-pool--b {
  bottom: 18%;
  left: 48%;
  width: 160px;
  height: 44px;
  background: radial-gradient(ellipse, rgba(255, 200, 120, 0.08), transparent 70%);
  --pool-delay: 1.2s;
  --pool-dur: 9s;
}

.tapri-light-pool--c {
  bottom: 10%;
  right: 12%;
  width: 120px;
  height: 36px;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.07), transparent 72%);
  --pool-delay: 2s;
}

.ambient-orb--neon {
  top: 15%;
  right: 8%;
  width: 28vw;
  height: 28vw;
  max-width: 320px;
  max-height: 320px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.06), transparent 70%);
  --pulse-dur: 7s;
  --pulse-delay: 0.5s;
  animation-name: ambient-orb-pulse-simple;
}

.ambient-orb--chai-warm {
  bottom: 5%;
  left: 20%;
  width: 45vw;
  height: 30vw;
  max-width: 500px;
  max-height: 340px;
  background: radial-gradient(ellipse, rgba(255, 160, 60, 0.05), transparent 68%);
  --pulse-dur: 11s;
  --pulse-delay: 2.5s;
  animation-name: ambient-orb-pulse-simple;
}

/* ── Counter light rig ── */
.counter-light-rig {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hanging-lamp--right {
  left: auto;
  right: 18%;
  transform: scaleX(-1);
}

.hanging-lamp--right .hanging-lamp__filament {
  animation-delay: 2.5s;
}

.hanging-lamp--right .hanging-lamp__shade::after {
  animation-delay: 2.5s;
}

.counter-lamp--secondary {
  left: auto;
  right: 20%;
  width: 140px;
  height: 90px;
  background: radial-gradient(ellipse, rgba(255, 184, 77, 0.35), rgba(255, 140, 60, 0.1) 45%, transparent 72%);
  animation-delay: 2.5s;
}

.counter-lamp-beam--secondary {
  left: auto;
  right: 12%;
  width: 26%;
  background: linear-gradient(
    185deg,
    rgba(255, 200, 120, 0.12) 0%,
    rgba(255, 160, 80, 0.05) 40%,
    transparent 75%
  );
  clip-path: polygon(35% 0, 65% 0, 0 100%, 100% 100%);
  animation-delay: 2.5s;
}

.counter-light-beam {
  position: absolute;
  pointer-events: none;
  animation: beam-sway var(--beam-dur, 6s) ease-in-out infinite;
  animation-delay: var(--beam-delay, 0s);
}

.counter-light-beam--string {
  top: 8%;
  left: 5%;
  width: 90%;
  height: 38%;
  --beam-dur: 7s;
  background: linear-gradient(
    180deg,
    rgba(255, 220, 150, 0.06) 0%,
    rgba(255, 180, 80, 0.03) 30%,
    transparent 65%
  );
}

.counter-light-beam--neon-spill {
  top: 14%;
  right: 0;
  width: 50%;
  height: 45%;
  --beam-rot: -6deg;
  --beam-dur: 9s;
  --beam-delay: 1s;
  background: linear-gradient(
    240deg,
    rgba(255, 107, 53, 0.11) 0%,
    rgba(255, 80, 40, 0.04) 50%,
    transparent 78%
  );
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 10% 100%);
}

.counter-light-beam--cross-left {
  top: 20%;
  left: 10%;
  width: 45%;
  height: 50%;
  --beam-rot: -5deg;
  --beam-dur: 8s;
  background: linear-gradient(
    170deg,
    rgba(255, 210, 140, 0.1) 0%,
    transparent 70%
  );
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}

.counter-light-beam--cross-right {
  top: 18%;
  right: 8%;
  width: 42%;
  height: 48%;
  --beam-rot: 7deg;
  --beam-dur: 8.5s;
  --beam-delay: 1.8s;
  background: linear-gradient(
    190deg,
    rgba(255, 190, 110, 0.09) 0%,
    transparent 72%
  );
  clip-path: polygon(35% 0, 65% 0, 0 100%, 100% 100%);
}

.counter-light-crossover {
  position: absolute;
  top: 32%;
  left: 38%;
  width: 24%;
  height: 22%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(255, 230, 180, 0.16), rgba(255, 160, 80, 0.06) 50%, transparent 72%);
  filter: blur(10px);
  z-index: 2;
  animation: crossover-pulse 5.5s ease-in-out infinite;
}

.counter-ceiling-fan-glow {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 120, 0.08), transparent 65%);
  filter: blur(6px);
}

.counter-ceiling-fan-glow::before {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 184, 77, 0.08);
  animation: fan-light-spin 24s linear infinite;
}

.counter-surface-pool {
  position: absolute;
  bottom: 8%;
  border-radius: 50%;
  filter: blur(6px);
  z-index: 3;
  animation: pool-shimmer var(--pool-dur, 6s) ease-in-out infinite;
  animation-delay: var(--pool-delay, 0s);
}

.counter-surface-pool--1 {
  left: 6%;
  width: 18%;
  height: 28px;
  background: radial-gradient(ellipse, rgba(255, 190, 100, 0.12), transparent 72%);
}

.counter-surface-pool--2 {
  left: 26%;
  width: 16%;
  height: 24px;
  --pool-delay: 0.8s;
  background: radial-gradient(ellipse, rgba(255, 200, 120, 0.1), transparent 70%);
}

.counter-surface-pool--3 {
  left: 46%;
  width: 16%;
  height: 26px;
  --pool-delay: 1.4s;
  background: radial-gradient(ellipse, rgba(255, 180, 90, 0.11), transparent 72%);
}

.counter-surface-pool--4 {
  left: 66%;
  width: 15%;
  height: 24px;
  --pool-delay: 2s;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.08), transparent 70%);
}

.counter-surface-pool--5 {
  right: 6%;
  left: auto;
  width: 14%;
  height: 22px;
  --pool-delay: 2.6s;
  background: radial-gradient(ellipse, rgba(255, 190, 100, 0.09), transparent 72%);
}

.counter-surface-pool--6 {
  left: 12%;
  top: 58%;
  width: 12%;
  height: 20px;
  --pool-delay: 3.2s;
  background: radial-gradient(ellipse, rgba(255, 200, 120, 0.08), transparent 70%);
}

.counter-surface-pool--7 {
  left: 42%;
  top: 60%;
  width: 14%;
  height: 22px;
  --pool-delay: 3.8s;
  background: radial-gradient(ellipse, rgba(255, 184, 77, 0.09), transparent 72%);
}

.counter-surface-pool--8 {
  right: 14%;
  left: auto;
  top: 57%;
  width: 13%;
  height: 20px;
  --pool-delay: 4.4s;
  background: radial-gradient(ellipse, rgba(255, 140, 60, 0.08), transparent 70%);
}

.counter-neon-floor-spill {
  position: absolute;
  bottom: 0;
  right: 8%;
  width: 35%;
  height: 25%;
  background: radial-gradient(ellipse 80% 60% at 70% 80%, rgba(255, 107, 53, 0.07), transparent 70%);
  filter: blur(8px);
  animation: crossover-pulse 7s ease-in-out infinite;
}

/* ── Welcome stall light rig ── */
.stall-light-rig {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.stall-light-beam {
  position: absolute;
  animation: beam-sway var(--beam-dur, 7s) ease-in-out infinite;
  animation-delay: var(--beam-delay, 0s);
}

.stall-light-beam--overhead {
  top: 28%;
  left: 10%;
  width: 80%;
  height: 45%;
  --beam-dur: 8s;
  background: linear-gradient(
    180deg,
    rgba(255, 210, 140, 0.14) 0%,
    rgba(255, 170, 80, 0.06) 35%,
    transparent 70%
  );
}

.stall-light-beam--left {
  top: 30%;
  left: 0;
  width: 50%;
  height: 50%;
  --beam-rot: -6deg;
  --beam-dur: 9s;
  background: linear-gradient(
    165deg,
    rgba(255, 200, 120, 0.12) 0%,
    transparent 65%
  );
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%);
}

.stall-light-beam--neon {
  top: 20%;
  right: 0;
  width: 55%;
  height: 40%;
  --beam-rot: -4deg;
  --beam-dur: 10s;
  --beam-delay: 1.2s;
  background: linear-gradient(
    235deg,
    rgba(255, 107, 53, 0.12) 0%,
    transparent 70%
  );
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 80%);
}

.stall-light-crossover {
  position: absolute;
  top: 38%;
  left: 30%;
  width: 40%;
  height: 30%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(255, 220, 160, 0.18), rgba(255, 140, 60, 0.06) 55%, transparent 72%);
  filter: blur(12px);
  animation: crossover-pulse 5s ease-in-out infinite;
}

.stall-patila-glow {
  position: absolute;
  bottom: 72px;
  left: 10%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 120, 50, 0.35), rgba(255, 80, 30, 0.12) 45%, transparent 72%);
  filter: blur(8px);
  animation: patila-wall-glow 2.5s ease-in-out infinite;
  z-index: 1;
}

.stall-patila-glow::after {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 80, 0.15), transparent 70%);
  filter: blur(12px);
}

.stall-wall-wash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 50% at 25% 30%, rgba(255, 190, 100, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 35% at 75% 25%, rgba(255, 107, 53, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(255, 120, 50, 0.05), transparent 65%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.stall-bulb-sconce {
  position: absolute;
  top: 32%;
  left: 6%;
  width: 14px;
  height: 18px;
  z-index: 5;
}

.stall-bulb-sconce__shade {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, #3a3028, #1a140e);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.stall-bulb-sconce__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 120, 0.25), transparent 70%);
  filter: blur(6px);
  animation: lamp-pulse 5s ease-in-out infinite;
}

.stall-floor-pool {
  position: absolute;
  bottom: 14px;
  border-radius: 50%;
  filter: blur(5px);
  animation: pool-shimmer 7s ease-in-out infinite;
  animation-delay: var(--pool-delay, 0s);
}

.stall-floor-pool--center {
  left: 35%;
  width: 30%;
  height: 14px;
  background: radial-gradient(ellipse, rgba(255, 190, 100, 0.14), transparent 72%);
}

.stall-floor-pool--left {
  left: 12%;
  width: 22%;
  height: 10px;
  --pool-delay: 1s;
  background: radial-gradient(ellipse, rgba(255, 160, 70, 0.1), transparent 70%);
}

.stall-string-lights--back {
  top: 48px;
  opacity: 0.55;
  filter: blur(0.5px);
  z-index: 6;
}

.stall-owner-key-light {
  position: absolute;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 150px;
  background:
    radial-gradient(ellipse 75% 65% at 50% 28%, rgba(255, 210, 140, 0.28), transparent 68%),
    radial-gradient(ellipse 50% 40% at 45% 55%, rgba(255, 160, 80, 0.1), transparent 70%);
  filter: blur(8px);
  z-index: 9;
  pointer-events: none;
  animation: crossover-pulse 6s ease-in-out infinite;
}

.welcome-scene-glow {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255, 184, 77, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 35% at 30% 50%, rgba(255, 140, 60, 0.08), transparent 65%),
    radial-gradient(ellipse 35% 30% at 72% 40%, rgba(255, 107, 53, 0.06), transparent 60%);
}

/* ── Reduced motion ── */
.motion-reduced .tapri-light-beam,
.motion-reduced .tapri-light-crossover,
.motion-reduced .tapri-neon-spill,
.motion-reduced .tapri-street-lamp__glow,
.motion-reduced .tapri-street-lamp__beam,
.motion-reduced .tapri-street-lamp__head::after,
.motion-reduced .tapri-light-pool,
.motion-reduced .counter-light-beam,
.motion-reduced .counter-light-crossover,
.motion-reduced .counter-ceiling-fan-glow::before,
.motion-reduced .counter-surface-pool,
.motion-reduced .counter-neon-floor-spill,
.motion-reduced .stall-light-beam,
.motion-reduced .stall-light-crossover,
.motion-reduced .stall-patila-glow,
.motion-reduced .stall-bulb-sconce__glow,
.motion-reduced .stall-floor-pool,
.motion-reduced .stall-owner-key-light,
.motion-reduced .counter-lamp--secondary {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .tapri-light-beam,
  .tapri-light-crossover,
  .tapri-neon-spill,
  .tapri-street-lamp__glow,
  .tapri-street-lamp__beam,
  .tapri-street-lamp__head::after,
  .tapri-light-pool,
  .counter-light-beam,
  .counter-light-crossover,
  .counter-ceiling-fan-glow::before,
  .counter-surface-pool,
  .counter-neon-floor-spill,
  .stall-light-beam,
  .stall-light-crossover,
  .stall-patila-glow,
  .stall-bulb-sconce__glow,
  .stall-floor-pool,
  .stall-owner-key-light,
  .counter-lamp--secondary {
    animation: none !important;
  }
}

@media (max-width: 600px) {
  .tapri-street-lamp,
  .tapri-light-beam--moon,
  .counter-ceiling-fan-glow::before,
  .stall-bulb-sconce {
    opacity: 0.6;
  }

  .tapri-light-crossover,
  .counter-light-crossover,
  .stall-light-crossover {
    filter: blur(8px);
    opacity: 0.75;
  }
}
