/* LEONIDA — Vice Run · pastel-neon coastal vibe */
* { box-sizing: border-box; margin: 0; padding: 0;} 
html, body { height: 100%;} 
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #131313;
  color: #f2f2f2;
  overflow: hidden;}

#app { display: flex; height: 100vh; height: 100dvh;} 

/* ---------- Stage ---------- */
#stage { position: relative; flex: 1 1 auto; min-width: 0; background: #262626;} 
#game { display: block; width: 100%; height: 100%; touch-action: none;} 

#hud {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 92px 8px 12px; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 9, 9, .75), rgba(9, 9, 9, 0));}

#game-title {
  font-size: 19px; font-weight: 900; letter-spacing: 2px;
  color: #d3d3d3; text-shadow: 0 0 12px rgba(132, 132, 132, .8), 0 2px 0 #848484;}

#game-title span { color: #d9d9d9; font-size: 12px; letter-spacing: 1px; text-shadow: 0 0 8px rgba(217, 217, 217, .7);} 
#identity { font-size: 11.5px; opacity: .92; margin-top: 2px;}
.hud-left { display: flex; flex-direction: column; align-items: flex-start; }
.hud-left .hud-stat { display: inline-block; margin-top: 4px; }
.hud-left .hud-xpbar { margin: 3px auto 1px 2px; } 
.hud-right { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end;} 
.hud-stat {
  background: rgba(18, 18, 18, .72); border: 1px solid rgba(217, 217, 217, .35);
  border-radius: 999px; padding: 3px 9px; font-size: 11.5px;}


#objective {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
  background: rgba(18, 18, 18, .85); border: 1px solid #848484;
  border-radius: 12px; padding: 8px 16px; text-align: center;
  min-width: 260px; max-width: 92%; pointer-events: none;
  box-shadow: 0 0 18px rgba(132, 132, 132, .35);}

#objective.hidden, #toast.hidden { display: none;} 
#objective-text { font-weight: 700; font-size: 15px;}
#objective-arrow { display: inline-block; width: 54px; height: 54px; line-height: 50px;
  font-size: 31px; color: #ffd23f; text-align: center;
  background: rgba(0, 0, 0, .55); border: 2px solid #ffd23f; border-radius: 50%;
  text-shadow: 0 0 8px rgba(255, 210, 63, .9), 0 1px 2px rgba(0, 0, 0, .85);
  margin-bottom: 3px; animation: objArrowPulse 1.15s ease-in-out infinite;}
@keyframes objArrowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 210, 63, .45);}
  50% { box-shadow: 0 0 22px rgba(255, 210, 63, .95);} }
#objective-meta { font-size: 12.5px; opacity: .9; margin-top: 2px;} 
#timerbar-wrap { height: 6px; background: rgba(255, 255, 255, .15); border-radius: 3px; margin-top: 6px; overflow: hidden;} 
#timerbar { height: 100%; width: 100%; background: linear-gradient(90deg, #d9d9d9, #848484); transition: width .2s linear;} 

#toast {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(18, 18, 18, .92); border: 2px solid #d3d3d3; color: #d3d3d3;
  font-size: 21px; font-weight: 800; padding: 14px 26px; border-radius: 14px;
  text-align: center; pointer-events: none; z-index: 5;
  box-shadow: 0 0 30px rgba(211, 211, 211, .4); max-width: 90%;}


#minimap {
  position: absolute; right: 12px; bottom: 12px;
  width: 132px; height: 132px; border-radius: 10px;
  border: 2px solid rgba(217, 217, 217, .5); background: rgba(19, 19, 19, .8);}


/* ---------- Kontrol gerak: SERET SENTUH (rombak 20 Nov 2026) ---------- */
/* Joystick virtual (basis + knob) DIHAPUS total atas perintah Danny:
   penggerak kini seret polos di canvas tanpa elemen visual apa pun. */
#joy-hint {
  position: absolute; left: 50%; bottom: 168px; transform: translateX(-50%);
  background: rgba(18, 18, 18, .8); color: #d9d9d9; border: 1px solid rgba(217, 217, 217, .4);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700;
  display: none; z-index: 8; pointer-events: none; white-space: nowrap;}

body.ctl-touch #joy-hint { display: block;} 
#joy-hint.used { display: none !important;} 

/* ---------- Menu lipat (tumpukan tombol panel kiri bawah) ---------- */
/* Urutan tumpukan dari bawah: ✕/☰ (12) · Missions (64) · Slots (108) ·
   Mining (152) · Relics (196) · Fishing (240) — tidak saling menutupi. */
/* SATU tombol menu gabungan (menggantikan deretan tombol fitur) */
#menu-fab {
  position: absolute; top: 58px; right: 10px; z-index: 45;
  background: rgba(11, 11, 11, .82); color: #d3d3d3; cursor: pointer;
  border: 1px solid rgba(211, 211, 211, .55); border-radius: 11px;
  padding: 7px 10px; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);}

/* Tombol Missions di HUD (buka/tutup panel kanan) — di bawah Menu */
#missions-fab {
  position: absolute; top: 100px; right: 10px; z-index: 45;
  background: rgba(11, 11, 11, .82); color: #d3d3d3; cursor: pointer;
  border: 1px solid rgba(211, 211, 211, .55); border-radius: 11px;
  padding: 6px 10px; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);}

/* Tombol mata: selalu terlihat, sudut kanan atas (di ruang padding
   HUD) — semi-transparan supaya tidak menutupi permainan. */
#ui-eye {
  position: absolute; top: 8px; right: 8px; z-index: 70;
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  background: rgba(11, 11, 11, .55); color: #ffffff; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 15px; line-height: 1; opacity: .8;}

/* ---------- Sembunyikan UI (tombol mata, perintah Danny 11:22) ----
   Semua lapisan informasi hilang; kanvas + kontrol bermain (joystick,
   tombol tembak, zoom, kamera) + indikator misi aktif + tombol mata
   sendiri tetap. Keadaan panel Missions TIDAK diubah aturan ini —
   panel kembali persis seperti keadaan terakhirnya. */
body.ui-hidden #hud,
body.ui-hidden #panel,
body.ui-hidden #community-banner,
body.ui-hidden #minimap,
body.ui-hidden #pet-fab,
body.ui-hidden #btn-mode,
body.ui-hidden #menu-fab,
body.ui-hidden #missions-fab { display: none !important;} 

#menu-fold {
  position: absolute; left: 12px; bottom: 10px; z-index: 22;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(18, 18, 18, .85); color: #d3d3d3; border: 1px solid #d3d3d3;
  font-size: 14px; font-weight: 800; cursor: pointer;}

#stage.menu-folded #slot-fab,
#stage.menu-folded #panel-toggle,
#stage.menu-folded #mining-fab,
#stage.menu-folded #nft-fab,
#stage.menu-folded #fishing-fab,
#stage.menu-folded #char-fab { display: none !important;} 

#panel-toggle {
  position: absolute; left: 12px; bottom: 56px; display: none;
  background: rgba(18, 18, 18, .85); color: #d3d3d3; border: 1px solid #d3d3d3;
  border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 700;}


