/* Quest field guide: native client atlas, sourced starts, compact reading. */
.quest-guide { --q-brass:#e1bd83; --q-mist:#accac0; --q-paper:#f0e9d8; }
.quest-eyebrow { margin:0 0 .45rem; color:var(--q-mist); font-size:.72rem; font-weight:700; letter-spacing:.19em; text-transform:uppercase; }
.quest-hero { display:flex; justify-content:space-between; align-items:end; gap:1.5rem; padding:1.2rem 0 1.65rem; border-bottom:1px solid #6b6955; }
.quest-hero h1 { margin:.12rem 0 .55rem; max-width:15ch; color:var(--q-paper); font:normal clamp(2.4rem,5vw,4.7rem)/.99 Georgia,serif; letter-spacing:-.04em; }
.quest-hero p:last-child { max-width:49ch; margin:0; color:#c8d4c9; font-size:1.02rem; line-height:1.55; }
.quest-hero-number { min-width:8rem; color:var(--q-brass); font:normal 2.7rem/.9 Georgia,serif; text-align:right; }
.quest-hero-number small { display:block; margin-top:.5rem; color:#b8c5bb; font:normal .72rem/1.2 system-ui,sans-serif; text-transform:uppercase; letter-spacing:.11em; }
.quest-atlas { margin:1.8rem 0 2.5rem; padding:1.5rem; border:1px solid #6b6d59; border-radius:4px; background:radial-gradient(circle at 30% 0%,#28453e99,transparent 55%),#192a2b; box-shadow:0 16px 38px #09131668,inset 0 1px #d5bd8c33; }
.quest-atlas-heading,.quest-results-heading { display:flex; justify-content:space-between; align-items:end; gap:1.5rem; }
.quest-atlas-heading h2,.quest-results-heading h2 { margin:0; color:var(--q-paper); font:normal clamp(1.6rem,2.4vw,2.25rem)/1.12 Georgia,serif; }
.quest-atlas-heading > p { max-width:43ch; margin:0; color:#bdcbc2; font-size:.82rem; line-height:1.55; }
.quest-atlas-layout { display:grid; grid-template-columns:minmax(0,700px) minmax(190px,1fr); gap:1.1rem; align-items:start; margin-top:1.25rem; }
.quest-atlas-map { position:relative; width:100%; aspect-ratio:1; overflow:hidden; border:1px solid #7e8d75; background:#12373c; box-shadow:0 9px 22px #07141594; }
.quest-atlas-canvas { display:block; width:100%; height:100%; object-fit:fill; }
.quest-world-tile { position:absolute; display:grid; place-items:center; overflow:hidden; isolation:isolate; color:#f9eedb; text-align:center; text-decoration:none; border:1px solid #e8c996; box-shadow:0 2px 6px #051a21aa; transition:transform .15s,box-shadow .15s,border-color .15s; }
.quest-world-tile img { position:absolute; inset:0; width:100%; height:100%; object-fit:fill; z-index:-2; }
.quest-world-tile::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(115deg,#10292bf2,#173b39e8); }
.quest-world-tile span { display:block; padding:.1rem .15rem 0; color:#f8e9c9; font:700 clamp(.55rem,1.05vw,.88rem)/1.05 Georgia,serif; text-shadow:0 1px 2px #000; }
.quest-world-tile small { display:block; margin-top:-.15rem; color:#b8e3cf; font:700 clamp(.44rem,.75vw,.68rem)/1 system-ui,sans-serif; }
.quest-world-tile:hover,.quest-world-tile:focus-visible { z-index:2; transform:scale(1.08); border-color:#fff1ca; box-shadow:0 0 0 2px #e4c384aa,0 6px 14px #061518; }
.quest-world-tile.is-selected { z-index:1; border-color:#fff3ce; box-shadow:0 0 0 2px #dbb878; }
.quest-world-tile.is-selected::before { background:linear-gradient(115deg,#624629e8,#23433ade); }
.quest-world-index { display:grid; gap:.3rem; padding:.25rem 0; }
.quest-world-row { display:grid; grid-template-columns:2.1rem 1fr; gap:0 .6rem; align-items:center; min-height:3.25rem; padding:.4rem .55rem; border-left:2px solid transparent; color:#e7ede3; text-decoration:none; }
.quest-world-row:hover,.quest-world-row:focus-visible { background:#29433f; }
.quest-world-row.is-selected { border-left-color:var(--q-brass); background:#334841; }
.quest-world-emblem { grid-row:1/3; display:grid; place-items:center; width:2rem; height:2rem; border:1px solid #7b8b73; border-radius:50%; color:var(--q-brass); font:normal .75rem Georgia,serif; }
.quest-world-row strong { align-self:end; font:normal 1rem Georgia,serif; }
.quest-world-row small { align-self:start; color:#afc4ba; font-size:.72rem; }
.quest-map-source { margin:1rem 0 0; padding-top:.85rem; border-top:1px solid #54645b; color:#aabbb3; font-size:.72rem; line-height:1.5; }
.quest-map-source code { color:#d5c6a9; }
.quest-results { margin-bottom:2rem; }
.quest-results-heading { padding-bottom:.9rem; border-bottom:1px solid #697263; }
.quest-results-heading > span { color:var(--q-mist); font-size:.82rem; white-space:nowrap; }
.quest-filters { display:grid; grid-template-columns:minmax(250px,1fr) 100px 135px auto; gap:.65rem; align-items:end; padding:1rem 0 .7rem; }
.quest-filters label { display:grid; gap:.3rem; color:#b6c7bc; font-size:.74rem; letter-spacing:.03em; }
.quest-filters input,.quest-filters select { box-sizing:border-box; width:100%; min-height:42px; padding:.5rem .65rem; border:1px solid #576d69; border-radius:3px; background:#14262b; color:#f2eee0; font:normal .88rem system-ui,sans-serif; }
.quest-filters button { min-height:42px; padding:.5rem 1rem; border:1px solid #d5b27b; border-radius:3px; background:#d5b27b; color:#172427; font-weight:700; cursor:pointer; }
.quest-more-filters { grid-column:1/5; color:#bad1c5; }
.quest-more-filters summary { width:max-content; cursor:pointer; font-size:.8rem; }
.quest-more-filters > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; padding:.75rem 0 .35rem; }
.quest-clear { grid-column:1/5; width:max-content; color:#c8d7ca; font-size:.78rem; }
.quest-list { border-top:1px solid #405758; }
.quest-list-entry { display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:1rem; align-items:center; min-height:76px; padding:.65rem .45rem; border-bottom:1px solid #3e5554; color:#f0eadc; text-decoration:none; transition:background .15s,padding-left .15s; }
.quest-list-entry:hover,.quest-list-entry:focus-visible { padding-left:.8rem; background:#253b3a; }
.quest-entry-art { display:grid; place-items:center; width:54px; height:54px; overflow:hidden; border:1px solid #786d54; border-radius:3px; background:radial-gradient(circle,#405148,#17282b); }
.quest-entry-art img { max-width:100%; max-height:100%; object-fit:contain; }
.quest-entry-art > span { color:#bdcbbd; font:normal 1.8rem Georgia,serif; }
.quest-entry-body { display:grid; gap:.25rem; min-width:0; }
.quest-entry-body strong { color:#f4ead7; font:normal 1.15rem/1.18 Georgia,serif; overflow-wrap:anywhere; }
.quest-entry-body small { color:#b4c7bb; font-size:.78rem; line-height:1.35; }
.quest-entry-meta { display:grid; justify-items:end; gap:.25rem; color:#ddb884; white-space:nowrap; font:normal .85rem Georgia,serif; }
.quest-entry-meta small { color:#b9c9c0; font:normal .66rem system-ui,sans-serif; text-transform:uppercase; letter-spacing:.08em; }
.quest-empty { padding:2.5rem 1rem; text-align:center; color:#b9c9be; }
.quest-empty > span { color:#d7b678; font:normal 2.7rem Georgia,serif; }
.quest-empty h3 { margin:.35rem 0; color:#efe7d5; font:normal 1.5rem Georgia,serif; }
.quest-empty a { color:#d9bc8e; }

/* Quest detail keeps the same visual grammar without forcing a long sidebar. */
.quest-detail .page-head { padding:.3rem 0 1.35rem; border-bottom:1px solid #6b6955; }
.quest-detail .page-head h1 { color:var(--q-paper); font:normal clamp(2.3rem,4vw,3.8rem)/1.05 Georgia,serif; }
.quest-detail .quest-detail-layout { margin-top:1.5rem; }
.quest-detail .quest-aside { padding:0 0 0 1.3rem; }
.quest-detail .quest-aside section { padding:1.05rem; border:1px solid #53675c; border-radius:3px; background:#1b302f; }
.quest-detail .quest-aside h2 { color:#ead3ac; font-size:1.3rem; }
.quest-detail .quest-aside strong { color:#f3ecdc; font:normal 1.04rem/1.25 Georgia,serif; }
.quest-detail .quest-aside a { color:#e4c28e; }
.quest-detail .quest-aside a:hover { color:#fff1cf; }
.quest-detail .quest-start-icon { width:56px; height:56px; object-fit:contain; border:1px solid #8a795c; border-radius:3px; background:#30433a; }
.quest-detail .quest-place-list { display:grid; gap:.45rem; margin:.4rem 0 0; padding:0; list-style:none; color:#c2d0c4; font-size:.78rem; }
.quest-detail .quest-place-list li { display:grid; gap:.1rem; padding-top:.4rem; border-top:1px solid #456057; }
.quest-detail .quest-place-list small { color:#9fb4a7; }
.quest-detail .quest-start-path { color:#c5d6c6; font-size:.79rem; line-height:1.45; }
.quest-detail .quest-start-path a { color:#b9ddcd; }
.quest-local-start { margin:0 0 1.6rem; padding:1.15rem; border:1px solid #6c745d; border-radius:3px; background:#1b3030; }
.quest-local-start > div:first-child { margin-bottom:.75rem; }
.quest-local-start h2 { margin:0; color:#f1e7d4; font:normal 1.6rem Georgia,serif; }
.quest-local-start > div:first-child > p:last-child { margin:.3rem 0 0; color:#b8c8bc; font-size:.8rem; }
.quest-local-map { margin:.45rem 0; border-top:1px solid #52645c; }
.quest-local-map summary { padding:.65rem .15rem; color:#e7d1a9; cursor:pointer; font:normal .95rem Georgia,serif; }
.quest-local-frame { position:relative; width:min(100%,520px); aspect-ratio:1; overflow:hidden; border:1px solid #8e9a80; background:#21393b; }
.quest-local-art { position:absolute; max-width:none; }
.quest-local-marker { position:absolute; z-index:2; display:grid; place-items:center; width:36px; height:36px; transform:translate(-50%,-50%); border:2px solid #fff4d5; border-radius:50%; background:#613d25; color:white; box-shadow:0 0 0 5px #0f2c2a99,0 3px 12px #000; }
.quest-local-marker img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.quest-local-caption { max-width:60ch; margin:.6rem 0 .2rem; color:#c1d0c4; font-size:.8rem; line-height:1.4; }
.quest-local-caption a { color:#e2c08c; }

@media (max-width:900px) { .quest-atlas-layout { grid-template-columns:minmax(0,1fr) 190px; } .quest-atlas-heading > p { display:none; } .quest-more-filters > div { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .quest-hero-number { display:none; } .quest-atlas { padding:.8rem; } .quest-atlas-layout { grid-template-columns:1fr; } .quest-world-index { grid-template-columns:repeat(2,minmax(0,1fr)); } .quest-world-row { min-height:2.6rem; } .quest-world-tile span { font-size:clamp(.42rem,2vw,.72rem); } .quest-world-tile small { font-size:clamp(.36rem,1.5vw,.58rem); } .quest-filters { grid-template-columns:1fr 1fr; } .quest-search,.quest-more-filters,.quest-clear { grid-column:1/3; } .quest-filters button { grid-column:1/3; } .quest-more-filters > div { grid-template-columns:1fr 1fr; } .quest-list-entry { grid-template-columns:48px minmax(0,1fr); gap:.7rem; } .quest-entry-art { width:46px; height:46px; } .quest-entry-meta { grid-column:2; display:flex; justify-content:start; gap:.6rem; } .quest-detail .quest-aside { padding:0; } }
@media (max-width:420px) { .quest-world-index { grid-template-columns:1fr 1fr; } .quest-world-row { padding:.3rem; gap:.1rem .4rem; } .quest-world-row strong { font-size:.86rem; } .quest-world-row small { font-size:.64rem; } .quest-world-emblem { width:1.7rem; height:1.7rem; } .quest-more-filters > div { grid-template-columns:1fr; } }
