/* ===== Gimik Korporasi — gaya global ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #070b1e;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #eaf2ff;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

#stage {
  position: fixed;
  inset: 0;
  display: block;
}

/* lapisan gambar modul (node PNG/GIF, penanda) — di atas canvas, tembus sentuhan */
#moduleOverlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}
#moduleOverlay img { position: absolute; transform: translate(-50%, -50%); }

/* Video final */
#finalVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: none;
  z-index: 40;
}

/* Watermark mode demo */
#demoWatermark {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  display: none;
  overflow: hidden;
}
#demoWatermark .wm-line {
  position: absolute;
  left: -20%;
  width: 140%;
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.14);
  transform: rotate(-24deg);
  white-space: nowrap;
}

#devBadge {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 91;
  background: rgba(255, 165, 0, 0.85);
  color: #201200;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: none;
  pointer-events: none;
}

#licenseInfo {
  position: fixed;
  left: 12px;
  bottom: 10px;
  z-index: 91;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* Overlay pemberitahuan demo (pengganti video) */
#demoNotice {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at 50% 40%, #14204d, #070b1e 75%);
  text-align: center;
  padding: 24px;
}
#demoNotice h1 { font-size: 44px; letter-spacing: 3px; }
#demoNotice p { font-size: 18px; color: #9fb3e8; max-width: 620px; line-height: 1.6; }

/* Gerbang aktivasi serial (paket klien) */
#serialGate {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: radial-gradient(circle at 50% 40%, #14204d, #070b1e 75%);
  text-align: center;
  padding: 24px;
}
#serialGate h1 { font-size: 34px; letter-spacing: 2px; }
#serialGate p { color: #9fb3e8; font-size: 16px; }
#serialGate input {
  font-size: 28px;
  letter-spacing: 6px;
  text-align: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 2px solid #2c3870;
  background: #0a0f2c;
  color: #eaf2ff;
  width: 340px;
  max-width: 90vw;
}
#serialGate button {
  font-size: 18px;
  font-weight: 800;
  padding: 12px 38px;
  border: none;
  border-radius: 10px;
  background: #00b8d9;
  color: #012;
  cursor: pointer;
}
#serialGate #serialMsg { min-height: 22px; color: #ffb46e; }
