/*
 * Windowed C64 viewport correction.
 *
 * EmulatorJS uses a 2:1 canvas with the VICE 4:3 frame centered inside it.
 * This rule enlarges and clips only the painted canvas in windowed layouts.
 * It never changes canvas width/height attributes or EmulatorJS state.
 */
#emulator-player.ejs_parent:not(:fullscreen) {
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  overflow: hidden !important;
  position: relative !important;
}

#emulator-player.ejs_parent:not(:fullscreen) canvas.ejs_canvas {
  position: absolute !important;
  inset: 0 auto auto 50% !important;
  transform: translateX(-50%) scale(1.5) !important;
  transform-origin: top center !important;
}
