/* ============================================================
   desktop.css — wallpaper, desktop icons, rubber-band select
   ============================================================ */

#desktop {
  position: fixed;
  inset: 0;
  bottom: var(--taskbar-h);
  overflow: hidden;
  z-index: var(--z-desktop);
  /* Authentic "Bliss" wallpaper (vendored). Gradient shows while it loads. */
  background:
    linear-gradient(#3a7bd5 0%, #4a90e2 40%, #86b84a 100%);
  background-image:
    url("../assets/wallpaper.jpg"),
    linear-gradient(#3a7bd5 0%, #4a90e2 40%, #86b84a 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* ---- desktop icon grid ---- */
#icons {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px;
  height: calc(100% - 16px);
  z-index: 1;
}

.desk-icon {
  width: 74px;
  padding: 4px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 1px dotted transparent;
  cursor: default;
}
.desk-icon .ico { width: 32px; height: 32px; filter: drop-shadow(1px 1px 1px rgba(0,0,0,.35)); }
.desk-icon .name {
  color: #fff;
  text-align: center;
  font-size: 11px;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  max-width: 72px;
  word-wrap: break-word;
  padding: 1px 2px;
}
.desk-icon.selected .ico { filter: drop-shadow(1px 1px 1px rgba(0,0,0,.35)); background: rgba(11,63,153,.45); border-radius: 2px; }
.desk-icon.selected .name { background: #0b3f99; border-radius: 1px; }

/* rubber-band selection */
#selection-box {
  position: absolute;
  border: 1px solid #fff;
  background: rgba(49,106,197,.35);
  z-index: 50;
  display: none;
  pointer-events: none;
}
