:root{color-scheme:dark;--bg:#151c28;--panel:#202c3b;--line:#435363;--ink:#f4eee0;--muted:#b2bfca;--gold:#f1c779;--teal:#a6e5cf}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#2d3d50,var(--bg) 70%);color:var(--ink);font-family:system-ui,-apple-system,sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);color:var(--ink);background:#253344;border-radius:12px;padding:10px 14px;min-height:44px;font-size:14px}button:disabled{opacity:.5;cursor:default}button:active{transform:scale(.98)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--teal);outline-offset:2px}a{color:var(--muted);text-decoration:none}h1,h2,p{margin:0}h1{font-family:Georgia,serif;font-size:clamp(22px,4vw,34px);font-weight:500}h2{font-size:18px}p{line-height:1.5}.app{max-width:1060px;margin:auto;padding:calc(16px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom))}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}header>a{font-size:14px;padding:12px 0}header>div{text-align:center}.eyebrow{display:block;font-size:11px;letter-spacing:1.5px;color:var(--gold);margin-bottom:5px}.progress-strip{display:flex;align-items:center;gap:14px;margin-bottom:14px;font-size:14px;color:var(--muted)}.progress-strip b{color:var(--ink);font-size:20px}progress{accent-color:var(--teal);height:6px;flex:1;width:100px}.progress-strip button{border-radius:50%;width:44px}.workbench{background:linear-gradient(145deg,#2c3949,#1d2937);border:1px solid #6d6b60;border-radius:24px;padding:20px;box-shadow:0 16px 36px #0003;position:relative}.quest{display:grid;grid-template-columns:1fr auto;gap:3px 12px;padding-bottom:14px;border-bottom:1px solid var(--line)}.quest .eyebrow{grid-column:1}.quest strong{font-family:Georgia,serif;font-size:20px;font-weight:400;grid-column:1}.quest button{align-self:center;color:var(--gold);border-color:#867557}.mixing{display:flex;align-items:center;justify-content:center;gap:20px;margin:18px 0}.slot{width:200px;height:124px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#172432;box-shadow:inset 0 0 20px #0002;border:1px dashed #7c8b96;position:relative}.slot.active{border:2px solid var(--gold);box-shadow:0 0 0 4px #f1c77912}.slot.drag-over{border-color:var(--teal);background:#315348}.slot-icon{font-size:44px;line-height:1.25}.plus{font-family:Georgia,serif;color:var(--gold);font-size:34px}.mix-actions{display:flex;gap:10px;max-width:480px;margin:auto}.mix-actions #mix{flex:1;background:var(--gold);color:#29291f;border:0;font-weight:700}.result{margin-top:18px;display:flex;align-items:center;gap:14px;padding:16px;background:#152330;border:1px solid #3f5963;border-radius:16px;min-height:118px}.result-icon{font-size:42px;flex-shrink:0}.result>div{flex:1}.result strong{display:block;font-family:Georgia,serif;font-weight:400;font-size:23px;margin-bottom:4px}.result p{font-size:14px;color:var(--muted)}.result button{color:var(--teal)}.result.discovered{border-color:var(--gold);animation:reveal .45s ease-out}.result.no-recipe{border-color:#71605e}.result .eyebrow{font-size:10px}.collection{margin-top:24px}.collection-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.collection-top h2{margin-right:auto}.collection-top input,.collection-top select{min-height:44px;padding:10px 12px;background:#1b2938;border:1px solid var(--line);border-radius:10px;color:var(--ink);font-size:14px}.collection-top input{width:200px}#categories{display:flex;gap:7px;overflow:auto;padding:14px 0;scrollbar-width:thin}#categories button{white-space:nowrap;min-height:38px;padding:8px 13px;color:var(--muted)}#categories button[aria-pressed=true]{color:#173a31;background:var(--teal);border-color:var(--teal)}.element-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;max-height:43dvh;overflow:auto;padding:3px 3px 10px;overscroll-behavior:contain}.element{min-height:103px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#223041;touch-action:pan-y;user-select:none;-webkit-user-select:none;padding:8px}.element .icon{font-size:34px;line-height:1.25}.element .name{font-size:13px;line-height:1.25;text-align:center}.element.fresh{border-color:#d5bd84}.element.dragging{opacity:.45}.drag-ghost{position:fixed;z-index:100;pointer-events:none;background:#354d55;border:2px solid var(--teal);border-radius:18px;padding:12px;font-size:38px;transform:translate(-50%,-50%);box-shadow:0 8px 25px #0007}.drag-ghost small{font-size:12px;display:block;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#hintText{margin-top:12px;background:#3b3c32;padding:12px;border-left:3px solid var(--gold);font-size:14px;color:#ffe3ac;border-radius:6px}#empty{padding:20px;color:var(--muted);font-size:14px}footer{display:flex;justify-content:space-between;gap:10px;margin-top:14px;color:#9bacbb;font-size:11px}dialog{background:#1f2c3b;color:var(--ink);border:1px solid var(--line);border-radius:22px;width:min(92vw,700px);max-height:85dvh;padding:22px;overflow:auto}dialog::backdrop{background:#080f1dd9;backdrop-filter:blur(4px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}dialog p{margin-bottom:16px;font-size:15px;color:var(--muted)}.chapter{display:flex;justify-content:space-between;gap:10px;padding:12px;border-radius:9px;background:#2b3c4b;margin:7px 0;font-size:14px}.journal-entry{padding:12px 0;border-bottom:1px solid var(--line)}.journal-entry summary{cursor:pointer;font-size:16px;min-height:34px}.journal-entry p{font-size:14px;margin:9px 0 0}.journal-entry .recipe{color:var(--gold)}.settings{margin-top:20px}.settings p{margin-top:12px}#reset{border-color:#a47775;color:#ffd0c4}@keyframes reveal{0%{transform:translateY(6px);filter:brightness(1.8)}100%{transform:translateY(0);filter:brightness(1)}}[hidden]{display:none!important}@media(min-width:900px){.app{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}header,.progress-strip,footer{grid-column:1/-1}.workbench{align-self:start}.collection{margin-top:0}.element-grid{grid-template-columns:repeat(4,1fr);max-height:65dvh}.collection-top input{width:170px}.mixing{gap:12px}.slot{width:43%;height:160px}.slot-icon{font-size:54px}.result{flex-wrap:wrap}.result button{margin-left:auto}}@media(max-width:550px){.app{padding-left:12px;padding-right:12px}header{gap:8px}header .eyebrow{display:none}header>a{font-size:12px}header button{padding:8px 10px}.workbench{padding:14px;border-radius:19px}.slot{height:102px;width:43%;font-size:13px}.slot-icon{font-size:36px}.mixing{gap:12px;margin:14px 0}.result{padding:12px;gap:10px;min-height:115px;flex-wrap:wrap}.result-icon{font-size:34px}.result strong{font-size:20px}.result button{margin-left:auto}.collection-top{gap:8px}.collection-top h2{width:100%;margin-bottom:2px}.collection-top label{flex:1}.collection-top input{width:100%;min-width:0}.element-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:36dvh}.element{min-height:91px}.element .icon{font-size:29px}.element .name{font-size:12px}.quest strong{font-size:18px}footer{flex-direction:column;font-size:11px}.collection{margin-top:18px}}@media(orientation:landscape) and (max-height:550px){.app{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}header,.progress-strip,footer{grid-column:1/-1}.collection{margin-top:0}.element-grid{grid-template-columns:repeat(4,1fr);max-height:65dvh}.workbench{padding:12px}.slot{height:100px}.result{min-height:100px}.collection-top input{width:160px}header{margin-bottom:8px}.progress-strip{margin-bottom:8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.lab-column{min-width:0}.journey-picker{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-bottom:13px}.journey-picker label{font-size:12px;color:var(--muted);width:100%}.journey-picker select{flex:1;max-width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px;color:var(--ink);background:#1a2835;font-size:14px}.journey-picker>span{font-size:12px;color:var(--gold)}.collection-tools{display:flex;gap:6px;overflow:auto;margin-top:12px;padding-bottom:4px}.collection-tools button{font-size:12px;white-space:nowrap;padding:7px 10px;min-height:40px}.collection-tools button[aria-pressed=true]{background:var(--teal);color:#173a31}.collection-tip{font-size:12px;color:var(--muted);margin-top:6px}.element{position:relative}.pin-marker{position:absolute;right:7px;top:4px;color:var(--gold);font-size:12px}.element.pinned{border-color:#aa925a}.element.drop-target{outline:3px solid var(--teal);background:#35554f}.element-grid.drag-enabled .element{touch-action:none;cursor:grab}.history-entry{display:block;width:100%;text-align:left;margin:7px 0;padding:12px;font-size:14px;line-height:1.5}.world-panel{margin-top:16px;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:#1b2a37}.world-panel summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;min-height:50px;padding:12px 15px;font-size:14px}.world-panel summary small{color:var(--gold);font-size:12px}.world-view{position:relative}.world-view img{display:block;width:100%;aspect-ratio:1.5;object-fit:cover}.world-caption{position:absolute;bottom:0;left:0;right:0;padding:22px 14px 12px;background:linear-gradient(transparent,#0d1828ed);color:#fff}.world-caption strong{font-family:Georgia,serif;font-size:20px;font-weight:400}.world-caption p{font-size:12px;margin-top:4px;color:#e0e8ec}.world-milestones{padding:9px 14px 12px}.world-milestones p{font-size:12px;color:#9eaebe;margin:4px 0}.world-milestones .unlocked{color:var(--teal)}.world-upgraded{animation:world-glow 1.8s ease-out}.reaction{position:relative;display:grid;place-items:center;min-width:48px;min-height:62px}.reaction i{position:absolute;border-radius:50%;opacity:0;pointer-events:none;background:var(--teal);width:8px;height:8px;left:50%;top:30%}.reaction i:nth-of-type(2){left:30%;animation-delay:.14s}.reaction i:nth-of-type(3){left:70%;animation-delay:.28s}.react-steam i{background:#e2f3ff;width:13px;height:13px;animation:vapor 800ms ease-out}.react-steam .result-icon{animation:float-in .65s ease-out}.react-grow .result-icon{transform-origin:bottom;animation:sprout .7s cubic-bezier(.2,.8,.3,1)}.react-grow i{animation:sparkle 1s ease-out}.react-heat .result-icon{animation:cool-down .9s ease-out}.react-heat i{background:#ffb170;animation:sparkle .7s ease-out}.react-magic .result-icon{animation:magic-spin .8s ease-out}.react-magic i{background:#d0adff;animation:sparkle 900ms ease-out}.react-spark .result-icon{animation:charge .7s ease-out}.react-spark i{background:#f6d57c;animation:sparkle 650ms ease-out}.react-water .result-icon{animation:water-bounce .7s ease-out}.react-water i{animation:vapor .8s ease-out}.react-settle .result-icon{animation:float-in .45s ease-out}@keyframes vapor{0%{opacity:0;transform:translateY(12px) scale(.4)}30%{opacity:.7}100%{opacity:0;transform:translateY(-30px) scale(1.8)}}@keyframes sprout{from{transform:translateY(5px) scale(.96);opacity:.5}to{transform:none;opacity:1}}@keyframes cool-down{from{opacity:.65;transform:scale(.98)}to{opacity:1;transform:none}}@keyframes sparkle{0%{opacity:0;transform:translateY(8px) scale(.2)}40%{opacity:1}100%{opacity:0;transform:translateY(-24px) scale(1.3)}}@keyframes magic-spin{from{transform:rotate(-4deg) scale(.96);opacity:.6}to{transform:none;opacity:1}}@keyframes charge{from{transform:translateY(-3px) scale(1.015);opacity:.6}to{transform:none;opacity:1}}@keyframes water-bounce{from{transform:translateY(4px);opacity:.6}to{transform:none;opacity:1}}@keyframes float-in{0%{opacity:.2;transform:translateY(12px)}100%{opacity:1;transform:translateY(0)}}@keyframes world-glow{0%{box-shadow:0 0 25px #e8c68288}100%{box-shadow:none}}@media(min-width:900px){.lab-column{grid-column:1}.collection{grid-column:2}.element-grid{max-height:75dvh}}@media(orientation:landscape) and (max-height:550px){.lab-column{grid-column:1}.collection{grid-column:2}}@media(prefers-reduced-motion:reduce){.reaction i{display:none}}

html,body{height:100%;overflow:hidden;overscroll-behavior:none}.app{width:100%;max-width:1280px;height:100dvh;min-height:0;display:flex;flex-direction:column;gap:0;padding:calc(6px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left))}header{flex-shrink:0;min-height:44px;margin:0 0 4px}header h1{font-size:22px}header .eyebrow{display:none}.progress-strip{min-height:32px;margin:0 0 6px;flex-shrink:0}.progress-strip button{min-height:32px;height:32px;width:32px;padding:3px}.progress-strip b{font-size:17px}.play-layout{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}.lab-column{flex-shrink:0;display:flex;flex-direction:column;gap:5px}.workbench{padding:10px;border-radius:16px}.journey-picker{margin:0 0 4px;gap:6px;flex-wrap:nowrap}.journey-picker label{display:none}.journey-picker select{min-height:40px;height:40px}.quest{min-height:36px;padding:0;border:0;display:flex;justify-content:space-between;align-items:center}.quest .eyebrow{display:none}.quest strong{font-size:17px}.quest button{min-height:36px;padding:5px 11px}.mixing{margin:5px 0;gap:10px}.slot{height:65px;width:44%;gap:1px;min-height:44px;font-size:13px;border-radius:12px}.slot-icon{font-size:28px;line-height:1.1}.plus{font-size:24px}.mix-actions{gap:8px;max-width:none}.mix-actions button{min-height:40px;height:40px;padding:7px 12px;font-size:14px}.result{margin-top:7px;padding:7px 10px;min-height:58px;height:58px;gap:8px;flex-wrap:nowrap;border-radius:12px}.result .reaction{flex:0 0 36px;min-width:36px;min-height:40px}.result .result-icon{font-size:29px}.result>div:not(.reaction){min-width:0;flex:1}.result strong{font-size:17px;margin:0;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.result .eyebrow{letter-spacing:.5px;font-size:9px;margin-bottom:3px}.result button{flex-shrink:0;min-height:40px;padding:6px 9px;font-size:12px;margin:0}.world-button{min-height:34px;height:34px;padding:4px 12px;text-align:left;border-color:#665f48;color:var(--gold)}.world-button span{float:right;font-size:12px}.collection{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;overflow:hidden}.collection-top{flex-shrink:0;flex-wrap:nowrap;gap:6px}.collection-top h2{display:none}.collection-top label{flex:1;min-width:0}.collection-top input{width:100%;min-width:0}.collection-top input,.collection-top select{height:40px;min-height:40px;padding:8px;font-size:14px}.collection-tools{flex-shrink:0;margin-top:5px;gap:5px;padding-bottom:0;scrollbar-width:none}.collection-tools button{min-height:36px;height:36px;padding:5px 10px;font-size:12px}.collection-tip{display:none}#categories{flex-shrink:0;padding:5px 0;gap:5px;scrollbar-width:none}#categories button{min-height:34px;height:34px;padding:5px 10px;font-size:12px}.element-grid{flex:1;min-height:0;max-height:none;overflow-y:auto;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:7px;padding:3px 3px 6px}.element{min-height:78px;height:78px;gap:5px}.element .icon{font-size:27px}.element .name{font-size:12px}footer{flex-shrink:0;min-height:16px;margin:4px 0 0;display:flex;font-size:10px}footer>span:nth-child(2){display:none}.world-milestones{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:10px 0}.world-stage{font-size:13px;text-align:left;min-height:48px}.world-stage[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}#worldNext{font-size:14px;margin-top:12px;color:var(--gold)}.world-view{border-radius:14px;overflow:hidden}.world-view img{aspect-ratio:1.5}.world-caption{padding-top:35px}.import-button{display:inline-flex;align-items:center;min-height:44px;padding:9px 14px;margin-left:6px;border:1px solid var(--line);border-radius:12px;font-size:14px;cursor:pointer;background:#253344}.dialog-top{position:sticky;top:-22px;background:#1f2c3b;padding:6px 0;z-index:2}#hintDialog,#reactionDialog{width:min(92vw,500px)}#hintText{background:none;border:0;padding:0;margin:0 0 16px;font-size:16px}.reaction i{z-index:1}@media(min-width:760px),(orientation:landscape){.play-layout{flex-direction:row;gap:16px}.lab-column{flex:0 0 44%;min-width:0}.collection{flex:1}.element-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.world-button{margin-top:3px}header h1{font-size:26px}.workbench{padding:12px}.slot{height:100px}.slot-icon{font-size:40px}.result{height:78px;min-height:78px}.result strong{font-size:20px}.result .reaction{min-width:42px;flex-basis:42px}.result .result-icon{font-size:36px}}@media(min-width:1000px) and (min-height:700px){.app{padding:18px 24px}.workbench{padding:20px}.slot{height:145px}.slot-icon{font-size:50px}.journey-picker{margin-bottom:10px}.quest{min-height:44px}.mixing{margin:14px 0}.result{height:100px;min-height:100px;margin-top:14px}.element-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.element{height:96px}.element .icon{font-size:34px}.element .name{font-size:14px}.collection-top input,.collection-top select{min-height:44px}.collection-tools button,#categories button{min-height:40px;height:40px}.collection-top h2{display:block;width:auto;font-size:17px;white-space:nowrap;margin:0}}@media(orientation:landscape) and (max-height:550px){.app{padding-top:calc(3px + env(safe-area-inset-top));padding-bottom:calc(3px + env(safe-area-inset-bottom))}header{min-height:34px;margin-bottom:0}header h1{font-size:20px}header button{min-height:34px;height:34px;padding:4px 10px}.progress-strip{min-height:26px;margin-bottom:3px}.progress-strip button{min-height:26px;height:26px;width:26px}.workbench{padding:6px}.journey-picker select{height:34px;min-height:34px}.journey-picker{margin-bottom:2px}.quest{min-height:30px}.quest button{min-height:30px}.quest strong{font-size:15px}.slot{height:48px}.slot-icon{font-size:25px}.mixing{margin:3px 0}.mix-actions button{height:34px;min-height:34px;padding:4px 8px}.result{height:49px;min-height:49px;margin-top:4px;padding:4px 7px}.result strong{font-size:16px}.result .result-icon{font-size:26px}.result button{min-height:34px;padding:4px 7px;font-size:11px}.result .reaction{min-height:34px}.world-button{min-height:28px;height:28px;padding:3px 9px}.element{height:74px;min-height:74px}.element .icon{font-size:25px}footer{min-height:12px;margin-top:2px}.collection-top input,.collection-top select{min-height:34px;height:34px}.collection-tools button{min-height:30px;height:30px}#categories button{min-height:30px;height:30px}#categories{padding:3px 0}}@media(max-width:370px){header h1{font-size:19px}header>a{font-size:11px}.result button{padding:5px 6px}.result .eyebrow{font-size:8px}.quest strong{font-size:16px}}
.item-art{display:inline-block;width:44px;height:44px;background-size:contain;background-repeat:no-repeat;vertical-align:middle;border-radius:9px;font-size:30px;line-height:44px;text-align:center}.element .item-art{width:47px;height:47px}.element{gap:2px}.slot .item-art{width:42px;height:42px}.reaction .item-art{width:36px;height:36px}.drag-ghost .item-art{width:54px;height:54px}.puzzle-card{display:block;width:100%;min-height:50px;text-align:left;margin:7px 0;padding:12px;font-size:14px}.puzzle-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}.puzzle-heading span{color:var(--gold);font-size:13px}.puzzle-table{display:flex;align-items:center;gap:8px;margin-bottom:12px}.puzzle-table>button{flex:1;min-width:0;min-height:70px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:13px}.puzzle-table .active{border-color:var(--gold)}#puzzleMix{background:var(--gold);color:#252a21;max-width:70px;font-weight:bold}.puzzle-kit{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.puzzle-kit button{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;min-height:90px}.puzzle-kit span:not(.item-art){line-height:1.2}#ingredientPotential{color:var(--gold)}.journal-entry>button{font-size:13px;margin-top:8px}@media(min-width:1000px) and (min-height:700px){.element .item-art{width:58px;height:58px}.slot .item-art{width:84px;height:84px}.reaction .item-art{width:50px;height:50px}}@media(orientation:landscape) and (max-height:550px){.slot .item-art{width:28px;height:28px}.reaction .item-art{width:29px;height:29px}.element .item-art{width:41px;height:41px}}

.collection-heading{display:flex;align-items:center;gap:7px;min-height:36px;flex-shrink:0;margin-bottom:4px}.collection-heading strong{font-size:14px;margin-right:auto;white-space:nowrap}.collection-heading strong span{color:var(--gold);font-size:12px}.collection-heading button{min-height:34px;height:34px;padding:4px 9px;font-size:12px}.browse-cue{font-size:10px;color:var(--teal)}.element-shelf{position:relative;display:flex;flex:1;min-height:0;border:1px solid #587081;border-radius:13px;background:#122331;box-shadow:inset 0 4px 12px #0003;overflow:hidden}.element-shelf .element-grid{min-height:0;padding:8px 10px 38px 8px;scrollbar-width:auto;scrollbar-color:#e0bd70 #273d4f}.element-grid::-webkit-scrollbar{width:8px}.element-grid::-webkit-scrollbar-track{background:#273d4f;border-radius:8px}.element-grid::-webkit-scrollbar-thumb{background:#e0bd70;border-radius:8px;border:2px solid #273d4f}.scroll-cue{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);min-height:29px;padding:4px 12px;background:#ead094;color:#26342e;border-color:#f7d896;border-radius:20px;font-size:12px;white-space:nowrap;box-shadow:0 3px 14px #0007;z-index:2}.scroll-cue:active{transform:translateX(-50%) scale(.98)}.lab-column{gap:0}.workbench{padding:8px}.mixing{margin:4px 0}.slot{height:56px}.slot .item-art{width:33px;height:33px}.quest{min-height:34px}.result{height:50px;min-height:50px;margin-top:5px;padding:5px 9px}.result .reaction{min-height:34px}.reaction .item-art{width:31px;height:31px}.result .eyebrow{font-size:8px}.result strong{font-size:16px}.progress-strip{gap:7px}.progress-strip .world-button{width:auto;min-width:90px;min-height:30px;height:30px;padding:4px 9px;font-size:12px}.world-button span{float:none;margin-left:4px;font-size:10px}.collection-top{margin-bottom:5px}.collection-top h2{display:none!important}.collection-expanded .lab-column{display:none}.collection-expanded .progress-strip{display:none}#collectionTools .collection-tools{overflow:visible;flex-wrap:wrap;margin-top:12px}#collectionTools .collection-tools button{min-height:44px;height:auto;font-size:14px}#collectionTools #categories{flex-wrap:wrap;overflow:visible;padding:14px 0}#collectionTools #categories button{min-height:40px;height:auto;font-size:13px}#collectionTools .journey-picker{display:flex;flex-wrap:wrap;margin:12px 0}#collectionTools .journey-picker label{display:block;width:100%;font-size:14px}#collectionTools .journey-picker select{min-height:44px;height:44px}.discovery-dialog{width:min(94vw,600px);padding:30px 26px;text-align:center;overflow-x:hidden;background:radial-gradient(ellipse at 50% 28%,#41545c,#1a2939 60%);border:2px solid #dec284;box-shadow:0 0 80px #c8a95144}.discovery-dialog::backdrop{background:#07111bec;backdrop-filter:blur(8px)}.discovery-close{position:absolute;top:8px;right:8px;min-width:38px;min-height:38px;border:0;font-size:24px;padding:4px;background:#203445}.discovery-dialog>.eyebrow{font-size:12px;letter-spacing:2px;color:#ffdd8b;margin:5px 30px 8px}.discovery-dialog #discoveryNumber{font-size:12px;color:var(--teal);margin-bottom:8px}.discovery-art{display:grid;place-items:center;position:relative;margin:auto;width:180px;height:180px;border-radius:50%;background:#1a2b38;border:2px solid #d7b773;box-shadow:0 0 0 8px #dbbf6920,0 0 45px #ddb75d40}.discovery-art .item-art{width:160px;height:160px;border-radius:50%;font-size:110px;line-height:160px}.discovery-dialog h2{font:400 clamp(30px,7vw,46px)/1.1 Georgia,serif;color:#ffe7b8;margin:20px 0 8px}.discovery-recipe{color:#a6e5cf!important;font-size:14px!important;margin-bottom:14px!important}.discovery-joke{font-size:18px!important;line-height:1.4!important;color:#f8eee0!important;margin:10px auto 18px!important;max-width:430px}#discoveryFactBox{padding:13px;background:#0f2331b8;border:1px solid #456677;border-radius:14px;text-align:left;margin:14px 0}#discoveryFactBox .eyebrow{font-size:11px;color:var(--teal)}#discoveryFact{font-size:14px;color:#e1ebec;margin:6px 0 8px}#discoverySource{font-size:12px;color:var(--gold);text-decoration:underline}.discovery-actions{display:flex;gap:10px;margin-top:16px;position:relative;z-index:1}.discovery-actions button{flex:1;min-height:48px;font-weight:700}#useDiscovery{background:var(--gold);color:#253326;border:0}.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.confetti i{position:absolute;left:calc(var(--n)*5%);top:-20px;width:7px;height:13px;background:#edcc7d;opacity:0;border-radius:2px}.confetti i:nth-child(3n){background:#a6e5cf}.confetti i:nth-child(3n+1){background:#b7a1e2}.celebrate{animation:discovery-arrival .45s cubic-bezier(.2,.8,.2,1)}.celebrate .discovery-art{animation:discovery-spark 1.2s ease-out}.celebrate .confetti i{animation:confetti-fall 1.6s ease-out forwards;animation-delay:calc(var(--n)*.025s)}@keyframes discovery-arrival{0%{opacity:0;transform:translateY(24px) scale(.9)}100%{opacity:1;transform:translateY(0) scale(1)}}@keyframes discovery-spark{0%{transform:scale(.75);box-shadow:0 0 60px #ffe6a2a0}65%{transform:scale(1.05)}100%{transform:scale(1)}}@keyframes confetti-fall{0%{opacity:0;transform:translateY(0) rotate(0)}20%{opacity:.9}100%{opacity:0;transform:translateY(600px) rotate(300deg)}}@media(min-width:760px),(orientation:landscape){.slot{height:82px}.slot .item-art{width:51px;height:51px}.result{height:70px;min-height:70px}.result strong{font-size:20px}.reaction .item-art{width:43px;height:43px}.workbench{padding:12px}.collection-heading{min-height:36px}}@media(orientation:landscape) and (max-height:550px){.slot{height:52px}.slot .item-art{width:29px;height:29px}.result{height:48px;min-height:48px}.reaction .item-art{width:27px;height:27px}.workbench{padding:6px}.result strong{font-size:16px}.browse-cue{font-size:11px}.discovery-dialog{padding:18px 24px}.discovery-art{width:104px;height:104px}.discovery-art .item-art{width:90px;height:90px}.discovery-dialog h2{font-size:28px;margin-top:12px}.discovery-joke{font-size:15px!important;margin:6px auto 10px!important}.discovery-actions{margin-top:8px}.discovery-actions button{min-height:40px}.discovery-dialog>.eyebrow{font-size:10px}}@media(prefers-reduced-motion:reduce){.confetti{display:none}}
.progress-strip progress{min-width:15px;width:auto}.progress-strip>span{font-size:12px;white-space:nowrap}

.passport-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.passport-badge{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #465364;border-radius:14px;background:#1c2736}.passport-badge>.item-art{width:54px;height:54px;flex-shrink:0}.passport-badge p{font-size:12px;margin:6px 0;color:#b9c5d3}.passport-badge small{display:block;color:#c4ccd6}.passport-badge progress{width:100%;height:6px}.passport-badge.earned{border-color:#deb561;background:linear-gradient(135deg,#3b3326,#1c2736)}.passport-trails{display:grid;gap:8px}.passport-trails button{text-align:left;min-height:48px}#passportDialog{width:min(680px,94vw)}@media(max-width:480px){.passport-grid{grid-template-columns:1fr}}

.atlas-dialog{width:100vw!important;max-width:none!important;height:100dvh;max-height:100dvh!important;margin:0;padding:12px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border:0;border-radius:0;box-sizing:border-box}.atlas-dialog[open]{display:flex;flex-direction:column;gap:8px}.atlas-dialog h2{margin:2px 0;font-size:21px}.atlas-dialog .dialog-top{margin:0}.atlas-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.atlas-toolbar select{max-width:180px;flex:1;min-width:120px}.atlas-toolbar button{min-height:42px;min-width:42px;padding:8px}.atlas-progress,.atlas-tip{margin:0;font-size:13px;color:#c4cfdc}.atlas-viewport{flex:1;min-height:120px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;border:1px solid #59657a;border-radius:14px;background:#174b57;scrollbar-color:#dcb56a #173b46;position:relative}.atlas-board{width:3600px;height:2400px;position:relative;transform-origin:0 0;background:#346b66 url(assets/alchemy-discovery-poster-v40.webp) center/100% 100% no-repeat}.atlas-piece{position:absolute;width:94px;min-height:95px;border:0!important;background:transparent!important;padding:0!important;display:flex;flex-direction:column;align-items:center;gap:0;filter:drop-shadow(0 5px 5px #132c3866);transition:filter .2s,translate .2s}.atlas-piece>.item-art{width:80px;height:80px;border-radius:28%;}.atlas-piece-name{max-width:108px;white-space:normal;background:#172838e8;border:1px solid #87949477;color:#fff8e6;border-radius:8px;padding:3px 6px;font-size:13px;line-height:1.2}.atlas-piece.selected{filter:drop-shadow(0 0 9px #fff2a6);translate:0 -5px}.atlas-region-label{position:absolute;font-size:26px;letter-spacing:.04em;color:#fff7d6;text-shadow:0 2px 5px #172736;background:#172838b8;padding:7px 16px;border-radius:30px}.atlas-bottom{display:flex;gap:10px;align-items:center;min-height:65px}#atlasDetail{flex:1;min-width:0;font-size:14px}#atlasDetail p{font-size:13px;margin:4px 0;color:#cbd5df}.atlas-minimap{width:110px;height:74px;flex-shrink:0;position:relative;background:#346b66 url(assets/alchemy-discovery-poster-v40.webp) center/cover;border:1px solid #d7bd7c;border-radius:8px;overflow:hidden}.atlas-dot{position:absolute!important;width:4px!important;height:4px!important;min-width:0!important;min-height:0!important;padding:0!important;background:#ffe5a0!important;border:0!important;border-radius:50%!important}.atlas-dot.selected{background:#fff!important;box-shadow:0 0 4px 2px #fff}.discovery-world{margin:12px 0;padding:10px;border:1px solid #776d51;border-radius:14px;background:#142b32}.discovery-map-preview{height:142px;overflow:hidden;position:relative;border-radius:10px;margin-top:8px;background:#346b66}.atlas-preview-landscape{position:absolute;inset:0;background-image:url(assets/alchemy-discovery-poster-v40.webp);background-size:2160px 1440px;background-repeat:no-repeat}.atlas-preview-pieces{position:absolute;margin-left:50%;margin-top:71px;width:3600px;height:2400px;transform:scale(.6);transform-origin:0 0;pointer-events:none}.discovery-world p{font-size:14px;margin:8px 0}.new-piece{animation:world-arrival .65s ease-out both;filter:drop-shadow(0 0 14px #fff4a6)}@keyframes world-arrival{from{opacity:0;translate:0 -45px;scale:.4}to{opacity:1;translate:0 0;scale:1}}@media(max-width:480px){.atlas-toolbar{gap:4px}.atlas-toolbar button{font-size:13px;padding:6px}.atlas-minimap{width:86px;height:58px}.atlas-dialog .eyebrow{font-size:11px}.atlas-tip{font-size:12px}}@media(prefers-reduced-motion:reduce){.new-piece{animation:none}.atlas-piece{transition:none}}

.atlas-fog{position:absolute;inset:0;background:#163c46f5;pointer-events:none;mask-size:100% 100%;mask-repeat:no-repeat}.atlas-region-label{pointer-events:none}

.discovery-dialog[open]{display:flex;flex-direction:column;max-height:92dvh;padding:18px 16px 12px;box-sizing:border-box;overflow:hidden;gap:8px}.discovery-content{min-height:0;overflow-y:auto;overscroll-behavior:contain}.discovery-dialog .discovery-art{width:100px;height:100px}.discovery-dialog .discovery-art .item-art{width:90px;height:90px;font-size:60px;line-height:90px}.discovery-dialog h2{font-size:30px;margin:10px 0 5px}.discovery-dialog #discoveryNumber{margin:5px 0;font-size:12px}.discovery-dialog .discovery-joke{font-size:15px;margin:8px 0;line-height:1.35}.discovery-dialog .discovery-recipe{margin:6px 0}.discovery-dialog .discovery-world{margin:8px 0 0;padding:7px}.discovery-dialog .discovery-map-preview{height:84px;margin:5px 0}.discovery-dialog .discovery-world p{font-size:12px;margin:4px 0}.discovery-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important;flex-shrink:0;margin:0!important;width:100%}.discovery-actions button{width:100%!important;min-height:44px!important;padding:8px 5px!important;font-size:14px!important;margin:0!important}.discovery-dialog #discoveryFactBox{font-size:14px;padding:7px;margin:6px 0;border-radius:8px;background:#173442}.discovery-dialog #discoveryFactBox summary{cursor:pointer;color:#f0d196}.discovery-dialog #discoveryFactBox p{font-size:14px;margin:7px 0}.discovery-map-preview .atlas-preview-pieces{margin-top:42px}.atlas-piece .world-natural{display:block;width:100px;height:100px;background-image:url(assets/alchemy-natural.webp);background-size:400% 200%;background-repeat:no-repeat;flex-shrink:0;pointer-events:none}.atlas-piece:has(.world-natural){filter:none}.atlas-piece .world-natural.natural-dust{animation:dust-drift 5s ease-in-out infinite;opacity:.85}.atlas-piece .world-natural.natural-air{animation:dust-drift 6s ease-in-out infinite;opacity:.65}.atlas-piece .world-natural.natural-steam{animation:steam-rise 4s ease-in-out infinite}.atlas-piece .world-natural.natural-cloud{animation:dust-drift 8s ease-in-out infinite}.atlas-piece .world-natural.natural-fire{animation:fire-glow 1.5s ease-in-out infinite}.atlas-piece:has(.world-natural) .atlas-piece-name{opacity:0;transition:opacity .2s}.atlas-piece:has(.world-natural):hover .atlas-piece-name,.atlas-piece:has(.world-natural):focus-visible .atlas-piece-name,.atlas-piece.selected .atlas-piece-name{opacity:1}.atlas-piece.selected:has(.world-natural){filter:drop-shadow(0 0 5px #ffdc8b66)}@keyframes dust-drift{0%,100%{transform:translate(-8px,2px) rotate(-3deg);opacity:.55}50%{transform:translate(10px,-5px) rotate(3deg);opacity:.9}}@keyframes steam-rise{0%,100%{transform:translateY(5px);opacity:.5}50%{transform:translateY(-10px);opacity:.8}}@keyframes fire-glow{0%,100%{transform:scale(.96);filter:brightness(.95)}50%{transform:scale(1.04);filter:brightness(1.15)}}@media(max-height:500px) and (orientation:landscape){.discovery-dialog{width:min(94vw,740px)}.discovery-content{display:grid;grid-template-columns:110px 1fr;gap:2px 12px;text-align:left}.discovery-content>.eyebrow,.discovery-content>#discoveryNumber{grid-column:1/-1}.discovery-art{grid-column:1;grid-row:3/7}.discovery-content>h2,.discovery-content>.discovery-recipe,.discovery-content>.discovery-joke,.discovery-content>#discoveryFactBox{grid-column:2}.discovery-content>.discovery-world{grid-column:1/-1}.discovery-dialog .discovery-map-preview{height:60px}.discovery-dialog h2{margin:2px 0}.discovery-dialog .discovery-joke{margin:3px 0}.discovery-dialog .discovery-world>.eyebrow{display:none}}@media(prefers-reduced-motion:reduce){.atlas-piece .world-natural{animation:none!important}}

.atlas-piece .world-object{display:block;width:90px;height:90px;background-size:400% 400%;background-repeat:no-repeat;flex-shrink:0;pointer-events:none;transform-origin:50% 82%}.atlas-piece:has(.world-object){filter:none}.atlas-piece .atlas-piece-name{opacity:0;transition:opacity .18s}.atlas-piece:hover .atlas-piece-name,.atlas-piece:focus-visible .atlas-piece-name,.atlas-piece.selected .atlas-piece-name,.show-names .atlas-piece .atlas-piece-name{opacity:1}.atlas-piece .object-ground{width:95px;height:70px}.atlas-piece .object-water{width:145px;height:108px}.atlas-piece .object-canopy{width:115px;height:125px;animation:canopy-sway 6s ease-in-out infinite}.atlas-piece .object-grove{width:150px;height:135px;animation:canopy-sway 8s ease-in-out infinite}.atlas-piece .object-foliage{width:80px;height:80px;animation:canopy-sway 5s ease-in-out infinite}.atlas-piece .object-field{width:125px;height:100px}.atlas-piece .object-building{width:100px;height:105px}.atlas-piece .object-settlement{width:145px;height:120px}.atlas-piece .object-animal{width:65px;height:65px;animation:creature-breathe 4s ease-in-out infinite}.atlas-piece .object-myth{width:95px;height:95px;animation:creature-breathe 5s ease-in-out infinite}.atlas-piece .object-flying{width:65px;height:65px;animation:bird-roam 8s ease-in-out infinite;filter:drop-shadow(0 12px 4px #142d3844)}.atlas-piece .object-flutter{width:45px;height:45px;animation:wing-wander 5s ease-in-out infinite}.atlas-piece .object-swimming{width:65px;height:65px;animation:water-roam 7s ease-in-out infinite}.atlas-inspect{flex:1;min-width:0}#atlasIngredients{display:flex;gap:5px;margin-top:5px;flex-wrap:wrap}#atlasIngredients button{min-height:30px;padding:4px 7px;font-size:12px;background:#243b4a;color:#d4e9de}.atlas-options{position:relative}.atlas-options summary{cursor:pointer;padding:10px;background:#223647;border:1px solid #526074;border-radius:10px;font-size:14px}.atlas-options>div{position:absolute;right:0;top:44px;z-index:10;width:155px;padding:8px;background:#172c3c;border:1px solid #c7aa6c;border-radius:12px;box-shadow:0 8px 25px #0008;display:grid;gap:6px}.atlas-options>div button{width:100%}.still-world .world-object,.still-world .world-natural{animation:none!important}.atlas-preview-pieces .atlas-piece-name{display:none}@keyframes canopy-sway{0%,100%{transform:rotate(-1.5deg)}50%{transform:rotate(1.5deg)}}@keyframes creature-breathe{0%,100%{transform:scale(1,1) translateY(0)}50%{transform:scale(1.025,1.035) translateY(-1px)}}@keyframes bird-roam{0%,100%{transform:translate(-10px,0) rotate(-3deg)}50%{transform:translate(18px,-14px) rotate(5deg)}}@keyframes wing-wander{0%,100%{transform:translate(-8px,0) rotate(-8deg)}35%{transform:translate(12px,-15px) rotate(6deg)}70%{transform:translate(18px,3px) rotate(-5deg)}}@keyframes water-roam{0%,100%{transform:translate(-5px,1px) rotate(-2deg)}50%{transform:translate(8px,-2px) rotate(3deg)}}@media(prefers-reduced-motion:reduce){.atlas-piece .world-object{animation:none!important}}

.atlas-piece.outside-view .world-object,.atlas-piece.outside-view .world-natural{animation-play-state:paused}

.artwork-dialog{position:fixed;inset:0;margin:0;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden;background:#091721}.artwork-dialog[open]{display:block}.artwork-top{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(14px,env(safe-area-inset-top)) 16px 24px;background:linear-gradient(#08131dcc,transparent);color:#ffefc9;font-size:14px}.artwork-top button{min-width:44px;min-height:44px;font-size:26px;background:#132633cc;border:1px solid #fff6;color:#fff}.artwork-caption{position:absolute;inset:auto 0 0;padding:38px 20px max(14px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#071321dd 30%,#071321f5);color:#fff}.artwork-caption h2{font:400 clamp(30px,7vw,54px)/1.1 Georgia,serif;color:#fff0c9;margin:0 0 8px}.artwork-caption p{font-size:15px;max-width:650px;margin:0 0 12px;color:#e1edf0}.artwork-actions{display:flex;gap:8px}.artwork-actions button{min-height:44px;padding:9px 14px;background:#153446d9;border-color:#ceb774;color:#fff4dc}.discovery-dialog .discovery-art.showcase-art{width:100%;height:160px;margin:8px 0;border-radius:14px;background-size:cover;background-position:center;border:1px solid #d0b978;box-shadow:none;position:relative;padding:0;overflow:hidden}.showcase-art .item-art{position:absolute;bottom:8px;left:8px;width:42px!important;height:42px!important;border:1px solid #fff9;border-radius:50%!important;box-shadow:0 2px 10px #0008}.art-preview-label{position:absolute;right:8px;bottom:8px;padding:5px 9px;border-radius:12px;background:#102b3ce6;color:#fff4da;font-size:12px}.art-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.art-gallery-card{padding:0;overflow:hidden;text-align:left;border-radius:12px;background:#203343;display:flex;flex-direction:column;gap:6px}.art-gallery-card img{width:100%;aspect-ratio:3/2;object-fit:cover}.art-gallery-card strong,.art-gallery-card small{padding:0 10px 8px}.art-locked{display:grid;place-items:center;width:100%;aspect-ratio:3/2;font-size:40px;color:#8d9caa;background:radial-gradient(#344657,#132736)}.world-tornado{width:105px;height:120px;background:url(assets/alchemy-art-tornado.webp) center/cover;mask-image:radial-gradient(ellipse at center,#000 25%,transparent 70%);animation:tornado-breathe 4s ease-in-out infinite;pointer-events:none}.tornado-icon{background-size:cover!important}.still-world .world-tornado,.outside-view .world-tornado{animation-play-state:paused}#resultIcon[role=button]{cursor:pointer}@keyframes tornado-breathe{0%,100%{transform:scale(.96) rotate(-2deg)}50%{transform:scale(1.04) rotate(2deg)}}@media(max-height:500px){.artwork-caption{padding-top:20px}.artwork-caption h2{font-size:28px}.artwork-caption p{font-size:13px;margin-bottom:6px}.discovery-dialog .discovery-art.showcase-art{width:110px;height:110px}.art-preview-label{font-size:10px;right:3px;bottom:3px;padding:3px}.showcase-art .item-art{display:none}}@media(prefers-reduced-motion:reduce){.world-tornado{animation:none}}

.artwork-dialog.quiet-art .artwork-caption h2,.artwork-dialog.quiet-art .artwork-caption p,.artwork-dialog.quiet-art .artwork-top>span{display:none}.artwork-dialog.quiet-art .artwork-caption{padding-top:10px;background:transparent}.artwork-actions{flex-wrap:wrap}.artwork-actions button{font-size:14px}.result-icon[role=button]{min-width:44px;min-height:40px;display:grid;place-items:center}

.card-collection-dialog{width:min(900px,96vw);height:min(880px,94dvh);max-height:94dvh;padding:16px;box-sizing:border-box;overflow:hidden}.card-collection-dialog[open]{display:flex;flex-direction:column;gap:10px}.card-collection-dialog .dialog-top{margin:0}.card-collection-dialog #artGalleryCount{font-size:14px;color:#d8c794;margin:0}.art-gallery-controls{display:grid;grid-template-columns:1fr 110px 125px;gap:7px;flex-shrink:0}.art-gallery-controls input,.art-gallery-controls select{min-width:0;min-height:44px;font-size:14px}.card-collection-dialog .art-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));overflow-y:auto;min-height:0;padding:5px 8px 12px 2px;gap:14px;scrollbar-color:#d5b16a #193345;overscroll-behavior:contain;flex:1}.collectible-card{border:1px solid #a99c75;padding:5px!important;background:linear-gradient(145deg,#46515d,#152b3c);box-shadow:0 4px 12px #0004;gap:0;position:relative;transition:transform .15s,border-color .15s}.collectible-card:enabled:hover{transform:translateY(-3px);border-color:#ffe6a3}.collectible-card:focus-visible{outline:3px solid #f9d980;outline-offset:2px}.card-picture{position:relative;width:100%;overflow:hidden;border-radius:8px}.collectible-card .card-picture img{aspect-ratio:3/2;display:block;border-radius:8px}.card-number{position:absolute;top:6px;left:6px;font-size:12px;padding:3px 6px;border-radius:6px;background:#0a223ce0;color:#fff1c9;border:1px solid #eee3}.card-caption{padding:9px 6px;display:flex;flex-direction:column;gap:4px;width:100%;box-sizing:border-box}.collectible-card .card-caption strong{padding:0;font-size:16px;color:#fff4dd}.collectible-card .card-caption small{padding:0;font-size:12px;color:#c4d4de}.category-wilds{border-color:#85b497}.category-craft{border-color:#d8b272}.category-machines{border-color:#81aaca}.category-myths{border-color:#be94d3}.collectible-card:disabled{opacity:.72}.collectible-card .art-locked{border-radius:8px;position:relative}.art-locked small{position:absolute;top:8px;left:8px;font-size:12px;color:#c5d1db}.artwork-navigation{display:flex;gap:5px;flex-shrink:0}.artwork-top>span{max-width:55%;text-shadow:0 1px 5px #000}.artwork-navigation button{min-width:44px}.artwork-navigation button:not(#artworkClose){font-size:30px}.art-gallery-controls{padding-bottom:3px}@media(max-width:520px){.card-collection-dialog .art-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.art-gallery-controls{grid-template-columns:1fr 1fr}.art-gallery-controls input{grid-column:1/-1}.card-collection-dialog .dialog-top h2{font-size:20px}.card-caption{padding:7px 4px}.collectible-card .card-caption strong{font-size:15px}.artwork-top>span{font-size:12px}}@media(prefers-reduced-motion:reduce){.collectible-card{transition:none}.collectible-card:enabled:hover{transform:none}}

.artwork-loading{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 14px;border-radius:20px;background:#071b30dc;color:#fff4d7;font-size:14px;max-width:80%;text-align:center}.artwork-loading[hidden]{display:none}
.card-collection-dialog .art-gallery-grid{align-content:start;grid-auto-rows:max-content}.collectible-card{align-self:start}.card-collection-dialog #artGalleryEmpty{margin:0;font-size:14px;color:#d6e1e5}

.atlas-piece{width:120px;height:120px;min-height:120px;overflow:visible;filter:none;justify-content:flex-end;isolation:isolate}.atlas-piece:has(.world-natural),.atlas-piece:has(.world-object){filter:none}.atlas-piece .atlas-piece-name{position:absolute;top:109px;left:50%;transform:translateX(-50%);z-index:2;pointer-events:none;max-width:140px;width:max-content}.atlas-piece .world-object,.atlas-piece .world-natural{position:absolute;left:50%;bottom:20px;width:var(--world-width,90px);height:var(--world-height,90px);margin-left:calc(var(--world-width,90px)/-2);background-repeat:no-repeat;flex-shrink:0;pointer-events:none}.atlas-piece .world-object{background-size:400% 400%;transform-origin:50% 80%}.atlas-piece .object-ground{--world-width:150px;--world-height:115px}.atlas-piece .object-water{--world-width:210px;--world-height:155px}.atlas-piece .object-canopy{--world-width:150px;--world-height:165px}.atlas-piece .object-grove{--world-width:235px;--world-height:195px}.atlas-piece .object-foliage{--world-width:100px;--world-height:115px}.atlas-piece .object-field{--world-width:200px;--world-height:150px}.atlas-piece .object-building{--world-width:130px;--world-height:140px}.atlas-piece .object-settlement{--world-width:205px;--world-height:185px}.atlas-piece .object-animal{--world-width:85px;--world-height:90px}.atlas-piece .object-myth{--world-width:135px;--world-height:140px}.atlas-piece .object-flying{--world-width:95px;--world-height:95px}.atlas-piece .object-flutter{--world-width:65px;--world-height:65px}.atlas-piece .object-swimming{--world-width:105px;--world-height:90px}.atlas-piece .object-artifact{--world-width:75px;--world-height:80px}.atlas-piece .object-machine{--world-width:95px;--world-height:100px}.atlas-piece .object-mountain{--world-width:210px;--world-height:225px}.atlas-piece .object-atmosphere{--world-width:150px;--world-height:155px;animation:steam-rise 7s ease-in-out infinite}.atlas-piece .object-celestial{--world-width:115px;--world-height:120px;animation:steam-rise 10s ease-in-out infinite}.atlas-piece .world-tornado{mask-image:none;background-size:400% 400%;--world-width:160px;--world-height:190px;animation:tornado-breathe 4s ease-in-out infinite}.atlas-piece.selected{filter:none;translate:none}.atlas-piece.selected .atlas-piece-name{border-color:#ffe39f;background:#173244}.atlas-piece.selected::after{content:'';position:absolute;inset:-8px;border:2px solid #ffe39f;border-radius:18px;pointer-events:none;opacity:.85}.atlas-piece .natural-water,.atlas-piece .natural-earth,.atlas-piece .natural-mud{--world-width:150px;--world-height:115px}.atlas-piece .natural-air,.atlas-piece .natural-dust,.atlas-piece .natural-steam,.atlas-piece .natural-cloud{--world-width:160px;--world-height:145px}.atlas-piece .natural-fire{--world-width:100px;--world-height:120px}.atlas-region-label{pointer-events:none;z-index:3000}.new-element-icon{background-size:cover!important}.atlas-piece:focus-visible{outline:3px solid #ffe39f;outline-offset:4px}.atlas-piece .object-ground,.atlas-piece .object-water,.atlas-piece .object-field{transform-origin:center}.atlas-preview-pieces .atlas-piece.selected::after{display:none}@media(prefers-reduced-motion:reduce){.atlas-piece .object-atmosphere,.atlas-piece .object-celestial{animation:none}}

.atlas-piece.selected::after{display:none}.atlas-piece.selected .atlas-piece-name{box-shadow:0 0 0 2px #ffe39f55}


.scenery-piece{pointer-events:none!important;transform-origin:50% 90%;min-height:120px}.scenery-piece .atlas-piece-name{display:none!important}.scenery-piece .world-object,.scenery-piece .world-natural{animation:none!important}.atlas-status{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.atlas-status .atlas-progress{font-size:12px}.world-projects-dialog{width:min(940px,94vw)}#worldProjectGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.world-project{border:1px solid #637887;border-radius:16px;overflow:hidden;background:#182e3b;padding:0 0 12px;display:flex;flex-direction:column}.world-project>img,.world-project-locked{width:100%;aspect-ratio:3/2;object-fit:cover}.world-project-locked{display:grid;place-items:center;font-size:60px;background:#203b48}.world-project>div:not(.world-project-locked){padding:0 14px}.world-project h3{font-size:19px;margin:14px 0 6px;color:#ffe2a0}.world-project p{font-size:14px;line-height:1.5}.world-project progress{width:100%;accent-color:#e7c47a}.world-project-goals{display:flex;flex-wrap:wrap;gap:6px}.world-project-goals button{font-size:13px;padding:6px 9px;min-height:36px}.world-project>button{margin:12px 14px 0;min-height:44px;background:#335b5b}.world-project-goals button:disabled{opacity:.65}.world-projects-dialog>p{font-size:15px;line-height:1.5}.scenery-piece .object-ground{opacity:.8}@media(max-width:540px){#worldProjectGrid{grid-template-columns:1fr}.atlas-status .atlas-progress:first-child{display:none}.atlas-toolbar select{min-width:100px;max-width:155px}.atlas-toolbar button{min-width:36px;min-height:36px}.world-projects-dialog{width:94vw}}@media(max-height:500px){.atlas-dialog{gap:4px}.atlas-dialog .atlas-status{display:none}.atlas-dialog .atlas-tip{display:none}.atlas-dialog .dialog-top h2{font-size:17px}.atlas-bottom{min-height:50px}.atlas-bottom #atlasDetail p{display:none}}

.atlas-window{position:absolute;box-sizing:border-box;border:2px solid #fff4c0;box-shadow:0 0 3px #102931;pointer-events:none;z-index:5}.atlas-minimap{cursor:crosshair}

.atlas-piece .object-largeAnimal{--world-width:125px;--world-height:130px;animation:creature-breathe 5s ease-in-out infinite}


.atlas-find-dialog{width:min(94vw,560px);max-height:82dvh;box-sizing:border-box;overflow:auto}.atlas-find-label{display:block;font-size:14px;margin:0 0 6px;color:#e6cf9c}#atlasFindInput{width:100%;box-sizing:border-box;min-height:48px;font-size:16px;margin-bottom:6px}#atlasFindSummary{font-size:14px;line-height:1.4;margin:8px 0 12px;color:#cbd5df}.atlas-find-results{display:grid;gap:7px}.atlas-find-result{display:flex;align-items:center;text-align:left;gap:12px;min-height:68px;padding:8px 10px}.atlas-find-result>.item-art{width:52px;height:52px;flex-shrink:0}.atlas-find-result>span:last-child{display:grid;gap:4px;min-width:0}.atlas-find-result strong{font-size:16px}.atlas-find-result small{font-size:14px;color:#cbd5df}

.atlas-piece .framed-sprite{--sprite-fit-width:min(var(--world-width,90px),calc(var(--world-height,90px) * var(--sprite-ratio)));--sprite-fit-height:min(var(--world-height,90px),calc(var(--world-width,90px) / var(--sprite-ratio)));width:var(--sprite-fit-width);height:var(--sprite-fit-height);margin-left:calc(var(--sprite-fit-width) / -2)}

.quest .quest-actions{display:flex;gap:6px;align-self:center}.quest-actions button{position:static;min-height:40px;padding:7px 9px}.daily-week{display:flex;gap:5px;justify-content:space-between;margin:16px 0}.daily-day{font-size:12px;padding:8px 4px;border-radius:8px;background:#202c35}.daily-day.complete{background:#24594e;color:#baf3d3}.daily-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.daily-note{font-size:12px;opacity:.7}#dailyDialog{max-width:650px}#dailyKit{max-height:30dvh;overflow:auto}#dailyStatus{min-height:48px;white-space:pre-line}

.quest .quest-goal{font:400 17px Georgia,serif;border:0;background:none;color:var(--ink);padding:0 6px 0 0;text-align:left;min-width:0;flex:1;min-height:40px;line-height:1.2}.trail-moment{border:1px solid #73865e;background:linear-gradient(120deg,#254840,#1a343c);border-radius:12px;padding:10px 12px;margin:8px 0;text-align:left}.trail-moment[hidden]{display:none}.trail-moment strong,.trail-moment span{display:block}.trail-moment strong{font:18px Georgia,serif;color:#ffe3a0}.trail-moment span{font-size:14px;margin:4px 0}.trail-moment progress{width:100%;accent-color:#d7cd80}.trails-dialog{width:min(960px,96vw);height:min(850px,94dvh);max-height:94dvh;overflow:hidden;padding:18px}.trails-dialog[open]{display:flex;flex-direction:column;gap:12px}.trails-dialog .dialog-top{margin:0;flex-shrink:0}.trails-dialog>p{font-size:14px}.trail-filters{display:flex;gap:8px;flex-shrink:0}.trail-filters input{flex:1;min-width:0}.trail-filters input,.trail-filters select{background:#152e3c;color:#fff;border:1px solid #57717e;border-radius:10px;padding:10px;font:14px system-ui;min-height:44px}.trail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:14px;overflow:auto;min-height:0;padding:3px 6px 12px 0;overscroll-behavior:contain}.trail-card{background:#152c38;border:1px solid #48626e;border-radius:15px;overflow:hidden;display:flex;flex-direction:column}.trail-card.active-trail{border-color:#ecc77a;box-shadow:0 0 0 1px #ecc77a}.trail-card>img,.trail-unexplored{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}.trail-unexplored{display:grid;place-items:center;background:radial-gradient(ellipse at top,#37585e,#132832);font-size:52px}.trail-card-body{padding:12px;display:flex;flex-direction:column;gap:8px;flex:1}.trail-card h3{font:22px/1.15 Georgia,serif;margin:0;color:#fff0c7}.trail-card progress{width:100%;height:7px;flex:none}.trail-card p{font-size:14px}.trail-card .trail-route{font-size:12px;color:#aabfca}.trail-card .eyebrow{font-size:11px;letter-spacing:.8px}.trail-card button{width:100%;margin-top:auto;background:#33564e;border-color:#73947d}.artwork-actions{flex-wrap:wrap}.artwork-recipe{color:#ffe0a2!important;font-size:14px!important}@keyframes painting-camera{0%,100%{transform:scale(1)}50%{transform:scale(1.06) translateY(-.4%)}}@media(max-width:650px){.trail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.trail-card h3{font-size:19px}.trail-card-body{padding:10px}.trail-filters select{max-width:130px}}@media(max-width:360px){.trail-grid{grid-template-columns:1fr}.quest .quest-goal:after{display:none}}@media(max-height:500px){.trail-moment{padding:6px 9px}.trail-moment span{font-size:12px}.trail-moment strong{font-size:15px}.artwork-caption #artworkDescription{display:none}.artwork-actions button{padding:6px 9px;min-height:36px;font-size:12px}.quest .quest-goal{font-size:15px;min-height:32px}.quest .quest-goal:after{display:none}}

.atlas-piece.discovery-arrival{animation:discovery-settle .85s ease-out both}.still-world .discovery-arrival{animation:none}@keyframes discovery-settle{0%{opacity:0;transform:translateY(-12px) scale(.82)}65%{opacity:1;transform:translateY(0) scale(1.035)}100%{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.atlas-piece.discovery-arrival{animation:none}}
.recipes-dialog{width:min(950px,96vw);height:min(850px,94dvh);max-height:94dvh;padding:18px;overflow:hidden}.recipes-dialog[open]{display:flex;flex-direction:column;gap:12px}.recipes-dialog .dialog-top{margin:0}.recipes-dialog>p{font-size:14px}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;overflow:auto;min-height:0;overscroll-behavior:contain;padding:3px 6px 12px 0}.recipe-result{border:1px solid #577386;background:#142d3b;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;padding-bottom:10px;gap:7px}.recipe-art{border:0;border-radius:0;padding:0;width:100%;display:block;min-height:0;background:none}.recipe-art img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}.recipe-result h3{font:22px Georgia,serif;margin:5px 12px 0;color:#ffe2a3}.recipe-result p{font-size:13px;color:#b9cfdb;margin:0 12px}.recipe-result .recipe-pair{margin:0 9px;font-size:14px;background:#254b4e;text-align:left;padding:10px;min-height:44px}.recovery-checkpoint{border:1px solid #4c687a;border-radius:12px;padding:12px;margin:12px 0}.recovery-checkpoint p{font-size:14px;margin-bottom:8px}.atlas-connections{position:absolute;inset:0;pointer-events:none;z-index:2990}.atlas-connections svg{width:3600px;height:2400px;overflow:visible}.atlas-connections path{stroke:#f7dc91;stroke-width:3;stroke-dasharray:10 9;opacity:.85}.atlas-connections circle{fill:#ffe2a4;stroke:#3b564c;stroke-width:2}@media(max-width:650px){.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.recipe-result h3{font-size:19px}.recipe-result .recipe-pair{font-size:13px}}@media(max-width:360px){.recipe-grid{grid-template-columns:1fr}}


.individual-element-icon{position:relative;overflow:hidden;background:#18323e!important;isolation:isolate}.individual-element-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:inherit;z-index:1}.individual-element-icon .icon-fallback{position:absolute;inset:0;display:none;place-items:center;color:#fff;font-size:24px;z-index:0}
.artwork-viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;overscroll-behavior:contain;outline-offset:-3px;user-select:none;-webkit-user-select:none}.artwork-plane{position:absolute;left:50%;top:50%;width:100%;height:100%;transform:translate(-50%,-50%);transform-origin:center;will-change:transform}.artwork-plane img{width:100%;height:100%;display:block;object-fit:contain;pointer-events:none}.artwork-dialog.scene-motion:not(.full-image):not(.artwork-inspecting) .artwork-plane img{animation:painting-camera 22s ease-in-out infinite}.artwork-dialog:not([open]) .artwork-plane img{animation-play-state:paused}.artwork-dialog.artwork-inspecting .artwork-plane img{animation:none}.artwork-inspecting .artwork-caption h2,.artwork-inspecting .artwork-caption p{display:none}.artwork-inspecting .artwork-caption{background:transparent;padding-top:8px}.artwork-zoom{position:absolute;right:max(12px,env(safe-area-inset-right));top:calc(max(14px,env(safe-area-inset-top)) + 58px);display:flex;gap:4px;align-items:center;background:#0b202bdd;border:1px solid #ffffff55;border-radius:14px;padding:4px}.artwork-zoom button{height:44px;min-width:44px;padding:4px 8px;background:transparent;border:0;color:#fff;font-size:22px}.artwork-zoom #artworkZoomReset{font:13px system-ui;min-width:58px}.artwork-gesture-tip{position:absolute;left:12px;top:calc(max(14px,env(safe-area-inset-top)) + 65px);max-width:calc(100% - 195px);padding:7px 10px;background:#0b202bbb;color:#fff;border-radius:9px;font:12px/1.4 system-ui;pointer-events:none}.artwork-inspecting .artwork-gesture-tip{display:none}.artwork-actions{flex-wrap:wrap}.artwork-top>span{min-width:0;font-size:12px}.artwork-navigation{flex-shrink:0}@media(max-height:500px){.artwork-gesture-tip{display:none}.artwork-zoom{top:70px}.artwork-top{padding-bottom:8px}.artwork-caption{padding-bottom:max(8px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.artwork-dialog.scene-motion .artwork-plane img{animation:none!important}}

.atlas-destination{position:absolute;z-index:3100;width:130px;min-height:110px;padding:10px 8px;background:#193d49e6;color:#fff0b8;border:2px dashed #e8ca7c;border-radius:50% 50% 20px 20px;box-shadow:0 0 30px #f4d98930;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.atlas-destination>span{font-size:24px}.atlas-destination strong{font:16px Georgia,serif}.atlas-destination small{font-size:8px;letter-spacing:.9px;color:#d2e2df}.atlas-destination:focus-visible{outline:3px solid white;outline-offset:4px}#atlasGoalHint{min-height:44px;background:#33564e;color:#fff2c6}

.header-actions{display:flex;align-items:center;gap:6px}#openAudio{min-width:44px;font-size:20px}.audio-dialog{width:min(440px,94vw);max-height:90dvh;overflow:auto}.audio-channel{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin:16px 0;padding:12px;background:#193440;border-radius:12px}.audio-channel button{min-height:44px}.audio-channel label{font-size:13px}.audio-channel input{grid-column:1/-1;width:100%;height:36px;accent-color:#e8c27c}#audioMaster{width:100%;min-height:48px;background:#36574d}#audioStatus{min-height:38px;font-size:13px;color:#cededa}@media(max-width:400px){.app header .eyebrow{font-size:9px}.app header h1{font-size:18px}.header-actions{gap:3px}.header-actions #openBook{padding:8px}}

.artwork-more{position:relative}.artwork-more>summary{list-style:none;cursor:pointer;min-height:44px;border:1px solid #fff6;border-radius:9px;padding:10px 14px;background:#132633cc;color:white;font:14px system-ui}.artwork-more>summary::-webkit-details-marker{display:none}.artwork-more>div{position:fixed;inset:auto 12px 76px;box-sizing:border-box;width:min(280px,calc(100vw - 24px));max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:8px;background:#132633f5;border:1px solid #fff6;border-radius:12px;display:grid;gap:6px;z-index:30}.artwork-more:not([open])>div{display:none}.artwork-more button{width:100%;text-align:left;min-height:44px!important}#reactionText{line-height:1.55}#reactionText a{color:#ffe0a2}

.audio-dialog .dialog-top{position:sticky;top:0;background:#152936;z-index:1}

.individual-element-icon.icon-failed .icon-fallback{display:grid}


.atlas-dialog{background:#102530}.atlas-dialog .dialog-top{background:#102530;padding:0}.atlas-dialog h2{font-family:Georgia,serif;color:#f2dfb4}.atlas-viewport{border-color:#46636a;border-radius:16px;box-shadow:inset 0 0 24px #071d3144}.atlas-fog{background:#132e3ee8;mask-mode:luminance}.atlas-region-label{display:grid;gap:6px;justify-items:center;background:transparent;border-radius:0;padding:0;color:#fff4d7;text-shadow:0 2px 6px #122c35,0 0 15px #122c35;font-family:Georgia,serif;font-size:25px;letter-spacing:.04em;transform:translateX(-50%) scale(var(--label-scale,1));transform-origin:50% 100%;z-index:2500}.atlas-region-label small{font:14px system-ui;letter-spacing:.08em;color:#e9e4ce}.atlas-overview .atlas-piece-name{display:none}.atlas-overview .world-object,.atlas-overview .world-natural{animation:none!important}.atlas-bottom{background:#183541;border:1px solid #345762;border-radius:14px;padding:8px;gap:8px}.atlas-bottom #atlasDetail{display:flex;align-items:center;gap:10px}.atlas-bottom #atlasDetail>img{width:64px;height:64px;object-fit:cover;border-radius:10px;flex-shrink:0}.atlas-bottom #atlasDetail strong{display:block;font-size:16px;color:#f6dfa9}.atlas-bottom #atlasDetail small{display:block;color:#afcbd0;font-size:12px;margin-top:3px}.atlas-minimap{border-color:#6c9593;box-shadow:0 3px 12px #0005}.atlas-bottom button{min-height:44px}.atlas-status{padding:0 3px}.atlas-toolbar>select{background:#183541;border-color:#42636c}.atlas-dialog .atlas-tip{color:#95b4bc}@media(max-width:480px){.atlas-bottom #atlasDetail>img{width:42px;height:48px}.atlas-bottom #atlasDetail p{display:none}.atlas-bottom #atlasDetail strong{font-size:14px}.atlas-bottom .atlas-minimap{display:none}.atlas-bottom{padding:6px}.atlas-dialog .atlas-tip{display:none}}@media(max-height:500px){.atlas-bottom #atlasDetail>img{width:40px;height:40px}.atlas-bottom .atlas-minimap{display:none}.atlas-bottom{padding:4px}}

.atlas-controls{position:relative;margin-left:auto;flex-shrink:0}.atlas-controls>summary{cursor:pointer;list-style:none;min-height:44px;display:flex;align-items:center;padding:0 14px;border:1px solid #54777d;border-radius:12px;background:#213f49;color:#f2dfb4;font-size:14px}.atlas-controls>summary::-webkit-details-marker{display:none}.atlas-controls[open]>summary{background:#385b60}.atlas-controls>.atlas-toolbar{position:absolute;right:0;top:50px;z-index:5000;width:min(410px,calc(100vw - 32px));padding:14px;background:#102a35f5;border:1px solid #668989;border-radius:16px;box-shadow:0 12px 40px #0008;box-sizing:border-box;gap:8px}.atlas-controls .atlas-toolbar select{max-width:none;flex:1 1 100%;font-size:16px}.atlas-controls .atlas-options>div{z-index:5001;top:45px}.atlas-dialog>.dialog-top{gap:8px;position:relative;z-index:10;flex-shrink:0}.atlas-dialog>.dialog-top>div:first-child{min-width:0}.atlas-dialog>.dialog-top .eyebrow{display:none}.atlas-dialog>.atlas-status{display:none}.atlas-dialog #atlasBack{min-height:44px;font-size:14px;padding:8px 12px}.atlas-dialog .atlas-viewport{min-height:0}.atlas-dialog h2{font-size:24px}.atlas-piece.outside-view{content-visibility:hidden}.paused-game .world-object,.paused-game .world-natural,.paused-game .artwork-plane img{animation-play-state:paused!important}.atlas-piece .object-water{animation:pond-shimmer 9s ease-in-out infinite}.atlas-piece .object-glow{animation:enchanted-glow 7s ease-in-out infinite}.atlas-piece.selected .world-object{filter:brightness(1.08)}.atlas-viewport:focus-visible{outline:2px solid #f4dda3;outline-offset:-3px}@keyframes pond-shimmer{0%,100%{transform:scale(1,1);filter:brightness(1)}50%{transform:scale(1.018,1.008);filter:brightness(1.07)}}@keyframes enchanted-glow{0%,100%{filter:brightness(.98)}50%{filter:brightness(1.16)}}.atlas-regions-dialog{width:min(94vw,860px);box-sizing:border-box;max-height:90dvh}.atlas-region-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.atlas-region-card{text-align:left;padding:0;overflow:hidden;border:1px solid #45666d;border-radius:15px;background:#17333e;display:flex;flex-direction:column}.atlas-region-card>img,.region-unexplored{width:100%;aspect-ratio:3/2;object-fit:cover}.region-unexplored{display:grid;place-items:center;background:#1f3440;color:#77989d;font-size:40px}.atlas-region-card>div:last-child{padding:12px;display:grid;gap:7px}.atlas-region-card strong{font:18px Georgia,serif;color:#f1dfb2}.atlas-region-card small{font-size:14px;color:#b4cbd0}.atlas-region-card progress{width:100%;accent-color:#e8c581}.audio-presets{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.audio-presets button{flex:1;min-height:44px;font-size:14px}.artwork-preview{position:absolute;inset:0;z-index:-1;filter:blur(4px);opacity:.7}.artwork-plane #artworkImage{transition:opacity .3s}.artwork-dialog[aria-busy=true] #artworkImage{opacity:0}@media(max-width:540px){.atlas-region-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-region-card strong{font-size:16px}.atlas-dialog h2{font-size:20px}.atlas-bottom #atlasDetail>img{width:46px;height:46px}.atlas-bottom #atlasIngredients{display:none}.atlas-dialog>.dialog-top{gap:6px}}@media(max-height:500px){.atlas-dialog>.dialog-top .eyebrow{display:none}.atlas-dialog>.dialog-top{min-height:44px}.atlas-dialog h2{font-size:18px}.atlas-bottom{min-height:44px}.atlas-dialog .atlas-viewport{border-radius:12px}}@media(prefers-reduced-motion:reduce){.atlas-piece .world-object,.atlas-piece .world-natural{animation:none!important}.artwork-plane #artworkImage{transition:none}}

.artwork-plane .artwork-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none;filter:blur(3px)}.artwork-plane #artworkImage{position:relative;z-index:1}.atlas-dialog .dialog-top .atlas-controls{margin-left:auto}.atlas-dialog .dialog-top{gap:10px}.atlas-region-card:disabled{opacity:.45}.atlas-region-card:focus-visible{outline:3px solid #dbb86c;outline-offset:3px}
.region-journal-dialog{width:min(94vw,850px);max-height:92dvh;padding:20px;box-sizing:border-box}.region-journal-dialog h2{font:26px Georgia,serif;color:#f0dcb5}.region-chapter{display:grid;grid-template-columns:180px 1fr;gap:16px;margin:12px 0;background:#15333d;border:1px solid #45646d;border-radius:16px;overflow:hidden}.region-chapter>img,.region-chapter>.region-unexplored{width:100%;height:100%;min-height:155px;object-fit:cover}.region-chapter>div:last-child{padding:14px}.region-chapter h3{margin:0 0 10px;font:21px Georgia,serif;color:#f1ddbd}.region-chapter p{font-size:16px;margin:10px 0}.region-chapter progress{width:100%;accent-color:#e6c07f}.region-chapter.complete{border-color:#75a69a}.region-chapter button{min-height:44px;font-size:15px}.region-chapter-count{padding:0 12px 12px;color:#e5bd79;font-size:14px}.night-world:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(150deg,#14255780,#193b6240 50%,#19335280);mix-blend-mode:multiply}.night-world .object-glow{filter:brightness(1.25)}.world-motes{position:absolute;top:0;left:0;pointer-events:none;z-index:5500}.atlas-region-label{pointer-events:none}.atlas-options>div{max-height:min(60dvh,400px);overflow-y:auto}.atlas-controls[open]>.atlas-toolbar{max-height:calc(100dvh - 150px);overflow-y:auto}.app-install-dialog{max-width:600px;width:94vw;box-sizing:border-box}.app-install-dialog p,.app-install-dialog li{font-size:16px;line-height:1.6}.app-install-actions{display:flex;flex-wrap:wrap;gap:10px}.app-install-actions button{min-height:44px;flex:1}.app-status{border-left:3px solid #e7c88f;padding-left:12px;color:#d1e5df}.app-update{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));right:12px;z-index:8000;max-width:calc(100vw - 24px);padding:12px 16px;background:#24464e;border:1px solid #e1c086;border-radius:14px;box-shadow:0 8px 30px #0008;color:#f9edd1;font-size:15px}.app-update[hidden]{display:none}.element-grid .element{content-visibility:auto;contain-intrinsic-size:82px}.art-gallery-card{content-visibility:auto;contain-intrinsic-size:200px}.world-object.object-grove{animation:grove-breathe 12s ease-in-out infinite}@keyframes grove-breathe{0%,100%{filter:brightness(1)}50%{filter:brightness(1.035)}}@media(max-width:540px){.region-chapter{grid-template-columns:110px 1fr;gap:0}.region-chapter h3{font-size:19px}.region-chapter>img{min-height:180px}.region-journal-dialog{padding:14px}}@media(prefers-reduced-motion:reduce){.world-motes{display:none}.world-object.object-grove{animation:none!important}}

/* Local details evolve inside the scene rather than translating the full painting. */
.world-detail{position:absolute;pointer-events:none;left:50%;bottom:20px;z-index:1}.world-detail i{display:block;position:absolute;pointer-events:none}.lake-ripples{width:94px;height:40px;margin-left:-47px;bottom:55px;overflow:hidden;border-radius:50%;transform:rotate(-5deg)}.lake-ripples i{inset:8px 22px;border:1px solid #d2f6ed55;border-radius:50%;animation:local-ripple 4.8s ease-out infinite}.lake-ripples i:nth-child(2){animation-delay:-1.6s}.lake-ripples i:nth-child(3){animation-delay:-3.2s}@keyframes local-ripple{0%{transform:scale(.2);opacity:0}20%{opacity:.65}100%{transform:scale(2.3);opacity:0}}
.tree-leaves{width:90px;height:85px;margin-left:-45px;bottom:93px}.tree-leaves i{width:4px;height:7px;border-radius:80% 0;background:#bad98d88;left:22%;top:15%;animation:local-leaf 9s ease-in-out infinite}.tree-leaves i:nth-child(2){left:72%;top:38%;animation-delay:-3s}.tree-leaves i:nth-child(3){left:48%;top:5%;animation-delay:-6s}@keyframes local-leaf{0%,20%,100%{transform:translate(0,0) rotate(-20deg);opacity:0}35%{opacity:.7}80%{transform:translate(9px,45px) rotate(100deg);opacity:0}}
.funnel-wisps{width:60px;height:95px;margin-left:-30px;bottom:67px;overflow:hidden;clip-path:polygon(0 0,100% 0,65% 100%,35% 100%)}.funnel-wisps i{inset:10px 2px;border:1px solid #dfd8c34d;border-left-color:transparent;border-radius:50%;animation:local-wisp 3s linear infinite}.funnel-wisps i:nth-child(2){animation-delay:-1.5s}@keyframes local-wisp{0%{transform:translateY(-15px) rotate(-25deg);opacity:0}35%{opacity:.55}100%{transform:translateY(24px) rotate(30deg);opacity:0}}
.still-world .world-detail,.atlas-overview .world-detail,.atlas-preview-pieces .world-detail{display:none}.outside-view .world-detail i,.paused-game .world-detail i{animation-play-state:paused!important}@media(prefers-reduced-motion:reduce){.world-detail{display:none}}
/* The world is one continuous painting; map controls never supply its objects. */
.atlas-board.discovery-poster,.poster-preview-scene{background:#182b34 url(assets/alchemy-discovery-poster-v40.webp) center/100% 100% no-repeat}.poster-shadow{position:absolute;inset:0;pointer-events:none;z-index:2}.poster-shadow svg{display:block;width:100%;height:100%}.poster-minimap{background:#182b34 url(assets/alchemy-discovery-poster-v40.webp) center/100% 100% no-repeat}.poster-minimap .poster-shadow{z-index:1}.poster-preview-scene{position:absolute;left:0;top:0;pointer-events:none}.discovery-poster .poster-hotspot{width:60px;height:60px;min-height:60px;min-width:0;left:0;top:0;z-index:3;transform:translate(-50%,-50%);border-radius:50%;filter:none!important;translate:none!important;isolation:auto;overflow:visible}.discovery-poster .poster-hotspot:after{display:none}.discovery-poster .poster-hotspot.selected:after{display:block;content:'';position:absolute;inset:12px;border:2px solid #fff4b6;border-radius:50%;box-shadow:0 0 0 3px #182b3450;pointer-events:none;opacity:.85}.discovery-poster .poster-hotspot .atlas-piece-name{top:54px;font-size:14px;line-height:1.3;transform:translateX(-50%) scale(var(--poster-label-scale,1));transform-origin:50% 0;max-width:160px;white-space:nowrap}.discovery-poster:not(.show-names) .poster-hotspot:not(.selected):not(:focus-visible) .atlas-piece-name{opacity:0}.discovery-poster.atlas-overview .poster-hotspot{pointer-events:none}.discovery-poster .poster-hotspot:focus-visible{outline:3px solid #ffe39f}.poster-selected-spot{position:absolute;width:5px;height:5px;border:1px solid #fff7cf;border-radius:50%;transform:translate(-50%,-50%);background:#f5d998;z-index:4;pointer-events:none}.poster-reveal-glow{position:absolute;width:180px;height:180px;border:4px solid #ffedb2;box-shadow:0 0 45px #f4e4a573;border-radius:50%;transform:translate(-50%,-50%);z-index:3;animation:poster-reveal-arrival 1.6s ease-out both}@keyframes poster-reveal-arrival{from{opacity:.8;scale:.5}to{opacity:0;scale:1.5}}.still-world .poster-reveal-glow{animation:none;opacity:0}.atlas-viewport{background:#0d202b}.poster-mini-count{font-size:14px;color:#b9d3d5}@media(prefers-reduced-motion:reduce){.poster-reveal-glow{animation:none;opacity:0}}

.poster-shade-transition{animation:poster-shade-lift 1.8s ease-out both;will-change:opacity}@keyframes poster-shade-lift{0%,12%{opacity:1}100%{opacity:0}}.still-world .poster-shade-transition{animation:none;opacity:0}@media(prefers-reduced-motion:reduce){.poster-shade-transition{animation:none;opacity:0}}

.discovery-poster:not(.show-names) .poster-hotspot:not(.selected){pointer-events:none}

#atlasExtent{position:relative;overflow:hidden;flex-shrink:0}.atlas-board.discovery-poster{position:absolute;left:0;top:0}

.discovery-poster.show-names .poster-hotspot:not(.poster-landmark):not(.selected):not(:focus-visible) .atlas-piece-name{opacity:0}.discovery-poster.show-names .poster-hotspot:not(.poster-landmark):not(.selected){pointer-events:none}

.poster-follow-goal{min-height:44px;max-width:200px;font-size:14px;flex-shrink:0}.atlas-bottom #atlasDetail{flex-wrap:wrap}.atlas-bottom #atlasDetail>div{flex:1;min-width:90px}@media(max-width:540px){.poster-follow-goal{max-width:140px;padding:7px;font-size:14px}}

.artwork-dialog{--art-safe-top:env(safe-area-inset-top,0px);--art-safe-right:env(safe-area-inset-right,0px);--art-safe-bottom:env(safe-area-inset-bottom,0px);--art-safe-left:env(safe-area-inset-left,0px)}.artwork-more>div button{white-space:normal;overflow-wrap:anywhere;flex-shrink:0}.artwork-more>summary:focus-visible{outline:3px solid #ffe0a2;outline-offset:3px}.artwork-more[open]>summary{background:#355246}

/* Bounded practice workspace: browsing never pushes the active kit below a long list. */
.puzzle-dialog[open]{display:flex;flex-direction:column;width:min(760px,calc(100vw - 20px));height:min(820px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;padding:16px;overflow:hidden}
.puzzle-dialog .dialog-top{flex-shrink:0;margin-bottom:8px}.puzzle-browser,.puzzle-play{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.puzzle-dialog [hidden]{display:none!important}
.puzzle-intro{margin:0 0 10px;font-size:1rem}.puzzle-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;flex-shrink:0}.puzzle-filters label{display:flex;flex-direction:column;gap:5px;font-size:.875rem}.puzzle-filters input,.puzzle-filters select{width:100%;min-width:0;min-height:44px;font-size:.875rem}
#puzzleCount{margin:10px 0;font-size:.875rem;color:var(--gold)}#puzzleList{min-height:100px;overflow:auto;overscroll-behavior:contain;flex:1;padding:0 3px 4px}
.puzzle-dialog .puzzle-card{display:flex;flex-direction:column;gap:5px;margin:0 0 8px;font-size:1rem}.puzzle-card span,.puzzle-card small{font-size:.875rem;font-weight:normal}.puzzle-card small{color:#b8c8c5}.puzzle-session{display:flex;align-items:center;gap:12px;font-size:.875rem;flex-shrink:0}.puzzle-session>span{flex:1;min-width:0;overflow-wrap:anywhere}.puzzle-dialog button{min-height:44px}.puzzle-dialog .puzzle-heading{flex-shrink:0;margin:12px 0 6px}.puzzle-heading span{font-size:.875rem}.puzzle-dialog #puzzleStatus{margin:6px 0 10px;min-height:1.4em;font-size:1rem}
.puzzle-dialog .puzzle-table{flex-shrink:0;margin-bottom:0}.puzzle-dialog .puzzle-table>button{font-size:.875rem}.puzzle-dialog .puzzle-kit{flex:1;min-height:94px;overflow:auto;overscroll-behavior:contain;align-content:start;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));margin:10px 0}.puzzle-dialog .puzzle-kit button{font-size:.875rem;min-height:90px}.puzzle-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}.puzzle-actions button{font-size:.875rem}.puzzle-clue{flex-shrink:0;border-left:3px solid var(--gold);padding:8px 12px;background:#27332b;border-radius:8px;font-size:.875rem;margin:0 0 8px}#puzzleHelpCount{font-size:.875rem;margin-top:8px;color:#b8c8c5}
@media(max-width:540px){.puzzle-filters{grid-template-columns:1fr 1fr}.puzzle-filters label:first-child{grid-column:1/-1}.puzzle-dialog[open]{padding:12px}.puzzle-dialog .puzzle-kit{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(orientation:landscape) and (max-height:550px){.puzzle-dialog[open]{width:calc(100vw - 20px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:10px}.puzzle-dialog.puzzle-playing .dialog-top h2{font-size:1rem}.puzzle-play{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(260px,1.1fr);grid-template-rows:auto auto auto 1fr auto;gap:6px 14px}.puzzle-session{grid-column:1/-1}.puzzle-heading{grid-column:1;grid-row:2}#puzzleStatus{grid-column:1;grid-row:3}.puzzle-table{grid-column:1;grid-row:4;align-self:start}.puzzle-dialog .puzzle-kit{grid-column:2;grid-row:2/5;margin:0}.puzzle-clue{grid-column:1/-1}.puzzle-actions{grid-column:1/-1}#puzzleHelpCount{grid-column:1/-1;margin:0}.puzzle-dialog .puzzle-heading{margin:0}.puzzle-dialog .puzzle-table>button{min-height:64px}.puzzle-filters{grid-template-columns:2fr 1fr 1fr}}

/* Bounded optional story workspace. */
.mysteries-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(20px,env(safe-area-inset-bottom));font-size:1rem}.mystery-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:10px}.mystery-case{text-align:left;min-height:56px;line-height:1.4}.mystery-options,.mystery-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.mystery-options button,.mystery-actions button{min-height:44px;flex:1 1 160px;white-space:normal;font-size:.9rem}.mystery-path[aria-pressed="true"]{border-color:#4ee6b1;background:#173d35}.mystery-question{font-size:1.12rem;font-weight:600;line-height:1.5}.mystery-evidence,.mystery-clue{padding:12px;border-left:3px solid #4ee6b1;background:#102e30;border-radius:8px;line-height:1.5}.mystery-scene{display:flex;align-items:center;gap:12px;margin:12px 0}.mystery-scene img{width:88px;height:88px;border-radius:14px;object-fit:cover}.mystery-scene:empty{display:none}#mysteryProgress{width:100%;accent-color:#4ee6b1}#mysteryCase[hidden],#mysteryBrowser[hidden]{display:none}@media(max-height:480px){.mysteries-dialog{max-height:calc(100dvh - 12px)}.mystery-scene img{width:64px;height:64px}}

.mysteries-dialog>.dialog-top{position:sticky;top:0;z-index:2;background:#10242d;padding:8px 0}.mysteries-dialog>.dialog-top button{white-space:normal;min-height:44px}

/* Collectible prizes share a bounded touch-friendly workspace. */
.awards-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}.awards-dialog>.dialog-top,.award-viewer>.dialog-top{position:sticky;top:0;z-index:2;background:#10242d;padding:8px 0}.award-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;margin:18px 0}.award-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px;min-height:240px;white-space:normal;line-height:1.4}.award-card img{width:120px;height:120px;object-fit:contain;border-radius:16px;filter:grayscale(1);opacity:.55}.award-card.earned img{filter:none;opacity:1}.award-card.earned{border-color:#daba6a;background:linear-gradient(160deg,#16343b,#292818)}.award-card strong{font-size:1rem}.award-card span,.award-card small{font-size:.875rem}.award-card progress{width:100%;accent-color:#dfc06e}.award-viewer{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;text-align:center;padding-bottom:max(20px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 25%,#174047,#10242d 70%)}.award-viewer img{display:block;width:min(100%,380px);max-height:48dvh;object-fit:contain;margin:12px auto;border-radius:18px}.award-viewer img.locked{filter:grayscale(1);opacity:.55}.award-viewer h2{font-size:clamp(1.5rem,5vw,2rem);line-height:1.15}.award-viewer p{font-size:1rem;line-height:1.5}.award-viewer button{min-height:44px;white-space:normal}.award-celebration img{animation:award-arrive .65s ease-out}.passport-award-preview{display:flex;gap:10px;flex-wrap:wrap}.passport-award-preview button{padding:4px}.passport-award-preview img{width:76px;height:76px;object-fit:contain}.award-welcome{padding:12px;border:1px solid #daba6a;border-radius:12px}@keyframes award-arrive{from{opacity:0;transform:scale(.8) translateY(14px)}to{opacity:1;transform:none}}@media(max-height:480px){.award-viewer img{max-height:34dvh}.award-viewer h2{margin:8px 0}.award-viewer{max-height:calc(100dvh - 12px)}}@media(prefers-reduced-motion:reduce){.award-celebration img{animation:none}}

/* Story albums: small, bounded spreads; full art uses the existing gesture viewer. */
.albums-dialog{width:min(760px,calc(100vw - 20px));max-height:calc(100dvh - 20px);padding:16px;overflow:auto;overscroll-behavior:contain}
.albums-dialog .dialog-top{position:sticky;top:-16px;background:#151c28;z-index:2;padding-block:10px}
.album-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.album-controls label{font-size:14px}.album-controls select{min-width:0;max-width:100%;flex:1;font-size:16px;min-height:44px}
.album-header h3{font-size:22px;margin:14px 0 6px}.album-header p{margin:6px 0;font-size:14px;line-height:1.5}.album-header progress{width:100%}
.album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-block:12px}.album-card{display:flex;flex-direction:column;align-items:stretch;padding:0;overflow:hidden;text-align:left;min-height:44px;background:#202c3e;border:1px solid #607290;border-radius:14px}.album-card img,.album-empty-picture{width:100%;aspect-ratio:1.8;object-fit:cover;display:block}.album-empty-picture{display:grid;place-items:center;background:#192333;color:#9aabc3;font-size:36px}.album-card strong{font-size:16px;padding:8px 10px 2px}.album-card small{font-size:12px;padding:0 10px 10px;color:#bbc9dc}.album-card:focus-visible{outline:3px solid #f2cf77;outline-offset:3px}.album-pagination{display:flex;gap:10px;align-items:center;justify-content:space-between;position:sticky;bottom:-16px;padding:12px 0;background:#151c28}.album-pagination button,#albumFollow{min-height:44px;font-size:14px}.album-pagination span{font-size:14px}#albumFollow{width:100%;margin-top:8px}#discoveryAlbum{font-size:14px;max-width:100%;margin:8px auto;padding:10px 14px;border-color:#d5b56c;color:#f5daa0}
@media(min-width:650px){.album-card img,.album-empty-picture{aspect-ratio:2.15}}
@media(max-height:500px) and (orientation:landscape){.albums-dialog{width:calc(100vw - 20px)}.album-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.album-card img,.album-empty-picture{aspect-ratio:1.7}.album-header h3{font-size:18px;margin-top:6px}.album-header p{margin:3px 0}.album-card strong{font-size:14px}}
@media(prefers-reduced-motion:no-preference){.album-card.collected{animation:album-appear .24s ease-out}@keyframes album-appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}}

/* Guided journeys explain a destination, milestones and the next reachable step. */
.journey-explainer{font-size:16px;line-height:1.55;color:#d1dce9;max-width:65ch}.journey-guide-dialog{width:min(720px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;overscroll-behavior:contain}.journey-guide-dialog .dialog-top{position:sticky;top:0;background:#151c28;z-index:2;padding-block:10px}.journey-guide-dialog p{font-size:16px;line-height:1.5}.journey-destination{color:#f6d995;font-weight:700}.journey-next{padding:12px;border-left:3px solid #e6c976;background:#243449}.journey-guide-dialog>progress{width:100%}.journey-guide-actions{display:flex;gap:8px;flex-wrap:wrap}.journey-guide-actions button{min-height:44px;flex:1 1 180px;font-size:14px}.journey-guide-list{list-style:none;padding:0;display:grid;gap:8px}.journey-guide-step button{display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 10px;align-items:center;min-height:60px;width:100%;text-align:left;padding:10px;font-size:16px}.journey-guide-step small{grid-column:2;font-size:14px;color:#b6c6dc}.journey-step-number{grid-row:1/3;text-align:center;font-size:18px;color:#dfc886}.journey-guide-step.current button{border-color:#efd283;background:#283f4f}.journey-guide-step.complete button{background:#1d3337}.journey-guide-step strong{overflow-wrap:anywhere}.journey-guide-dialog .dialog-top h2{font-size:22px}.journey-guide-dialog .dialog-top button{min-height:44px;flex-shrink:0}
.poster-reveal-kind{font-size:14px!important;color:#bad0d1;max-width:28ch;line-height:1.4}@media(max-height:500px){.poster-reveal-kind{display:none!important}}

#openIllustrations{color:var(--gold);border-color:#867557;white-space:nowrap}.gallery-intro{font-size:13px;color:var(--muted);margin:8px 0 12px;max-width:65ch}@media(max-width:400px){.header-actions #openIllustrations{padding:8px;font-size:12px}.app header{gap:6px}.app header>a{font-size:12px}.app header>div:not(.header-actions){min-width:0}.app header h1{font-size:17px}}

#atlasFindScope{width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;background:#1b2938;color:var(--ink);padding:10px;font-size:14px;margin:5px 0 8px}

.artwork-retry{position:absolute;left:50%;top:calc(50% + 3rem);transform:translateX(-50%);z-index:4;min-height:44px;max-width:calc(100% - 32px);padding:10px 16px;border:1px solid #f3d58b;border-radius:14px;background:#102c42;color:#fff4d7;font-size:14px}.artwork-retry[hidden]{display:none}

/* v51: keep map navigation inside the phone's visible safe area. */
.atlas-dialog{inset:0;overflow:hidden;padding-top:max(12px,env(safe-area-inset-top));}
.atlas-dialog>.dialog-top{top:0;left:0;right:0;min-width:0;max-width:100%;}
.atlas-dialog>.dialog-top>div:first-child{min-width:0;}
.atlas-dialog>.dialog-top h2{overflow-wrap:anywhere;}
.atlas-dialog #atlasBack{flex-shrink:0;min-height:44px;}
@media(max-width:600px){
 .atlas-dialog>.dialog-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;}
 .atlas-dialog>.dialog-top>div:first-child{grid-column:1/-1;grid-row:1;}
 .atlas-dialog>.dialog-top h2{margin:0;font-size:20px;line-height:1.2;}
 .atlas-dialog #atlasBack{grid-column:1;grid-row:2;justify-self:start;max-width:100%;white-space:normal;}
 .atlas-dialog .atlas-controls{grid-column:2;grid-row:2;margin-left:0;min-width:0;}
 .atlas-controls>.atlas-toolbar{top:calc(100% + 6px);max-width:calc(100dvw - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)));}
 .atlas-dialog .atlas-bottom{min-width:0;max-width:100%;flex-wrap:wrap;}
}

/* Magical surprises keep the same accessible discovery controls. */
.discovery-dialog.wonder-discovery{border-color:#bb9df2;background:radial-gradient(ellipse at 50% 8%,#493f67 0,transparent 65%),#152431;}
.wonder-discovery .discovery-joke{color:#f3ddff;}
.wonder-discovery .discovery-content>.eyebrow{color:#d4b9ff;}
.poster-detail-outline{position:absolute;inset:0;z-index:3;pointer-events:none}.poster-detail-outline svg{display:block;overflow:visible}.poster-detail-outline path{filter:drop-shadow(0 1px 2px #09232b)}.discovery-poster.has-detail-outline .poster-hotspot.selected:after{display:none}
/* Legends are a curated collection, with a warm gold frame and legible mobile controls. */
.legend-card{border-color:#b89a55;background:linear-gradient(145deg,#332b23,#182735);box-shadow:0 0 0 1px #e9c57e26}
.legend-card .card-caption small{color:#ffe3a1;letter-spacing:.08em}
.legend-guide{padding:12px 14px;border:1px solid #b89a5566;border-radius:14px;background:#e0b9650c;color:#f2dfb5;line-height:1.55;overflow-wrap:anywhere}
.legend-hunt{min-height:44px;max-width:100%;margin:0 0 12px;border-color:#bd9c59;color:#ffe3a1;white-space:normal}
.discovery-dialog.legend-discovery{border-color:#e4c477;background:radial-gradient(ellipse at 50% 5%,#66512d 0,transparent 65%),#152431;box-shadow:0 0 54px #cda65822}
.legend-discovery .discovery-joke,.legend-discovery .discovery-content>.eyebrow{color:#ffe5a8}
.legend-artwork #artworkKind{color:#ffe5a8}

/* v64: map index keeps controls and page navigation reachable on a phone. */
.atlas-find-dialog{display:none;box-sizing:border-box;width:min(94vw,680px);max-height:calc(100dvh - 24px);overflow:hidden;padding:16px;gap:8px}
.atlas-find-dialog[open]{display:flex;flex-direction:column}
.atlas-find-dialog>.dialog-top,.atlas-find-dialog>label,.atlas-find-dialog>input,.atlas-find-dialog>select,.atlas-find-dialog>p,.atlas-find-pagination{flex-shrink:0}
.atlas-find-dialog>.dialog-top{margin:0}.atlas-find-dialog .atlas-find-label{margin:0;font-size:13px}
.atlas-find-dialog>input,.atlas-find-dialog>select{width:100%;box-sizing:border-box;min-height:44px;font-size:16px}
.atlas-find-dialog>p{margin:0;font-size:13px;line-height:1.4;color:#bdd2d4}
.atlas-find-results{min-height:80px;overflow-y:auto;overscroll-behavior:contain;flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}
.atlas-find-result{min-width:0;min-height:76px}.atlas-find-result>span{min-width:0}.atlas-find-result strong,.atlas-find-result small{overflow-wrap:anywhere}.atlas-find-result .atlas-find-subject{font-size:12px;color:#aac6cc;line-height:1.35}
.atlas-find-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:env(safe-area-inset-bottom,0px)}
.atlas-find-pagination button{min-height:44px;flex:1}.atlas-find-pagination span{font-size:13px;white-space:nowrap}
@media(max-width:480px){.atlas-find-results{grid-template-columns:1fr}.atlas-find-dialog{padding:12px}.atlas-find-result img{width:48px;height:48px}.atlas-find-result>span{display:grid;gap:3px}}
@media(max-height:520px){.atlas-find-dialog{gap:4px;max-height:calc(100dvh - 12px)}.atlas-find-dialog .atlas-find-explanation{display:none}.atlas-find-dialog .atlas-find-label{display:none}.atlas-find-dialog>.dialog-top h2{font-size:18px}.atlas-find-dialog>input,.atlas-find-dialog>select{min-height:36px;padding:5px}.atlas-find-results{min-height:50px}}

.poster-next-step{font-size:12px;line-height:1.35;color:#bdd5d6;flex-basis:100%}.atlas-bottom #atlasDetail .poster-next-step{max-width:100%}

/* v66: real panorama views, separate travel/chapter actions and bounded mobile pages. */
.atlas-regions-dialog[open]{display:flex;flex-direction:column;gap:10px;max-height:calc(100dvh - 24px);overflow:hidden}
.atlas-regions-dialog>.dialog-top,.atlas-regions-dialog>p,.poster-region-pagination{flex-shrink:0;margin:0}
.atlas-region-cards{grid-template-columns:repeat(2,minmax(0,1fr));min-height:80px;overflow-y:auto;overscroll-behavior:contain;align-content:start}
.poster-region-card{min-width:0;overflow:hidden;border:1px solid #567478;border-radius:16px;background:#152f39}
.poster-region-preview{aspect-ratio:3/2;overflow:hidden;background:#091923}.poster-region-preview>svg{display:block;width:100%;height:100%}.region-in-shadow{display:grid;place-items:center;color:#b4c9ce;font-size:14px}
.poster-region-body{padding:12px;display:grid;gap:6px}.poster-region-body h3{margin:0;color:#f0deb3;font:18px Georgia,serif}.poster-region-body small{color:#b8cfd2;font-size:12px}.poster-region-body progress{width:100%;height:7px;accent-color:#e4c184}
.poster-region-actions{display:grid;gap:6px}.poster-region-actions button{min-height:44px;font-size:13px;padding:8px;white-space:normal}.poster-region-pagination{display:flex;align-items:center;gap:10px;padding-bottom:env(safe-area-inset-bottom,0px)}.poster-region-pagination button{flex:1;min-height:44px}.poster-region-pagination span{font-size:13px;white-space:nowrap}
@media(max-width:430px){.poster-region-body{padding:9px}.poster-region-body h3{font-size:16px}.atlas-regions-dialog{padding:12px;width:96vw}.atlas-region-cards{gap:8px}}
@media(max-height:500px){.atlas-region-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.poster-region-body{padding:8px}.poster-region-body h3{font-size:14px}.poster-region-body small{font-size:11px}.poster-region-actions button{font-size:12px}.atlas-regions-dialog[open]{gap:6px}}

/* Achievements: collection paintings and milestone medals. */
[data-retired-navigation="true"]{display:none!important}
.award-members{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:18px 0}.award-members span{border:1px solid #64777a;padding:7px 11px;border-radius:24px;font-size:.9rem}.member-owned{background:#163e39;color:#ceefd9}.member-missing{color:#b7c2c4}
.award-card.painting-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}.painting-prize{width:min(820px,calc(100vw - 20px))}.award-viewer.painting-prize img{width:100%;max-height:48dvh;object-fit:contain;border-radius:12px}
.award-celebration{border-color:#e0c17b;box-shadow:0 0 55px #dabe6b30}.award-celebration .eyebrow{color:#f0d38e}.award-celebration h2{color:#fff0c7}.award-celebration::backdrop{background:#071018e8}
.award-full-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#080e15;color:#eee;overflow:hidden}.award-full-toolbar{display:flex;align-items:center;gap:8px;padding:max(10px,env(safe-area-inset-top)) 12px 10px;min-height:64px}.award-full-toolbar span{flex:1;font-weight:700;font-size:.9rem}.award-full-toolbar button{min-width:44px;min-height:44px;padding:8px}.award-full-viewport{height:calc(100% - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}.award-full-viewport img{display:block;object-fit:contain;margin:auto;max-width:none}.award-full-dialog>p{position:absolute;bottom:10px;left:12px;right:12px;background:#10242de8;padding:8px;font-size:.9rem}
@media(prefers-reduced-motion:reduce){.award-celebration img{animation:none}}

.award-story,.award-how{text-align:left;margin:16px 0;padding:14px 16px;border:1px solid #66818b55;border-radius:14px;background:#0d1d2699}.award-story p,.award-how p{margin:8px 0;line-height:1.55}.award-story small,.award-full-notes small{color:#b8c5cf;font-size:.85rem}.award-how{border-color:#c6ad684f}.award-full-notes{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:12px;right:12px;z-index:4;max-width:620px;background:#10242df2;border:1px solid #647d84;border-radius:12px;text-align:left}.award-full-notes summary{padding:12px 16px;cursor:pointer;min-height:44px;box-sizing:border-box;font-weight:700}.award-full-notes>div{max-height:36dvh;overflow-y:auto;padding:0 16px 16px;overscroll-behavior:contain;line-height:1.55}.award-full-notes h3{font-size:1rem;margin:12px 0 6px}.award-full-notes p{font-size:.95rem;margin:6px 0}

#awardFullStatus{bottom:72px}

/* Search the expanded collection without losing the current filter. */
#awardSearch,#awardScope{min-height:44px;background:#152e3c;color:var(--ink);border:1px solid #57717e;border-radius:10px;padding:10px 12px;font-size:16px;max-width:100%}#awardSearch{display:block;width:100%;margin:12px 0}#awardScope{margin:0 0 12px 8px}

/* Edition frames keep every portrait complete, with distinct materials and silhouettes. */
.discovery-art{border:3px solid #8acbc3;border-radius:18px;padding:6px;background:#0e2228;box-shadow:0 0 0 1px #d0eee340,0 12px 30px #0006}
.discovery-dialog[data-edition="wonder"] .discovery-art.showcase-art{border-color:#c1a2ff;border-radius:32px 12px 32px 12px;background:linear-gradient(135deg,#614f82,#183841);box-shadow:0 0 0 3px #b69aff22,0 0 35px #a36de833}
.discovery-dialog[data-edition="legend"] .discovery-art.showcase-art{border:6px double #efd08c;border-radius:28px 28px 8px 8px;background:linear-gradient(145deg,#72502c,#161e29);box-shadow:0 0 0 2px #bd8f4244,0 0 42px #e3ac4433}
.discovery-dialog[data-edition="marvel"]{border-color:#7ddacb;background:radial-gradient(ellipse at top,#215d60,transparent 65%),#152431}
.discovery-dialog[data-edition="marvel"] .discovery-art.showcase-art{border:5px double #8ee5dc;border-radius:4px;background:linear-gradient(135deg,#20696e,#182c41);box-shadow:0 0 0 2px #72d3ca33,0 0 30px #56cfc422}
.discovery-dialog[data-edition="marvel"] .eyebrow{color:#a4f2e4}
#awardViewer[data-prize="painting"] #awardImage{border:6px double #d7bf8d;border-radius:5px;box-shadow:0 10px 35px #0007}
#awardViewer[data-prize="medal"] #awardImage{border:2px solid #e0c581;border-radius:24px;box-shadow:0 0 35px #dfb95722}
#awardViewer[data-prize="trophy"] #awardImage{border:6px double #ffdf94;border-radius:32px 32px 8px 8px;box-shadow:0 0 45px #ffcf5f33}
@media(prefers-reduced-motion:reduce){.discovery-art,#awardImage{animation:none!important}}

.discovery-dialog[data-edition] .discovery-art.showcase-art{height:clamp(170px,32vh,300px);background-size:contain;background-repeat:no-repeat;background-position:center;padding:6px;box-sizing:border-box}
.discovery-dialog[data-edition="base"] .discovery-art.showcase-art{border:3px solid #8acbc3;border-radius:18px;box-shadow:0 12px 30px #0006}

.sound-preview{margin:20px 0;border:1px solid #587779;border-radius:14px;padding:14px}.sound-preview summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#e4d8b9}.sound-preview-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sound-preview-buttons button{min-height:44px;font-size:16px}
#awardViewer[data-prize="medal"][data-tier="master"]{border-color:#d1ac73;background:radial-gradient(ellipse at top,#53402e,transparent 65%),#152431}
#awardViewer[data-prize="medal"][data-tier="summit"]{border:3px double #e5d197;background:radial-gradient(ellipse at top,#37535d,transparent 65%),#152431;box-shadow:0 0 60px #e6c97c30}
#awardViewer[data-prize="medal"][data-tier="summit"] #awardImage{border:5px double #e8d39b;box-shadow:0 0 45px #a3dede33}
.award-celebration #awardImage{animation:prize-reveal 900ms ease-out both}.discovery-dialog.celebrate[data-edition="legend"] .discovery-art{animation:prize-reveal 1100ms ease-out both}.discovery-dialog.celebrate[data-edition="marvel"] .discovery-art{animation:prize-reveal 850ms ease-out both}
@keyframes prize-reveal{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.award-celebration #awardImage,.discovery-dialog.celebrate .discovery-art{animation:none!important}}
@media(max-height:500px){.discovery-dialog[data-edition] .discovery-art.showcase-art{height:140px}}

/* Complete artwork and uncluttered viewing, including every control overlay. */
.artwork-dialog.quiet-art .artwork-top,.artwork-dialog.quiet-art .artwork-caption,.artwork-dialog.quiet-art .artwork-zoom,.artwork-dialog.quiet-art .artwork-gesture-tip,.artwork-dialog.quiet-art .artwork-loading,.artwork-dialog.quiet-art .artwork-retry{display:none!important}
.award-full-dialog.quiet-painting .award-full-toolbar,.award-full-dialog.quiet-painting .award-full-notes,.award-full-dialog.quiet-painting #awardFullStatus{display:none!important}
.award-full-dialog.quiet-painting .award-full-viewport{height:100%;width:100%}
.launch-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#07131e;overflow:hidden}
.launch-dialog[open]{display:grid;place-items:center}.launch-dialog img{width:100%;height:100%;object-fit:contain;min-height:0}.launch-dialog::backdrop{background:#07131e}.launch-dialog button{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);min-height:48px;padding:12px 24px;border:1px solid #d5ba7c;background:#112733ed;color:#fff0c9;font-size:16px;white-space:nowrap;box-shadow:0 6px 30px #0007}
.workbench{border-color:#577775;box-shadow:0 12px 32px #0003}.collection-heading{color:#e8deba}.mix-actions #mix{background:linear-gradient(135deg,#32796d,#205c59);color:#fff4d3;border-color:#83b9a5}.slot{min-width:0}.slot .item-art{object-fit:contain}header h1{color:#f0d796;text-shadow:0 2px 14px #0004}
@media(max-width:430px){.header-actions{gap:6px}header h1{font-size:26px}.award-full-toolbar{flex-wrap:wrap;gap:6px}.award-full-toolbar span{flex-basis:100%}.award-full-viewport{height:calc(100% - 130px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}

.first-mix-guide{display:flex;align-items:center;gap:10px;padding:12px;margin:12px 0;border:1px solid #779b82;border-radius:14px;background:linear-gradient(135deg,#284c42,#19343c);color:#f3e6c0}.first-mix-guide strong{font-family:Georgia,serif;font-size:18px}.first-mix-guide p{font-size:14px;line-height:1.45;margin:5px 0 0;color:#d2e2dd}.first-mix-guide #prepareFirstMix{min-height:44px;white-space:normal;font-size:14px;flex-shrink:0;max-width:150px;background:#386c5b;color:#fff0cb}.first-mix-guide #dismissFirstMix{min-width:44px;min-height:44px;padding:5px;background:transparent;border:0;font-size:22px}.first-mix-guide[hidden]{display:none}
.reward-horizon{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0 14px;color:#c5dcd3;font-size:13px}.reward-horizon button{min-height:44px;padding:8px 12px;background:#213c40;border-color:#778c78;color:#f2dfaf;font-size:13px;text-align:left}.reward-horizon span{flex:1;text-align:right;min-width:100px}footer{flex-wrap:wrap;gap:10px}#quickBackup{min-height:44px;font-size:14px;padding:7px 13px;background:#20363e;color:#e4d7ae;border-color:#657d7b}
@media(max-width:430px){.first-mix-guide{flex-wrap:wrap;position:relative;padding-right:42px}.first-mix-guide #dismissFirstMix{position:absolute;top:3px;right:0}.first-mix-guide #prepareFirstMix{max-width:none;width:100%}.reward-horizon span{text-align:left}}

/* A cinematic welcome, with an explicit touch to begin music on mobile. */
.launch-dialog{overflow:hidden}.launch-dialog img{position:absolute;inset:0;animation:cover-breathe 8s ease-out both;pointer-events:none}.launch-dialog img[hidden]{display:none}.launch-controls{position:absolute;z-index:2;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(92vw,460px);padding:18px 20px;text-align:center;border:1px solid #d6ba7255;border-radius:22px;background:linear-gradient(160deg,#08151fe8,#0e2230f2);box-shadow:0 8px 38px #0008;backdrop-filter:blur(12px)}.launch-controls p{color:#e9dab7;margin:0 0 12px;font-size:14px;letter-spacing:.04em}.launch-dialog .launch-controls button{position:static;display:block;margin:8px auto 0;transform:none;width:100%;min-height:48px;border-radius:14px;font-weight:700;letter-spacing:.025em;background:linear-gradient(120deg,#e9d18e,#bf9554);color:#17222a;border-color:#f1d99a}.launch-dialog .launch-controls .launch-quiet{background:transparent;border-color:#b6c4ce55;color:#d7e3ec;font-size:13px;min-height:36px;font-weight:400}.launch-dialog #launchFallbackTitle{position:absolute;top:25%;left:0;width:100%;font-size:clamp(38px,9vw,76px);color:#efd49a;text-align:center}.launch-entering img{animation:cover-awaken 3200ms ease-out both}.launch-entering .launch-controls{animation:welcome-glow 3200ms ease-out both}@keyframes cover-breathe{from{transform:scale(1);filter:brightness(.85)}to{transform:scale(1.035);filter:brightness(1)}}@keyframes cover-awaken{0%{filter:brightness(.9);transform:scale(1)}40%{filter:brightness(1.14);transform:scale(1.025)}100%{filter:brightness(1);transform:scale(1.045)}}@keyframes welcome-glow{0%,100%{box-shadow:0 8px 38px #0008}45%{box-shadow:0 0 46px #dfbb6655}}
@media(prefers-reduced-motion:reduce){.launch-dialog img,.launch-entering img,.launch-entering .launch-controls{animation:none!important}}

/* Each reward has material weight, with controls and its meaning always readable.
   A framed painting moves as one piece; no brightening, bounce or extra overlay. */
.result.discovered{animation:vista-art-arrive 450ms ease-out}
.award-celebration #awardImage{animation:none}
.award-viewer{--prize-arrival:vista-medal-settle;--prize-duration:780ms}
.award-viewer[data-prize="painting"]{--prize-arrival:vista-painting-unveil;--prize-duration:1100ms}
.award-viewer[data-prize="painting"][data-edition="legend"]{--prize-duration:1450ms}
.award-viewer[data-prize="painting"][data-edition="marvel"]{--prize-duration:1250ms}
.award-viewer[data-prize="insignia"]{--prize-arrival:vista-insignia-settle;--prize-duration:850ms}
.award-viewer[data-prize="trophy"]{--prize-arrival:vista-trophy-rise;--prize-duration:1500ms}
.award-viewer.prize-gathering #awardImage,.award-viewer.prize-gathering .raster-frame{opacity:.18;animation:none}
.award-viewer.prize-gathering .raster-frame #awardImage{opacity:1}
.award-viewer.prize-revealed #awardImage,.award-viewer.prize-revealed .raster-frame{animation:var(--prize-arrival) var(--prize-duration) cubic-bezier(.2,.72,.24,1) both;filter:none}
.award-viewer.prize-revealed .raster-frame #awardImage{animation:none;opacity:1;transform:none}
.award-viewer.prize-revealed #awardViewTitle{animation:reward-word 500ms 80ms ease-out both}
.award-viewer.prize-revealed #awardViewText,.award-viewer.prize-revealed #awardViewStoryBox{animation:reward-word 550ms 180ms ease-out both}
@keyframes vista-painting-unveil{from{opacity:.18;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes vista-medal-settle{from{opacity:.18;transform:translateY(-5px) scale(1.012)}to{opacity:1;transform:none}}
@keyframes vista-insignia-settle{from{opacity:.18;transform:rotate(-1deg) scale(.985)}to{opacity:1;transform:none}}
@keyframes vista-trophy-rise{from{opacity:.18;transform:translateY(13px) scale(.988)}to{opacity:1;transform:none}}
@keyframes reward-word{from{opacity:.65;transform:translateY(2px)}to{opacity:1;transform:none}}
.discovery-dialog.celebrate #discoveryJoke{animation:reward-word 500ms 300ms ease-out both}
@media(prefers-reduced-motion:reduce){
 .result.discovered,.reaction .result-icon{animation:none!important;transform:none;filter:none}
 .award-viewer.prize-gathering #awardImage,.award-viewer.prize-gathering .raster-frame{opacity:1}
 .award-viewer.prize-revealed #awardImage,.award-viewer.prize-revealed .raster-frame,.award-viewer.prize-revealed #awardViewTitle,.award-viewer.prize-revealed #awardViewText,.award-viewer.prize-revealed #awardViewStoryBox,.discovery-dialog.celebrate #discoveryJoke{animation:none!important;opacity:1;transform:none}
}

/* Edition 92: predictable mobile geometry and readable, non-sticky award headers. */
.progress-strip #openAchievements{width:auto;min-width:44px;flex:0 0 auto;padding:6px 10px;border-radius:12px;font-size:12px;line-height:1.2;white-space:nowrap}
.result{height:auto;min-height:64px;display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;align-items:center;overflow:hidden}.result>div:not(.reaction){min-width:0}.result .reaction{width:36px;max-width:36px}.result .eyebrow{line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result strong{line-height:1.2}.result[hidden]{display:none}
#awardViewer>.dialog-top{position:static;top:auto;z-index:auto;align-items:flex-start;gap:12px;background:transparent;padding:0 0 12px;margin:0 0 8px}#awardViewKind{min-width:0;flex:1;text-align:left;line-height:1.4;overflow-wrap:anywhere}#awardViewClose{flex:0 0 auto;max-width:48%;position:static}#awardViewer{scroll-padding:16px;overscroll-behavior:contain}#awardViewStory{white-space:pre-line}
@media(max-width:759px) and (orientation:portrait){
 .app{padding:calc(6px + env(safe-area-inset-top)) 10px calc(6px + env(safe-area-inset-bottom));max-width:100%;height:100dvh;min-height:0}
 .app>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;min-height:44px;margin:0 0 4px}.app>header>a{font-size:12px;padding:8px 0}.app header h1{font-size:clamp(19px,5.3vw,24px);white-space:nowrap}.header-actions{gap:5px}.header-actions button{min-height:40px;padding:6px 8px;font-size:12px}.header-actions #openAudio{width:40px;padding:4px}.header-actions #openIllustrations{font-size:11px;padding:6px}
 .progress-strip{display:grid;grid-template-columns:auto minmax(8px,1fr) auto 36px;gap:6px;min-height:40px;margin:0 0 6px}.progress-strip>span{font-size:11px}.progress-strip progress{width:100%;min-width:0;height:6px}.progress-strip #openHelp{width:36px;height:36px;min-height:36px}.progress-strip #openAchievements{font-size:11px;padding:6px;min-height:36px}
 .play-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(180px,1fr);gap:8px;flex:1;min-height:0;overflow:hidden}.lab-column{min-width:0;min-height:0;max-height:calc(100dvh - 360px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}.workbench{padding:8px;border-radius:16px;min-width:0}
 .quest{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:40px}.quest #questTitle{min-width:0;max-width:100%;padding:4px 0;font-size:14px;line-height:1.25;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quest-actions{display:flex;gap:5px;flex-shrink:0}.quest-actions button{font-size:12px;padding:7px;min-height:40px}
 .reward-horizon{display:block;margin:3px 0 5px}.reward-horizon button{width:100%;min-height:26px;border:0;background:transparent;padding:2px 0;font-size:11px;line-height:1.35}.reward-horizon span{display:none}
 .first-mix-guide{display:grid;grid-template-columns:minmax(0,1fr) 115px;gap:6px;padding:7px 29px 7px 7px;margin:5px 0}.first-mix-guide strong{font-size:13px;line-height:1.25}.first-mix-guide p{display:none}.first-mix-guide #prepareFirstMix{width:auto;max-width:115px;min-height:44px;font-size:11px;padding:4px 6px;line-height:1.2}.first-mix-guide #dismissFirstMix{position:absolute;right:0;top:5px;min-width:26px;min-height:32px;padding:0}.first-mix-guide[hidden]{display:none}
 .mixing{gap:8px;margin:5px 0}.slot{width:calc((100% - 36px)/2);height:60px;min-height:60px;padding:4px;gap:1px}.slot .item-art{width:32px;height:32px}.plus{width:20px;text-align:center;font-size:23px}.mix-actions{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);gap:7px;margin:0}.mix-actions button{height:auto;min-height:44px;padding:6px;font-size:12px;line-height:1.2}
 .result{height:auto;min-height:64px;margin-top:6px;padding:7px;gap:6px;grid-template-columns:30px minmax(0,1fr) auto auto}.result .reaction{width:30px;min-width:30px}.result .result-icon,.reaction .item-art{width:28px;height:28px}.result p{display:none}.result strong{font-size:16px;-webkit-line-clamp:2}.result .eyebrow{font-size:8px}.result button{min-height:40px;font-size:11px;padding:4px 6px}
 .collection{min-height:180px;min-width:0;overflow:hidden;margin:0;display:flex;flex-direction:column}.collection-heading{gap:5px;min-height:36px;margin-bottom:4px}.collection-heading strong{font-size:13px}.collection-heading .browse-cue{display:none}.collection-heading button{min-height:34px;padding:4px 7px;font-size:11px}.collection-top{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:5px;min-height:36px;margin-bottom:5px}.collection-top input,.collection-top select{height:36px;min-height:36px;font-size:12px;padding:6px}.element-shelf{min-height:94px}.element-shelf .element-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px 6px 36px}.element{height:74px;min-height:74px;gap:4px;padding:5px 3px}.element .item-art{width:40px;height:40px}.element .name{font-size:11px;line-height:1.15}
 .app>footer{min-height:36px;gap:0;margin-top:6px;display:block}.app>footer span{display:none}.app>footer #quickBackup{width:100%;min-height:36px;padding:5px;font-size:12px}
}
@media(max-width:350px) and (orientation:portrait){.header-actions #openIllustrations{max-width:65px;white-space:normal;line-height:1.15}.progress-strip #openAchievements{max-width:90px;white-space:normal}.collection-top{grid-template-columns:minmax(0,1fr) 96px}.result{grid-template-columns:26px minmax(0,1fr) auto auto;gap:4px}.result button{font-size:10px;padding:4px}.quest #questTitle{font-size:13px}}
@media(max-width:759px) and (orientation:portrait){.collection-expanded .play-layout{display:flex;flex-direction:column}.collection-expanded .collection{flex:1;min-height:0}.collection-expanded .element-shelf{flex:1;min-height:94px}}

/* Edition 93: explicit ownership of cells; text and controls stay in normal flow. */
.quest{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0}
.quest>#questTitle{grid-column:1;grid-row:1;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;height:auto;line-height:1.35}
.quest>.quest-actions{grid-column:2;grid-row:1;min-width:0;position:static;display:flex;flex-wrap:wrap;gap:6px}
.quest .quest-actions>button{grid-column:auto;grid-row:auto;position:static;height:auto;min-height:40px;white-space:normal}
.quest #questTitle::after{content:none;display:none}
.lab-column>.workbench{flex-shrink:0}
.app>header>div{min-width:0}.app>header h1{white-space:normal;overflow-wrap:anywhere}
.header-actions{flex-wrap:wrap;justify-content:flex-end;min-width:0}
.collection-heading{flex-wrap:wrap;height:auto}.collection-heading button{height:auto;white-space:normal}
.element .name{max-width:100%;overflow-wrap:anywhere;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.slot{overflow:hidden}.slot>span:last-child{max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15;overflow-wrap:anywhere}
.result strong{overflow-wrap:anywhere}.result button{height:auto;white-space:normal}
.first-mix-guide{position:relative;min-width:0}.first-mix-guide>div{min-width:0;overflow-wrap:anywhere}
/* Scrolling dialogs never pin their headers over their own content. */
body dialog>.dialog-top,body dialog .dialog-top{position:static;inset:auto;z-index:auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px;height:auto;flex-shrink:0}
body dialog .dialog-top>h2,body dialog .dialog-top>div:first-child{min-width:0;max-width:100%;overflow-wrap:anywhere;flex:1 1 150px}
body dialog .dialog-top>button{position:static;flex:0 1 auto;max-width:100%;height:auto;white-space:normal;overflow-wrap:anywhere}
.discovery-dialog[open]{overflow-y:auto}.discovery-content{flex:0 0 auto;overflow:visible;min-width:0}.discovery-content>h2,.discovery-recipe,.discovery-joke{overflow-wrap:anywhere}
.discovery-actions{grid-template-columns:repeat(auto-fit,minmax(min(100px,100%),1fr));position:static}
/***** A full painting uses measured grid rows instead of guessed toolbar heights. *****/
.award-full-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.award-full-toolbar{min-width:0;min-height:0;flex-wrap:wrap;gap:6px;padding-bottom:8px}
.award-full-toolbar span{flex:1 1 100%;min-width:0;overflow-wrap:anywhere}.award-full-toolbar button{height:auto;white-space:normal}
.award-full-dialog .award-full-viewport{height:auto;min-height:0;width:100%}
.award-full-dialog .award-full-notes{position:static;max-width:none;margin:0 10px max(8px,env(safe-area-inset-bottom));min-width:0}
.award-full-dialog>#awardFullStatus{position:static;margin:0;padding:8px;overflow-wrap:anywhere}
.award-full-dialog.quiet-painting{grid-template-rows:minmax(0,1fr)}
.artwork-top{flex-wrap:wrap}.artwork-top>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 80px}.artwork-navigation{flex:0 0 auto;max-width:100%;flex-wrap:wrap}
.artwork-caption{max-height:40dvh;overflow-y:auto;overscroll-behavior:contain}.artwork-caption h2{overflow-wrap:anywhere}.artwork-actions{gap:6px;min-width:0}.artwork-actions>button{height:auto;white-space:normal;max-width:100%}
@media(max-width:759px) and (orientation:portrait){
 .quest{grid-template-columns:minmax(0,1fr);gap:4px}
 .quest>#questTitle{grid-column:1;grid-row:1;white-space:normal;overflow:visible;text-overflow:clip;min-height:0;padding:2px 0;font-size:14px}
 .quest>.quest-actions{grid-column:1;grid-row:2;justify-content:flex-end}
 .first-mix-guide{grid-template-columns:minmax(0,1fr) 110px 26px;padding:7px;gap:6px}
 .first-mix-guide #dismissFirstMix{position:static;grid-column:3;grid-row:1;align-self:start;width:26px}
 .first-mix-guide #prepareFirstMix{grid-column:2;grid-row:1;max-width:100%}
 .first-mix-guide>div{grid-column:1;grid-row:1}
 .discovery-content{display:block}.discovery-content>.discovery-art{margin:12px auto}
}
@media(max-width:370px){
 .app>header{grid-template-columns:minmax(0,1fr) auto}.app>header>a{grid-column:1;grid-row:1}.app>header>div:not(.header-actions){grid-column:1/-1;grid-row:2;text-align:center}.app>header>.header-actions{grid-column:2;grid-row:1}
 .progress-strip{grid-template-columns:minmax(0,1fr) auto 36px}.progress-strip>span{grid-column:1;grid-row:1;white-space:normal}.progress-strip>progress{grid-column:1;grid-row:2}.progress-strip #openAchievements{grid-column:2;grid-row:1/3;height:auto;max-width:100%;white-space:normal}.progress-strip #openHelp{grid-column:3;grid-row:1/3}
 .first-mix-guide{grid-template-columns:minmax(0,1fr) 26px}.first-mix-guide>div{grid-column:1;grid-row:1}.first-mix-guide #dismissFirstMix{grid-column:2;grid-row:1}.first-mix-guide #prepareFirstMix{grid-column:1/-1;grid-row:2;width:100%;max-width:none}
 .artwork-top>span{flex-basis:100%}.artwork-dialog .artwork-zoom{top:110px}
}

/* Edition 95: a pending reward reveals no artwork. */
.award-card.award-unrevealed{min-height:180px;justify-content:center;background:linear-gradient(145deg,#20333e,#172732);border-style:dashed}.award-sealed-label{font-size:10px!important;letter-spacing:1.1px;color:#a4b9bd}.award-unrevealed strong{color:#ead4a2}.award-viewer #awardImage[role="button"]{cursor:zoom-in}.award-viewer #awardImage:focus-visible{outline:3px solid #efd283;outline-offset:4px}

/* Edition 96: short landscape keeps the table and collection inside the viewport. */
@media(orientation:landscape) and (max-height:550px){
 .app{display:flex;flex-direction:column;height:100dvh;min-height:0;gap:0;padding:calc(3px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left))}
 .app>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;min-height:36px;margin:0 0 2px}.app>header h1{font-size:20px;white-space:nowrap}.app>header>a{font-size:12px}.header-actions{flex-wrap:nowrap;gap:6px}.header-actions button{height:auto;min-height:34px;padding:4px 8px;font-size:12px}
 .progress-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto 30px;gap:6px;min-height:30px;margin:0 0 4px}.progress-strip>span{font-size:11px}.progress-strip progress{width:100%;min-width:0}.progress-strip #openAchievements{height:auto;min-height:30px;padding:4px 7px;font-size:11px}.progress-strip #openHelp{width:30px;min-height:30px;height:30px}
 .play-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:minmax(0,1fr);gap:10px;flex:1;min-height:0;overflow:hidden}
 .lab-column{grid-column:1;grid-row:1;min-width:0;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.lab-column>.workbench{flex-shrink:0;padding:6px;min-width:0}
 .quest{min-height:34px;gap:6px}.quest>#questTitle{font-size:12px;line-height:1.2;padding:2px 0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.quest>.quest-actions{flex-wrap:nowrap;gap:4px}.quest .quest-actions>button{min-height:34px;padding:4px 6px;font-size:11px}
 .first-mix-guide{display:grid;grid-template-columns:minmax(0,1fr) 102px 26px;gap:5px;padding:6px;margin:4px 0}.first-mix-guide>div{grid-column:1;grid-row:1;overflow-wrap:normal}.first-mix-guide strong{font-size:12px;line-height:1.25}.first-mix-guide p{display:none}.first-mix-guide #prepareFirstMix{grid-column:2;grid-row:1;width:100%;max-width:none;min-height:40px;padding:4px;font-size:11px;line-height:1.2}.first-mix-guide #dismissFirstMix{position:static;grid-column:3;grid-row:1;width:26px;min-width:26px;min-height:40px;padding:0}
 .reward-horizon{display:block;margin:3px 0}.reward-horizon button{width:100%;min-height:24px;height:auto;padding:2px 0;border:0;background:transparent;font-size:11px;line-height:1.2}.reward-horizon span{display:none}
 .mixing{margin:4px 0;gap:6px}.slot{width:calc((100% - 30px)/2);height:54px;min-height:54px;padding:3px;font-size:11px}.slot .item-art{width:29px;height:29px}.plus{width:18px;font-size:22px;text-align:center}.mix-actions{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:5px;margin:0}.mix-actions button{height:auto;min-height:36px;padding:4px;font-size:11px;line-height:1.2}
 .result{height:auto;min-height:56px;padding:5px;margin-top:5px;gap:4px;grid-template-columns:27px minmax(0,1fr) auto auto}.result p{display:none}.result strong{font-size:14px}.result button{min-height:34px;padding:4px;font-size:10px}.result .reaction{width:27px;min-width:27px}.reaction .item-art{width:26px;height:26px}
 .collection{grid-column:2;grid-row:1;min-width:0;min-height:0;margin:0;overflow:hidden;display:flex;flex-direction:column}.collection-heading{min-height:34px;gap:4px;flex-wrap:wrap;margin-bottom:4px}.collection-heading strong{font-size:12px}.collection-heading .browse-cue{display:none}.collection-heading button{min-height:32px;height:auto;padding:4px 6px;font-size:11px}
 .collection-top{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:5px;margin-bottom:4px}.collection-top input,.collection-top select{width:100%;min-width:0;min-height:34px;height:34px;padding:5px;font-size:11px}.element-shelf{flex:1;min-height:0}.element-shelf .element-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;min-height:0;gap:5px;padding:6px 6px 34px}.element{height:72px;min-height:72px;padding:4px 2px;gap:3px}.element .item-art{width:36px;height:36px}.element .name{font-size:11px}
 .app>footer{flex-shrink:0;display:flex;justify-content:flex-end;min-height:30px;margin:4px 0 0;gap:6px}.app>footer span{display:none}.app>footer #quickBackup{min-height:30px;height:auto;padding:4px 9px;font-size:11px}
 .collection-expanded .play-layout{grid-template-columns:minmax(0,1fr)}.collection-expanded .collection{grid-column:1}.collection-expanded .element-shelf .element-grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}
}

/* Edition 97: the pending-award action has two intentional lines, no dangling punctuation. */
.discovery-actions #discoveryAwards{white-space:pre-line!important;line-height:1.3;overflow-wrap:normal;word-break:normal;font-size:clamp(11px,3.1vw,14px)!important}

/* Clear hint actions stay in flow, including short landscape. */
#hintDialog{overflow-y:auto;overscroll-behavior:contain}#hintDialog .hint-introduction{font-size:13px;line-height:1.5;color:#b8cbc7}#hintDialog>button{display:block;width:100%;min-height:44px;height:auto;white-space:normal;line-height:1.35;margin-top:8px}#hintDialog>#prepareHint[hidden]{display:none}#hintText{overflow-wrap:anywhere;line-height:1.5}

/* Edition frames stay clear of the illustration and preserve its complete composition. */
#awardViewer[data-prize="painting"][data-edition="wonder"] #awardImage{border:5px solid #c7a2f4;border-radius:22px 6px;box-shadow:0 0 32px #b78afa40}
#awardViewer[data-prize="painting"][data-edition="legend"] #awardImage{border:7px double #f0ce84;border-radius:26px 26px 5px 5px;box-shadow:0 0 38px #e5bd6445}
#awardViewer[data-prize="painting"][data-edition="marvel"] #awardImage{border:6px double #90e3da;border-radius:4px;box-shadow:0 0 34px #74d4ca40}
#awardViewer[data-edition="wonder"] #awardViewKind{color:#d8b8ff}
#awardViewer[data-edition="legend"] #awardViewKind{color:#ffe0a0}
#awardViewer[data-edition="marvel"] #awardViewKind{color:#a3eee3}
#awardFullDialog[data-edition="wonder"] #awardFullImage,#artworkDialog[data-edition="wonder"] #artworkImage{outline:4px solid #c7a2f4;outline-offset:-4px}
#awardFullDialog[data-edition="legend"] #awardFullImage,#artworkDialog[data-edition="legend"] #artworkImage{outline:7px double #f0ce84;outline-offset:-7px}
#awardFullDialog[data-edition="marvel"] #awardFullImage,#artworkDialog[data-edition="marvel"] #artworkImage{outline:5px double #90e3da;outline-offset:-5px}

.art-gallery-card[data-edition="wonder"]{border:2px solid #c7a2f4;border-radius:20px 6px}
.art-gallery-card[data-edition="legend"]{border:4px double #f0ce84;border-radius:20px 20px 6px 6px}
.art-gallery-card[data-edition="marvel"]{border:3px double #90e3da;border-radius:5px}

/* Keep Help's exit reachable while the guide scrolls. */
#help{overscroll-behavior:contain;scroll-padding-top:84px}
#help>.dialog-top{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding-block:10px;background:#1f2c3b;box-shadow:0 -22px 0 #1f2c3b}
#help>.dialog-top h2{min-width:0;overflow-wrap:anywhere}
#help>.dialog-top button{min-width:44px;min-height:44px;flex-shrink:0}
/* Edition 121: result art owns its whole cell; shelf navigation never covers cards. */
.result{--result-art-size:36px;grid-template-columns:var(--result-art-size) minmax(0,1fr) auto auto}
.result .reaction{width:var(--result-art-size);min-width:0;max-width:var(--result-art-size);height:var(--result-art-size);min-height:0;overflow:hidden;contain:paint}
.result .reaction .result-icon{display:block;width:100%;max-width:100%;height:100%;font-size:var(--result-art-size);line-height:1}
.result .reaction .item-art{display:block;width:100%;max-width:100%;height:100%;line-height:var(--result-art-size)}
.result .eyebrow{white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
.result>div:not(.reaction){overflow:hidden}
.element-shelf{display:grid;grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}
.element-shelf .element-grid{width:100%;min-width:0;padding:6px 8px;max-height:none}
.shelf-navigation{display:flex;align-items:center;justify-content:center;min-width:0;min-height:36px;padding:3px 6px;border-top:1px solid #435363;background:#122331}
.shelf-navigation .scroll-cue{position:static;inset:auto;transform:none;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:29px;line-height:1.2;box-shadow:none;z-index:auto}
.shelf-navigation .scroll-cue:active{transform:scale(.98)}
@media(max-width:759px) and (orientation:portrait){.result{--result-art-size:30px}}
@media(orientation:landscape) and (max-height:550px){.result{--result-art-size:27px}}
@media(max-width:370px),(orientation:landscape) and (max-height:550px) and (max-width:700px){
 .result{grid-template-columns:var(--result-art-size) minmax(0,1fr) auto}
 .result .reaction{grid-column:1;grid-row:1}.result>div:not(.reaction){grid-column:2/-1;grid-row:1}
 .result #useResult{grid-column:2;grid-row:2;justify-self:end}.result #resultDetails{grid-column:3;grid-row:2}
}

/* Update prompt occupies its own row, never overlays game controls. */
.app-update{position:static!important;inset:auto!important;transform:none!important;display:block;box-sizing:border-box;width:100%;max-width:100%;margin:0 0 12px;padding:12px;white-space:normal;line-height:1.4}.app-update[hidden]{display:none!important}

/* A shared light language, with different gestures rather than louder tiers.
   The existing bounded decoration stays behind the original complete artwork. */
.discovery-dialog.celebrate{animation:none}
.discovery-dialog{--reveal-rgb:139,217,202;--reveal-star:#efffec;--reveal-power:.3;--reveal-time:1900ms}
.discovery-dialog[data-edition="wonder"]{--reveal-rgb:187,148,242;--reveal-star:#f8e6ff;--reveal-power:.34;--reveal-time:2300ms}
.discovery-dialog[data-edition="marvel"]{--reveal-rgb:113,221,190;--reveal-star:#fff5cc;--reveal-power:.32;--reveal-time:2400ms}
.discovery-dialog[data-edition="legend"]{--reveal-rgb:239,192,99;--reveal-star:#fff6d2;--reveal-power:.34;--reveal-time:2600ms}
.discovery-content{position:relative;isolation:isolate}
.discovery-aura{position:absolute;z-index:-1;top:32px;left:-12px;right:-12px;height:clamp(210px,42vh,390px);overflow:hidden;contain:paint;pointer-events:none;user-select:none;border-radius:30px}
.reveal-halo,.reveal-ring{position:absolute;display:block;pointer-events:none;opacity:0}
.reveal-halo{inset:0;background:radial-gradient(ellipse at center,rgba(var(--reveal-rgb),.45) 0%,rgba(var(--reveal-rgb),.18) 32%,transparent 72%);border-radius:50%}
.reveal-ring{left:15%;top:15%;width:70%;height:70%;border:1px solid rgba(var(--reveal-rgb),.45);border-radius:50%}
.reveal-mote{position:absolute;display:block;left:var(--px);top:var(--py);width:var(--size);height:var(--size);border-radius:50%;background:radial-gradient(circle,var(--reveal-star) 0 12%,rgba(var(--reveal-rgb),.45) 35%,transparent 74%);opacity:0;pointer-events:none}
.reveal-star{border-radius:0;background:var(--reveal-star);clip-path:polygon(50% 0,60% 37%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%)}
/* At most eight old motes remain visible; natural marvels use daylight only. */
.discovery-dialog .reveal-mote:nth-of-type(n+9){display:none}
.discovery-dialog[data-edition="base"] .reveal-ring,.discovery-dialog[data-edition="base"] .reveal-mote:nth-of-type(n+5),.discovery-dialog[data-edition="marvel"] .reveal-mote{display:none}
.discovery-dialog[data-edition="base"] .reveal-star,.discovery-dialog[data-edition="legend"] .reveal-star{clip-path:none;border-radius:50%;background:radial-gradient(circle,var(--reveal-star),transparent 68%)}
.discovery-dialog[data-edition="wonder"] .reveal-ring{left:9%;top:18%;width:82%;height:56%;border-color:rgba(var(--reveal-rgb),.32)}
.discovery-dialog[data-edition="legend"] .reveal-halo{background:radial-gradient(ellipse at 50% 82%,rgba(var(--reveal-rgb),.34),transparent 68%)}
.discovery-dialog[data-edition="legend"] .reveal-ring{left:12%;top:10%;width:76%;height:76%;border-bottom-color:transparent;border-radius:50% 50% 12% 12%}
.discovery-dialog[data-edition="marvel"] .reveal-halo{background:radial-gradient(ellipse at 50% 40%,rgba(var(--reveal-rgb),.26),transparent 70%)}
.discovery-dialog[data-edition="marvel"] .reveal-ring{left:5%;top:49%;width:90%;height:28%;border:0;border-top:1px solid rgba(var(--reveal-rgb),.32);border-radius:50%}
.discovery-dialog.celebrate .reveal-halo{animation:vista-halo var(--reveal-time) ease-out both}
.discovery-dialog.celebrate .reveal-ring{animation:vista-ring var(--reveal-time) ease-out both}
.discovery-dialog.celebrate[data-edition="wonder"] .reveal-ring{animation-name:vista-wonder-arc}
.discovery-dialog.celebrate[data-edition="marvel"] .reveal-ring{animation-name:vista-marvel-horizon}
.discovery-dialog.celebrate .reveal-mote{animation:vista-mote var(--reveal-time) ease-out var(--delay) both}
.discovery-dialog.celebrate .discovery-art{animation:vista-art-arrive 650ms cubic-bezier(.18,.78,.24,1) both}
.discovery-dialog.celebrate[data-edition="legend"] .discovery-art{animation:vista-legend-arrive 1100ms cubic-bezier(.18,.78,.24,1) both}
.discovery-dialog.celebrate[data-edition="marvel"] .discovery-art{animation:vista-marvel-arrive 950ms ease-out both}
.discovery-dialog.celebrate #discoveryName{animation:reward-word 500ms ease-out both}
.discovery-art::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(112deg,transparent 38%,#fff7d512 49%,#ffffff16 51%,transparent 64%);transform:translateX(-110%)}
.discovery-dialog.celebrate[data-edition="wonder"] .discovery-art::before,.discovery-dialog.celebrate[data-edition="legend"] .discovery-art::before{animation:vista-art-sheen 1600ms 200ms ease-out both}
@keyframes vista-halo{0%{opacity:0;transform:scale(.85)}28%{opacity:var(--reveal-power)}100%{opacity:0;transform:scale(1.05)}}
@keyframes vista-ring{0%{opacity:0;transform:translateY(8px) scale(.94)}24%{opacity:.35}100%{opacity:0;transform:none}}
@keyframes vista-wonder-arc{0%{opacity:0;transform:rotate(-8deg) scale(.94)}26%{opacity:.35}100%{opacity:0;transform:rotate(5deg) scale(1.03)}}
@keyframes vista-marvel-horizon{0%{opacity:0;transform:scaleX(.78)}32%{opacity:.35}100%{opacity:0;transform:scaleX(1.04)}}
@keyframes vista-mote{0%{opacity:0;transform:translateY(5px) scale(.65)}25%{opacity:.45}100%{opacity:0;transform:translate(calc(var(--dx) * .4),calc(var(--dy) * .4)) scale(.75)}}
@keyframes vista-art-arrive{from{opacity:.45;transform:translateY(6px) scale(.992)}to{opacity:1;transform:none}}
@keyframes vista-legend-arrive{from{opacity:.45;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes vista-marvel-arrive{from{opacity:.45;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes vista-art-sheen{0%{opacity:0;transform:translateX(-110%)}25%{opacity:.4}100%{opacity:0;transform:translateX(110%)}}
@media(max-height:500px){.discovery-aura{top:30px;height:190px;left:0;right:0}}
@media(prefers-reduced-motion:reduce){.discovery-aura,.discovery-art::before{display:none!important}.discovery-dialog.celebrate .discovery-art,.discovery-dialog.celebrate #discoveryName{animation:none!important;opacity:1;transform:none}}

/* Keep prize content below the iPhone status bar in installed mode. */
.award-viewer{inset:0;box-sizing:border-box;width:min(600px,calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));margin:calc(12px + env(safe-area-inset-top,0px)) auto calc(12px + env(safe-area-inset-bottom,0px));padding-top:20px}

.category-medal-progress{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid #c5ac72;border-radius:16px;background:#0e2530}.category-medal-progress[hidden]{display:none}.category-medal-progress p{flex:1 1 190px;margin:0;color:#efd49a}.category-medal-progress button{flex:0 1 auto;white-space:normal;max-width:100%}

.award-viewer[data-prize="insignia"] #awardImage{width:min(100%,420px);aspect-ratio:1;object-fit:contain;margin-inline:auto;border-color:#a8c9cf}.award-viewer[data-prize="insignia"] .award-members{gap:8px}.award-viewer[data-prize="insignia"] .award-members span{overflow-wrap:anywhere}

/* Nearby themed reward remains in normal layout; never floats over the mixing table. */
#nextInsigniaGoal{flex-basis:100%;width:100%;height:auto;min-height:44px;padding:8px 10px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;text-align:left}#nextInsigniaGoal[hidden]{display:none!important}

/* Hint rules stay in normal flow and match the actual progression policy. */
.hint-policy{margin:12px 0;padding:12px;border:1px solid #efd49a40;border-radius:14px;background:#102431;overflow-wrap:anywhere}
.hint-policy summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;color:#efd49a}
.hint-policy table{width:100%;border-collapse:collapse;margin:12px 0;font-size:.95rem}
.hint-policy caption{text-align:left;margin-bottom:8px;color:#c1cbd3}
.hint-policy th,.hint-policy td{text-align:left;padding:9px 8px;border-bottom:1px solid #ffffff1a}
.hint-policy .current-hint-stage{background:#81d9c514;color:#b2ebdc;font-weight:700}
.hint-policy p{line-height:1.5}

/* Explorer insignias share the sculpted family crest with their completion
   prize, with an engraved bronze plaque on a separate row, never over art. */
.explorer-plaque{display:none}
#awardViewer[data-stage="explorer"] .explorer-plaque{display:block;width:fit-content;max-width:100%;box-sizing:border-box;margin:0 auto 20px;padding:10px 24px;border:1px solid #f0d6a0;border-radius:4px;background:linear-gradient(175deg,#f0d5a5 0%,#c39762 16%,#92653d 42%,#bc8c53 60%,#edc18a 83%,#815733 100%);color:#342419;font:600 11px/1.4 system-ui;letter-spacing:2px;text-shadow:0 1px 0 #ffe8bd;box-shadow:inset 0 2px 1px #fff3d3aa,inset 0 -3px 2px #4e301ba0,0 3px 0 #352c22,0 7px 12px #0008}
.award-card[data-stage="explorer"]{border-color:#c49665}

/* Edition 164: compact objectives, with three complete portrait shelf rows. */
@media(max-width:759px) and (orientation:portrait){
 .app{height:100dvh;overflow-y:auto;overscroll-behavior:contain}
 .play-layout{flex:1 0 auto;grid-template-rows:auto minmax(350px,1fr);overflow:visible}
 .lab-column{max-height:none;overflow:visible}
 .workbench{padding:7px}
 .quest{grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;min-height:40px}
 .quest>#questStep{display:none}
 .quest>#questTitle{grid-column:1;grid-row:1;font-size:13px;line-height:1.2;padding:2px 0;white-space:normal;overflow-wrap:anywhere}
 .quest>.quest-actions{grid-column:2;grid-row:1;flex-wrap:nowrap;gap:4px;align-self:start}
 .quest .quest-actions>button{min-width:40px;min-height:40px;padding:5px;font-size:11px}
 .reward-horizon{display:flex;flex-direction:column;align-items:stretch;gap:0;margin:2px 0 4px}
 .reward-horizon #nextMedalGoal,.reward-horizon #nextInsigniaGoal{flex-basis:auto;width:100%;min-height:30px;height:auto;padding:3px 0;border:0;background:transparent;font-size:10.5px;line-height:1.2;text-align:left;white-space:normal;overflow-wrap:anywhere}
 .mixing{margin:4px 0;gap:6px}
 .slot{height:58px;min-height:58px}
 .result{min-height:58px;margin-top:5px;padding:5px}
 .collection{min-height:350px}
 .element-shelf{min-height:274px;flex:1}
 .element-shelf .element-grid{min-height:238px;grid-auto-rows:74px;align-content:start;gap:5px;padding:3px 6px}
 .shelf-navigation{min-height:36px}
 .collection-expanded .play-layout{flex:1;min-height:350px}
}

/* Edition 165: the viewport stays fixed; only the element shelf scrolls. */
@media(max-width:759px) and (orientation:portrait){
 html,body{height:100%;overflow:hidden;overscroll-behavior:none}
 .app{height:100dvh;overflow:hidden;min-height:0}
 .app>header,.progress-strip,.app>footer{flex-shrink:0}
 .play-layout{flex:1 1 0;min-height:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
 .lab-column{overflow:hidden;min-height:0}
 .collection{min-height:0;overflow:hidden}
 .collection-heading,.collection-top{flex-shrink:0}
 .element-shelf{flex:1;min-height:0;overflow:hidden}
 .element-shelf .element-grid{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;grid-auto-rows:74px;-webkit-overflow-scrolling:touch}
 .collection-expanded .play-layout{min-height:0}
}
@media(max-width:759px) and (orientation:portrait) and (max-height:740px){
 .quest{min-height:36px}.quest .quest-actions>button{min-height:36px}
 .reward-horizon #nextMedalGoal,.reward-horizon #nextInsigniaGoal{min-height:24px;padding:2px 0;font-size:10px}
 .slot{height:50px;min-height:50px}.slot .item-art{width:26px;height:26px}
 .result{min-height:48px}.mix-actions button{min-height:38px}
 .element-shelf .element-grid{grid-auto-rows:64px}.element{height:64px;min-height:64px}.element .item-art{width:32px;height:32px}
}


/* Edition 168: complete illustrated bitmap frames, with one layer per artwork. */
.painting-relief{display:contents}
.raster-frame{display:block;position:relative;box-sizing:border-box;padding:14.25% 12%;isolation:isolate;overflow:visible}
.raster-frame::after,#artworkPlane[data-raster-frame]::after,.showcase-art[data-raster-frame]::after{content:"";position:absolute;inset:0;z-index:3;background:var(--raster-frame) center/100% 100% no-repeat;pointer-events:none}
.raster-frame>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;position:relative;z-index:1;border:0!important;outline:none!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
#awardViewer[data-prize="painting"] .raster-frame{margin:12px 0;width:100%}
#awardViewer[data-prize="painting"] #awardImage,#awardFullImage{border:0!important;outline:none!important;box-shadow:none!important;border-radius:0!important}
#awardFullRelief[data-raster-frame]{display:block;position:relative;margin:auto;padding:0;isolation:isolate}
#awardFullRelief[data-raster-frame]::after{content:"";position:absolute;inset:0;z-index:3;background:var(--raster-frame) center/100% 100% no-repeat;pointer-events:none}
#awardFullRelief[data-raster-frame]>img{position:absolute;left:12%;top:18%;width:76%;height:64%;object-fit:fill}
#artworkPlane[data-raster-frame]{border:0!important;outline:none!important;padding:0;background:transparent!important;box-shadow:none!important}
#artworkPlane[data-raster-frame] #artworkImage,#artworkPlane[data-raster-frame] #artworkPreviewImage{position:absolute!important;left:12%;top:18%;width:76%;height:64%;border:0!important;outline:none!important;object-fit:fill;border-radius:0!important}
.discovery-dialog .showcase-art[data-raster-frame]{position:relative;box-sizing:border-box;border:0!important;outline:none!important;border-radius:0!important;padding:14.25% 12%;height:auto;aspect-ratio:1.2632;margin:8px 0;background-origin:content-box;background-clip:content-box;background-repeat:no-repeat;background-size:100% 100%;box-shadow:none!important;overflow:visible}
.art-gallery-card[data-edition]{border-image:none!important}
.art-gallery-card .card-picture.raster-frame{padding:14.25% 12%;aspect-ratio:auto;background:transparent;overflow:visible}
.art-gallery-card .card-picture.raster-frame>img{position:relative;width:100%;height:auto;object-fit:contain}
.award-card.painting-card.earned[data-edition]>.raster-frame{width:100%;margin:0}
.award-card.painting-card.earned[data-edition]>img{border:0;box-shadow:none;border-radius:0}

#awardViewer .raster-frame>img{width:100%!important;height:auto!important;max-height:none!important}

/* Measured bitmap apertures; one coordinate system for artwork and frame. */
.raster-frame,.art-gallery-card .card-picture.raster-frame{padding:0;aspect-ratio:var(--frame-aspect)}
.raster-frame>img,#awardViewer .raster-frame>img,#awardFullRelief[data-raster-frame]>img,#artworkPlane[data-raster-frame] #artworkImage,#artworkPlane[data-raster-frame] #artworkPreviewImage{position:absolute!important;left:var(--frame-x);top:var(--frame-y);width:var(--frame-w)!important;height:var(--frame-h)!important;max-height:none!important;aspect-ratio:auto;object-fit:fill}
.discovery-dialog .showcase-art[data-raster-frame]{padding:0;aspect-ratio:var(--frame-aspect);background-origin:border-box;background-clip:border-box;background-position:var(--frame-bg-x) var(--frame-bg-y);background-size:var(--frame-w) var(--frame-h)}

#dailyKit .puzzle-card{display:flex;align-items:center;gap:8px;min-height:72px}#dailyKit .slot-icon{flex-shrink:0}#dailyDialog .puzzle-table button{overflow-wrap:anywhere}#dailyMoves{font-size:.875rem}#dailyDialog .puzzle-heading{flex-wrap:wrap;gap:8px}
.profile-card{padding:16px;margin:12px 0;border:1px solid #48606c;border-radius:16px;background:#11232d}.profile-card h3{margin-top:0}.profile-card label{display:block}.profile-card input{display:block;width:100%;max-width:100%;margin:6px 0 10px}.profile-card button{margin:4px 6px 4px 0;min-height:44px}#profilesDialog{max-width:650px}#profileResetDialog{max-width:550px}

/* Edition 178: backup belongs with save files; the shelf reserves three rows.
   Short screens scroll the page rather than hiding a complete element row. */
.app>footer{display:none}
#profilesBackupActions{margin:12px 0}
#profilesBackupActions #quickBackup{min-height:44px;font-size:14px;padding:10px 14px}
@media(max-width:759px) and (orientation:portrait){
 .app{overflow-y:auto;overscroll-behavior:contain}
 .play-layout{flex:1 0 auto;grid-template-rows:auto minmax(350px,1fr);overflow:visible}
 .lab-column{overflow:visible}
 .collection{min-height:350px}
 .element-shelf{min-height:274px}
 .element-shelf .element-grid{min-height:238px;grid-auto-rows:74px;align-content:start;gap:5px;padding:3px 6px}
 .element{height:74px;min-height:74px}
 .collection-expanded .play-layout{min-height:350px}
}
@media(max-width:759px) and (orientation:portrait) and (max-height:840px){
 .play-layout{grid-template-rows:auto minmax(320px,1fr)}
 .collection{min-height:320px}
 .element-shelf{min-height:244px}
 .element-shelf .element-grid{min-height:208px;grid-auto-rows:64px}
 .element{height:64px;min-height:64px}
 .element .item-art{width:32px;height:32px}
 .collection-expanded .play-layout{min-height:320px}
}

/* Edition 194: use the collection row’s spare height without content-sized growth.
   Keep a definite three-row flex basis, viewport cap and minmax(0,1fr)
   grid track so 750 elements still scroll inside the shelf. */
@media(max-width:759px) and (orientation:portrait){
 .play-layout{flex:1 0 0;grid-template-rows:auto minmax(354px,1fr)}
 .collection{min-height:354px}
 .element-shelf{flex:1 0 276px;height:276px;max-height:100dvh}
 .element-shelf .element-grid{height:auto;min-height:0;overflow-y:auto}
 .collection-expanded .play-layout{min-height:354px}
}
@media(max-width:759px) and (orientation:portrait) and (max-height:840px){
 .play-layout{grid-template-rows:auto minmax(324px,1fr)}
 .collection{min-height:324px}
 .element-shelf{flex:1 0 246px;height:246px;max-height:100dvh}
 .collection-expanded .play-layout{min-height:324px}
}

/* Hint history stays inside the scrollable hint dialog. */
#previousHintList{display:grid;gap:10px;margin-top:12px}.previous-hint-entry{white-space:pre-line;text-align:left;width:100%;line-height:1.5}#previousHints{margin:16px 0;padding:14px;border:1px solid #516777;border-radius:16px}#previousHintSummary{cursor:pointer;color:#efd49a}

/* Hint identity: contrast within the existing toolbar, no mixing-layout changes. */
.quest .quest-actions>#hint{display:inline-flex;align-items:center;justify-content:center;width:clamp(104px,29vw,140px);min-width:104px;min-height:44px;padding:0;background:transparent;border:0;box-shadow:none;white-space:nowrap;flex:none}.hint-wordmark{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 0 4px #f3c35735)}
.hint-button-icon{width:20px;height:20px;object-fit:contain;flex:none}
.quest .quest-actions>#hint:focus-visible{outline:3px solid #a6e5cf;outline-offset:3px}
.quest .quest-actions>#hint:hover{background:transparent}.quest .quest-actions>#hint:hover .hint-wordmark{filter:brightness(1.08) drop-shadow(0 0 5px #f3c35750)}
#hintDialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:22px;background:radial-gradient(ellipse at top left,#263d48,#182b39 68%);border-color:#829b98}
#hintDialog .dialog-top{align-items:center;gap:12px;margin-bottom:12px}
.hint-heading{display:flex;align-items:center;gap:10px;min-width:0}.hint-heading img{flex:none;object-fit:contain;filter:drop-shadow(0 0 10px #ebc15e30)}
#hintDialog h2{margin:0;font-size:25px;color:#ffdf99}.hint-heading span{display:block;color:#c1cfcf;font-size:12px;line-height:1.4;margin-top:3px}
#hintDialog .hint-introduction{margin:8px 0 16px;font-size:14px}
.hint-balance{padding:12px 14px;border:1px solid #8cccb647;border-radius:14px;background:#163e402f;margin-bottom:18px}.hint-balance #hintAccessNote{margin:0;font-weight:700;color:#b6ecda;font-size:15px;line-height:1.5}.hint-balance>span{display:block;margin-top:5px;font-size:12px;color:#c0cfce}
#hintHome h3{font-family:inherit;font-size:18px;margin:0 0 8px;color:#f4eee0}#hintHomeMessage{margin:0 0 16px;font-size:14px;line-height:1.6;color:#c2d0d4}
#hintDialog .hint-primary,#hintDialog .hint-secondary{display:block;width:100%;min-height:46px;white-space:normal;line-height:1.4;padding:10px 14px;border-radius:14px;margin-top:10px}
#hintDialog .hint-primary{background:linear-gradient(140deg,#ffdfa0,#e9ba65);color:#182732;border-color:#ffe5a7;font-weight:750;box-shadow:0 3px 12px #0002}#hintDialog .hint-primary:disabled{background:#283e4a;border-color:#566b75;color:#acbdc4;box-shadow:none;opacity:1}
#hintDialog .hint-secondary{background:#163039;color:#b8ead9;border-color:#85bfa96b}#hintDialog .hint-secondary:disabled{opacity:.5}
#hintDialog .hint-cost{font-size:12px;color:#d4c5a5;line-height:1.5;margin:8px 2px 14px}
.hint-clue-card{padding:16px;border:1px solid #eec57866;border-radius:18px;background:linear-gradient(150deg,#1b3541,#102735);box-shadow:0 8px 22px #0002;margin:16px 0}
#hintDialog #hintStepNote{margin:0 0 12px;color:#b3e5d3;font-size:12px;line-height:1.5}#hintDialog #hintText{font-size:18px;line-height:1.65;color:#ffe5b0;margin:0 0 18px}
#hintDialog #previousHints{background:#0e24307a;padding:14px;margin:18px 0 10px;border-color:#8bbaa95c}#hintDialog #previousHintSummary{min-height:28px;font-size:14px;line-height:1.6;color:#b9ead7;font-weight:650}
#hintDialog .hint-history-card{background:#233e49;border-color:#668c89;border-left:3px solid #e7c076;border-radius:12px;padding:12px;font-size:13px;color:#edf0e5;line-height:1.6}
#hintDialog .hint-policy{background:transparent;border-color:#71879040;padding:10px 14px;margin-top:12px}#hintDialog .hint-policy summary{font-size:13px;color:#c0cfd2;min-height:30px}#hintDialog .hint-policy p,#hintDialog #previousHints>.daily-note{font-size:12px;line-height:1.6;color:#c0cdd1}
#hintDialog [hidden]{display:none!important}
@media(max-width:379px){#hintDialog{padding:16px}.hint-heading img{width:38px;height:38px}#hintDialog h2{font-size:22px}.hint-heading span{font-size:11px}.hint-button-icon{width:17px;height:17px}#hintDialog #hintText{font-size:16px}}
.hint-button-icon{background:#153442;border-radius:6px;padding:1px}

.hint-simulation{border:1px dashed #ba9fce88;border-radius:15px;padding:14px;margin-top:18px;background:#252c432b}.hint-simulation h3{font-size:15px;margin:0 0 8px;color:#d9c0ed}.hint-simulation p{font-size:12px;line-height:1.6;color:#c6cbd3}.simulation-banner{border:1px solid #b49cce;background:#352d49;color:#eadcf7;border-radius:10px;padding:10px;font-size:12px;font-weight:700;margin-top:14px}.hint-test-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}.hint-test-packs button{min-width:0;min-height:60px;padding:8px 4px;font-size:12px;line-height:1.5;white-space:normal;border-color:#cab789;background:#263b48;color:#ffe4ac}.hint-simulation details{margin-top:14px;font-size:13px}.hint-simulation summary{cursor:pointer;min-height:32px;color:#d9c5ed}#hintSimulationDialog{max-width:460px}#hintSimulationDescription{font-size:15px;line-height:1.6}#hintSimulationConfirm{border-color:#d9b3ee;background:#40374f}#hintSimulationOffers[hidden],#hintSimulationBanner[hidden],#hintSimulationSection[hidden]{display:none!important}

/* Offer preview 184: compact two-column cards with distinct native vector icons. */
.hint-simulation{border:1px solid #bbaa7766;background:linear-gradient(150deg,#213744,#142634);padding:16px}.hint-simulation h3{font-size:20px;color:#f4dea5}.hint-test-packs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hint-test-packs .hint-offer{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:210px;padding:12px 8px;border-radius:16px;background:linear-gradient(150deg,#29414e,#182b37);color:#e7d4a3}.hint-offer .offer-icon{width:44px;height:44px;color:#a5e0d1}.offer-small .offer-icon{color:#eed49a;transform:rotate(8deg)}.offer-medium .offer-icon{color:#8acde9;filter:drop-shadow(0 0 5px #78b8d644)}.offer-large .offer-icon{color:#d7b3f5;filter:drop-shadow(0 0 5px #bb88ee44)}.offer-icon svg{width:100%;height:100%}.offer-name{font-size:15px;font-weight:700}.offer-amount{font-size:21px;font-weight:700;color:#fff0c8}.offer-price{font-size:17px;color:#edf5f0}.offer-unit{font-size:11px;color:#b9c9ce}.offer-tag{font-size:11px;line-height:1.4;min-height:16px}.offer-action{margin-top:6px;padding:6px 8px;border-radius:8px;background:#184d48;color:#c2f1df;font-size:11px;font-weight:700}.hint-ad-offer{display:flex;align-items:center;gap:14px;width:100%;padding:14px;text-align:left;background:#1c4847;border-color:#8ac9ba;border-radius:15px}.ad-offer-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #bde6d2;border-radius:50%;color:#f2dda2;flex:none}.hint-ad-offer strong,.hint-ad-offer span span,.hint-ad-offer small{display:block}.hint-ad-offer strong{font-size:15px;color:#eaf4de}.hint-ad-offer span span{font-size:13px;color:#c5e3d9;margin-top:3px}.hint-ad-offer small{font-size:11px;color:#dfd0a6;margin-top:4px}.hint-simulation .offer-caption{color:#f5dfa7;font-weight:700;margin-top:18px}.hint-simulation .offer-preview-note,.hint-simulation .offer-footnote{font-size:11px;color:#b8cbd0}.hint-offer:focus-visible,.hint-ad-offer:focus-visible{outline:3px solid #a9ead1;outline-offset:3px}@media(max-width:340px){.hint-test-packs{grid-template-columns:1fr}.hint-test-packs .hint-offer{min-height:190px}}

/* Generated raster offer art 185. Mixing shelf dimensions unchanged. */
.hint-offer .offer-icon{width:88px;height:88px;transform:none;filter:none}.offer-icon img,.ad-offer-icon img{display:block;width:100%;height:100%;object-fit:contain}.hint-test-packs .hint-offer{min-height:252px}.ad-offer-icon{width:72px;height:72px;border:0;border-radius:0}.hint-ad-offer{padding:10px 14px}

/* 188: shared raster identity; keep the dialog header transparent. */
#hintDialog .dialog-top{background:transparent}
#hintDialog .hint-heading{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
#hintDialog .hint-heading h2{line-height:0}
#hintDialog .hint-heading .hint-heading-wordmark{display:block;width:clamp(116px,36vw,170px);height:auto;max-width:100%;padding:0;background:transparent}
#hintDialog .hint-heading>span{margin:0}

/* 195: generated metal relief, nine-sliced at the corners. Border-image paints
   inside the existing box; no added nodes, overlay or layout dimensions. */
.workbench,#hintDialog{border-image-source:url(assets/alchemy-ui-bronze-frame-v195.webp);border-image-slice:22%;border-image-repeat:stretch;border-image-outset:0;border-image-width:14px}
#hintDialog{border-image-width:18px}
#hintDialog .hint-heading .hint-heading-wordmark{width:clamp(128px,40vw,196px)}

/* 196: portrait panels stack in natural flow. The workbench cannot spill
   into the collection when a result/guide grows; only the card area flexes. */
@media(max-width:759px) and (orientation:portrait){
 .app{padding-bottom:max(6px,env(safe-area-inset-bottom))}
 .play-layout{display:flex;flex-direction:column;flex:1 0 0;gap:12px;min-height:0;overflow:visible}
 .lab-column{flex:0 0 auto;min-height:min-content;max-height:none;overflow:visible}
 .collection{flex:1 0 357px;min-height:357px}
 .collection-expanded .play-layout{flex:1 0 0;min-height:357px;gap:12px}
 .collection-expanded .collection{flex:1 0 357px;min-height:357px}
}
@media(max-width:759px) and (orientation:portrait) and (max-height:840px){
 .collection,.collection-expanded .collection{flex:1 0 327px;min-height:327px}
 .collection-expanded .play-layout{min-height:327px}
}

/* 197: discovery heading and close action own separate cells. The sheen
   uses ::before; persistent raster relief alone owns ::after. */
.discovery-header{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;align-items:start;margin:0 0 8px;position:relative;z-index:4}
.discovery-header #discoveryEdition{grid-column:1;min-width:0;margin:0;padding:4px 0;font-size:11px;line-height:1.5;letter-spacing:1.5px;white-space:normal;overflow-wrap:anywhere;text-align:left}
.discovery-header .discovery-close{grid-column:2;position:static;width:44px;min-width:44px;min-height:44px;margin:0;align-self:start}
.wonder-discovery #discoveryEdition{color:#d4b9ff}
.legend-discovery #discoveryEdition{color:#ffe5a8}
.discovery-art::before{z-index:2}
.discovery-dialog[data-edition] .discovery-art.showcase-art[data-raster-frame]{width:100%;height:auto;min-height:0;aspect-ratio:var(--frame-aspect);padding:0;overflow:visible;background-origin:border-box;background-clip:border-box;background-repeat:no-repeat;background-size:var(--frame-w) var(--frame-h);background-position:var(--frame-bg-x) var(--frame-bg-y)!important}
.discovery-dialog[data-edition] .discovery-art.showcase-art[data-raster-frame]::after{opacity:1;transform:none;animation:none;display:block}
.discovery-dialog[data-edition] .discovery-art.showcase-art[data-raster-frame] .item-art{display:none}
.discovery-dialog[data-edition] .discovery-art.showcase-art[data-raster-frame] .art-preview-label{right:calc(100% - var(--frame-x) - var(--frame-w) + 6px);bottom:calc(100% - var(--frame-y) - var(--frame-h) + 6px);z-index:4;font-size:11px;max-width:calc(var(--frame-w) - 12px);white-space:normal}

/* Reserve the ingredient label before sizing its artwork. Legacy desktop
   icon line boxes exceeded the compact slot and hid the ingredient name. */
.slot{display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;align-content:stretch;padding:4px}
.slot>.slot-icon{display:flex;align-items:center;justify-content:center;align-self:stretch;min-height:0;max-height:100%;line-height:1;font-size:28px;overflow:hidden}
.slot .item-art{max-width:100%;max-height:100%}
.slot>span:last-child{min-width:0;flex-shrink:0}

/* Saving failures stay in normal document flow, above the game. Hidden in
   ordinary play so the workbench and three-row shelf keep their sizing. */
#saveFailureNotice[hidden]{display:none!important}
#saveFailureNotice{position:static;flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 8px;padding:10px 12px;border:1px solid #e7b66a;border-radius:10px;background:#342a1c;color:#fff3d7;overflow-wrap:anywhere}
#saveFailureMessage{flex:1 1 260px;margin:0;font-size:13px;line-height:1.45}
#saveFailureNotice .save-failure-actions{display:flex;flex-wrap:wrap;gap:8px}
#saveFailureNotice button{min-height:44px;white-space:normal}

/* Keep long save lists and prize presentations escapable without a scroll back. */
#profilesDialog>.dialog-top,#awardViewer>.dialog-top{position:sticky;top:-20px;z-index:8;background:#20303e;padding:12px 0;border-bottom:1px solid #48606c;gap:12px}
#profilesDialog>.dialog-top h2{min-width:0;overflow-wrap:anywhere}
#profilesClose,#awardViewClose{flex-shrink:0;min-height:44px}
#profilesSaveStatus{padding:12px 14px;border:1px solid #486a65;border-radius:12px;background:#193b39;color:#d8eee3}
#profilesSaveStatus.save-unconfirmed{border-color:#c0a367;background:#3c3425;color:#ffe5af}

/* 207: a visible exit throughout long clue history and opt-in test offers.
   Keep the header in flow and inside the existing bronze trim. */
#hintDialog>.dialog-top{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:12px;background:#1b303d;padding:8px 0;border-bottom:1px solid #48606c}
#hintDialog>.dialog-top>.hint-heading{min-width:0}
#hintDialog>.dialog-top>button[data-close="hintDialog"]{min-width:64px;min-height:44px;white-space:nowrap;align-self:center}

/* Cover only the scrollable padding above the sticky header; keep bronze sides clear. */
#hintDialog>.dialog-top::before{content:"";position:absolute;left:0;right:0;top:-22px;height:22px;background:#1b303d;pointer-events:none}
@media(max-width:379px){#hintDialog>.dialog-top::before{top:-16px;height:16px}}

/* Preserve complete base paintings inside the existing gallery card aperture. */
.art-gallery-card[data-edition="base"] .card-picture>img{object-fit:contain;background:#15222b}

/* Keep complete unframed collection paintings in the existing 3:2 cabinet cards. */
.award-card.painting-card[data-edition="base"]>img{object-fit:contain;background:#15222b}

/* Keep the opaque Hints scroll mask, then restore only the original top trim
   inside its existing central span. Padding + border aligns the source slice. */
#hintDialog>.dialog-top::before{top:-23px;height:23px;border-style:solid;border-width:0;border-image-source:url(assets/alchemy-ui-bronze-frame-v195.webp);border-image-slice:22%;border-image-repeat:stretch;border-image-outset:0;border-image-width:18px 0 0}
@media(max-width:379px){#hintDialog>.dialog-top::before{top:-17px;height:18px}}


/* Collection tools: four quiet entry points; every expanded control stays in flow. */
#collectionTools{width:min(92vw,560px);max-height:85dvh;scroll-padding-top:76px}
#collectionTools>.dialog-top{position:sticky;top:-22px;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0 12px;background:#1f2c3b;border-bottom:1px solid var(--line)}
#collectionTools>.dialog-top h2{min-width:0;margin:0;font-size:22px;overflow-wrap:anywhere}
#collectionTools>.dialog-top button{min-width:64px;min-height:44px;align-self:center}
#collectionTools .tools-intro{font-size:13px;line-height:1.5;margin:12px 0 16px}
#collectionTools .collection-tool-group{margin:10px 0;border:1px solid #526372;border-radius:13px;background:#192936;min-width:0}
#collectionTools .collection-tool-group>summary{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:4px;list-style:none;cursor:pointer;min-height:64px;padding:13px 42px 13px 14px;overflow-wrap:anywhere}
#collectionTools .collection-tool-group>summary::-webkit-details-marker{display:none}
#collectionTools .collection-tool-group>summary::after{content:'+';position:absolute;right:16px;top:19px;color:var(--gold);font-size:22px;line-height:1}
#collectionTools .collection-tool-group[open]>summary::after{content:'−'}
#collectionTools .collection-tool-group>summary>span{font-size:16px;font-weight:650;color:var(--ink)}
#collectionTools .collection-tool-group>summary>small{font-size:12px;line-height:1.45;color:var(--muted)}
#collectionTools .collection-tool-group[open]>summary{border-bottom:1px solid #405463}
#collectionTools .tools-group-content{min-width:0;padding:14px}
#collectionTools .tools-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#collectionTools button{min-width:0;min-height:44px;height:auto;padding:10px 12px;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.4}
#collectionTools button[aria-pressed=true]{background:var(--teal);color:#173a31;border-color:var(--teal)}
#collectionTools .tools-note{margin:12px 0 8px;font-size:12px;line-height:1.5}
#collectionTools .tools-group-content>.tools-note:first-child{margin-top:0}
#collectionTools #categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0 0 12px;overflow:visible}
#collectionTools #categories button{min-height:44px;height:auto;padding:9px 4px;font-size:12px;white-space:normal}
#collectionTools .tools-editions{grid-template-columns:repeat(3,minmax(0,1fr))}
#collectionTools .tools-editions button{font-size:13px;padding:9px 5px}
#collectionTools .tools-filters>button:first-child{grid-column:1/-1}
#collectionTools .tools-filter-status{margin:14px 0 10px;color:var(--teal);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#collectionTools .tools-selected{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
#collectionTools .tools-selected h3{margin:0;color:var(--gold);font-size:16px;overflow-wrap:anywhere}
#collectionTools .tools-selected h3+.tools-note{margin-top:4px}
#collectionTools .tools-secondary{margin-top:14px}
#collectionTools .tools-secondary:first-child{margin-top:0}
#collectionTools .tools-secondary>button{width:100%;text-align:left}
#collectionTools .tools-secondary>p{margin:5px 2px 0;font-size:12px;line-height:1.5}
#collectionTools button:focus-visible,#collectionTools summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:359px){#collectionTools{padding:16px}#collectionTools>.dialog-top{top:-16px}#collectionTools .tools-action-grid{grid-template-columns:minmax(0,1fr)}#collectionTools .tools-group-content{padding:12px}}

/* Portrait/square discovery art fits a stable gallery cell without cropping. */
.gallery-frame-stage{display:grid;place-items:center;width:100%;min-width:0;flex-shrink:0}
.gallery-frame-stage>.card-picture.raster-frame{flex-shrink:0;margin:0}

.discovery-dialog[data-edition] .discovery-art.showcase-art[data-raster-frame][data-frame-orientation="portrait"]{width:min(100%,calc(min(300px,40dvh) * var(--frame-aspect)));margin-inline:auto}

/* Nearby reward goals keep real 44px targets while longer captions grow naturally. */
.reward-horizon #nextMedalGoal,.reward-horizon #nextInsigniaGoal{min-height:44px;height:auto}

/* Edition 233: audio-only fixed heading and one scrollable settings body. */
#audioDialog{padding:0;overflow:hidden;max-height:90dvh;width:min(440px,94vw)}
#audioDialog[open]{display:flex;flex-direction:column}
#audioDialog>.dialog-top{position:static;inset:auto;z-index:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;flex:0 0 auto;gap:12px;margin:0;padding:14px 16px;background:#20303e;border-bottom:1px solid var(--line)}
#audioDialog>.dialog-top h2{min-width:0;margin:0;font-size:20px;line-height:1.25;overflow-wrap:anywhere}
#audioDialog>.dialog-top button{min-width:64px;min-height:44px;align-self:center}
#audioDialog .audio-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px;padding:12px 16px 16px}
#audioDialog .audio-intro{font-size:14px;margin:0 0 10px}
#audioDialog .audio-channel{margin:10px 0;padding:10px;gap:6px 10px;grid-template-columns:minmax(0,1fr) auto}
#audioDialog .audio-channel button{min-width:0;min-height:44px;padding:8px;font-size:14px;overflow-wrap:anywhere}
#audioDialog .audio-channel input{min-height:44px;height:44px;margin:0}
#audioDialog .audio-channel label{font-size:13px;white-space:nowrap}
#audioDialog .audio-helper{font-size:13px;line-height:1.45;color:var(--muted);margin:8px 0 12px}
#audioDialog .audio-more>summary,#audioDialog .sound-preview>summary{min-height:44px;padding:12px 8px;cursor:pointer}
#audioDialog .audio-pace{margin:8px 0;padding:8px;border:1px solid var(--line);border-radius:12px;display:grid;gap:6px}
#audioDialog .audio-pace label{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px;border:1px solid transparent;border-radius:8px;cursor:pointer}
#audioDialog .audio-pace label:has(input:checked){border-color:var(--gold);background:#36574d}
#audioDialog .audio-pace input{accent-color:var(--gold);width:20px;height:20px;flex:0 0 auto}
#audioDialog #audioStatus{min-height:0;margin:10px 0;font-size:13px}
#audioDialog .daily-note{margin:12px 0;font-size:12px}
@media(max-height:420px){#audioDialog{max-height:calc(100dvh - 12px)}#audioDialog>.dialog-top{padding-block:8px}}

/* A free route back to the selected journey, secondary to clue actions. */
#hintDialog #hintJourney{margin-top:18px}#hintJourney strong,#hintJourney small{display:block}#hintJourney small{margin-top:3px;font-size:12px;font-weight:400;line-height:1.5}

/* One concise requirement and one readable progress indicator for collection goals. */
#awardViewer.category-goal #awardViewText{display:none}
#awardViewer.category-goal .award-how{border:0;background:none;padding:0;margin:14px 0 18px;text-align:center}
#awardViewer.category-goal #awardViewHowTitle{display:none}
#awardViewer.category-goal #awardViewHow{margin:0;font-size:1rem;line-height:1.5}
#awardViewer #awardViewProgress{display:block;width:100%;height:10px;margin:18px auto 8px;appearance:none;-webkit-appearance:none;border:0;border-radius:999px;overflow:hidden;background:#334654;color:#a6e2ce}
#awardViewProgress::-webkit-progress-bar{background:#334654;border-radius:999px}
#awardViewProgress::-webkit-progress-value{background:#a6e2ce;border-radius:999px}
#awardViewProgress::-moz-progress-bar{background:#a6e2ce;border-radius:999px}
#awardViewer #awardViewCount{font-size:.95rem;margin:8px 0 20px;color:#d8e1df}
#awardViewer.category-goal #awardViewCategory,#awardViewer.category-goal #awardViewFollow{display:block;width:100%;margin:10px 0 0}
/* Candidate 247: rank-specific motion on the existing artwork renderer only.
   Existing reduced-motion !important overrides remain authoritative. */
.award-viewer[data-prize="medal"][data-tier="master"]{--prize-arrival:vista-master-resolve;--prize-duration:1450ms;}
.award-viewer[data-prize="medal"][data-tier="summit"]{--prize-arrival:vista-summit-resolve;--prize-duration:1880ms;}
.award-viewer[data-prize="trophy"]{--prize-arrival:vista-crown-resolve;--prize-duration:1950ms;}
.award-viewer[data-prize="insignia"][data-stage="full"]{--prize-arrival:vista-insignia-resolve;--prize-duration:1290ms;}
@keyframes vista-master-resolve{0%{opacity:.18;transform:translateY(14px) scale(.965)}54%{opacity:1;transform:translateY(0) scale(.992)}100%{opacity:1;transform:none}}
@keyframes vista-summit-resolve{0%{opacity:.18;transform:translateY(20px) scale(.95)}46%{opacity:1;transform:translateY(3px) scale(.99)}100%{opacity:1;transform:none}}
@keyframes vista-crown-resolve{0%{opacity:.18;transform:translateY(24px) scale(.94)}60%{opacity:1;transform:translateY(3px) scale(.99)}100%{opacity:1;transform:none}}
@keyframes vista-insignia-resolve{0%{opacity:.18;transform:rotate(-3deg) scale(.95)}55%{opacity:1;transform:rotate(0) scale(.99)}100%{opacity:1;transform:none}}
