:root {
  --wine-950: #17040e;
  --wine-800: #4c0e2d;
  --wine-500: #ad365f;
  --gold: #ffd27c;
  --cream: #fff0d2;
  --sky-a: #df689e;
  --sky-b: #553a91;
  --ambient: #c64f73;
  --ambient-strength: .3;
  --ambient-mode: soft-light;
  --scene-brightness: 1;
  --scene-saturation: 1;
  --scene-contrast: 1;
  --window-beam: .18;
  --pixel-border: 2px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--ambient) 22%, transparent), transparent 42%),
    linear-gradient(135deg, #08030a, var(--wine-950) 52%, #05030a);
  color: var(--cream);
  font-family: "Segoe UI", system-ui, sans-serif;
}

button, input { font: inherit; }

button,
input,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: none;
  user-select: none;
}

button,
input,
a,
button:focus,
input:focus,
a:focus,
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

button:active,
input:active,
a:active {
  outline: none !important;
  box-shadow: none !important;
}

.page-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  display: none;
}

.page-shell::before {
  left: 0;
  background: linear-gradient(90deg, #060208, color-mix(in srgb, var(--ambient) 10%, #160610));
}

.page-shell::after {
  right: 0;
  background: linear-gradient(-90deg, #060208, color-mix(in srgb, var(--ambient) 10%, #160610));
}

.scene {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #140610;
  user-select: none;
  touch-action: manipulation;
  transform-style: flat;
  display: grid;
  place-items: center;
}

.scene:not([data-ready="true"]),
.scene:not([data-ready="true"]) *,
.scene:not([data-ready="true"])::before,
.scene:not([data-ready="true"])::after,
.scene:not([data-ready="true"]) *::before,
.scene:not([data-ready="true"]) *::after {
  transition: none !important;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--ambient) 14%, transparent), transparent 65%),
    linear-gradient(180deg, rgba(5, 2, 8, .03), rgba(5, 2, 8, .14));
  z-index: 0;
  transition: background 1400ms ease;
}

.scene-backdrop {
  position: absolute;
  object-fit: cover;
  filter: blur(5px) brightness(.84) saturate(var(--scene-saturation));
  opacity: .9;
  pointer-events: none;
  transition: filter 1400ms ease, opacity 1400ms ease;
}

.scene-backdrop-wide {
  inset: -10%;
  width: 120%;
  height: 120%;
  object-position: center;
  transform: scale(1.02);
}

.scene-backdrop-strip {
  left: -3%;
  width: 106%;
  height: calc((100dvh - min(100dvh, 177.777vw)) / 2 + 32px);
  transform: scale(1.015);
  z-index: 2;
}

.scene-backdrop-top {
  top: -9px;
  object-position: center 18%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.scene-backdrop-bottom {
  bottom: -9px;
  object-position: center 83%;
  -webkit-mask-image: linear-gradient(to top, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to top, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.stage {
  position: relative;
  z-index: 1;
  width: min(100vw, 56.25dvh);
  height: min(100dvh, 177.777vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #140610;
  box-shadow: 0 0 44px rgba(3, 1, 4, .78), 0 0 80px color-mix(in srgb, var(--ambient) 24%, transparent);
  transform-style: flat;
}

.scene-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transform: scale(1);
  filter:
    brightness(var(--scene-brightness))
    saturate(var(--scene-saturation))
    contrast(var(--scene-contrast));
  transition: filter 1400ms ease;
}

.sky-layer {
  position: absolute;
  border-radius: 13% 13% 5% 5% / 7% 7% 3% 3%;
  background: linear-gradient(180deg, var(--sky-a), var(--sky-b));
  mix-blend-mode: color;
  opacity: .82;
  pointer-events: none;
  transition: background 1400ms ease, opacity 1400ms ease;
  transform: translateZ(4px);
  overflow: hidden;
}

.sky-star {
  position: absolute;
  width: var(--star-size, 2px);
  height: calc(var(--star-size, 2px) * 2.8);
  background: rgba(255, 246, 217, .82);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 226, 163, .48);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  animation: none;
  animation-delay: var(--delay, 0s);
  opacity: .52;
}

.sky-star:nth-child(3n) {
  animation: none;
}

.sky-star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280%;
  height: 36%;
  background: inherit;
  border-radius: inherit;
  transform: translate(-50%, -50%);
}

.celestial-layer {
  position: absolute;
  border-radius: 13% 13% 5% 5% / 7% 7% 3% 3%;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(5px);
}

.celestial-layer::after {
  content: "";
  position: absolute;
  width: 32%;
  aspect-ratio: 1;
  right: 7%;
  top: 7%;
  background: center / contain no-repeat url("assets/sky/sun-pixel.png");
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px rgba(255, 192, 90, .64));
  opacity: .94;
  transition: opacity 1200ms ease, filter 1200ms ease, transform 1200ms ease;
}

