/* The UNC 64's power switch: a dark rocker set into the wood strip beside the red LED
   (#unc-power on the front page, #restart on the showcase). machine.js and showcase.js show it
   once the emulator runs (.crt.unc-live) and switch the machine off with it, and on again at the
   next press (.crt.unc-off while it's off: the switch latches). Pictures only: the site makes no sound. */
.unc-power{display:none;position:absolute;z-index:1;right:50px;bottom:7px;width:24px;height:27px;padding:0;border:0;border-radius:4px;cursor:pointer;
  background:linear-gradient(180deg,#120e0b,#2a221b);
  box-shadow:inset 0 2px 3px rgba(0,0,0,.8),0 1px 0 rgba(255,255,255,.18),0 -1px 0 rgba(0,0,0,.35);
  perspective:70px;-webkit-tap-highlight-color:transparent}
.crt.unc-live .unc-power{display:block}
/* the paddle, marked I and O: on, the I end is pressed in and the O end stands proud and
   catches the light */
.unc-power:before{content:"";position:absolute;inset:3px 3px;border-radius:2px;
  background:
    linear-gradient(#d9ccb0,#d9ccb0) 50% 3px/2px 5px no-repeat,
    radial-gradient(circle at 50% calc(100% - 5.5px),transparent 1.6px,#a99e88 1.7px,#a99e88 2.5px,transparent 2.6px),
    linear-gradient(180deg,#0f0c0a 0%,#221d18 47%,#5a4f45 53%,#433a32 88%,#6a5f54 100%);
  box-shadow:0 2px 2px rgba(0,0,0,.55);
  transform:rotateX(20deg);transform-origin:50% 50%;
  transition:transform .09s cubic-bezier(.3,1.9,.55,1)}
/* off: rocked the other way, the top proud */
.crt.unc-off .unc-power:before{transform:rotateX(-20deg);box-shadow:0 -2px 2px rgba(0,0,0,.45);
  background:
    linear-gradient(#d9ccb0,#d9ccb0) 50% 3px/2px 5px no-repeat,
    radial-gradient(circle at 50% calc(100% - 5.5px),transparent 1.6px,#8a806e 1.7px,#8a806e 2.5px,transparent 2.6px),
    linear-gradient(180deg,#6a5f54 0%,#433a32 12%,#5a4f45 47%,#221d18 53%,#0f0c0a 100%)}
.unc-power:active:before{inset:3.5px 3px 2.5px}
.unc-power:focus-visible{outline:3px solid var(--yel,#e2b23f);outline-offset:3px}
/* RESET: a small round push button left of the power switch, its word under it in cream.
   It warm-starts the machine: back to READY. with the program kept, out of anything. */
.unc-reset{display:none;position:absolute;z-index:1;right:90px;bottom:13px;width:13px;height:13px;padding:0;border:0;border-radius:50%;cursor:pointer;
  background:radial-gradient(circle at 50% 40%,#3a3129 0 3.5px,#2a231d 4.5px,#120e0b 5.2px,#1f1a16 6.5px);
  box-shadow:0 1px 0 rgba(255,255,255,.18),0 -1px 0 rgba(0,0,0,.35);-webkit-tap-highlight-color:transparent}
.unc-reset:after{content:"RESET";position:absolute;left:50%;top:15px;transform:translateX(-50%);
  font:600 6px/1 system-ui,sans-serif;letter-spacing:.14em;color:var(--veneer-ink,#f1e3c3);pointer-events:none}
.crt.unc-live .unc-reset{display:block}
.unc-reset:active{background:radial-gradient(circle at 50% 50%,#2a231d 0 3.5px,#1f1a16 4.5px,#120e0b 5.2px,#1f1a16 6.5px)}
.unc-reset:focus-visible{outline:3px solid var(--yel,#e2b23f);outline-offset:3px}
/* the LED goes out with the machine */
.crt.unc-off .led{background:#5a2018;box-shadow:none;transition:background .15s .1s,box-shadow .15s .1s}
@media (prefers-reduced-motion:reduce){.unc-power:before{transition:none}}
