/* Shared discovery/collection inspection controls. */
.discovery-stage .discovery-title{top:max(calc(env(safe-area-inset-top) + 30px),10%)}
.discovery-stage .discovery-title span{display:inline-block;padding:10px 23px;border:1px solid #e4c36c;border-radius:30px;background:linear-gradient(#075b50f5,#003b36f5);box-shadow:0 3px 12px #001d22b0,inset 0 1px 2px #ffe9a577;font:normal clamp(19px,5.6vw,27px)/1.15 'Lilita One',sans-serif;letter-spacing:.035em;color:#fff3ce;text-shadow:0 2px 2px #001b22}
.discovery-stage.discovery-collection .discovery-title span{font-size:clamp(14px,4vw,19px)}
.discovery-name-row{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 auto 8px;max-width:100%}
.discovery-stage .discovery-name-row h1{margin:0;min-width:0;font-size:clamp(26px,7.1vw,42px);overflow-wrap:anywhere;text-shadow:0 2px 5px #001d22,0 0 20px #001d22}
.discovery-stage .discovery-information{position:relative;inset:auto;flex:0 0 44px;width:44px;height:44px;min-height:44px;min-width:44px;padding:2px;border:0;border-image:none;background:none;box-shadow:none;pointer-events:auto;visibility:hidden;filter:drop-shadow(0 2px 3px #001b22aa)}
.discovery-information img{display:block;width:100%;height:100%;object-fit:contain}
.discovery-stage[data-phase=inspect] .discovery-information{visibility:visible}
.discovery-information:active{scale:.91}.discovery-information:focus-visible{outline:2px solid #fff2bd;outline-offset:3px;border-radius:50%}
.discovery-gesture{position:absolute;z-index:5;top:57%;left:50%;width:120px;height:52px;translate:-50% 0;pointer-events:none;opacity:0;transition:opacity .3s}
.discovery-stage[data-phase=inspect]:not(.gesture-done):not(.facts-open) .discovery-gesture{opacity:1}
.discovery-gesture img{position:absolute;left:44px;top:0;height:47px;width:32px;object-fit:contain;transform-origin:50% 90%}
.discovery-gesture i{position:absolute;left:12px;right:12px;top:8px;height:17px;border-bottom:2px solid #fff0b89c;border-radius:50%;box-shadow:0 3px 8px #002821}
.discovery-stage[data-phase=inspect] .discovery-gesture img{animation:inspect-swipe 2.6s ease-in-out 3 both}
.discovery-stage[data-phase=inspect] .discovery-gesture{animation:inspect-hint-fade 8.2s linear forwards}
@keyframes inspect-swipe{0%,12%{transform:translateX(-35px) rotate(-13deg);opacity:0}20%{opacity:1}65%,80%{transform:translateX(35px) rotate(13deg);opacity:1}100%{transform:translateX(35px) rotate(13deg);opacity:0}}
@keyframes inspect-hint-fade{0%,92%{visibility:visible}100%{visibility:hidden}}
.discovery-stage.gesture-done .discovery-gesture,.discovery-stage.facts-open .discovery-gesture{display:none}
.discovery-stage .discovery-details{position:absolute;inset:auto;top:50%;left:50%;translate:-50% -50%;transform:none;width:min(calc(100% - 28px),380px);max-height:calc(100% - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));box-sizing:border-box;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:25px 24px 22px;z-index:10;background:#fff3da;border:2px solid #d6b56b;border-image:none;border-radius:23px;box-shadow:0 0 0 100vmax #001c24b8,0 9px 40px #0009;color:#06483e;text-align:left;user-select:text;-webkit-user-select:text}
.discovery-details[hidden]{display:none}
.discovery-details .facts-close{position:absolute;right:8px;top:8px;width:44px;height:44px;min-height:44px;border:0;padding:0;background:transparent url('assets/comic/close.webp') center/36px no-repeat;box-shadow:none}
.discovery-details .facts-eyebrow{font:normal 12px/1.3 'Lilita One',sans-serif;letter-spacing:.12em;margin:5px 40px 8px 0;color:#527068}
.discovery-details h2{font:normal clamp(25px,7vw,32px)/1.12 'Lilita One',sans-serif;margin:0 20px 18px 0;overflow-wrap:anywhere}
.gem-facts{padding:0;list-style:none;margin:0}.gem-facts li{font:15px/1.5 system-ui,sans-serif;padding:0 0 14px 17px;position:relative}.gem-facts li:before{content:'◆';position:absolute;left:0;top:3px;color:#b48b35;font-size:10px}
.facts-sources{border-top:1px solid #d9c691;padding-top:10px;font:13px/1.5 system-ui,sans-serif}.facts-sources summary{cursor:pointer;min-height:32px;line-height:32px;font-weight:700}.facts-sources a{display:block;color:#07584e;text-decoration:underline;padding:7px 0;overflow-wrap:anywhere}
.discovery-details .recipe{border-top:1px solid #d9c691;margin-top:10px;padding-top:12px;color:#095044}.discovery-details .recipe img{width:36px;height:40px}
@media(prefers-reduced-motion:reduce){.discovery-stage[data-phase=inspect] .discovery-gesture,.discovery-stage[data-phase=inspect] .discovery-gesture img{animation:none}.discovery-gesture img{transform:rotate(-10deg)}}
@media(max-height:550px){.discovery-stage .discovery-title{top:18px}.discovery-stage .discovery-title span{font-size:17px;padding:7px 17px}.discovery-gesture{top:52%;scale:.8}.discovery-stage .discovery-name-row h1{font-size:24px}.discovery-stage .discovery-details{padding:19px}.gem-facts li{font-size:14px}}
