/* Scene controls sit inside the court only. UI/dialogs retain their own hit layer. */
canvas[data-court-selection=true]{touch-action:none}
.court-labels button.court-nameplate{appearance:none;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font:inherit;font-family:AvalonPixel,monospace;font-size:12px;line-height:1.4;text-align:center;color:#f2eee7;opacity:1;cursor:default;pointer-events:none;touch-action:manipulation;user-select:none}
.court-labels button.court-nameplate.ready{color:#a3c9b2}
.court-labels button.court-nameplate[data-selectable=true]{pointer-events:auto;cursor:pointer}
@media (hover: hover) and (pointer: fine){
.court-labels button.court-nameplate[data-selectable=true]:hover{color:#e5e9e3;outline:none}}
.court-labels button.court-nameplate:focus-visible{color:#e5e9e3;outline:none}
.court-labels button.court-nameplate[data-selected=true]{color:#e5e9e3;text-shadow:1px 1px #10141a}
.court-labels[data-packed=true] button.court-nameplate{padding:2px 4px;line-height:16px;background:transparent;border-radius:0}
.court-labels[data-packed=true][data-compact=true] button.court-nameplate{height:auto;max-height:none;grid-template-rows:auto auto;padding:4px}
/* Vote and task labels are read-only, not touch targets. Measure the nickname at its requested 15–20px size and
   both marker rows where needed; do not reserve an empty second row. */
.court-labels[data-packed=true][data-compact=true]:is([data-stage=team_voting],[data-stage=mission_execution]) button.court-nameplate{height:auto;max-height:none;grid-template-rows:auto auto;padding:2px 4px}
.court-labels[data-packed=true][data-compact=true]:is([data-stage=team_voting],[data-stage=mission_execution]) button.court-nameplate:not([data-match-marker~=leader]):not([data-match-marker~=team]){height:auto;max-height:none;grid-template-rows:auto;padding:2px 4px}
/* Native hall_match_markers.gd seven-point crown; sprite outline lives in the
   renderer shader so transparent pixels and court depth still apply. */
.court-selection-marker{position:absolute;left:0;top:0;width:22px;height:13px;background:#d8decf;clip-path:polygon(11.1% 100%,88.9% 100%,100% 20%,70.8% 55%,50% 0%,29.2% 55%,0% 20%);pointer-events:none;transform:translate(-50%,-50%)}
.court-selection-marker[hidden]{display:none!important}
.court-labels:is([data-stage=vote_reveal],[data-stage=mission_reveal]) :is(.court-nameplate,.court-label-lines){visibility:hidden;pointer-events:none}
.court-labels:is([data-stage=assassination],[data-stage=game_result]) .court-nameplate::before,.court-labels:is([data-stage=assassination],[data-stage=game_result]) .court-nameplate::after{content:none}

/* Reuse only the accepted nickname text dimensions; no reward plate or ornament.
   The same centered text layer applies in the waiting room and match phases. */
.court-labels button.court-nameplate .court-label-name{
 display:inline-block;box-sizing:border-box;min-width:0;max-width:clamp(74px,8vw,108px);
 padding-inline:4px;font:400 clamp(15px,1.4vw,20px)/1.2 AvalonPixel,monospace;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;vertical-align:middle;
}
.court-labels[data-packed=true] button.court-nameplate .court-label-name{
 display:block;width:100%;max-width:100%;line-height:1.2;
}
/* Native seat prompt keeps its existing world anchor and single text treatment. */
#pc-seat-hint{font-family:AvalonPixel,monospace;font-size:clamp(18px,1.8vw,24px);line-height:1.2;}

/* Native labels are names only. Leader is the world-space crown; selected
   characters use the existing fixed white silhouette, not extra text rows. */
.court-labels button.court-nameplate::before,
.court-labels button.court-nameplate::after {content:none!important;display:none}
#pc-seat-hint{left:50%;top:22%;transform:translateX(-50%)!important}
