*{box-sizing:border-box}
:root{color-scheme:dark;--bg:#172127;--panel:#202c31;--line:#415154;--white:#f6eee0;--dim:#bfd0cd;--gold:#ffd080;--mint:#aee5c4}
body{margin:0;background:var(--bg);color:var(--white);font:16px/1.5 system-ui,sans-serif}
main{max-width:1440px;margin:0 auto;padding:clamp(14px,4vw,62px)}
header{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}
h1,h2,p{margin:0}
h1,h2{font-family:Georgia,serif;font-weight:400}
h1{font-size:clamp(3rem,7vw,6.2rem);line-height:.95;letter-spacing:-.055em;margin-top:.12em}
h2{font-size:clamp(1.8rem,3vw,2.65rem);line-height:1.05;letter-spacing:-.045em;margin:.12em 0 .3em}
.eyebrow{font-size:.73rem;font-weight:750;letter-spacing:.16em;color:var(--gold)}
nav,.choices,.actions{display:flex;gap:7px;flex-wrap:wrap}
button{font:inherit;background:#27373b;color:var(--white);border:1px solid #596b6f;border-radius:6px;min-height:42px;padding:.45em .75em;cursor:pointer}
button:hover:not(:disabled){border-color:var(--gold)}
button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
button:disabled{opacity:.46;cursor:default}
button[aria-pressed=true],button[aria-current=step]{color:#192327;background:var(--gold);border-color:var(--gold);font-weight:750}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.scene{position:relative;aspect-ratio:840/460;border:1px solid #56686a;border-radius:12px;overflow:hidden;background:#354b49}
.scene img,.scene canvas{display:block;width:100%;height:100%;position:absolute;inset:0}
.scene img{object-fit:cover;object-position:center 53%;filter:brightness(.79) saturate(.9)}
.map-legend{position:absolute;bottom:9px;left:9px;background:#172127ed;padding:5px 8px;border-radius:5px;font-size:clamp(.66rem,1.5vw,.83rem);display:flex;align-items:center;gap:7px}
.sample{width:18px;height:2px;background:var(--gold)}
.ring-sample{width:10px;height:10px;border-radius:50%;border:2px solid #fbebd2;margin-left:7px}
.desk{padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
#brief,footer{color:var(--dim);font-size:.9rem}
.settings{display:grid;gap:7px;margin:.9rem 0}
fieldset{border:0;margin:0;padding:0;min-width:0}
legend{padding:0 0 3px;font-weight:650;font-size:.8rem}
.choices button{min-width:45px;padding:.35em .55em}
#readings{list-style:none;margin:12px 0 14px;padding:8px 0;border-block:1px solid var(--line);font-variant-numeric:tabular-nums;font-size:.82rem}
#readings li{display:flex;justify-content:space-between;gap:8px}
[data-pass=true]{color:var(--mint)}
[data-pass=false]{color:#ffc0a9}
.primary{background:var(--gold);color:#182325;border-color:var(--gold);font-weight:750}
.primary:hover:not(:disabled){background:#ffe1a9}
.primary span{margin-left:.35em}
.quiet{background:transparent}
#status{margin-top:12px;color:var(--dim);font-size:.85rem;min-height:2.55em}
footer{display:flex;justify-content:space-between;gap:10px 20px;margin-top:15px;flex-wrap:wrap}
button[hidden]{display:none}
@media(max-width:850px){.layout{grid-template-columns:1fr}.desk{max-width:none}.settings{grid-template-columns:repeat(2,minmax(0,1fr))}.settings fieldset:last-child{grid-column:1/-1}}
@media(max-width:460px){header{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:12px}.desk{padding:13px}.choices button{min-height:44px}.layout{gap:10px}}