/* ---------- Karakter: FAB + tombol naik/turun + panel ---------- */
#char-fab {
  position: absolute; left: 12px; bottom: 284px; z-index: 6;
  background: linear-gradient(90deg, #2c2c2c, #a9a9a9); color: #ffffff; border: none;
  border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 800;
  cursor: pointer; box-shadow: 0 0 16px rgba(44, 44, 44, .5);}

/* Tombol mobil: BULAT KECIL berikon SVG saja (perintah Danny 19 Nov
   10:54 — jangan teks lebar bertumpuk). Di atas minimap, di bawah
   tombol zoom; tidak menimpa Menu/Missions/minimap. Warna aksen per
   keadaan (data-state dari updateModeBtn): masuk sian, keluar
   oranye, batal merah redup, jauh kuning. */
#btn-mode {
  position: absolute; right: 12px; bottom: 172px; z-index: 7;
  width: 46px; height: 46px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,18,18,.88); color: #fff; border: 1px solid rgba(255,255,255,.55);
  cursor: pointer; box-shadow: 0 0 14px rgba(0,0,0,.35);}

#btn-mode svg { width: 25px; height: 25px; display: block;} 
#btn-mode[data-state="in"] { color: #d9d9d9; border-color: #d9d9d9; box-shadow: 0 0 14px rgba(217,217,217,.4);} 
#btn-mode[data-state="out"] { color: #b8b8b8; border-color: #b8b8b8; box-shadow: 0 0 14px rgba(167,167,167,.4);} 
#btn-mode[data-state="cancel"] { color: #b0b0b0; border-color: #b0b0b0; box-shadow: 0 0 14px rgba(149,149,149,.35);} 
#btn-mode:disabled { opacity: .45; cursor: default; box-shadow: none;} 
@media (max-width: 760px) { #btn-mode { bottom: 120px;}}  
/* Zoom: tumpukan kecil di kanan atas tombol mode — tidak menyentuh area
   joystick (canvas) maupun minimap di bawahnya. */
#zoom-controls {
  position: absolute; right: 12px; bottom: 232px; z-index: 7;
  display: flex; flex-direction: column; gap: 6px;}

#zoom-controls button {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(18, 18, 18, .85); color: #d9d9d9;
  border: 1px solid rgba(217, 217, 217, .6); font-size: 16px; font-weight: 800;
  cursor: pointer; line-height: 1;}

@media (max-width: 760px) { #zoom-controls { bottom: 182px;}}  
#char-overlay {
  position: absolute; inset: 0; z-index: 33;
  background: rgba(6, 6, 6, .72); display: flex;
  align-items: center; justify-content: center; padding: 12px;}

