/* ============================================================
   perangkat-kedua/style.css — Halaman perangkat kedua
   Proyek Koneksi Perangkat | JKA DiStore
   Terakhir diubah: 2026-09-14

   Tiga layar:
     1. .gerbang        — gerbang izin
     2. .layar-siluman  — hitam total (mode siluman)
     3. .layar-ditutup  — owner memutus akses
   ============================================================ */

:root {
  --latar: #000;
  --teks: #fff;
  --redup: rgba(255, 255, 255, 0.55);
  --emas: #d4af37;
  --champagne: #f7e7b4;
  --merah: #f87171;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--latar);
  color: var(--teks);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ============================================================
   1. GERBANG IZIN
   ============================================================ */

.gerbang {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(800px 420px at 90% 110%, rgba(109, 40, 217, 0.08), transparent 60%),
    #000;
}

.gerbang__ikon {
  color: var(--emas);
  margin-bottom: 16px;
  opacity: 0.9;
}

.gerbang__judul {
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.gerbang__teks {
  max-width: 340px;
  color: var(--redup);
  margin: 0 0 28px;
  line-height: 1.65;
  font-size: 15px;
}

.gerbang__tombol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 15px 42px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #17130a;
  background: linear-gradient(135deg, var(--champagne), var(--emas) 55%, #b8942a);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.gerbang__tombol:active { transform: scale(0.97); }
.gerbang__tombol:disabled { opacity: 0.65; cursor: wait; }

.gerbang__catatan {
  margin-top: 22px;
  max-width: 320px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.6;
}

.pesan-gagal {
  margin-top: 14px;
  max-width: 340px;
  font-size: 13.5px;
  color: #ff8aa0;
  background: rgba(254, 44, 85, 0.10);
  border: 1px solid rgba(254, 44, 85, 0.25);
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
}

.pesan-gagal.tampil { display: block; }

/* ============================================================
   2. LAYAR SILUMAN — hitam total
   ============================================================ */

.layar-siluman {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  overflow: hidden;
}

.layar-siluman video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: 0;
  top: 0;
}

/* ============================================================
   3. LAYAR DITUTUP
   ============================================================ */

.layar-ditutup {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.layar-ditutup__ikon {
  color: var(--emas);
  margin-bottom: 14px;
}

.layar-ditutup h1 {
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 700;
}

.layar-ditutup p {
  color: var(--redup);
  max-width: 320px;
  line-height: 1.6;
  font-size: 14.5px;
  margin: 0 0 24px;
}

.layar-ditutup__tombol {
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
  color: var(--champagne);
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.layar-ditutup__tombol:active {
  transform: scale(0.97);
  background: rgba(212, 175, 55, 0.15);
}