/* Compact iframe sizing around the original game and autoplay controls. */
.surface { grid-template-rows:58px 38px minmax(0,1fr) 54px 36px 24px 38px; }
.surface > .autoplay-status {
  display:block;min-height:0;margin:0 10px;padding:3px 6px;border:0;
  border-radius:4px;background:transparent;color:var(--gold);box-shadow:none;
  font-size:10px;line-height:14px;overflow:auto;
}
.surface .home-toolbar #btn-autoplay { order:2;min-width:0; }
.surface .home-toolbar #btn-undo { order:3; }
.surface .home-toolbar #btn-restart { order:4; }
.surface .home-toolbar #btn-sound { order:5; }
@media(max-width:600px) {
  .surface { grid-template-rows:55px 36px minmax(0,1fr) 88px 36px 24px 38px; }
  .surface.home-game-layout .home-toolbar {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px 10px;
  }
  .surface.home-game-layout .home-toolbar .ctl-btn { width:100%;min-width:0;padding:6px;font-size:11px; }
  .surface .home-toolbar .control-icon { display:block;width:14px;height:14px; }
  .surface .home-toolbar #btn-sound .control-label { display:inline; }
}
@media(max-width:340px) {
  .surface-options > span { display:none; }
  .surface-brand h1 { font-size:12px; }
  .surface-brand p { font-size:6px; }
  .surface .hud { gap:4px; }
}
