/* Original MaNaS layout. Scoped tokens preserve the existing game chrome. */
.quest-series{--qs-paper:#fffcf6;--qs-surface:#fff;--qs-soft:#f5f0e7;--qs-line:#dfd7c8;--qs-ink:#253c36;--qs-muted:#667168;--qs-green:#226a50;--qs-green-soft:#eaf4ed;--qs-bronze:#825b2d;--qs-gold:#d7ba80;--qs-warning:#805218;--qs-warning-bg:#fff5dc;color:var(--qs-ink);background:var(--qs-paper);border:1px solid var(--qs-line);border-radius:16px;overflow:hidden;box-shadow:0 12px 35px #273c3210;font-family:inherit;min-width:0;line-height:1.6}
.quest-series *{box-sizing:border-box}.quest-series [hidden]{display:none!important}.quest-series a{color:var(--qs-green);text-decoration:none}.quest-series a:hover{text-decoration:underline}.quest-series :where(a,button,summary):focus-visible{outline:3px solid #247cbd;outline-offset:3px;border-radius:5px}.quest-series :where(h2,h3,h4,p){overflow-wrap:anywhere}.quest-series h2,.quest-series h3,.quest-series h4{color:var(--qs-ink)}.quest-series form{margin:0}.quest-series img{max-width:100%;object-fit:contain}.qs-eyebrow{margin:0 0 8px;font-size:10px;font-weight:800;letter-spacing:1.4px;color:var(--qs-bronze)}
.qs-hero{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:206px;padding:28px 34px;background:linear-gradient(105deg,#e9eee1 0%,#f7f5ea 52%,#c7d3bf 100%);border-bottom:1px solid var(--qs-line);isolation:isolate}.qs-hero-copy{position:relative;z-index:1;max-width:66%}.qs-hero h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(25px,2.5vw,33px);font-weight:600;line-height:1.18;letter-spacing:-.6px;margin:0 0 12px}.qs-hero-copy>p:not(.qs-eyebrow){font-size:13px;margin:0;color:#4d6155;max-width:450px}.qs-hero-meta{display:flex;gap:8px 18px;flex-wrap:wrap;margin-top:20px;font-size:11px;color:#3b5547}.qs-hero-meta>span:first-child{border-left:3px solid #987340;padding-left:9px}.qs-hero-scene{position:absolute;right:5px;bottom:3px;width:37%;height:200px;z-index:0;background:url("village/landscape.svg") center/contain no-repeat}.qs-hero-scene img{position:absolute;filter:drop-shadow(0 7px 4px #263e3526)}.qs-hero-hq{width:220px;height:198px;right:6%;bottom:0}.qs-hero-barracks{width:135px;height:121px;right:65%;bottom:-4px}
.qs-tabs{display:flex;align-items:center;gap:5px;padding:0 24px;background:var(--qs-surface);border-bottom:1px solid var(--qs-line)}.qs-tabs>a{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:59px;padding:10px 18px;font-size:13px;font-weight:800;color:var(--qs-muted);white-space:nowrap}.qs-tabs>a[aria-current=page]{color:var(--qs-green)}.qs-tabs>a[aria-current=page]::after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--qs-green)}.qs-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:6px;background:var(--qs-green-soft);color:var(--qs-green);font-size:11px}.qs-sync{margin-left:auto;font-size:10px;color:var(--qs-muted);font-variant-numeric:tabular-nums}
.qs-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);min-width:0}.qs-sidebar{border-right:1px solid var(--qs-line);background:var(--qs-soft);padding:22px 16px}.qs-side-heading{margin:0 9px 13px;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--qs-muted)!important}.qs-series-list{display:grid;gap:9px}.qs-series-link{display:flex;align-items:center;gap:9px;min-height:82px;padding:10px;border:1px solid transparent;border-radius:10px;color:var(--qs-ink)!important;background:color-mix(in srgb,var(--qs-surface) 55%,transparent)}.qs-series-link:hover{text-decoration:none!important;border-color:var(--qs-line)}.qs-series-link[aria-current=true]{border-color:#83a292;background:var(--qs-surface);box-shadow:0 3px 9px #203c3010}.qs-series-link img{flex:0 0 58px;width:58px;height:56px}.qs-series-link>span:nth-child(2){flex:1;min-width:0}.qs-series-link strong{display:block;font-size:15px}.qs-series-link small{display:block;margin-top:3px;font-size:10px;line-height:1.4;color:var(--qs-muted)}.qs-chevron{font-size:22px;color:var(--qs-muted)}
.qs-tree-details{margin-top:21px}.qs-tree-details>summary{padding:8px 8px 12px;min-height:44px;cursor:pointer;font-size:11px;font-weight:800;color:var(--qs-muted);list-style-position:inside}.qs-tree-details>summary>span{float:right;font-weight:400}.qs-tree{list-style:none;counter-reset:quest-step;margin:0;padding:4px 0;max-height:520px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a6b4a5 transparent}.qs-tree li{position:relative;margin:0;padding:0}.qs-tree li:not(:last-child)::after{content:"";position:absolute;top:34px;left:24px;bottom:-13px;width:1px;background:var(--qs-line);pointer-events:none}.qs-tree li>a{position:relative;display:flex;align-items:center;gap:12px;padding:10px 9px;min-height:66px;border:1px solid transparent;border-radius:8px;color:var(--qs-muted);z-index:1}.qs-tree li>a:hover{background:var(--qs-paper);text-decoration:none}.qs-tree li>a[aria-current=step]{background:var(--qs-surface);border-color:var(--qs-line);box-shadow:0 2px 5px #293a2c08;color:var(--qs-ink)}.qs-step-number{position:relative;flex:0 0 29px;display:grid;place-items:center;width:29px;height:29px;font-size:11px;font-weight:800;border-radius:50%;border:1px solid #b2bbae;background:var(--qs-soft);font-variant-numeric:tabular-nums;z-index:2}.qs-tree [data-state=claimed] .qs-step-number{color:var(--qs-green);border-color:#99b59d;background:var(--qs-green-soft)}.qs-tree [data-state=claimable] .qs-step-number,.qs-tree [aria-current=step] .qs-step-number{color:#fff;border-color:var(--qs-green);background:var(--qs-green)}.qs-tree [data-state=locked]>a{color:var(--qs-muted)}.qs-tree a>span:nth-child(2){min-width:0}.qs-tree strong{display:block;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.qs-tree small{display:block;margin-top:4px;font-size:9px;line-height:1.3}.qs-tree [data-state=blocked_reward] small{color:var(--qs-warning)}
.qs-detail-region{min-width:0;padding:30px 32px;background:var(--qs-paper)}.qs-detail{min-width:0}.qs-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:19px;border-bottom:1px solid var(--qs-line)}.qs-detail-heading h3{font-family:Georgia,"Times New Roman",serif;font-size:29px;line-height:1.2;font-weight:600;letter-spacing:-.4px;margin:0}.qs-state{flex-shrink:0;max-width:180px;border:1px solid var(--qs-line);background:var(--qs-surface);border-radius:6px;padding:4px 9px;font-size:10px;font-weight:700;line-height:1.5;text-align:center}.qs-detail[data-state=claimable] .qs-state,.qs-detail[data-state=claimed] .qs-state{color:var(--qs-green);background:var(--qs-green-soft);border-color:#bdd0bd}.qs-detail[data-state=blocked_reward] .qs-state{color:var(--qs-warning);background:var(--qs-warning-bg);border-color:#e2c48f}.qs-description{font-size:13px;color:var(--qs-muted);margin:18px 0}.qs-prerequisite{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;margin:17px 0 22px;font-size:11px;color:var(--qs-muted)}.qs-prerequisite>a{font-weight:700}.qs-prerequisite>a>span{font-weight:400;color:var(--qs-muted);margin-left:6px}.qs-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:25px 0 6px}.qs-section-heading h4{font-size:13px;margin:0}.qs-section-heading>span{font-size:10px;color:var(--qs-muted);text-align:right}.qs-objective{display:flex;align-items:center;gap:17px;padding:20px 0;border-bottom:1px solid var(--qs-line)}.qs-objective:last-child{border-bottom:0}.qs-objective-art{flex:0 0 80px;display:grid;place-items:center;width:80px;height:76px;border-radius:10px;background:linear-gradient(160deg,#edf0e6,#e2e9da)}.qs-objective-copy{min-width:0;flex:1}.qs-objective-label{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px;line-height:1.5}.qs-objective-label>strong{font-weight:700}.qs-objective-label>span{white-space:nowrap;font-size:12px;font-weight:800;color:var(--qs-muted);font-variant-numeric:tabular-nums}.qs-objective progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:9px;overflow:hidden;margin:11px 0 9px;border:0;border-radius:8px;background:var(--qs-line);color:var(--qs-green);accent-color:var(--qs-green)}.qs-objective progress::-webkit-progress-bar{border-radius:8px;background:var(--qs-line)}.qs-objective progress::-webkit-progress-value{border-radius:8px;background:var(--qs-green)}.qs-objective progress::-moz-progress-bar{border-radius:8px;background:var(--qs-green)}.qs-objective-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:10px;color:var(--qs-muted)}.qs-objective-foot>a{font-weight:800;min-height:26px;display:inline-flex;align-items:center}.qs-objective[data-complete=true] .qs-objective-foot>span{color:var(--qs-green)}
.qs-reward-pane{position:relative;margin:24px 0 18px;padding:21px 23px;border:1px solid #d9c59d;border-left:4px solid #b18c52;border-radius:9px;background:linear-gradient(115deg,#f8f0df,var(--qs-paper))}.qs-reward-pane h4{margin:0;font-size:17px;font-weight:750}.qs-reward-pane>p:not(.qs-eyebrow){font-size:11px;line-height:1.7;margin:9px 0 0;color:var(--qs-muted)}.qs-positive{color:var(--qs-green)!important}.qs-blockers{font-size:11px;line-height:1.8;padding:11px 14px 11px 29px;margin:12px 0;background:var(--qs-warning-bg);color:var(--qs-warning);border-radius:7px}.qs-blockers>li+li{margin-top:5px}.qs-reward-pane .qs-blockers{padding:0 0 0 15px;background:transparent;margin-bottom:0}.qs-quest-actions{display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:wrap;margin-top:23px}.qs-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border:1px solid #a9bbae;border-radius:7px;background:var(--qs-surface);color:var(--qs-green)!important;font-family:inherit;font-size:12px;font-weight:800;line-height:1.4;cursor:pointer;text-decoration:none!important}.qs-button:hover{background:var(--qs-green-soft);text-decoration:none}.qs-button-primary{color:#fff!important;background:#226a50;border-color:#226a50;box-shadow:0 3px 8px #154d3320}.qs-button-primary:hover{background:#194f3c;border-color:#194f3c}.qs-text-link{font-size:11px;font-weight:800;padding:10px 0;min-height:44px;display:inline-flex;align-items:center}.qs-action-unavailable{font-size:11px;color:var(--qs-muted);font-weight:700;margin:0;border:1px dashed var(--qs-line);border-radius:7px;padding:10px 12px}.qs-complete-note{font-size:12px;color:var(--qs-green);font-weight:750;margin:0}.qs-complete-note time{font-size:10px;color:var(--qs-muted);font-weight:400;display:block;padding-top:4px}.qs-unlock{padding:14px 16px;background:var(--qs-soft);border:1px solid var(--qs-line);border-radius:8px;margin:18px 0}.qs-unlock h4{font-size:11px;margin:0 0 9px}.qs-unlock ul{list-style:none;padding:0;margin:0}.qs-unlock li{display:flex;align-items:baseline;gap:8px;font-size:11px;margin-top:6px}.qs-unlock li>span:nth-child(2){flex:1;min-width:0}.qs-unlock li>a{font-size:10px;white-space:nowrap}.qs-check{color:var(--qs-green);font-size:13px}
.qs-notice{padding:14px 18px;margin:18px 24px;border:1px solid #e2c48f;border-radius:8px;font-size:12px;color:var(--qs-warning);background:var(--qs-warning-bg)}.qs-rewards{padding:28px 30px}.qs-rewards-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.qs-rewards-heading h3{font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:600;line-height:1.2;letter-spacing:-.4px;margin:0 0 10px}.qs-rewards-heading p:not(.qs-eyebrow){font-size:12px;color:var(--qs-muted);margin:0;max-width:510px}.qs-destination{flex:0 1 260px;min-width:200px;padding:13px 16px;border:1px solid var(--qs-line);border-radius:8px;background:var(--qs-surface)}.qs-destination span{font-size:10px;color:var(--qs-muted);display:block}.qs-destination strong{display:block;font-size:14px;margin:3px 0;overflow-wrap:anywhere}.qs-destination a{font-size:10px;font-weight:800;display:inline-flex;align-items:center;min-height:29px}.qs-storage-note{font-size:11px;padding:15px 0;color:var(--qs-muted);border-top:1px solid var(--qs-line);margin:22px 0 0}.qs-storage-note a{font-weight:800;display:inline-block;margin-left:4px}.qs-rewards>.qs-notice{margin:0 0 20px}.qs-reward-list{border:1px solid var(--qs-line);border-radius:10px;overflow:hidden;background:var(--qs-surface)}.qs-building-reward{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1.15fr) minmax(150px,.95fr);align-items:center;gap:18px;padding:17px 19px;border-bottom:1px solid var(--qs-line)}.qs-building-reward:last-child{border:0}.qs-building-reward[data-state=claimed]{background:color-mix(in srgb,var(--qs-green-soft) 45%,var(--qs-surface))}.qs-building-identity{display:flex;align-items:center;gap:9px;min-width:0}.qs-building-identity img{flex:0 0 65px;width:65px;height:61px}.qs-building-identity h4{font-size:13px;margin:0 0 1px}.qs-building-identity span{font-size:11px;color:var(--qs-muted)}.qs-resource-values dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.qs-resource-values dt{font-size:10px;color:var(--qs-muted);margin:0 0 4px}.qs-resource-values dd{font-size:16px;font-weight:800;line-height:1.3;font-variant-numeric:tabular-nums;margin:0}.qs-resource-values p{font-size:11px;color:var(--qs-muted);margin:0}.qs-building-action{text-align:right}.qs-reward-state{display:block;font-size:10px;color:var(--qs-muted);font-weight:700;margin-bottom:7px}.qs-building-reward[data-state=claimed] .qs-reward-state,.qs-building-reward[data-state=ready] .qs-reward-state{color:var(--qs-green)}.qs-building-action>p,.qs-building-action>small{display:block;font-size:9px;color:var(--qs-muted);margin:5px 0 0;line-height:1.6}.qs-building-action .qs-button{min-width:108px}.qs-batches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.qs-batches>section{padding:18px;border:1px solid var(--qs-line);border-radius:9px;background:var(--qs-surface)}.qs-batches h4{font-size:13px;margin:0 0 7px}.qs-batches p{font-size:11px;color:var(--qs-muted)}.qs-empty{padding:36px 20px;text-align:center;font-size:12px;color:var(--qs-muted)}.qs-empty img{display:block;margin:0 auto 12px}.qs-empty h4{font-size:17px;margin:0 0 8px}.qs-empty p{margin:0 auto 18px;max-width:440px}.qs-footer-note{border-top:1px solid var(--qs-line);padding:14px 24px;margin:0;font-size:10px;color:var(--qs-muted);background:var(--qs-surface)}.qs-footer-note a{font-weight:800;margin-left:4px}.qs-noscript{padding:0 24px 14px;font-size:11px}.qs-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;padding:0}
:root[data-theme=dark] .quest-series{--qs-paper:#182b28;--qs-surface:#1e3430;--qs-soft:#14251f;--qs-line:#365048;--qs-ink:#f0f2df;--qs-muted:#b1c3b5;--qs-green:#84d6ac;--qs-green-soft:#234b39;--qs-bronze:#dfbc85;--qs-warning:#f2ce95;--qs-warning-bg:#473c25}:root[data-theme=dark] .qs-hero{background:linear-gradient(100deg,#193329,#1d382f 60%,#435a42)}:root[data-theme=dark] .qs-hero-copy>p:not(.qs-eyebrow),:root[data-theme=dark] .qs-hero-meta{color:#c1d2bc}:root[data-theme=dark] .qs-reward-pane{background:linear-gradient(110deg,#3b3927,var(--qs-paper));border-color:#817048}:root[data-theme=dark] .qs-objective-art{background:linear-gradient(145deg,#405441,#2c4434)}:root[data-theme=dark] .qs-tree [aria-current=step] .qs-step-number,:root[data-theme=dark] .qs-tree [data-state=claimable] .qs-step-number{color:#142d21}:root[data-theme=dark] .qs-button-primary{color:#fff!important;background:#276e51;border-color:#508562}:root[data-theme=dark] .qs-button-primary:hover{background:#337f61}
@media(max-width:1050px){.qs-workspace{grid-template-columns:235px minmax(0,1fr)}.qs-detail-region{padding:26px 23px}.qs-hero{padding:25px 26px}.qs-hero-barracks{right:55%;width:110px}.qs-detail-heading{flex-wrap:wrap}.qs-detail-heading .qs-state{max-width:none}.qs-building-reward{grid-template-columns:minmax(140px,1fr) minmax(160px,1.1fr) minmax(130px,.9fr);gap:12px;padding:15px}.qs-building-identity img{width:54px;flex-basis:54px}}
@media(max-width:820px){.qs-workspace{grid-template-columns:minmax(0,1fr)}.qs-sidebar{padding:17px 20px;border-right:0;border-bottom:1px solid var(--qs-line)}.qs-side-heading{margin:0 0 10px}.qs-series-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.qs-series-link{min-height:77px;padding:9px}.qs-series-link img{flex-basis:50px;width:50px;height:48px}.qs-series-link strong{font-size:14px}.qs-tree-details{margin-top:11px}.qs-tree-details>summary{padding:11px 2px}.qs-tree{max-height:220px;border-top:1px solid var(--qs-line);padding-top:8px}.qs-tree li>a{min-height:62px}.qs-sync{display:none}.qs-detail-region{padding:25px}.qs-hero-copy{max-width:70%}.qs-hero-scene{opacity:.8;width:34%;right:-13px}.qs-hero-hq{width:190px}.qs-hero-barracks{display:none}.qs-hero h2{font-size:29px}.qs-rewards{padding:24px}.qs-rewards-heading{flex-direction:column;gap:16px}.qs-destination{min-width:0;flex:auto;width:100%;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px}.qs-destination span{grid-column:1}.qs-destination strong{grid-column:1}.qs-destination a{grid-column:2;grid-row:1/span 2}.qs-building-reward{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.qs-building-action{grid-column:1 / -1;display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;text-align:left;border-top:1px solid var(--qs-line);padding-top:10px}.qs-building-action .qs-reward-state{margin:0;flex:1}.qs-building-action p,.qs-building-action small{margin:0}.qs-building-action form{margin-left:auto}.qs-building-identity img{width:65px;flex-basis:65px}.qs-resource-values dd{font-size:16px}}
@media(max-width:480px){.quest-series{border-radius:11px}.qs-hero{padding:22px 20px;min-height:190px}.qs-hero-copy{max-width:100%}.qs-hero h2{font-size:27px;max-width:280px}.qs-hero-copy>p:not(.qs-eyebrow){font-size:12px;max-width:240px}.qs-hero-scene{opacity:.18;width:150px;right:-8px}.qs-hero-meta{font-size:10px;margin-top:17px;gap:6px 12px}.qs-hero-meta strong{font-weight:800}.qs-eyebrow{font-size:9px;letter-spacing:1.1px}.qs-tabs{padding:0 11px;gap:3px}.qs-tabs>a{min-height:54px;padding:10px 13px;font-size:12px}.qs-tabs>a[aria-current=page]::after{left:13px;right:13px}.qs-sidebar{padding:15px}.qs-series-list{gap:8px}.qs-series-link{gap:4px;padding:8px 6px}.qs-series-link img{width:40px;height:42px;flex-basis:40px}.qs-series-link strong{font-size:12px}.qs-series-link small{font-size:9px}.qs-chevron{display:none}.qs-tree{max-height:198px}.qs-detail-region{padding:22px 18px}.qs-detail-heading{gap:11px;padding-bottom:17px}.qs-detail-heading h3{font-size:26px}.qs-section-heading{gap:7px;margin-top:22px}.qs-section-heading>span{font-size:9px;max-width:120px}.qs-objective{gap:11px;padding:17px 0}.qs-objective-art{width:60px;height:62px;flex-basis:60px}.qs-objective-label{gap:8px;font-size:12px}.qs-objective-label>span{font-size:11px}.qs-objective-foot{font-size:9px}.qs-objective-foot>a{min-height:32px}.qs-reward-pane{padding:17px 16px;margin-top:22px}.qs-reward-pane h4{font-size:16px}.qs-reward-pane>p:not(.qs-eyebrow){font-size:11px}.qs-quest-actions{display:block}.qs-quest-actions>form .qs-button{width:100%}.qs-quest-actions>.qs-text-link{display:flex;justify-content:center;text-align:center;margin-top:5px}.qs-unlock{padding:12px}.qs-unlock li{flex-wrap:wrap}.qs-unlock li>a{margin-left:20px;min-height:30px;display:flex;align-items:center}.qs-rewards{padding:21px 15px}.qs-rewards-heading h3{font-size:26px}.qs-destination{display:block}.qs-destination a{min-height:35px}.qs-storage-note{font-size:10px}.qs-storage-note a{margin-left:0;display:block;min-height:35px;line-height:35px}.qs-notice{margin:15px;font-size:11px;padding:12px 14px}.qs-building-reward{padding:13px;gap:11px}.qs-building-identity{gap:5px}.qs-building-identity img{width:45px;height:49px;flex-basis:45px}.qs-building-identity h4{font-size:12px}.qs-building-identity span{font-size:10px}.qs-resource-values dl{gap:7px}.qs-resource-values dt{font-size:9px}.qs-resource-values dd{font-size:13px}.qs-building-action .qs-button{min-width:94px}.qs-building-action .qs-reward-state{font-size:10px}.qs-batches{grid-template-columns:1fr}.qs-footer-note{padding:14px 16px;font-size:9px}.qs-footer-note a{display:inline-flex;align-items:center;min-height:30px}.qs-prerequisite{font-size:10px}.qs-prerequisite>a>span{margin-left:3px}}
@media(prefers-reduced-motion:reduce){.quest-series *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.qs-objective-scope{font-size:10px;color:var(--qs-muted);margin:9px 0 2px;line-height:1.7}.qs-objective-scope strong{font-weight:700}

.quest-series+.progress-page{margin-top:28px}
