/* The console picture for both variants: the live stage render, its game screen and the R36H glass, copied from
   variants/final/product-stage.css (fee3c25) with .pv- names. Needs /final/home-lower.css for .pp-screen and the
   power-on animation, and html.js (set in <head>). Size and place .pv-console in the variant's own CSS; never scale the
   picture unevenly (width only, height auto). */
.pv-console { position: relative; }
.pv-console__img { display: block; width: 100%; height: auto; transition: opacity .28s ease; }
/* optional: the render's own studio fades into the page on all four sides (as on the live page) */
.pv-console--fade .pv-console__img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(transparent, #000 16%, #000 84%, transparent);
          mask-composite: intersect; }
.pv-console.is-swapping .pv-console__img, .pv-console.is-swapping .pv-console__screen { opacity: 0; }
.pv-console__screen { transition: opacity .2s ease; }
.pv-console[data-integrated] .pv-console__screen { display: none; }
.pv-console__screen[data-original-screen]::after,
.pv-console__screen[data-original-screen] .pp-screen__in::after { content: none; }
.pv-console__screen[data-original-screen] .pp-screen__game { image-rendering: pixelated; }
/* R36H: the game fills the display to the bezel under a thin layer of glass (20 Oct) */
.pv-console--r36h .pv-console__screen { border-radius: .3% / .4%; }
.js .pv-console--r36h .pv-console__screen:not(.is-booted) { background: transparent; }
.pv-console--r36h .pv-console__screen .pp-screen__in { inset: -1px; }
.pv-console--r36h .pv-console__screen .pp-screen__game { object-fit: cover; }
.pv-console--r36h .pv-console__screen .pp-screen__in::after { content: none; }
.pv-console--r36h .pv-console__screen::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .4), inset 1px 0 0 rgba(0, 0, 0, .4), inset -1px 0 0 rgba(0, 0, 0, .4), inset 0 .35cqh 1.4cqw rgba(0, 0, 0, .34), inset 0 0 2.2cqw rgba(0, 0, 0, .18); }
.pv-console--r36h .pv-console__screen::after { z-index: 3; border-radius: inherit;
  background: url(/final/art/product-stage/screen-glass.webp) center / 100% 100% no-repeat; mix-blend-mode: screen; opacity: .55; }
.js .pv-console--r36h .pv-console__screen:not(.is-booted)::before,
.js .pv-console--r36h .pv-console__screen:not(.is-booted)::after { opacity: 0; }
/* R36S: until the game switches on, the box stays see-through, so the render's own glossy glass shows (21 Oct) */
.js .pv-console--r36s .pv-console__screen:not(.is-booted) { background: transparent; }
.js .pv-console--r36s .pv-console__screen:not(.is-booted)::after { opacity: 0; }
/* R36H power light, right of START: pale while off, flashes green as the game switches on, then stays lit (owner, 22 Oct).
   Sits on every colour's render (the white render's own green light is covered while off; purple has none drawn). */
.pv-console__led { display: none; }
.pv-console--r36h .pv-console__led { --lx: 78.6%; --ly: 29.35%; display: block; position: absolute; z-index: 4; left: var(--lx); top: var(--ly); width: .8%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, #fbfbfb, #cfd0d3 72%); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .35); transition: background-color .2s ease, filter .2s ease; }
.pv-console--r36h[data-colour="purple"] .pv-console__led { --lx: 79.1%; --ly: 26.4%; }
.pv-console--r36h[data-colour="black"] .pv-console__led { --lx: 78.66%; --ly: 29.33%; }
.pv-console--r36h[data-colour="white"] .pv-console__led { --lx: 78.9%; --ly: 29.5%; }
.pv-console__screen.is-booted ~ .pv-console__led {
  background: radial-gradient(circle at 40% 35%, #d9ffcf, #39d651 52%, #138f2a); filter: drop-shadow(0 0 2px rgba(70, 255, 100, .85)); }
/* the light comes on once the game picture has fully appeared (the screen's pp-power runs .95s; owner, 22 Oct);
   until then the first frame keeps it pale */
.pv-console__screen.is-booting ~ .pv-console__led { animation: pv-led .95s ease-out 1s both; }
.pv-console.is-swapping .pv-console__led { background: radial-gradient(circle at 40% 35%, #fbfbfb, #cfd0d3 72%); filter: none; }
@keyframes pv-led {
  0% { filter: grayscale(1) brightness(1.75); }
  12% { filter: brightness(2.2) drop-shadow(0 0 6px rgba(70, 255, 100, 1)); }
  26% { filter: brightness(.7); }
  40% { filter: brightness(1.8) drop-shadow(0 0 5px rgba(70, 255, 100, .95)); }
  100% { filter: drop-shadow(0 0 2px rgba(70, 255, 100, .85)); }
}
@media (prefers-reduced-motion: reduce) {
  .pv-console__img, .pv-console__screen, .pv-console__led { transition: none; }
  .pv-console__screen.is-booting ~ .pv-console__led { animation: none; }
}
