
/* Landscape-only play and uncluttered squishy stage. */
#landscape-gate{position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;padding:24px;background:#fff5e5;color:#49345d;text-align:center;font:600 20px/1.4 system-ui}
#landscape-gate[hidden]{display:none!important}#landscape-gate span{font-size:80px}#landscape-gate h1{font-size:28px}
html.rotate-required main,html.rotate-required #s13-overlay,html.rotate-required #s15-overlay,html.rotate-required #s16-overlay{visibility:hidden!important;pointer-events:none!important}
/* Labels sit beside contained icons, never across the illustration. */
html.fit-board main button.raster-control{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:10px!important;font-size:15px!important;line-height:1.15!important;background-size:100% 100%!important}
html.fit-board main button.raster-control::before{position:static!important;inset:auto!important;display:block!important;flex:0 0 26px!important;width:26px!important;height:26px!important;min-width:0!important;background-size:contain!important}
html.fit-board main button.raster-control>span:not(.sprite):not([class$="-symbol"]):not(.s16-state),html.fit-board main button.raster-control>.caption,html.fit-board main button.raster-control>.label{position:static!important;inset:auto!important;width:auto!important;max-width:100%!important;min-width:0!important;height:auto!important;font-size:15px!important;line-height:1.15!important;overflow-wrap:normal!important;text-align:center!important}
html.fit-board main button.raster-control>[class$="-symbol"]{display:none!important}
html.fit-board main button.raster-control:not(.raster-compact){flex-direction:column!important}
html.fit-board main button.raster-control:not(.raster-compact)::before{flex:0 0 30px!important;width:30px!important;height:30px!important}
html.fit-board #s9-title,html.fit-board #s9-gestures,html.fit-board #s9-help,html.fit-board #s9-back,html.fit-board #s9-mode,html.fit-board #s9-context,html.fit-board #s9-tool_0,html.fit-board #s9-tool_1,html.fit-board #s9-tool_2,html.fit-board #s9-tool_3{display:none!important}
html.fit-board #s9-world #s9-home{left:2%!important;top:2%!important;width:144px!important;height:60px!important}
html.fit-board #s9-world #s9-play{left:36%!important;top:2%!important;width:128px!important;height:60px!important}
html.fit-board #s9-world #s9-view{left:50%!important;top:2%!important;width:128px!important;height:60px!important}
html.fit-board #s9-world #s9-tool_4{left:82%!important;top:88%!important;width:148px!important;height:64px!important}
html.fit-board #s9-world #s9-tool_5{left:2%!important;top:88%!important;width:112px!important;height:64px!important}
html.fit-board #s9-world #s9-fullscreen{position:absolute;right:2%;top:2%;width:148px;height:60px;border:2px solid #dfcbea;border-radius:24px;background:#fff5e5;color:#49345d;font:700 17px/1.2 system-ui;z-index:90}
html.fit-board #s9-world button.raster-control{flex-direction:row!important}
html.fit-board #s9-storage{left:25%!important;top:92%!important;width:50%!important;font-size:15px!important}

html.fit-board main button.raster-control[hidden],html.fit-board main [hidden]{display:none!important}

/* Fill scenery to the viewport; preserve a uniformly scaled stage for every prop. */
html.fit-board main>section:not(.utility){border-radius:0!important;box-shadow:none!important}
html.fit-board main [id$="-world"],html.fit-board #world{position:absolute!important;inset:auto!important;left:50%!important;top:50%!important;width:1024px!important;height:768px!important;transform:translate(-50%,-50%)!important}
html.fit-board #stage{background:url('assets/workshop_landscape.png') center/cover no-repeat!important}
html.fit-board #world>picture{display:none!important}
html.fit-board #scene03{background:url('assets/scene03/make_plate.png') center/cover no-repeat!important}
html.fit-board #s3-world>.s3-plate{display:none!important}
html.fit-board main>section>img[class$="-background"]{object-fit:cover!important}
html.fit-board #s9-stage #s9-world{inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;transform:none!important}
html.fit-board #s9-stage::after{display:none!important}
html.fit-board #s9-world #s9-play{left:calc(50% - 136px)!important}
html.fit-board #s9-world #s9-view{left:calc(50% + 8px)!important}
html.fit-board #s9-world #s9-tool_4{left:auto!important;right:2%!important}
/* Utility overlays keep their native proportions and stay above their own scrims. */
html.fit-board #s13-stage,html.fit-board #s15-stage,html.fit-board #s16-stage{position:absolute!important;left:50%!important;top:50%!important;width:1024px!important;height:768px!important;max-width:none!important;min-width:0!important;transform:translate(-50%,-50%) scale(var(--board-scale))!important;transform-origin:center!important;z-index:1!important}
html.fit-board #s13-overlay>#s13-scrim,html.fit-board #s15-overlay>#s15-scrim,html.fit-board #s16-overlay>#s16-scrim{z-index:0!important}

/* Deliberate touch style selection leaves the toy and upper navigation clear. */
html.fit-board #s9-play-style{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);display:flex;gap:6px;z-index:90;padding:4px;background:#fff7e8e8;border-radius:24px}
html.fit-board #s9-play-style[hidden]{display:none!important}
html.fit-board #s9-play-style button{position:relative;min-height:44px!important;padding:8px 16px!important;border:2px solid transparent;border-radius:20px;background:transparent;color:#49345d;font:700 16px/1.2 system-ui}
html.fit-board #s9-play-style button[aria-pressed=true]{background:#b9f2d9;border-color:#72bda7}

html.fit-board #s9-play-style button{min-height:max(44px,calc(44px / var(--board-scale)))!important;font-size:max(16px,calc(12px / var(--board-scale)))!important}


/* Keep the direct controls beside the toy in Play and the camera presets in View. */
html.fit-board #s9-play-style { width: max-content; max-width: 58%; justify-content: center; flex-wrap: wrap; }
html.fit-board #s9-play-style #s9-face-choice {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  font-size: inherit !important;
}
html.fit-board #s9-world #s9-camera {
  position: absolute !important;
  left: 50% !important;
  top: auto !important;
  right: auto !important;
  bottom: 2% !important;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: max-content !important;
  max-width: 58%;
  padding: 4px;
  border-radius: 24px;
  background: #fff7e8e8;
}
html.fit-board #s9-world #s9-camera button {
  border: 0;
  border-radius: 20px;
  background: #f0dff9;
  color: #49345d;
  font: 700 max(16px, calc(12px / var(--board-scale)))/1.2 system-ui;
  min-height: max(44px, calc(44px / var(--board-scale))) !important;
  padding: 7px 12px;
}
html.fit-board #s9-world #s9-pause {
  position: absolute !important;
  left: 2% !important;
  top: max(70px, 12%) !important;
  width: 120px !important;
  height: 58px !important;
}
html.fit-board #s9-world #s9-camera[hidden] { display: none !important; }