[data-time="hora-dorada"] .celestial-layer::after,
[data-time="atardecer"] .celestial-layer::after {
  top: 19%;
  right: 5%;
  filter: drop-shadow(0 0 10px rgba(255, 137, 75, .74));
  transform: scale(.92);
}

[data-time="hora-azul"] .celestial-layer::after,
[data-time="noche"] .celestial-layer::after {
  width: 29%;
  top: 8%;
  right: 8%;
  background-image: url("assets/sky/moon-pixel.png");
  filter: drop-shadow(0 0 9px rgba(190, 205, 255, .72));
  opacity: .96;
}

.ambient-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--ambient) 30%, transparent), transparent 45%),
    linear-gradient(180deg, color-mix(in srgb, var(--ambient) 18%, transparent), transparent 55%);
  mix-blend-mode: var(--ambient-mode);
  opacity: var(--ambient-strength);
  pointer-events: none;
  transition: opacity 1400ms ease, background 1400ms ease;
  transform: translateZ(7px);
}

.ambient-layer::before,
.ambient-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-layer::before {
  background:
    linear-gradient(151deg, color-mix(in srgb, var(--ambient) 56%, transparent) 2%, transparent 43%);
  opacity: var(--window-beam);
}

.ambient-layer::after {
  background:
    radial-gradient(ellipse at 54% 79%, color-mix(in srgb, var(--ambient) 42%, transparent), transparent 37%);
  opacity: .74;
}

.city-lights {
  position: absolute;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(255, 183, 107, .08) 78%, rgba(255, 208, 147, .18));
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 1200ms ease;
  border-radius: 13% 13% 5% 5% / 7% 7% 3% 3%;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 86%, transparent);
}

[data-time="hora-azul"] .city-lights { opacity: .35; }
[data-time="noche"] .city-lights { opacity: .58; animation: none; }

[data-time="manana"] .sky-star,
[data-time="mediodia"] .sky-star { display: none; }

.title-effect {
  position: absolute;
  left: 24%;
  top: 11.5%;
  width: 51%;
  height: 12%;
  pointer-events: none;
  transform: translateZ(12px);
}

.title-neon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: screen;
  opacity: .94;
  filter: drop-shadow(0 0 6px rgba(255, 46, 118, .54));
  animation: none;
}

.sprite-layer,
.social-label-layer,
.hotspot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateZ(18px);
}

.social-label-layer {
  z-index: 20;
}

.social-label {
  position: absolute;
  pointer-events: none;
  opacity: .76;
  filter: drop-shadow(0 1px 1px rgba(5, 1, 3, .72));
}

.social-label img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.floating-sparkle {
  position: absolute;
  width: clamp(7px, 2.2%, 18px);
  aspect-ratio: 1;
  opacity: .55;
  transform: scale(var(--scale, 1));
  animation: sparkleDrift var(--duration, 10s) ease-in-out infinite alternate,
             sparkleBreathe 4.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 0 5px rgba(255, 216, 151, .48));
}

