/* Jaguar Phase 2 / Room Gold v59
   Founder-visible composition pass on top of the accepted V52 creature renderer.
   Goal: creature-first staging, stronger depth/contact, quieter interface, no new media or runtime loops. */

.jaguar[data-scene="0"] .three-wrap{
  background:
    radial-gradient(ellipse 34% 24% at 58% 71%,rgba(144,126,66,.10),transparent 66%),
    radial-gradient(ellipse 58% 44% at 58% 48%,rgba(44,78,44,.08),transparent 74%),
    linear-gradient(180deg,rgba(0,0,0,0) 42%,rgba(1,8,3,.17) 67%,rgba(0,3,1,.72) 100%)!important;
}

/* Build a clear light pocket around the animal instead of lighting the whole frame. */
.jaguar[data-scene="0"] .three-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:7;
  pointer-events:none;
  background:
    radial-gradient(ellipse 28% 37% at 58% 49%,rgba(177,203,144,.075),transparent 68%),
    radial-gradient(ellipse 44% 25% at 58% 72%,rgba(121,114,63,.055),transparent 70%);
  mix-blend-mode:screen;
  opacity:.82;
}

/* The V52 animal is the hero: slightly larger, brighter and cleaner than the surrounding room. */
.jaguar[data-scene="0"] .jaguar-local-v52{
  z-index:10!important;
  filter:saturate(.94) contrast(1.13) brightness(1.04)!important;
}

/* More convincing ground lock directly beneath the body/paws. */
.jaguar[data-scene="0"] .ground-contact{
  left:56%!important;
  top:74%!important;
  width:min(39vw,610px)!important;
  height:10.5vh!important;
  opacity:.98!important;
  filter:blur(1.5px);
  background:
    radial-gradient(ellipse at 50% 40%,rgba(0,0,0,.92) 0 14%,rgba(0,0,0,.72) 29%,rgba(0,0,0,.36) 48%,transparent 72%)!important;
}

/* Darker edges and a quieter canopy put depth behind the animal without obscuring it. */
.jaguar[data-scene="0"] .room--far{opacity:.73!important;filter:saturate(.56) contrast(1.10) brightness(.20)!important}
.jaguar[data-scene="0"] .room--mid{opacity:.25!important;filter:saturate(.58) contrast(1.12) brightness(.18)!important}
.jaguar[data-scene="0"] .room--canopy{opacity:.78!important;filter:saturate(.42) contrast(1.28) brightness(.085)!important}
.jaguar[data-scene="0"] .room--left{opacity:.96!important;filter:saturate(.40) contrast(1.36) brightness(.055)!important}
.jaguar[data-scene="0"] .room--right{opacity:.92!important;filter:saturate(.40) contrast(1.36) brightness(.052)!important}
.jaguar[data-scene="0"] .world-vignette{
  background:
    radial-gradient(ellipse 54% 62% at 58% 49%,transparent 0 40%,rgba(0,4,2,.20) 64%,rgba(0,2,1,.89) 100%),
    linear-gradient(90deg,rgba(0,3,1,.90),transparent 28% 77%,rgba(0,3,1,.84))!important;
}

/* Keep humidity visible as depth, not as a veil over the creature. */
.jaguar[data-scene="0"] .room--fog{opacity:.28!important}
.jaguar[data-scene="0"] .room--shafts{opacity:.42!important}
.jaguar[data-scene="0"] .foreground--left{opacity:.82!important}
.jaguar[data-scene="0"] .foreground--right{opacity:.80!important}

/* Reduce first-read interface competition with the animal. */
.jaguar[data-scene="0"] .species-card{
  background:linear-gradient(180deg,rgba(2,10,5,.78),rgba(1,7,3,.62))!important;
  backdrop-filter:blur(8px);
  border-color:rgba(255,255,255,.10)!important;
  box-shadow:0 18px 52px rgba(0,0,0,.24)!important;
}
.jaguar[data-scene="0"] .species-card .truth{opacity:.62}
.jaguar[data-scene="0"] .controls{background:rgba(1,7,3,.54)!important;backdrop-filter:blur(8px)}

/* LUME should read as a dark intelligence chamber while retaining the animal as the centre. */
.jaguar[data-lume="true"][data-scene="0"] .jaguar-local-v52{
  filter:saturate(.52) contrast(1.20) brightness(.96)!important;
}
.jaguar[data-lume="true"] .lume-room{
  background:
    radial-gradient(ellipse 34% 44% at 58% 49%,rgba(8,52,39,.22),transparent 64%),
    radial-gradient(ellipse 72% 82% at 58% 55%,rgba(0,15,11,.18),rgba(0,2,2,.97) 80%),
    linear-gradient(180deg,#010606 0,#000202 100%)!important;
}
.jaguar[data-lume="true"] .lume-grid{opacity:.30!important}
.jaguar[data-lume="true"] .lume-grid--floor{opacity:.46!important}
.jaguar[data-lume="true"] .lume-intel{
  background:rgba(0,8,7,.70)!important;
  border-color:rgba(76,210,159,.14)!important;
  box-shadow:0 16px 44px rgba(0,0,0,.22)!important;
}

@media(max-width:760px){
  .jaguar[data-scene="0"] .jaguar-local-v52{filter:saturate(.94) contrast(1.11) brightness(1.08)!important}
  .jaguar[data-scene="0"] .ground-contact{left:50%!important;top:73.5%!important;width:68vw!important;height:7.5vh!important;filter:blur(1px)}
  .jaguar[data-scene="0"] .three-wrap::after{opacity:.68}
  .jaguar[data-scene="0"] .room--fog{opacity:.18!important}
  .jaguar[data-scene="0"] .room--shafts{opacity:.18!important}
  .jaguar[data-scene="0"] .foreground--left{opacity:.50!important}
  .jaguar[data-scene="0"] .foreground--right{opacity:.48!important}
  .jaguar[data-scene="0"] .species-card{backdrop-filter:none}
  .jaguar[data-scene="0"] .controls{backdrop-filter:none}
  .jaguar[data-lume="true"][data-scene="0"] .jaguar-local-v52{filter:saturate(.55) contrast(1.17) brightness(1.00)!important}
}

@media(prefers-reduced-motion:reduce){
  .jaguar[data-scene="0"] .three-wrap::after{mix-blend-mode:normal}
}
