/* The measured gutter becomes part of the canvas coordinate space and has no hit targets. */
.play-shell:not(.fish-shell) .game-sheet::before{
 content:"";position:absolute;top:0;left:0;width:0;height:0;pointer-events:none
}
@media (min-width:600px){
 .play-shell:not(.fish-shell) .game-sheet{width:min(100%,clamp(475px,72vw,565px))}
}
@media (min-width:660px) and (min-aspect-ratio:9/10){
 .play-shell:not(.fish-shell){padding:10px max(10px,env(safe-area-inset-right)) 18px max(10px,env(safe-area-inset-left))}
 .play-shell:not(.fish-shell) .game-sheet{width:min(100%,1090px);border-radius:12px;overflow:hidden}
 .play-shell:not(.fish-shell) .game-sheet::before{width:clamp(10px,1.4vw,18px)}
}
@media (min-width:600px) and (orientation:portrait){
 .play-shell.fish-shell,.in-fishery #overlay .modal-cover{
  inset:0;width:100%;height:100dvh;transform:none;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)
 }
 .fish-shell .fish-rotate-hint,.fish-shell .fish-rotate-hint:not([hidden]){display:none}
 .in-fishery #friendNotice{right:max(12px,env(safe-area-inset-right));left:auto;transform:none}
}
.play-shell.fish-shell{--fish-rotated:0}
@media (max-width:599px) and (orientation:portrait){.play-shell.fish-shell{--fish-rotated:1}}
@media (horizontal-viewport-segments:2){
 .play-shell:not(.fish-shell){display:block;padding-inline:0}
 .play-shell:not(.fish-shell) .game-sheet{
  --pane:min(env(viewport-segment-width 0 0),env(viewport-segment-width 1 0));
  --seam:calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
  width:calc(var(--pane) + var(--pane) + var(--seam));margin-left:calc(env(viewport-segment-right 0 0) - var(--pane))
 }
 .play-shell:not(.fish-shell) .game-sheet::before{width:var(--seam)}
 /* Moving targets must never cross the physical gap. Give the sea one continuous pane. */
 .play-shell.fish-shell,.in-fishery #overlay .modal-cover{
  inset:env(viewport-segment-top 0 0) auto auto env(viewport-segment-left 0 0);
  width:env(viewport-segment-width 0 0);height:env(viewport-segment-height 0 0);
  transform:none;--fish-rotated:0
 }
}
@media (vertical-viewport-segments:2){
 #app:has(> .play-shell:not(.fish-shell)) > #roomBar{
  position:fixed;inset:env(viewport-segment-top 0 1) auto auto env(viewport-segment-left 0 1);
  width:env(viewport-segment-width 0 1);max-height:env(viewport-segment-height 0 1);overflow:auto;margin:0
 }
 .play-shell:not(.fish-shell){
  position:fixed;inset:env(viewport-segment-top 0 0) auto auto env(viewport-segment-left 0 0);
  width:env(viewport-segment-width 0 0);height:env(viewport-segment-height 0 0);
  display:flex;min-height:0;align-items:center;justify-content:center;padding:6px;overflow:hidden
 }
 .play-shell:not(.fish-shell) .game-sheet{
  width:min(100%,calc((env(viewport-segment-height 0 0) - 12px) * var(--board-panel-aspect,1.6)));margin:0
 }
 .play-shell:not(.fish-shell) .game-sheet::before{width:10px}
 .play-shell.fish-shell,.in-fishery #overlay .modal-cover{
  inset:env(viewport-segment-top 0 0) auto auto env(viewport-segment-left 0 0);
  width:env(viewport-segment-width 0 0);height:env(viewport-segment-height 0 0);
  transform:none;--fish-rotated:0
 }
}
