.guide-panel{padding:14px;border:1px solid #c8b68a;border-radius:10px;background:#faf5e6;color:#254a43;font:14px/1.5 'Segoe UI',Arial,sans-serif;text-align:left}
.guide-panel small{display:block;color:#6d664c;font-size:11px;font-weight:800;letter-spacing:.6px}
.guide-panel h3{margin:5px 0;color:#315e50;font-size:20px;line-height:1.25}
.guide-panel p{margin:8px 0;color:#3b534b;font-size:13px}
.guide-meter{height:6px;background:#dedbc9;border-radius:9px;overflow:hidden;margin:10px 0}
.guide-meter span{display:block;height:100%;background:#37977b}
.guide-panel .guide-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:800}
.guide-panel .guide-reward{color:#13734c}
.guide-panel .guide-resource{padding:8px;background:#e4eee2;border-radius:5px;font-size:12px}
.guide-roadmap{margin-top:12px;border-top:1px solid #cfc7aa;padding-top:8px;font-size:12px}
.guide-roadmap summary{cursor:pointer;color:#4b6253;font-weight:700}
.guide-roadmap ol{margin:8px 0;padding-left:26px;max-height:200px;overflow:auto}
.guide-roadmap li{padding:3px 0;color:#777767}
.guide-roadmap li.current{color:#125c46;font-weight:800}
.guide-roadmap li.completed{color:#3d7b67}
.guide-panel .guide-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.guide-panel .guide-buttons button,.guide-panel .guide-buttons a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border:1px solid #36806a;border-radius:6px;background:#276e59;color:#fff9e7;font:700 12px/1.3 'Segoe UI',Arial,sans-serif;text-decoration:none;cursor:pointer}
.guide-panel .guide-buttons a.secondary{background:#fffaf0;color:#385f4f;border-color:#bdb594}
.guide-panel .guide-feedback{color:#1b714f;font-size:12px;margin-bottom:0}
.page-guide{margin:8px 0 14px}
.page-guide h3{font-size:17px}
.page-guide[hidden]{display:none}
.guide-compact>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;cursor:pointer;list-style:none}.guide-compact>summary::-webkit-details-marker{display:none}.guide-compact>summary b{display:block;font-size:13px;line-height:1.4}.guide-compact>summary em{font-style:normal;white-space:nowrap;color:#528371}.guide-compact>summary small{font-size:9px;letter-spacing:.3px}.guide-compact>summary>.guide-reward{flex:none;text-align:right;font-size:12px;font-weight:800}.guide-compact>summary>.guide-reward small{font-size:10px;color:#536b5c;font-weight:500}.guide-expanded{margin-top:9px;padding-top:9px;border-top:1px solid #d5c8a6}.guide-expanded>small,.guide-expanded>h3{display:none}.guide-panel .guide-feedback:empty{display:none}
.guide-focus{outline:3px solid #f5c75d!important;outline-offset:4px;box-shadow:0 0 18px #ffe494!important;scroll-margin:35px}
body.battle-mode .page-guide{display:none!important}
.game.unified-mine .quest-copy .quest-step{display:block;font-size:8px;font-weight:800;letter-spacing:.3px;color:#406151}
.game.unified-mine .quest-card{height:auto;min-height:60px}
@media(max-width:390px){.guide-panel{padding:10px}.guide-panel h3{font-size:17px}.game.unified-mine .quest-card{width:calc(50% - 43px);min-height:62px}.game.unified-mine .quest-medallion{display:none}}
@media(prefers-reduced-motion:reduce){.guide-focus{scroll-behavior:auto}}
@media(max-height:700px){.game.unified-mine .quest-card{width:calc(50% - 54px);min-height:62px}}
/* System mission panel shares the story palette, without changing quest rules. */
.guide-panel.system-quest-panel{padding:12px;background:linear-gradient(145deg,#20473f,#102c32);border:1px solid #779c80;color:#e9f3e3;border-radius:9px}.system-quest-head{display:flex;align-items:center;gap:12px}.system-quest-head>img{width:82px;height:82px;object-fit:contain;filter:drop-shadow(0 0 12px #73e4c33b)}.system-quest-head>div{flex:1}.system-quest-panel small{color:#b3cdbd;font-size:10px;letter-spacing:.7px}.system-quest-head b{display:block;margin:5px 0;color:#f6d994;font-size:17px}.system-quest-status{display:inline-block;font-size:9px;letter-spacing:.6px;border:1px solid #649e87;border-radius:3px;color:#9ce6c4;padding:3px 6px}.system-quest-panel .system-quest-message{color:#d8e7d8;font-size:12px;line-height:1.6;padding:9px 0;border-top:1px solid #557768;margin:9px 0 0}.system-quest-goal{padding:12px;background:#082b2d;border:1px solid #426d62;border-radius:6px}.system-quest-panel h3{color:#fff0c2;font-size:18px;margin:5px 0 12px}.system-quest-panel .guide-meta{color:#bdd4c5;font-weight:500}.system-quest-panel .guide-meta b{color:#a4f3d2}.system-quest-panel .guide-meter{background:#173e3e;height:8px;margin:9px 0 3px}.system-quest-panel .guide-meter span{background:linear-gradient(90deg,#329c89,#9ceac8)}.system-quest-panel p{color:#d3e2d6}.system-quest-panel .guide-resource{background:#234d43;color:#f1d29c}.system-quest-prize{display:flex;align-items:center;gap:8px;padding:10px 0}.system-quest-prize img{width:45px;height:45px;object-fit:contain}.system-quest-prize span{flex:1}.system-quest-prize b{display:block;color:#ffe0a1;margin-top:3px}.system-quest-prize strong{font-size:11px;color:#9bddbd}.system-quest-panel .system-quest-story{width:100%;min-height:38px;border:1px solid #7b9573;border-radius:5px;background:#285349;color:#f7dfae;font-size:12px;cursor:pointer}.system-quest-panel .guide-roadmap{border-color:#507364}.system-quest-panel .guide-roadmap summary{color:#c7daca}.system-quest-panel .guide-roadmap li{color:#a1b5a9}.system-quest-panel .guide-roadmap li.current{color:#ffe09c}.system-quest-panel .guide-roadmap li.completed{color:#9cddbd}#modal[data-panel="quests"] #modal-actions:empty{display:none}#modal[data-panel="quests"] #modal-actions button{width:100%;border:1px solid #e1be74;background:linear-gradient(#e3c58a,#b78c48);color:#173a32;font-weight:800;min-height:44px}.game.unified-mine .quest-medallion img{object-fit:contain}
.feature-guide{margin:12px 0;border:1px solid #7f9d7b;border-radius:7px;padding:10px;background:#163b38}.feature-guide>summary{cursor:pointer;color:#ffe0a1;font-weight:700;font-size:13px}.system-quest-panel .feature-intro{color:#bfd8c9;font-size:11px}.feature-guide-list{display:grid;gap:8px}.feature-guide-list section{padding:10px;border:1px solid #547d6f;border-radius:5px;background:#0b2d30}.feature-guide-list b{font-size:13px;color:#fff0c9;display:block}.feature-guide-list small{font-size:10px;color:#a6ddc2;display:block;margin-top:5px;letter-spacing:0}.feature-guide-list p{font-size:12px!important;line-height:1.5}.feature-guide-list button{width:100%;min-height:40px;background:#d7b776!important;color:#183b34;border-radius:5px;font-weight:700}.feature-guide-list button:disabled{opacity:.5;cursor:default}

.quest-button-guide{margin:.55rem 0}
.quest-button-guide>summary{cursor:pointer;font-weight:650;padding:.45rem 0}
.quest-button-guide ol{padding-inline-start:1.6rem;margin:.35rem 0 .65rem;line-height:1.55}
.quest-button-guide li+li{margin-top:.35rem}
.quest-button-guide li strong{font-weight:750}
.quest-materials{display:flex;flex-wrap:wrap;gap:.5rem}
.quest-materials a{display:inline-flex;align-items:center;gap:.4rem;padding:.15rem .45rem;min-height:44px;color:inherit}
.quest-materials img{width:40px;height:40px;object-fit:contain}

.feature-guide-list a[href*="khi-pho"]{display:block;color:#ffe0a1;padding:.6rem 0;text-underline-offset:.18em;font-weight:650}