.floating-sparkle::before,
.floating-sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff1c9;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.floating-sparkle::before { width: 22%; height: 100%; }
.floating-sparkle::after { width: 100%; height: 22%; }
.sparkle-tone-1 { filter: drop-shadow(0 0 6px rgba(255, 151, 202, .55)); }
.sparkle-tone-1::before,
.sparkle-tone-1::after { background: #ffd4ea; }
.sparkle-tone-2 { filter: drop-shadow(0 0 6px rgba(187, 207, 255, .54)); }
.sparkle-tone-2::before,
.sparkle-tone-2::after { background: #dce6ff; }

.scene-glow {
  position: absolute;
  border-radius: 999px;
  opacity: .12;
  background: radial-gradient(ellipse at center, rgba(255, 222, 171, .72), rgba(255, 152, 196, .18) 44%, transparent 72%);
  mix-blend-mode: screen;
  filter: blur(6px);
  animation: none;
}

.scene-glow-window {
  border-radius: 15%;
  opacity: .08;
  filter: blur(9px);
}

.scene-glow-title { opacity: .10; animation-delay: -2.2s; }
.scene-glow-vinyl {
  opacity: .1;
  border: 1px solid rgba(255, 221, 167, .18);
  filter: blur(1.5px);
  animation-delay: -4.1s;
}
.scene-glow-speaker {
  opacity: .07;
  background: radial-gradient(circle, rgba(255, 218, 158, .62), rgba(255, 132, 191, .13) 42%, transparent 70%);
  animation-delay: -3.2s;
}
.scene-glow-perfume { opacity: .07; animation-delay: -5.6s; }

[data-music="playing"] .scene-glow-vinyl {
  opacity: .22;
  animation-duration: 4.6s;
}

[data-music="playing"] .scene-glow-speaker {
  opacity: .16;
  animation-duration: 3.8s;
}

.hotspot,
.music-object {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  color: transparent;
  text-decoration: none;
}

.hotspot::after,
.music-object::after,
.hotspot::before,
.music-object::before {
  content: none !important;
  display: none !important;
}

/* El tocadiscos responde con luz integrada en la escena; nunca dibuja el
   rectángulo de su zona táctil invisible. */
.stage:has(.music-object.is-pressed) .scene-glow-vinyl {
  animation: musicObjectGlow 440ms ease-out 1;
}

/* Keyboard focus is a glow integrated into the object, never a browser rectangle. */
.hotspot:focus-visible,
.music-object:focus-visible {
  outline: none;
}

.music-object:focus,
.music-object:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.music-object {
  left: 45%;
  top: 67%;
  width: 43%;
  height: 16%;
}

.music-panel {
  position: absolute;
  z-index: 30;
  left: 23%;
  top: 62.1%;
  width: min(12%, 52px);
  aspect-ratio: 548 / 460;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  filter:
    brightness(var(--scene-brightness))
    saturate(var(--scene-saturation))
    contrast(var(--scene-contrast))
    drop-shadow(0 5px 6px rgba(4, 1, 3, .52));
}

.music-panel[hidden] { display: none; }

.music-panel-art,
.music-actions {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.music-panel-art {
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}

.music-actions {
  inset: -4px;
  width: auto;
  height: auto;
}

.music-actions button {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#play-toggle { left: 0; }

.music-actions button:focus,
.music-actions button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.music-actions button.is-pressed {
  animation: musicButtonPulse 440ms steps(5, end);
}

.music-error {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  width: 128px;
  margin: 0;
  transform: translateX(-50%);
  color: #ffe6af;
  font: 700 8px/1.25 "Courier New", monospace;
  letter-spacing: -.02em;
  text-align: center;
  text-shadow: 1px 1px 0 #4d1022, 0 2px 3px rgba(0,0,0,.9);
}

.music-error[hidden] { display: none; }

.ambient-sprite {
  position: absolute;
  display: block;
  height: auto;
  opacity: .34;
  pointer-events: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 3px rgba(255, 215, 144, .44));
  transform: translate(-50%, -50%);
  animation: none;
  animation-delay: var(--sprite-delay, 0s);
  will-change: auto;
}

.ambient-sprite-jewel,
.ambient-sprite-perfume { opacity: .46; }
.ambient-sprite-petal { opacity: .24; }
.ambient-sprite-title { opacity: .38; }
.ambient-sprite-speaker { opacity: .28; }
.ambient-sprite-music { opacity: .10; }

.ambient-sprite:first-of-type {
  animation: none;
}

[data-music="playing"] .ambient-sprite-music {
  opacity: .62;
  animation: none;
}

[data-music="playing"] .ambient-sprite-vinyl,
[data-music="playing"] .ambient-sprite-speaker {
  opacity: .56;
  animation: none;
}

.tap-jewel {
  position: fixed;
  z-index: 90;
  width: 13px;
  height: 13px;
  opacity: 0;
  pointer-events: none;
  image-rendering: pixelated;
  transform: translate(-50%, -50%) scale(.35);
  animation: tapJewelFlight 700ms ease-out var(--tap-delay, 0ms) forwards;
}
@keyframes musicButtonPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  45% { transform: scale(1.08); filter: brightness(1.28); box-shadow: none; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@keyframes titleNeonBreathe {
  0%, 100% { opacity: .86; filter: drop-shadow(0 0 5px rgba(255, 46, 118, .44)); }
  48% { opacity: 1; filter: drop-shadow(0 0 9px rgba(255, 73, 137, .68)); }
}

@keyframes skyStarPulse {
  0%, 100% { opacity: .22; transform: translate(-50%, -50%) scale(.72); }
  45% { opacity: .86; transform: translate(-50%, -50%) scale(1); }
}

@keyframes sparkleDrift {
  from { translate: -2px 6px; rotate: -5deg; }
  to { translate: 7px -10px; rotate: 7deg; }
}

@keyframes sparkleBreathe {
  0%, 100% { opacity: .24; scale: .78; }
  45% { opacity: .68; scale: 1; }
}

@keyframes glowBreathe {
  0%, 100% { transform: scale(.96); }
  50% { transform: scale(1.035); }
}

@keyframes luxurySpriteFloat {
  0% { transform: translate(-50%, -50%) translate3d(-2px, 4px, 0) scale(.82); opacity: .18; }
  48% { opacity: .56; }
  100% { transform: translate(-50%, -50%) translate3d(4px, -7px, 0) scale(1.04); opacity: .30; }
}

@keyframes tapJewelFlight {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  20% { opacity: .72; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tap-x)), calc(-50% + var(--tap-y))) scale(.72); }
}

@keyframes cityTwinkle { 50% { opacity: .38; filter: brightness(1.22); } }

@keyframes tapStar {
  0% { opacity: 0; transform: scale(.35) rotate(0deg); }
  22% { opacity: .95; transform: scale(1.15) rotate(45deg); }
  100% { opacity: 0; transform: scale(1.55) rotate(90deg); }
}

@media (max-aspect-ratio: 9 / 16) {
  .scene-backdrop-wide { display: none; }
  .stage { width: 100vw; height: 177.777vw; }
}

@media (min-aspect-ratio: 4 / 3) {
  .stage {
    /* Conserva completa la composición 16:9 aunque la barra del navegador
       vuelva la ventana más ancha. El centrado absoluto evita que el lienzo
       se pegue a un costado y el backdrop completa los laterales. */
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100vw, 177.777dvh);
    height: min(100dvh, 56.25vw);
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    box-shadow:
      0 0 0 1px rgba(255, 205, 139, .08),
      0 0 70px rgba(6, 1, 5, .72),
      0 0 130px color-mix(in srgb, var(--ambient) 16%, transparent);
  }

  .scene-backdrop-strip { display: none; }

  .scene-backdrop-wide {
    display: block;
    inset: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    object-position: center;
    filter: blur(14px) brightness(.48) saturate(.78);
    opacity: .82;
    transform: scale(1.035);
  }

  .music-panel {
    left: 47%;
    top: 57.4%;
    width: min(4.4%, 80px);
  }

  .floating-sparkle {
    width: 10px;
    height: 10px;
  }
}