#char-overlay.hidden { display: none;} 
.char-box {
  width: min(430px, 96vw); max-height: 94%; overflow-y: auto;
  background: linear-gradient(180deg, #1e1e1e, #101010);
  border: 2px solid #a9a9a9; border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 0 34px rgba(169, 169, 169, .35);}

.char-head { display: flex; justify-content: space-between; align-items: center;} 
.char-title { font-size: 21px; font-weight: 900; letter-spacing: 1px; color: #d9d9d9;} 
#char-close {
  background: transparent; border: 1px solid rgba(255, 255, 255, .4); color: #ffffff;
  border-radius: 50%; width: 30px; height: 30px; font-size: 14px; cursor: pointer;}

.char-sub { font-size: 12.5px; opacity: .85; margin: 4px 0 8px; line-height: 1.45;} 
#char-preview {
  display: block; margin: 4px auto 10px; width: 132px; height: 132px;
  background: radial-gradient(circle, #868686 0%, #5d5d5d 78%, #414141 100%);
  border: 2px solid rgba(217, 217, 217, .5); border-radius: 14px;}

.char-group { margin-bottom: 11px;} 
.char-group h3 { font-size: 13.5px; margin-bottom: 6px; color: #d9d9d9;} 
.char-opts { display: flex; flex-wrap: wrap; gap: 6px;} 
.char-chip {
  background: rgba(255, 255, 255, .08); color: #f2f2f2;
  border: 1px solid rgba(217, 217, 217, .4); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer;}

.char-chip.sel { background: rgba(132, 132, 132, .75); border-color: #d3d3d3; color: #ffffff;} 
.char-swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .35); padding: 0;}

.char-swatch.sel { border-color: #d3d3d3; box-shadow: 0 0 0 2px #d3d3d3, 0 0 10px rgba(211, 211, 211, .6);} 
.char-opt { display: flex; flex-direction: column; align-items: center; gap: 2px;} 
.char-tag { font-size: 10px; font-weight: 700; color: #d4d4d4; text-align: center; max-width: 92px;} 
.char-tag.locked { color: #d3d3d3;} 
.char-chip.locked, .char-swatch.locked { opacity: .72; border-style: dashed;} 
#char-buybar {
  background: rgba(211, 211, 211, .12); border: 1px solid rgba(211, 211, 211, .55);
  border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 13px;}

#char-buybar.hidden { display: none;} 
.char-buytxt { margin: 0 0 8px; line-height: 1.5;} 
#char-balance { display: inline-block; margin-top: 2px; color: #d3d3d3; font-weight: 700;} 
.costume-card {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed rgba(211, 211, 211, .5);}


/* ---------- Kartu hubungkan Telegram ---------- */
#link-code-out.hidden { display: none;} 
#link-code-out { letter-spacing: 6px;} 
#link-code-in {
  width: 100%; box-sizing: border-box; margin-top: 8px;
  background: rgba(255, 255, 255, .08); color: #f2f2f2;
  border: 1px solid rgba(217, 217, 217, .5); border-radius: 10px;
  padding: 8px 12px; font-size: 15px; letter-spacing: 3px; text-align: center;}


/* ---------- Panel ---------- */
#panel {
  flex: 0 0 320px; overflow-y: auto; padding: 12px;
  background: linear-gradient(180deg, #191919, #0f0f0f);
  border-left: 2px solid rgba(132, 132, 132, .4);}

/* Panel tertutup = hilang penuh di SEMUA mode tampilan (kolom
   desktop, overlay HP, overlay layar lebar) — perintah Danny 11:22. */
#panel.panel-closed { display: none !important;} 
/* Tombol ✕ di sudut panel (lengket di atas saat panel di-scroll) */
#panel-close {
  position: sticky; top: 0; z-index: 6; display: block;
  margin: 0 0 8px auto; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .4);
  color: #ffffff; font-size: 15px; cursor: pointer; line-height: 1;}

.card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 13px 14px; margin-bottom: 12px;}

.card h2 { font-size: 16px; margin-bottom: 9px; color: #d3d3d3;} 
.card h3 { font-size: 13px; margin: 11px 0 5px; opacity: .85;} 
.card p { font-size: 13px; line-height: 1.45;} 
.note { font-size: 12px; opacity: .75; margin-top: 7px; line-height: 1.4;} 

button.action {
  background: linear-gradient(90deg, #848484, #aeaeae); color: #ffffff; border: none;
  border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: 14px;
  cursor: pointer; margin-top: 9px; width: 100%;}

button.action:disabled { filter: grayscale(.8); opacity: .55; cursor: default;} 
button.ghost {
  background: transparent; color: #d9d9d9; border: 1px solid rgba(217, 217, 217, .6);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px;
  cursor: pointer; margin-top: 8px; width: 100%;}

.quest-desc { font-size: 13.5px; line-height: 1.45;} 
.quest-reward { color: #d3d3d3; font-weight: 700;} 

.daily { margin-bottom: 11px;} 
.daily-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700;} 
.daily-desc { font-size: 12.5px; opacity: .85; margin: 2px 0 5px;} 
.progress { height: 8px; background: rgba(255, 255, 255, .13); border-radius: 4px; overflow: hidden;} 
.progress > div { height: 100%; background: linear-gradient(90deg, #b1b1b1, #d9d9d9);} 
.daily button.action { padding: 6px 12px; font-size: 13px;} 
.claimed-tag { color: #b1b1b1; font-size: 12.5px; font-weight: 700;} 

.ledger-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3.5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1);} 
.token-row b { color: #d3d3d3;} 
#history { list-style: none; font-size: 12.5px; max-height: 168px; overflow-y: auto;} 
#history li { padding: 3.5px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); display: flex; justify-content: space-between; gap: 8px;} 
#history .plus { color: #b1b1b1; font-weight: 700; white-space: nowrap;} 

/* ---------- Vice Slots ---------- */
#slot-fab {
  position: absolute; left: 12px; bottom: 108px; z-index: 6;
  background: linear-gradient(90deg, #ff2f92, #ff8a3d); color: #ffffff; border: none;
  border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 800;
  cursor: pointer; box-shadow: 0 0 16px rgba(255, 47, 146, .55);}

#slot-overlay {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(6, 6, 6, .72); display: flex;
  align-items: center; justify-content: center; padding: 12px;}

#slot-overlay.hidden { display: none;} 
.slot-machine {
  width: min(430px, 96vw); max-height: 94%; overflow-y: auto;
  background: linear-gradient(180deg, #33105c, #150429);
  border: 2px solid #ffd23f; border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 0 34px rgba(255, 47, 146, .45), inset 0 0 22px rgba(124, 58, 237, .35);}

.slot-head { display: flex; justify-content: space-between; align-items: center;} 
.slot-title {
  font-size: 21px; font-weight: 900; letter-spacing: 2px; color: #ffd23f;
  text-shadow: 0 0 12px rgba(255, 47, 146, .9), 0 2px 0 #7c3aed;}

#slot-close {
  background: transparent; border: 1px solid rgba(255, 255, 255, .4); color: #ffffff;
  border-radius: 50%; width: 30px; height: 30px; font-size: 14px; cursor: pointer;}

.slot-sub { font-size: 12px; opacity: .8; margin: 2px 0 10px;} 
.slot-reels { display: flex; gap: 10px; justify-content: center; margin: 8px 0;} 
.slot-reel {
  width: 86px; height: 86px; border-radius: 14px;
  background: linear-gradient(180deg, #4c1d95, #1e0a3c);
  border: 3px solid #ffd23f; display: flex; align-items: center; justify-content: center;
  font-size: 46px; box-shadow: inset 0 0 14px rgba(255, 210, 63, .35), 0 0 10px rgba(124, 58, 237, .5);}

.slot-reel.spinning { animation: reelshake .12s infinite; filter: blur(1.2px);} 
.slot-reel.win { border-color: #ffd23f; box-shadow: 0 0 22px rgba(255, 210, 63, .95), inset 0 0 14px rgba(255, 210, 63, .5);} 
@keyframes reelshake {
  0% { transform: translateY(-2px);}  50% { transform: translateY(2px);} 
  100% { transform: translateY(-2px);}} 

#slot-result {
  text-align: center; font-size: 16px; font-weight: 800; color: #ffd23f;
  min-height: 22px; margin: 6px 0 2px;}

.slot-balances {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  font-size: 13px; margin: 6px 0 4px;}

.slot-balances span {
  background: rgba(124, 58, 237, .28); border: 1px solid rgba(55, 200, 217, .55); color: #ffffff;
  border-radius: 999px; padding: 4px 11px;}

.slot-actions { display: flex;} 
.slot-h { font-size: 13.5px; margin: 13px 0 6px; color: #37c8d9;} 
.slot-packages { display: flex; gap: 8px;} 
.slot-packages button {
  flex: 1; background: linear-gradient(180deg, #7c3aed, #4c1d95); color: #ffffff;
  border: 1px solid #ffd23f; border-radius: 12px; padding: 8px 4px;
  font-weight: 800; font-size: 13px; cursor: pointer;}

.slot-paytable { font-size: 13px;} 
.slot-paytable .pt-row {
  display: flex; justify-content: space-between; padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 210, 63, .25);}

#btn-spin {
  background: linear-gradient(90deg, #ff2f92, #ff8a3d); color: #ffffff;
  border: 2px solid #ffd23f; border-radius: 14px; font-weight: 900;
  letter-spacing: 1px; box-shadow: 0 0 18px rgba(255, 47, 146, .55);}

#btn-spin:disabled { filter: grayscale(.75) brightness(.55); box-shadow: none;}


/* ---------- Mobile / Telegram: panel jadi overlay ---------- */
@media (max-width: 760px) {
  #panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: 86vw; max-width: 330px;
    z-index: 20; transform: translateX(105%); transition: transform .25s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .5);}
  
  #panel.open { transform: translateX(0);} 
  #panel-toggle { display: block; z-index: 21;} 
  #minimap { width: 96px; height: 96px;} 
  #game-title { font-size: 18px;}} 


/* --- Top Up USDT (order bertanda) --- */
.pay-amount { font-size: 1.7em; font-weight: 800; text-align: center; margin: 6px 0;} 
.pay-address { font-family: monospace; word-break: break-all; text-align: center;
  background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 8px; margin: 6px 0;} 
#pay-panel .slot-packages button.active { outline: 2px solid #d3d3d3;} 
#pay-qr { display: block; margin: 8px auto; background: #ffffff; border-radius: 8px;} 
#pay-panel details { margin-top: 10px;} 
#pay-txhash { width: 100%; box-sizing: border-box; margin: 6px 0;} 

/* ---------- Level badge + bar XP (HUD) ---------- */
.hud-xpbar {
  width: 110px; height: 6px; margin: 3px 0 3px auto;
  background: rgba(255, 255, 255, .15); border-radius: 999px; overflow: hidden;}

#hud-xpfill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #d3d3d3, #848484); border-radius: 999px;
  transition: width .6s ease;}


/* ---------- Gerbang Komunitas ---------- */
#community-banner {
  position: absolute; top: 84px; left: 50%; transform: translateX(-50%);
  width: min(430px, 92%); z-index: 30; text-align: center;
  background: rgba(26, 26, 26, .96); color: #ededed; border: 2px solid #a2a2a2;
  border-radius: 16px; padding: 18px 20px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);}

#community-banner.hidden { display: none;} 
#community-banner .community-title { font-size: 19px; font-weight: 900; color: #bfbfbf; margin-bottom: 6px;} 
#community-banner p { font-size: 13.5px; line-height: 1.45; margin: 4px 0;} 
#community-guest-note.hidden { display: none;} 
/* ---------- WEBMODE: pemberitahuan perangkat baru (Danny 11:42) ---------- */
.webnotice {
  border: 2px solid #a2a2a2; border-radius: 12px;
  background: rgba(191, 191, 191, .10); padding: 12px 14px; margin-top: 10px;}

.webnotice.hidden { display: none;} 
.webnotice .webnotice-title { font-size: 16px; font-weight: 900; color: #bfbfbf; margin-bottom: 5px;} 
.webnotice .webnotice-body { font-size: 13.5px; line-height: 1.5; margin: 0;} 
.community-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px;} 
#btn-community-close {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  color: #ededed; font-size: 16px; cursor: pointer;}


/* ---------- Sistem WANTED (17 Nov 2026): HUD bintang/HP, bar senjata,
   toko Leonida Arms, kartu Cat Kilat, layar BUSTED/TUMBANG ---------- */
#arms-fab {
  position: absolute; left: 12px; bottom: 460px; z-index: 6;
  background: linear-gradient(90deg, #616161, #8b8b8b); color: #ffffff; border: none;
  border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 800;
  cursor: pointer; box-shadow: 0 0 16px rgba(139, 139, 139, .5);}

#stage.menu-folded #arms-fab,
#stage.menu-folded #weapon-bar,
#stage.menu-folded #fire-btn,
#stage.menu-folded #aim-btn,
#stage.menu-folded #aim-exit-btn { display: none !important;} 

#wanted-stars {
  position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%);
  font-size: 26px; letter-spacing: 5px; text-align: center;
  pointer-events: none; z-index: 8; display: none; line-height: 1;}

#wanted-city { font-size: 11.5px; letter-spacing: 1.2px; color: #d3d3d3; margin-top: 3px; text-transform: uppercase;} 
#wanted-evade { font-size: 12.5px; letter-spacing: 1.5px; color: #d2d2d2; margin-top: 3px;} 

#player-hp {
  position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; align-items: center; z-index: 8; pointer-events: none;
  font-size: 13px;}

#player-hp-track {
  width: 168px; height: 9px; border-radius: 5px;
  background: rgba(10, 8, 24, .72); border: 1px solid rgba(255, 255, 255, .28);
  overflow: hidden;}

