/* The existing DOM rig retains all joint tracking and reactions. Only its
   drawing is replaced; the sticker navigation and native switch stay live. */
.pixel-lamp-ready { position:relative; isolation:isolate; overflow:visible; }
.pixel-lamp-ready .jointed-rig { visibility:hidden!important; pointer-events:none; }
.pixel-lamp-ready .studio-drawing { position:relative; z-index:1; overflow:visible; }
.pixel-lamp-canvas { position:absolute; display:block; pointer-events:none; z-index:2; image-rendering:pixelated; }
.pixel-lamp-ready .studio-switch { z-index:3; border-radius:0; }
.pixel-lamp-ready .switch-casing { display:grid; place-items:center; width:28px; height:36px; border:2px solid #29434a; border-radius:0; background:#8eafa0; box-shadow:2px 2px 0 #52786e; clip-path:polygon(3px 0,calc(100% - 3px) 0,100% 3px,100% calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,0 calc(100% - 3px),0 3px); transition:background .1s; }
.pixel-lamp-ready .switch-casing svg { display:block; width:21px; height:21px; fill:none; stroke:#29434a; stroke-width:2; stroke-linecap:square; stroke-linejoin:miter; }
[data-theme="dark"] .pixel-lamp-ready .switch-casing { background:#476e65; border-color:#b6cec3; box-shadow:2px 2px 0 #304c44; }
[data-theme="dark"] .pixel-lamp-ready .switch-casing svg { stroke:#f8d66f; }
.pixel-lamp-ready .cord-switch:hover .switch-casing { background:#b4cebd; }
[data-theme="dark"] .pixel-lamp-ready .cord-switch:hover .switch-casing { background:#5c8578; }
.pixel-lamp-ready .cord-switch:focus-visible { outline:2px solid var(--teal); outline-offset:3px; }
.pixel-lamp-hint { position:absolute; z-index:4; right:0; top:calc(100% + 15px); display:flex; align-items:center; gap:7px; padding:7px 5px 7px 10px; border:1px solid var(--line); background:var(--paper); box-shadow:3px 3px 0 color-mix(in srgb,var(--ink) 10%,transparent); color:var(--muted); white-space:nowrap; font-family:inherit; font-size:11px; font-weight:500; line-height:1.3; }
.pixel-lamp-hint::after { content:""; position:absolute; right:20px; top:-5px; width:8px; height:8px; background:var(--paper); border-left:1px solid var(--line); border-top:1px solid var(--line); transform:rotate(45deg); }
.pixel-lamp-hint button { display:grid; place-items:center; width:24px; height:24px; border:0; background:transparent; color:var(--muted); font-size:16px; padding:0; cursor:pointer; }
.pixel-lamp-hint button:focus-visible { outline:2px solid var(--teal); }
.pixel-lamp-hint[hidden] { display:none; }
/* Overflow room belongs to the illustration, not to the document scroll area. */
html:has(.pixel-lamp-ready),body:has(.pixel-lamp-ready) { overflow-x:clip; }
@media(max-width:680px) { .pixel-lamp-hint { font-size:10px; top:calc(100% + 12px); padding:5px 3px 5px 8px; } }
@media(prefers-reduced-motion:reduce) { .pixel-lamp-ready .switch-casing { transition:none; } }