@media (min-aspect-ratio: 9 / 16) {
  .scene-backdrop-strip { display: none; }
}

@media (max-width: 700px) {
  .scene,
  .stage {
    transform-style: flat;
  }

  .scene-glow {
    display: none;
  }

  .ambient-sprite {
    animation: none;
    will-change: auto;
    opacity: .30;
  }

  .ambient-sprite-jewel,
  .ambient-sprite-perfume { opacity: .42; }
  .ambient-sprite-petal { opacity: .20; }
  .ambient-sprite-title { opacity: .34; }
  .ambient-sprite-speaker { opacity: .24; }
  .ambient-sprite-music { opacity: .10; }

  [data-music="playing"] .ambient-sprite-music,
  [data-music="playing"] .ambient-sprite-vinyl,
  [data-music="playing"] .ambient-sprite-speaker {
    animation: none;
  }

  [data-time="noche"] .city-lights {
    animation: none;
  }

  .sky-star {
    animation: none;
    opacity: .52;
  }

  .sky-star:nth-child(3n) {
    animation: none;
  }

  .title-neon {
    animation: none;
  }

  .ambient-sprite:first-of-type {
    animation: luxurySpriteFloat 9s ease-in-out infinite alternate;
    filter: none;
    will-change: transform, opacity;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .floating-sparkle { display: none; }
  .ambient-sprite-music,
  .ambient-sprite-petal,
  .tap-jewel { display: none; }
  .ambient-sprite { animation: none; opacity: .26; }
  .scene-glow { animation: none; }
}

@keyframes musicObjectGlow {
  0%, 100% { opacity: .12; filter: brightness(1); transform: scale(1); }
  46% { opacity: .34; filter: brightness(1.34); transform: scale(1.045); }
}

@keyframes skyStarLite {
  0%, 100% { opacity: .34; }
  50% { opacity: .78; }
}

@keyframes titleNeonLite {
  0%, 100% { opacity: .88; }
  50% { opacity: 1; }
}

/* v0.7.2 — La atmósfera nace de la ventana, la habitación y los objetos. */
.scene-art { z-index: 1; pointer-events: none; }
.sky-layer { z-index: 2; }
.celestial-layer { z-index: 3; }
.ambient-layer { z-index: 5; }
.city-lights { z-index: 7; }
.title-effect { z-index: 16; }
.sprite-layer { z-index: 17; }
.social-label-layer { z-index: 22; }
.hotspot-layer { z-index: 24; }
.music-object { z-index: 25; }

.window-atmosphere {
  position: absolute;
  z-index: 4;
  overflow: hidden;
  border-radius: 13% 13% 5% 5% / 7% 7% 3% 3%;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translateZ(6px);
}

.window-cloud {
  position: absolute;
  display: block;
  height: auto;
  opacity: .22;
  image-rendering: pixelated;
  will-change: auto;
}

.window-cloud-a {
  top: 15%;
  left: -92%;
  width: 118%;
  animation: none;
}

.window-cloud-b {
  top: 51%;
  left: -74%;
  width: 86%;
  opacity: .13;
  transform: scaleX(-1);
  animation: none;
}

.window-shooting-star {
  position: absolute;
  top: 26%;
  left: -30%;
  width: 28%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(211, 224, 255, .35), rgba(255, 246, 219, .94));
  transform: rotate(-22deg);
  transform-origin: 100% 50%;
  filter: drop-shadow(0 0 2px rgba(190, 207, 255, .8));
  animation: monicaShootingStar 14s linear -6s infinite;
}

