/* Glue between the Project New Shoes desktop and the existing real-game harness. */

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  display: block;
  min-height: 100vh;
  color: #1d3542;
  background: #173b52;
}

/* The default XP desktop gets a project-owned 4K pastoral battlefield. Keep
   the desert artwork inside the launcher windows, where it supports the game
   cards without making the desktop itself feel like a stretched thumbnail. */
.desktop[data-wallpaper="command"] .wallpaper-art {
  background: #4f9bc8 url("./assets/zeroh-bliss-at-war-4k.webp") center center / cover no-repeat;
}

.wallpaper-swatch.command {
  background: #4f9bc8 url("./assets/zeroh-bliss-at-war-swatch.webp") center center / cover no-repeat;
}

/* Keep the original persisted wallpaper keys, but give every choice a real
   XP-classic-at-war image instead of recoloring the synthetic hill shapes. */
.desktop[data-wallpaper="meadow"] .wallpaper-art {
  background: #a96428 url("./assets/zeroh-autumn-offensive-1440p.webp") center center / cover no-repeat;
  filter: none;
}

.desktop[data-wallpaper="slate"] .wallpaper-art {
  background: #35aaca url("./assets/zeroh-azul-armada-1440p.webp") center center / cover no-repeat;
  filter: none;
}

.desktop[data-wallpaper="dusk"] .wallpaper-art {
  background: #53241f url("./assets/zeroh-red-moon-front-1440p.webp") center center / cover no-repeat;
  filter: none;
}

.wallpaper-swatch.meadow {
  background: #a96428 url("./assets/zeroh-autumn-offensive-swatch.webp") center center / cover no-repeat;
}

.wallpaper-swatch.slate {
  background: #35aaca url("./assets/zeroh-azul-armada-swatch.webp") center center / cover no-repeat;
}

.wallpaper-swatch.dusk {
  background: #53241f url("./assets/zeroh-red-moon-front-swatch.webp") center center / cover no-repeat;
}

.desktop[data-wallpaper="meadow"] .sun-glow,
.desktop[data-wallpaper="meadow"] .ridge,
.desktop[data-wallpaper="meadow"] .terrain-grid,
.desktop[data-wallpaper="slate"] .sun-glow,
.desktop[data-wallpaper="slate"] .ridge,
.desktop[data-wallpaper="slate"] .terrain-grid,
.desktop[data-wallpaper="dusk"] .sun-glow,
.desktop[data-wallpaper="dusk"] .ridge,
.desktop[data-wallpaper="dusk"] .terrain-grid {
  display: none;
}

#overlay.boot-sentinel,
#progress.boot-sentinel {
  display: none;
}

.launch-overlay .playShell {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  pointer-events: none;
  background: transparent;
}

.launch-overlay.is-running .playShell {
  pointer-events: auto;
  background: #000;
}

.launch-overlay .launch-loader {
  z-index: 4;
}

.launch-overlay.is-running .runtime-grid,
.launch-overlay.is-running::before {
  display: none;
}

.launch-overlay #viewport[hidden] {
  display: none;
}

.launch-overlay #performanceOverlay {
  position: absolute;
}

#consolePanel {
  z-index: 22010;
}

#issueModal {
  z-index: 22020;
}

.scan-panel .error {
  color: #a83d2b;
}

.launch-button:disabled,
.row-launch:disabled,
.storage-choice.is-disabled {
  cursor: not-allowed;
  filter: grayscale(.7);
  opacity: .68;
}
