/* A single toolbar below the game reuses its native ImageGen control plate. */
body:has(.game-screenshot-toolbar) { overflow-y: auto; }
.game-shell:has(> .game-screenshot-toolbar) { width: min(1120px, calc(100vw - 32px), calc((100dvh - 112px) * 16 / 9)); }
.game-screenshot-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 8px; padding: 4px 0; }
.game-screenshot-button { background: transparent url('assets/title/title-button-v2.png') center / 100% 180% no-repeat; color: #f7e2b8; border: 0; border-radius: 0; min-height: 36px; padding: 9px 18px; font: 700 12px/1.2 system-ui,sans-serif; text-shadow: 0 1px 2px #000; }
.game-screenshot-button:disabled { opacity: .45; }
.game-screenshot-button:focus-visible { outline: 2px solid #efb650; outline-offset: 2px; }
.game-screenshot-status { min-width: 0; margin: 0; color: #c2d1c8; overflow-wrap: anywhere; font: 500 11px/1.4 system-ui,sans-serif; }
.game-screenshot-status[data-visible="true"] { color: #ffe1a8; }
.game-shell:has(> .game-screenshot-toolbar):fullscreen { grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
#game-shell:has(> .game-screenshot-toolbar):fullscreen .stage { width: min(100%, calc((100dvh - 96px) * 16 / 9)); }
.game-shell:fullscreen .game-screenshot-toolbar { width: min(1120px, 100%); margin-top: 0; }
@media (max-width: 600px) and (orientation: portrait) {
  .game-shell:has(> .game-screenshot-toolbar) { width: min(calc(100vw - 16px), calc((100dvh - 136px) * .625)); }
  .game-screenshot-toolbar { gap: 8px; }
  .game-screenshot-button { padding-inline: 10px; font-size: 10px; }
  .game-screenshot-status { font-size: 10px; }
  #game-shell:has(> .game-screenshot-toolbar):fullscreen .stage { width: min(100%, calc((100dvh - 120px) * .625)); }
}
