/* CentralRP Phone v1.7.7 */

/* In camera mode the actual GTA scripted camera fills the whole game frame.
   Mask it completely outside the phone and center the physical phone in BOTH
   axes. The transparent phone screen is therefore a true 1:1 viewfinder. */
.phone-wrap.open.camera-live:not(.camera-landscape){
  top:50%!important;
  bottom:auto!important;
  right:50%!important;
  transform:translate(50%,-50%) scale(var(--phone-scale))!important;
  transform-origin:center center!important;
  box-shadow:0 0 0 200vmax #03060a!important;
}
.phone-wrap.open.camera-live.camera-landscape{
  top:50%!important;
  bottom:auto!important;
  right:50%!important;
  transform:translate(50%,-50%) scale(var(--phone-scale))!important;
  transform-origin:center center!important;
  box-shadow:0 0 0 200vmax #03060a!important;
}

/* Wallpaper-aware status chrome. Difference mode gives white copy on dark
   pixels and black copy on pale pixels. Battery remains a normal white badge. */
#phone .statusbar.auto-contrast-v177 #statusTime,
#phone .statusbar.auto-contrast-v177 .status-right > :not(.battery){
  color:#fff!important;
  mix-blend-mode:difference!important;
  filter:grayscale(1) contrast(12)!important;
  text-shadow:none!important;
}
#phone .statusbar.auto-contrast-v177 .signal-live-v173 i{background:currentColor!important}
#phone .statusbar.auto-contrast-v177 .battery{
  color:#111!important;
  background:#f5f5f5!important;
  mix-blend-mode:normal!important;
  filter:none!important;
  text-shadow:none!important;
}

/* Override the old light-theme rule that forced black status text even over a
   dark custom wallpaper. */
#phone[data-theme="light"] .statusbar.auto-contrast-v177 #statusTime,
#phone[data-theme="light"] .statusbar.auto-contrast-v177 .status-right > :not(.battery){color:#fff!important}
