#world { display: block; position: fixed; inset: 0; }
/* ----- Label 3D ----- */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.lab { position: absolute; transform: translate(-50%, -100%); background: #fff; padding: 2px 10px 2px 7px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); border: 2px solid; }
.poslab { position: absolute; transform: translate(-50%, -100%); background: rgba(20, 32, 43, .82); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.poslab.on { background: var(--accent); }
.pop { position: absolute; transform: translate(-50%, -100%); font-weight: 800; font-size: 20px; color: #fff; padding: 3px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); animation: pop 1.8s ease-out forwards; }
@keyframes pop { 0% { opacity: 0; margin-top: 10px } 15% { opacity: 1; margin-top: 0 } 75% { opacity: 1 } 100% { opacity: 0; margin-top: -60px } }

/* ----- Sinematik ----- */
.cinebar { position: fixed; left: 0; right: 0; height: 0; background: #05070a; z-index: 8; transition: height .9s cubic-bezier(.6, 0, .2, 1); }
#barT { top: 0 } #barB { bottom: 0 }
body.cine .cinebar { height: 11vh; }
#cinetitle { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9; pointer-events: none; opacity: 0; transform: scale(.97); transition: opacity 1s, transform 3s ease-out; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); text-align: center; padding: 0 8vw; }
#cinetitle.show { opacity: 1; transform: scale(1); }
#cinetitle .k { font-size: clamp(14px, 1.5vw, 22px); letter-spacing: .45em; text-transform: uppercase; opacity: .92; }
#cinetitle .t { font-size: clamp(44px, 7vw, 110px); font-weight: 800; margin: .05em 0 .1em; line-height: 1.05; }
#cinetitle .s { font-size: clamp(16px, 1.8vw, 28px); font-style: italic; opacity: .95; max-width: 1000px; }
#cinefade { position: fixed; inset: 0; background: #05070a; opacity: 0; z-index: 10; pointer-events: none; transition: opacity .6s; }
.lab.mine { background: #ffd54a; border-color: #b8860b !important; font-size: 15px; box-shadow: 0 0 0 4px rgba(255, 213, 74, .35), 0 4px 14px rgba(0, 0, 0, .25); }
.emote { position: absolute; transform: translate(calc(-50% + var(--dx, 0px)), -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: emote 2.4s ease-out forwards; }
.emote span { font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.emote small { font-size: 11px; font-weight: 700; background: rgba(20, 32, 43, .78); color: #fff; padding: 1px 7px; border-radius: 999px; margin-top: 2px; white-space: nowrap; }
@keyframes emote { 0% { opacity: 0; margin-top: 10px; scale: .5 } 12% { opacity: 1; margin-top: 0; scale: 1.15 } 25% { scale: 1 } 75% { opacity: 1 } 100% { opacity: 0; margin-top: -90px } }
body.cine #labels { opacity: 0; }
@media (max-width: 700px) {
  #cinetitle .t { font-size: 34px; }
  #cinetitle .k { font-size: 12px; letter-spacing: .3em; }
  #cinetitle .s { font-size: 15px; }
  .lab, .poslab { font-size: 11px; }
  .lab.mine { font-size: 12px; }
  body.cine .cinebar { height: 9vh; }
}
/* Tombol kembali ke toko sendiri setelah peta digeser */
#recenter { position: fixed; z-index: 6; top: calc(env(safe-area-inset-top) + 62px); right: calc(var(--world-right, 0px) + 12px); display: none; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 8px 14px 8px 11px; background: #ffd54a; color: #3e2c00; font: 700 13px/1 system-ui, sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); cursor: pointer; }
#recenter.show { display: flex; animation: recIn .3s ease-out; }
@keyframes recIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.cine #recenter { display: none; }
