/* Local refinements over the preserved Dot scene. Source artwork is untouched. */
.assembly{
  --module-width:min(86vw,1260px,calc((100svh - 240px)*1.92));
  width:var(--module-width);margin-left:calc(var(--module-width) / -2);
  top:19%;
  transform:rotateX(calc(var(--tilt,0)*24deg)) translateY(calc(var(--tilt,0)*-10px));
}
/* The image already contains a rendered front wall. Avoid a second, severe
   foreshortening of that wall, the PCB and the original component packages. */
.hinged-lid{left:5.2%;right:5.2%;top:1.8%;bottom:16.2%}
.lid-front{
  background:repeating-linear-gradient(0deg,#fff0 0 1px,#ffffff0b 1px 2px),
    linear-gradient(115deg,#a1a5a8 0%,#e3e6e7 23%,#d8dcdf 46%,#9ba0a4 82%,#bec2c5 100%);
  border:1px solid #e2e6e8;border-radius:3.2% / 7%;
  box-shadow:inset 0 0 0 2px #ffffff6b,inset 0 0 0 4px #66707765,
    inset 0 0 0 6px #f1f3f455,0 2px 0 #bfc6ca,0 4px 0 #50595f;
}
/* Crop into the original grain without its obsolete four corner bores.
   The mounting rim is continuous, with eight seats aligned to the tray. */
.cover-grain{position:absolute;inset:5px;border-radius:inherit;overflow:hidden;pointer-events:none;}
.cover-grain>.lid-texture{width:115%;height:135%;left:-7.5%;top:-17.5%;filter:none;}
.lid-front>.screw{display:none}
.lid-fastener{
  position:absolute;left:var(--bolt-x);top:var(--bolt-y);width:2.05%;aspect-ratio:1;
  transform:translate(-50%,-50%);pointer-events:none;
  border-radius:50%;
  background:radial-gradient(circle,#283139 0 29%,#8f999f 32%,#f2f4f4 53%,#838e94 68%,#d3d9db 73%,transparent 76%);
  box-shadow:0 1px 1px #0c141b65;
}
.bolt-shank{position:absolute;left:36%;bottom:45%;width:28%;height:calc(var(--unscrew,0)*85%);border-radius:1px;
  background:repeating-linear-gradient(0deg,#66737b 0 1px,#dce2e4 1px 2px,#909ca1 2px 3px);}
.bolt-head{
  position:absolute;inset:13%;border-radius:50%;
  background:conic-gradient(from 30deg,#f0f2f1,#849096 18%,#e3e7e8 32%,#acb6bb 50%,#f4f5f3 68%,#79868e 86%,#f0f2f1);
  border:1px solid #7f8a90;box-shadow:inset 0 0 0 1px #ffffffa6,0 1px 1px #23313c99;
  transform:translateY(calc(var(--unscrew,0)*-90%)) rotate(calc(var(--unscrew,0)*-540deg));
}
.bolt-head::after{content:'';position:absolute;inset:29%;
  clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  background:linear-gradient(135deg,#131d24,#3c4b55 55%,#73818a);box-shadow:inset 0 1px 2px #000;
}
.lid-front .plate-text{z-index:1}
/* Hit the connector itself. Keep the metal visible beneath its touch target. */
.mj-connector{border-color:transparent;background:transparent;backdrop-filter:none;box-shadow:none;}
.mj-connector svg{opacity:0}
.mj-connector span{top:54px;right:-8px;border-radius:999px;background:#101820ce;padding:8px 12px;}
.mj-connector:hover,.mj-connector:focus-visible{background:#d5e4ec08;border-color:#d5e4ec69;}
@media(max-width:800px){
  .assembly{--module-width:92vw;top:37%;transform:rotateX(calc(var(--tilt,0)*22deg)) translateY(calc(var(--tilt,0)*-5px));}
  .lid-front{box-shadow:inset 0 0 0 1px #ffffff6b,inset 0 0 0 2px #66707765,inset 0 0 0 3px #f1f3f455,0 1px 0 #bfc6ca,0 2px 0 #50595f;}
  .cover-grain{inset:3px;}
  .bolt-head{border-width:.5px;box-shadow:inset 0 0 0 .5px #ffffffa6,0 .5px 1px #23313c99;}
  .mj-connector span{top:58px;right:0;}
}
@media(max-height:650px) and (min-width:801px){.assembly{top:21%;--module-width:min(78vw,calc((100svh - 180px)*1.8));}}
@media(prefers-reduced-motion:reduce){
  .assembly{transform:rotateX(calc(var(--tilt,0)*16deg));}
  .bolt-head{transform:none}.bolt-shank{display:none}
}
@media(forced-colors:active){.mj-connector{border:1px solid ButtonText;background:Canvas;}.mj-connector svg{opacity:1}.mj-connector span{background:Canvas;color:ButtonText;border:1px solid ButtonText;}}
