/* Compact ivory library. */
.library-gallery{max-width:1120px;padding-top:14px}
.library-gallery .library-head{margin-bottom:9px}
.library-gallery .learning-guide{background:transparent;border:0;box-shadow:none;padding:0;margin:0;gap:9px}
.library-gallery .learning-guide .companion-avatar{--avatar-size:34px}
.library-gallery .learning-guide-copy{position:relative;padding-right:24px}
.library-gallery .learning-guide-heading{position:absolute;top:0;right:0;margin:0}
.library-gallery .learning-guide-heading>span{display:none}
.library-gallery .learning-guide-message{margin:0;font-size:14px;line-height:1.35}
.library-gallery .learning-guide-message .bi-en{font-size:14px;line-height:1.35;color:#274c3d}
.library-gallery .learning-guide-message .zh{font-size:12px!important;line-height:1.35;margin-top:2px;color:#748073}
.library-gallery .learning-guide.is-folded .learning-guide-heading{position:relative}
.library-gallery .learning-guide.is-folded .learning-guide-heading>span{display:block}
.library-gallery .learning-guide.is-folded .learning-guide-copy{padding-right:0}
.library-gallery .demo-compact{min-height:35px;padding:7px 11px;margin-bottom:12px;border-radius:11px;font-size:13px;background:#e9eddf;border-color:#d9dece;color:#244d3d}
.library-gallery .demo-compact svg{width:16px;height:16px}
.library-gallery .demo-compact .ui-zh{font-size:11px;line-height:1.2}
.library-gallery .site-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;align-items:stretch}
.library-gallery .gallery-card{display:flex;flex-direction:column;isolation:isolate;position:relative;min-width:0;padding:0;width:100%;text-align:left;cursor:pointer;background:#fffdf8;border:1px solid #d9ddd1;border-radius:16px;overflow:hidden;color:#204738;box-shadow:0 2px 5px #203d2c06;transition:border-color .18s,box-shadow .18s,transform .18s}
.library-gallery .gallery-card:hover{border-color:#bba360;box-shadow:0 5px 15px #25473312;transform:translateY(-2px)}
.library-gallery .gallery-card:focus-visible{outline:3px solid #a57b36;outline-offset:3px}
.library-gallery .gallery-card.is-selected{border:1px solid #c7a347;box-shadow:inset 0 0 0 2px #c7a347;background:#fff8e7}
.library-gallery .site-image{display:block;width:100%;height:auto;aspect-ratio:1.9;flex:none;background:#e5e3d6}
.library-gallery .site-image:after{display:none}
.library-gallery .site-image img{width:100%;height:100%;display:block;object-fit:cover}
.library-gallery .site-body,.library-gallery .gallery-card.is-selected .site-body{display:flex;flex-direction:column;position:relative;flex:1;gap:5px;padding:11px 12px 12px;min-height:69px}
.library-gallery .site-body h3{margin:0;font:650 18px/1.2 var(--sans);letter-spacing:-.015em;color:#214738}
.library-gallery .site-body h3 .zh{font:400 13px/1.3 var(--sans);color:#6a786a;margin-top:3px}
.gallery-theme{display:block;padding-right:12px;color:#7b806f;font:400 12px/1.3 var(--sans)}
.gallery-theme .zh{font:400 11px/1.3 var(--sans);color:#7b806f;margin-top:2px}
.library-gallery .site-card-arrow{position:absolute;display:block;right:9px;bottom:10px;color:#a28744}
.library-gallery .site-card-arrow svg{width:14px;height:14px}
.guardian-shield{position:absolute;right:8px;top:8px;width:24px;height:29px;z-index:3;filter:drop-shadow(0 2px 3px #0006)}
.shield-art{display:block;width:100%;height:100%;stroke:none!important}
.photo-era{position:absolute;left:12px;bottom:9px;z-index:2;font:400 10px/1.2 var(--sans);background:#27382bc9;color:#fff2ce;border-radius:5px;padding:4px 6px}
.photo-era .ui-zh{font-size:10px;line-height:1.2;color:#fff2ce}
.library-gallery .library-discovery{margin-top:18px}
.library-gallery .library-add{margin-top:14px;padding:13px 15px;border-radius:13px;font-size:13px}
.library-gallery .library-add span{font-size:13px}
/* Detail scrolls inside the ivory dossier; primary action stays in view. */
dialog.site-preview-modal{width:590px;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:1px solid #d4d6c5;border-radius:21px;background:#fbf9f0;color:#204738;box-shadow:0 24px 90px #17382d50}
.site-preview-modal[open]{display:flex;flex-direction:column}
.site-preview-modal .modal-top{position:absolute;top:11px;right:11px;z-index:4}
.site-preview-modal .modal-top>.eyebrow{display:none}
.site-preview-modal .modal-top .icon-btn{width:36px;height:36px;min-height:36px;background:#183a2bce;color:#fff4da;border:1px solid #e0c88a77;backdrop-filter:blur(7px)}
.site-preview-modal .modal-top .icon-btn svg{width:19px;height:19px}
.site-preview-modal #modal-title{order:1;flex:none;margin:0;padding:18px 20px 0;font:650 25px/1.15 var(--sans);letter-spacing:-.02em;color:#234a39}
.site-preview-modal #modal-title .zh{font:400 14px/1.3 var(--sans);color:#7b806f;margin-top:5px}
.site-preview-modal .modal-body{display:contents}
.gallery-modal-hero{height:auto;aspect-ratio:1.9;max-height:225px;flex:none;position:relative;order:0;overflow:hidden}
.gallery-modal-hero>img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-modal-copy{order:2;min-height:80px;overflow:auto;overscroll-behavior:contain;padding:12px 20px 18px;scrollbar-color:#b7bba4 transparent}
.gallery-modal-meta{display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap;font-size:12px;line-height:1.3;color:#8b8063}
.gallery-modal-meta .ui-zh{font-size:11px;line-height:1.3;color:#8b8063}
.gallery-meta-dot{color:#b6aa85}
.gallery-section{margin-top:18px}
.gallery-section h3{display:flex;gap:7px;align-items:center;margin:0 0 7px;font:650 15px/1.25 var(--sans);color:#917031}
.gallery-section h3>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none}
.gallery-section h3 .ui-zh{font-size:12px;line-height:1.3;color:#95886b}
.gallery-section p{margin:0;font:400 15px/1.5 var(--sans);color:#475b4c}
.gallery-section p .zh{font:400 13px/1.5 var(--sans);color:#7b8273;margin-top:5px}
.gallery-tools{display:flex;flex-wrap:wrap;gap:7px}
.gallery-tools>span{border-radius:16px;border:1px solid #dadcc9;padding:6px 9px;font:400 12px/1.25 var(--sans);background:#f1f0e5;color:#55705a}
.gallery-tools .ui-zh{font-size:11px;line-height:1.25;color:#7b8273;margin-top:2px}
.gallery-limit{padding:11px;border-radius:11px;background:#eeeede}
.gallery-sources{margin-top:17px;padding-top:10px;border-top:1px solid #e2e2d4;font-size:12px;color:#75806c}
.gallery-sources summary{cursor:pointer;min-height:25px;color:#748165}
.gallery-sources summary .ui-label{display:inline-flex}
.gallery-sources a{display:flex;justify-content:space-between;gap:10px;padding-top:10px;color:#447359;text-decoration:underline;line-height:1.4}
.gallery-sources a svg{width:14px;height:14px;flex:none}
.site-preview-modal .modal-actions{order:3;flex:none;margin:0;padding:12px 16px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid #e0dfce;background:#fbf9f0}
.gallery-protect{display:flex;gap:10px;align-items:center;justify-content:center;width:100%;min-height:50px;padding:10px 13px;border:1px solid #d6b567;border-radius:27px;background:linear-gradient(100deg,#efd8a2,#f2dfaf);color:#244b3a;font:650 15px/1.3 var(--sans)}
.gallery-protect>.shield-art{width:23px;height:27px;flex:none}
.gallery-protect>svg:last-child{width:18px;height:18px;flex:none}
.gallery-protect .ui-zh{font-size:12px;line-height:1.25;color:#6c7553}
.gallery-protect:focus-visible{outline:3px solid #3d725a;outline-offset:3px}
/* Shared evidence tools in Language Focus and REPAIR I. */
.evidence-library{border:1px solid #d4dccb;border-radius:12px;padding:11px 12px;background:#f0f3e7;margin-bottom:14px}
.evidence-library summary{cursor:pointer;display:flex;align-items:center;gap:8px;font-size:15px;font-weight:650;color:#35634d;min-height:24px}
.evidence-library summary>svg{width:18px;height:18px;flex:none}
.evidence-library summary .ui-zh{font-size:12px;line-height:1.3}
.evidence-library>.note{margin:12px 0}
.evidence-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.evidence-card{position:relative;min-width:0;text-align:left;padding:11px;border:1px solid #d7dccb;border-radius:10px;background:#fffdf7;color:#2c5941;min-height:83px}
.evidence-card.selected{border-color:#b39647;background:#fcf6df}
.evidence-card>strong{display:block;font-size:14px;line-height:1.3}
.evidence-card>span{display:block;font-size:11px;line-height:1.3;color:#7e846c;margin-top:6px;padding-right:10px}
.evidence-card .ui-zh{font-size:11px;line-height:1.3}
.evidence-card>svg{position:absolute;width:14px;height:14px;right:8px;bottom:10px}
.source-field-label{display:block;font-size:13px;color:#738366;margin:8px 0}
.source-field-label .ui-zh{font-size:11px}
.selected-evidence{padding:12px;border-left:3px solid #b4bf96;background:#f1f3e8;border-radius:0 10px 10px 0;margin:12px 0 14px}
.selected-evidence>strong{font-size:14px}.selected-evidence p{font-size:13px;line-height:1.45;margin-top:7px}
.selected-evidence .zh{font-size:12px!important;line-height:1.4;margin-top:4px}
.selected-evidence .note{color:#8a8d75;font-size:11px}
.explanation-prompt{font-size:14px;line-height:1.45;padding:10px 12px;border-radius:9px;background:#f0f3e7;margin:12px 0}
.explanation-prompt .zh{font-size:12px;line-height:1.4}
.evidence-modal{max-height:calc(100dvh - 24px)}
.evidence-modal h2{font-size:25px}.evidence-attribution{font-size:12px;line-height:1.4;color:#8a7b58}
.evidence-modal-section{margin-top:18px}.evidence-modal-section h3{font-size:16px;line-height:1.35;color:#426d4e}
.evidence-modal-section h3 .zh{font-size:12px;margin-top:3px}
.evidence-modal-section p{font-size:15px;line-height:1.5;margin-top:8px}
.evidence-modal-section p .zh{font-size:13px;line-height:1.45;margin-top:5px}
.evidence-modal .context-fold a{display:flex;justify-content:space-between;gap:8px;margin-top:12px;color:#3f7056;text-decoration:underline}
.evidence-modal .context-fold a svg{width:15px;height:15px;flex:none}
.output-checklist{margin:15px 0}.output-checklist summary{font-size:14px!important;display:flex;gap:8px;align-items:center}
.output-checklist ul{padding-left:18px;margin:14px 0 0;display:grid;gap:12px;font-size:14px;line-height:1.5}
.output-checklist li .zh{font-size:12px!important;line-height:1.4;margin-top:3px}
.practice-topic{font-size:12px;font-weight:600;letter-spacing:.03em;color:#8f793f;margin-bottom:15px}
.practice-topic .ui-zh{font-size:11px;letter-spacing:0}
.exercise-card .word-header h1{font-size:27px;line-height:1.2}
@media(max-width:900px) and (min-width:601px){.library-gallery .site-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
.library-gallery{padding:12px 16px 120px}
.library-gallery .site-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.library-gallery .site-image{aspect-ratio:2}
.library-gallery .gallery-card{border-radius:13px}
.library-gallery .site-body,.library-gallery .gallery-card.is-selected .site-body{padding:9px 10px 10px;min-height:63px;gap:5px}
.library-gallery .site-body h3{font-size:16px;line-height:1.18;letter-spacing:-.01em}
.library-gallery .site-body h3 .zh{font-size:12px!important;line-height:1.25;margin-top:2px}
.gallery-theme{font-size:12px;line-height:1.25}
.gallery-theme .zh{font-size:11.5px!important;line-height:1.25;margin-top:2px}
.guardian-shield{width:22px;height:26px;top:7px;right:7px}
.site-preview-modal #modal-title{font-size:23px;padding:16px 17px 0}
.gallery-modal-copy{padding:11px 17px 15px}
.gallery-modal-hero{max-height:195px;aspect-ratio:1.9}
.gallery-protect{font-size:14px}
}
@media(max-width:360px){
.library-gallery{padding-left:12px;padding-right:12px}
.library-gallery .site-grid{gap:9px}
.library-gallery .site-body h3{font-size:15px}
.library-gallery .site-body,.library-gallery .gallery-card.is-selected .site-body{padding-left:9px;padding-right:9px}
.gallery-theme{font-size:11px}.gallery-theme .zh{font-size:11px!important}
.evidence-card-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.library-gallery .gallery-card{transition:none}.library-gallery .gallery-card:hover{transform:none}}

/* Four clear destinations below; collection progress stays within reach above. */
.topbar .topbar-inner{display:flex;align-items:center;gap:9px}
.topbar .toolbar-title{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.topbar .header-tools{display:flex;align-items:center;gap:7px;flex:0 0 auto;margin-left:auto}
.topbar .museum-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:6px 10px;border:1px solid #bb9b587d;border-radius:999px;background:linear-gradient(115deg,#a8873224,#a8873209);color:#f0d794;white-space:nowrap;line-height:1.15;font-family:var(--sans);font-size:12px;box-shadow:inset 0 0 9px #f1cf6a06}
.topbar .museum-trigger>.nav-art,.topbar .museum-trigger>svg{display:block;width:21px;height:24px;object-fit:contain;flex:none}
.topbar .museum-trigger-label{display:block;white-space:nowrap;font-weight:550}
.topbar .museum-trigger-label .ui-label{display:block}
.topbar .museum-trigger-label .ui-en{font-size:12px;line-height:1.15;white-space:nowrap}
.topbar .museum-trigger-label .ui-zh{display:none}
.topbar .museum-trigger-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:22px;padding:3px 5px;border-radius:12px;background:#e0b964;color:#233e2c;font-size:11px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums}
.topbar .museum-trigger:hover{background:#b9943330;border-color:#d3af67}
.topbar .museum-trigger:focus-visible{outline:2px solid #f4d588;outline-offset:3px}
.home .museum-trigger{background:#291f10a6;border-color:#d7b76b80;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#f8e3b6}
.bottom-nav a{flex:1 1 0;max-width:180px;min-height:64px}
.bottom-nav .ui-label{display:flex;flex-direction:column;align-items:center;gap:1px}
.bottom-nav .nav-pagoda{overflow:visible;stroke:none}

/* A single compact choice row makes the heritage cards the first substantial content. */
.library-gallery .library-entry-row{display:grid;grid-template-columns:minmax(0,7fr) minmax(92px,3fr);align-items:stretch;gap:9px;margin:0 0 11px}
.library-gallery .library-quick-guide{display:flex;align-items:center;gap:8px;min-width:0;min-height:48px;padding:6px 8px;border-radius:12px;background:#eaf0e2;border:1px solid #dbe3d0;color:#294d3a}
.library-gallery .library-quick-guide.boy{background:#f2ecdf;border-color:#e1d7bf}
.library-gallery .library-quick-guide .companion-avatar{--avatar-size:32px}
.library-gallery .library-quick-copy{min-width:0;margin:0;font-family:var(--sans);font-size:12px;font-weight:550;line-height:1.3;color:#294d3a}
.library-gallery .library-quick-copy .quick-en,.library-gallery .library-quick-copy .quick-zh{display:block}
.library-gallery .library-quick-copy .quick-en{font-size:12px;line-height:1.3}
.library-gallery .library-quick-copy .quick-zh{font-size:11px;line-height:1.25;margin-top:2px;font-weight:400;color:#6c7865}
.library-gallery .library-demo{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:48px;padding:7px 10px;border:1px solid #c9a55b;border-radius:999px;background:linear-gradient(115deg,#e6c27d,#f2dfae 65%,#e4be76);color:#3b492e;font-family:var(--sans);font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap;box-shadow:inset 0 1px 0 #fff7d999,0 2px 5px #9b77391a}
.library-gallery .library-demo svg{display:block;width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
.library-gallery .library-demo:hover{filter:brightness(1.035)}
.library-gallery .library-demo:focus-visible{outline:2px solid #84602a;outline-offset:3px}
.library-gallery .library-entry-row:has(.library-quick-guide:only-child){grid-template-columns:1fr}

/* Native dialog remains keyboard-trapped, while the collection opens like a fragment drawer. */
#modal.museum-drawer{width:500px;max-width:calc(100% - 28px);max-height:calc(100svh - 36px);padding:22px;border:1px solid #cabb91;border-radius:22px;background:#f8f5e9;color:#244735;box-shadow:0 18px 70px #102a2055;overflow:auto;overscroll-behavior:contain}
#modal.museum-drawer::backdrop{background:#10281e88;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#modal.museum-drawer .modal-top{margin-bottom:12px}
#modal.museum-drawer .modal-top .eyebrow{font-size:10px;letter-spacing:.12em;color:#9b7c3b}
#modal.museum-drawer h2{margin:0 0 16px;font-family:var(--sans);font-size:25px;line-height:1.2;color:#284e3a}
#modal.museum-drawer h2 .zh{font-size:13px;line-height:1.35;margin-top:4px;color:#7a806c}
#modal.museum-drawer .modal-body{font-size:14px;line-height:1.45}
#modal.museum-drawer .modal-body>.note{font-size:12px;line-height:1.45;color:#7e816d}
.museum-drawer-wallet{display:flex;align-items:center;gap:11px;padding:14px 15px;border-radius:14px;background:#e8eddf;border:1px solid #d7dfca;margin-bottom:14px}
.museum-drawer-wallet>.nav-art,.museum-drawer-wallet>svg{width:29px;height:32px;flex:none;object-fit:contain}
.museum-drawer-wallet strong{font-size:29px;line-height:1.05;color:#30563f;font-variant-numeric:tabular-nums}
.museum-drawer-wallet span,.museum-drawer-wallet p{font-size:12px;line-height:1.4;color:#6c7a60;margin:3px 0 0}
.museum-next-artifact{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid #dfdcc8;border-radius:14px;background:#fffdf5}
.museum-next-artifact>img{display:block;width:72px;height:80px;object-fit:cover;border-radius:10px;flex:none;background:#e7e6d6}
.museum-next-artifact>div{min-width:0;flex:1}
.museum-next-artifact h3{font-family:var(--sans);font-size:16px;line-height:1.25;margin:0;color:#2e563d}
.museum-next-artifact h3 .zh{font-size:12px;line-height:1.25;color:#7e826b;margin-top:3px}
.museum-next-artifact p{font-size:12px;line-height:1.4;margin:7px 0 0;color:#748067}
.museum-next-artifact progress{display:block;appearance:none;-webkit-appearance:none;border:0;width:100%;height:6px;border-radius:5px;background:#e3e6d8;overflow:hidden;margin:9px 0 0}
.museum-next-artifact progress::-webkit-progress-bar{background:#e3e6d8;border-radius:5px}
.museum-next-artifact progress::-webkit-progress-value{background:linear-gradient(90deg,#7d9c70,#d1af64);border-radius:5px}
.museum-next-artifact progress::-moz-progress-bar{background:linear-gradient(90deg,#7d9c70,#d1af64);border-radius:5px}
.museum-drawer-actions{display:grid;gap:9px;margin-top:17px}
.museum-drawer-actions .btn{width:100%;min-height:48px;padding:11px 14px;font-size:14px}
.museum-drawer-actions .btn .ui-zh{font-size:12px;line-height:1.3}
.museum-drawer-actions .text-link{justify-content:center;min-height:36px;font-size:12px}

@media(max-width:600px){
 .topbar:not(.cover-toolbar) .topbar-inner{padding:8px 16px;gap:8px}
 .topbar .toolbar-title{font-size:18px;line-height:1.2;letter-spacing:-.015em}
 .topbar .toolbar-title .ui-en{font-size:18px;line-height:1.2}
 .topbar .toolbar-title .ui-zh{font-size:11px;line-height:1.3;margin-top:2px}
 .topbar .header-tools{gap:6px}
 .topbar .museum-trigger{min-height:34px;padding:5px 7px;gap:4px;font-size:10px}
 .topbar .museum-trigger>.nav-art,.topbar .museum-trigger>svg{width:18px;height:21px}
 .topbar .museum-trigger-label,.topbar .museum-trigger-label .ui-en{font-size:10px;line-height:1.15}
 .topbar .museum-trigger-count{min-width:23px;min-height:19px;padding:3px 4px;font-size:10px}
 .topbar .language-toggle{min-height:34px;height:34px;padding:5px 9px;font-size:11px;gap:4px}
 .topbar .language-toggle svg{width:14px;height:14px}
 .library-gallery.page{padding-top:11px}
 .library-gallery .library-entry-row{gap:8px;margin-bottom:10px;grid-template-columns:minmax(0,7fr) minmax(86px,3fr)}
 .library-gallery .library-quick-guide{padding:5px 6px;gap:7px;min-height:48px}
 .library-gallery .library-quick-copy .quick-en{font-size:12px;line-height:1.3}
 .library-gallery .library-demo{padding:7px 8px;font-size:12px;gap:4px}
 .bottom-nav{padding-left:12px;padding-right:12px}
 .bottom-nav a{max-width:none;padding-left:4px;padding-right:4px}
 .bottom-nav .ui-en,.bottom-nav .ui-zh{font-size:11px!important}
 #modal.museum-drawer{width:min(100%,520px);max-width:100%;margin:auto auto 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom,0px));border-bottom:0;border-radius:24px 24px 0 0;max-height:calc(100svh - 28px)}
 #modal.museum-drawer[open]{animation:museum-drawer-arrival .25s ease-out both}
}
@media(max-width:360px){
 .topbar:not(.cover-toolbar) .topbar-inner{padding-left:12px;padding-right:12px;gap:7px}
 .topbar .toolbar-title,.topbar .toolbar-title .ui-en{font-size:16px;line-height:1.2}
 .topbar .museum-trigger{padding-left:6px;padding-right:6px;gap:3px}
 .topbar .museum-trigger-label,.topbar .museum-trigger-label .ui-en{font-size:9.5px}
 .topbar .header-tools{gap:5px}
 .topbar .language-toggle{padding-left:7px;padding-right:7px;font-size:10px}
 .library-gallery .library-entry-row{grid-template-columns:minmax(0,7fr) minmax(82px,3fr);gap:7px}
 .library-gallery .library-quick-guide .companion-avatar{--avatar-size:28px}
 .library-gallery .library-quick-copy .quick-en{font-size:11.5px}
 .library-gallery .library-quick-copy .quick-zh{font-size:10.5px;line-height:1.2}
 .library-gallery .library-demo{font-size:11.5px;padding-left:5px;padding-right:5px}
}
@keyframes museum-drawer-arrival{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#modal.museum-drawer[open]{animation:none}}

.topbar .museum-trigger.is-ready .museum-trigger-count{background:#f1d18a}
.topbar .museum-trigger.is-current{border-color:#efcc7d;background:#b9943330}

/* Three full-width skill choices: each card is the action. */
.language-cards-page{max-width:920px;padding-top:18px}
.language-cards-page>.learning-guide{position:relative;margin:0 0 12px;padding:7px 10px;gap:9px;min-height:44px;border-radius:12px}
.language-cards-page>.learning-guide .companion-avatar{--avatar-size:34px}
.language-cards-page>.learning-guide .learning-guide-copy{position:relative;padding-right:24px}
.language-cards-page>.learning-guide:not(.is-folded) .learning-guide-heading{position:absolute;top:50%;right:0;transform:translateY(-50%);min-height:0;margin:0;padding:0}
.language-cards-page>.learning-guide:not(.is-folded) .learning-guide-heading>span{display:none}
.language-cards-page>.learning-guide .guide-toggle{right:-6px;width:32px;height:32px;padding:7px}
.language-cards-page>.learning-guide .learning-guide-message{font-size:14px!important;line-height:1.3!important;font-weight:500}
.language-cards-page>.learning-guide .learning-guide-message .bi-en{font-size:14px;line-height:1.3}
.language-cards-page>.learning-guide .learning-guide-message .zh{font-size:12px!important;line-height:1.25!important;margin-top:2px!important}
.language-cards-page>.learning-guide.is-folded .learning-guide-heading{position:relative;margin:0;min-height:20px}
.language-skill-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.language-skill-card{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;column-gap:16px;width:100%;min-height:128px;padding:19px 46px 18px 20px;border:1px solid #d7dccb;border-radius:18px;background:linear-gradient(115deg,#fffdf5,#f3f1e6);box-shadow:0 3px 11px #29462e08;color:#244b36;text-align:left;transition:transform .2s,border-color .2s,box-shadow .2s;isolation:isolate}
.language-skill-card:hover{transform:translateY(-2px);border-color:#b6a16c;box-shadow:0 6px 18px #29462e13}
.language-skill-card:focus-visible{outline:3px solid #bc9447;outline-offset:3px}
.language-skill-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;border:1px solid #d4cba955;background:#e9e7d8;flex:none}
.language-card-art{display:block;width:38px;height:38px;fill:none;stroke:none;overflow:visible}
.language-skill-copy{display:block;min-width:0}
.language-skill-copy h2{margin:0;font-family:var(--sans);font-size:20px;line-height:1.2;font-weight:700;letter-spacing:-.02em;color:inherit}
.language-skill-copy h2 .bi-label,.language-skill-copy h2 .bi-en{display:block;font-size:inherit;font-weight:inherit;line-height:inherit}
.language-skill-copy h2 .zh{display:block;margin-top:3px;font-family:var(--sans);font-size:13.5px!important;line-height:1.25!important;font-weight:500;letter-spacing:0;color:#718168}
.language-skill-copy p{margin:8px 0 0;font-family:var(--sans);font-size:14px;line-height:1.4;font-weight:400;color:#69795f}
.language-skill-copy p .bi-en{display:block;font-size:inherit;line-height:inherit}
.language-skill-copy p .zh{display:block;font-size:12.5px!important;line-height:1.3!important;margin-top:3px;color:#8a8d76}
.language-skill-card:not(.language-skill-featured) h2{padding-right:34px}
.language-skill-meta{position:absolute;top:11px;right:13px;display:flex;align-items:center;gap:6px;line-height:1}
.language-skill-crown{font-size:15px;filter:drop-shadow(0 1px 2px #151a0b33)}
.language-skill-reward{display:inline-flex;align-items:center;gap:3px;min-height:22px;padding:4px 7px;border-radius:12px;background:#eee5cb;color:#8e713b;font-family:var(--sans);font-size:12px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.language-skill-reward>span{font-size:13px}
.language-skill-arrow{position:absolute;right:16px;bottom:17px;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;color:#9e874c}
.language-skill-featured{padding-top:32px;padding-bottom:17px;border-color:#c8a45f;background:radial-gradient(ellipse at 90% 15%,#b28c3c28,transparent 70%),linear-gradient(115deg,#183e33,#214c3b 58%,#453d22);box-shadow:inset 0 0 0 1px #d1ad5d13,0 5px 18px #1b3b2c16;color:#f8e5b4}
.language-skill-featured:hover{border-color:#e7c16f;box-shadow:inset 0 0 0 1px #d1ad5d29,0 8px 22px #1b3b2c21}
.language-skill-featured .language-skill-icon{border-color:#d8b15b5c;background:radial-gradient(circle,#dbb55622,#c89e3d0a)}
.language-skill-featured h2{text-shadow:0 1px 2px #0e261d40}
.language-skill-featured h2 .zh{color:#dec895}
.language-skill-featured p{color:#d5dfc9}
.language-skill-featured p .zh{color:#b6c8ad}
.language-skill-featured .language-skill-reward{background:#d9b76a25;color:#f1cf85;border:1px solid #d6b6654d}
.language-skill-featured .language-skill-arrow{color:#e1bc6e}

@media(max-width:600px){
 .language-cards-page{padding:12px 16px calc(92px + env(safe-area-inset-bottom,0px))}
 .language-cards-page>.learning-guide{margin-bottom:10px;padding:6px 9px;gap:8px}
 .language-cards-page>.learning-guide .companion-avatar{--avatar-size:32px}
 .language-skill-list{gap:10px}
 .language-skill-card{grid-template-columns:40px minmax(0,1fr);column-gap:11px;min-height:118px;padding:15px 36px 14px 14px;border-radius:16px}
 .language-skill-icon{width:40px;height:42px;border-radius:12px}
 .language-card-art{width:34px;height:34px}
 .language-skill-copy h2{font-size:18px;line-height:1.2;letter-spacing:-.018em}
 .language-skill-copy h2 .zh{font-size:13px!important;line-height:1.25!important;margin-top:3px}
 .language-skill-copy p{font-size:13px;line-height:1.35;margin-top:7px}
 .language-skill-copy p .zh{font-size:12px!important;line-height:1.3!important;margin-top:3px}
 .language-skill-meta{top:9px;right:11px;gap:5px}
 .language-skill-reward{font-size:11px;min-height:20px;padding:3px 6px}
 .language-skill-crown{font-size:14px}
 .language-skill-arrow{right:12px;bottom:15px;width:17px;height:17px}
 .language-skill-featured{padding-top:32px;padding-bottom:15px}
}
@media(max-width:360px){
 .language-cards-page{padding-left:12px;padding-right:12px;padding-top:10px}
 .language-cards-page>.learning-guide{padding:6px 8px;gap:8px}
 .language-cards-page>.learning-guide .companion-avatar{--avatar-size:30px}
 .language-cards-page>.learning-guide .learning-guide-message,.language-cards-page>.learning-guide .learning-guide-message .bi-en{font-size:13px!important;line-height:1.25!important}
 .language-cards-page>.learning-guide .learning-guide-message .zh{font-size:11.5px!important;line-height:1.25!important}
 .language-skill-list{gap:9px}
 .language-skill-card{grid-template-columns:32px minmax(0,1fr);column-gap:9px;padding:13px 30px 13px 12px;min-height:112px;border-radius:15px}
 .language-skill-icon{width:32px;height:36px;border-radius:10px}
 .language-card-art{width:29px;height:29px}
 .language-skill-copy h2{font-size:17px;line-height:1.18}
 .language-skill-copy h2 .zh{font-size:12.5px!important;line-height:1.25!important;margin-top:2px}
 .language-skill-copy p{font-size:13px;line-height:1.32;margin-top:6px}
 .language-skill-copy p .zh{font-size:11.5px!important;line-height:1.3!important;margin-top:2px}
 .language-skill-card:not(.language-skill-featured) h2{padding-right:31px}
 .language-skill-meta{top:8px;right:9px;gap:4px}
 .language-skill-reward{min-height:19px;font-size:10.5px;padding:3px 5px}
 .language-skill-reward>span{font-size:12px}
 .language-skill-crown{font-size:13px}
 .language-skill-arrow{right:10px;bottom:13px;width:16px;height:16px}
 .language-skill-featured{padding-top:30px;padding-bottom:13px}
}
@media(prefers-reduced-motion:reduce){.language-skill-card{transition:none}.language-skill-card:hover{transform:none}}

/* Same Mogao photograph as the heritage card, with a compact gold frame. */
.bottom-nav .nav-mogao-photo{display:block;width:26px;height:26px;box-sizing:border-box;object-fit:cover;object-position:center;border-radius:6px;border:1.5px solid #E5B869;box-shadow:0 1px 3px #071a1233;transition:box-shadow .2s ease}
.bottom-nav a.active .nav-mogao-photo,.bottom-nav a[aria-current="page"] .nav-mogao-photo{box-shadow:0 0 0 1px #E5B86933,0 0 10px #E5B86980}

/* Four compact, equally weighted sections throughout My Work. */
.classroom-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding-bottom:10px;margin-bottom:16px;flex-wrap:nowrap}
.classroom-tabs a{display:flex;justify-content:center;align-items:center;min-width:0;min-height:44px;padding:8px 5px;border-radius:12px;text-align:center;font-family:var(--sans);font-size:13px;line-height:1.2}
.classroom-tabs a .ui-label{align-items:center;min-width:0;gap:3px}
.classroom-tabs a .ui-en{font-size:13px;line-height:1.2;text-wrap:balance}
.classroom-tabs a .ui-zh{font-size:11px;line-height:1.25;color:inherit}
.classroom-tabs a.active{background:var(--forest);color:#fff4d8;box-shadow:inset 0 0 0 1px #c9a65c44}
.classroom-tabs a:focus-visible{outline:2px solid #b48c3c;outline-offset:3px}

/* Local learning evidence: warm paper, forest ink and modest gold accents. */
.progress-page{max-width:1000px;margin:0 auto}
.learning-progress-intro{margin-bottom:15px}
.learning-progress-intro h2{font-family:var(--sans);font-size:24px;line-height:1.2;font-weight:700;color:var(--forest);margin:0 0 10px}
.learning-progress-intro h2 .ui-zh{font-size:15px;line-height:1.3}
.learning-progress-intro p{font-size:14px;line-height:1.45;color:var(--muted);margin:0}
.learning-progress-intro p .ui-zh{font-size:12px;line-height:1.4}
.learning-progress-context{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;margin-bottom:14px;background:#eaf0e3;border:1px solid #d4deca;border-radius:15px}
.learning-progress-context>div{flex:1;min-width:0}
.learning-progress-context label,.learning-progress-site-label{display:block;margin-bottom:5px;font-size:12px;color:var(--muted)}
.learning-progress-context strong{display:block;font-size:16px;line-height:1.35;color:var(--forest)}
.learning-progress-context select{display:block;width:100%;max-width:340px;min-height:44px;padding:9px 32px 9px 11px;font-family:var(--sans);font-size:15px;color:var(--forest);background:#fffcf3;border:1px solid #becdb5;border-radius:9px}
.learning-progress-context .text-link{flex-shrink:0;min-height:44px;display:flex;align-items:center;gap:7px;font-size:13px}
.learning-progress-context .text-link svg{width:17px;height:17px}
.learning-progress-site-zh{display:block;font-size:12px;line-height:1.3;margin-top:3px;color:var(--muted)}
.learning-progress-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.learning-progress-metric{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;min-width:0;padding:17px 14px;background:#fffcf4;border:1px solid #d9ddcf;border-radius:13px}
.learning-progress-metric strong{font-family:var(--serif);font-size:31px;font-weight:600;line-height:1;color:var(--forest);font-variant-numeric:tabular-nums}
.learning-progress-metric strong small{font-family:var(--sans);font-size:15px;font-weight:500;color:#6b7b67;margin-left:2px}
.learning-progress-metric .ui-en{font-size:12px;line-height:1.25;font-weight:650;color:var(--forest)}
.learning-progress-metric .ui-zh{font-size:11px;line-height:1.25;color:var(--muted)}
.learning-progress-method{margin:11px 0 23px}
.learning-progress-method progress{display:block;width:100%;height:6px;overflow:hidden;border:0;border-radius:6px;accent-color:var(--forest);background:#e0e6d9}
.learning-progress-method progress::-webkit-progress-bar{background:#e0e6d9;border-radius:6px}
.learning-progress-method progress::-webkit-progress-value{background:var(--forest);border-radius:6px}
.learning-progress-method p{margin-top:8px;font-size:12px;line-height:1.4;color:var(--muted)}
.learning-progress-method .ui-zh{font-size:11px;line-height:1.35}
.learning-progress-evidence>h2,.learning-progress-reflection>h2{font-family:var(--sans);font-size:18px;line-height:1.35;font-weight:700;color:var(--forest);margin:0 0 13px}
.learning-progress-evidence>h2 .ui-zh,.learning-progress-reflection>h2 .ui-zh{font-size:13px;font-weight:500}
.learning-progress-drafts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:start;margin-bottom:23px}
.learning-progress-draft{min-width:0;padding:17px;background:#fffcf4;border:1px solid #d8ddcf;border-top:3px solid #bfa262;border-radius:13px}
.learning-progress-draft h3{font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.04em;line-height:1.3;margin:0 0 12px;color:#6c5a33}
.learning-progress-draft h3 .ui-zh{font-size:12px;letter-spacing:0;font-weight:500}
.progress-page .learning-progress-writing{font-family:var(--sans);font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--forest);margin:0}
.progress-page .learning-progress-empty{font-size:14px;line-height:1.45;color:#7c8578;padding:13px 0;margin:0}
.progress-page .learning-progress-empty .ui-zh{font-size:12px}
.progress-page .learning-progress-caption{font-size:11px;line-height:1.4;color:var(--muted);margin:13px 0 0}
.progress-page .learning-progress-caption .ui-zh{font-size:11px;line-height:1.35}
.learning-progress-reflection{padding:18px;background:#eaf0e3;border:1px solid #d4deca;border-radius:15px}
.learning-progress-judgment h3,.learning-progress-claim h3{font-family:var(--sans);font-size:14px;font-weight:650;line-height:1.3;margin:0 0 9px;color:var(--forest)}
.learning-progress-judgment h3 .ui-zh,.learning-progress-claim h3 .ui-zh{font-size:12px;font-weight:500}
.learning-progress-judgment>p{font-size:14px;line-height:1.4;margin:8px 0;color:var(--muted)}
.learning-progress-decision{display:inline-flex;padding:5px 10px;background:#fffcf0;border:1px solid #cbb77d;border-radius:20px;color:var(--forest);font-weight:650}
.learning-progress-claim{margin-top:17px;padding-top:15px;border-top:1px solid #cdd8c4}
@media(max-width:600px){
 .learning-progress-intro h2{font-size:22px}
 .classroom-tabs{gap:4px;margin-bottom:14px;padding-bottom:9px}
 .classroom-tabs a{padding:7px 3px;border-radius:10px}
 .classroom-tabs a .ui-en{font-size:11.5px;line-height:1.2}
 .classroom-tabs a .ui-zh{font-size:10.5px}
 .learning-progress-context{padding:12px;gap:10px}
 .learning-progress-context .text-link{font-size:12px;gap:4px}
 .learning-progress-stats{gap:7px}
 .learning-progress-metric{padding:14px 10px;gap:8px;border-radius:11px}
 .learning-progress-metric strong{font-size:29px}
 .learning-progress-metric .ui-en{font-size:11.5px}
 .learning-progress-metric .ui-zh{font-size:10.5px}
 .learning-progress-drafts{grid-template-columns:1fr;gap:12px}
 .learning-progress-draft{padding:15px}
 .learning-progress-reflection{padding:15px}
 .learning-progress-evidence>h2,.learning-progress-reflection>h2{font-size:17px}
}

/* A single compact mission status bar leaves the trail at the centre of the page. */
.quest-map-page{padding-top:12px}
.map-status-bar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin:0 0 12px;padding:10px 12px 13px;border:1px solid #c9b679;border-radius:15px;background:linear-gradient(110deg,#fbf4df,#f1ead2);box-shadow:0 2px 10px #7656250a;overflow:hidden}
.map-status-copy{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.map-status-copy>strong{min-width:0;font-family:var(--sans);font-size:15px;font-weight:700;line-height:1.2;color:var(--forest)}
.map-status-copy>strong .bi-label{display:flex;flex-direction:column;gap:2px}
.map-status-copy>strong .zh{font-family:var(--sans);font-size:11px!important;font-weight:500;line-height:1.25!important;margin:0;color:#758069}
.map-status-count{display:inline-flex;flex-shrink:0;padding:5px 7px;border:1px solid #c8b679;border-radius:20px;background:#fffaf0;color:#87652b;font-family:var(--sans);font-size:12px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
.map-status-bar .map-status-action{display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-height:38px;max-width:46%;padding:8px 10px;border-radius:20px;border:1px solid #c9a75c;background:linear-gradient(125deg,#f5dc9e,#e6c780);color:#294a36;font-size:12px;line-height:1.2;box-shadow:inset 0 1px 0 #fff6d7a8}
.map-status-action svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.8}
.map-status-action .ui-label{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
.map-status-action .ui-en{font-size:12px;font-weight:700;line-height:1.2}
.map-status-action .ui-zh{font-size:10.5px;line-height:1.2;color:#547049}
html[data-language="bi"] .map-status-bar .map-status-action{min-height:40px;padding-top:6px;padding-bottom:6px}
.map-status-progress{position:absolute;left:0;bottom:0;display:block;appearance:none;-webkit-appearance:none;width:100%;height:3px;border:0;background:#dcd5bb;color:#b48d38}
.map-status-progress::-webkit-progress-bar{background:#e4dcc4}
.map-status-progress::-webkit-progress-value{background:linear-gradient(90deg,#ab8030,#ebc86c)}
.map-status-progress::-moz-progress-bar{background:linear-gradient(90deg,#ab8030,#ebc86c)}

/* Warm parchment, worn fibres and quiet dust keep the Silk Road trail tactile. */
.adventure-map{border-color:#cbbb8c;background:radial-gradient(ellipse at 13% 8%,#fff5dba8,transparent 50%),radial-gradient(ellipse at 92% 86%,#cfb27a35,transparent 55%),linear-gradient(140deg,#eee5ca,#e6dcc0 47%,#f0e8d2);box-shadow:inset 0 0 25px #a07b3420,inset 0 1px 0 #fff9,0 4px 14px #8264310b}
.adventure-map:before{background:repeating-radial-gradient(ellipse at 23% 24%,transparent 0 30px,#a69a6f19 32px 33px,transparent 35px 61px),repeating-linear-gradient(7deg,#aa894007 0 1px,transparent 1px 4px),repeating-linear-gradient(94deg,#fff5dc12 0 1px,transparent 1px 6px);opacity:.9}
.adventure-map:after{border-color:#fff9dc80;box-shadow:0 0 0 1px #9b803c0a,inset 0 0 18px #8e6c2520}
.map-dust{position:absolute;z-index:0;inset:0;pointer-events:none;opacity:.6;background:radial-gradient(circle at 13% 17%,#fff2b9 0 1px,transparent 2px),radial-gradient(circle at 71% 8%,#f3d78d 0 1px,transparent 2px),radial-gradient(circle at 45% 29%,#fff4cb 0 1.3px,transparent 2.5px),radial-gradient(circle at 83% 43%,#f8dc91 0 1px,transparent 2px),radial-gradient(circle at 17% 53%,#fff3c1 0 1.4px,transparent 2.5px),radial-gradient(circle at 43% 73%,#f8dda0 0 1px,transparent 2px),radial-gradient(circle at 80% 87%,#fff3bd 0 1.2px,transparent 2.4px)}
.map-trail .trail-bed{stroke:#fff6df;opacity:.72}
.map-trail .trail-route{stroke:#bf9847;stroke-width:3.2;stroke-dasharray:5 9;filter:drop-shadow(0 0 2px #cda74c48)}
.map-trail .trail-complete{stroke:#688258;stroke-dasharray:5 9}
.map-node-copy{background:#fffaf0e8;border-color:#cfc3a2}
.map-node.available .map-orb{background:linear-gradient(145deg,#f2dfaf,#d7b978)}
.map-node.current .map-orb{background:linear-gradient(145deg,#fff0bd,#d8ad52);border-color:#fff6d5;box-shadow:0 0 0 3px #b89036,0 0 0 7px #efce7950,0 0 21px #dfbd6866,0 5px 0 #b19a6550;color:#4b3d1c}
.map-node.current .map-node-copy{border-color:#bf9740;background:#fff3d4;box-shadow:0 0 9px #d7b46224}
/* The boy marks saved mission progress; he stays attached to its checkpoint. */
.map-current-guardian{position:absolute;right:calc(100% + 7px);top:50%;transform:translateY(-50%);pointer-events:none}
.map-current-guardian .companion-avatar{--avatar-size:32px;border-color:#bd9445;background:#f6ecd2;box-shadow:0 0 0 2px #fff5d6b3,0 2px 6px #72522030}
.map-current-guardian:after{content:"";position:absolute;left:calc(100% + 1px);top:calc(50% - 3px);border-top:3px solid transparent;border-bottom:3px solid transparent;border-left:4px solid #bd9445}
.map-levels>li:nth-child(even) .map-current-guardian{right:auto;left:calc(100% + 7px)}
.map-levels>li:nth-child(even) .map-current-guardian:after{left:auto;right:calc(100% + 1px);border-left:0;border-right:4px solid #bd9445}
@media(max-width:360px){.map-current-guardian .companion-avatar{--avatar-size:26px}}
.map-node.locked .map-orb{border-color:#eee5cc;background:linear-gradient(145deg,#e4d8ba,#cfc3a1);box-shadow:0 3px 0 #9a8b6950;color:#7e735b}
.map-node.locked .map-node-copy{border-color:#d0c6ab;background:#efe7d5ed;color:#716951}
.map-node.locked .map-status-icon{width:22px;height:22px;right:-5px;bottom:-2px;border-color:#f3e6c7;background:linear-gradient(145deg,#b99a64,#80663f);color:#fff0bc;box-shadow:0 1px 4px #71501c42}
.map-node.locked .map-status-icon svg{width:13px;height:13px;stroke-width:1.7;filter:drop-shadow(0 1px 0 #6b4d28)}
.map-node.locked .map-level-number{color:#8b713f}
.map-compass,.map-landmark{color:#937b48}

@media(max-width:360px){
 .map-status-bar{gap:7px;padding:9px 9px 12px;border-radius:13px}
 .map-status-copy{gap:6px}
 .map-status-copy>strong{font-size:14px}
 .map-status-copy>strong .zh{font-size:10.5px!important}
 .map-status-count{font-size:11px;padding:4px 5px}
 .map-status-bar .map-status-action{max-width:45%;gap:4px;padding-left:8px;padding-right:8px}
 .map-status-action .ui-en{font-size:11.5px}.map-status-action .ui-zh{font-size:10px}
}
@media(prefers-reduced-motion:no-preference){
 .map-trail .trail-route{animation:map-flowing-gold 9s linear infinite}
 .map-dust{animation:map-dust-glimmer 5s ease-in-out infinite alternate}
 .map-node.current .map-orb{animation:map-golden-pulse 2.8s ease-in-out infinite}
 @keyframes map-flowing-gold{to{stroke-dashoffset:-84}}
 @keyframes map-dust-glimmer{from{opacity:.32;transform:translateY(2px)}to{opacity:.78;transform:translateY(-3px)}}
 @keyframes map-golden-pulse{0%,100%{box-shadow:0 0 0 3px #b89036,0 0 0 7px #efce7950,0 0 16px #dfbd6855,0 5px 0 #b19a6550}50%{box-shadow:0 0 0 3px #bd9949,0 0 0 11px #efce7914,0 0 28px #e6c57385,0 5px 0 #b19a6550}}
}
@media(prefers-reduced-motion:reduce){
 .map-trail .trail-route,.map-dust,.map-node.current .map-orb{animation:none!important;transition:none!important}
}

@media(min-width:361px) and (max-width:600px){.adventure-map{aspect-ratio:360/630}}

/* Keep earning guidance and the preview beside one another, directly below the balance. */
.museum-top-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:9px;margin:-4px 0 17px}
.museum-top-actions>button{min-width:0;min-height:44px;display:flex;justify-content:center;align-items:center;gap:7px;border-radius:11px;padding:9px 11px;font-family:var(--sans);font-size:13px;line-height:1.25;text-align:center;cursor:pointer}
.museum-top-actions>button svg{width:17px;height:17px;flex-shrink:0}
.museum-top-actions .ui-label{align-items:center;gap:2px;min-width:0}
.museum-top-actions .ui-en{font-size:13px;line-height:1.25;font-weight:650;text-wrap:balance}
.museum-top-actions .ui-zh{font-size:11px;line-height:1.25;color:inherit;opacity:.84}
.museum-earn-link{background:#eaf0e3;border:1px solid #c9d7bf;color:var(--forest)}
.museum-watch-demo{background:linear-gradient(120deg,#f0d6a0,#dfb96e);border:1px solid #c29c4e;color:#284536;box-shadow:0 2px 7px #89621d18}
.museum-top-actions>button:hover{filter:brightness(1.035)}
.museum-top-actions>button:focus-visible{outline:2px solid #a77e30;outline-offset:3px}
#modal.museum-drawer .museum-top-actions{margin:0 0 16px;gap:7px}
#modal.museum-drawer .museum-top-actions>button{padding:8px;gap:5px}
#modal.museum-drawer .museum-top-actions .ui-en{font-size:12px}

/* Image-only restoration demonstration. All animation is scoped away from genuine collections. */
#modal.museum-restoration-modal{width:500px;max-width:calc(100% - 28px)}
#modal .museum-restoration-demo{margin-top:14px}
#modal .museum-demo-stage{position:relative;isolation:isolate;aspect-ratio:4/3;overflow:hidden;border-radius:14px;border:1px solid #ad915344;background:radial-gradient(ellipse at 50% 32%,#536559,#263e33 62%,#172e25);box-shadow:inset 0 0 35px #08180f66}
#modal .museum-demo-fragments{position:absolute;inset:12%;z-index:2;animation:museum-preview-fragments 3s linear both}
#modal .museum-demo-stage .artifact-grid{position:absolute;inset:0;width:100%;height:100%;gap:0;transform:none}
#modal .museum-demo-stage .artifact-piece{border:0;border-radius:0;box-shadow:none;background-size:300% 200%;filter:none;opacity:1;transform:none;animation:museum-preview-piece 1.75s cubic-bezier(.18,.7,.3,1) both;animation-delay:calc(var(--i)*80ms)}
#modal .museum-demo-stage .artifact-piece:nth-child(1){--piece-x:-27px;--piece-y:-21px;--piece-rotation:-8deg}
#modal .museum-demo-stage .artifact-piece:nth-child(2){--piece-x:0px;--piece-y:-30px;--piece-rotation:5deg}
#modal .museum-demo-stage .artifact-piece:nth-child(3){--piece-x:26px;--piece-y:-23px;--piece-rotation:8deg}
#modal .museum-demo-stage .artifact-piece:nth-child(4){--piece-x:-28px;--piece-y:23px;--piece-rotation:-6deg}
#modal .museum-demo-stage .artifact-piece:nth-child(5){--piece-x:1px;--piece-y:29px;--piece-rotation:4deg}
#modal .museum-demo-stage .artifact-piece:nth-child(6){--piece-x:27px;--piece-y:22px;--piece-rotation:7deg}
#modal .museum-demo-seams{position:absolute;inset:12%;width:76%;height:76%;z-index:3;fill:none;stroke:#ffe5a2;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #e5b04d);pointer-events:none;opacity:0;animation:museum-preview-seams 3s ease-in-out both}
#modal .museum-demo-complete{position:absolute;inset:12%;width:76%;height:76%;z-index:4;object-fit:fill;opacity:0;box-shadow:0 5px 15px #06130b55;animation:museum-preview-photo 3s ease-out both}
#modal .museum-demo-glint{position:absolute;inset:0;z-index:5;pointer-events:none;background:radial-gradient(ellipse at 50% 50%,#f0ce7730,transparent 65%);opacity:0;animation:museum-preview-glint 3s ease-out both}
#modal .museum-restoration-demo h3{font-family:var(--sans);font-size:18px;line-height:1.3;font-weight:700;color:var(--forest);margin:15px 0 9px}
#modal .museum-restoration-demo h3 .ui-zh{font-size:13px;font-weight:500}
#modal .museum-demo-caption{font-size:13px;line-height:1.45;margin:0 0 12px;color:var(--muted)}
#modal .museum-demo-caption .ui-zh{font-size:12px;line-height:1.4}
#modal .museum-demo-safe{display:flex;align-items:flex-start;gap:8px;padding:11px 12px;background:#eaf0e3;border:1px solid #d0dcc5;border-radius:10px;font-size:13px;line-height:1.4;color:var(--forest);margin:0}
#modal .museum-demo-safe>svg{flex-shrink:0;width:17px;height:17px;margin-top:1px}
#modal .museum-demo-safe .ui-zh{font-size:12px;line-height:1.35}
#modal.museum-restoration-modal .modal-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
#modal.museum-restoration-modal .modal-actions .btn{min-width:0;min-height:44px;font-size:13px;padding:10px 12px}
@keyframes museum-preview-piece{0%{transform:translate(var(--piece-x),var(--piece-y)) rotate(var(--piece-rotation));opacity:.2}22%{opacity:1}100%{transform:translate(0,0) rotate(0deg);opacity:1}}
@keyframes museum-preview-fragments{0%,80%{opacity:1}100%{opacity:0}}
@keyframes museum-preview-seams{0%,55%{opacity:0}68%,77%{opacity:1}100%{opacity:0}}
@keyframes museum-preview-photo{0%,77%{opacity:0}100%{opacity:1}}
@keyframes museum-preview-glint{0%,57%{opacity:0}74%{opacity:1}100%{opacity:0}}
@media(max-width:600px){
 .museum-top-actions{gap:7px;margin-bottom:15px}
 .museum-top-actions>button{padding:9px 8px;gap:5px}
 .museum-top-actions .ui-en{font-size:12px}
 .museum-top-actions .ui-zh{font-size:10.5px}
 #modal.museum-restoration-modal{padding:20px}
 #modal .museum-restoration-demo{margin-top:11px}
 #modal .museum-demo-stage{border-radius:12px}
 #modal.museum-restoration-modal .modal-actions .btn{padding:9px 8px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 #modal .museum-demo-stage *{animation:none!important;transition:none!important}
 #modal .museum-demo-fragments,#modal .museum-demo-seams,#modal .museum-demo-glint{display:none}
 #modal .museum-demo-complete{opacity:1}
}

/* Bilingual cover captions use the complete canvas width; the English-only composition stays intact. */
html[data-language="bi"] .landing-cover .calling-scroll{left:0;width:100%;max-width:100%;margin:0;transform:none;box-sizing:border-box;padding:12px 14px;padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px));align-items:stretch;text-align:left}
html[data-language="bi"] .landing-cover .calling-scroll:before,
html[data-language="bi"] .landing-cover .calling-scroll:after{left:0;right:0}
html[data-language="bi"] .landing-cover .calling-badge,
html[data-language="bi"] .landing-cover .calling-line,
html[data-language="bi"] .landing-cover .calling-badge-en,
html[data-language="bi"] .landing-cover .calling-badge-zh,
html[data-language="bi"] .landing-cover .calling-en,
html[data-language="bi"] .landing-cover .calling-zh{width:100%;max-width:100%;box-sizing:border-box;text-align:left;white-space:normal;text-wrap:wrap;word-break:normal;overflow-wrap:break-word}
html[data-language="bi"] .landing-cover .calling-en{line-height:1.35}
html[data-language="bi"] .landing-cover .calling-line-1 .calling-en{letter-spacing:.01em;line-height:1.3}
html[data-language="bi"] .landing-cover .calling-zh,
html[data-language="bi"] .landing-cover .calling-line-1 .calling-zh,
html[data-language="bi"] .landing-cover .calling-line-2 .calling-zh,
html[data-language="bi"] .landing-cover .calling-line-3 .calling-zh{letter-spacing:.03em;line-height:1.4}

/* A neutral six-step overview explains the route without implying selection, progress or unlocked missions. */
.library-gallery .library-route-overview{margin-top:20px;padding:15px 12px 13px;border:1px solid #d7d7c5;border-radius:14px;background:linear-gradient(140deg,#f1f0e2,#faf7ec);color:#284f3e}
.library-route-overview .mini-route-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.library-route-overview h2{margin:0;font:650 14px/1.3 var(--sans);letter-spacing:0;color:#284f3e}
.library-route-overview h2 .zh{display:block;margin-top:3px;font:400 11px/1.3 var(--sans);color:#75806a}
.library-route-overview .mini-route-loop{display:block;flex:0 0 18px;color:#b2975c}
.library-route-overview .mini-route-loop svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.library-route-overview .library-mini-route{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;position:relative;margin:0;padding:0;list-style:none}
.library-route-overview .library-mini-route:before{content:'';position:absolute;left:8.333%;right:8.333%;top:17px;border-top:1px dashed #bfb89c;pointer-events:none}
.library-route-overview .library-mini-route li{display:flex;flex-direction:column;align-items:center;position:relative;min-width:0;text-align:center}
.library-route-overview .library-mini-route li+li:before{content:'›';position:absolute;left:-5px;top:8px;font:400 14px/18px var(--sans);color:#a78e57;background:#f6f3e8;padding:0 1px}
.library-route-overview .mini-step-mark{display:flex;align-items:center;justify-content:center;gap:2px;position:relative;z-index:1;box-sizing:border-box;width:34px;height:34px;border:1px solid #c7bb92;border-radius:50%;background:#f4f1e4;color:#46664c;box-shadow:0 1px 2px #5c624813}
.library-route-overview .mini-step-mark svg{display:block;width:11px;height:11px;flex:0 0 11px;fill:none;stroke:currentColor;stroke-width:1.6}
.library-route-overview .mini-step-mark strong{font:650 13px/1 var(--serif);color:#997b42}
.library-route-overview .mini-step-name{display:block;width:100%;margin-top:7px;font:500 9px/1.3 var(--sans);color:#47634c}
.library-route-overview .mini-step-name .bi-en{display:block;font:inherit;white-space:nowrap}
.library-route-overview .mini-step-name .zh{display:block;margin-top:3px;font:400 9px/1.3 var(--sans);color:#78806c}
.library-route-overview .mini-route-note{margin:12px 0 0;font:400 11px/1.4 var(--sans);color:#5d7258}
.library-route-overview .mini-route-note .zh{display:block;margin-top:2px;font-size:10px;line-height:1.4;color:#80836d}
.library-route-overview .mini-route-start{margin:7px 0 0;font:400 11px/1.4 var(--sans);color:#77816e}
.library-route-overview .mini-route-start .zh{display:block;margin-top:2px;font-size:10px;line-height:1.4}
.library-route-overview .mini-route-link{display:inline-flex;align-items:center;gap:7px;min-height:36px;margin-top:5px;padding:4px 0;color:#3c6953;font:600 12px/1.35 var(--sans);text-align:left}
.library-route-overview .mini-route-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6}
@media(min-width:601px){.library-route-overview .mini-step-name{font-size:11px}.library-route-overview .mini-step-name .zh{font-size:10px}.library-route-overview h2{font-size:16px}}
@media(max-width:360px){.library-gallery .library-route-overview{padding:13px 8px 12px}.library-route-overview .library-mini-route{gap:2px}.library-route-overview .mini-step-mark{width:32px;height:32px}.library-route-overview .library-mini-route:before{top:16px}.library-route-overview .mini-step-name{font-size:8.7px}.library-route-overview .mini-step-name .zh{font-size:8.7px}}

/* Compact museum drawer: title, demo and close share a single header; balance and help share one row. */
#modal.museum-drawer .modal-top{display:grid;grid-template-columns:auto auto minmax(32px,1fr);align-items:center;gap:9px;margin:0 0 14px}
#modal.museum-drawer .modal-top #modal-title{min-width:0;margin:0;font:700 22px/1.15 var(--sans);letter-spacing:-.025em;color:#284e3a}
#modal.museum-drawer .modal-top #modal-title .bi-en{white-space:nowrap}
#modal.museum-drawer .modal-top #modal-title .zh{margin-top:3px;font:400 12px/1.3 var(--sans);letter-spacing:0}
#modal.museum-drawer .museum-drawer-demo{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:70px;min-height:36px;padding:8px 11px;border:1px solid #d6b366;border-radius:999px;background:linear-gradient(115deg,#e8c16f,#f4daa0 58%,#dcb45f);box-shadow:inset 0 1px 0 #fff6d5b3,0 2px 7px #9d74291a;font:700 12px/1.2 var(--sans);color:#3d3a20;white-space:nowrap}
#modal.museum-drawer .museum-drawer-demo:hover{filter:brightness(1.04)}
#modal.museum-drawer .modal-top>.icon-btn{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;justify-self:end}
#modal.museum-drawer .museum-drawer-summary{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px;margin:0 0 14px;align-items:stretch}
#modal.museum-drawer .museum-drawer-wallet{min-width:0;margin:0;gap:8px;padding:11px 10px;border-radius:13px}
#modal.museum-drawer .museum-drawer-wallet>.nav-art,#modal.museum-drawer .museum-drawer-wallet>svg{width:24px;height:29px;flex:0 0 24px;margin:0}
#modal.museum-drawer .museum-drawer-wallet>div{min-width:0;flex:1}
#modal.museum-drawer .museum-drawer-wallet strong{display:block;font:700 27px/1 var(--sans);font-variant-numeric:tabular-nums;color:#30563f}
#modal.museum-drawer .museum-drawer-wallet p{margin:5px 0 0;line-height:1.25}
#modal.museum-drawer .museum-drawer-wallet .ui-en{font:500 11.5px/1.25 var(--sans);color:#5c7154}
#modal.museum-drawer .museum-drawer-wallet .ui-zh{margin-top:2px;font:400 10.5px/1.3 var(--sans);color:#718164}
#modal.museum-drawer .museum-drawer-earn{display:flex;align-items:center;justify-content:center;min-width:0;min-height:78px;gap:7px;padding:11px 9px;border:1px solid #d8d5bb;border-radius:13px;background:#f3f0e2;color:#456449;text-align:left;box-shadow:inset 0 1px 0 #fff8}
#modal.museum-drawer .museum-drawer-earn>svg{width:18px;height:18px;flex:0 0 18px;color:#aa8846}
#modal.museum-drawer .museum-drawer-earn>.ui-label{min-width:0;align-items:flex-start}
#modal.museum-drawer .museum-drawer-earn .ui-en{font:650 12px/1.3 var(--sans);color:#456449}
#modal.museum-drawer .museum-drawer-earn .ui-zh{margin-top:4px;font:400 10.5px/1.3 var(--sans);color:#7c826b}
#modal.museum-drawer .museum-drawer-earn:hover{background:#ececdb;border-color:#beaf78}
@media(max-width:600px){
 #modal.museum-drawer{padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px))}
 #modal.museum-drawer .modal-top #modal-title{font-size:21px}
}
@media(max-width:360px){
 #modal.museum-drawer .modal-top{gap:7px}
 #modal.museum-drawer .modal-top #modal-title{font-size:20px}
 #modal.museum-drawer .museum-drawer-demo{min-width:63px;padding:8px 9px}
 #modal.museum-drawer .museum-drawer-summary{gap:8px}
 #modal.museum-drawer .museum-drawer-wallet{padding:10px 8px;gap:6px}
 #modal.museum-drawer .museum-drawer-wallet>.nav-art{width:20px;height:26px;flex-basis:20px}
 #modal.museum-drawer .museum-drawer-wallet .ui-en{font-size:11px}
 #modal.museum-drawer .museum-drawer-earn{gap:5px;padding:10px 8px}
 #modal.museum-drawer .museum-drawer-earn>svg{width:16px;height:16px;flex-basis:16px}
 #modal.museum-drawer .museum-drawer-earn .ui-en{font-size:11.5px}
}


/* A decorative route demo. It never changes saved checkpoints or awards. */
.library-gallery .mini-adventure{position:relative;isolation:isolate;margin-top:20px;padding:13px 12px 11px;border:1px solid #d0bc89;border-radius:17px;overflow:hidden;background:radial-gradient(ellipse at 85% 18%,#fff9dfb0,transparent 59%),radial-gradient(ellipse at 10% 100%,#d8dfc08c,transparent 58%),#f1e8cc;box-shadow:inset 0 0 25px #bb945b16,0 3px 12px #80683d0b;color:#355443}
.library-gallery .mini-adventure:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-radial-gradient(ellipse at 23% 47%,transparent 0 21px,#a9986b15 22px 23px,transparent 24px 43px),repeating-linear-gradient(98deg,#9a794507 0 1px,transparent 1px 4px);opacity:.85}
.mini-adventure .mini-adventure-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:0 1px}
.mini-adventure .mini-adventure-heading h2{margin:0;font:650 14px/1.3 var(--sans);letter-spacing:0;color:#355443}
.mini-adventure .mini-adventure-heading h2 .zh{display:block;margin-top:3px;font:400 11px/1.3 var(--sans);color:#697859}
.mini-adventure-preview{flex-shrink:0;padding:4px 7px;border:1px solid #cbb77c77;border-radius:6px;background:#fff8e270;color:#8e7137}
.mini-adventure-preview .ui-en,.mini-adventure-preview .ui-zh{font:500 9px/1.25 var(--sans);white-space:nowrap}
.mini-adventure-preview .ui-label{gap:1px;align-items:center}
.mini-adventure-canvas{position:relative;min-width:0;margin:0 -2px}
.mini-adventure-compass{position:absolute;right:4px;top:7px;font:600 13px/1 var(--serif);letter-spacing:.1em;color:#8d7d50;pointer-events:none}
.mini-adventure-map{display:block;width:100%;height:auto;overflow:visible}
.mini-adventure-bed{fill:none;stroke:#fff9e8;stroke-width:10;stroke-linecap:round;opacity:.92}
.mini-adventure-trail{fill:none;stroke:#ba9443;stroke-width:2.4;stroke-dasharray:3 6;stroke-linecap:round;filter:drop-shadow(0 0 2px #e9c56f70);animation:mini-trail-flow 2.6s linear infinite}
.mini-adventure-ring{fill:none;stroke:#efb843;stroke-width:2;opacity:0}
.mini-adventure-node{fill:#e6dbc0;stroke:#bfaa76;stroke-width:1.4}
.mini-adventure-icon{width:14px;height:14px;fill:none;stroke:#4e6b4c;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mini-adventure-letter{stroke:none;fill:#6c542e;font:700 13px/1 var(--serif)}
.mini-adventure-name{stroke:none;fill:#435d43;font:600 9.3px/1 var(--sans);letter-spacing:0}
.mini-adventure-zh{stroke:none;fill:#747852;font:400 8.9px/1 var(--sans);letter-spacing:0}
.mini-adventure-boy{transform:translate(25px,58px);transform-origin:0 0;filter:drop-shadow(0 2px 2px #6e4b2040);animation:mini-boy-run 10s linear infinite}
.mini-boy-shadow{fill:#745d38;opacity:.17}
/* A native SVG portrait shares its moving group with the shadow, including on WebKit. */
.mini-adventure .mini-boy-portrait{width:34px;height:34px;display:block}
.mini-adventure-accessible{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.mini-adventure .mini-adventure-open{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:39px;margin:0;padding:8px 10px;border:1px solid #cda958;border-radius:10px;background:linear-gradient(110deg,#ead39b,#f7e4b5 60%,#e7cc8f);box-shadow:inset 0 1px 0 #fffcdf99;color:#35513c;font:650 12px/1.3 var(--sans);text-decoration:none;cursor:pointer}
.mini-adventure-open>svg{display:block;width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.7}
.mini-adventure-open>svg:last-child{margin-left:auto}.mini-adventure-open>svg:first-child{margin-right:auto}
.mini-adventure-open .ui-label{align-items:center;text-align:center;gap:2px}
.mini-adventure-open .ui-zh{font-size:10.5px;font-weight:500;line-height:1.3}
.mini-adventure-open:hover{filter:brightness(1.035)}
.mini-adventure-open:focus-visible{outline:3px solid #a17b32;outline-offset:3px}
.mini-adventure .mini-adventure-caption{margin:7px 0 0;text-align:center;font:400 10px/1.35 var(--sans);color:#747554}
.mini-adventure-caption .zh{display:block;font-size:9.5px;line-height:1.35;margin-top:2px}
@keyframes mini-trail-flow{to{stroke-dashoffset:-36}}
@keyframes mini-boy-run{0%,8%{transform:translate(25px,58px);opacity:1}10.167%{transform:translate(38.204px,61.704px);opacity:1}12.333%{transform:translate(47.963px,70.963px);opacity:1}14.500%{transform:translate(56.000px,83.000px);opacity:1}16.667%{transform:translate(64.037px,95.037px);opacity:1}18.833%{transform:translate(73.796px,104.296px);opacity:1}21.000%{transform:translate(87.000px,108.000px);opacity:1}25%{transform:translate(87px,108px);opacity:1}27.167%{transform:translate(100.204px,104.296px);opacity:1}29.333%{transform:translate(109.963px,95.037px);opacity:1}31.500%{transform:translate(118.000px,83.000px);opacity:1}33.667%{transform:translate(126.037px,70.963px);opacity:1}35.833%{transform:translate(135.796px,61.704px);opacity:1}38.000%{transform:translate(149.000px,58.000px);opacity:1}42%{transform:translate(149px,58px);opacity:1}44.167%{transform:translate(162.204px,61.704px);opacity:1}46.333%{transform:translate(171.963px,70.963px);opacity:1}48.500%{transform:translate(180.000px,83.000px);opacity:1}50.667%{transform:translate(188.037px,95.037px);opacity:1}52.833%{transform:translate(197.796px,104.296px);opacity:1}55.000%{transform:translate(211.000px,108.000px);opacity:1}59%{transform:translate(211px,108px);opacity:1}61.167%{transform:translate(224.204px,104.296px);opacity:1}63.333%{transform:translate(233.963px,95.037px);opacity:1}65.500%{transform:translate(242.000px,83.000px);opacity:1}67.667%{transform:translate(250.037px,70.963px);opacity:1}69.833%{transform:translate(259.796px,61.704px);opacity:1}72.000%{transform:translate(273.000px,58.000px);opacity:1}76%{transform:translate(273px,58px);opacity:1}78.167%{transform:translate(286.204px,61.704px);opacity:1}80.333%{transform:translate(295.963px,70.963px);opacity:1}82.500%{transform:translate(304.000px,83.000px);opacity:1}84.667%{transform:translate(312.037px,95.037px);opacity:1}86.833%{transform:translate(321.796px,104.296px);opacity:1}89.000%{transform:translate(335.000px,108.000px);opacity:1}96%{transform:translate(335px,108px);opacity:1}98%{transform:translate(335px,108px);opacity:0}100%{transform:translate(25px,58px);opacity:0}}
.mini-adventure .station-1 .mini-adventure-node{animation:mini-node-1 10s linear infinite}
.mini-adventure .station-1 .mini-adventure-ring{animation:mini-ring-1 10s linear infinite}
@keyframes mini-node-1{0%,4%{fill:#f1cd76;stroke:#b88a34;filter:drop-shadow(0 0 3px #e8ad3b80)}5%,96%{fill:#eddb9f;stroke:#c09d4c;filter:none}98%,100%{fill:#e6dbc0;stroke:#bfaa76;filter:none}}
@keyframes mini-ring-1{0%,0%{opacity:0;stroke-width:2}0.1%{opacity:1;stroke-width:3}4%{opacity:.15;stroke-width:1}5%,100%{opacity:0;stroke-width:1}}
.mini-adventure .station-2 .mini-adventure-node{animation:mini-node-2 10s linear infinite}
.mini-adventure .station-2 .mini-adventure-ring{animation:mini-ring-2 10s linear infinite}
@keyframes mini-node-2{0%,20.9%{fill:#e6dbc0;stroke:#bfaa76;filter:none}21%,25%{fill:#f1cd76;stroke:#b88a34;filter:drop-shadow(0 0 3px #e8ad3b80)}26%,96%{fill:#eddb9f;stroke:#c09d4c;filter:none}98%,100%{fill:#e6dbc0;stroke:#bfaa76;filter:none}}
@keyframes mini-ring-2{0%,20.9%{opacity:0;stroke-width:2}21.1%{opacity:1;stroke-width:3}25%{opacity:.15;stroke-width:1}26%,100%{opacity:0;stroke-width:1}}
.mini-adventure .station-3 .mini-adventure-node{animation:mini-node-3 10s linear infinite}
.mini-adventure .station-3 .mini-adventure-ring{animation:mini-ring-3 10s linear infinite}
@keyframes mini-node-3{0%,37.9%{fill:#e6dbc0;stroke:#bfaa76;filter:none}38%,42%{fill:#f1cd76;stroke:#b88a34;filter:drop-shadow(0 0 3px #e8ad3b80)}43%,96%{fill:#eddb9f;stroke:#c09d4c;filter:none}98%,100%{fill:#e6dbc0;stroke:#bfaa76;filter:none}}
@keyframes mini-ring-3{0%,37.9%{opacity:0;stroke-width:2}38.1%{opacity:1;stroke-width:3}42%{opacity:.15;stroke-width:1}43%,100%{opacity:0;stroke-width:1}}
.mini-adventure .station-4 .mini-adventure-node{animation:mini-node-4 10s linear infinite}
.mini-adventure .station-4 .mini-adventure-ring{animation:mini-ring-4 10s linear infinite}
@keyframes mini-node-4{0%,54.9%{fill:#e6dbc0;stroke:#bfaa76;filter:none}55%,59%{fill:#f1cd76;stroke:#b88a34;filter:drop-shadow(0 0 3px #e8ad3b80)}60%,96%{fill:#eddb9f;stroke:#c09d4c;filter:none}98%,100%{fill:#e6dbc0;stroke:#bfaa76;filter:none}}
@keyframes mini-ring-4{0%,54.9%{opacity:0;stroke-width:2}55.1%{opacity:1;stroke-width:3}59%{opacity:.15;stroke-width:1}60%,100%{opacity:0;stroke-width:1}}
.mini-adventure .station-5 .mini-adventure-node{animation:mini-node-5 10s linear infinite}
.mini-adventure .station-5 .mini-adventure-ring{animation:mini-ring-5 10s linear infinite}
@keyframes mini-node-5{0%,71.9%{fill:#e6dbc0;stroke:#bfaa76;filter:none}72%,76%{fill:#f1cd76;stroke:#b88a34;filter:drop-shadow(0 0 3px #e8ad3b80)}77%,96%{fill:#eddb9f;stroke:#c09d4c;filter:none}98%,100%{fill:#e6dbc0;stroke:#bfaa76;filter:none}}
@keyframes mini-ring-5{0%,71.9%{opacity:0;stroke-width:2}72.1%{opacity:1;stroke-width:3}76%{opacity:.15;stroke-width:1}77%,100%{opacity:0;stroke-width:1}}
.mini-adventure .station-6 .mini-adventure-node{animation:mini-node-6 10s linear infinite}
.mini-adventure .station-6 .mini-adventure-ring{animation:mini-ring-6 10s linear infinite}
@keyframes mini-node-6{0%,88.9%{fill:#e6dbc0;stroke:#bfaa76;filter:none}89%,93%{fill:#f1cd76;stroke:#b88a34;filter:drop-shadow(0 0 3px #e8ad3b80)}94%,96%{fill:#eddb9f;stroke:#c09d4c;filter:none}98%,100%{fill:#e6dbc0;stroke:#bfaa76;filter:none}}
@keyframes mini-ring-6{0%,88.9%{opacity:0;stroke-width:2}89.1%{opacity:1;stroke-width:3}93%{opacity:.15;stroke-width:1}94%,100%{opacity:0;stroke-width:1}}

@media(max-width:360px){.library-gallery .mini-adventure{padding:12px 9px 10px}.mini-adventure .mini-adventure-heading h2{font-size:13px}.mini-adventure .mini-adventure-heading h2 .zh{font-size:10.5px}}
@media(prefers-reduced-motion:reduce){.mini-adventure .mini-adventure-trail,.mini-adventure .mini-adventure-boy,.mini-adventure .mini-adventure-node,.mini-adventure .mini-adventure-ring{animation:none!important}.mini-adventure .mini-adventure-node{fill:#eddb9f;stroke:#c09d4c}.mini-adventure .mini-adventure-boy{transform:translate(25px,58px)}.mini-adventure .mini-adventure-ring{opacity:0}}

/* A content-sized, edge-to-edge scroll leaves the mural visible above it. */
.landing-cover .calling-scroll,
html[data-language="bi"] .landing-cover .calling-scroll{left:0;right:0;bottom:0;width:100%;max-width:none;min-height:0;margin:0;padding:12px 14px 16px;padding-bottom:max(16px,env(safe-area-inset-bottom,0px));transform:none;border-radius:0;border-left:0;border-right:0;box-sizing:border-box;align-items:stretch;justify-content:flex-start;text-align:left}
.landing-cover .calling-scroll:before,.landing-cover .calling-scroll:after{left:0;right:0}
.landing-cover .calling-line,.landing-cover .calling-en,.landing-cover .calling-zh{width:100%;max-width:100%;text-align:left;box-sizing:border-box}
.landing-cover .calling-line-1 .calling-en,
html[data-language="bi"] .landing-cover .calling-line-1 .calling-en{font-size:clamp(13px,3.6vw,15.5px);font-weight:700;line-height:1.3;letter-spacing:clamp(-.4px,calc(2vw - 6.8px),0px);white-space:nowrap;text-wrap:nowrap;overflow-wrap:normal;word-break:normal}
.landing-cover .calling-line-1 .calling-zh,
html[data-language="bi"] .landing-cover .calling-line-1 .calling-zh{font-size:13.5px;line-height:1.35;letter-spacing:.01em}
.landing-cover .calling-line-2 .calling-en,
html[data-language="bi"] .landing-cover .calling-line-2 .calling-en{font-size:14px;line-height:1.42;letter-spacing:0}
.landing-cover .calling-line-2 .calling-zh,
html[data-language="bi"] .landing-cover .calling-line-2 .calling-zh{font-size:12.5px;line-height:1.4;letter-spacing:.01em}
.landing-cover .calling-line-3 .calling-en,
html[data-language="bi"] .landing-cover .calling-line-3 .calling-en{font-size:13.5px;line-height:1.38}
.landing-cover .calling-line-3 .calling-zh,
html[data-language="bi"] .landing-cover .calling-line-3 .calling-zh{font-size:12.5px;line-height:1.35;letter-spacing:.01em}

/* Museum drawer: an inventory strip, three earning columns, and tangible fragment slots. */
#modal.museum-drawer .museum-inventory-bar{display:flex;align-items:center;gap:9px;min-height:44px;margin:0 0 14px;padding:8px 11px;border:1px solid #d1ddc8;border-radius:11px;background:linear-gradient(105deg,#e5eddd,#edf1e4);box-shadow:inset 0 1px 0 #fff8;color:#31583e}
#modal.museum-drawer .museum-inventory-bar>.nav-art{display:block;width:24px;height:28px;flex:0 0 24px;object-fit:contain}
#modal.museum-drawer .museum-inventory-label{flex:1;min-width:0}
#modal.museum-drawer .museum-inventory-label .ui-label{display:flex;align-items:flex-start;gap:2px}
#modal.museum-drawer .museum-inventory-label .ui-en{font:650 13.5px/1.2 var(--sans);color:#31583e}
#modal.museum-drawer .museum-inventory-label .ui-zh{font:500 11.5px/1.25 var(--sans);color:#667b5b;opacity:1}
#modal.museum-drawer .museum-inventory-count{flex:0 0 auto;margin-left:2px;font:750 22px/1 var(--sans);font-variant-numeric:tabular-nums;color:#2b6a45}
#modal.museum-drawer .museum-earning{margin:0 0 15px}
#modal.museum-drawer .museum-earning-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
#modal.museum-drawer .museum-earning-heading h3{display:flex;align-items:center;gap:6px;min-width:0;margin:0;font:700 13.5px/1.25 var(--sans);letter-spacing:0;color:#3e583d}
#modal.museum-drawer .museum-earning-heading h3 .ui-label{gap:2px;align-items:flex-start}
#modal.museum-drawer .museum-earning-heading h3 .ui-en{font:700 13.5px/1.25 var(--sans)}
#modal.museum-drawer .museum-earning-heading h3 .ui-zh{font:500 11.5px/1.25 var(--sans);color:#7b806b;opacity:1}
#modal.museum-drawer .museum-earning-info{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #d6d6be;border-radius:50%;background:#f1efdf;color:#9b7d3e}
#modal.museum-drawer .museum-earning-info svg{width:17px;height:17px;stroke-width:1.7}
#modal.museum-drawer .museum-earning-info:hover{background:#e8ebd8;border-color:#b4bc94}
#modal.museum-drawer .museum-earning-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
#modal.museum-drawer .museum-earn-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:84px;margin:0;padding:9px 6px;border:1px solid #d8d8c2;border-radius:12px;background:#fffdf4;color:#355840;text-align:center;box-shadow:inset 0 1px 0 #fff,0 2px 5px #40502a05;font:inherit;cursor:pointer;transition:border-color .15s,background .15s}
#modal.museum-drawer .museum-earn-card>.museum-earn-icon{display:block;font-size:21px;line-height:23px}
#modal.museum-drawer .museum-earn-card>.ui-label{gap:2px;align-items:center;text-align:center}
#modal.museum-drawer .museum-earn-card>.ui-label .ui-en{font:700 13px/1.2 var(--sans);color:#355840}
#modal.museum-drawer .museum-earn-card>.ui-label .ui-zh{font:500 11.5px/1.2 var(--sans);color:#7b8068;opacity:1}
#modal.museum-drawer .museum-earn-reward{display:inline-flex;align-items:center;justify-content:center;gap:4px;color:#a77a28;font:700 17px/1.1 var(--sans);white-space:nowrap}
#modal.museum-drawer .museum-earn-reward svg{width:15px;height:15px;stroke-width:1.7;color:#b28a40}
#modal.museum-drawer .museum-earn-reward strong{font:inherit;color:inherit}
#modal.museum-drawer button.museum-earn-card:hover{background:#f4f5e5;border-color:#b8c29b}
#modal.museum-drawer .museum-earn-featured{border-color:#c7a454;background:linear-gradient(145deg,#fcf1d2,#f0dfae);box-shadow:inset 0 0 0 1px #e2c98873}
#modal.museum-drawer button.museum-earn-featured:hover{border-color:#ad873c;background:linear-gradient(145deg,#fff0c3,#ebd395)}
#modal.museum-drawer .museum-earn-basics{gap:0;padding:0;cursor:default;overflow:hidden}
#modal.museum-drawer .museum-basic-path{display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:center;gap:3px;width:100%;min-height:44px;margin:0;padding:7px 5px;border:0;border-radius:0;background:transparent;color:#4b5735;font:700 12px/1.2 var(--sans);text-align:left;cursor:pointer}
#modal.museum-drawer .museum-basic-path+.museum-basic-path{border-top:1px solid #d8d8c2}
#modal.museum-drawer .museum-basic-icon{display:block;font-size:14px;line-height:18px}
#modal.museum-drawer .museum-basic-path>.ui-label{min-width:0;gap:2px;align-items:flex-start;text-align:left}
#modal.museum-drawer .museum-basic-path .ui-en{font:700 11.5px/1.2 var(--sans);letter-spacing:-.02em;white-space:nowrap}
#modal.museum-drawer .museum-basic-path .ui-zh{font:500 10px/1.2 var(--sans);color:#827547;opacity:1;white-space:nowrap}
#modal.museum-drawer .museum-basic-path .museum-earn-reward{gap:2px;font-size:14px;color:#8b6420}
#modal.museum-drawer .museum-basic-path .museum-earn-reward svg{width:11px;height:11px}
#modal.museum-drawer .museum-basic-path:hover{background:#edf0df}
#modal.museum-drawer .museum-shard-artifact{gap:12px;margin:0;padding:12px;border-radius:13px;background:#fffdf5;border-color:#ded9c1}
#modal.museum-drawer .museum-shard-artifact>.museum-artifact-thumb{position:relative;flex:0 0 86px;width:86px;height:96px;min-width:0;overflow:hidden;border:1px solid #c7b57d;border-radius:10px;background:#dce0d0;box-shadow:0 1px 4px #45503912}
#modal.museum-drawer .museum-artifact-thumb>img{display:block;width:100%;height:100%;object-fit:cover}
#modal.museum-drawer .museum-artifact-thumb .museum-thumb-grid{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#f5d27c;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;opacity:.72;filter:drop-shadow(0 1px 1px #51380655);pointer-events:none}
#modal.museum-drawer .museum-shard-artifact>div:not(.museum-artifact-thumb){min-width:0;flex:1}
#modal.museum-drawer .museum-shard-artifact h3{margin:0;font:700 18px/1.2 var(--sans);letter-spacing:-.025em;color:#31533c}
#modal.museum-drawer .museum-shard-artifact h3 .zh{margin-top:3px;font:500 12.5px/1.3 var(--sans);letter-spacing:0;color:#7a806b}
#modal.museum-drawer .museum-shard-artifact p{margin:7px 0 0;font:500 12px/1.3 var(--sans);color:#697c5e}
#modal.museum-drawer .museum-shard-artifact p .ui-label{gap:2px;align-items:flex-start}
#modal.museum-drawer .museum-shard-artifact p .ui-zh{font:400 11.5px/1.3 var(--sans);color:#7f846f;opacity:1}
#modal.museum-drawer .museum-shard-slots{display:grid;grid-template-columns:repeat(var(--shard-columns,6),minmax(0,1fr));gap:4px;width:min(100%,190px);margin-top:10px}
#modal.museum-drawer .museum-shard-slot{display:grid;place-items:center;min-width:0;height:25px;border:1px solid #d4d9c4;border-radius:5px;background:#ebeedf;box-shadow:inset 0 1px 1px #fff7;color:#a7b092}
#modal.museum-drawer .museum-shard-slot svg{width:17px;height:17px;stroke-width:1.5}
#modal.museum-drawer .museum-shard-slot.is-filled{border-color:#c7a452;background:linear-gradient(145deg,#fae5ad,#e5c47a);box-shadow:inset 0 1px 0 #fffae0,0 0 5px #d3b15b21;color:#7b5d26}
#modal.museum-drawer .museum-hall-entry{display:flex;align-items:center;justify-content:center;gap:9px;min-height:49px;padding:10px 12px;border:1px solid #d1b16b;background:linear-gradient(105deg,#e9c882,#f4dfb3 65%,#e8c784);box-shadow:inset 0 1px 0 #fff5d2a1;color:#36513a}
#modal.museum-drawer .museum-hall-entry>svg{width:20px;height:20px;flex:0 0 20px;stroke-width:1.6}
#modal.museum-drawer .museum-hall-entry>svg:last-child{margin-left:auto;width:17px;height:17px;flex-basis:17px}
#modal.museum-drawer .museum-hall-entry>.ui-label{flex:1;min-width:0;gap:3px;align-items:center;text-align:center}
#modal.museum-drawer .museum-hall-entry .ui-en{font:700 14px/1.25 var(--sans)}
#modal.museum-drawer .museum-hall-entry .ui-zh{font:500 12px/1.25 var(--sans);color:#657048;opacity:1}
#modal.museum-drawer .modal-actions:has(.museum-hall-entry){margin-top:14px}
html[data-language="bi"] #modal.museum-drawer .museum-inventory-bar{min-height:52px}
html[data-language="bi"] #modal.museum-drawer .museum-earn-card{min-height:98px}
html[data-language="bi"] #modal.museum-drawer .museum-basic-path{min-height:49px}
@media(max-width:360px){
 #modal.museum-drawer .museum-inventory-bar{padding:8px 9px;gap:7px}
 #modal.museum-drawer .museum-inventory-label .ui-en{font-size:13px}
 #modal.museum-drawer .museum-earning-grid{gap:7px}
 #modal.museum-drawer .museum-earning-heading h3,#modal.museum-drawer .museum-earning-heading h3 .ui-en{font-size:13.5px}
 #modal.museum-drawer .museum-earn-card{padding-left:5px;padding-right:5px}
 #modal.museum-drawer .museum-earn-basics{padding:0}
 #modal.museum-drawer .museum-basic-path{grid-template-columns:12px minmax(0,1fr) auto;padding:7px 4px;gap:2px}
 #modal.museum-drawer .museum-basic-icon{font-size:12.5px;line-height:16px}
 #modal.museum-drawer .museum-basic-path .ui-en{font-size:11px}
 #modal.museum-drawer .museum-basic-path .museum-earn-reward{font-size:13px}
 #modal.museum-drawer .museum-basic-path .museum-earn-reward svg{width:10px;height:10px}
 #modal.museum-drawer .museum-shard-artifact{padding:10px;gap:10px}
 #modal.museum-drawer .museum-shard-artifact>.museum-artifact-thumb{flex-basis:76px;width:76px;height:92px}
 #modal.museum-drawer .museum-shard-artifact h3{font-size:17px}
 #modal.museum-drawer .museum-shard-slot{height:24px}
 #modal.museum-drawer .museum-shard-slot svg{width:16px;height:16px}
 #modal.museum-drawer .museum-hall-entry{gap:7px;padding:10px}
 #modal.museum-drawer .museum-hall-entry .ui-en{font-size:13px}
}

@media(max-width:360px){#modal.museum-drawer .museum-basic-path .museum-earn-reward svg{display:none}}
#modal.museum-drawer .museum-complete-mark{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #c9b16a;border-radius:50%;background:#ecdfb2;color:#476044}
