/* Desktop bonus: the same shortcut can reach the browser or the system. */
html.lock-challenge-layout-active, html.lock-challenge-layout-active body { overflow-anchor: none; }
.lock-challenge {
    position: relative;
    padding: clamp(64px, 7vw, 104px) 0 clamp(60px, 7vw, 94px);
    color: var(--text-primary);
    background: var(--bg-surface);
    overflow: hidden;
    scroll-margin-top: 92px;
}
.lock-challenge[hidden], .lock-challenge [hidden],
.lock-challenge-panel[hidden], .lock-challenge-panel [hidden] { display: none !important; }
.lock-challenge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--accent), transparent);
}
.lock-challenge-inner { position: relative; width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.lock-challenge-heading { max-width: 720px; margin-inline: auto; text-align: center; }
.lock-challenge-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lock-challenge-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--accent-soft); }
.lock-challenge-heading h2 { margin: 17px 0 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; font-weight: 780; text-wrap: balance; }
.lock-challenge-heading > p { max-width: 600px; margin: 19px auto 0; color: var(--text-secondary); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.65; text-wrap: balance; }
.lock-challenge-scene { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(34px, 5vw, 76px); align-items: center; margin-top: 44px; padding-block: 36px 28px; border-block: 1px solid var(--border-strong); }
.lock-challenge-scene { row-gap: 20px; }
.lock-challenge-question { min-width: 0; }
.lock-challenge-task { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lock-challenge-question h3 { margin: 0; font-size: clamp(24px, 2.5vw, 33px); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.lock-challenge-question > p { margin: 13px 0 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.lock-challenge button { font-family: inherit; cursor: pointer; }
.lock-challenge button:focus-visible, .lock-challenge a:focus-visible, .lock-challenge-capture:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lock-challenge-os { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.lock-challenge-os button { min-height: 40px; padding: 8px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.lock-challenge-os button[aria-pressed="true"] { border-color: var(--border-strong); background: var(--bg-surface-2); color: var(--text-primary); }
.lock-challenge-os button:hover:not([aria-pressed="true"]):not(:disabled) { color: var(--accent); }
.lock-challenge-keys { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.lock-challenge-keys kbd { min-width: 30px; padding: 6px 8px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--bg-surface); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; font-weight: 700; text-align: center; }
.lock-challenge-keys b { font-size: 12px; color: var(--text-secondary); }
.lock-challenge button:disabled, .lock-challenge button[aria-disabled="true"] { cursor: default; }
.lock-challenge-controls { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lock-challenge-launch { position: relative; display: inline-flex; flex: 1 1 200px; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 48px; padding: 12px 16px; overflow: hidden; isolation: isolate; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; box-shadow: 0 8px 22px -12px var(--accent); font-size: 13px; font-weight: 750; line-height: 1.45; text-align: center; transition: box-shadow .2s, transform .2s; }
.lock-challenge-launch:hover:not(:disabled) { box-shadow: 0 10px 26px -10px var(--accent); transform: translateY(-1px); }
.lock-challenge-launch:disabled { opacity: .65; }
.lock-challenge-launch.is-physical { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.lock-challenge-launch.is-physical::after { content: ''; position: absolute; z-index: -1; top: -50%; left: -70%; width: 45%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg); pointer-events: none; }
.lock-challenge.is-entered .lock-challenge-launch.is-physical::after { animation: lock-challenge-shimmer 5.8s ease-in-out infinite; }
.lock-challenge .lock-challenge-launch.is-physical[aria-expanded="true"]::after,
.lock-challenge .lock-challenge-launch.is-physical:disabled::after { animation: none; opacity: 0; }
.lock-challenge-text-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--text-secondary); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lock-challenge-text-button:hover { color: var(--accent); }
.lock-challenge-physical-note { width: 100%; margin: 6px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
.lock-challenge-capture { display: grid; gap: 9px; width: 100%; flex-basis: 100%; margin-top: 4px; padding: 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-surface-2); color: var(--text-secondary); font-size: 12px; line-height: 1.6; transition: border-color .2s, background .2s; }
.lock-challenge-capture strong, .lock-challenge-capture label { color: var(--text-primary); font-weight: 700; }
.lock-challenge-capture:focus, .lock-challenge-capture:focus-within { border-color: var(--accent); background: var(--accent-soft); outline-offset: 3px; }
.lock-challenge-input { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--bg-surface); color: var(--text-primary); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; font-weight: 650; line-height: 1.5; letter-spacing: .01em; cursor: text; transition: border-color .2s, box-shadow .2s; }
.lock-challenge-input::placeholder { color: var(--text-tertiary); font-family: inherit; font-size: 13px; font-weight: 400; letter-spacing: normal; }
.lock-challenge-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.lock-challenge-input[data-state="retry"] { border-color: var(--accent); color: var(--accent); }
.lock-challenge-input[data-state="correct"] { border-color: var(--ok); color: var(--ok); }
.lock-challenge-input::selection { background: var(--accent-soft); color: var(--text-primary); }
.lock-challenge-feedback { min-height: 42px; margin: 14px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.lock-challenge-feedback[data-state="correct"] { color: var(--ok); }
.lock-challenge-feedback[data-state="retry"] { color: var(--accent); }
.lock-challenge-feedback:empty { min-height: 0; margin: 0; }
.lock-challenge-stage { position: relative; display: grid; align-content: center; justify-items: center; min-width: 0; min-height: 350px; padding: 34px 12px 44px; background: radial-gradient(ellipse at 50% 46%, var(--accent-soft), transparent 69%); }
.lock-challenge-stage:focus { outline: none; }
.lock-challenge-loader { position: fixed; top: 50%; left: 50%; z-index: 130; display: grid; place-items: center; width: min(320px, calc(100% - 40px)); transform: translate(-50%, -50%); pointer-events: none; animation: lock-challenge-loader-enter .18s ease-out both; }
.lock-challenge-loader-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 240px; max-width: 100%; padding: 24px 28px; border: 1px solid var(--border-strong); border-radius: 16px; background: color-mix(in srgb, var(--bg-surface) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); color: var(--text-primary); font-size: 13px; line-height: 1.6; text-align: center; }
.lock-challenge-loader-card button { min-height: 36px; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; pointer-events: auto; }
.lock-challenge-loader-spinner { flex: none; width: 18px; height: 18px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: lock-challenge-loader-spin .8s linear infinite; }
.lock-challenge-stage::before, .lock-challenge-stage::after { content: '+'; position: absolute; color: var(--accent); font-size: 22px; font-weight: 300; line-height: 1; opacity: .48; pointer-events: none; }
.lock-challenge-stage::before { top: 14%; right: 8%; transform: rotate(12deg); }
.lock-challenge-stage::after { left: 3%; bottom: 23%; font-size: 14px; transform: rotate(-14deg); }
.lock-challenge-monitor { position: relative; width: min(100%, 480px); padding: 9px 9px 26px; border: 1px solid var(--border-strong); border-radius: 20px; background: var(--bg-surface-2); box-shadow: 0 26px 48px -28px rgba(15, 23, 42, .28); transform: perspective(1100px) rotateY(-5deg) rotateX(2deg); transition: transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s; }
.lock-challenge-monitor::after { content: ''; position: absolute; bottom: 11px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 7px var(--ok-soft); }
.lock-challenge-screen { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 252px; padding: 40px 24px 30px; overflow: hidden; border: 1px solid var(--border-color); border-radius: 11px; background: var(--bg-surface); text-align: center; }
.lock-challenge-screen::before { content: ''; position: absolute; top: 16px; left: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); box-shadow: 10px 0 var(--border-strong), 20px 0 var(--border-strong); }
.lock-challenge-screen::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--ok-soft); pointer-events: none; transition: box-shadow .45s; }
.lock-challenge-lock { position: relative; display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 1px; border: 1px solid var(--border-color); border-radius: 20px; background: var(--accent-soft); color: var(--accent); transition: color .35s, background .35s, border-color .35s; }
.lock-challenge-lock svg { display: block; width: 29px; height: 29px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lock-challenge-screen-title { max-width: 100%; color: var(--text-primary); font-size: 19px; line-height: 1.3; font-weight: 750; letter-spacing: -.025em; }
.lock-challenge-screen-status { max-width: 280px; margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.lock-challenge-screen-combo { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.lock-challenge-screen-combo .lock-challenge-keys kbd, .lock-challenge-screen-combo kbd { min-width: 25px; padding: 4px 7px; font-size: 11px; }
.lock-challenge-stand { position: relative; width: 66px; height: 31px; margin-top: -1px; border-inline: 1px solid var(--border-strong); background: linear-gradient(var(--bg-surface-2), var(--bg-surface)); }
.lock-challenge-stand::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 138px; height: 10px; border: 1px solid var(--border-strong); border-radius: 50% 50% 4px 4px; background: var(--bg-surface-2); transform: translateX(-50%); box-shadow: 0 10px 18px -8px rgba(15, 23, 42, .22); }
.lock-challenge-suggestions { grid-column: 1 / -1; width: 100%; min-width: 0; margin-top: 0; text-align: center; }
.lock-challenge-suggestion-label { display: block; margin-bottom: 12px; color: var(--text-tertiary); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lock-challenge-suggestion-stack { position: relative; display: block; width: 100%; min-height: 70px; }
.lock-challenge-suggestion { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: none; pointer-events: none; }
.lock-challenge-suggestion[data-active="true"] { opacity: 1; transform: translateY(0); }
.lock-challenge-suggestion .lock-challenge-keys { justify-content: center; gap: clamp(10px, 1.4vw, 20px); color: var(--accent); font-size: clamp(30px, 3.5vw, 46px); line-height: 1.2; letter-spacing: -.025em; }
.lock-challenge-suggestion kbd { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font-family: inherit; font-size: inherit; font-weight: 800; line-height: inherit; }
.lock-challenge-suggestion .lock-challenge-keys b { color: inherit; font-size: .68em; font-weight: 600; }
.lock-challenge-linux-note { margin: 12px auto 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; text-wrap: balance; }
.lock-challenge.is-entered .lock-challenge-monitor { transform: perspective(1100px) rotateY(0) rotateX(0); }
.lock-challenge.is-entered .lock-challenge-lock { animation: lock-challenge-breathe 4.8s ease-in-out infinite; }
.lock-challenge[data-state="physical"] .lock-challenge-lock,
.lock-challenge[data-state="away"] .lock-challenge-lock { color: var(--text-secondary); background: var(--bg-surface-2); }
.lock-challenge[data-state="virtual-result"] .lock-challenge-lock,
.lock-challenge[data-state="physical-result"] .lock-challenge-lock { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); animation: lock-challenge-pop .5s cubic-bezier(.2, .8, .3, 1) both; }
.lock-challenge[data-state="virtual-result"] .lock-challenge-screen::after,
.lock-challenge[data-state="physical-result"] .lock-challenge-screen::after { box-shadow: inset 0 0 0 4px var(--ok-soft); }
.lock-challenge-result { max-width: 700px; margin: 30px auto 0; padding: 27px 0 0; text-align: center; }
.lock-challenge-result .lock-challenge-kicker { color: var(--ok); }
.lock-challenge-result .lock-challenge-task { color: var(--ok); }
.lock-challenge-result .lock-challenge-kicker::before { box-shadow: 0 0 0 4px var(--ok-soft); }
.lock-challenge-result h3 { margin: 13px 0 0; color: var(--text-primary); font-size: clamp(25px, 3vw, 35px); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.lock-challenge-result p { max-width: 620px; margin: 15px auto 0; color: var(--text-secondary); font-size: 14px; line-height: 1.75; text-wrap: pretty; }
.lock-challenge-result h3:focus { outline: none; }
.lock-challenge-result-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 21px; }
.lock-challenge-result-actions > a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.lock-challenge-result-actions > a:not(.btn):hover { color: var(--accent); }
.lock-challenge-result > .lock-challenge-text-button { margin-top: 7px; font-size: 11px; }
/* The iframe is portaled to body, so the dock keeps its own complete styling. */
.lock-challenge-confirm { display: grid; gap: 16px; margin-top: 18px; padding: 20px; border: 1px solid var(--accent); border-radius: 14px; background: var(--accent-soft); }
.lock-challenge-confirm h3 { margin: 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.35; }
.lock-challenge-confirm h3:focus { outline: none; }
.lock-challenge-confirm > div { display: flex; flex-wrap: wrap; gap: 10px; }
.lock-challenge-confirm button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 700; }
.lock-challenge-confirm button:hover { border-color: var(--accent); }
.lock-challenge-confirm button[data-lock-confirm="yes"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.lock-challenge-panel { position: fixed; bottom: max(8px, env(safe-area-inset-bottom, 0px)); z-index: 110; min-width: 0; color: var(--text-primary); pointer-events: none; }
.lock-challenge-panel.is-dormant { visibility: hidden; }
.lock-challenge-panel .lock-challenge-text-button { pointer-events: auto; font-family: inherit; }
.lock-challenge-frame { position: relative; width: 100%; min-width: 0; }
.lock-challenge-frame iframe { display: block; width: 100%; height: 450px; border: 0; }
.lock-challenge-panel:not(.is-dormant):not([inert]) iframe { pointer-events: auto; }
.lock-challenge-panel[data-keyboard-state="opening"] .lock-challenge-frame,
.lock-challenge-panel[data-keyboard-state="closing"] .lock-challenge-frame { will-change: transform, opacity; }
.lock-challenge-panel.is-preparing .lock-challenge-frame,
.lock-challenge-frame.is-preparing { height: 0; overflow: hidden; visibility: hidden; }
.lock-challenge-keyboard-status { margin: 12px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-surface); box-shadow: var(--shadow-sm); color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.lock-challenge-keyboard-status button { min-height: 36px; padding: 7px 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; pointer-events: auto; }
.lock-challenge-panel button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@keyframes lock-challenge-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes lock-challenge-loader-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes lock-challenge-loader-spin { to { transform: rotate(360deg); } }
@keyframes lock-challenge-pop { 0% { transform: scale(.94); } 65% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes lock-challenge-shimmer { 0%, 12% { transform: translateX(0) skewX(-20deg); opacity: 0; } 17% { opacity: .75; } 36% { transform: translateX(500%) skewX(-20deg); opacity: .75; } 40%, 100% { transform: translateX(500%) skewX(-20deg); opacity: 0; } }
@media (max-width: 820px) {
    .lock-challenge-scene { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 32px; padding-block: 28px; }
    .lock-challenge-stage { grid-row: 1; min-height: 0; padding-block: 20px 29px; }
    .lock-challenge-monitor { width: min(100%, 420px); }
    .lock-challenge-screen { min-height: 230px; }
    .lock-challenge-question { max-width: 590px; width: 100%; margin-inline: auto; }
}
@media (max-width: 460px) {
    .lock-challenge-inner { width: calc(100% - 36px); }
    .lock-challenge-heading h2 { font-size: 32px; }
    .lock-challenge-heading > p { font-size: 15px; }
    .lock-challenge-stage { padding-inline: 0; }
    .lock-challenge-stage::before, .lock-challenge-stage::after { display: none; }
    .lock-challenge-monitor { border-radius: 16px; padding: 7px 7px 24px; }
    .lock-challenge-screen { min-height: 220px; padding: 35px 16px 24px; }
    .lock-challenge-controls { align-items: stretch; gap: 10px; flex-direction: column; }
    .lock-challenge-launch { flex-basis: auto; width: 100%; }
    .lock-challenge-controls > .lock-challenge-text-button { align-self: center; }
    .lock-challenge-result-actions { align-items: stretch; flex-direction: column; gap: 5px; }
    .lock-challenge-result-actions > a:not(.btn) { justify-content: center; }
}
/* Physical input keeps the computer large and replaces the launch controls
   with a focused field. JavaScript preserves the previous viewport anchor. */
.lock-challenge.is-physical-active { padding-top: var(--lock-physical-prefix, 18px); padding-bottom: 18px; }
.lock-challenge.is-physical-active::before { display: none; }
.lock-challenge.is-physical-active .lock-challenge-scene { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 16px clamp(24px, 4vw, 56px); margin: 0; padding: 0; border: 0; }
.lock-challenge.is-physical-active .lock-challenge-question h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.lock-challenge.is-physical-active .lock-challenge-controls { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; }
.lock-challenge.is-physical-active .lock-challenge-launch.is-physical { order: 2; align-self: flex-start; flex: none; width: auto; min-height: 36px; padding: 6px 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text-secondary); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; transform: none; }
.lock-challenge.is-physical-active .lock-challenge-launch.is-physical:hover { color: var(--accent); box-shadow: none; transform: none; }
.lock-challenge.is-physical-active .lock-challenge-launch.is-physical::after { content: none; }
.lock-challenge.is-physical-active .lock-challenge-physical-note { display: none; }
.lock-challenge.is-physical-active .lock-challenge-capture { order: 0; flex-basis: auto; gap: 8px; margin: 0; padding: 12px; }
.lock-challenge.is-physical-active .lock-challenge-capture label,
.lock-challenge.is-physical-active .lock-challenge-capture > span { font-size: 12px; line-height: 1.45; }
.lock-challenge.is-physical-active .lock-challenge-input { min-height: 52px; }
.lock-challenge.is-physical-active .lock-challenge-feedback { min-height: 0; margin: 8px 0 0; font-size: 12px; line-height: 1.45; }
.lock-challenge.is-physical-active .lock-challenge-feedback:empty { margin: 0; }
.lock-challenge.is-physical-active .lock-challenge-stage { min-height: 0; padding: 0; }
.lock-challenge.is-physical-active .lock-challenge-monitor { width: min(100%, 440px); transform: none; transition: none; }
.lock-challenge.is-physical-active .lock-challenge-screen { min-height: 238px; gap: 10px; padding: 30px 24px 24px; }
.lock-challenge.is-physical-active .lock-challenge-lock { width: 56px; height: 56px; border-radius: 16px; animation: none; }
.lock-challenge.is-physical-active .lock-challenge-lock svg { width: 26px; height: 26px; }
.lock-challenge.is-physical-active .lock-challenge-screen-title { font-size: 18px; }
.lock-challenge.is-physical-active .lock-challenge-screen-status { font-size: 12px; line-height: 1.5; }
.lock-challenge.is-physical-active .lock-challenge-stand { height: 26px; }
.lock-challenge.is-physical-active .lock-challenge-suggestions { grid-column: 1 / -1; margin: 0; }
@media (max-width: 820px) {
    .lock-challenge.is-physical-active .lock-challenge-scene { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
    .lock-challenge.is-physical-active .lock-challenge-stage { grid-column: 1; grid-row: 1; }
    .lock-challenge.is-physical-active .lock-challenge-question { grid-column: 1; grid-row: 2; }
    .lock-challenge.is-physical-active .lock-challenge-suggestions { grid-column: 1; grid-row: 3; }
}
/* A focused workspace exists only while the visitor tries the virtual board.
   JavaScript owns its measured size and the FLIP transition back to the lesson. */
.lock-challenge.is-virtual-active { padding-top: 18px; padding-bottom: var(--lock-keyboard-reserved, 18px); }
.lock-challenge.is-virtual-active::before,
.lock-challenge.is-virtual-active .lock-challenge-heading { display: none !important; }
.lock-challenge.is-virtual-active .lock-challenge-inner { width: min(900px, calc(100% - 48px)); }
.lock-challenge.is-virtual-active .lock-challenge-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; align-content: center; gap: 10px 24px; min-height: var(--lock-workspace-height, 0px); margin: 0; padding: 0; border: 0; }
.lock-challenge.is-virtual-active .lock-challenge-question { grid-column: 1 / -1; grid-row: 1; max-width: none; width: 100%; margin: 0; text-align: center; }
.lock-challenge.is-virtual-active .lock-challenge-question h3 { font-size: clamp(18px, 2.1vw, 24px); line-height: 1.2; letter-spacing: -.025em; }
.lock-challenge.is-virtual-active .lock-challenge-feedback { max-width: 560px; min-height: 0; margin: 6px auto 0; font-size: 12px; line-height: 1.4; text-wrap: balance; }
.lock-challenge.is-virtual-active .lock-challenge-feedback:empty { margin: 0; }
.lock-challenge.is-virtual-active .lock-challenge-stage { grid-column: 1; grid-row: 2; align-self: center; min-height: 0; padding: 0; background: none; }
.lock-challenge.is-virtual-active .lock-challenge-stage::before,
.lock-challenge.is-virtual-active .lock-challenge-stage::after { display: none; }
.lock-challenge.is-virtual-active .lock-challenge-monitor { width: min(100%, var(--lock-monitor-width, 300px)); padding: 6px 6px 18px; border-radius: 13px; box-shadow: 0 18px 32px -24px rgba(15, 23, 42, .28); transform: none; transition: none; }
.lock-challenge.is-virtual-active .lock-challenge-monitor::after { bottom: 7px; width: 4px; height: 4px; left: calc(50% - 2px); }
.lock-challenge.is-virtual-active .lock-challenge-screen { min-height: 0; aspect-ratio: 16 / 9; gap: 6px; padding: 18px; border-radius: 8px; }
.lock-challenge.is-virtual-active .lock-challenge-screen::before { top: 9px; left: 10px; width: 3px; height: 3px; box-shadow: 6px 0 var(--border-strong), 12px 0 var(--border-strong); }
.lock-challenge.is-virtual-active .lock-challenge-lock { width: 40px; height: 40px; flex: none; margin: 0; border-radius: 12px; animation: none; }
.lock-challenge.is-virtual-active .lock-challenge-lock svg { width: 21px; height: 21px; }
.lock-challenge.is-virtual-active .lock-challenge-screen-title { font-size: 14px; line-height: 1.25; }
.lock-challenge.is-virtual-active .lock-challenge-screen-status { max-width: 230px; font-size: 11px; line-height: 1.35; }
.lock-challenge.is-virtual-active .lock-challenge-screen-combo { margin-top: 0; gap: 4px; }
.lock-challenge.is-virtual-active .lock-challenge-screen-combo kbd { min-width: 20px; padding: 2px 4px; font-size: 10px; }
.lock-challenge.is-virtual-active .lock-challenge-stand { width: 44px; height: 18px; }
.lock-challenge.is-virtual-active .lock-challenge-stand::after { bottom: -5px; width: 92px; height: 7px; }
.lock-challenge.is-virtual-active .lock-challenge-suggestions { grid-column: 2; grid-row: 2; align-self: center; margin: 0; }
.lock-challenge.is-virtual-active .lock-challenge-suggestion-label { margin-bottom: 7px; font-size: 9px; letter-spacing: .075em; }
.lock-challenge.is-virtual-active .lock-challenge-suggestion-stack { min-height: 54px; }
.lock-challenge.is-virtual-active .lock-challenge-suggestion .lock-challenge-keys { gap: clamp(8px, 1.1vw, 15px); font-size: clamp(28px, 3.2vw, 40px); }
.lock-challenge.is-virtual-active .lock-challenge-linux-note { margin-top: 7px; font-size: 11px; line-height: 1.35; }
/* A wide, low desktop window keeps a large computer beside the bottom dock. */
.lock-challenge.is-virtual-active.is-workspace-split { padding-bottom: 18px; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-inner { width: min(1180px, calc(100% - 48px)); }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-scene { grid-template-columns: minmax(0, .44fr) minmax(0, .56fr); grid-template-rows: auto auto minmax(var(--lock-keyboard-reserved, 0px), 1fr); align-items: start; align-content: stretch; gap: 12px 32px; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-stage { grid-column: 1; grid-row: 1 / -1; align-self: center; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-question { grid-column: 2; grid-row: 1; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-suggestions { grid-column: 2; grid-row: 2; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-screen { padding: 24px; gap: 10px; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-lock { width: 56px; height: 56px; border-radius: 16px; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-lock svg { width: 26px; height: 26px; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-screen-title { font-size: 18px; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-screen-status { font-size: 13px; line-height: 1.5; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-stand { width: 60px; height: 26px; }
.lock-challenge.is-virtual-active.is-workspace-split .lock-challenge-stand::after { width: 126px; }
.lock-challenge.is-virtual-active.is-workspace-short .lock-challenge-screen { gap: 4px; padding: 10px; }
.lock-challenge.is-virtual-active.is-workspace-short .lock-challenge-question h3 { font-size: 18px; }
.lock-challenge.is-virtual-active.is-workspace-short .lock-challenge-screen-status { display: none; }
.lock-challenge.is-virtual-active.is-workspace-short .lock-challenge-lock { width: 28px; height: 28px; border-radius: 9px; }
.lock-challenge.is-virtual-active.is-workspace-short .lock-challenge-lock svg { width: 16px; height: 16px; }
.lock-challenge.is-virtual-active.is-workspace-short .lock-challenge-screen-title { font-size: 12px; }
.lock-challenge.is-virtual-active.is-workspace-short .lock-challenge-screen-combo kbd { padding: 1px 3px; font-size: 9px; }
.lock-challenge.is-virtual-active.is-workspace-short .lock-challenge-stand { height: 14px; }
@media (max-width: 640px) {
    .lock-challenge.is-virtual-active .lock-challenge-inner { width: calc(100% - 36px); }
    .lock-challenge.is-virtual-active .lock-challenge-scene { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    .lock-challenge.is-virtual-active .lock-challenge-stage { grid-column: 1; grid-row: 2; }
    .lock-challenge.is-virtual-active .lock-challenge-suggestions { grid-column: 1; grid-row: 3; }
    .lock-challenge.is-virtual-active .lock-challenge-suggestion-stack { min-height: 42px; }
    .lock-challenge.is-virtual-active .lock-challenge-suggestion .lock-challenge-keys { font-size: 28px; }
}
@media (max-height: 580px) {
    .lock-challenge.is-virtual-active { padding-top: 10px; }
    .lock-challenge.is-virtual-active .lock-challenge-scene { row-gap: 8px; }
    .lock-challenge.is-virtual-active .lock-challenge-question h3 { font-size: 18px; }
    .lock-challenge.is-virtual-active .lock-challenge-screen { gap: 4px; padding: 13px; }
    .lock-challenge.is-virtual-active .lock-challenge-lock { width: 32px; height: 32px; border-radius: 10px; }
    .lock-challenge.is-virtual-active .lock-challenge-lock svg { width: 18px; height: 18px; }
    .lock-challenge.is-virtual-active .lock-challenge-screen-title { font-size: 12px; }
    .lock-challenge.is-virtual-active .lock-challenge-screen-status { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .lock-challenge-loader, .lock-challenge-loader-spinner { animation: none; }
    .lock-challenge-monitor, .lock-challenge-launch, .lock-challenge-capture,
    .lock-challenge-input, .lock-challenge-suggestion, .lock-challenge-lock,
    .lock-challenge-screen::after { transition: none !important; }
    .lock-challenge-monitor, .lock-challenge.is-entered .lock-challenge-monitor { transform: none; }
    .lock-challenge.is-entered .lock-challenge-lock { animation: none; }
    .lock-challenge-launch:hover { transform: none; }
    .lock-challenge.is-entered .lock-challenge-launch.is-physical::after { animation: none; opacity: 0; }
    .lock-challenge-suggestion { transform: none; }
}
