/* Skill roadmaps and quest guidance: static art, scoped DOM, no ambient animation. */
.guidance { --guide-gold:#e8c778; --guide-soft:#a5b9aa; --guide-line:#42533e; }
.guidance button { font:inherit;cursor:pointer; }
.guidance button:focus-visible,#pinned-adventure button:focus-visible { outline:2px solid #ffe3a0;outline-offset:2px; }
.guidance-intro { padding:8px 4px 17px; }
.guidance-intro>small,.guide-hero small,.guide-milestone>small,.guide-reward>small { color:var(--guide-gold);font-size:10px;font-weight:800;letter-spacing:.14em; }
.guidance-intro h3 { font-family:Georgia,serif;font-size:24px;color:#f5e7bd;margin:6px 0; }
.guidance-intro p { color:var(--guide-soft);font-size:12px;margin:0; }
.guidance-layout { display:grid;grid-template-columns:minmax(150px,.82fr) minmax(0,1.65fr);gap:12px;margin-top:12px;align-items:start; }
.guide-list { min-width:0;display:flex;flex-direction:column;gap:6px; }
.guidance .skill,.guide-quest { width:100%;display:flex;align-items:center;gap:10px;min-height:66px;text-align:left;border:1px solid #304435;border-radius:10px;padding:11px 10px;background:#11231c;color:#ebefdf; }
.guidance .skill:hover,.guide-quest:hover { background:#25382a;border-color:#a28c52; }
.guidance .skill[aria-pressed=true],.guide-quest[aria-pressed=true] { border-color:#c6ab65;background:linear-gradient(110deg,#3d4530,#24372b);box-shadow:inset 3px 0 #edcc75; }
.guidance .skill .smid { flex:1;min-width:0; }
.guidance .skill .sname { font-size:12px; }
.guidance .skill .slvl { font-size:11px;white-space:nowrap; }
.guidance .skill .srow { flex-wrap:wrap;gap:4px; }
.guidance .skill .sbar { margin-top:7px; }
.guide-detail { min-width:0;padding:20px;border:1px solid #526044;border-radius:14px;background:radial-gradient(ellipse at 90% 0,#34432a 0,transparent 52%),#102019; }
.guide-hero { display:flex;align-items:center;gap:16px;margin-bottom:18px; }
.guide-hero>div { min-width:0; }
.guide-hero h3 { margin:5px 0;color:#fff1cc;font-family:Georgia,serif;font-size:25px;line-height:1.15;overflow-wrap:anywhere; }
.guide-hero p { color:var(--guide-soft);font-size:12px;margin:7px 0 0; }
.guide-medallion { display:grid;place-items:center;flex:none;width:80px;height:80px;border-radius:50%;border:2px solid #bda465;background:radial-gradient(circle,#3e533a,#11231b 75%);box-shadow:0 0 0 4px #bda46518; }
.guide-portrait { overflow:hidden; }
.guide-portrait img { width:100%;height:100%;object-fit:cover; }
.guide-meter { height:7px;background:#080f0b;border-radius:8px;overflow:hidden; }
.guide-meter i { display:block;height:100%;background:linear-gradient(90deg,#819f53,#edcd7a);border-radius:8px; }
.guide-xp { color:var(--guide-soft);font-size:11px;margin:7px 0 19px; }
.guide-milestone { padding:16px;border:1px solid #ae92594d;border-radius:10px;background:linear-gradient(115deg,#ddbc6920,#182d2110); }
.guide-milestone h4 { color:#f2e6bc;font-size:17px;line-height:1.45;margin:7px 0; }
.guide-milestone p { color:#b7c4b3;font-size:12px;line-height:1.5;margin:6px 0 12px; }
.guidance .guide-gold { background:linear-gradient(#ffe69a,#ebc563);color:#272313;border:1px solid #efd68b;border-radius:8px;padding:11px 15px;min-height:42px;font-weight:800;box-shadow:0 3px 9px #0003; }
.guidance button:disabled { cursor:default;opacity:.45; }
.guide-subhead { display:flex;gap:10px;align-items:center;justify-content:space-between;margin:20px 0 8px; }
.guide-subhead h4,.guide-check-title { margin:0;color:#ecdfb6;font-family:Georgia,serif;font-size:16px; }
.guide-subhead button,.guide-actions>button:not(.guide-gold),.guide-more { padding:9px 10px;border:1px solid #667552;border-radius:8px;background:#263b2d;color:#eadcb2;font-size:11px;min-height:40px; }
.guide-note { color:#9daf9e;font-size:11px;line-height:1.5;margin:8px 0 12px; }
.guide-unlock { display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #52604450; }
.guide-item-art { flex:none;width:48px;height:48px;display:grid;place-items:center;background:#071510;border:1px solid #465039;border-radius:9px; }
.guide-unlock>div { flex:1;min-width:0; }
.guide-unlock b { font-size:12px;color:#e3e9d7; }
.guide-unlock small { display:block;font-size:10px;color:#9bae9e;line-height:1.5; }
.guide-unlock button { background:none;border:0;padding:7px 0;color:#e8ce8b;font-size:11px;min-height:32px; }
.guide-level { font-size:12px;color:#f0d48b;white-space:nowrap;text-align:right; }
.guide-level.met { color:#a6d681; }
.guide-more { width:100%;margin-top:12px; }
.guide-empty { padding:15px;color:#aabdac;font-size:12px;line-height:1.5; }
.guide-quest>span:nth-child(2) { flex:1;min-width:0; }
.guide-quest b { font-size:12px;line-height:1.4;display:block; }
.guide-quest small { color:#adbeaa;display:block;font-size:10px;margin-top:4px; }
.guide-quest.guide-done { opacity:.6; }
/* QuatroArt, 2026-10-08: a reward waiting should read at a glance, and a finished quest should say so */
.guide-quest.guide-ready { border-color:#a8903f;box-shadow:inset 3px 0 #f0c75e; }
.guide-quest.guide-ready small { color:#ffd86b;font-weight:800; }
.guide-quest.guide-done small { color:#9fd67a; }
.guide-quest.guide-done small .gi { color:#8fdc6a;margin-right:4px;vertical-align:-1px; }
.guide-check-title { display:flex;justify-content:space-between;margin-top:21px; }
.guide-check-title span { font:11px system-ui;color:#99ad9d; }
.guide-checklist { list-style:none;padding:0;margin:12px 0; }
.guide-checklist>li { display:flex;gap:10px;padding:11px 0;font-size:12px;line-height:1.5;color:#edf0de; }
.guide-checklist>li>span { color:#efce7a; }
.guide-checklist>li>div { flex:1;min-width:0; }
.guide-checklist .checked { color:#8b9e8d; }
.guide-checklist .checked>span { color:#a0c882; }
.guide-needs { margin-top:12px; }
.guide-needs>div { display:flex;align-items:center;gap:8px;background:#0c1a15;border:1px solid #45503a;border-radius:8px;margin-top:6px;padding:9px; }
.guide-needs span { flex:1; }
.guide-needs small { display:block;color:#a4c584;font-size:10px; }
.guide-needs .missing small { color:#e9b278; }
.guide-needs b { white-space:nowrap;font-size:11px; }
.guide-reward { display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-top:1px solid #526044;margin-top:19px;padding-top:16px; }
.guide-reward>small { width:100%; }
.guide-reward b { display:flex;align-items:center;gap:8px;color:#dfd9b6;font-size:12px; }
.guide-actions { display:flex;flex-wrap:wrap;gap:8px;margin-top:20px; }
.guide-actions>button { flex:1; }
.guide-back { display:none; }
#pinned-adventure { display:flex;gap:2px;border-top:1px solid #c6aa6255;margin-top:10px;padding-top:9px; }
#pinned-adventure[hidden] { display:none; }
#pinned-adventure button { border:0;background:none;color:#e9dbad;padding:0;cursor:pointer;text-align:left; }
#pinned-adventure [data-goal=open] { display:flex;gap:8px;align-items:center;min-width:0;flex:1; }
#pinned-adventure [data-goal=open]>span:last-child { min-width:0; }
#pinned-adventure small { display:block;font-size:8px;letter-spacing:.1em;color:#c7b578; }
#pinned-adventure b { display:block;font-size:11px;line-height:1.4;margin:4px 0; }
#pinned-adventure [data-goal=open]>span>span { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.4;color:#b0bea6; }
#pinned-adventure [data-goal=clear] { align-self:start;min-width:25px;min-height:32px;font-size:20px; }
#daily-tracker.dq-collapsed:has(#pinned-adventure:not([hidden])) { width:210px; }
#hud:has(#dock.win-floating:not(.hidden):not(.collapsed) .guidance:not(.hidden)) #pinned-adventure { display:none; }
@media (max-width:760px), (max-height:500px) {
 .guidance-layout { display:block; }
 .guidance-layout:not(.guide-sheet)>.guide-detail { display:none; }
 .guidance-layout.guide-sheet>.guide-list { display:none; }
 .guide-detail { padding:15px; }
 .guidance-intro { padding-bottom:12px; }
 .guidance-intro h3 { font-size:21px; }
 .guide-back { display:block;border:0;background:none;padding:0 0 16px;color:#e2cd8e;font-size:12px;min-height:42px; }
 .guide-hero { gap:12px; }
 .guide-hero h3 { font-size:23px; }
 .guide-medallion { width:62px;height:62px; }
 .guide-quest { min-height:68px; }
 .guide-subhead { gap:6px; }
 .guide-subhead h4 { font-size:15px; }
 .guide-unlock { gap:8px; }
 .guide-item-art { width:40px; }
 #daily-tracker.dq-collapsed:has(#pinned-adventure:not([hidden])) { width:44vw;max-width:190px; }
 .guide-actions>button { min-height:44px; }
}
@media (max-width:350px) { .guide-detail{padding:11px}.guide-hero h3{font-size:20px}.guide-hero{gap:9px}.guide-medallion{width:50px;height:50px}.guide-milestone{padding:11px}.guide-item-art{width:34px}.guide-unlock b{font-size:11px}.guide-level{font-size:11px} }

#dock:not(.win-floating) .guidance-layout { display:block; }
#dock:not(.win-floating) .guidance-layout:not(.guide-sheet)>.guide-detail { display:none; }
#dock:not(.win-floating) .guidance-layout.guide-sheet>.guide-list { display:none; }
#dock:not(.win-floating) .guide-back { display:block;background:none;border:0;color:#e2cd8e;padding:0 0 12px; }
@media(max-width:760px),(max-height:500px){#dock.win-floating:has(.guidance:not(.hidden)){width:calc(100vw - 24px)!important;left:12px!important;top:20px!important;bottom:auto!important;transform:none!important;height:calc(100dvh - 40px)!important;max-height:calc(100dvh - 40px)!important}body:has(#dock.win-floating .guidance:not(.hidden)) #touch-actions{display:none!important}body:has(#dock.win-floating .guidance:not(.hidden)) #buff-bar{visibility:hidden}}

@media(min-width:761px) and (min-height:501px){.guidance .guide-list{max-height:610px;overflow-y:auto;scrollbar-width:thin}}
@media(max-width:760px),(max-height:500px){
 #dock.win-floating:has(.guidance:not(.hidden)) .dock-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}
 #dock.win-floating:has(.guidance:not(.hidden)) .dock-tab{font-size:9px;min-height:44px;padding:4px 1px}
 .guidance:has(.guide-sheet)>.guidance-intro{display:none}
 .guidance:has(.guide-sheet)>.stance-row{display:none}
 .guidance .guide-detail{padding:12px}
 .guide-milestone{padding:12px}
 .guide-hero{margin-bottom:14px}
 .guide-hero h3{font-size:22px}
 .guide-check-title{margin-top:16px}
 .guide-checklist>li{padding:8px 0}
}

/* Desktop retains its compact list; details use the same independent window as Bag items. */
@media(min-width:761px) and (min-height:501px){
 #dock .guidance-layout{display:block}
 #dock .guidance-layout.guide-sheet>.guide-list,
 #dock:not(.win-floating) .guidance-layout.guide-sheet>.guide-list{display:flex}
 #dock .guidance-intro{display:none}
 #dock .guidance .skill,#dock .guide-quest{min-height:48px;padding:8px;gap:8px}
 #dock .guidance .guide-list{max-height:none;overflow:visible}
}
.guide-popup{width:370px;max-height:min(620px,calc(100dvh - 24px));padding:0;font:12px var(--font)}
.guide-popup>.detail-close{position:sticky;top:6px;align-self:flex-end;margin:4px 5px -36px 0;z-index:2;flex-shrink:0;background:#102019;border:1px solid #667552;border-radius:7px}
.guide-popup .guide-hero{padding:14px 44px 12px 14px;margin:0;border-bottom:1px solid #b6a56c40;gap:10px}
.guide-popup .guide-hero h2{font:bold 20px/1.2 Georgia,serif;color:#fff1cc;margin:5px 0;overflow-wrap:anywhere}
.guide-popup .guide-hero small{font-size:9px}
.guide-popup .guide-medallion{width:48px;height:48px}
.guide-popup .guide-medallion>.gi{width:34px!important;height:34px!important}
.guide-popup .guide-detail{border:0;border-radius:0;background:none;padding:12px 14px}
.guide-popup .guide-milestone{padding:10px}
.guide-popup .guide-milestone h4{font-size:14px;margin:5px 0}
.guide-popup .guide-milestone p{font-size:12px;margin:5px 0 8px}
.guide-popup .guide-xp{margin-bottom:12px}
.guide-popup .guide-actions{margin:0 0 12px;gap:6px}
.guide-popup .guide-actions>button{width:auto;min-height:34px;justify-content:center}
.guide-popup button.guide-gold{font-size:12px;min-height:34px;padding:8px 10px;color:#272313}
.guide-popup .guide-subhead{margin-top:14px;gap:6px}
.guide-popup .guide-subhead button{width:auto;min-height:30px;font-size:10px;padding:6px}
.guide-popup .guide-unlock{padding:8px 0;gap:8px}
.guide-popup .guide-unlock button{padding:5px 0;min-height:28px;font-size:11px;color:#e8ce8b}
.guide-popup .guide-check-title{margin-top:14px}
