* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: #000;
  background-image: url('blackhole.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: monospace;
  overflow: hidden;
}

/* glass dock - eyebrow at bottom */
.dock {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}

.dock button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.dock button:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.dock svg { width: 22px; height: 22px; }
.dock img { width: 22px; height: 22px; display: block; }

/* simple window */
#window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, 92vw);
  max-height: 78vh;
  overflow: auto;
  padding: 18px;
  background: rgba(20,20,30,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  color: white;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}

#window.show { display: block; }
#window .head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; font-weight:600; }
#window .close { padding:4px 8px; border-radius:8px; border:1px solid rgba(255,255,255,0.2); background:rgba(255,255,255,0.12); color:white; cursor:pointer; }
.file-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.08); }
.file-row button { background:none; border:none; color:white; cursor:pointer; text-decoration:underline; font:inherit; }
#window canvas { width:100%; border-radius:10px; background:#f5f3ec; display:block; margin-top:10px; touch-action:none; }
#window .tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
#window .tools input[type="color"] { width:28px; height:28px; padding:0; border:none; border-radius:6px; }
#window .tools button { padding:6px 8px; border-radius:8px; border:1px solid rgba(255,255,255,0.18); background:rgba(255,255,255,0.12); color:white; cursor:pointer; }
.terminal { background:#04070d; border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding:10px; color:#7ce8ff; }
.terminal input { width:100%; background:transparent; border:none; outline:none; color:#7ce8ff; font:inherit; margin-top:8px; }
