@media (max-width: 760px) {
  /* Game controls flank two short lines of text, including the live score. */
  body[data-local-lab=true] .world-game-frame[data-compact-frame] {
    grid-template-columns: 44px minmax(0, 1fr) max-content auto;
    grid-template-rows: auto auto;
    column-gap: 7px;
    row-gap: 2px;
    min-height: 56px;
    margin: 0 0 8px;
    padding: 5px 7px;
    border-radius: 12px;
  }
  body[data-local-lab=true] .world-game-frame[data-compact-frame] :is(.world-game-frame__identity, .world-game-frame__tools) {
    display: contents;
  }
  body[data-local-lab=true] .world-game-frame[data-compact-frame] .world-game-frame__back {
    grid-area: 1 / 1 / 3 / 2;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    touch-action: manipulation;
  }
  .world-game-frame[data-compact-frame] .world-game-frame__back span { display: none; }
  body[data-local-lab=true] .world-game-frame[data-compact-frame] h1 {
    grid-area: 1 / 2 / 2 / 4;
    align-self: end;
    margin: 0;
    font-size: clamp(17px, 4.4vw, 23px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  .world-game-frame[data-compact-frame] .world-game-frame__meta {
    grid-area: 2 / 2 / 3 / 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 5px;
    min-width: 0;
  }
  body[data-local-lab=true] .world-game-frame[data-compact-frame] :is(.world-game-frame__date, .world-game-frame__private) {
    margin: 0;
    padding: 0;
    border: 0;
    font: 600 11px/1.25 system-ui, sans-serif;
  }
  body[data-local-lab=true] .world-game-frame[data-compact-frame] .world-game-frame__date { display: inline; }
  body[data-local-lab=true].tavern-interface:not(.lab-immersive) .world-game-frame[data-compact-frame] .world-game-frame__date,
  body[data-local-lab=true] .world-game-frame[data-compact-frame] .world-game-frame__date:empty { display: none; }
  body[data-local-lab=true] .world-game-frame[data-compact-frame] .world-game-frame__score {
    grid-area: 2 / 3 / 3 / 4;
    align-self: start;
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
  }
  body[data-local-lab=true] .world-game-frame[data-compact-frame] .world-game-frame__score strong {
    font-size: 16px;
    line-height: 1.1;
  }
  body[data-local-lab=true] .world-game-frame[data-compact-frame] .world-game-frame__score small {
    font-size: 10px;
    white-space: nowrap;
  }
  .world-game-frame[data-compact-frame] .world-game-frame__info {
    grid-area: 1 / 4 / 3 / 5;
    align-self: center;
    touch-action: manipulation;
  }

  body[data-local-lab=true]:is(.is-game-open, .game-active, .lab-immersive:has(.lab-game-topbar)) > .beta-private-banner {
    margin-top: 0;
    padding: 4px 6px !important;
    font-size: 11px !important;
  }
  body[data-local-lab=true].tavern-interface.is-game-open:not(.lab-immersive) { padding-top: 54px; }
  body[data-local-lab=true].tavern-interface.is-game-open:not(.lab-immersive) .lab-tavern-topbar { height: 54px; border-block-width: 3px; }
  body[data-local-lab=true].tavern-interface.is-game-open:not(.lab-immersive) .tavern-shell { padding-top: 6px; }
  body[data-local-lab=true].gallery-interface.game-active:not(.lab-immersive) .site-header {
    position: relative;
    top: auto;
    justify-content: flex-end;
    min-height: 0;
    margin-block: 4px 0;
    padding: 2px 5px;
  }
  body[data-local-lab=true].gallery-interface.game-active:not(.lab-immersive) .site-header .brand { display: none; }
  body[data-local-lab=true].gallery-interface.game-active:not(.lab-immersive) .game-view { padding-top: 6px; }
  body[data-local-lab=true] .lab-game-topbar { margin-top: 4px; }
  body[data-local-lab=true].lab-immersive:has(.lab-game-topbar) .lab-game-shell { padding-top: 4px; }
  .lab-game-topbar [data-game-chat-dock] { order: 4; }
  .gallery-wiki-heading { flex-wrap: nowrap; gap: 8px; padding: 5px 7px; margin-bottom: 8px; }
  .gallery-wiki-heading .gallery-return { flex: none; min-width: 44px; padding: 0 7px; }
  .gallery-wiki-heading h1 { font-size: 19px; }
}
