/* Cluck or Fall V113 - minimalist competition HUD.
   Only the clock and functional controls may be visible during gameplay.
   Preserve hidden native HUD nodes because the game reads/writes their values. */

/* Hide ornamental, redundant and competitive overlays (do not delete their data nodes). */
#hud:not([hidden]) :is(.player-card,.score-card,.alive-tag,.event-track,#feed,#radar,.game-bottom,.desktop-dash,#powerStatus,#partyHud,.player-marker,.leader-marker){display:none!important;visibility:hidden!important}
/* The existing projected label follows only the local chicken. */
#hud:not([hidden]) #actorNames:not([hidden]){display:block!important;visibility:visible!important;z-index:35!important}
#hud:not([hidden]) #actorNames .actor-name.local-player:not([hidden]){display:block!important;visibility:visible!important;font-size:14px;line-height:18px;padding:4px 9px;border-radius:8px;max-width:180px;overflow-wrap:anywhere;white-space:normal}

/* Remove the plaque entirely, leaving just the camera button at top right. */
#hud:not([hidden]) .hud-top {
  position:fixed!important;inset:0 auto auto 0!important;top:0!important;left:0!important;
  width:0!important;height:0!important;min-width:0!important;min-height:0!important;
  padding:0!important;margin:0!important;gap:0!important;
  transform:none!important;border:0!important;border-radius:0!important;
  background:none!important;background-image:none!important;box-shadow:none!important;
  display:block!important;overflow:visible!important;pointer-events:none!important;
}
#hud:not([hidden]) .hud-top .timer {display:none!important}
#hud:not([hidden]) .hud-top .top-right {
  position:fixed!important;top:max(8px,env(safe-area-inset-top))!important;
  right:max(12px,env(safe-area-inset-right))!important;
  left:auto!important;width:auto!important;height:auto!important;z-index:40;
  display:flex!important;align-items:center!important;pointer-events:auto!important;
}
#hud:not([hidden]) #cameraBtn {
  width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
  border:0!important;border-radius:50%!important;
  padding:0!important;margin:0!important;background:#071d33a6!important;color:#fff!important;
  box-shadow:none!important;font-size:23px!important;backdrop-filter:blur(2px);
}
/* Clock floating directly over the world: no cards, plaques, labels, margins or background. */
#v138Objective:not([hidden]) {
  position:fixed!important;z-index:39!important;
  top:max(7px,env(safe-area-inset-top))!important;left:50%!important;
  transform:translateX(-50%)!important;width:auto!important;min-width:0!important;
  height:auto!important;max-width:none!important;min-height:0!important;
  display:block!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:none!important;
  box-shadow:none!important;line-height:1!important;pointer-events:none!important;
}
#v138Objective :is(strong,small) {display:none!important}
#v138Objective .v138-time {
  display:block!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:none!important;
  box-shadow:none!important;font:900 clamp(32px,3.6vw,49px)/1 Bungee,Impact,sans-serif!important;
  color:#fff8dc!important;text-shadow:0 2px 4px #071529,1px 3px 0 #102c3a!important;
  font-variant-numeric:tabular-nums!important;text-align:center!important;
}
/* Exit: an actual button (not a HUD card), accessible in PC and mobile. */
#hud:not([hidden]) #matchExitBtn {
  position:fixed!important;top:max(8px,env(safe-area-inset-top))!important;
  left:max(12px,env(safe-area-inset-left))!important;
  right:auto!important;z-index:40!important;
  min-width:0!important;min-height:42px!important;height:42px!important;
  padding:0 11px!important;margin:0!important;gap:5px!important;
  border:0!important;border-radius:22px!important;
  background:#071d33a6!important;color:white!important;
  box-shadow:none!important;font:800 12px/1 Nunito,Arial,sans-serif!important;
  backdrop-filter:blur(2px);pointer-events:auto!important;
}
#hud:not([hidden]) #matchExitBtn svg {width:19px!important;height:19px!important}
#hud:not([hidden]) :is(#matchExitBtn,#cameraBtn):focus-visible {outline:3px solid #ffe187!important;outline-offset:3px!important}

/* Touch stick, jump and action buttons are unchanged and remain operational. */
@media(max-width:600px){
  #v138Objective .v138-time{font-size:35px!important}
  #hud:not([hidden]) #matchExitBtn{width:42px!important;padding:0!important;justify-content:center!important}
  #hud:not([hidden]) #matchExitBtn span{display:none!important}
  #hud:not([hidden]) #cameraBtn{width:42px!important;height:42px!important}
}
@media(max-height:450px) and (orientation:landscape){
  #v138Objective:not([hidden]){top:max(3px,env(safe-area-inset-top))!important}
  #v138Objective .v138-time{font-size:30px!important}
  #hud:not([hidden]) #matchExitBtn,#hud:not([hidden]) .hud-top .top-right {top:max(3px,env(safe-area-inset-top))!important}
}
