html, body { margin: 0; height: 100%; background: #000; color: #fff; font: 14px system-ui, sans-serif; overflow: hidden; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }
#stage { position: fixed; inset: 0; }
#stage video, #stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
#det { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* kompas gaya PUBG */
#compassWrap { position: fixed; top: 6px; left: 50%; transform: translateX(-50%); width: min(560px, 70vw); text-align: center; pointer-events: none; }
#compass { width: 100%; height: 34px; display: block; }
#hdgBox { display: inline-block; margin-top: 2px; padding: 1px 8px; border: 1px solid rgba(255,255,255,.85); font: 600 14px ui-monospace, monospace;
  text-shadow: 0 0 3px #000; background: rgba(0,0,0,.25); }
#homeInfo { font-size: 12px; color: #ffd54f; text-shadow: 0 0 3px #000; margin-top: 2px; }

#status { position: fixed; top: 8px; left: 8px; max-width: 30vw; font: 12px ui-monospace, monospace; white-space: pre-wrap;
  text-shadow: 0 0 3px #000; background: rgba(0,0,0,.35); padding: 4px 6px; border-radius: 4px; }
#batPanel { position: fixed; top: 8px; right: 8px; font: 12px ui-monospace, monospace; background: rgba(0,0,0,.45); padding: 6px 8px; border-radius: 6px; text-align: right; }
#batPanel .warn { color: #ffb300; } #batPanel .bad { color: #ff5252; font-weight: 700; }
#recInd { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); color: #ff4444; font-weight: 700; text-shadow: 0 0 4px #000; }
#detInfo { position: fixed; top: 110px; left: 50%; transform: translateX(-50%); font-size: 13px; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 4px; }

/* minimap gaya PUBG */
#mapBox { position: fixed; right: 12px; bottom: 64px; width: 210px; height: 210px; border: 2px solid rgba(255,255,255,.55);
  border-radius: 6px; overflow: hidden; box-shadow: 0 0 10px rgba(0,0,0,.6); background: #1c2620; transition: all .2s; }
#mapBox.big { width: min(90vw, 900px); height: 72vh; right: 50%; transform: translateX(50%); bottom: 64px; }
#map { position: absolute; inset: 0; background-color: #1c2620;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 40px 40px; }
#mapTools { position: absolute; top: 4px; right: 4px; z-index: 1000; display: flex; gap: 3px; }
#mapTools button { width: 26px; height: 26px; padding: 0; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.55); color: #fff; border-radius: 4px; }
#mapTools button.on { background: rgba(255,213,79,.8); color: #000; }
#noGps { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 11px; z-index: 1000; text-shadow: 0 0 3px #000; }
.leaflet-container { background: transparent; font: 11px system-ui; }
.rover-arrow { width: 26px; height: 26px; }
.rover-arrow svg { width: 26px; height: 26px; filter: drop-shadow(0 0 2px #000); }
.leaflet-control-attribution { font-size: 9px; opacity: .7; }

#dock { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  max-width: 96vw; }
#dock button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; background: rgba(0,0,0,.6); color: #fff; }
#dock button.on { background: #ffd54f; color: #000; border-color: #ffd54f; }
#dock button.rec { background: #e53935; border-color: #e53935; }

#toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); background: rgba(0,0,0,.8); padding: 6px 12px; border-radius: 6px;
  opacity: 0; transition: opacity .3s; pointer-events: none; max-width: 80vw; text-align: center; }
#toast.show { opacity: 1; }

#panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); overflow-y: auto; background: rgba(18,18,18,.97);
  padding: 14px 16px; box-sizing: border-box; z-index: 2000; }
#panel h3, #panel h4 { margin: 8px 0; }
#panel label { display: block; margin: 8px 0; font-size: 13px; }
#panel input:not([type=checkbox]), #panel select, #panel textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px;
  padding: 6px; background: #222; color: #fff; border: 1px solid #444; border-radius: 4px; font: 13px ui-monospace, monospace; }
#panel .sw { display: flex; gap: 8px; align-items: center; }
#panel .row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
#panel button { padding: 7px 12px; border-radius: 4px; border: 1px solid #555; background: #333; color: #fff; }
button.primary { background: #1e88e5 !important; border-color: #1e88e5 !important; color: #fff; }
.note { font-size: 12px; color: #aaa; }

#gate { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 3000; }
#gate .card { background: #1b1b1b; padding: 20px; border-radius: 10px; width: min(360px, 90vw); }
#gate input { width: 100%; box-sizing: border-box; padding: 8px; margin: 8px 0 12px; font-size: 16px; background: #222; color: #fff; border: 1px solid #444; border-radius: 4px; }
#gate button { width: 100%; padding: 10px; border: 0; border-radius: 6px; }
