/* One screen for events entered from the world, the cabinet or a tour. */
body.round-open{overflow:hidden;background:#10171d}
.round-open #cabinet .system-bar{display:none}
.round-open #cabinet #match-screen:not([hidden]){
  position:fixed;inset:0;display:grid;grid-template: auto minmax(0,1fr) auto auto / minmax(0,1fr);
  gap:0;width:100%;height:100dvh;max-width:none;margin:0;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background:#10171d;
}
.round-open .match-bar{grid-area:1/1;min-width:0;margin:0;padding:1px 1%;gap:5px;border-bottom:1px solid #665f50}
.round-open .match-bar h2{font-size:clamp(16px,2.1vmin,27px);text-shadow:none}
.round-open .match-bar .eyebrow{display:none}
.round-open .match-bar button{padding:3px 8px;min-height:32px;font-size:clamp(13px,1.8vmin,18px);background:none;box-shadow:none;border:0}
.round-open .match-tools{display:flex;align-items:center}
.round-open #match-screen #arena-layout,.round-open #match-screen #arena-layout.briefing{
  grid-area:2/1;container-type:size;display:grid;grid-template:1fr/1fr;place-items:center;
  width:100%;height:100%;min-height:0;margin:0;gap:0;position:relative;
}
.round-open #match-screen #arena-layout .viewport{
  grid-area:1/1;width:min(100cqw,177.77778cqh);max-width:100%;border:0;box-shadow:none;aspect-ratio:16/9;margin:0;
}
.round-open #match-screen #arena-layout.briefing .viewport{filter:brightness(.65)}
.round-open #match-screen #brief{
  grid-area:1/1;position:relative;align-self:center;justify-self:center;z-index:2;
  width:min(510px,94cqw);max-height:96cqh;overflow:auto;max-width:none;
  padding:clamp(10px,2cqh,22px);background:#15212bf5;border:0;border-block:2px solid #ab946e;box-shadow:none;
}
.round-open #brief h3{font-size:clamp(22px,4cqh,40px)}
.round-open #brief-goal{font-size:clamp(15px,2.6cqh,22px)}
.round-open #match-screen .companion{grid-area:3/1;display:none}
.round-open #match-screen .companion:has(#coach-actions:not([hidden])){display:flex;width:min(100%,960px);margin:0 auto}
.round-open #match-screen #round-buttons{grid-area:4/1;align-self:stretch;min-height:43px;gap:4px;padding:2px;box-shadow:0 -1px #55574f;background:#1a242a}
.round-open #round-buttons button{min-height:39px;border:0;box-shadow:none;padding:2px 9px;background:#243138}
.round-open #round-buttons .gesture{font-size:10px}
.round-open #round-buttons .control-name{font-size:clamp(14px,1.9vmin,20px)}
.round-open #kit-extras,.round-open #course-extras{display:block;color:var(--sub);font-size:15px;margin-bottom:8px}
.round-open #round-status,.round-open #round-clock{font-size:clamp(12px,1.6vmin,19px)}
@media(pointer:coarse){.round-open #round-buttons button,.round-open .match-bar button{min-height:44px}}
.round-open #arena-layout:not(.briefing) #arena{touch-action:none}
@media(max-width:600px){.round-open .match-bar h2{font-size:15px}.round-open .match-bar button{font-size:13px;padding:3px}.round-open .match-bar #leave-game{max-width:30%}.round-open #round-buttons button{flex:1 1 auto}}
@media(orientation:portrait){
  .round-open #cabinet #match-screen:not([hidden]){grid-template-rows:auto auto auto auto;align-content:center}
  .round-open #match-screen #arena-layout{height:min(56.25vw,calc(100dvh - 155px))}
  .round-open #match-screen #arena-layout.briefing{height:min(72dvh,max(56.25vw,340px))}
}
@media(orientation:landscape) and (max-height:570px) and (min-aspect-ratio:2/1){
  .round-open #cabinet #match-screen:not([hidden]){
    grid-template:1fr / minmax(0,1fr) min(177.77778dvh,calc(100% - 140px)) minmax(0,1fr);
  }
  .round-open #match-screen #arena-layout,.round-open #match-screen #arena-layout.briefing{grid-area:1/2;height:100%}
  .round-open #match-screen .match-bar{grid-area:1/1;flex-direction:column;justify-content:center;align-items:stretch;padding:0 2px;border:0}
  .round-open #match-screen .match-bar>div:not(.match-tools){display:none}
  .round-open .match-tools{flex-direction:column;align-items:stretch}
  .round-open #match-screen .match-bar button{line-height:1.04;white-space:normal;max-width:none;min-height:44px}
  .round-open #match-screen #round-buttons{grid-area:1/3;align-self:center;flex-direction:column;flex-wrap:nowrap;max-height:100%;overflow:auto;box-shadow:none;background:none}
  .round-open #round-buttons button{justify-content:center;min-height:44px;padding:2px;text-align:center}
  .round-open #round-buttons .control-name{white-space:normal;font-size:13px}
  .round-open #match-screen .companion:has(#coach-actions:not([hidden])){
    grid-area:1/2;align-self:end;width:auto;z-index:3;max-width:95%;
  }
}
