/* Absolute badges preserve all existing card dimensions and content alignment. */
html[data-ui-runtime=web] body.faithful-target #players .player,
html[data-ui-runtime=web] #phone-faithful .players>.player{position:relative}
html[data-ui-runtime=web] .current-turn-badge {
 --turn-glow: #ffab58;
 position:absolute;top:4px;right:8px;z-index:2;
 display:inline-flex;align-items:center;gap:4px;
 width:max-content;max-width:calc(100% - 12px);padding:3px 7px;
 border:1px solid var(--turn-glow);border-radius:20px;
 background:#21282d;color:var(--turn-glow);
 font:600 10px/1.15 system-ui,sans-serif;
 white-space:nowrap;pointer-events:none;text-shadow:none;
}
html[data-ui-runtime=web] .current-turn-badge[data-connected] { --turn-glow: #74e59a; }
html[data-ui-runtime=web] .current-turn-badge::before {
 content:'';width:4px;height:4px;flex:none;border-radius:50%;
 background:currentColor;
 animation:turn-signal 1.8s ease-in-out infinite;
}
@keyframes turn-signal {
 0%, 100% { opacity:.5; box-shadow:0 0 0 transparent; }
 50% { opacity:1; box-shadow:0 0 6px 2px currentColor; }
}
@media(prefers-reduced-motion:reduce) {
 .current-turn-badge::before { animation:none!important; }
}
/* Existing owner/bot metadata remains visible in its own top-left corner. */
html[data-ui-runtime=web] #players .player[data-current-turn]>.seat-label{right:auto;left:9px;max-width:calc(100% - 110px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-ui-runtime=web] #phone-faithful .current-turn-badge{top:1px;right:3px;padding:1px 4px;gap:3px;font-size:8px;line-height:10px}
@media(orientation:landscape) and (max-height:600px){html[data-ui-runtime=web] #phone-faithful .current-turn-badge{top:0;right:2px;font-size:8px;padding:0 3px}}
/* A compact status dot leaves narrow phone names/resources unobstructed;
   the existing turn strip retains the full visible player/turn text. */
html[data-ui-runtime=web] #phone-faithful .current-turn-badge{top:3px;right:4px;width:11px;height:11px;min-width:11px;max-width:11px;padding:0;gap:0;justify-content:center;font-size:0;line-height:0}
@media(orientation:landscape) and (max-height:600px){html[data-ui-runtime=web] #phone-faithful .current-turn-badge{left:50%;right:auto;transform:translateX(-50%);top:3px}}

html[data-ui-runtime=web] .priority-turn-button {
 display:inline-flex;align-items:center;justify-content:center;gap:4px;
 min-height:24px;padding:2px 6px;border:1px solid #bfa164;border-radius:999px;
 background:#192932;color:#ffe6af;font:700 11px/1 system-ui,sans-serif;
 white-space:nowrap;cursor:pointer
}
html[data-ui-runtime=web] .priority-turn-button span{color:#f0cd81;font-size:13px}
html[data-ui-runtime=web] .priority-turn-button:focus-visible{outline:2px solid #80d7dd;outline-offset:2px}
html[data-ui-runtime=web] .priority-turn-button[data-priority-active]{background:#564025}
html[data-ui-runtime=web] #players .player>.priority-turn-button{position:absolute;top:27px;right:8px;z-index:3}
html[data-ui-runtime=web] #players:has(.player:nth-child(4)) .player:has(>.priority-turn-button)>.current-turn-badge{
 font-size:0;padding:3px;gap:0
}
html[data-ui-runtime=web] #phone-faithful .turn-strip>.priority-turn-button{flex:none;min-height:28px}

html[data-ui-runtime=web] .priority-turn-info{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:24px;padding:2px 6px;border:1px solid #bfa164;border-radius:999px;background:#192932;color:#ffe6af;font:700 11px/1 system-ui,sans-serif;white-space:nowrap;cursor:help}
html[data-ui-runtime=web] .priority-turn-info span{color:#f0cd81;font-size:13px}
html[data-ui-runtime=web] .priority-turn-info[data-priority-active]{background:#564025}
html[data-ui-runtime=web] #players .player>.priority-turn-info{position:absolute;top:27px;right:8px;z-index:3}

#vehicle-info{position:fixed;z-index:2147483000;min-width:200px;max-width:280px;padding:8px 12px 10px;border:1px solid #bfa164;border-left:4px solid var(--p,#bfa164);border-radius:10px;background:#101d29f2;color:#ffe6af;font:600 13px/1.4 "Source Sans 3",system-ui,sans-serif;box-shadow:0 6px 18px #000a;pointer-events:none}
#vehicle-info strong{display:block;margin-bottom:4px;font-size:14px;color:#fff0cb}
#vehicle-info div{display:flex;justify-content:space-between;gap:14px}
#vehicle-info div span{color:#d9c28d;font-weight:500}
#vehicle-info .company-name{display:inline-flex;align-items:center;gap:6px}
#vehicle-info .company-symbol{width:20px;height:20px;flex:none}
/* 4-5 players: narrow panels, so the Missions and Priority pills shrink and never reach the company name */
html[data-ui-runtime=web] #players:has(.player:nth-child(4)) .priority-turn-info,
html[data-ui-runtime=web] #players:has(.player:nth-child(4)) .player>.priority-turn-button{right:6px;padding:2px 5px;gap:2px;min-height:24px}
html[data-ui-runtime=web] #players:has(.player:nth-child(4)) .priority-turn-info em{display:none}
