/* ==================== 3. ARCHITECTURAL WALL VIEWPORT & PROCEDURAL TEXTURE LAYER ==================== */
#vp {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  transition: background-color 0.34s ease;
}

#vp.pan {
  cursor: grabbing;
}

/* Procedural tileable 256x256 architectural texture layer (pans seamlessly with camera) */
#wall-tex {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 1;
}

/* Large smooth tonal clouds drawn at an unrelated tile size so the base grain never visibly repeats */
#wall-mottle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
}

/* Overhead natural gallery daylight / architectural vignette */
#wall-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 76% 58% at 50% -4%, rgba(255, 255, 255, var(--spot-top, 0.48)), transparent 74%),
    radial-gradient(ellipse 122% 114% at 50% 50%, transparent 54%, rgba(10, 14, 22, var(--vig, 0.085)) 100%);
}

/* Light Architectural Walls */
#vp[data-wall="plaster"] {
  background-color: #eef0f3;
  --spot-top: 0.52; --vig: 0.085;
  --sh-rest-a: 0.15; --sh-rest-b: 0.10; --sh-lift-a: 0.24; --sh-lift-b: 0.15;
}
#vp[data-wall="paper"] {
  background-color: #f2efe8;
  --spot-top: 0.44; --vig: 0.095;
  --sh-rest-a: 0.16; --sh-rest-b: 0.10; --sh-lift-a: 0.25; --sh-lift-b: 0.16;
}
#vp[data-wall="grid"] {
  background-color: #f3f5f8;
  --spot-top: 0.46; --vig: 0.075;
  --sh-rest-a: 0.15; --sh-rest-b: 0.10; --sh-lift-a: 0.24; --sh-lift-b: 0.15;
}

/* Dark Architectural Walls */
#vp[data-wall="charcoal"] {
  background-color: #17191e;
  --spot-top: 0.075; --vig: 0.50;
  --sh-rest-a: 0.48; --sh-rest-b: 0.34; --sh-lift-a: 0.66; --sh-lift-b: 0.48;
}
#vp[data-wall="slate"] {
  background-color: #131a24;
  --spot-top: 0.085; --vig: 0.48;
  --sh-rest-a: 0.48; --sh-rest-b: 0.34; --sh-lift-a: 0.64; --sh-lift-b: 0.46;
}
#vp[data-wall="felt"] {
  background-color: #191c24;
  --spot-top: 0.07; --vig: 0.52;
  --sh-rest-a: 0.52; --sh-rest-b: 0.36; --sh-lift-a: 0.68; --sh-lift-b: 0.48;
}

/* World Coordinate Container — Rests at exact scale(1) at EVERY zoom level! */
#world {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

/* Full-Viewport 3-Tier Organic Erosion & Dust Canvas */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}
