/* JustiX 0.8.2.2 — approved integrated jurisdiction flag + witness spacing */
.jx-country-flag{
  position:absolute;
  left:31%;
  top:16.5%;
  width:66px;
  height:104px;
  z-index:2;
  pointer-events:none;
  transform:perspective(220px) rotateY(5deg) rotateZ(-1deg);
  transform-origin:top center;
  filter:drop-shadow(0 12px 16px rgba(0,0,0,.38));
}
.jx-country-flag::before{
  content:"";
  position:absolute;
  left:-5px;
  top:-8px;
  width:3px;
  height:118px;
  border-radius:3px;
  background:linear-gradient(90deg,#8f6b2a,#f4d56d 48%,#86611f);
  box-shadow:0 2px 7px rgba(0,0,0,.42);
}
.jx-country-flag::after{
  content:"";
  position:absolute;
  left:-9px;
  top:-12px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:linear-gradient(145deg,#f7da78,#a87b22);
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}
.jx-flag-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:fill;
  border-radius:2px 5px 7px 2px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 8px 20px rgba(0,0,0,.32);
  transform:skewY(-1.2deg);
  background:#142235;
}
.room-emblem{z-index:3}.room-clock{z-index:4;white-space:nowrap}

/* Approved witness position: only a modest upward move, enough to clear the participant below. */
.witness3d{top:21.5%!important}

@media(max-width:900px){
  .jx-country-flag{left:29%;top:17.5%;width:58px;height:92px}
  .jx-country-flag::before{height:104px}
  .witness3d{top:23.5%!important}
}
@media(max-width:650px){
  .jx-country-flag{left:25%;top:19%;width:50px;height:80px}
  .jx-country-flag::before{height:91px}
  .witness3d{top:25.5%!important}
}
@media(max-width:430px){
  .jx-country-flag{left:21%;top:21%;width:42px;height:68px}
  .jx-country-flag::before{height:79px}
  .room-clock{font-size:6px!important;letter-spacing:.18em!important}
  .witness3d{top:26.5%!important}
}