#player-hp-fill { height: 100%; width: 100%; background: #7f8c96; transition: width .18s linear;} 

#weapon-bar {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; align-items: center; z-index: 9;}

#weapon-bar button {
  min-width: 38px; height: 38px; padding: 0 6px; border-radius: 11px;
  background: rgba(18, 18, 18, .88); border: 1px solid rgba(217, 217, 217, .35);
  color: #ffffff; font-size: 15.5px; cursor: pointer;}

#weapon-bar button.on { border-color: #d3d3d3; box-shadow: 0 0 12px rgba(211, 211, 211, .55);} 
#weapon-bar button.locked { opacity: .45;} 
#weapon-bar #wbomb-cycle { min-width: 28px; font-size: 12px;} 
#weapon-bar #mode-chip { font-size: 14px; font-weight: 800;} 
#weapon-bar #mode-chip.attack { border-color: #7d7d7d; box-shadow: 0 0 12px rgba(125, 125, 125, .5);} 

/* Bar skill senjata tajam (TAJAM-PREP): muncul kontekstual saat
   pedang teracung, di atas bar senjata. */
#stage.menu-folded #melee-skills { display: none !important;} 
#melee-skills {
  position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; align-items: center; z-index: 9;}

#melee-skills .mskill {
  min-width: 40px; height: 40px; padding: 2px 5px; border-radius: 11px;
  background: rgba(18, 18, 18, .88); border: 1px solid rgba(211, 211, 211, .45);
  color: #ffffff; font-size: 19px; cursor: pointer; line-height: 1.05;
  display: flex; flex-direction: column; align-items: center; justify-content: center;}

#melee-skills .mskill small { font-size: 9px; letter-spacing: 1px; color: #d3d3d3;} 
#melee-skills .mskill.cd { opacity: .55;} 
#melee-skills .mskill.cd small { color: #d2d2d2;} 
#melee-skills .mskill.locked { opacity: .38; border-color: rgba(255, 255, 255, .25); cursor: default;} 
#melee-skills .mskill.locked small { color: #ffffff;} 

/* IKON-PUTIH (K-AA): glif emoji yang dibungkus .ico-w tampil
   monokrom putih di seluruh UI. */
.ico-w { filter: grayscale(1) brightness(2.8) contrast(.92); display: inline-block;} 
/* SIMBOL TEMBAK (perintah Danny 21 Nov 00:41): tombol HITAM pekat
   pola pedal — glif peluru/tinju/pedang putih dari syncFireGlyph.
   Posisi tersimpan pemain (leonida_firebtn) tetap menang dan
   tidak diubah; ukuran 54px + posisi bawaan persis sebelumnya. */
#fire-btn {
  position: absolute; right: 170px; bottom: 156px; z-index: 9;
  width: 54px; height: 54px; border-radius: 50%;
  background: #000000;
  border: 2px solid rgba(255, 255, 255, .45); color: #fff; font-size: 23px;
  cursor: pointer; touch-action: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;}

#fire-btn:active { transform: scale(.93);}

/* Tombol PUKUL/TEMBAK MANUAL tanpa keker (perintah Bos 23 Nov 02:40):
   kecil seperti pedal, di atas tumpukan pedal, sisi kanan. Handler
   berbagi jalur tembak yang sama (fireHeld/swingQueued) — menekan =
   menyerang langsung tanpa mode bidik. */
#hit-btn {
  position: absolute; right: 156px; bottom: 108px; z-index: 9;
  width: 46px; height: 40px; border-radius: 12px; touch-action: none;
  background: #000000; border: 2px solid rgba(255, 255, 255, .45);
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;}

#hit-btn:active { transform: scale(.93);}

/* Tombol buka/tutup MANUAL bar slot senjata (perintah Bos 23 Nov
   02:40): lingkaran kecil di ujung kanan bar; keadaan tersimpan
   pemain (leonida_wbar). */
#wbar-toggle {
  position: absolute; right: 12px; bottom: 56px; z-index: 9;
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  background: rgba(18, 18, 18, .88); border: 1px solid rgba(217, 217, 217, .5);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;}

#wbar-toggle svg { transition: transform .18s ease;}
#stage.wbar-closed #wbar-toggle svg { transform: rotate(-90deg);}
#stage.wbar-closed #weapon-bar,
#stage.wbar-closed #melee-skills { display: none !important;}
#stage.menu-folded #hit-btn,
#stage.menu-folded #wbar-toggle { display: none !important;}
#fire-btn.drag { opacity: .78; transform: scale(1.14); border-color: #ffffff;} 
/* Chip ajakan putar perangkat: KECIL + bisa ditutup, tidak lagi
   lapisan layar-penuh (perintah Danny 19 Nov 10:54 — web tidak
   wajib landscape; game main penuh di portrait). */
#rotate-hint {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
  display: none; z-index: 55; align-items: center; gap: 8px;
  background: rgba(11, 11, 11, .88); border: 1px solid rgba(217, 217, 217, .5);
  border-radius: 999px; padding: 6px 8px 6px 12px; max-width: 92vw;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);}

#rotate-hint.on { display: flex;} 
#rotate-hint .rh-icon { font-size: 16px; animation: rhspin 2.2s ease-in-out infinite;} 
#rotate-hint .rh-text { color: #ffffff; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;} 
#rotate-hint-x {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  color: #ffffff; font-size: 12px; line-height: 1; cursor: pointer; padding: 0;}

