/* Learnovra Portal Trial v1.3.0: homepage visual layer. Disable plugin to revert.
   Fixed distant glow + readable rings/icons. No external assets. */
body.lv-home-view.lv-portal-trial-on .lv-world-wrap {
  background:
    radial-gradient(ellipse at 50% 50%,rgba(141,111,225,.26),rgba(94,69,156,.13) 24%,transparent 63%),
    linear-gradient(180deg,#0c0e1b 0%,#080b17 70%,#080a12 100%);
}
body.lv-home-view.lv-portal-trial-on .lv-world-wrap .lv-world {z-index:1;}
/* Keep vignette, without dimming the central portal. */
body.lv-home-view.lv-portal-trial-on .lv-world-wrap::after {
  z-index:2;
  background:
    linear-gradient(90deg,rgba(7,9,18,.65) 0%,transparent 22%,transparent 78%,rgba(7,9,18,.65) 100%),
    linear-gradient(0deg,rgba(7,9,18,.68) 0%,transparent 21%,transparent 89%,rgba(7,9,18,.37) 100%);
}
/* Existing ring visual geometry is retained; v1.2 keeps the camera fixed. */
body.lv-home-view.lv-portal-trial-on .lv-portal {
  border:2px solid rgba(246,218,177,.94);
  box-shadow:0 0 35px rgba(173,138,247,.56),inset 0 0 25px rgba(187,157,252,.24);
  filter:drop-shadow(0 0 10px rgba(232,206,166,.54));
}
body.lv-home-view.lv-portal-trial-on .lv-portal::before {
  border:1px solid rgba(198,174,255,.87);
  box-shadow:0 0 17px rgba(179,145,245,.48);
}
body.lv-home-view.lv-portal-trial-on .lv-portal::after {
  border-color:rgba(255,230,185,.83);
  box-shadow:0 0 12px rgba(255,226,189,.25);
}
body.lv-home-view.lv-portal-trial-on .lv-spine {
  background:linear-gradient(90deg,transparent,rgba(220,195,157,.32),transparent);
}
/* The far-end glow is VIEWPORT-ANCHORED and never animates, breathes or travels. */
body.lv-home-view.lv-portal-trial-on .lv-trial-horizon {
  position:absolute;
  left:50%;top:50%;
  width:min(48vw,510px);height:min(48vw,510px);
  transform:translate(-50%,-50%);
  pointer-events:none;
  z-index:0;
  opacity:1;
  animation:none !important;
  background:radial-gradient(circle at center,
    #fff9ed 0%, #fff4dc 1.5%, rgba(255,227,182,.94) 3%,
    rgba(251,209,178,.61) 6%,rgba(205,162,244,.40) 13%,
    rgba(158,117,239,.25) 27%,rgba(130,110,218,.10) 44%,transparent 69%);
  filter:none;
}
body.lv-home-view.lv-portal-trial-on .lv-trial-horizon::after {
  content:"";position:absolute;left:50%;top:50%;width:12px;height:12px;
  transform:translate(-50%,-50%);border-radius:50%;
  background:#fff8e9;
  box-shadow:0 0 18px 6px rgba(255,244,205,.64),
             0 0 46px 17px rgba(226,187,242,.35);
}
/* Icons float in screen space so they remain legible, not perspective-shrunk.
   They are automatically hidden whenever they meet actual on-screen text. */
body.lv-home-view.lv-portal-trial-on .lv-trial-icon-layer {
  position:absolute;inset:0;z-index:3;pointer-events:none;
}
body.lv-home-view.lv-portal-trial-on .lv-trial-particle {
  position:absolute;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:0;
  min-width:50px;height:57px;padding:4px 5px;
  border:1px solid rgba(222,191,243,.58);
  border-radius:13px;
  background:rgba(32,29,61,.44);
  box-shadow:0 0 17px rgba(158,124,235,.31),inset 0 0 11px rgba(195,166,242,.09);
  color:#f5deba;
  transform:translate(-50%,-50%);
  pointer-events:none;
  opacity:0;
  transition:opacity .18s ease;
  will-change:opacity;
}
body.lv-home-view.lv-portal-trial-on .lv-trial-particle:nth-child(even) {
  color:#d6c2ff;
}
body.lv-home-view.lv-portal-trial-on .lv-trial-particle svg {
  display:block;width:33px;height:33px;
  filter:drop-shadow(0 0 5px rgba(241,219,255,.58));
  animation:lv-trial-floating 7s ease-in-out infinite alternate;
}
body.lv-home-view.lv-portal-trial-on .lv-trial-particle:nth-child(3n) svg {animation-delay:-2.7s;}
body.lv-home-view.lv-portal-trial-on .lv-trial-particle-name {
  color:#f6e5cd;
  font-size:9px;font-weight:750;letter-spacing:.055em;
  line-height:1.35;white-space:nowrap;
}
@keyframes lv-trial-floating {
  0%,100% {transform:translate(0,0) rotate(-5deg)}
  30% {transform:translate(3px,-2px) rotate(3deg)}
  65% {transform:translate(-3px,2px) rotate(-3deg)}
}
/* Keep all substantive homepage content ABOVE the 3D effect. */
body.lv-home-view.lv-portal-trial-on .lv-page-main {position:relative;z-index:2;}
body.lv-home-view.lv-portal-trial-on .lv-chapter {
  background:linear-gradient(90deg,rgba(11,13,22,.83) 0%,rgba(11,13,22,.56) 44%,rgba(11,13,22,.06) 91%);
}
body.lv-home-view.lv-portal-trial-on .lv-chapter:nth-child(even) {
  background:linear-gradient(270deg,rgba(11,13,22,.83) 0%,rgba(11,13,22,.56) 44%,rgba(11,13,22,.06) 91%);
}
@media(max-width:900px) {
  body.lv-home-view.lv-portal-trial-on .lv-world-wrap {perspective:900px;}
  body.lv-home-view.lv-portal-trial-on .lv-portal {width:94vw;height:68svh;}
  body.lv-home-view.lv-portal-trial-on .lv-trial-horizon {width:67vw;height:67vw;}
  body.lv-home-view.lv-portal-trial-on .lv-chapter,
  body.lv-home-view.lv-portal-trial-on .lv-chapter:nth-child(even) {
    background:linear-gradient(90deg,rgba(11,13,22,.87) 0%,rgba(11,13,22,.66) 53%,rgba(11,13,22,.25) 100%);
  }
}
@media(max-width:600px) {
  body.lv-home-view.lv-portal-trial-on .lv-world-wrap {perspective:900px;perspective-origin:50% 50%;}
  body.lv-home-view.lv-portal-trial-on .lv-portal {width:112vw;height:73svh;}
  body.lv-home-view.lv-portal-trial-on .lv-trial-horizon {width:96vw;height:96vw;}
  body.lv-home-view.lv-portal-trial-on .lv-trial-particle {
    min-width:42px;height:48px;padding:3px;border-radius:11px;
  }
  body.lv-home-view.lv-portal-trial-on .lv-trial-particle svg {width:27px;height:27px;animation:none;}
  body.lv-home-view.lv-portal-trial-on .lv-trial-particle-name {font-size:8px;}
  body.lv-home-view.lv-portal-trial-on .lv-chapter,
  body.lv-home-view.lv-portal-trial-on .lv-chapter:nth-child(even) {
    background:linear-gradient(90deg,rgba(11,13,22,.88) 0%,rgba(11,13,22,.65) 62%,rgba(11,13,22,.20) 100%);
  }
}
@media(prefers-reduced-motion:reduce) {
  body.lv-home-view.lv-portal-trial-on .lv-trial-particle,
  body.lv-home-view.lv-portal-trial-on .lv-trial-horizon {animation:none!important;}
}


/* v1.2: The scene origin / vanishing point is locked in viewport space.
   Portal rings move smoothly toward the viewer through the fixed centre.
   Unlike the original world, none of these transforms depend on scroll. */
body.lv-home-view.lv-portal-trial-on .lv-world-wrap .lvpt-stable-world {
  transform:none !important;
  transform-style:preserve-3d;
  perspective-origin:50% 50%;
}
body.lv-home-view.lv-portal-trial-on .lvpt-ring.lv-portal {
  opacity:0;
  animation:lvpt-ring-depth 28s linear infinite;
  animation-delay:var(--lvpt-delay);
  filter:none !important;
  backface-visibility:hidden;
  /* Balanced glow avoids expensive per-frame drop-shadow filtering. */
  box-shadow:0 0 20px rgba(174,142,238,.37),inset 0 0 15px rgba(180,153,236,.18);
  border-color:rgba(240,211,174,.78);
}
body.lv-home-view.lv-portal-trial-on .lvpt-ring.lv-portal::before {
  box-shadow:0 0 12px rgba(178,151,235,.38);
}
body.lv-home-view.lv-portal-trial-on .lvpt-ring.lv-portal::after {
  box-shadow:0 0 9px rgba(245,214,175,.26);
}
@keyframes lvpt-ring-depth {
  0%   {transform:translate3d(-50%,-50%,-2600px);opacity:0}
  9%   {opacity:.28}
  43%  {opacity:.68}
  75%  {opacity:.83}
  91%  {opacity:.9}
  100% {transform:translate3d(-50%,-50%,110px);opacity:0}
}
body.lv-home-view.lv-portal-trial-on .lvpt-stable-spine {
  opacity:.50;
  filter:none;
}
/* Never let the distant light inherit scene transforms. */
body.lv-home-view.lv-portal-trial-on .lv-world-wrap .lv-trial-horizon {
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate3d(-50%,-50%,0) !important;
  animation:none !important;
  will-change:auto;
}
/* Icons move less when the visitor scrolls, avoiding jumpy tool badges. */
body.lv-home-view.lv-portal-trial-on .lv-trial-particle {
  transition:opacity .2s ease, left .6s ease-out, top .6s ease-out;
  will-change:auto;
}
@media (max-width:900px) {
  body.lv-home-view.lv-portal-trial-on .lvpt-ring.lv-portal:nth-child(n+9) {display:none}
  body.lv-home-view.lv-portal-trial-on .lvpt-ring.lv-portal {
    animation-delay:var(--lvpt-tablet-delay);
    box-shadow:0 0 13px rgba(174,142,238,.30),inset 0 0 9px rgba(180,153,236,.12);
  }
}
@media (max-width:600px) {
  body.lv-home-view.lv-portal-trial-on .lvpt-ring.lv-portal:nth-child(n+7) {display:none}
  body.lv-home-view.lv-portal-trial-on .lvpt-ring.lv-portal {
    animation-delay:var(--lvpt-mobile-delay);
    animation-duration:28s;
    box-shadow:0 0 9px rgba(174,142,238,.26),inset 0 0 6px rgba(180,153,236,.10);
  }
  body.lv-home-view.lv-portal-trial-on .lvpt-stable-spine:nth-of-type(n+15) {display:none}
}
@media (prefers-reduced-motion:reduce) {
  /* The base theme hides the stage entirely; show a NON-moving static portal. */
  body.lv-home-view.lv-portal-trial-on .lv-world-wrap {display:block!important}
  body.lv-home-view.lv-portal-trial-on .lvpt-ring.lv-portal {
    animation:none!important;
    transform:translate3d(-50%,-50%,var(--lvpt-static-z))!important;
    filter:none!important;
  }
  body.lv-home-view.lv-portal-trial-on .lv-trial-particle {transition:none!important}
}
