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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #008080; /* teal Win95 mentre carrega */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

canvas#stage {
  position: fixed;
  inset: 0;
  display: block;
  image-rendering: pixelated;
}

/* ---- Diàleg boot estil Windows 95 ---- */
#boot {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.w95-window {
  width: min(340px, 88vw);
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
  font-family: "Tahoma", "MS Sans Serif", "Segoe UI", sans-serif;
  font-size: 12px;
  color: #000;
}

.w95-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
  padding: 3px 6px;
  letter-spacing: .2px;
}

.w95-titlebar.error { background: linear-gradient(90deg, #800000, #d04010); }

.w95-x {
  width: 16px; height: 14px;
  background: #c0c0c0;
  color: #000;
  font-weight: bold;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
}

.w95-body { padding: 14px 16px 12px; }
.w95-body p { margin-bottom: 10px; line-height: 1.45; }
.w95-body .small { font-size: 10px; color: #333; }

.w95-buttons { text-align: center; padding-top: 4px; }

.w95-btn {
  min-width: 90px;
  padding: 4px 16px;
  background: #c0c0c0;
  font-family: inherit;
  font-size: 12px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  outline: 1px solid #000;
  cursor: pointer;
}
.w95-btn:active {
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Barra de progrés Win95 (marquee de blocs) */
.w95-progress {
  margin: 4px 0 6px;
  height: 18px;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.w95-progress-blocks {
  position: absolute;
  top: 2px; bottom: 2px;
  width: 60px;
  background: repeating-linear-gradient(90deg,
    #000080 0px, #000080 12px, transparent 12px, transparent 15px);
  animation: w95marquee 1.2s linear infinite;
}
@keyframes w95marquee {
  from { left: -60px; }
  to   { left: 100%; }
}

.hidden { display: none !important; }
