/* The walk round is one compact workspace: position and objective, map and
   available moves, then optional review. Shared room rankings live outside it. */
.map-race{container:walk-round / inline-size}
.map-race .walk-summary{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.3fr) auto;gap:12px 24px;align-items:center;padding:4px 0 10px;margin-bottom:8px}
.map-race .walk-current{display:grid;gap:4px;margin:0;line-height:1.25;min-width:0;max-width:100%;justify-self:start}
.map-race .walk-current:focus{outline:2px solid var(--focus,#d9b17c);outline-offset:4px;border-radius:2px}
.map-race .walk-current>span:first-child{font-size:.75rem;font-weight:400;color:var(--muted)}
.map-race .walk-current>span:last-child{font-size:clamp(1.25rem,2vw,1.65rem);letter-spacing:-.025em}
.map-race .walk-destination{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:none;margin:0}
.map-race .walk-destination strong{font-size:1rem;font-weight:600}
.map-race .walk-destination .small{font-size:.75rem}
.map-race .walk-stats{display:grid;gap:4px;margin:0;text-align:right;font-size:.75rem;color:var(--muted)}
.map-race .walk-clock{font-size:1rem;color:var(--text);margin:0}
.map-race .walk-warmth{margin:0 0 12px}
.map-race .walk-heat-track{height:4px;margin-top:6px}
.map-race .walk-board{grid-template-columns:minmax(0,1fr) minmax(230px,27%);gap:16px;align-items:start}
.map-race .walk-board:has(.walk-sidebar[hidden]){grid-template-columns:minmax(0,1fr)}
.map-race .atlas-viewport{height:clamp(300px,32vw,390px);min-height:0;aspect-ratio:auto}
.map-race .walk-sidebar>p{font-size:.75rem;line-height:1.4;margin:0 0 10px}
.map-race .walk-neighbors{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.map-race .walk-neighbors button{min-height:44px;height:100%;padding:8px 10px;font-size:.8125rem;background:var(--surface,transparent)}
.map-race .walk-neighbors button:not(:disabled):hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,transparent)}
.map-race .walk-actions{display:grid;grid-template-columns:1fr;gap:6px;margin:10px 0 0}
.map-race .walk-actions button{min-height:36px;margin:0;font-size:.75rem;padding:6px 10px}
.map-race .walk-meta{display:flex;align-items:start;justify-content:space-between;gap:8px 20px;margin-top:8px;color:var(--muted)}
.map-race .walk-coverage{margin:0;font-size:.6875rem;line-height:1.5;max-width:65ch}
.map-race .walk-help{margin:0;min-width:10rem;max-width:30rem;text-align:right}
.map-race .walk-help summary{font-size:.6875rem;min-height:24px;white-space:nowrap}
.map-race .walk-hint{font-size:.75rem;line-height:1.5;margin:4px 0 0;text-align:left}
.map-race .walk-review{display:flex;flex-wrap:wrap;gap:0 24px;padding:7px 0}
.map-race .walk-review details{margin:0;min-width:0;flex:1}
.map-race .walk-review summary{font-size:.8125rem;min-height:32px;display:list-item;align-content:center}
.map-race .walk-review p{margin:6px 0 10px;font-size:.8125rem}
.map-race [hidden]{display:none!important}
.map-dialog .map-race .atlas-viewport{height:clamp(300px,55dvh,850px)}
@media(min-width:761px){
  .map-dialog .map-race{display:flex;flex-direction:column;height:100%;min-height:0}
  .map-dialog .map-race .walk-content{display:flex;flex-direction:column;flex:1;min-height:0}
  .map-dialog .map-race .walk-board{flex:1;min-height:300px;align-items:stretch}
  .map-dialog .map-race .walk-map{display:flex;min-height:0}
  .map-dialog .map-race .atlas-viewport{flex:1;height:auto;min-height:300px}
}
@media(max-width:760px){
  .map-race .walk-summary{grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding-top:4px}
  .map-race .walk-current{grid-column:1}.map-race .walk-stats{grid-column:2;grid-row:1}
  .map-race .walk-destination{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .map-race .walk-destination>div{display:grid;gap:3px}.map-race .walk-destination strong{font-size:.875rem}
  .map-race .walk-board,.map-dialog .map-race .walk-board{grid-template-columns:minmax(0,1fr);gap:12px}
  .map-race .atlas-viewport{height:300px}.map-race .walk-sidebar{margin:0}
  .map-race .walk-neighbors{grid-template-columns:repeat(4,minmax(0,1fr))}
  .map-race .walk-actions{display:flex;flex-wrap:wrap;gap:8px}.map-race .walk-actions button{min-height:40px}
  .map-race .walk-meta{flex-wrap:wrap;gap:4px}.map-race .walk-help{text-align:left;min-width:0;max-width:none}
}
@media(max-width:480px){
  .map-race .walk-neighbors{grid-template-columns:repeat(2,minmax(0,1fr))}
  .map-race .atlas-viewport{height:260px}
  .map-race .walk-review{gap:0 12px}
}
@media(prefers-reduced-motion:reduce){.map-race .walk-neighbors button{transition:none}}
/* A room sidebar can leave a narrow map even on a desktop window. Respond to
   the actual workspace width, not only the viewport. */
@container walk-round (max-width:640px){
  .map-race .walk-summary{grid-template-columns:minmax(0,1fr) auto;gap:10px 16px}
  .map-race .walk-current{grid-column:1}.map-race .walk-stats{grid-column:2;grid-row:1}
  .map-race .walk-destination{grid-column:1/-1}
  .map-race .walk-board{grid-template-columns:minmax(0,1fr);gap:12px}
  .map-race .atlas-viewport{height:300px}.map-race .walk-sidebar{margin:0}
  .map-race .walk-neighbors{grid-template-columns:repeat(4,minmax(0,1fr))}
  .map-race .walk-actions{display:flex;flex-wrap:wrap;gap:8px}.map-race .walk-actions button{min-height:40px}
  .map-race .walk-meta{flex-wrap:wrap;gap:4px}.map-race .walk-help{text-align:left;min-width:0;max-width:none}
}
@container walk-round (max-width:480px){
  .map-race .walk-neighbors{grid-template-columns:repeat(2,minmax(0,1fr))}
  .map-race .atlas-viewport{height:260px}
}