@keyframes rhspin { 0%, 100% { transform: rotate(0deg);}  50% { transform: rotate(90deg);}}  
/* Daftar kontrol keyboard+mouse di Pengaturan (Paket Kontrol) */
.ctl-list { font-size: 13px; line-height: 1.85; padding: 2px 2px 6px;} 

/* Tombol bidik (toggle Point Blank): sisi KIRI layar (jempol kiri),
   tampil hanya kontekstual lewat .ctx-show dari refreshAimChrome().
   Posisi: di atas zona istirahat joystick, di bawah view-fab —
   terverifikasi bebas tabrakan portrait + landscape. Tombol tembak
   tetap kanan; keduanya tidak pernah sebelahan lagi. */
#aim-btn {
  position: absolute; left: 16px; bottom: 140px; z-index: 9;
  width: 48px; height: 48px; border-radius: 50%;
  background: #000000;
  border: 2px solid rgba(255, 255, 255, .45); color: #ffffff; font-size: 20px;
  cursor: pointer; touch-action: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  display: none;
  align-items: center; justify-content: center;}

#aim-btn.ctx-show { display: flex;} 
#aim-btn:active { transform: scale(.93);} 
#aim-btn.on { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .95));} 
/* Tombol keluar bidik: posisi persis tombol bidik, tampil hanya
   selama bidik aktif. */
#aim-exit-btn {
  position: absolute; left: 16px; bottom: 140px; z-index: 9;
  width: 48px; height: 48px; border-radius: 50%;
  background: #000000;
  border: 2px solid rgba(255, 255, 255, .45); color: #ffffff; font-size: 19px;
  cursor: pointer; touch-action: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  display: none;
  align-items: center; justify-content: center;}

#aim-exit-btn.ctx-show { display: flex;} 
#aim-exit-btn:active { transform: scale(.93);} 

/* Teropong sniper (SENJATA-PREP): lingkaran scope + garis silang,
   tampil hanya saat bidik sniper aktif; crosshair biasa disembunyikan. */
#scope-overlay {
  position: absolute; inset: 0; z-index: 9; pointer-events: none;
  background: radial-gradient(circle at center, transparent 30vmin, rgba(3, 5, 8, .96) 31.5vmin);}

#scope-overlay .scope-ring {
  position: absolute; left: 50%; top: 50%; width: 60vmin; height: 60vmin;
  transform: translate(-50%, -50%); border: 3px solid rgba(10, 12, 14, .9); border-radius: 50%;}

#scope-overlay .scope-h, #scope-overlay .scope-v {
  position: absolute; background: rgba(10, 12, 14, .85);}

#scope-overlay .scope-h { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);} 
#scope-overlay .scope-v { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);} 

/* Crosshair tengah layar (dipakai klien 3D saat membidik) */
#aim-cross {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%); z-index: 9; pointer-events: none;
  --sp: 8px;}

/* Crosshair PB (tahap 2): 4 lengan pendek + titik opsional;
   lebar celah --sp DINAMIS dari loop render (tembak/gerak melebar,
   diam menyempit). Tipe: ct1 Standard · ct2 silang+titik ·
   ct3 Point · ct4 Bulat besar. Tanpa slider warna/ukuran (PB). */
#aim-cross span {
  position: absolute; background: #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, .8);}

#aim-cross .ac-t { left: calc(50% - 1px); bottom: calc(50% + var(--sp)); width: 2px; height: 9px;} 
#aim-cross .ac-b { left: calc(50% - 1px); top: calc(50% + var(--sp)); width: 2px; height: 9px;} 
#aim-cross .ac-l { top: calc(50% - 1px); right: calc(50% + var(--sp)); height: 2px; width: 9px;} 
#aim-cross .ac-r { top: calc(50% - 1px); left: calc(50% + var(--sp)); height: 2px; width: 9px;} 
#aim-cross i {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 3px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #ffffff; box-shadow: 0 0 4px rgba(0, 0, 0, .8); display: none;}

#aim-cross.ct2 i { display: block;} 
#aim-cross.ct3 span { display: none;} 
#aim-cross.ct3 i { display: block; width: 4px; height: 4px;} 
#aim-cross.ct4 span { display: none;} 
#aim-cross.ct4 i {
  display: block; width: 30px; height: 30px; background: transparent;
  border: 2px solid #ffd166;}


/* Cluster tombol kaki mode sentuh (jongkok + lompat, tahap 2) */
#foot-controls {
  position: absolute; right: 154px; bottom: 12px; z-index: 30;
  display: flex; flex-direction: column; gap: 10px;}

#foot-controls.hidden { display: none;} 
#foot-controls button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  background: #000000; color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  touch-action: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;}

.foot-svg { width: 21px; height: 21px; pointer-events: none;}

#foot-controls button.on { background: rgba(211, 211, 211, .8); color: #131313;} 

#arms-prompt {
  position: absolute; right: 170px; bottom: 222px; z-index: 8;
  background: rgba(18, 18, 18, .92); color: #d3d3d3; border: 1px solid #8b8b8b;
  border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 800;
  cursor: pointer; box-shadow: 0 0 14px rgba(139, 139, 139, .5);}

#arms-prompt.hidden { display: none;} 

/* PASAR-PREP: prompt kios pasar + tombol pakai P3K di HUD */
#pasar-prompt {
  position: absolute; right: 170px; bottom: 268px; z-index: 8;
  background: rgba(18, 18, 18, .92); color: #dddddd; border: 1px solid #a7a7a7;
  border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 800;
  cursor: pointer; box-shadow: 0 0 14px rgba(167, 167, 167, .5);}

#pasar-prompt.hidden { display: none;} 
#heal-btn {
  position: absolute; left: 50%; transform: translateX(118px); bottom: 58px; z-index: 9;
  min-width: 44px; height: 34px; padding: 0 10px; border-radius: 999px;
  background: rgba(18, 18, 18, .92); color: #b0b0b0; border: 1px solid #686868;
  font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 0 12px rgba(104, 104, 104, .45);}

#heal-btn.hidden { display: none;} 
.pasar-use-row { padding-top: 0;} 
/* SLOTDARAH: panel slot darah — kecil, di atas chip, auto-tutup */
#heal-panel {
  position: absolute; left: 50%; transform: translateX(58px);
  bottom: 100px; z-index: 9; width: 228px;
  background: rgba(18, 18, 18, .95); color: #e1e1e1;
  border: 1px solid #686868; border-radius: 12px; padding: 10px;
  box-shadow: 0 0 16px rgba(104, 104, 104, .4);
  font-size: 12.5px;}

#heal-panel.hidden { display: none;} 
.heal-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; margin-bottom: 8px;}

