:root{color-scheme:light;--ink:#19352f;--paper:#f5f2e8;--muted:#61736d;--gold:#dec583;--purple:#7651a1}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,sans-serif;font-size:16px;line-height:1.5}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}a{color:inherit}button:focus-visible,a:focus-visible,.view:focus-visible{outline:3px solid #9f6ddd;outline-offset:4px}button:disabled{opacity:.5;cursor:default}header{background:var(--ink);color:#fff9eb;display:flex;align-items:center;justify-content:space-between;padding:17px 4vw;gap:18px}.brand{font-size:14px;letter-spacing:2px;text-decoration:none}.brand b{display:block;font-size:21px;letter-spacing:6px}header nav{display:flex;align-items:center;gap:25px;font-size:14px}header button{border:1px solid #60786f;background:transparent;color:inherit;border-radius:8px;padding:9px 16px}main{max-width:1600px;margin:auto;padding:24px 4vw}.titlebar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.eyebrow{font-size:12px;font-weight:bold;letter-spacing:2px;margin:0 0 5px;color:var(--muted)}h1{font:500 clamp(32px,3.8vw,54px)/1.12 Georgia,serif;letter-spacing:-1px;margin:0}h1 em{color:var(--purple)}.travel-count{font-size:14px;white-space:nowrap}.travel-count strong{font-size:25px}.countries{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:22px}.country-tab{background:transparent;border:1px solid #c5ccc3;padding:10px 16px;border-radius:7px;font-size:14px;display:flex;align-items:center;gap:12px}.country-tab[aria-current=true]{background:var(--ink);color:white;border-color:var(--ink)}.tab-count{font-size:12px;opacity:.8}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:27px;align-items:start}.scene-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}h2{font:500 28px/1.15 Georgia,serif;margin:0 0 6px}.scene-heading h2{margin:0}.text-button{border:0;padding:5px 0;background:none;text-decoration:underline;text-underline-offset:4px;font-size:14px}.view{height:min(68vh,690px);min-height:420px;background:#e5eff0;border:1px solid #c2d1ce;position:relative;overflow:hidden;touch-action:none;cursor:grab;border-radius:10px}.view:active{cursor:grabbing}.world{width:1600px;height:1200px;position:absolute;transform-origin:0 0;will-change:transform}.world svg{width:100%;height:100%;position:absolute}.target{position:absolute;transform:translate(-50%,-50%);border:0;background:none;padding:0;cursor:inherit;z-index:2}.mineral{display:block;width:100%;height:100%;background-image:url('art/lossless-deployment/legacy-minerals.webp');background-size:400% 400%;background-repeat:no-repeat}.target.found{opacity:.4;outline:3px solid #fff;outline-offset:2px;border-radius:50%}.target:focus-visible{outline:4px solid #a858ed;outline-offset:4px}.zoom-controls{position:absolute;bottom:14px;right:14px;z-index:5;display:flex;align-items:center;background:#fffef9;box-shadow:0 2px 12px #19352f25;border:1px solid #c7d0c7;border-radius:8px;padding:3px}.zoom-controls button{border:0;background:none;min-width:41px;height:40px;font-size:19px}.zoom-controls #fit{font-size:14px}.zoom-controls output{font-size:14px;width:54px;text-align:center}.loading{position:absolute;inset:0;z-index:10;background:#e5eff0;display:grid;place-content:center;padding:30px;text-align:center}.loading[hidden]{display:none}#hint-region{position:absolute;border:7px dashed #f4bc34;background:#ffe88622;width:240px;height:240px;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:3}.under-scene{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px;color:var(--muted);margin:9px 0 16px}.discovery{border-left:4px solid var(--gold);padding:13px 17px;background:#fffdf7;min-height:108px}.discovery strong{font-family:Georgia,serif;font-size:21px}.discovery p{margin:5px 0 0;font-size:15px}.guide{background:#fffdf7;border:1px solid #d8dccf;border-radius:10px;padding:23px;margin-top:63px}.guide-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.guide-heading h2{font-size:26px}.guide-heading span{font-size:14px;white-space:nowrap}progress{width:100%;height:7px;accent-color:var(--ink);margin:12px 0 15px}.crystal-card{display:flex;align-items:center;width:100%;gap:12px;text-align:left;background:transparent;border:1px solid transparent;border-bottom-color:#e3e5db;border-radius:5px;padding:11px 5px;min-height:80px}.crystal-card .mineral{width:57px;height:57px;flex-shrink:0}.crystal-card .name{font-weight:bold;font-size:15px}.card-detail{font-size:13px;color:var(--muted);display:block;margin-top:3px}.crystal-card.selected{background:#f0e8fa;border:1px solid #cab3df}.crystal-card.done{background:#edf3e7}.primary{background:var(--ink);color:white;border:1px solid var(--ink);border-radius:7px;padding:12px 18px;font-weight:bold}.guide>.primary{width:100%;margin-top:20px}.guide-note{font-size:13px;color:var(--muted)}.book-note{border-top:1px solid #dddccf;margin-top:22px;padding-top:18px;font-size:14px}.book-note p{margin:7px 0}.book-note a{font-weight:bold;text-underline-offset:3px}footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:13px;color:var(--muted);padding:25px 0 5px}dialog{border:1px solid #b4c1b9;border-radius:12px;background:#fffdf7;color:var(--ink);max-width:580px;width:calc(100% - 30px);padding:33px;box-shadow:0 30px 90px #08241e4d;max-height:85vh;overflow:auto}dialog::backdrop{background:#142e278a;backdrop-filter:blur(3px)}dialog h2{font-size:33px;margin-bottom:15px}dialog p,dialog li{font-size:16px}.close{position:absolute;right:12px;top:9px;background:none;border:0;font-size:27px;width:38px;height:38px}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}.dialog-actions>button:not(.primary){border:1px solid #bac5bc;background:transparent;border-radius:7px;padding:12px}.fact-row{padding:14px 0;border-bottom:1px solid #dedfd4}.fact-row p{margin:5px 0;font-size:15px}details{margin-top:18px}summary{cursor:pointer;font-weight:bold}#sources a{display:block;font-size:14px;margin:10px 0;overflow-wrap:anywhere}
@media(max-width:1000px){main{padding:22px}.game-layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.guide{padding:17px}.view{min-height:390px}.country-tab{padding:8px 12px}.book-note{display:none}}
@media(max-width:720px){header{padding:13px 18px}.brand{font-size:10px}.brand b{font-size:16px;letter-spacing:4px}header nav{gap:14px}header nav>a{font-size:13px;max-width:85px;line-height:1.3}header button{font-size:13px;padding:8px}.titlebar{align-items:flex-start;margin-bottom:18px}.titlebar .eyebrow{font-size:10px;letter-spacing:1.5px}.travel-count{font-size:12px;margin-top:12px}.travel-count strong{font-size:19px}main{padding:20px 15px}h1{font-size:34px}.countries{gap:6px}.country-tab{font-size:13px;padding:7px 9px;gap:8px}.tab-count{font-size:11px}.game-layout{display:flex;flex-direction:column;gap:14px}.play-section,.guide{width:100%}.scene-heading h2{font-size:26px}.view{height:57vh;min-height:355px;max-height:620px}.guide{margin-top:0}.guide-heading h2{font-size:27px}#checklist{display:grid;grid-template-columns:1fr 1fr;gap:7px}.crystal-card .mineral{width:48px;height:48px}.crystal-card{gap:7px;padding:8px 3px}.crystal-card .name{font-size:14px}.under-scene{font-size:12px}.under-scene button{font-size:12px}.discovery{min-height:100px}.book-note{display:block}footer{font-size:12px}dialog{padding:27px 22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.sample-download{margin-top:22px;padding-top:18px;border-top:1px solid #d8dccf;font-size:14px}.sample-download a{font-weight:bold;text-underline-offset:3px}.sample-download p{color:var(--muted);margin:5px 0}.sample-download[hidden]{display:none}.fact-locality{color:var(--purple);font-weight:bold}.fact-row a{font-size:14px;text-underline-offset:3px}

.specimen-mask{display:block;width:100%;height:100%}.target .mineral{filter:drop-shadow(0 1px 1px #263a2540)}

.target.hinted{outline:6px solid #fff;box-shadow:0 0 0 10px #7651a1;border-radius:50%}

.locality-card{display:flex;gap:15px;align-items:center;margin-top:15px;padding-top:12px;border-top:1px solid #dce0d4}.locality-map{width:145px;height:110px;flex-shrink:0}.locality-card strong{font:700 14px Arial}.locality-card p,.locality-card a{font-size:12px}.locality-card p{margin:4px 0 8px}.locality-card a{text-underline-offset:3px}@media(max-width:480px){.locality-map{width:100px;height:85px}.locality-card{gap:10px}}

.save-strip{display:flex;align-items:center;gap:12px;font-size:12px;margin:-5px 0 15px;color:var(--muted)}.save-strip button{border:1px solid #acb8ad;border-radius:5px;background:#fffdf7;padding:5px 10px}.save-error{color:#9d2544}#passport-stamps{display:grid;grid-template-columns:1fr 1fr;gap:12px}.passport-stamp{border:2px dashed #c4cdbf;background:#f5f2e8;border-radius:12px;padding:14px 8px;display:grid;justify-items:center;gap:5px}.passport-stamp svg{width:100%;height:80px;fill:#a6b5a2}.passport-stamp span{font-size:11px;letter-spacing:1px}.passport-stamp.earned{border:3px solid var(--purple);background:#f1e9f8;color:#643792}.passport-stamp.earned svg{fill:#7651a1}header nav{flex-wrap:wrap;gap:12px}@media(max-width:720px){header{align-items:flex-start}header nav{justify-content:flex-end;max-width:220px}header nav>a{max-width:none}}

/* All scene targets inherit the scene cursor, including disabled found targets. */
.view .target{cursor:inherit}
.expert-scene .target.found{opacity:1;outline:3px solid #fff;box-shadow:0 0 0 5px #19352f;border-radius:50%}
.expert-scene .target.found .mineral{opacity:.4}

/* Approved specimen references and precisely aligned hit silhouettes. */
.reference-mineral{width:57px;height:65px;object-fit:contain;flex-shrink:0}
.expert-scene .target.found,.expert-scene .target.hinted{clip-path:none!important}

.view{user-select:none;-webkit-user-select:none;overscroll-behavior:contain}
.view.panning,.view.panning .target{cursor:grabbing}
.zoom-controls button{min-width:44px;min-height:44px;touch-action:manipulation}
@media(max-width:700px){.view{height:clamp(360px,62svh,620px);min-height:360px}.zoom-controls{bottom:8px;right:8px}}

/* Reference panel: persistent desktop guide and a compact phone tray. */
.guide{position:sticky;top:16px;max-height:calc(100svh - 32px);overflow-y:auto;padding:20px}
.guide-toggle,.guide-mini{display:none}
.guide .reference-mineral{width:78px;height:78px;object-fit:contain}
.guide .crystal-card{gap:12px;padding:12px 6px;min-height:105px}
.guide #checklist{display:block}
.find-slots{display:flex;gap:5px;margin-top:7px}
.find-slot{display:grid;place-items:center;width:17px;height:17px;border:1px solid #a9b6a4;border-radius:50%;font-size:12px;line-height:1;color:white}
.find-slot.filled{background:#406b49;border-color:#406b49}
.guide-look{font-size:13px;line-height:1.45;min-height:38px;color:var(--muted);margin:14px 0 8px}
.inspect-reference{width:100%;min-height:44px;padding:8px;border:1px solid #b8c5b0;border-radius:7px;background:#f7f6ed;font-size:14px}
#guide-body>.primary{width:100%;margin-top:12px}
.print-resources{margin-top:24px;padding:14px 18px;background:#fffdf7;border:1px solid #d8dccf;border-radius:8px}
.print-resources .sample-download,.print-resources .book-note{margin-top:10px;padding-top:10px}
#reference-picture{display:block;width:100%;height:min(35svh,300px);object-fit:contain;margin:22px 0}
@media(max-width:900px){
 body.has-guide-tray{padding-bottom:calc(148px + env(safe-area-inset-bottom))}
 .game-layout{grid-template-columns:minmax(0,1fr)}
 .guide{position:fixed;z-index:15;top:auto;bottom:0;left:0;right:0;margin:0;border-radius:16px 16px 0 0;padding:0 12px env(safe-area-inset-bottom);max-height:56svh;overflow:hidden;box-shadow:0 -5px 22px #19352f24;border:1px solid #c3cbbc}
 .guide-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:55px;border:0;background:none;text-align:left;padding:8px 3px}
 .guide-toggle strong{display:block;font-size:15px}.guide-toggle #tray-summary{display:block;font-size:12px;color:var(--muted)}
 #tray-action{font-size:13px;color:var(--purple);font-weight:bold}
 .guide-mini{display:flex;gap:5px;padding-bottom:8px}
 .guide-mini[hidden],#guide-body[hidden]{display:none}
 .mini-reference{flex:1;min-width:0;display:grid;grid-template-columns:1fr auto;grid-template-rows:33px auto;align-items:center;gap:0 3px;background:#f6f5eb;border:1px solid #dbe0d3;border-radius:8px;padding:4px}
 .mini-reference :is(img,svg.specimen-reference){width:100%;height:33px;object-fit:contain}.mini-reference span{grid-row:2;grid-column:1 / -1;font-size:10px;line-height:1.15;overflow-wrap:anywhere}.mini-reference b{font-size:11px}.mini-reference.selected{border-color:#9474b5;background:#f0e8fa}.mini-reference.done{background:#edf3e7}
 #guide-body{max-height:calc(56svh - 60px - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;padding:8px 3px 16px}
 #guide-body>.eyebrow,#difficulty-note{display:none}
 .guide-heading h2{font-size:21px}.guide progress{margin:6px 0 10px}
 .guide #checklist{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .guide .crystal-card{padding:7px 5px;gap:7px;min-height:96px;border:1px solid #dde2d7;background:#fffdf7;align-items:center}
 .guide .crystal-card.selected{border-color:#9474b5;background:#f0e8fa}.guide .crystal-card.done{background:#edf3e7}
 .guide .reference-mineral{width:54px;height:68px}.guide .crystal-card .name{font-size:12px}.guide .card-detail{font-size:11px}.find-slots{gap:4px}.find-slot{width:14px;height:14px;font-size:10px}
}

.scene-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 15px;max-width:55%}.scene-actions button{min-height:36px}
.find-toast{position:absolute;top:12px;left:12px;z-index:4;max-width:min(355px,calc(100% - 24px));display:flex;gap:10px;padding:12px;background:#fffdf5f5;border:1px solid #bccab0;border-radius:10px;box-shadow:0 3px 15px #19352f20;pointer-events:none}
.find-toast[hidden]{display:none}.find-toast :is(img,svg.specimen-reference){width:48px;height:58px;object-fit:contain;flex-shrink:0}.find-toast strong{font-size:14px}.find-toast p{font-size:12px;line-height:1.4;margin:4px 0 0}
.target.just-found{animation:discovery-ring .85s ease-out}.crystal-card.just-counted{animation:count-ring .7s ease-out}
@keyframes discovery-ring{0%{box-shadow:0 0 0 3px #f2c655,0 0 0 7px #fff}100%{box-shadow:0 0 0 18px #f2c65500,0 0 0 24px #ffffff00}}
@keyframes count-ring{0%{box-shadow:0 0 0 3px #d4bc7a}100%{box-shadow:0 0 0 8px #d4bc7a00}}
.completion-banner{width:100%;margin-top:12px;min-height:46px;border:1px solid #9bad83;border-radius:8px;background:#e8f0de;font-weight:bold}.completion-banner[hidden]{display:none}
.journal-entry{padding:16px 0;border-bottom:1px solid #d9dece;display:flow-root}.journal-entry :is(img,svg.specimen-reference){float:left;width:78px;height:85px;object-fit:contain;margin:0 14px 6px 0}.journal-entry h3{margin:0;font:600 19px Georgia,serif}.journal-entry p{font-size:14px}.journal-entry a{font-size:13px}.journal-locality{color:var(--muted)}#find-journal>.primary{margin-top:18px}
@media(prefers-reduced-motion:reduce){.target.just-found,.crystal-card.just-counted{animation:none}}
@media(max-width:600px){.scene-actions{gap:0 10px;max-width:60%}.scene-actions button{font-size:12px}.find-toast{top:8px;left:8px;max-width:calc(100% - 16px);padding:8px}.find-toast :is(img,svg.specimen-reference){width:35px;height:45px}}

#hint-region{border-radius:12px;border-width:5px;background:#ffe88616;pointer-events:none}
#hide-hint{display:block;margin:10px auto 0;min-height:36px}#hide-hint[hidden]{display:none}

.expedition-summary{font-size:13px;color:var(--muted);margin:8px 0 12px}
#country-browser{max-width:850px}#country-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.country-choice{border:1px solid #d0d9c6;background:#f6f5eb;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px}.country-choice img{width:100%;height:140px;object-fit:contain;background:#fffef5;border-radius:6px}.country-choice h3{font:600 20px Georgia,serif;margin:0}.country-choice p{font-size:13px;margin:0}.country-choice progress{margin:0}.country-choice .primary{margin-top:auto;min-height:44px}.country-choice .text-button{min-height:36px}
@media(max-width:600px){#country-grid{grid-template-columns:1fr 1fr;gap:9px}#country-browser{padding:30px 16px 20px}.country-choice{padding:9px}.country-choice img{height:95px}.country-choice h3{font-size:17px}.country-choice button{font-size:12px;padding:8px}}

#collection-book{max-width:960px}#collection-detail{max-width:650px}
.collection-controls{display:flex;gap:16px;margin-top:20px}.collection-controls label{display:flex;flex-direction:column;gap:7px;font-size:13px;flex:1}.collection-controls input,.collection-controls select{width:100%;min-height:44px;background:#fffef8;color:var(--ink);border:1px solid #abb9a3;border-radius:7px;padding:10px;font:inherit;box-sizing:border-box}
#collection-results{font-size:13px;color:var(--muted)}#collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.collection-card{display:flex;flex-direction:column;align-items:stretch;text-align:center;background:#f6f5eb;border:1px solid #d1dac5;border-radius:12px;padding:18px 12px}.collection-card :is(img,svg.specimen-reference),.collection-cover{height:110px;width:100%;object-fit:contain;margin-bottom:12px}.collection-cover{display:grid;place-items:center;font:50px Georgia,serif;color:#7e8978;background:radial-gradient(ellipse,#e7e8db,transparent 65%)}.collection-card h3{font:600 21px Georgia,serif;margin:0}.collection-card p{font-size:13px;line-height:1.5;margin:8px 0}.collection-status{font-size:13px;font-weight:600;color:#486143}.collection-card .collection-countries{color:var(--muted);flex:1}.collection-card button{min-height:44px;margin-top:8px}.collection-card .collection-locked-note{font-size:12px;color:var(--muted)}
.collection-occurrence{display:flow-root;border-top:1px solid #d1dac5;padding:16px 0}.collection-occurrence h3{font:600 22px Georgia,serif;margin:0}.collection-occurrence :is(img,svg.specimen-reference){width:85px;height:100px;float:left;object-fit:contain;margin:0 15px 10px 0}.collection-occurrence p{font-size:14px;line-height:1.55}.collection-occurrence a{font-size:13px}.collection-occurrence button{display:block;clear:both;min-height:44px;margin-top:10px}#collection-detail>.primary{margin-top:15px}
@media(max-width:600px){#collection-book,#collection-detail{padding:30px 16px 20px}#collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.collection-controls{gap:10px}.collection-controls label:first-child{flex:1.3}.collection-card{padding:12px 8px}.collection-card h3{font-size:18px}.collection-card button{font-size:12px;padding:8px}.collection-card :is(img,svg.specimen-reference),.collection-cover{height:85px}}
#playtest-strip{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#e8edde;padding:10px 14px;border-radius:8px;margin:10px 0}#playtest-strip[hidden]{display:none}#playtest-strip span{flex:1;font-size:14px}#playtest-strip button{min-height:40px}#playtest-dialog label{display:block;font-size:14px;margin:14px 0}#playtest-dialog .test-check{display:flex;align-items:flex-start;gap:8px}#playtest-dialog select,#playtest-dialog textarea{display:block;box-sizing:border-box;width:100%;font:inherit;margin-top:8px;padding:10px;border:1px solid #a9b6a2;border-radius:6px;background:#fffef8;color:#19352f}#playtest-dialog button{min-height:44px}#playtest-dialog p{font-size:14px;line-height:1.5}.test-find-list{font-size:13px;line-height:1.8;padding-left:22px;max-height:200px;overflow:auto}#playtest-storage{font-size:12px;color:var(--muted)}
/* Beta controls: the scene and specimen hit areas keep their original sizes. */
.skip-link{position:absolute;top:8px;left:8px;transform:translateY(-180%);z-index:50;background:#fffdf7;color:#19352f;padding:12px;border:2px solid #19352f}.skip-link:focus{transform:none}
input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #7651a1;outline-offset:3px}header{flex-wrap:wrap}header nav{flex:1;justify-content:flex-end}header nav button,header nav a{min-height:44px;display:inline-flex;align-items:center}.close{width:44px;height:44px}.zoom-controls button{min-width:44px;height:44px}.scene-actions button,.under-scene button{min-height:44px}
.welcome-banner{display:flex;align-items:center;gap:15px;flex-wrap:wrap;background:#e8edde;border:1px solid #b7c5a9;padding:16px;border-radius:10px;margin-bottom:18px}.welcome-banner[hidden]{display:none}.welcome-banner div{flex:1;min-width:190px}.welcome-banner p{font-size:14px;margin:4px 0}.welcome-banner button{min-height:44px}.beta-label{font-size:12px;color:var(--muted);letter-spacing:1px}.beta-label span{letter-spacing:0;color:#804224;margin-left:10px}
#pan-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}#pan-controls[hidden]{display:none}#pan-controls span{font-size:13px}#pan-controls button{min-height:44px;min-width:48px;border:1px solid #a3b29c;border-radius:6px;background:#fffdf7}
.setting-row{display:flex;align-items:flex-start;gap:10px;min-height:44px;margin:10px 0}.setting-row input{width:20px;height:20px;flex-shrink:0;margin-top:2px}#settings textarea{display:block;width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid #9baa93;background:#fffef8;border-radius:7px;margin:8px 0 12px}#settings button,#tutorial button{min-height:44px}#settings>h3{margin-top:24px}#feedback-status{font-size:13px}#tutorial-title:focus{outline:none}#tutorial-practice{text-align:center;background:#f2efe0;padding:18px;border:1px solid #b9c5af;border-radius:10px}#tutorial-practice[hidden]{display:none}#practice-crystal{width:160px;height:100px;background:#fffef8;border:2px solid #8fa780;border-radius:12px;padding:15px}#practice-crystal img{width:100%;height:100%;object-fit:contain}#practice-result{font-size:14px}
.reduce-motion .target.just-found,.reduce-motion .crystal-card.just-counted{animation:none}.reduce-motion *{scroll-behavior:auto!important}.strong-contrast{--muted:#344e45;--purple:#5d2d87}.strong-contrast button:not(.target),.strong-contrast input,.strong-contrast select,.strong-contrast textarea{border-color:#354e43}.strong-contrast .guide-note,.strong-contrast .card-detail{color:#344e45}
@media(max-width:720px){header nav{max-width:none;flex-basis:100%;justify-content:flex-start;gap:8px}header nav button{padding:7px 10px}.scene-actions{max-width:64%}#settings,#tutorial{padding:32px 18px 22px}}

.passport-stamp img{width:100%;height:80px;object-fit:contain}.reference-mineral{overflow:hidden}#reference-picture{overflow:hidden}

@media(max-width:900px){.mini-reference svg.specimen-reference{width:33px;justify-self:center}}

/* Keep the full world roster usable without pushing the game down 195 buttons. */
.countries{max-height:145px;overflow-y:auto;overscroll-behavior:contain;padding:4px 4px 8px;scrollbar-gutter:stable}
.country-tab{flex-shrink:0}
.country-list-help{font-size:12px;color:var(--muted);margin:0 0 6px}
.find-slots{flex-wrap:wrap}
.find-slot{flex-shrink:0}
.guide .crystal-card>span:last-child{min-width:0}
.guide .reference-mineral{flex-shrink:0}
@media(max-width:720px){.countries{max-height:120px}}

@media(max-width:900px){
 body.has-guide-tray{padding-bottom:calc(var(--guide-height,148px) + 20px)}
 .view{height:min(62svh,max(120px,calc(100svh - var(--guide-height,148px) - 24px)));min-height:min(360px,max(120px,calc(100svh - var(--guide-height,148px) - 24px)));max-height:max(120px,calc(100svh - var(--guide-height,148px) - 24px));scroll-margin-bottom:calc(var(--guide-height,148px) + 16px)}
 .zoom-controls{bottom:var(--controls-bottom,8px)}
}

/* Map context has its own readable dialog; it cannot cover scene targets. */
.map-context{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eef3ef;border:1px solid #ccd7cb;border-radius:8px;padding:8px 12px;margin:0 0 12px;font-size:14px;line-height:1.45}.map-context[hidden]{display:none}.map-context button{flex-shrink:0;min-height:44px}#country-map-dialog{width:min(820px,calc(100vw - 32px));box-sizing:border-box}#country-map-picture{display:block;width:100%;height:auto;border:1px solid #d5dfd3;border-radius:8px}#country-map-picture[hidden]{display:none}#country-map-study{font-weight:600}#country-map-dialog p{font-size:14px;line-height:1.6}#country-map-dialog details{margin-top:18px;padding-top:14px;border-top:1px solid #d5dfd3}#country-map-dialog summary{min-height:32px;cursor:pointer}#country-map-dialog a{overflow-wrap:anywhere}@media(max-width:600px){.map-context{align-items:flex-start;flex-direction:column;gap:0}.map-context button{padding-left:0}#country-map-dialog{padding:32px 16px 20px}}

/* Keep the field-note heading clear of its close button on narrow screens. */
#field-notes>.eyebrow{padding-right:2rem}

/* Distinguish country evidence from general mineral facts. */
.fact-scope{font-size:12px;color:var(--muted);font-weight:600;line-height:1.5}.discovery>a,.journal-entry>a{overflow-wrap:anywhere}.find-toast .fact-scope{font-size:11px;margin-top:6px}.journal-entry .fact-scope{font-size:12px;margin:5px 0 8px}
