:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #07080d; overflow: hidden; font: 13px/1.4 'Segoe UI', system-ui, sans-serif; color: #e8ecf4; }

.escritorio { position: absolute; inset: 0 0 44px 0; overflow: hidden; --saturacion: 1; }

/* El «juego»: un paisaje de noche, solo para que las ventanas tengan algo
   detrás. Los colores vivos (ventana Color) lo saturan. */
.juego {
  position: absolute; inset: 0; filter: saturate(var(--saturacion));
  background:
    radial-gradient(ellipse 60% 40% at 72% 18%, rgba(255, 196, 120, .30), transparent 70%),
    radial-gradient(ellipse 50% 35% at 20% 70%, rgba(80, 160, 255, .22), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 80%, rgba(230, 51, 74, .20), transparent 70%),
    linear-gradient(180deg, #1b2a4a 0%, #2c3f63 38%, #3f3b56 55%, #1d2a2a 70%, #0e1614 100%);
}
.juego::before {   /* montañas */
  content: ''; position: absolute; left: 0; right: 0; bottom: 22%; height: 34%;
  background:
    linear-gradient(160deg, transparent 48%, #263449 49%, #1c2738 100%) 0 0 / 38% 100% no-repeat,
    linear-gradient(200deg, transparent 48%, #22304a 49%, #19233a 100%) 30% 0 / 34% 100% no-repeat,
    linear-gradient(155deg, transparent 52%, #2a3550 53%, #1a2235 100%) 62% 0 / 30% 100% no-repeat,
    linear-gradient(205deg, transparent 50%, #233049 51%, #161f30 100%) 100% 0 / 36% 100% no-repeat;
  opacity: .95;
}
.juego::after {    /* suelo */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(180deg, #1f3a2c, #0d1a12);
}

.ventana { position: absolute; left: 0; top: 0; will-change: transform; }
.ventana iframe { width: 100%; height: 100%; border: 0; background: transparent; display: block; color-scheme: normal; }
.ventana.capa { pointer-events: none; z-index: 5000; }
.ventana.sinRaton { pointer-events: none; }
.tapaArrastre { position: absolute; inset: 0; z-index: 99999; cursor: grabbing; }

.cerrado { position: absolute; left: 24px; top: 24px; z-index: 50; display: flex; gap: 10px; align-items: center;
  background: rgba(15, 18, 28, .92); border: 1px solid #2a3145; border-radius: 10px; padding: 10px 14px; }
.cerrado[hidden] { display: none; }
.cerrado button, .simular button {
  font: inherit; color: #e8ecf4; background: #1d2333; border: 1px solid #343c55; border-radius: 7px; padding: 5px 10px; cursor: pointer;
}
.cerrado button:hover, .simular button:hover { background: #2a3350; border-color: #4a5680; }

.simular { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; background: #0d1018; border-top: 1px solid #222838; overflow-x: auto; white-space: nowrap; }
.simular .titulo { color: #8a93ab; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }

/* Netflix / Crunchyroll: el cartel en el sitio del navegador encajado. */
.cineCartel { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; box-sizing: border-box; text-align: center; font: 13px/1.4 system-ui, sans-serif; color: #e5e7eb; background: radial-gradient(circle at 50% 35%, #2a0a0d, #07080c 75%); border-radius: 6px; pointer-events: none; }
.cineCartel b { font-size: 28px; letter-spacing: .5px; color: #e50914; }
.cineCartel[data-sitio="crunchyroll"] { background: radial-gradient(circle at 50% 35%, #3a1d08, #07080c 75%); }
.cineCartel[data-sitio="crunchyroll"] b { color: #f47521; }
.cineCartel span { max-width: 300px; color: #9ca3af; }