.heal-panel-total { color: #b0b0b0;} 
.heal-boxes { display: flex; gap: 6px; margin-bottom: 8px;} 
.heal-box {
  flex: 1; min-width: 0; text-align: center;
  border: 1px solid rgba(175, 175, 175, .5); border-radius: 8px;
  padding: 6px 2px;}

.heal-box-empty {
  display: flex; align-items: center; justify-content: center;
  color: rgba(225, 225, 225, .45); border-style: dashed; min-height: 52px;}

.heal-box-name {
  font-weight: 700; font-size: 11.5px; line-height: 1.25;
  overflow-wrap: break-word;}

.heal-box-meta { color: #b0b0b0; margin: 2px 0 5px;} 
.heal-use {
  background: #686868; color: #fff; border: none; border-radius: 999px;
  padding: 3px 10px; font-size: 11.5px; font-weight: 800; cursor: pointer;}

.heal-set-row {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: none; border: none; color: #e1e1e1;
  font-size: 12.5px; padding: 4px 0; cursor: pointer; text-align: left;}

button.heal-set-row { border-top: 1px solid rgba(175, 175, 175, .25);} 
#heal-set-threshold { width: 100%; accent-color: #686868; margin: 2px 0 4px;} 

#respray-card {
  position: absolute; bottom: 152px; left: 50%; transform: translateX(-50%);
  background: rgba(18, 18, 18, .94); border: 1px solid #a5a5a5; border-radius: 12px;
  padding: 10px 16px; text-align: center; z-index: 9; font-size: 13.5px;
  box-shadow: 0 0 16px rgba(165, 165, 165, .4); max-width: 92vw;}

#respray-card.hidden { display: none;} 
#respray-btn {
  margin-top: 7px; background: #a5a5a5; color: #232323; border: none;
  padding: 7px 16px; border-radius: 999px; font-weight: 800; cursor: pointer;}


#wanted-overlay {
  position: absolute; inset: 0; z-index: 40; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10, 8, 20, .22);}

#wanted-overlay.hidden { display: none;} 
#wanted-ov-title {
  font-size: clamp(44px, 11vw, 76px); font-weight: 900; letter-spacing: 10px;
  color: #f2ede2; text-shadow: 0 0 34px rgba(255, 60, 40, .85), 0 4px 0 #7a130d;}

#wanted-ov-sub { font-size: 17px; font-weight: 700; color: #ffd166; margin-top: 8px;} 
#stage.wanted-gray #game { filter: grayscale(.85) brightness(.78);} 

.wshop-balance { color: #d9d9d9; font-size: 13px; margin-bottom: 4px;} 
.wshop-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);}

.wshop-info { flex: 1; font-size: 13.5px;} 
.wshop-desc { display: block; opacity: .72; font-size: 12px; margin-top: 1px;} 
.wshop-meta { font-size: 12px; color: #d3d3d3; margin-top: 2px;} 
.wshop-buy {
  background: linear-gradient(90deg, #9b9b9b, #d3d3d3); color: #1a1a1a; border: none;
  border-radius: 999px; padding: 8px 16px; font-weight: 800; cursor: pointer;
  white-space: nowrap;}

.wshop-owned { color: #b1b1b1; font-weight: 800; font-size: 17px;} 

/* ---------- Mode layar lebar (desktop >=1024px, aspek >= 4:3) -------
   Kelas .wide dipasang JS (applyWideMode) HANYA pada jendela lebar:
   panel samping menjadi overlay melayang (pola yang sama seperti HP)
   sehingga stage memenuhi SELURUH lebar jendela — kamera melihat kota
   lebih luas, HUD menempel ke tepi layar. Portrait/HP tidak berubah. */
@media (min-width: 1024px) {
  #app.wide #panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 25;
    width: min(350px, 92vw); transform: translateX(106%);
    transition: transform .25s ease; box-shadow: -14px 0 34px rgba(0, 0, 0, .5);}
  
  #app.wide #panel.open { transform: translateX(0);} 
  #app.wide #panel-toggle { display: block; z-index: 26;}} 


/* Indikator jalan otomatis ke mobil (perintah Danny 21:05) */
#car-heading {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(18, 18, 18, .88); color: #d9d9d9; border: 1px solid rgba(217, 217, 217, .4);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  z-index: 8; pointer-events: none; white-space: nowrap;}

#car-heading.hidden { display: none;} 

/* Pemilih aset topup (USDT/USDC) */
#pay-assets { margin-bottom: 6px;} 
#pay-assets button.active, #pay-chains button.active {
  border-color: #d3d3d3; box-shadow: 0 0 10px rgba(211, 211, 211, .5);}


.travel-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px;} 
.travel-dest { text-align: left;} 
#travel-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(9, 9, 9, .55);} 
#travel-overlay.hidden { display: none;} 

/* ---- Paket Peta Hidup: chip jalan otomatis + minimap mengembang ---- */
#aw-chip {
  /* top 136px: di bawah strip teks tutorial (#tut-text, tengah atas)
     yang menutupi baris 86px dan menelan ketukan ✕ (bukti probe:
     elementFromPoint di pusat tombol = #tut-text). z-index 90 untuk
     margin keamanan susun. */
  position: fixed; top: 136px; left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; align-items: center; gap: 10px;
  background: rgba(19, 19, 19, .88); color: #e1e1e1;
  border: 1px solid #797979; border-radius: 999px;
  padding: 7px 8px 7px 16px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .45);}

#aw-chip.hidden { display: none;} 
#aw-chip-x {
  background: #797979; color: #ffffff; border: none; border-radius: 50%;
  width: 26px; height: 26px; font-size: 14px; line-height: 1;
  cursor: pointer; flex: 0 0 auto;}

/* Minimap membesar DI TEMPAT (spesifikasi Danny 21:24): 50vw x 50vh
   = tepat 25% luas viewport, jangkar kanan-bawah tetap (right/bottom
   dari aturan #minimap utama tidak berubah), transisi mulus singkat.
   Aturan .map-expanded sengaja di akhir berkas: kekhususan
   #minimap.map-expanded mengalahkan aturan media-query layar kecil. */
#minimap { transition: width .25s ease, height .25s ease; cursor: pointer;} 
#minimap.map-expanded {
  width: 50vw; height: 50vh; z-index: 40;
  border-color: #797979; box-shadow: 0 10px 34px rgba(0, 0, 0, .55);}

#map-shrink {
  position: fixed; right: 20px; bottom: calc(50vh - 22px); z-index: 41;
  width: 34px; height: 34px; border-radius: 50%;
  background: #797979; color: #ffffff; border: 2px solid #e1e1e1;
  font-size: 16px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);}

#map-shrink.hidden { display: none;} 

/* ---------- Portrait (perintah Danny 19 Nov 2026 10:54 WIB): game
   main PENUH dalam portrait di web — HUD menyesuaikan, semua tombol
   penting terjangkau, tidak ada tumpukan. Zona stick belah-dua lebar
   layar sehingga otomatis cocok. ---------- */
