/* All styling is Gallery-scoped and isolated from Studio Live / PageLayer edit screens. */
body.rva-mounted .rva-original-video-source{display:none!important;}
.rva-stage[hidden]{display:none!important;}
.rva-stage{position:relative!important;width:100vw!important;min-width:100vw!important;max-width:none!important;flex:0 0 auto!important;box-sizing:border-box!important;margin:0!important;padding:0!important;isolation:isolate!important;background:#080713!important;overflow:hidden!important;z-index:1!important;box-shadow:0 0 40px rgba(0,0,0,.56)!important;}
.rva-room{position:relative!important;width:100%!important;height:var(--rva-height,34.5vw)!important;background-image:var(--rva-bg)!important;background-repeat:no-repeat!important;background-size:var(--rva-bg-width,125%) 100%!important;background-position:50% 50%!important;overflow:hidden!important;}
.rva-masks{position:absolute;width:0;height:0;pointer-events:none;}
.rva-tv{position:absolute!important;left:var(--sx)!important;top:var(--sy)!important;width:var(--sw)!important;height:var(--sh)!important;z-index:2!important;box-sizing:border-box!important;}
.rva-tv-glass{position:absolute!important;inset:0!important;overflow:hidden!important;background:#020207!important;box-sizing:border-box!important;isolation:isolate!important;}
/* v0.1.15 — an actual illuminated CRT, not a faint fog layer.
   The bloom is ABOVE the video/white noise and follows the saved curved clip path.
   Brightness is applied to the video separately. Strength 0 = completely off. */
.rva-tv-halo{position:absolute!important;inset:-12%!important;z-index:0!important;pointer-events:none!important;
  border-radius:30% / 34%!important;
  background:radial-gradient(ellipse at 50% 50%,rgba(var(--rva-glow-rgb,68,223,255),.55) 0%,rgba(var(--rva-glow-rgb,68,223,255),.38) 38%,rgba(var(--rva-glow-rgb,68,223,255),.10) 63%,transparent 80%)!important;
  box-shadow:0 0 34px 14px rgba(var(--rva-glow-rgb,68,223,255),.66),0 0 55px 28px rgba(var(--rva-glow-rgb,68,223,255),.24)!important;
  opacity:var(--rva-glow-opacity,.55)!important;filter:blur(11px)!important;}
.rva-tv-glass{z-index:1!important;}
.rva-screen-bloom{position:absolute!important;inset:0!important;z-index:12!important;pointer-events:none!important;
  background:radial-gradient(ellipse at 50% 44%,rgba(var(--rva-glow-rgb,68,223,255),.45) 0%,rgba(var(--rva-glow-rgb,68,223,255),.23) 47%,rgba(var(--rva-glow-rgb,68,223,255),.10) 76%,transparent 100%),
    linear-gradient(130deg,rgba(255,255,255,.22),transparent 38%,rgba(255,255,255,.055) 64%,transparent 90%)!important;
  box-shadow:inset 0 0 24px 8px rgba(var(--rva-glow-rgb,68,223,255),.20),inset 0 0 8px 2px rgba(255,255,255,.12)!important;
  opacity:var(--rva-glow-opacity,.55)!important;mix-blend-mode:screen!important;
}
/* v0.1.33: the illuminated haze should hug each CRT screen instead of laying
   a fog sheet across the entire wall. Reuse the cloud textures INSIDE the
   clipped glass layer so the mist only blooms where the screen emits light. */
.rva-screen-bloom::before,.rva-screen-bloom::after{
  content:''!important;position:absolute!important;inset:-10%!important;display:block!important;
  pointer-events:none!important;mix-blend-mode:screen!important;
  opacity:var(--rva-screen-mist-opacity,.42)!important;
  will-change:transform,opacity;
}
.rva-screen-bloom::before{
  background:
    radial-gradient(ellipse at 50% 52%,rgba(var(--rva-glow-rgb,68,223,255),.58) 0%,rgba(var(--rva-glow-rgb,68,223,255),.28) 35%,rgba(var(--rva-glow-rgb,68,223,255),.10) 58%,transparent 78%),
    center / 100% 100% no-repeat url('rva-cloud-1.webp')!important;
  filter:blur(9px)!important;
  animation:rvaCloudFloatA 12s ease-in-out infinite alternate!important;
}
.rva-screen-bloom::after{
  inset:-14%!important;
  background:
    radial-gradient(ellipse at 53% 46%,rgba(255,255,255,.16) 0%,rgba(var(--rva-glow-rgb,68,223,255),.18) 34%,transparent 70%),
    center / 100% 100% no-repeat url('rva-cloud-2.webp')!important;
  opacity:calc(var(--rva-screen-mist-opacity,.42) * .78)!important;
  filter:blur(12px)!important;
  animation:rvaCloudFloatB 15s ease-in-out infinite alternate!important;
}
.rva-video-poster{position:absolute!important;inset:0!important;display:block!important;background-size:var(--rva-poster-size,cover)!important;background-position:center!important;filter:saturate(1.12) brightness(var(--rva-light-brightness,1.15));}
.rva-video-poster::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(0,0,0,.07),rgba(0,0,0,.07) 2px,transparent 2px,transparent 4px),radial-gradient(ellipse at center,transparent 52%,rgba(0,0,0,.3));pointer-events:none;}
.rva-play{position:absolute!important;z-index:4!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#ff0739!important;box-shadow:0 1px 16px rgba(0,0,0,.56),0 0 15px rgba(255,0,66,.35)!important;border:0!important;border-radius:12px!important;cursor:pointer!important;width:58px!important;height:42px!important;min-width:0!important;min-height:0!important;padding:0!important;}
.rva-play[hidden]{display:none!important;}
.rva-play:focus-visible{outline:3px solid #5bffff;outline-offset:3px;}
.rva-play-triangle{width:0;height:0;border-top:11px solid transparent;border-bottom:11px solid transparent;border-left:18px solid white;margin-left:4px;}
.rva-player{filter:brightness(var(--rva-light-brightness,1.15))!important;position:absolute!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%) scaleX(var(--rva-scale-x,1)) scaleY(var(--rva-scale-y,1))!important;width:var(--rva-player-w,100%)!important;height:var(--rva-player-h,100%)!important;border:0!important;min-width:0!important;min-height:0!important;z-index:6!important;background:#000!important;display:block!important;}
.rva-white-noise{position:absolute!important;inset:0!important;background-image:url('static-noise.webp')!important;background-size:155px 155px!important;background-color:#8c8c8e;opacity:.9;filter:brightness(var(--rva-light-brightness,1.15));animation:rvaNoise 210ms steps(4) infinite;}

.rva-dark-screen{position:absolute;inset:0;background:#050913;}
@keyframes rvaNoise{0%{background-position:0 0}25%{background-position:43px -60px}50%{background-position:-90px 30px}75%{background-position:70px 90px}100%{background-position:0 0}}
/* v0.1.15: transparent textured smoke extends well beyond the wall, so no
   square edges can enter the viewport as the layers drift. The WebP textures
   themselves have 35% horizontal/31% vertical feathering and soft blur. */
.rva-smoke{position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;overflow:hidden!important;opacity:var(--rva-smoke-strength,.68)!important;mix-blend-mode:screen!important;}
.rva-smoke::before,.rva-smoke::after,.rva-smoke-wisp{content:'';position:absolute!important;display:block!important;pointer-events:none!important;background-repeat:no-repeat!important;background-position:center!important;background-size:100% 100%!important;will-change:transform,opacity;}
.rva-smoke::before{left:-34%;top:-13%;width:150%;height:88%;background-image:url('rva-cloud-1.webp')!important;animation:rvaCloudFloatA 12s ease-in-out infinite alternate!important;}
.rva-smoke::after{right:-32%;top:18%;width:147%;height:89%;background-image:url('rva-cloud-2.webp')!important;animation:rvaCloudFloatB 15s ease-in-out infinite alternate!important;}
.rva-smoke-wisp{left:-16%;top:41%;width:136%;height:71%;background-image:url('rva-cloud-3.webp')!important;opacity:.84;animation:rvaCloudFloatC 18s ease-in-out infinite alternate!important;}
@keyframes rvaCloudFloatA{0%{transform:translate3d(-3%,3%,0) scale(.97);opacity:.65}100%{transform:translate3d(9%,-5%,0) scale(1.06);opacity:.94}}
@keyframes rvaCloudFloatB{0%{transform:translate3d(5%,-3%,0) scale(1.01);opacity:.68}100%{transform:translate3d(-8%,5%,0) scale(.97);opacity:.97}}
@keyframes rvaCloudFloatC{0%{transform:translate3d(-4%,4%,0) scale(.99);opacity:.55}100%{transform:translate3d(7%,-5%,0) scale(1.04);opacity:.85}}
.rva-player.rva-player-file{object-fit:var(--rva-object-fit,cover)!important;cursor:auto!important;}
.rva-player.rva-player-embed{border:0!important;}
@media(max-width:767px){
  .rva-stage{margin:0!important;}
  .rva-room{height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;padding:14px 8px 24px!important;background-image:radial-gradient(ellipse at 35% 12%,rgba(240,27,191,.25),transparent 50%),linear-gradient(150deg,#09020e,#120a2c 58%,#040913)!important;box-sizing:border-box!important;}
  .rva-tv{position:relative!important;left:auto!important;top:auto!important;width:min(100%,530px)!important;height:auto!important;aspect-ratio:var(--mobile-tv-ratio)!important;max-width:100%!important;margin:0 auto -3px!important;background-image:var(--mobile-tv-image)!important;background-size:100% 100%!important;background-repeat:no-repeat!important;filter:drop-shadow(0 12px 12px rgba(0,0,0,.65))!important;}
  .rva-tv-glass{inset:auto!important;left:var(--mob-x)!important;top:var(--mob-y)!important;width:var(--mob-w)!important;height:var(--mob-h)!important;}
  .rva-tv-halo{inset:auto!important;left:var(--mob-x)!important;top:var(--mob-y)!important;width:var(--mob-w)!important;height:var(--mob-h)!important;}
  .rva-tv:nth-of-type(n+9){display:none!important;}
  .rva-play{width:52px!important;height:38px!important;}
  .rva-smoke::before,.rva-smoke::after,.rva-smoke-wisp{filter:blur(6px)}
}
@media(prefers-reduced-motion:reduce){.rva-white-noise,.rva-smoke::before,.rva-smoke::after,.rva-smoke-wisp{animation:none!important;}}

/* The video heading belongs inside the independent full-width backdrop. */
.rva-stage>.rgm181-video-intro{width:100%!important;max-width:none!important;box-sizing:border-box!important;position:relative!important;z-index:2!important;margin:0!important;padding:24px 14px 18px!important;text-align:center!important;background:linear-gradient(90deg,#080414,#180824 55%,#080414)!important;border-top:1px solid rgba(255,60,198,.3)!important;}
.rva-stage>.rgm181-video-intro h2{color:#fff!important;text-shadow:0 0 17px rgba(255,60,210,.25)!important;}
.rva-stage>.rgm181-video-intro .rgm181-video-unavailable{display:none!important;}
@media(max-width:767px){.rva-stage>.rgm181-video-intro{padding:22px 12px 15px!important;}}

@media(max-width:767px){.rva-tv.rva-custom-background{background-size:var(--mob-bg-size-x) var(--mob-bg-size-y)!important;background-position:var(--mob-bg-x) var(--mob-bg-y)!important;}}

body.rva-video-active .rva-allow-overflow{overflow:visible!important;}

/* v0.1.1 — featured videos full-width on phones, static supporting CRTs
   paired below. Keeps screen openings editable and tap targets large. */
@media(max-width:767px){
  .rva-room>.rva-tv:nth-of-type(-n+4){grid-column:1/-1!important;}
  .rva-room>.rva-tv:nth-of-type(n+5){grid-column:auto!important;}
  .rva-room>.rva-tv{margin:0 auto 5px!important;}
  .rva-room>.rva-tv:nth-of-type(n+5) .rva-play{width:36px!important;height:28px!important;}
}

/* v0.1.4: approved cinematic desktop scene and tall, individual mobile CRTs. */
@media(max-width:767px){
 .rva-room{display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;padding:14px 4px 26px!important;background-image:linear-gradient(90deg,rgba(252,20,182,.25),rgba(4,8,30,.42) 50%,rgba(0,179,255,.2)),url('neon-wall-mobile.webp')!important;background-size:cover!important;background-position:center!important;}
 .rva-room>.rva-tv.rva-neon-mobile{display:block!important;position:relative!important;flex:none!important;grid-column:auto!important;width:94%!important;max-width:550px!important;margin:0 auto -1px!important;background-size:100% 100%!important;filter:drop-shadow(0 8px 9px rgba(0,0,0,.65))!important;}
 .rva-room>.rva-tv.rva-neon-mobile .rva-tv-glass{clip-path:none!important;-webkit-clip-path:none!important;border-radius:9% / 12%!important;}
 .rva-room>.rva-tv.rva-tv-4.rva-neon-mobile{order:-1!important;width:45%!important;margin:0 auto -2px!important;}
 .rva-room>.rva-tv.rva-tv-0{order:0!important;}
 .rva-room>.rva-tv.rva-tv-1{order:1!important;}
 .rva-room>.rva-tv.rva-tv-2{order:2!important;}
 .rva-room>.rva-tv.rva-tv-3{order:3!important;width:84%!important;margin-right:auto!important;margin-left:2%!important;}
 .rva-room>.rva-tv.rva-tv-7.rva-neon-mobile{order:4!important;width:35%!important;align-self:flex-end!important;margin:-27% 1% 1% auto!important;z-index:3!important;}
 .rva-room>.rva-tv.rva-tv-5,.rva-room>.rva-tv.rva-tv-6,.rva-room>.rva-tv.rva-tv-8,.rva-room>.rva-tv.rva-tv-9{display:none!important;}
 .rva-room>.rva-tv.rva-neon-mobile .rva-play{width:48px!important;height:36px!important;}
}

/* v0.1.5 independently saved mobile cabinet-local screen masks. */
@media(max-width:767px){.rva-room>.rva-tv.rva-neon-mobile .rva-tv-glass.rva-editable-mobile-mask{clip-path:var(--rva-mobile-clip)!important;-webkit-clip-path:var(--rva-mobile-clip)!important;border-radius:0!important}}

/* v0.1.7: device-specific screen-mask deletion. The desktop cabinet stays
   part of the photographed scene; only its interactive overlay is removed.
   On mobile the matching individual cabinet is also hidden. */
@media(min-width:768px){.rva-room>.rva-tv.rva-desktop-mask-deleted{display:none!important;}}
@media(max-width:767px){.rva-room>.rva-tv.rva-mobile-mask-deleted{display:none!important;}}

/* v0.1.8 removed TVs are absent from both desktop playable overlays and mobile cabinets. */
.rva-room>.rva-tv.rva-removed-tv{display:none!important}


/* v0.1.16: atmospheric light scattering. Each live CRT casts a soft pool of
   light into textured, moving cloud layers. Light stays behind all TV glass.
   Keep the feather broad and uneven, so it cannot produce a hard rectangle. */
.rva-room>.rva-smoke{isolation:isolate!important;}
.rva-room>.rva-smoke>.rva-mist-light{
  position:absolute!important;display:block!important;pointer-events:none!important;
  left:var(--rva-light-x,50%)!important;top:var(--rva-light-y,50%)!important;
  width:var(--rva-light-width,45%)!important;height:var(--rva-light-height,50%)!important;
  transform:translate(-50%,-50%)!important;z-index:4!important;
  opacity:var(--rva-light-alpha,.75)!important;mix-blend-mode:screen!important;
  background:radial-gradient(ellipse at 50% 50%,
    rgba(var(--rva-light-tint,68,223,255),.95) 0%,
    rgba(var(--rva-light-tint,68,223,255),.64) 18%,
    rgba(var(--rva-light-tint,68,223,255),.40) 38%,
    rgba(var(--rva-light-tint,68,223,255),.12) 60%,
    transparent 82%)!important;
  filter:blur(clamp(14px,2vw,40px))!important;
  animation:rvaMistLights 14s ease-in-out infinite alternate!important;
}
.rva-room>.rva-smoke>.rva-mist-light::before{
  content:'';position:absolute;inset:-18%;pointer-events:none;
  background:radial-gradient(ellipse,
    rgba(var(--rva-light-tint,68,223,255),.98) 0%,
    rgba(var(--rva-light-tint,68,223,255),.60) 26%, transparent 74%);
  -webkit-mask-image:url('rva-cloud-2.webp');mask-image:url('rva-cloud-2.webp');
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-size:cover;mask-size:cover;
  opacity:.95;
  filter:blur(12px);
  animation:rvaMistLightTexture 17s ease-in-out infinite alternate!important;
}
@keyframes rvaMistLights{from{translate:-2% 3%}to{translate:3% -4%}}
@keyframes rvaMistLightTexture{from{transform:translate3d(-4%,2%,0) scale(.97)}to{transform:translate3d(5%,-3%,0) scale(1.04)}}
/* On mobile the TV cabinets are independent image elements. The glow must
   travel with each cabinet, and is placed behind its playable glass. */
.rva-tv-mist-bloom{display:none!important;pointer-events:none!important;}
@media(max-width:767px){
  .rva-room>.rva-smoke>.rva-mist-light{display:none!important;}
  .rva-room>.rva-tv>.rva-tv-mist-bloom{
    position:absolute!important;display:block!important;z-index:0!important;
    top:50%!important;left:50%!important;width:145%!important;height:160%!important;
    transform:translate(-50%,-50%)!important;pointer-events:none!important;
    opacity:var(--rva-mist-alpha,.7)!important;
    background:radial-gradient(ellipse at center,
      rgba(var(--rva-glow-rgb,68,223,255),.80) 0%,
      rgba(var(--rva-glow-rgb,68,223,255),.48) 30%,
      rgba(var(--rva-glow-rgb,68,223,255),.13) 55%,transparent 80%)!important;
    filter:blur(30px)!important;mix-blend-mode:screen!important;
    -webkit-mask-image:radial-gradient(ellipse,#000 18%,rgba(0,0,0,.8) 43%,transparent 80%);
    mask-image:radial-gradient(ellipse,#000 18%,rgba(0,0,0,.8) 43%,transparent 80%);
  }
}
@media(prefers-reduced-motion:reduce){
  .rva-room>.rva-smoke>.rva-mist-light,.rva-room>.rva-smoke>.rva-mist-light::before{animation:none!important}
}

/* v0.1.17 — MOBILE: Never composite the full portrait TV mural behind the
   individually positioned CRT cabinet crops. The old rule drew all six TVs
   twice, creating phantom joined televisions above and below the real ones. */
@media(max-width:767px){
 .rva-stage .rva-room{
   background-image:
     radial-gradient(ellipse 76% 30% at 12% 21%,rgba(235,32,178,.30),transparent 79%),
     radial-gradient(ellipse 72% 30% at 92% 51%,rgba(11,139,235,.30),transparent 79%),
     radial-gradient(ellipse 95% 46% at 33% 88%,rgba(163,24,143,.24),transparent 80%),
     linear-gradient(110deg,#150a24 0%,#080b20 46%,#090821 100%)!important;
   background-size:100% 100%!important;
   background-repeat:no-repeat!important;
   padding:12px 3px 28px!important;
 }
 .rva-room>.rva-tv.rva-neon-mobile{
   filter:none!important;
   box-shadow:0 8px 18px rgba(0,0,0,.34)!important;
 }
 /* Mobile low-power default: keep the neon still image and playable videos,
    but don't run continuous static, blended mist, blurred bloom or GPU-cloud
    animation. These effects remain available on desktop. */
 .rva-stage.rva-mobile-efficient .rva-smoke{
   opacity:.20!important;
   mix-blend-mode:normal!important;
   background:radial-gradient(ellipse 60% 18% at 26% 35%,rgba(224,46,176,.22),transparent 80%),
      radial-gradient(ellipse 65% 24% at 74% 64%,rgba(35,183,246,.22),transparent 80%)!important;
 }
 .rva-stage.rva-mobile-efficient .rva-smoke::before,
 .rva-stage.rva-mobile-efficient .rva-smoke::after,
 .rva-stage.rva-mobile-efficient .rva-smoke-wisp,
 .rva-stage.rva-mobile-efficient .rva-mist-light,
 .rva-stage.rva-mobile-efficient .rva-tv-mist-bloom,
 .rva-stage.rva-mobile-efficient .rva-tv-halo{display:none!important;animation:none!important;}
 .rva-stage.rva-mobile-efficient .rva-white-noise{animation:rvaNoise 430ms steps(3) infinite!important;opacity:.92!important;background-size:165px 165px!important;}
 .rva-stage.rva-mobile-efficient .rva-screen-bloom{
   mix-blend-mode:normal!important;
   opacity:calc(var(--rva-glow-opacity,.55) * .30)!important;
   box-shadow:none!important;
 }
 .rva-stage.rva-mobile-efficient .rva-screen-bloom::before,
 .rva-stage.rva-mobile-efficient .rva-screen-bloom::after{display:none!important;animation:none!important;}
 .rva-stage.rva-mobile-efficient .rva-video-poster,
 .rva-stage.rva-mobile-efficient .rva-player,
 .rva-stage.rva-mobile-efficient .rva-white-noise{filter:none!important;}
}

/* v0.1.18 — RESTORE the user's approved, complete 1024×1536 portrait image.
   The original scene is drawn ONCE and the playable glass is overlaid at the
   same pixel positions as the cut cabinet photos. This eliminates cut joins,
   duplicated small TVs, missing floor/background and extra mobile image loads.
   Desktop and custom uploaded backgrounds are intentionally untouched. */
@media (max-width:767px){
  .rva-stage .rva-room.rva-approved-portrait{
    display:block!important;
    position:relative!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:1024 / 1536!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    background-image:url('neon-wall-mobile.webp')!important;
    background-size:100% 100%!important;
    background-repeat:no-repeat!important;
    background-position:center top!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  .rva-stage .rva-room.rva-approved-portrait>.rva-tv.rva-portrait-screen,
  .rva-stage .rva-room.rva-approved-portrait>.rva-tv.rva-portrait-screen.rva-neon-mobile{
    display:block!important;
    position:absolute!important;
    left:var(--portrait-x)!important;
    top:var(--portrait-y)!important;
    width:var(--portrait-w)!important;
    height:var(--portrait-h)!important;
    aspect-ratio:auto!important;
    max-width:none!important;
    min-width:0!important;
    flex:none!important;
    margin:0!important;
    padding:0!important;
    order:initial!important;
    align-self:auto!important;
    background-image:none!important;
    background:none!important;
    box-shadow:none!important;
    filter:none!important;
  }
  /* The full approved photograph already contains all TV cabinets, fog,
     lighting and reflections. Only screen content belongs in the overlays. */
  .rva-stage .rva-room.rva-approved-portrait>.rva-tv.rva-portrait-screen .rva-tv-glass{
    position:absolute!important;
    left:var(--mob-x)!important;
    top:var(--mob-y)!important;
    width:var(--mob-w)!important;
    height:var(--mob-h)!important;
  }
  /* Respect deletion/hide flags without deleting parts of the photograph. */
  .rva-stage .rva-room.rva-approved-portrait>.rva-tv.rva-portrait-screen.rva-mobile-mask-deleted,
  .rva-stage .rva-room.rva-approved-portrait>.rva-tv.rva-portrait-screen.rva-removed-tv{
    display:none!important;
  }
  .rva-stage .rva-room.rva-approved-portrait .rva-play{
    width:clamp(28px,9vw,45px)!important;
    height:clamp(23px,7vw,34px)!important;
  }
  .rva-stage .rva-room.rva-approved-portrait .rva-play-triangle{
    border-top-width:8px!important;
    border-bottom-width:8px!important;
    border-left-width:13px!important;
  }
  /* Keep mobile low-power mode from v0.1.17: no GPU-hungry ambient layers. */
  .rva-stage.rva-mobile-efficient .rva-room.rva-approved-portrait>.rva-smoke{
    display:none!important;
  }
}

/* v0.1.21 — No permanent expand icons on the TV wall. The icon becomes
   available after the visitor starts a video and disappears when it stops. */
.rva-tv>.rva-tv-fullscreen[hidden]{display:none!important;}
/* v0.1.20 — Independent CRT fullscreen viewer; no settings or masks changed. */
.rva-tv>.rva-tv-fullscreen{
  position:absolute!important;z-index:30!important;top:7px!important;right:7px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;width:32px!important;height:32px!important;padding:0!important;
  border:1px solid rgba(74,229,255,.90)!important;border-radius:8px!important;
  background:rgba(3,9,24,.86)!important;color:#eaffff!important;
  cursor:pointer!important;opacity:.88!important;transform:none!important;
  box-shadow:0 0 12px rgba(16,212,255,.35)!important;
}
.rva-tv>.rva-tv-fullscreen:hover,.rva-tv>.rva-tv-fullscreen:focus-visible{
  opacity:1!important;background:#02304c!important;outline:2px solid #fff!important;outline-offset:2px!important;
}
.rva-tv>.rva-tv-fullscreen svg{display:block!important;pointer-events:none!important;}
@media(max-width:767px){
  .rva-tv>.rva-tv-fullscreen{
    top:calc(var(--mob-y,0%) + 3px)!important;
    right:calc(100% - var(--mob-x,0%) - var(--mob-w,100%) + 3px)!important;
    width:clamp(23px,6.5vw,30px)!important;height:clamp(23px,6.5vw,30px)!important;
    border-radius:6px!important;opacity:1!important;
  }
  .rva-tv>.rva-tv-fullscreen svg{width:15px!important;height:15px!important;}
}
html.rva-fullscreen-open,body.rva-fullscreen-open{overflow:hidden!important;}
.rva-fullscreen-overlay{
  position:fixed!important;inset:0!important;z-index:2147483646!important;
  width:100vw!important;height:100vh!important;height:100dvh!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  background:rgba(0,1,8,.985)!important;overflow:hidden!important;
  box-sizing:border-box!important;margin:0!important;padding:16px!important;
  isolation:isolate!important;color:#e6f8ff!important;
}
.rva-fullscreen-toolbar{
  position:absolute!important;z-index:2!important;
  top:max(12px,env(safe-area-inset-top))!important;
  right:max(12px,env(safe-area-inset-right))!important;
  left:max(12px,env(safe-area-inset-left))!important;
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  gap:12px!important;pointer-events:none!important;
}
.rva-fullscreen-title{font:bold 12px/1.4 system-ui,sans-serif!important;letter-spacing:.16em!important;color:#c3f5ff!important;}
.rva-fullscreen-close{
  pointer-events:auto!important;border:1px solid #21d5f4!important;border-radius:8px!important;
  color:white!important;background:rgba(8,19,39,.92)!important;
  display:flex!important;gap:8px!important;align-items:center!important;
  font:600 14px system-ui,sans-serif!important;padding:8px 12px!important;
  min-height:40px!important;cursor:pointer!important;
}
.rva-fullscreen-close span:first-child{font-size:23px!important;line-height:16px!important;}
.rva-fullscreen-close:focus-visible{outline:3px solid #ff5ed2!important;outline-offset:3px!important;}
.rva-fullscreen-content{
  position:relative!important;display:block!important;flex:none!important;
  width:min(96vw,150dvh)!important;aspect-ratio:16/9!important;
  max-width:100%!important;max-height:85dvh!important;
  background:#000!important;border:1px solid #1f4158!important;border-radius:4px!important;
  overflow:hidden!important;box-shadow:0 0 60px rgba(0,108,156,.27)!important;
}
.rva-fullscreen-content>.rva-player.rva-fullscreen-media{
  position:absolute!important;inset:0!important;top:0!important;left:0!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  transform:none!important;filter:none!important;object-fit:contain!important;
  border:0!important;border-radius:0!important;background:#000!important;
  display:block!important;z-index:1!important;
}
@media(max-width:767px){
  .rva-fullscreen-toolbar{top:max(16px,env(safe-area-inset-top))!important;}
  .rva-fullscreen-content{width:min(98vw,150dvh)!important;}
}

/* v0.1.22 — autoplay keeps screens clean; browser-policy fallback is neutral. */
.rva-stage .rva-play{background:rgba(4,13,27,.93)!important;border:1px solid rgba(95,233,255,.9)!important;
  box-shadow:0 0 12px rgba(0,201,252,.28),0 2px 12px rgba(0,0,0,.45)!important;border-radius:11px!important;}
.rva-stage .rva-play.rva-autoplay-retry{width:auto!important;min-width:100px!important;height:36px!important;padding:7px 12px!important;
  color:#e8fbff!important;font:600 12px/1.2 system-ui,sans-serif!important;letter-spacing:.03em!important;}

/* v0.1.24 — Autofill must not show fullscreen until a person taps the CRT.
   A transparent interaction target catches that tap for cross-origin iframe
   players. The hint is displayed only when iOS/provider autoplay is blocked. */
.rva-stage .rva-tv-glass>.rva-video-interact{
  position:absolute!important;inset:0!important;z-index:17!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
  width:100%!important;height:100%!important;margin:0!important;padding:0!important;
  cursor:pointer!important;appearance:none!important;
}
.rva-stage .rva-tv-glass>.rva-video-interact[hidden]{display:none!important;}
.rva-stage .rva-video-interact .rva-interact-hint{
  pointer-events:none!important;display:inline-block!important;
  font:600 12px/1.3 system-ui,sans-serif!important;color:#e9fbff!important;
  background:rgba(4,13,26,.90)!important;border:1px solid rgba(70,217,255,.85)!important;
  padding:8px 12px!important;border-radius:8px!important;
  text-shadow:0 1px 3px #000!important;box-shadow:0 2px 12px rgba(0,0,0,.5)!important;
}
.rva-stage .rva-video-interact .rva-interact-hint[hidden]{display:none!important;}
.rva-stage .rva-tv-glass>.rva-video-interact:focus-visible{outline:2px solid #85ebff!important;outline-offset:-4px!important;}

/* v0.1.25 — Standalone placement in PageLayer, Gutenberg and Widgets. */
.rva-stage.rva-widget-contained{width:100%!important;min-width:0!important;max-width:100%!important;flex:0 1 auto!important;position:relative!important;left:0!important;margin-left:0!important;}
.rva-stage>.rva-widget-intro .rva-widget-eyebrow{color:#f68adb;letter-spacing:.24em;font-size:clamp(10px,1vw,14px);font-weight:800;text-transform:uppercase;margin-bottom:10px;}
.rva-stage>.rva-widget-intro h2{margin:0 0 9px!important;font-size:clamp(27px,4vw,64px)!important;line-height:1.08!important;}
.rva-stage>.rva-widget-intro p{margin:0!important;color:#ace7ff!important;font-weight:600!important;font-size:clamp(12px,1.15vw,18px)!important;}
/* The shortcode anchor is layout-neutral; the archive appears immediately after it. */
.rva-shortcode-anchor{height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}

/* v0.1.27 native RetrINK Visual Builder widget: editor still image only.
   Live pages hide the preview and render the real CRT wall from the marker. */
.rva-pl-archive-holder{position:relative;min-width:0;max-width:100%;}
.rva-pl-archive-holder>.rva-pl-editor-preview{display:none!important;max-width:100%;overflow:hidden;border:2px solid #26cfff;border-radius:10px;background:#0d0921;color:#fff;text-align:center;}
.rva-pl-editor-preview img{display:block;width:100%;height:auto;max-height:360px;object-fit:cover;}
.rva-pl-editor-caption{padding:12px;background:#120b28;font:600 14px/1.5 system-ui,sans-serif;letter-spacing:.07em;}
.rva-pl-editor-caption strong{display:block;color:#82eaff;}
.rva-pl-editor-caption span{display:block;letter-spacing:normal;color:#e5dcf7;font:400 12px/1.5 system-ui,sans-serif;}
.rva-pl-archive-holder.rva-pl-editor-mode>.rva-pl-editor-preview{display:block!important;}

/* v0.1.29: exact-aspect editor preview matching the saved screen geometry.
   Preview is a still; no extra videos or animation are started in PageLayer. */
.rva-pl-editor-preview .rva-editor-previsual{width:100%;position:relative;background-color:#0c071c;background-position:center;background-size:100% 100%;background-repeat:no-repeat;overflow:hidden}
.rva-pl-editor-preview .rva-editor-previsual-desktop{aspect-ratio:1536 / 1024}
.rva-pl-editor-preview .rva-editor-previsual-mobile{display:none;aspect-ratio:1024 / 1536}
.rva-pl-editor-preview .rva-preview-mask{position:absolute;display:block;background-size:cover;background-position:center;pointer-events:none}
.rva-pl-editor-preview .rva-pl-editor-caption{border-top:1px solid #3e3165}
@media(max-width:767px){
 .rva-pl-editor-preview .rva-editor-previsual-desktop{display:none}
 .rva-pl-editor-preview .rva-editor-previsual-mobile{display:block}
}

/* v0.1.33: no separate full-scene front smoke layer. Foreground haze now
   lives inside each clipped screen via .rva-screen-bloom::before/::after. */


/* v0.1.54 — Approved CRT glass reflection on the original full wall.
   Only the glass viewport receives it: the parent retains its exact saved
   desktop/mobile clip path. The source image is the approved, edge-aligned
   artwork also used by Collections; the video/photo/static and frame do not
   change. This static paint layer performs well on mobile. */
.rva-stage .rva-tv-glass > .rva-wall-glass-shine{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  z-index:14!important;
  pointer-events:none!important;
  background:url('crt-glass-overlay-edge-aligned-v153.png') center center / 100% 100% no-repeat!important;
  opacity:.68!important;
  mix-blend-mode:screen!important;
  box-shadow:none!important;
  animation:none!important;
}
.rva-stage .rva-tv.rva-static-tv .rva-tv-glass > .rva-wall-glass-shine{opacity:.48!important;}
/* Interactive elements must stay above the decorative reflection. */
.rva-stage .rva-tv-glass > .rva-play{z-index:18!important;}
@media(max-width:767px){
  .rva-stage .rva-tv-glass > .rva-wall-glass-shine{opacity:.58!important;}
  .rva-stage .rva-tv.rva-static-tv .rva-tv-glass > .rva-wall-glass-shine{opacity:.38!important;}
}
