

:root {
  --lobby-dock-tile-width: 80px;
  --lobby-dock-tile-gap: 6px;
  --lobby-dock-tiles-width: calc(4 * var(--lobby-dock-tile-width) + 3 * var(--lobby-dock-tile-gap));
}

html.landscape #lobby > .lobby-dock {
  grid-area: 3 / 1 / 4 / -1;
  margin-top: -10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 0;
}

html.landscape .lobby-dock .lobby-tiles {
  grid-column: 2;
  grid-template-columns: repeat(4, var(--lobby-dock-tile-width));
  gap: var(--lobby-dock-tile-gap);
}

html.landscape .lobby-dock .tile-ring {
  width: 54px;
  height: 54px;
}

html.landscape .lobby-dock .tile-name { margin-top: -5px; font-size: 0.75rem; }
html.landscape .lobby-dock .tile-state { margin-top: -20px; font-size: 0.75rem; }

html.landscape .lobby-dock .lobby-bonus {
  grid-column: 3;
  justify-self: end;
  width: 132px;
  padding-bottom: 2px;
}
html.landscape .bonus-pod { width: 70px; }
html.landscape .bonus-pill,
html.landscape .bonus-pod.ready::after { height: 58px; }
html.landscape .bonus-pill { font-size: 0.8rem; }
html.landscape .bonus-pod.ready .bonus-pill { font-size: 1rem; }
html.landscape .lobby-bonus:has(> .bonus-pod.ready)::after { left: 60px; }
html.landscape .bonus-wheel { width: 60px; margin-bottom: -4px; }
html.landscape .bonus-wheel .tile-ring { width: 54px; height: 54px; }
html.landscape .bonus-wheel .tile-state { margin-top: -17px; font-size: 0.75rem; }

@media (min-width: 640px) {
  html.landscape #lobby { --connection-space: 0px; }

  html.landscape body.in-lobby #connection-status {
    top: auto;
    right: auto;
    bottom: calc(var(--safe-bottom) + 3px);
    left: var(--lobby-side-l);
    width: max(0px, calc((100% - var(--lobby-side-l) - var(--lobby-side-r) - var(--lobby-dock-tiles-width)) / 2 - 4px));
    flex-direction: column;
    gap: 2px;
    padding-inline: 3px;
    text-align: left;
  }
}


html.landscape #lobby {
  --deck: calc(var(--safe-bottom) + 48px);
}


html.landscape .lobby-menu {
  right: 0;
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 119px);
}
html.landscape .lobby-menu::before { right: 15px; }

html.landscape .intro-coach[data-tip="bonuses"] {
  left: calc(var(--safe-left) + 8px);
  right: calc(var(--safe-right) + 8px);
  max-width: none;
}

html.landscape .lobby-season .season-leaf:is(.n3, .n4, .n5) {
  right: auto;
  left: calc(var(--x, 2px) + 54px);
}
