/* Discoveries occupy a small part of the map; controls stay beneath the image. */
.island-map-art .map-quest-marker{position:absolute;width:clamp(50px,7vw,86px);height:clamp(50px,7vw,86px);border:0;background:transparent;box-shadow:none;border-radius:12px;padding:0;transform:translate(-50%,-50%);z-index:4;cursor:pointer;filter:drop-shadow(0 4px 4px #063c4855)}
.map-quest-object{display:block;width:100%;height:100%;background-image:url('/assets/island/mysteries/discoveries.webp');background-size:200% 200%;background-repeat:no-repeat;background-position:0 0;transition:transform .2s}
.map-quest-marker[data-marker=tracks] .map-quest-object{background-position:100% 0}
.map-quest-marker[data-marker=boat] .map-quest-object{background-position:0 100%}
.map-quest-marker[data-marker=beacon] .map-quest-object{background-position:100% 100%}
.map-quest-marker:is([data-marker=ruins],[data-marker=chart],[data-marker=plants],[data-marker=beast]) .map-quest-object{background-size:cover;background-position:center;border:3px solid #fce6ac;border-radius:50%}
.map-quest-marker:hover .map-quest-object{transform:scale(1.13)}
.map-quest-marker:focus-visible{outline:3px solid #fff8df;outline-offset:4px}
.map-quest-dot{position:absolute;right:-1px;bottom:0;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#ff701e;border:2px solid #fff5dc;color:#fff;font:700 17px Arial}
.map-quest-marker.is-solved .map-quest-dot{background:#086755}
.map-quest-panel{margin:22px 0 28px;border:1px solid #c3d6c8;border-radius:18px;background:linear-gradient(110deg,#fff8e5,#e9f7ed);padding:clamp(18px,3vw,30px);text-align:left;color:#063c48}
.map-quest-intro{display:flex;align-items:center;justify-content:space-between;gap:22px}.map-quest-intro h3{font:700 clamp(24px,3vw,34px) Georgia,serif;margin:8px 0}.map-quest-intro p{margin:5px 0;line-height:1.6}.map-quest-intro .btn{flex-shrink:0}
.map-quest-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:17px 0;border-bottom:1px solid #bad0bd;font-size:14px}.map-quest-journal{padding-top:15px}.map-quest-journal summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;gap:8px}.map-quest-journal summary::before{content:'＋';font-size:20px}.map-quest-journal[open] summary::before{content:'−'}
.map-quest-journal ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;padding:0;gap:8px}.map-quest-journal li{min-width:0}.map-quest-journal li button{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:52px;text-align:left;padding:12px;border:1px solid #bed4c9;border-radius:9px;background:#ffffff90;color:#063c48;font:inherit;cursor:pointer}.map-quest-journal small{font-size:12px;flex-shrink:0}.map-quest-journal p{font-size:13px}
.map-quest-dialog{width:min(740px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #d2e0d0;border-radius:20px;background:#fff9eb;color:#063c48;box-shadow:0 20px 100px #00262a66;overflow:auto;overscroll-behavior:contain}.map-quest-dialog::backdrop{background:#002d34ba;backdrop-filter:blur(4px)}
.map-quest-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;background:#063c48;color:#fff7e2;position:sticky;top:0;z-index:2}.map-quest-dialog-head .kicker{color:inherit;letter-spacing:.07em;font-size:12px;line-height:1.5}.map-quest-dialog-head .btn{min-height:44px;flex-shrink:0;font-size:13px;padding:9px 12px;background:#fff7e2;color:#063c48;border:0}
.map-quest-scene{position:relative;margin:0;overflow:hidden;height:clamp(170px,30vh,280px)}.map-quest-scene img{width:100%;height:100%;object-fit:cover;display:block}.map-quest-scene figcaption{position:absolute;bottom:10px;right:12px;padding:5px 8px;border-radius:5px;background:#fef7ded9;font-size:12px}
.map-quest-dialog-body{padding:clamp(20px,4vw,32px)}.map-quest-dialog h2{font:700 clamp(27px,4vw,38px)/1.12 Georgia,serif;margin:12px 0 18px}.map-quest-story{line-height:1.7;font-size:17px}.map-quest-dialog fieldset{border:0;padding:0;margin:20px 0}.map-quest-dialog legend{font-weight:700;margin-bottom:12px}.map-quest-dialog label{display:block;font-weight:600;margin:10px 0}.map-quest-dialog input:not([type=radio]){display:block;width:100%;min-height:48px;padding:12px;border:1px solid #93bcb0;background:#fff;border-radius:8px;font:700 22px monospace;color:#063c48}
.map-quest-choice{display:flex!important;gap:12px;align-items:center;padding:16px;background:#fff;border:1px solid #c7d9c9;border-radius:9px;cursor:pointer;line-height:1.5}.map-quest-choice:has(:checked){border-color:#00798a;background:#dbf4e9}.map-quest-choice input{accent-color:#00798a;width:18px;height:18px;flex-shrink:0}
.map-quest-hint{margin:22px 0}.map-quest-hint summary{min-height:44px;cursor:pointer;line-height:1.5;color:#166857}.map-quest-hint p{background:#e5f0df;padding:16px;border-radius:8px;line-height:1.6}.map-quest-result{padding:22px;background:#e0f1d9;border:1px solid #a7c9a2;border-radius:12px;line-height:1.7}.map-quest-result:focus{outline:2px solid #0b8270;outline-offset:4px}.map-quest-success{font-weight:700;line-height:1.6}.map-fiction{font-size:13px;border-left:3px solid #4f8975;padding:8px 14px;background:#edf2df;line-height:1.6}
.map-symbols,.map-directions{display:flex;gap:8px;flex-wrap:wrap}.map-symbols button,.map-directions button,.map-coordinate-grid button{min-width:48px;min-height:48px;border:1px solid #a9c5b6;border-radius:9px;background:#fff;color:#063c48;cursor:pointer;font:700 24px Georgia}.map-symbols button{flex:1;padding:12px 5px}.map-symbols span{font-size:30px}.map-symbols small{font:500 14px Arial;display:block;margin-top:8px}.map-directions button{width:55px;font-family:Arial}
#mapQuestSequence{display:block;min-height:58px;padding:12px;font:700 28px Georgia;letter-spacing:8px}.map-coordinate-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-width:350px}.map-coordinate-grid button[aria-pressed=true]{background:#00798a;color:#fff;border-color:#00798a}.map-maze{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;background:#789990;padding:6px;max-width:330px;border-radius:10px}.map-maze span{aspect-ratio:1;display:grid;place-items:center;background:#f6e9c0;font:700 24px Georgia;border-radius:4px}.map-maze .maze-wall{background:#194a49}.map-maze .maze-visited{background:#b2dbc5}.map-maze .maze-current{background:#00a4b4;color:#fff}.map-quest-small-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.map-quest-small-actions .btn{font-size:13px;padding:10px}
.map-runes{display:flex;gap:14px;margin:24px 0}.map-runes button{min-width:70px;min-height:70px;border:1px solid #49826a;border-radius:50% 10% 50% 10%;color:#fff5da;background:#226f4f;font:700 35px Georgia;cursor:pointer}.map-runes button.revealed{border-radius:7px;background:#ceceb7;border-color:#969d86;color:#234b49;opacity:1}.map-quest-dialog button:disabled{cursor:default}.map-quest-dialog :focus-visible,.map-quest-panel :focus-visible{outline:3px solid #168c9b;outline-offset:3px}#mapQuestStatus{line-height:1.5;min-height:24px}
@media(prefers-reduced-motion:no-preference){body[data-rio-motion=on] .map-quest-marker[data-marker=boat] .map-quest-object{animation:quest-boat 4s ease-in-out infinite}body[data-rio-motion=on] .map-quest-marker[data-marker=beacon] .map-quest-object{animation:quest-glow 2s ease-in-out infinite}@keyframes quest-boat{50%{transform:translateY(-6px) rotate(-4deg)}}@keyframes quest-glow{50%{filter:drop-shadow(0 0 10px #6ff8ff);transform:scale(1.06)}}}
@media(max-width:600px){.map-quest-intro{align-items:stretch;flex-direction:column;gap:12px}.map-quest-journal ol{grid-template-columns:1fr}.map-quest-meta{flex-direction:column;font-size:13px}.map-quest-dialog-head .kicker{font-size:12px}.map-symbols{gap:5px}.map-symbols small{font-size:14px}.map-quest-dialog-body{padding:20px}.map-quest-story{font-size:16px}}

body[data-rio-motion=on] .life-map-marker.map-quest-marker{animation:none}
