:root{color-scheme:dark;--bg:#0b101c;--panel:#121a2a;--line:#303b51;--ink:#f6f7fb;--muted:#b8c4d6;--orange:#ff9c5b;--red:#b91e39;--blue:#a8c7ff;font:100%/1.55 system-ui,sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--ink);min-height:100vh}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit;font:inherit;font-weight:700;border-radius:.65rem;min-height:46px}button:disabled{cursor:default;opacity:.52}:focus-visible{outline:3px solid var(--orange);outline-offset:4px}h1,h2,p,figure{margin:0}a{color:var(--blue)}img{max-width:100%;height:auto;display:block}.wrap{width:min(1120px,calc(100% - 2rem));margin-inline:auto}header{border-bottom:1px solid var(--line)}.top,.footer,.dialog-bar,.zoom-tools{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.top{min-height:70px}.brand{background:none;border:0;padding:.25rem 0;color:var(--orange);font-weight:900;letter-spacing:.1em}.brand span:first-child{font-size:1.45rem;vertical-align:middle}.white{color:var(--ink)}
.hero{display:grid;grid-template-columns:1fr 1.12fr;align-items:center;margin:2.5rem 0 1rem;border:1px solid var(--line);overflow:hidden;border-radius:1.4rem;background:repeating-radial-gradient(circle at 10% 0%,transparent 0 38px,#9e376019 39px 40px),repeating-conic-gradient(from 12deg at 10% 0%,transparent 0 26deg,#9e376028 27deg 27.5deg),linear-gradient(145deg,#271223,#101d35 90%)}.hero-copy{padding:clamp(1.25rem,4vw,3.75rem)}.eyebrow{color:var(--orange);font-size:.875rem;font-weight:800;letter-spacing:.09em}h1{font-size:clamp(3rem,7vw,6.6rem);letter-spacing:-.082em;line-height:.91;margin:.55rem 0 1.25rem}h1 span{color:#ff526c}.lead{color:var(--muted);font-size:clamp(1rem,2vw,1.18rem);max-width:46ch}.hero button{margin-top:1.5rem}.cover{position:relative;height:100%;min-height:360px}.cover img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:52% 50%}.cover figcaption{position:absolute;bottom:1rem;right:1rem;padding:.35rem .75rem;background:#0b101ce8;border-radius:.4rem;font-size:.875rem}.primary{background:var(--red);border:1px solid #eb5270;padding:.6rem 1.15rem}.primary:hover{background:#a01632}.plain{background:#18243a;border:1px solid #435373;padding:.55rem .85rem}.plain:hover{background:#253653}.note,.step,.finish{background:var(--panel);border:1px solid var(--line);border-radius:1rem;padding:clamp(1rem,3vw,2.25rem)}.note summary{cursor:pointer;font-weight:800}.note p{margin:.75rem 0;color:var(--muted);max-width:75ch}.note img{border-radius:.55rem;max-width:min(100%,42rem);margin-top:1rem}.footer{margin-top:1.5rem;padding:1.15rem 0;border-top:1px solid var(--line);flex-wrap:wrap;justify-content:flex-start;column-gap:1.25rem;color:var(--muted)}
.status{display:grid;grid-template-columns:1fr auto;gap:.5rem;margin:1.4rem 0 1rem;color:var(--muted)}progress{grid-column:1/-1;width:100%;height:.65rem;appearance:none;border:none;border-radius:1rem;overflow:hidden;background:#28364f}progress::-webkit-progress-bar{background:#28364f}progress::-webkit-progress-value{background:linear-gradient(90deg,#ed3c5c,#ffa061)}progress::-moz-progress-bar{background:#ed5268}.step{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;align-items:center}.instruction{min-width:0}.instruction h2,.finish h2{line-height:1.1;letter-spacing:-.045em;font-size:clamp(1.8rem,4vw,3.4rem);margin:.55rem 0 .85rem}.instruction button,.finish button{margin-top:1rem}.diagram{background:#fdfdfd;color:#172540;border:0;min-width:0;display:grid;justify-items:center;padding:.8rem;gap:.5rem;cursor:zoom-in}.diagram img{height:clamp(220px,39vh,360px);width:auto;max-width:100%;object-fit:contain}.diagram span{font-size:.875rem}.actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.actions .primary{margin-left:auto}.muted{color:var(--muted);margin-top:.75rem;font-size:.875rem}.finish{margin-top:2rem}
dialog{width:min(860px,calc(100% - 1.5rem));max-height:90dvh;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:.85rem;padding:1rem}dialog::backdrop{background:#030610ce}.dialog-bar h2{font-size:1.25rem}.zoom-tools{justify-content:center;margin:.65rem 0}.zoom-tools output{min-width:4rem;text-align:center}#viewport{overflow:auto;max-height:64dvh;background:#fdfdfd;border-radius:.4rem;overscroll-behavior:contain}#large{max-width:none;margin-inline:auto}.chapter{margin-top:.8rem}.chapter h3{font-size:1rem;margin:0 0 .4rem}.chapter div{display:grid;grid-template-columns:repeat(auto-fit,minmax(46px,1fr));gap:.35rem}.chapter [aria-current]{outline:2px solid var(--orange);outline-offset:-2px}
@media(max-width:700px){.hero,.step{grid-template-columns:1fr}.hero{margin-top:1rem}.cover{min-height:0;aspect-ratio:4/2.8}.hero-copy{padding:1.35rem}.step{gap:.85rem}.diagram img{height:220px}.actions .primary{flex:1 1 100%;margin-left:0}.actions .plain{flex:1}.footer{margin-top:1rem}}
@media(max-width:360px){.wrap{width:calc(100% - 1.25rem)}h1{font-size:2.75rem}.eyebrow{letter-spacing:.045em}}