@media (orientation: portrait) {
  #hud { padding: 8px 92px 8px 10px;} 
  #game-title { font-size: 17px;} 
  .hud-right { max-width: 56vw;} 
  #objective { top: 108px; min-width: 0; width: 92%;} 
  #minimap { width: 96px; height: 96px;} 
  #btn-mode { bottom: 112px;} 
  #zoom-controls { bottom: 172px;} 
  #fire-btn { right: 128px; bottom: 148px;} 
  #arms-prompt { right: 128px; bottom: 214px;} 
  #pasar-prompt { right: 128px; bottom: 260px;} 
  #weapon-bar { max-width: 96vw; overflow-x: auto; padding-bottom: 2px;} 
  #weapon-bar button { min-width: 34px; height: 34px; font-size: 14px;} 
  #wanted-stars { bottom: 84px; font-size: 22px;} 
  #player-hp { bottom: 58px;} 
  #heal-btn { left: 76px; transform: none; bottom: 52px;} 
  #heal-panel { left: 12px; transform: none; bottom: 96px;} 
  #menu-fab { top: 52px;} 
  #missions-fab { top: 92px;} 
  #rotate-hint { top: 108px;} 
  #aw-chip { top: 178px;}} 


/* ---------- Tumpukan menu kanan atas (perintah Danny 19 Nov 2026
   12:04 WIB): SEMUA tombol menu disatukan dalam satu tumpukan rapi
   di pojok kanan atas. Selektor #stage #id sengaja lebih kuat dari
   aturan posisi lama di berkas modul mana pun (style/pet/game3d/
   mining/nft/fishing/market/bank/fitur) — tangga ini yang menang.
   Tombol pengalih #stack-toggle (dibuat game.js) selalu terlihat;
   body.stack-hidden menyembunyikan seluruh tumpukan saja — kontrol
   bermain (stick, tembak, bidik, mobil, zoom, minimap) TIDAK ikut. */
#stack-toggle {
  position: absolute; top: 8px; right: 8px; z-index: 75;
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  background: rgba(11, 11, 11, .85); color: #d3d3d3; cursor: pointer;
  border: 1px solid rgba(211, 211, 211, .65); font-size: 16px; line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);}

#stack-toggle.off { color: #9c9c9c; border-color: rgba(255, 255, 255, .3); opacity: .78;} 
#stage #ui-eye { top: 8px; right: 50px; left: auto; bottom: auto;} 
#stage #menu-fab { top: 52px; right: 10px; left: auto; bottom: auto;} 
#stage #missions-fab { top: 94px; right: 10px; left: auto; bottom: auto;} 
#stage #cam-fab { top: 136px; right: 10px; left: auto; bottom: auto;} 
#stage #view-fab { top: 178px; right: 10px; left: auto; bottom: auto;} 
#stage #pet-fab { top: 220px; right: 10px; left: auto; bottom: auto;} 
#stage #market-fab { top: 262px; right: 10px; left: auto; bottom: auto;} 
#stage #bank-fab { top: 304px; right: 10px; left: auto; bottom: auto;} 
#stage #radio-fab { top: 346px; right: 10px; left: auto; bottom: auto;} 
#stage #ach-fab { top: 388px; right: 10px; left: auto; bottom: auto;} 
#stage #arms-fab { top: 430px; right: 10px; left: auto; bottom: auto;} 
#stage #slot-fab { top: 472px; right: 10px; left: auto; bottom: auto;} 
#stage #char-fab { top: 514px; right: 10px; left: auto; bottom: auto;} 
#stage #mining-fab { top: 556px; right: 10px; left: auto; bottom: auto;} 
#stage #nft-fab { top: 598px; right: 10px; left: auto; bottom: auto;} 
#stage #fishing-fab { top: 640px; right: 10px; left: auto; bottom: auto;} 
#stage #panel-toggle { top: 682px; right: 10px; left: auto; bottom: auto;} 
body.stack-hidden #stage #menu-fab,
body.stack-hidden #stage #missions-fab,
body.stack-hidden #stage #ui-eye,
body.stack-hidden #stage #cam-fab,
body.stack-hidden #stage #view-fab,
body.stack-hidden #stage #pet-fab,
body.stack-hidden #stage #market-fab,
body.stack-hidden #stage #bank-fab,
body.stack-hidden #stage #radio-fab,
body.stack-hidden #stage #ach-fab,
body.stack-hidden #stage #arms-fab,
body.stack-hidden #stage #slot-fab,
body.stack-hidden #stage #char-fab,
body.stack-hidden #stage #mining-fab,
body.stack-hidden #stage #nft-fab,
body.stack-hidden #stage #fishing-fab,
body.stack-hidden #stage #panel-toggle { display: none !important;} 
/* Layar pendek (landscape HP): tangga dipadatkan supaya tumpukan
   tidak tumpah ke zona minimap/stick. */
@media (max-height: 540px) {
  #stage #menu-fab { top: 48px;} 
  #stage #missions-fab { top: 84px;} 
  #stage #cam-fab { top: 120px;} 
  #stage #view-fab { top: 156px;} 
  #stage #pet-fab { top: 192px;} 
  #stage #market-fab { top: 228px;} 
  #stage #bank-fab { top: 264px;} 
  #stage #radio-fab { top: 300px;} 
  #stage #ach-fab { top: 336px;} 
  #stage #arms-fab { top: 372px;} 
  #stage #slot-fab { top: 408px;} 
  #stage #char-fab { top: 444px;} 
  #stage #mining-fab { top: 480px;} 
  #stage #nft-fab { top: 516px;} 
  #stage #fishing-fab { top: 552px;} 
  #stage #panel-toggle { top: 588px;} 
  #stage #menu-fab, #stage #missions-fab, #stage #cam-fab,
  #stage #view-fab, #stage #pet-fab, #stage #market-fab,
  #stage #bank-fab, #stage #radio-fab, #stage #ach-fab,
  #stage #arms-fab, #stage #slot-fab, #stage #char-fab,
  #stage #mining-fab, #stage #nft-fab, #stage #fishing-fab {
    padding: 5px 10px; font-size: 11.5px;}}
  


/* ---------- Koreksi anti-tumpuk hasil periksa foto gerbang
   (19 Nov 2026): di landscape PENDEK (tinggi ≤540px) kolom kanan
   kehabisan ruang — tangga menu (sampai y≈218) bertabrakan dengan
   tombol zoom (kolom kanan lama) dan tombol mobil. Susunan final
   kolom kanan landscape pendek: tangga menu 48..218 → tombol mobil
   (atas 226) + deret zoom mendatar di kirinya (atas 226, kanan 64)
   → minimap 96px di bawah (atas ≈296). Tidak ada yang bertumpuk. */
@media (max-height: 540px) {
  #btn-mode { top: 226px; bottom: auto;} 
  #zoom-controls { top: 226px; right: 64px; bottom: auto; flex-direction: row;} 
  #minimap { width: 96px; height: 96px;}} 

/* ---------- Portrait: tangga menu mulai DI BAWAH blok chip HUD
   kanan (Today/Daerah/Komunitas/jam berakhir ≈175px) supaya tidak
   ada chip yang menimpa tombol; petunjuk putar HP menempel kiri
   (bebas kolom kanan); bar senjata menyisakan ruang minimap. */
@media (orientation: portrait) {
  #stage #menu-fab { top: 182px;} 
  #stage #missions-fab { top: 224px;} 
  #stage #cam-fab { top: 266px;} 
  #stage #view-fab { top: 308px;} 
  #stage #pet-fab { top: 350px;} 
  #stage #market-fab { top: 392px;} 
  #stage #bank-fab { top: 434px;} 
  #stage #radio-fab { top: 476px;} 
  #stage #ach-fab { top: 518px;} 
  #stage #arms-fab { top: 560px;} 
  #stage #slot-fab { top: 602px;} 
  #stage #char-fab { top: 644px;} 
  #stage #mining-fab { top: 686px;} 
  #stage #nft-fab { top: 728px;} 
  #stage #fishing-fab { top: 770px;} 
  #stage #panel-toggle { top: 812px;} 
  #rotate-hint { left: 10px; transform: none; max-width: 74%;} 
  #weapon-bar { max-width: calc(100vw - 118px);}} 


/* ---------- Kontrol mobil SENTUH: STIR + PEDAL (rombak 20 Nov 2026) ----
   Cluster #car-controls hanya tampil bila game.js menyalakan .on
   (sedang menyetir DAN mode kontrol sentuh aktif). Stir kiri bawah;
   pedal kanan — di kiri minimap, di bawah tombol tembak. */
#car-controls { display: none;} 
#car-controls.on { display: block;} 
#wheel {
  position: absolute; left: 8px; bottom: 26px; width: 124px; height: 124px;
  z-index: 9; touch-action: none; cursor: grab;
  -webkit-tap-highlight-color: transparent;}

#wheel:active { cursor: grabbing;} 
#wheel-rot {
  position: absolute; inset: 0; border-radius: 50%;
  border: 11px solid rgba(23, 23, 23, .92);
  background: radial-gradient(circle, rgba(18, 18, 18, .25) 58%, rgba(18, 18, 18, .55) 100%);
  box-shadow: 0 0 0 2px rgba(217, 217, 217, .5), 0 6px 18px rgba(0, 0, 0, .5), inset 0 0 18px rgba(0, 0, 0, .55);}

