/* Keyboard ASMR v2.3 — OUTSIDE workbench only: fixed-layout UI skin.
   Existing game/audio/interaction logic retained from v2.2. */
:root {
  --bench:#83919f;--bench-2:#657482;--frame:#cdd4da;--frame-hi:#ecf0f2;
  --ink:#303944;--muted:#6f7c89;--dark:#242a32;--orange:#ef883a;--orange-deep:#c95d1e;
  color:var(--ink);background-color:#74838f;
}
body {
  background:
    radial-gradient(ellipse at 50% 44%,#acb7bf52 0%,transparent 78%),
    linear-gradient(90deg,#fff1 1px,transparent 1px),
    linear-gradient(#fff1 1px,transparent 1px),
    linear-gradient(135deg,#72818f,#8594a2 50%,#6c7986);
  background-size:auto,24px 24px,24px 24px,auto;
}
.app-fit {width:1300px;height:860px;}
.app {
  padding:24px 28px 15px;
  min-height:0;
  border:3px solid #eef1f4;
  border-radius:27px;
  background:
    linear-gradient(#ffffff29 0 1px,transparent 1px),
    linear-gradient(150deg,#e8edf1 0%,#c9d1d9 56%,#b6c2cc 100%);
  box-shadow:
    0 0 0 2px #9aa8b3,
    0 0 0 7px #63727e,
    0 20px 0 -9px #3f4a54,
    0 32px 60px #15212e80,
    inset 0 2px 0 #fff;
}
.app::before {content:"";position:absolute;inset:10px;border:1px solid #a1adb879;border-radius:19px;pointer-events:none}
.masthead {position:relative;min-height:69px;display:flex;align-items:center;justify-content:space-between;margin:0 7px 18px;gap:20px;padding:2px 3px 10px;border-bottom:1px solid #b4bec7}
.brand-name {font-size:34px;font-weight:900;line-height:1.04;letter-spacing:-.054em;color:#263441;text-shadow:0 1px #fff8}
.brand-name span {color:#f07832}
.workbench-subtitle {display:flex;align-items:center;gap:9px;margin-top:6px;font-size:9px;font-weight:900;letter-spacing:.27em;color:#657482}
.workbench-subtitle b{color:var(--orange);font-size:14px;line-height:0}
.status-led {display:inline-block;width:7px;height:7px;border-radius:50%;background:#90bda1;box-shadow:0 0 0 2px #d8f0dc,0 0 7px #55986588}
.header-right{display:flex;gap:20px;align-items:center}
.edition-code{font-size:10px;letter-spacing:.17em;color:#7c8993;font-weight:900}
.orange-stripes{display:flex;gap:7px;margin-right:7px;transform:skewX(-24deg)}
.orange-stripes i{display:block;width:16px;height:36px;background:linear-gradient(90deg,#d76422,#f7a052 58%,#f18c38);box-shadow:0 3px 0 #9f4c24,2px 0 1px #fff6;border-radius:2px}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.screen-panel{position:relative;min-width:0;padding:16px 18px 12px;border-radius:21px;
  background:linear-gradient(150deg,#d8e0e6 0%,#bac5ce 100%);
  border:2px solid #f9fbfc;box-shadow:0 0 0 1px #929eaa,0 9px 14px #49576324,inset 0 2px 2px #fff8,inset 0 -4px 8px #7f8e9c30}
.screen-panel::after{content:"";position:absolute;right:18px;top:18px;width:7px;height:7px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 3px #e7edf0,0 0 0 4px #9da7b1}
.panel-heading{height:28px;padding:0 9px 10px;align-items:center}
.panel-ident{display:flex;align-items:center;gap:12px}
.section-index {font-weight:900;font-size:10px;color:#bd6735;letter-spacing:.08em}
.section-caption{font-size:10px;letter-spacing:.18em;font-weight:900;color:#4a5761}
.panel-tools{font-size:9px;font-weight:850;color:#6c7b89;letter-spacing:.1em}
.panel-divider{padding:0 9px;color:#d4793f}
.tiny-dot{display:inline-block;width:5px;height:5px;background:#92b49e;vertical-align:2px;border-radius:50%;margin-right:6px}
.screen-frame{position:relative;border-radius:13px;border:9px solid #85919b;background:#1a2026;overflow:hidden;box-shadow:0 0 0 3px #e7ebee,0 0 0 4px #a4adb5,0 9px 16px #424d5980,inset 0 0 0 4px #12171d}
.screen-frame::before{content:"";position:absolute;left:0;top:0;width:100%;height:20px;background:linear-gradient(#ffffff0f,transparent);z-index:2;pointer-events:none}
.screen-viewport{height:552px;background:#222831}
.screen-scene{background:
  radial-gradient(ellipse at 44% 35%,#3b434b77,transparent 72%),
  linear-gradient(142deg,#30363e,#252b33 58%,#1e252c);color:#e9e9e9}
.panel-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 7px 1px;font-size:9px;letter-spacing:.16em;font-weight:900;color:#768490}
.calibration-ticks{flex:1;height:10px;opacity:.5;background:repeating-linear-gradient(90deg,#8093a1 0px,#8093a1 1px,transparent 1px,transparent 11px);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)}
.frame-screw{position:absolute;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#eef4f6,#9daab5 72%);border:1px solid #8899a8;box-shadow:inset 1px 1px 1px #fff8,1px 1px 2px #66758166;pointer-events:none}
.frame-screw::after{content:"";position:absolute;width:5px;height:1px;top:4px;left:1.5px;background:#627485;transform:rotate(-42deg)}
.screw-tl{top:15px;left:8px}.screw-tr{top:15px;right:8px}.screw-bl{bottom:13px;left:8px}.screw-br{bottom:13px;right:8px}
.corner-alert{position:absolute;width:7px;height:37px;background:var(--orange);transform:skewX(-20deg);pointer-events:none;box-shadow:5px 0 0 #f9a861}
.corner-alert-a{left:21px;top:48px}.corner-alert-b{right:26px;bottom:49px;height:24px}
.sidebar{display:flex;flex-direction:column;gap:12px;min-width:0}
.measurement-head{height:22px;display:flex;align-items:center;gap:11px;padding:0 5px 1px;font-size:10px;font-weight:900;color:#4e5c6c;letter-spacing:.16em}
.measurement-head .tiny-orange-bar{flex:1;align-self:center;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--orange),#ee873a66,transparent)}
.record-chassis{position:relative;border-radius:17px;background:linear-gradient(135deg,#eef1f3,#c9d3dc);border:2px solid #f5f9fa;box-shadow:0 0 0 1px #9aa6af,0 7px 12px #49596825,inset 0 2px 1px #fff;padding:11px 13px 12px}
.record-chassis::before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:4px;border-radius:4px;background:linear-gradient(var(--orange),#d2692b)}
.data-caption{height:22px;display:flex;align-items:center;gap:8px;color:#566573;font-size:10px;font-weight:950;letter-spacing:.16em}
.data-caption .ui-icon{width:16px;height:16px;stroke:#d97536}
.data-caption i{margin-left:auto;font-style:normal;font-size:9px;color:#9ca7b0}
.data-caption h2{margin:0;font-size:10px;letter-spacing:.16em;color:#697783;font-weight:950}
.numeric-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.numeric-reading{min-height:58px;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:9px;background:linear-gradient(160deg,#e6ebef,#dae3e9);border:1px solid #bdc7d0;box-shadow:inset 0 1px 1px #fff,0 2px 1px #aeb9c34d;color:#35424d}
.numeric-reading .ui-icon{width:20px;height:20px;stroke:#da803f}
.numeric-reading strong{font-size:31px;font-weight:900;letter-spacing:-.07em;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1}
.data-separator{height:1px;background:#b0bcc6;margin:10px 3px 9px;border-bottom:1px solid #fff9}
.numeric-pair-now{margin-top:5px}
.numeric-pair-now .numeric-reading{min-height:45px;padding:7px 12px;background:#e9edf0}
.numeric-pair-now .numeric-reading strong{font-size:27px}
.numeric-pair-now .numeric-reading .ui-icon{width:18px;height:18px;stroke:#82949e}
.reading-symbol{display:flex;align-items:center}
.settings-card{min-width:0;position:relative;padding:13px 15px 16px;border-radius:18px;background:linear-gradient(140deg,#f0f3f5,#cbd5dd);border:2px solid #f6fafb;box-shadow:0 0 0 1px #9ba7b1,0 7px 13px #49596826,inset 0 2px 1px #fff}
.settings-heading{display:flex;align-items:center;gap:9px;color:#3f5262;font-size:14px;font-weight:950;letter-spacing:.09em;padding-bottom:9px;border-bottom:1px solid #b3bfc8}
.settings-heading .ui-icon{width:19px;height:19px;color:#e5823b}
.settings-num{margin-left:auto;font-size:10px;color:#a0aab3}
.theme-section{padding:12px 0 6px}
.settings-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:10px;color:#657584;letter-spacing:.15em;font-weight:950}
.settings-label span:last-child{color:#a2aeb6}
.theme-grid{--theme-key-size:80px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0 1px}
/* Give the empty decorative cap a definite size. A grid inside a native
   button can shrink percentage-sized children to zero in Chromium. */
.theme-key,.theme-key.is-selected{min-height:var(--theme-key-size);height:var(--theme-key-size);width:100%;display:block;padding:0;border:0;border-radius:9px;background:transparent;box-shadow:none;transform:none;cursor:pointer;position:relative;touch-action:manipulation}
.theme-key .theme-keycap{display:block;position:absolute;inset:0;margin:auto;width:var(--theme-key-size);height:var(--theme-key-size);max-width:100%;max-height:100%;box-sizing:border-box;border-radius:13px;pointer-events:none;filter:drop-shadow(0 2px 2px #17212960);transition:transform 70ms ease-out,filter 75ms ease-out}
.theme-key.theme-basic .theme-keycap{background:var(--basic-keycap) center/100% 100% no-repeat}
.theme-key.theme-wood .theme-keycap{background:var(--walnut-keycap) center/100% 100% no-repeat}
.theme-key.theme-glass .theme-keycap{background:var(--crystal-keycap) center/100% 100% no-repeat}
.theme-key.theme-metal .theme-keycap{background:var(--gunmetal-keycap) center/100% 100% no-repeat}
.theme-key.theme-stone .theme-keycap{background:var(--granite-keycap) center/100% 100% no-repeat}
.theme-key.theme-gel .theme-keycap{background:var(--gel-keycap) center/100% 100% no-repeat}
/* Selection is represented by the full LED in the image's recessed slot,
   not a ring around the button. It moves with the keycap on press. */
.theme-key.theme-basic{--theme-led-top:64.8%}
.theme-key.theme-wood{--theme-led-top:65.2%}
.theme-key.theme-glass{--theme-led-top:59.2%}
.theme-key.theme-metal{--theme-led-top:61.9%}
.theme-key.theme-stone{--theme-led-top:61.9%}
.theme-key.theme-gel{--theme-led-top:63%}
.theme-key.is-selected:not(:disabled) .theme-keycap::after{content:"";position:absolute;left:22%;right:21.5%;top:var(--theme-led-top,65%);height:6.8%;border-radius:999px;background:linear-gradient(to bottom,#fff3f4 0%,#ff9ba5 19%,#ff4054 52%,#dd1930 100%);box-shadow:0 0 2px #fff9,0 0 4px #ff4054,0 0 7px #ff374c80;pointer-events:none}
.theme-key.theme-glass.is-selected:not(:disabled) .theme-keycap::after{right:22%;height:6.6%}
.theme-key.theme-gel.is-selected:not(:disabled) .theme-keycap::after{left:22%;right:22.5%;height:6.1%}
.theme-key:not(:disabled):hover .theme-keycap{filter:drop-shadow(0 2px 2px #17212960) brightness(1.05)}
.theme-key:not(:disabled):is(.is-pressed,:active) .theme-keycap{transform:translateY(3px) scale(.98);filter:brightness(.94)}
.theme-key:focus-visible{outline:2px solid #526d83;outline-offset:3px}
.theme-key:disabled{opacity:.58;cursor:not-allowed;filter:saturate(.6)}
.theme-key:disabled .theme-keycap{background:var(--mat-top);border:1px solid var(--mat-line);border-bottom:7px solid var(--mat-base);box-shadow:inset 0 2px 3px #fffc,inset 0 -1px 2px #17212926}
.settings-divider{height:1px;margin:15px 0 12px;background:#aab7c0;border-bottom:1px solid #fff9}
.setting-row{display:flex;align-items:center;gap:11px;margin:10px 0 13px}
.setting-row label{display:flex;align-items:center;justify-content:center;flex:0 0 27px;color:#5a7182}
.setting-row .ui-icon{width:20px;height:20px}
.setting-row output{font-weight:900;font-size:11px;color:#5c6b75;text-align:right;min-width:35px;font-variant-numeric:tabular-nums}
.volume-slider{flex:1;min-width:0;width:auto;height:6px;margin:0;accent-color:var(--orange);cursor:pointer;appearance:none;-webkit-appearance:none;background:#9caab6;border-radius:8px;border:1px solid #8494a0;box-shadow:0 1px 0 #fff;outline-offset:7px}
.volume-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:linear-gradient(145deg,#faab62,#e3762b);border:2px solid #ffcf9b;box-shadow:0 1px 3px #6e4d3188}
.volume-slider::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:#f28e42;border:2px solid #ffcf9b}
.compact-divider{margin:13px 0 12px}
.reset-label{display:flex;align-items:center;gap:8px;color:#647482;font-size:10px;font-weight:900;letter-spacing:.12em;margin-bottom:10px}
.reset-label .ui-icon{width:16px;height:16px;color:#dc7b37}
.reset-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.reset-actions button{min-height:38px;border-radius:9px;border:1px solid #b7c1ca;border-bottom:3px solid #9aa9b5;background:linear-gradient(160deg,#f5f7f8,#dce4e9);color:#5b7182;display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;box-shadow:inset 0 1px #fff,0 2px 2px #697d8c3d}
.reset-actions button:hover{background:linear-gradient(160deg,#fff,#e9edf1)}
.reset-actions button:active{transform:translateY(2px);border-bottom-width:1px}
.reset-actions .ui-icon{width:20px;height:20px}.reset-actions .reset-icon{width:17px;height:17px;color:#dc7b37}
.sidebar-foot{display:flex;justify-content:space-between;padding:3px 5px;color:#687784;font-weight:900;letter-spacing:.15em;font-size:9px}
.small-bars{color:var(--orange);font-size:15px}
.app-footer{border-top:1px solid #a7b4bf;display:flex;justify-content:space-between;margin:14px 7px 0;padding:9px 1px 0;font-size:9px;letter-spacing:.16em;font-weight:850;color:#7d8a97}
.app-footer b{color:#d8793d;font-size:10px}
/* Inside remains independent of outer skin; only concise prototype interface is styled below. */
.screen-topline{display:flex;align-items:center;gap:9px;color:#9ca8b3;font-size:10px;letter-spacing:.2em;font-weight:800}
.screen-topline span:last-child{margin-left:auto;color:#6e7b86}
.signal{display:inline-block;width:6px;height:6px;border-radius:50%;background:#f38b3e;box-shadow:0 0 12px #f38b3e66;flex:none}
.scene-start,.scene-result{padding:31px 39px 29px;display:flex;flex-direction:column}
.scene-start::after{display:none}
.start-center{position:relative;margin:auto 0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:320px}
.start-ring{width:176px;height:176px;border-radius:50%;border:1px solid #aebbc327;display:grid;place-items:center;font-size:93px;font-weight:100;letter-spacing:-.12em;color:#ffffff09;box-shadow:0 0 0 25px #e2edf105,0 0 0 50px #b2c1cc05}
.start-center p{margin:-114px 0 0;font-weight:650;font-size:45px;letter-spacing:.16em;line-height:1.24;color:#e1e7e9;z-index:1;text-shadow:0 2px 5px #12161c99}
.start-center p strong{font-weight:850;color:#f0924d}
.start-underline{height:3px;width:38px;background:#f08a3b;margin-top:21px;border-radius:5px;z-index:1}
.scene-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #65717b44;padding-top:17px;margin-top:auto;gap:20px;color:#88959e;font-size:10px;font-weight:850;letter-spacing:.16em}
.primary-control{min-width:160px;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:19px;padding:10px 15px;background:linear-gradient(165deg,#f5a25f,#e67e33);color:#1b252f;border-radius:8px;border:1px solid #f5bb86;border-bottom:4px solid #a84d1e;font-size:13px;letter-spacing:.16em;font-weight:950;cursor:pointer;box-shadow:0 3px 7px #0c121a45}
.primary-control:hover{filter:brightness(1.07)}.primary-control:active{transform:translateY(2px);border-bottom-width:2px}
.control-arrow{font-size:23px;font-weight:400;line-height:1}
.scene-play{padding:22px 28px 17px;display:flex;flex-direction:column}
.play-top{display:flex;justify-content:space-between;align-items:center;min-height:41px}
.play-mode{display:flex;gap:10px;align-items:center;font-size:10px;font-weight:850;letter-spacing:.18em;color:#a9b5bc}
.board-reset{width:43px;height:43px;min-width:43px;padding:0;display:grid;place-items:center;border-radius:9px;background:#4a555d;border:1px solid #8995a0;border-bottom:4px solid #1a2026;color:#f39b56;box-shadow:0 2px 7px #10161c55;cursor:pointer}
.board-reset .ui-icon{width:23px;height:23px}
.board-reset:hover{background:#596671}
.play-status{font-size:10px;letter-spacing:.09em;min-height:18px;margin:9px 0 3px;color:#8797a4}
.status-bullet{background:var(--orange)}
.play-board-region{margin-top:auto;min-height:0;padding:8px 0 1px;align-items:flex-end}
.board-shell{background:#aeb7bf;border:5px solid #5c6873;border-radius:10px;padding:2px;box-shadow:0 7px 22px #0b121bb0,0 0 0 1px #b6c1ca;overflow:hidden}
.board-shell:has(>.board.keycap-board){width:459px;max-width:459px}
.play-bottom-ticks{display:flex;align-items:center;justify-content:center;gap:11px;margin-top:9px;color:#697985;font-size:9px;font-weight:750}
.play-bottom-ticks i{width:24px;height:2px;background:#77869055;border-radius:4px}
.scene-result{padding:31px 40px 28px}
.result-content{margin:auto 0;max-width:none}
.result-kicker{font-size:12px;letter-spacing:.23em;font-weight:800;color:#e18b52}
.result-stats{display:flex;gap:15px;margin-top:21px}
.result-stats>div{min-width:0;flex:1;max-width:none;border:1px solid #9ca7af33;border-radius:12px;padding:22px 22px 18px;background:#fafbfc08}
.result-stats small{display:flex;align-items:center;color:#ed9a5e}
.result-stats strong{display:block;margin-top:9px;font-size:60px;font-weight:900;letter-spacing:-.07em;color:#fff;line-height:1.15}
/* v2.3 preserves the strip transition from v2.2. */
@media(prefers-reduced-motion:reduce){.screen-stack.moving{transition-duration:.01ms}}
