.original-base .ui-stage { background: #44484c; }
@media (max-width: 760px) {
  #game:has(.original-base) + .game-bar { display: none; }
}

.original-base-identity {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.original-base-cover { width: 66px; height: 88px; object-fit: cover; border-radius: 6px; }
.original-base-details { display: grid; justify-items: start; gap: 4px; }
.original-base-details h1 { margin: 0; color: var(--text-2); font: 700 20px/1.2 var(--font); overflow-wrap: anywhere; }
.original-base-details p { margin: 0; color: var(--label); font: 500 14px/20px var(--font); }
.original-base-details a { color: var(--text-2); font: 600 14px/20px var(--font); text-underline-offset: 3px; }

@container play-page (max-width: 340px) {
  .fx2 #bar.game-bar { padding-inline: 4px; }
  .fx2 #bar .bar-left .bar-btn { width: 44px; }
  .fx2 #bar .bar-btn[data-panel="fair"] { width: auto; padding-inline: 10px; }
}

/* A short landscape screen has room beside the board for the wager controls. */
@media (orientation: landscape) and (max-height: 520px) {
  @container game (min-width: 520px) and (max-width: 1000px) {
    body.fx2:not(.is-bare) #game:not(.is-docked, :where(:has(> .ui-frame-by-width))) > .ui-frame { max-width: none; }
    body.fx2:not(.is-bare) #game:not(.is-docked, :where(:has(> .ui-frame-by-width))) .ui-frame-in {
      max-width: none;
      grid-template-areas: "controls stage";
      grid-template-columns: clamp(210px, 34cqw, 280px) minmax(0,1fr);
      grid-template-rows: minmax(min(300px, 66dvh), auto);
    }
    body.fx2:not(.is-bare) #game:not(.is-docked, :where(:has(> .ui-frame-by-width))) .ui-controls {
      position: sticky;
      top: 64px;
      align-self: start;
      max-height: calc(100dvh - 72px - var(--original-bottom-nav, 0px));
      overflow-y: auto;
    }
    body.fx2:not(.is-bare) #game:not(.is-docked, :where(:has(> .ui-frame-by-width))) .ui-controls > * { flex-shrink: 0; }
    body.fx2:not(.is-bare) #game:not(.is-docked, :where(:has(> .ui-frame-by-width))) .ui-controls-end { margin-top: 0; }
    body.fx2:not(.is-bare) #game:not(.is-docked, :where(:has(> .ui-frame-by-width))) .ui-controls :is(.kn-acts, .bj-acts, .bj-ins, .flip-choices) .ui-btn {
      min-width: 0;
      padding-inline: 6px;
      gap: 4px;
      white-space: normal;
      line-height: 1.15;
    }
  }
  @container play-page (min-width: 520px) and (max-width: 1000px) {
    .fx2 :where(#game:not(:has(> .ui-frame-by-width))) + #bar.game-bar { max-width: none; }
  }
}
@media (orientation: landscape) and (max-width: 760px) and (max-height: 520px) {
  #game { --original-bottom-nav: calc(68px + env(safe-area-inset-bottom)); }
}
