/* Reserve all gameplay status space: only resizing the window changes the board scale. */
@media(max-width:700px) and (orientation:portrait){
 body.phone-portrait .sea-panel{--status-block-height:132px!important;padding-top:132px!important}
 #regattaStatusHeader{height:132px;box-sizing:border-box;grid-template-rows:34px 32px 40px;row-gap:4px;padding:9px 12px}
 #regattaStatusHeader #compactOwnBoat strong{font-size:14px;line-height:17px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 #regattaStatusHeader>#instruction{font-size:14px;line-height:16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;align-self:start}
 #regattaStatusHeader .status-details{display:grid!important;grid-template-columns:1fr;grid-template-rows:12px 24px;height:40px;box-sizing:border-box;gap:0;margin:0;padding-top:3px}
 .count-at-start #regattaStatusHeader .status-details{visibility:hidden;pointer-events:none}
 #regattaStatusHeader #startClock{height:12px;min-height:0}#regattaStatusHeader #startClock strong{font-size:10px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #regattaStatusHeader #raceLeader{display:block!important;height:24px;min-height:0;max-height:24px;overflow:hidden;text-align:left;font-size:10px;line-height:12px}
 #regattaStatusHeader #raceLeader b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:12px}
 #regattaStatusHeader #raceLeader[hidden]{display:block!important;visibility:hidden;pointer-events:none}
 .sea-panel .startwarning{position:absolute;left:8px;right:8px;top:132px!important;z-index:4;max-height:40px;overflow:auto;border-radius:8px}
 body.phone-portrait .right{height:108px;max-height:108px;min-height:108px}
 body.phone-portrait .turnpanel{position:relative;height:108px;min-height:108px;max-height:108px;box-sizing:border-box;overflow:hidden;display:grid;grid-template-rows:56px 38px!important;gap:4px;padding:6px 8px}
 .turnpanel #actionToolbar{grid-row:1!important;margin:0}
 .turnpanel #lastPointTurn{position:absolute;left:8px;right:8px;bottom:6px;height:34px;min-height:34px;margin:0;padding:5px;font-size:10px;z-index:2;background:#fff0d4}
 .turnpanel #message{position:absolute;left:10px;right:10px;bottom:8px;max-height:28px;overflow:hidden;margin:0;font-size:10px;line-height:14px}
 .turnpanel.needs-last-turn #message{visibility:hidden}
 .turnpanel #nextRaceBtn{position:absolute;bottom:6px;left:8px;right:8px;width:calc(100% - 16px);height:34px;min-height:34px;padding:4px}
}
@media(min-width:701px),(orientation:landscape){
 .sea-panel>#raceLeader{display:flex!important;flex:0 0 36px;min-height:36px;height:36px;max-height:36px;box-sizing:border-box;overflow:hidden}
 .sea-panel>#raceLeader[hidden]{visibility:hidden;pointer-events:none}
 .sea-panel>#startClock{height:36px;min-height:36px;max-height:36px;box-sizing:border-box;overflow:hidden;flex-shrink:0}
 .sea-panel.count-at-start>#startClock{display:flex!important;visibility:hidden}
}

#instruction.computer-instruction{visibility:hidden}
/* The new white tokens have no selection border; the blue marker identifies your boat. */
#board .active-turn-ring{display:none}