#wheel-rot.snap { transition: transform .18s ease-out;} 
.wheel-spoke {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 50px;
  margin-left: -5px; transform-origin: 50% 0;
  background: rgba(23, 23, 23, .92); border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(217, 217, 217, .35);}

.wheel-spoke.s1 { transform: rotate(0deg);} 
.wheel-spoke.s2 { transform: rotate(120deg);} 
.wheel-spoke.s3 { transform: rotate(240deg);} 
#wheel-hub {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d3d3d3, #888888 75%);
  border: 2px solid rgba(255, 255, 255, .6);
  box-shadow: 0 0 10px rgba(211, 211, 211, .5);}

#pedals {
  position: absolute; right: 156px; bottom: 12px; z-index: 9;
  display: flex; flex-direction: column; gap: 8px;}

/* Pedal SIMBOL SAJA (K-PEDAL, perintah Danny 21 Nov 00:04):
   tombol ringkas 60x52 HITAM pekat, simbol pedal vektor PUTIH
   tanpa label teks apa pun — gas tinggi-sempit, rem lebar;
   handler + zona sentuh persis seperti sebelumnya. */
#pedals button {
  width: 46px; height: 40px; border-radius: 12px; touch-action: none;
  color: #ffffff; background: #000000;
  border: 2px solid rgba(255, 255, 255, .45); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);}

.pedal-svg { width: 29px; height: 24px; pointer-events: none;} 
#pedals button.on { transform: scale(.94); filter: brightness(1.35); 
}
/* PAD ARAH (24 Nov, perintah Danny 01:45; DIPISAH + BISA
   DIPINDAH 02:02): dua paket simbol — setir KIRI/KANAN di kiri,
   gas/rem ATAS/BAWAH di kanan (bekas titik pedal). Tiap paket
   bisa diseret pemain; posisi tersimpan per perangkat. */
#pad-l { position: absolute; left: 10px; bottom: 64px; z-index: 9;
  display: flex; gap: 10px; -webkit-tap-highlight-color: transparent;}
#pad-r { position: absolute; right: 156px; bottom: 12px; z-index: 9;
  display: flex; flex-direction: column; gap: 8px;
  -webkit-tap-highlight-color: transparent;}
#pad-l.hidden, #pad-r.hidden { display: none;}
#pad-l button, #pad-r button {
  width: 46px; height: 46px; border-radius: 50%; touch-action: none;
  color: #ffffff; background: #000000;
  border: 2px solid rgba(255, 255, 255, .45); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;}
#pad-l button.on, #pad-r button.on { transform: scale(.94); filter: brightness(1.35);}
#pad-l.drag, #pad-r.drag { opacity: .72;}
.pad-svg { width: 21px; height: 21px; pointer-events: none;}
/* AUDIT-UI PORTRAIT (21 Nov, perintah Bos: nol tumpang tindih):
   bar tengah (senjata/HP/bintang) diangkat dari baris kontrol
   bawah portrait, petunjuk putar turun ke ruang kosong tengah,
   fab menu geser menjauhi chip jam. Landscape nol berubah. */
@media (orientation: portrait) {
  /* HUD kanan = kisi 2 kolom rapi, tepi kanan rata (perintah Bos
     23 Nov 02:40: menu dari atas kanan sampai bawah dirapikan,
     tanpa tiban). Lencana level membentang penuh supaya tidak
     membungkus dua baris. */
  /* Judul di baris sendiri, pil MENUMPUK SATU KOLOM rata kanan di
     bawahnya, teks pil TIDAK PERNAH membungkus (akar acak-acakan:
     kisi 2 kolom menekan pil sampai teksnya patah 2-3 baris).
     Tumpukan tombol kanan mulai SESUDAH tumpukan pil berakhir. */
  #hud { flex-direction: column; padding-right: 12px; }
  /* MENTOK KANAN (perintah Bos 23 Nov 03:49): cadangan 92px buat
     tombol pojok cuma perlu di baris judul; kolom pil di bawahnya
     wajib rata kanan penuh, sejajar tepi tombol Menu/Missions. */
  .hud-right { position: absolute; top: 50px; right: 10px;
    display: flex; flex-direction: column; flex-wrap: nowrap;
    align-items: flex-end; gap: 4px; max-width: none; }
  .hud-stat { white-space: nowrap; }
  #stage #menu-fab { top: 150px; }
  #stage #missions-fab { top: 192px; }
  #stage #menu-fab, #stage #missions-fab, #stage #pet-fab {
    min-width: 128px; text-align: center; }
  #objective { top: 370px; }
  /* Bar slot TURUN mendekati kontrol bawah + tumpukan HP/bintang
     mengikuti di atasnya (perintah Bos: agak ke bawah). */
  #weapon-bar { bottom: 164px; }
  #player-hp { bottom: 230px; }
  #wanted-stars { bottom: 262px; }
  #melee-skills { bottom: 232px; }
  #wbar-toggle { bottom: 164px; }
  /* Pet Shop masuk irama tumpukan kanan (Menu 182 / Missions 224 /
     Pet Shop 266 terukur). */
  #stage #pet-fab { top: 234px; }
  /* Pedal sejajar peta portrait (peta 96px): geser ke sisi peta. */
  #pedals { right: 116px; }
  #pad-r { right: 116px; }
  #hit-btn { right: 116px; bottom: 108px; }
  /* Bawaan tombol tembak portrait: di atas bar, bebas dari tombol
     manual (posisi tersimpan pemain tetap menang). */
  #fire-btn { left: 16px; right: auto; bottom: 204px; }
  /* Keker PINDAH KANAN (perintah Bos 23 Nov 04:10 — "tombol keker knpa
     ada 2 sebelah kiri"): tombol bidik + keluar bidik sejajar kolom
     aksi kanan (di atas tombol pukul), kiri tinggal tombol tembak. */
  #aim-btn, #aim-exit-btn { left: auto; right: 116px; bottom: 166px; }
  #rotate-hint { top: 430px; }
  #stage #menu-fab { right: 8px; }
}