.window-shooting-star::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff3cc;
}

[data-time="amanecer"] .window-cloud,
[data-time="manana"] .window-cloud,
[data-time="mediodia"] .window-cloud { opacity: .28; }

[data-time="hora-dorada"] .window-cloud,
[data-time="atardecer"] .window-cloud { opacity: .19; }

[data-time="manana"] .window-shooting-star,
[data-time="mediodia"] .window-shooting-star,
[data-time="tarde"] .window-shooting-star,
[data-time="hora-dorada"] .window-shooting-star { display: none; }

.window-cast {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.window-prism {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  transform-origin: 18% 4%;
  will-change: auto;
}

.window-prism-a {
  left: 16%;
  top: 25%;
  width: 30%;
  opacity: calc(var(--window-beam) * .38);
  transform: rotate(-10deg) scaleX(1.08);
  animation: none;
}

.window-prism-b {
  left: 21%;
  top: 31%;
  width: 18%;
  opacity: calc(var(--window-beam) * .2);
  transform: rotate(-4deg) scaleX(.74);
  animation: none;
}

[data-time="hora-azul"] .window-prism,
[data-time="noche"] .window-prism {
  opacity: calc(var(--window-beam) * .22);
}

.room-atmosphere,
.social-aura-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.room-atmosphere { z-index: 18; }
.social-aura-layer { z-index: 19; }

.living-effect {
  position: absolute;
  display: block;
  height: auto;
  opacity: .28;
  pointer-events: none;
  image-rendering: pixelated;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  filter: none;
  animation: none;
  will-change: auto;
}

.living-effect-1,
.living-effect-4 {
  animation: monicaDustFloat var(--living-duration) ease-in-out var(--living-delay) infinite alternate;
  will-change: transform, opacity;
}

.living-effect-dust { opacity: .24; }
.living-effect-petal {
  opacity: .19;
}
.living-effect-4 { animation-name: monicaPetalSway; }
.living-effect-music,
.living-effect-speaker {
  opacity: .16;
}

[data-music="playing"] .living-effect-music,
[data-music="playing"] .living-effect-speaker {
  opacity: .58;
  animation: monicaMusicShimmer 6.4s ease-in-out var(--living-delay) infinite;
  will-change: transform, opacity;
}

.social-aura {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: .16;
  background: radial-gradient(circle, rgba(255, 236, 187, .36) 0 14%, rgba(255, 101, 169, .13) 34%, transparent 68%);
  mix-blend-mode: screen;
  transform: scale(.9);
  animation: none;
  will-change: auto;
}

.social-aura-telegram { background: radial-gradient(circle, rgba(117, 216, 255, .44), rgba(44, 155, 255, .13) 38%, transparent 70%); }
.social-aura-facebook { background: radial-gradient(circle, rgba(115, 177, 255, .44), rgba(46, 105, 255, .13) 38%, transparent 70%); }
.social-aura-instagram { background: radial-gradient(circle, rgba(255, 208, 122, .36), rgba(255, 49, 167, .16) 38%, transparent 70%); }
.social-aura-tiktok { background: radial-gradient(circle, rgba(124, 255, 240, .32), rgba(255, 72, 128, .14) 39%, transparent 70%); }
.social-aura-onlyfans { background: radial-gradient(circle, rgba(105, 219, 255, .34), rgba(57, 130, 255, .12) 39%, transparent 70%); }

[data-social="telegram"] .social-aura-telegram,
[data-social="facebook"] .social-aura-facebook,
[data-social="instagram"] .social-aura-instagram,
[data-social="tiktok"] .social-aura-tiktok,
[data-social="onlyfans"] .social-aura-onlyfans {
  animation: monicaAuraReact .72s ease-in-out infinite alternate;
}

[data-layout="desktop"] .window-prism-a {
  left: 28%;
  top: 21%;
  width: 16%;
  transform: rotate(-23deg) scaleX(1.1);
}

[data-layout="desktop"] .window-prism-b {
  left: 32%;
  top: 28%;
  width: 10%;
  transform: rotate(-17deg) scaleX(.8);
}

@keyframes monicaCloudPass {
  0% { transform: translate3d(0, 2px, 0) scale(.96); opacity: .05; }
  14%, 82% { opacity: .24; }
  100% { transform: translate3d(176%, -5px, 0) scale(1.04); opacity: .04; }
}

@keyframes monicaCloudPassSmall {
  0% { transform: translate3d(0, 0, 0) scaleX(-1) scale(.9); opacity: .03; }
  18%, 80% { opacity: .14; }
  100% { transform: translate3d(218%, 4px, 0) scaleX(-1) scale(1.04); opacity: .03; }
}

@keyframes monicaShootingStar {
  0%, 64% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-22deg); }
  66% { opacity: .88; }
  72% { opacity: 0; transform: translate3d(430%, 118%, 0) rotate(-22deg); }
  100% { opacity: 0; }
}

