#discovery-hud,.discovery-panel{--isle-main:#7955b3;--isle-accent:#ffe49b;--isle-ink:#493467;--isle-soft:#fff6ed;--isle-good:#b9f2ce;--isle-bad:#fb9baa}
#discovery-hud .ih-top{max-width:760px}
#discovery-hud .ih-status span{background:#7955b3;border-color:#e8c4eb}
#discovery-hud .ih-btn{background:#fff4df;border-color:#7955b3;color:#493467}
#discovery-hud .ih-ask-card{border-color:#ad90e0;background:#fff8f0}
#discovery-hud .ih-ask-prompt{color:#493467}
#discovery-hud .ih-ask-choices .ih-choice{min-height:64px;background:#f4e9fb;border:2px solid #ad90e0;color:#493467}
#discovery-hud .ih-banner small{display:block;font-size:16px;margin-top:8px}
.discovery-lead{font-size:1.15rem;line-height:1.55;color:#493467}
.discovery-passport{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.discovery-stamp{border:2px dashed #bfa6db;border-radius:22px;padding:20px;background:#faf0fc;color:#493467}
.discovery-stamp.earned{border-style:solid;border-color:#67bfae;background:#eefbf2}
.discovery-stamp>span{font-size:36px}.discovery-stamp h3{margin:8px 0}.discovery-stamp p{min-height:38px;line-height:1.45}
.discovery-stamp button,.discovery-panel .ip-body>button{min-height:48px;border-radius:14px;font:700 15px Nunito,system-ui;background:#7955b3;color:#fff;border:2px solid #493467;padding:10px 16px;cursor:pointer}
.discovery-panel .ip-body>button{margin:5px}.discovery-passport-note{line-height:1.6}
@media(max-width:620px){.discovery-passport{grid-template-columns:1fr}.discovery-stamp{padding:14px}.discovery-stamp p{min-height:0}#discovery-hud .ih-top{max-width:100%}}
/* Workshop controls sit above the walking surface and clear the town touch buttons. */
html.touch-play #discovery-hud:not(.asking){z-index:24}
html.touch-play #discovery-hud .ih-top{top:calc(66px + env(safe-area-inset-top));width:min(700px,calc(100% - 24px));max-width:none;align-items:flex-start}
html.touch-play #discovery-hud .ih-quest{flex:1;min-width:0}
html.touch-play #discovery-hud .ih-quest span{display:none}
html.touch-play #discovery-hud .ih-status{top:calc(103px + env(safe-area-inset-top));max-width:95vw;font-size:13px}
html.touch-play #discovery-hud .ih-bar{left:12px;right:12px;bottom:calc(150px + env(safe-area-inset-bottom));max-width:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
html.touch-play #discovery-hud .ih-btn{min-width:0;min-height:58px;border-radius:14px;padding:4px}
html.touch-play #discovery-hud .ih-btn b{font-size:23px}
html.touch-play #discovery-hud .ih-btn small{font-size:11px}
html.touch-play #discovery-hud .ih-read{top:142px;bottom:auto;left:12px;right:auto;transform:none;width:calc(100% - 24px);max-width:460px;box-sizing:border-box;padding:8px 12px}
html.touch-play #discovery-hud .ih-read b{font-size:14px}
html.touch-play #discovery-hud .ih-toast{font-size:16px;max-width:calc(100vw - 40px);width:fit-content;box-sizing:border-box;padding:8px 12px}
html.touch-play body:has(#discovery-hud:not([hidden])) #touch-orientation-note{display:none!important}
@media(orientation:landscape) and (max-height:520px){html.touch-play #discovery-hud .ih-bar{left:25%;right:12px;bottom:calc(140px + env(safe-area-inset-bottom))}html.touch-play #discovery-hud .ih-read{left:12px;top:139px;width:calc(25% - 24px);max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain}html.touch-play #discovery-hud .ih-top{width:min(640px,70%)}html.touch-play #discovery-hud .ih-toast{top:75%;max-width:54vw;font-size:14px}}
/* Observatory: four small star maps inside the question card. */
#discovery-hud .discovery-starmaps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:6px 0 10px}
#discovery-hud .discovery-starmaps figure{margin:0;text-align:center}
#discovery-hud .discovery-starmaps svg{width:100%;aspect-ratio:1;display:block}
#discovery-hud .discovery-starmaps rect{fill:#2e2447}
#discovery-hud .discovery-starmaps line{stroke:#a9e5e4;stroke-width:1.4;stroke-linecap:round}
#discovery-hud .discovery-starmaps circle{fill:#ffe49b}
#discovery-hud .discovery-starmaps figcaption{font:800 18px Fredoka,Nunito,system-ui;color:#493467;margin-top:2px}
/* Balloon flight: altimeter with the four clouds and the dock, and a big hold-to-heat button. */
#discovery-hud .discovery-flight{display:flex;gap:16px;align-items:stretch;margin:4px 0 6px}
#discovery-hud .df-meter{position:relative;width:74px;min-height:230px;border-radius:16px;background:linear-gradient(#bfe3f7,#eaf6fb 70%,#d7efe0);border:2px solid #ad90e0;flex:none}
#discovery-hud .df-mark{position:absolute;left:6px;transform:translateY(50%);font-size:20px;line-height:1}
#discovery-hud .df-dock{transform:none;bottom:2px!important}
#discovery-hud .df-balloon{position:absolute;right:6px;transform:translateY(50%);font-size:28px;font-style:normal;line-height:1;transition:bottom .08s linear}
#discovery-hud .df-side{flex:1;display:flex;flex-direction:column;justify-content:center;gap:10px;min-width:0}
#discovery-hud .df-heat{min-height:96px;border-radius:20px;border:3px solid #c0563f;background:#ffd3b8;color:#493467;font:800 30px Fredoka,Nunito,system-ui;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
#discovery-hud .df-heat b{font-size:18px}#discovery-hud .df-heat small{font-size:13px;font-weight:700;opacity:.75}
#discovery-hud .df-heat:active{background:#ffb48a;transform:scale(.98)}
#discovery-hud .df-state{margin:0;font:700 16px Nunito,system-ui;color:#493467;min-height:2.6em}
/* Passport collections. */
.discovery-sub{margin:16px 0 6px;color:#493467}
.discovery-planets{display:flex;flex-wrap:wrap;gap:6px}
.discovery-planets span{padding:5px 10px;border-radius:999px;background:#eee7f5;color:#8a7fa0;font:700 14px Nunito,system-ui}
.discovery-planets span.on{background:#d9f3ee;color:#2f5f57}
.discovery-book{columns:2;margin:4px 0;padding-left:18px;color:#493467;line-height:1.7}
@media(max-width:620px){#discovery-hud .discovery-starmaps{grid-template-columns:repeat(2,minmax(0,1fr))}#discovery-hud .df-meter{min-height:180px}.discovery-book{columns:1}}
#discovery-hud .df-stay{min-height:56px;border-radius:16px;border:2px solid #493467;background:#7955b3;color:#fff;font:800 18px Fredoka,Nunito,system-ui;cursor:pointer}
#discovery-hud .df-stay small{font-size:12px;opacity:.8}
/* Labs (chat 11): Mirror Lab, light mixer, Gravity Lab, constellation designer, projects and the room puzzle */
#discovery-dialog .luma-prompt{font-size:1.08rem;font-weight:700;color:#493467;margin:4px 0}
#discovery-dialog .luma-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0}
#discovery-dialog .luma-row button.on{background:#ffe49b;box-shadow:0 0 0 2px #493467 inset}
#discovery-dialog .luma-row button.off{opacity:.45;pointer-events:none}
#discovery-dialog .luma-result{min-height:1.4em;font-weight:800;color:#2f7a52}
#discovery-dialog .luma-role{background:#eef6ff;border-radius:10px;padding:6px 10px}
#discovery-dialog svg.luma-mirror{width:100%;max-width:520px;display:block;margin:6px auto;background:#2e2447;border-radius:12px}
#discovery-dialog .lm-cell{fill:#3b3058}#discovery-dialog .lm-wall{fill:#7b6a98}
#discovery-dialog .lm-crystal{stroke:#fff4df;stroke-width:.05;opacity:.75}#discovery-dialog .lm-crystal.lit{opacity:1;filter:drop-shadow(0 0 .15px #fff)}
#discovery-dialog .lm-laser{fill:#ef6f6f}#discovery-dialog .lm-beam{fill:none;stroke:#ff6b6b;stroke-width:.09;stroke-linecap:round;stroke-linejoin:round}
#discovery-dialog .lm-mirror{cursor:pointer}#discovery-dialog .lm-mirror rect{fill:#4d4170}#discovery-dialog .lm-mirror line{stroke:#bfe9ff;stroke-width:.12;stroke-linecap:round}
#discovery-dialog .lm-mirror text{font:800 .28px Fredoka,Nunito,system-ui;fill:#ffe49b}
#discovery-dialog .luma-mix{display:flex;align-items:center;gap:8px}#discovery-dialog .luma-mix span{width:28px;height:28px;border-radius:50%;border:2px solid #493467;display:inline-block}
#discovery-dialog svg.luma-orbit{width:100%;max-width:360px;display:block;margin:6px auto;background:#1d1730;border-radius:50%}
#discovery-dialog .lo-sky{fill:#1d1730}#discovery-dialog .lo-ring{fill:none;stroke:#3b3058;stroke-width:.04}
#discovery-dialog .lo-star{fill:#ffd45e}#discovery-dialog .lo-big{fill:#ffb347}#discovery-dialog .lo-small{fill:#fff1a8}
#discovery-dialog .lo-path{fill:none;stroke:#77d4cd;stroke-width:.12}#discovery-dialog .lo-escape{stroke:#ef9a6f;stroke-dasharray:.4 .25}#discovery-dialog .lo-crash{stroke:#ef6f6f}
#discovery-dialog .lo-planet{fill:#6aa8f0}#discovery-dialog .lo-speed{stroke:#fff4df;stroke-width:.1}
#discovery-dialog .luma-designer{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}
#discovery-dialog .luma-dots{display:grid;grid-template-columns:repeat(var(--n),34px);gap:4px}
#discovery-dialog .luma-dots button{width:34px;height:34px;border-radius:50%;padding:0;font-weight:800}#discovery-dialog .luma-dots button.on{background:#ffe49b}
#discovery-dialog svg.luma-design{width:200px;height:200px}#discovery-dialog svg.luma-design rect{fill:#2e2447}#discovery-dialog svg.luma-design polyline{fill:none;stroke:#a9e5e4;stroke-width:.08}#discovery-dialog svg.luma-design circle{fill:#ffe49b}
#discovery-dialog .luma-projects li{display:flex;gap:6px;align-items:center;margin:4px 0}
#discovery-dialog .luma-room{margin-top:10px;padding:10px;border-radius:12px;background:#f3eefc}
#discovery-hud .df-clock{font:800 18px Fredoka,Nunito,system-ui;color:#493467;margin:4px 0 0}
@media (max-width:420px){#discovery-dialog .luma-dots{grid-template-columns:repeat(var(--n),28px)}#discovery-dialog .luma-dots button{width:28px;height:28px}}
