/* ATMOSFERA PATCH-022S — approved black controller housing.
   Visual shell only. All original screen artwork and control-demo.js unchanged.
   Source: approved controller render, cropped housing, empty square aperture.
   Canvas 1033 x 1101; aperture x90 y127, 850 x 850.
*/
.c10-device,
.i8-gallery-picture.i8-screen > button {
  --atm-shell-left: 8.7124878993%;
  --atm-shell-top: 11.5349682107%;
  --atm-shell-width: 82.284607938%;
  position: relative;
  display: block;
  box-sizing: border-box;
  aspect-ratio: 1033 / 1101;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 11% / 10%;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  filter: drop-shadow(0 16px 18px rgba(20,35,44,.18));
}
.c10-device { width: 100%; }
.atm-home-controller .c10-device { box-shadow: none; }
.c10-device > .c10-device-bar { display: none; }
.c10-device::before,
.i8-gallery-picture.i8-screen > button::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: url("controller-shell-022s/black-shell.webp") center / 100% 100% no-repeat;
  box-shadow: none;
  transform: none;
  pointer-events: none;
  z-index: 9;
}
.c10-device::after,
.i8-gallery-picture.i8-screen > button::after { content: none; display: none; }
.c10-device > .c10-screen,
.c12-current-control .i8-gallery-picture.i8-screen > button > img {
  position: absolute;
  left: var(--atm-shell-left);
  top: var(--atm-shell-top);
  width: var(--atm-shell-width);
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3.6%;
  background: #f7fbfc;
  box-shadow: none;
  overflow: hidden;
  object-fit: contain;
  z-index: 1;
}
.i8-gallery-picture.i8-screen > button {
  width: min(100%,380px);
  max-width: none;
  margin: 0 auto 27px;
  cursor: zoom-in;
}
.i8-gallery-picture.i8-screen > button > .i8-zoom-tag {
  position: absolute;
  top: calc(100% + 9px);
  bottom: auto;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  color: #638499;
  font-size: 11px;
  line-height: 1.5;
  text-shadow: none;
}
/* Keep content and interactive controls on the screen; no decorative buttons,
   speaker slot, indicator or external brand label are drawn on the housing. */
@media (max-width: 800px) {
  .i8-gallery-picture.i8-screen > button { width: min(100%,330px); }
}
@media (max-width: 480px) {
  .i8-gallery-picture.i8-screen > button { width: min(100%,300px); }
  .c10-device,
  .i8-gallery-picture.i8-screen > button { filter: drop-shadow(0 10px 12px rgba(20,35,44,.16)); }
}
