@font-face {
  font-family: 'NeulisCursive';
  src: url('fonts/neulis-cursive-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'NeulisCursive', sans-serif;
  background-color: #000;
}

/* SPLASH SCREEN */
#splash-screen {
  position: absolute;
  inset: 0;
  z-index: 999;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-left {
  position: absolute;
  left: 0;
  top: 0;
  height: 100vh;
  width: auto;
  object-fit: cover;
  z-index: 1;
}

.logo-top-left {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 48px;
  width: auto;
  z-index: 2;
}

.center-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.jabot-img {
  max-width: 260px;
  height: auto;
}

.btn-pill {
  font-family: 'NeulisCursive', sans-serif;
  background-color: #6b21a8; /* Purple */
  color: #ffffff;
  border: none;
  padding: 14px 40px;
  font-size: 1.2rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.4);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-pill:active {
  transform: scale(0.95);
  background-color: #581c87;
}

#camerafeed {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
#preloader-text {
  color: #fff;
  font-size: 1rem;
}
#preloader-bar-bg {
  width: 60%;
  max-width: 320px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}
#preloader-bar {
  width: 0%;
  height: 100%;
  background: #a855f7;
  border-radius: 3px;
  transition: width 0.15s ease;
}

/* Paksa Container & Tombol Melayang Eruda Selalu di Atas Layer AR */
#eruda, 
.eruda-container, 
.eruda-entry-btn {
  z-index: 999999 !important;
  position: fixed !important;
}