@keyframes monicaPrismBreathe {
  from { transform: rotate(-10deg) scaleX(1.02) translate3d(-1px, 0, 0); }
  to { transform: rotate(-8deg) scaleX(1.13) translate3d(2px, 3px, 0); }
}

@keyframes monicaPrismBreatheSoft {
  from { transform: rotate(-5deg) scaleX(.7); }
  to { transform: rotate(-2deg) scaleX(.82) translate3d(3px, 2px, 0); }
}

@keyframes monicaDustFloat {
  0% { transform: translate(-50%, -50%) translate3d(-3px, 5px, 0) scale(.88); opacity: .12; }
  45% { opacity: .34; }
  100% { transform: translate(-50%, -50%) translate3d(5px, -8px, 0) scale(1.04); opacity: .22; }
}

@keyframes monicaPetalSway {
  0% { transform: translate(-50%, -50%) translate3d(-4px, 3px, 0) rotate(-7deg) scale(.86); opacity: .08; }
  52% { opacity: .24; }
  100% { transform: translate(-50%, -50%) translate3d(7px, -9px, 0) rotate(8deg) scale(1); opacity: .15; }
}

@keyframes monicaMusicShimmer {
  0%, 100% { transform: translate(-50%, -50%) translate3d(-2px, 2px, 0) scale(.82); opacity: .12; }
  50% { transform: translate(-50%, -50%) translate3d(3px, -5px, 0) scale(1.04); opacity: .36; }
}

@keyframes monicaAuraBreathe {
  from { transform: scale(.88); opacity: .1; }
  to { transform: scale(1.04); opacity: .22; }
}

@keyframes monicaAuraReact {
  from { transform: scale(1.02); opacity: .56; }
  to { transform: scale(1.16); opacity: .8; }
}

@media (max-width: 340px) {
  .living-effect-2,
  .living-effect-5,
  .window-prism-b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .window-cloud-b,
  .window-shooting-star,
  .window-prism-b,
  .living-effect-2,
  .living-effect-5 { display: none; }

  .window-cloud,
  .window-prism,
  .living-effect,
  .social-aura {
    animation: none !important;
    will-change: auto;
  }
}
