:root{color-scheme:dark;--bg:#101716;--panel:#151e1b;--line:#2b3933;--text:#e5ebe1;--muted:#8a9c91;--green:#b8ed8c;--error:#ffad93;font-family:Arial,Helvetica,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh;color:var(--text);background:radial-gradient(ellipse at 75% 15%,#21302955,transparent 60%),var(--bg)}button{font:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible{outline:2px solid #fff;outline-offset:4px}button{-webkit-tap-highlight-color:transparent}::selection{background:var(--green);color:var(--bg)}
.terminal{max-width:1080px;margin:auto;padding:25px 40px 20px}.masthead{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:21px;gap:20px}.brand{font-size:12px;font-weight:800;letter-spacing:1.2px;display:flex;gap:9px;align-items:center}.brand-mark{display:grid;place-items:center;width:26px;height:26px;background:var(--green);color:var(--bg);font-size:26px}.brand-sub{font-size:9px;font-weight:400;color:var(--muted);max-width:78px;line-height:1.5;letter-spacing:1.5px}.connection,.eyebrow,.panel-heading>span,.target-footer,.footer,.scan-label,.steps,.selection-row,.key{font-family:Consolas,'Courier New',monospace}.connection{font-size:10px;letter-spacing:1px;color:var(--muted);display:flex;align-items:center;gap:8px}i{display:inline-block}.connection i,.target-footer i{width:5px;height:5px;background:var(--green);border-radius:50%}
.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 0 27px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--green);margin:0 0 10px}h1{margin:0;font-size:clamp(29px,3.4vw,40px);font-weight:500;letter-spacing:-1.5px}h1>span{color:var(--green)}.description{margin:12px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}.progress{min-width:213px;align-self:flex-end}.progress>p{font-size:12px;margin:0 0 12px;color:var(--muted)}.steps{display:flex;gap:6px}.steps span{width:47px;padding:9px 0;text-align:center;font-size:11px;border:1px solid var(--line);color:#687b6e}.steps .current{border-color:var(--green);color:var(--green);background:#b8ed8c0b}.steps .done{background:var(--green);border-color:var(--green);color:var(--bg)}
.workspace{display:grid;grid-template-columns:355px 1fr;border:1px solid var(--line);background:var(--panel)}.components{padding:22px 26px 13px;border-right:1px solid var(--line)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-heading h2{font-size:13px;font-weight:500;margin:0}.panel-heading>span{font-size:9px;letter-spacing:.7px;color:var(--muted)}.fragment-grid{display:grid;grid-template-columns:repeat(2,116px);gap:10px;justify-content:center;margin:20px 0}.fragment{position:relative;width:116px;height:116px;border:1px solid #35423a;background:#080c0a;padding:8px;transition:border-color .12s,box-shadow .12s}.fragment img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.fragment:hover:not(:disabled){border-color:#8b9c8e}.fragment[aria-pressed=true]{border:2px solid var(--green);padding:7px;box-shadow:0 0 0 2px #b8ed8c12}.fragment .number{position:absolute;left:4px;top:3px;background:#080c0ae8;color:#93a698;font:9px Consolas,monospace;padding:2px 3px;line-height:1}.fragment .checkmark{position:absolute;right:0;bottom:0;background:var(--green);color:#152015;width:18px;height:18px;font-size:13px;display:none}.fragment[aria-pressed=true] .checkmark{display:block}.selection-row{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;font-size:11px;color:var(--muted)}#selection-dots{display:flex;gap:4px}#selection-dots i{width:16px;height:3px;background:#38473b}#selection-dots i.filled{background:var(--green)}.primary{border:1px solid var(--green);background:var(--green);color:#182514;width:100%;min-height:44px;padding:12px 16px;font-size:13px;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:12px}.primary:hover:not(:disabled){background:#cdf5ad}.primary:disabled{opacity:.6}.key{font-size:10px;font-weight:400;color:#35482d}.hint{font-size:11px;line-height:1.4;min-height:30px;color:var(--muted);margin:11px 0 0}.hint.warning{color:var(--error)}
.target-panel{padding:22px 26px 0;display:flex;flex-direction:column;min-width:0}.scan-area{position:relative;flex:1;min-height:440px;display:flex;align-items:center;justify-content:center;margin:20px 0 0;background:linear-gradient(#28433318 1px,transparent 1px),linear-gradient(90deg,#28433318 1px,transparent 1px),#101813;background-size:30px 30px,30px 30px,auto;isolation:isolate}.scan-area>img{width:80%;max-width:310px;max-height:475px;object-fit:contain;mix-blend-mode:screen;filter:sepia(.25) hue-rotate(30deg);user-select:none;margin:28px 0 42px}.crosshair{position:absolute;width:17px;height:17px;border-color:#738b69;border-style:solid;z-index:1}.top-left{top:0;left:0;border-width:1px 0 0 1px}.top-right{top:0;right:0;border-width:1px 1px 0 0}.bottom-left{bottom:0;left:0;border-width:0 0 1px 1px}.bottom-right{bottom:0;right:0;border-width:0 1px 1px 0}.scan-label{position:absolute;bottom:15px;left:0;right:0;text-align:center;color:#677c6b;font-size:8px;letter-spacing:2px}.target-footer{font-size:8px;color:var(--muted);letter-spacing:1px;display:flex;justify-content:space-between;gap:10px;padding:20px 0}.target-footer i{margin-right:6px}.success{position:absolute;inset:0;background:#101b15ed;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;text-align:center;padding:20px}.success[hidden]{display:none}.success>span{font-size:55px;color:var(--green)}.success strong{font-size:23px;font-weight:400}.success small{color:var(--muted)}
.footer{display:flex;justify-content:space-between;gap:20px;font-size:9px;color:#7d9283;padding-top:19px;line-height:1.8}.footer kbd{font:inherit;color:#b3c3b4}.footer b{font-weight:400;margin:0 7px;color:#46594a}.footer>span:last-child{font-size:8px;letter-spacing:1px;white-space:nowrap}dialog{width:min(440px,calc(100vw - 36px));padding:36px;border:1px solid #56644c;background:#17211c;color:var(--text);text-align:center;box-shadow:0 25px 120px #0009}dialog::backdrop{background:#050b08bb;backdrop-filter:blur(7px)}dialog h2{font-size:28px;font-weight:400;letter-spacing:-.7px;margin:15px 0}dialog>p:not(.eyebrow){font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 27px}dialog .primary{justify-content:center}dialog .eyebrow{color:var(--error)}.result-icon{display:grid;place-items:center;border:1px solid var(--error);width:54px;height:54px;margin:0 auto 25px;color:var(--error);font-size:30px}dialog.won .result-icon{color:var(--green);border-color:var(--green)}dialog.won .eyebrow{color:var(--green)}
@media(min-width:760px) and (max-height:850px){.terminal{padding-top:15px}.masthead{padding-bottom:15px}.intro{padding:20px 0}.fragment-grid{grid-template-columns:repeat(2,96px);margin:16px 0;gap:8px}.fragment{width:96px;height:96px}.scan-area{min-height:360px}.scan-area>img{max-height:395px}.workspace{grid-template-columns:330px 1fr}.footer{padding-top:12px}}
@media(max-width:720px){.terminal{padding:20px}.brand-sub{display:none}.connection{font-size:8px;letter-spacing:0}.intro{align-items:flex-start;flex-direction:column;padding:24px 0}.progress{align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:10px}.progress>p{margin:0}.steps span{width:37px;padding:6px}.workspace{grid-template-columns:1fr}.target-panel{grid-row:1;padding:20px 20px 0;border-bottom:1px solid var(--line)}.scan-area{min-height:0;height:300px;margin-top:18px}.scan-area>img{height:250px;max-width:190px;margin:0 0 20px}.target-footer{padding:14px 0;font-size:7px}.components{padding:20px;border-right:0}.fragment-grid{grid-template-columns:repeat(2,minmax(0,130px));gap:12px}.fragment{width:100%;height:auto;aspect-ratio:1}.hint{min-height:16px}.footer{flex-direction:column;gap:9px}.panel-heading>span{font-size:8px}.success strong{font-size:21px}}
@media(min-width:760px) and (max-height:760px){.terminal{padding-top:12px;padding-bottom:10px}.masthead{padding-bottom:10px}.intro{padding:18px 0}.intro .eyebrow{margin-bottom:6px}h1{font-size:32px}.description{margin-top:8px}.components{padding:16px 26px 8px}.fragment-grid{grid-template-columns:repeat(2,84px);margin:12px 0}.fragment{width:84px;height:84px}.hint{min-height:16px;margin-top:8px}.target-panel{padding-top:16px}.scan-area{min-height:300px;margin-top:14px}.scan-area>img{height:340px;width:auto;max-width:85%;margin:14px 0 30px}.target-footer{padding:14px 0}.footer{padding-top:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
