/* v1.6.53: phase navigation appears only once the draft is complete. */
.phase-progress{gap:6px;margin:0 0 20px;align-items:stretch}
.phase-progress .phase-step{
  appearance:none;min-width:0;min-height:38px;cursor:pointer;
  transition:background-color .12s ease,border-color .12s ease,color .12s ease;
}
.phase-progress .phase-step:not(:disabled):hover{background:#344451!important;border-color:#a88a55!important;color:#f5e2b6!important}
.phase-progress .phase-step:focus-visible{outline:2px solid #e7b85e;outline-offset:3px}
.phase-progress .phase-step.is-selected{border-color:#be955c!important;background:#43382c!important;color:#ffe2ad!important}
.phase-progress .phase-step.is-locked,.phase-progress .phase-step:disabled{
  cursor:not-allowed;opacity:.46;background:#17232f!important;border-color:#2b3945!important;color:#a0abb5!important;
}
.phase-progress .phase-step:disabled:hover{transform:none}
.historical-vote-maps .map-card{pointer-events:none;transform:none!important}
.historical-vote-maps .map-card:not(.historical-winner){opacity:.72}
.historical-vote-maps .historical-winner{border-color:#e3b866!important;box-shadow:0 0 0 2px #e3b86635}
/* Keep four-phase navigation available while the draft/replay uses full-screen mode. */
body.draft-focus-mode .phase-draft-shell{
  display:flex;flex-direction:column;width:100%;min-height:100dvh;
  background:rgba(9,17,22,.75);
}
body.draft-focus-mode .phase-draft-shell .phase-progress{
  flex:0 0 52px;padding:7px 10px;margin:0;background:rgba(13,22,32,.97);
  border-bottom:1px solid #354452;gap:7px;
}
body.draft-focus-mode .phase-draft-shell .phase-progress .phase-step{min-height:36px;padding:7px 5px}
body.draft-focus-mode .phase-draft-shell .arena-draft-reference{
  flex:1 1 auto;height:calc(100dvh - 52px)!important;min-height:calc(100dvh - 52px)!important;
}
/* No invisible 52px navigation gap while voting/playing the draft. */
body.draft-focus-mode .phase-draft-shell:not(.has-phase-navigation) .arena-draft-reference{
  height:100dvh!important;min-height:100dvh!important;
}
@media(max-width:1250px){
  body.draft-focus-mode .phase-draft-shell .arena-draft-reference{height:auto!important;min-height:calc(100dvh - 52px)!important}
  body.draft-focus-mode .phase-draft-shell:not(.has-phase-navigation) .arena-draft-reference{height:auto!important;min-height:100dvh!important}
}
@media(max-width:650px){
  .phase-progress{gap:4px;margin-bottom:12px}
  .phase-progress .phase-step{font-size:9px;min-height:44px;line-height:1.25;white-space:normal;padding:7px 3px}
  body.draft-focus-mode .phase-draft-shell .phase-progress{gap:3px;padding:5px 4px;flex-basis:52px}
  body.draft-focus-mode .phase-draft-shell .phase-progress .phase-step{font-size:8px;min-height:41px}
}

/* v1.6.59: Real draft links support middle-click/new tab, while looking like existing buttons. */
.phase-progress a.phase-step{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.phase-progress a.phase-step:hover{background:#344451!important;border-color:#a88a55!important;color:#f5e2b6!important}
.brand[href]{cursor:pointer;text-decoration:none}
.brand[href]:focus-visible{outline:2px solid #e7b85e;outline-offset:5px;border-radius:8px}
