.emulator { padding-block: clamp(16px, 2.4vw, 36px) 64px; }
.emu-heading .plain-link { color: var(--muted); }
.emu-heading h1 { font-size: clamp(40px, 5.9vw, 70px); letter-spacing: -.066em; margin: 8px 0 12px; }
.emu-heading .intro-copy { margin: 0; max-width: 55ch; }
.emu-workbench { display: grid; grid-template-columns: minmax(0, 490px) minmax(245px, 1fr); gap: clamp(22px, 5vw, 80px); margin-top: 24px; align-items: start; }
.emu-frame { isolation: isolate; position: relative; width: 100%; aspect-ratio: 7 / 8; overflow: hidden; background: #080808; border: 1px solid var(--line); }
.emu-frame > img { width: 100%; height: 100%; object-fit: contain; }
.emu-layer { position: absolute; inset: 0; }
.emu-lower { clip-path: inset(66.2% 21.5% 3% 23%); }
.emu-gear-patch { clip-path: inset(66.5% 42% 22.3% 42%); }
.emu-notice { clip-path: inset(0 0 34% 0); }
.emu-status { color: var(--muted); font-size: 13px; margin-top: 10px; min-height: 2.7em; }
.emu-console { margin-top: 9px; }
.emu-console h2 { font-size: clamp(24px, 3vw, 37px); margin-bottom: 16px; }
.emu-console h3 { font-size: 18px; margin-bottom: 13px; }
.emu-buttons, .emu-menu-keys, .emu-screen-keys { display: grid; gap: 8px; }
.emu-menu-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emu-screen-keys { grid-template-columns: minmax(0,1fr) minmax(0,.86fr) minmax(0,1fr); }
.emu-console button {
  min-height: 48px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 7px 5px;
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.emu-console button:enabled:hover { background: var(--section-surface); border-color: var(--accent); }
.emu-console button:enabled:is([data-action="menu"], [data-action="ok"]) {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.emu-console button:enabled[aria-pressed="true"] {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 760;
}
.emu-console button:enabled:is([data-action="menu"], [data-action="ok"]):hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}
.emu-console button:enabled:active { box-shadow: inset 0 0 0 2px currentColor; }
.emu-console button:disabled { color: var(--muted); background: var(--bg); border-color: var(--line); cursor: default; }
.emu-console button:disabled[aria-pressed="true"] { border-color: var(--accent); }
.emu-buttons button:enabled span[aria-hidden="true"] { color: currentColor; }
.emu-hint { color: var(--muted); font-size: 13px; margin-top: 9px; }
.emu-selector, .emu-notifications { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.emu-gears { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; }
.emu-cta { margin-top: 18px; }
.emu-console button:focus-visible { outline-offset: 2px; }

@media (max-width: 760px) {
  .emu-heading h1 { font-size: clamp(29px, 8vw, 54px); }
  .emu-workbench { display: block; max-width: 440px; }
  .emu-instrument { position: sticky; top: 60px; z-index: 2; padding: 6px 0; background: var(--bg); }
  .emu-console { margin-top: 0; }
  .emu-frame { width: min(100%, 41svh); margin-inline: auto; }
  .emu-console button { scroll-margin-top: calc(60px + 47svh + 65px); }
}

@media (max-width: 760px) and (max-height: 500px) {
  .emu-instrument { position: static; }
  .emu-console button { scroll-margin-top: 65px; }
}

.emu-frame { aspect-ratio:1000/442; }
.emu-lower { clip-path:inset(51% 39% 18% 39%); }
.emu-notice { clip-path:inset(24% 39% 50% 39%); }
@media(max-width:760px) {
  .emu-instrument { top:0; }
  .emu-frame { width:100%; }
  .emu-console button { scroll-margin-top:calc(45vw + 45px); }
}
.emu-frame { width:min(100%,248px); aspect-ratio:216/373; margin-inline:auto; border:0; background:#101112; }
.emu-lower { clip-path:inset(60% 0 0 0); }
.emu-notice { clip-path:inset(0 0 40% 0); }
@media(max-width:760px) { .emu-frame { width:auto; height:min(36svh,285px); } .emu-console button { scroll-margin-top:calc(36svh + 75px); } }
