/* The collection is a personal archive. All rules stay within its view. */
#collectionView{--atlas-surface:#18191e;--atlas-deep:#121317;--atlas-border:#ffffff13;--atlas-soft:#aaaab3;padding:25px 15px 38px;min-width:0}
#collectionView button,#collectionView input,#collectionView select{touch-action:manipulation}
#collectionView button:focus-visible,#collectionView input:focus-visible,#collectionView select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#collectionView .atlas-overview{padding:14px 20px 12px;border:1px solid #e2ca8c25;border-radius:14px;background:linear-gradient(115deg,#25231d75,var(--atlas-surface) 55%)}
#collectionView .atlas-heading{gap:20px;padding:0 0 12px;align-items:center}
#collectionView .atlas-heading-copy{min-width:0}
#collectionView .atlas-heading .eyebrow{display:none;font-size:9px;letter-spacing:2.5px;color:#b7a77f}
#collectionView .atlas-heading h1{font:500 25px/1.3 var(--serif);letter-spacing:1px;margin:0 0 3px}
#collectionView .atlas-heading p{font-size:12px;line-height:1.7;color:var(--atlas-soft);margin:0;max-width:none}
#collectionView .atlas-discovery{display:block;text-align:right;font-family:inherit;white-space:normal;min-width:0}
#collectionView .atlas-stat-label{display:block;font-size:11px;letter-spacing:.5px;color:var(--atlas-soft);margin-bottom:5px}
#collectionView .atlas-discovery>div{display:flex;align-items:baseline;justify-content:flex-end;gap:9px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
#collectionView .atlas-discovery strong{color:#f1d591;font:500 clamp(26px,2.5vw,34px)/1.15 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-1.3px}
#collectionView .atlas-total{color:#9999a2;font-size:14px;white-space:nowrap}
#collectionView .atlas-total b{font-weight:400;color:#cbc9c6}
#collectionView .atlas-completion-label{display:flex;align-items:baseline;justify-content:space-between;font-size:11px;color:var(--atlas-soft);margin-bottom:5px}
#collectionView .atlas-completion-label b{color:#e8d092;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
#collectionView .collection-progress{height:5px;margin:0;background:#ffffff0b;border-radius:5px;overflow:hidden}
#collectionView .collection-progress i{background:#ddc17e;border-radius:inherit;max-width:100%}
#collectionView .atlas-overview-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
#collectionView .atlas-summary{padding:0;gap:22px;flex-wrap:wrap;font-size:11px;color:#a6a4aa}
#collectionView .atlas-summary b{font:500 12px -apple-system,BlinkMacSystemFont,sans-serif;font-variant-numeric:tabular-nums;color:#e2dfd8;margin-left:4px}
#collectionView .atlas-progress-note{margin:0;color:#8d8b91;font-size:10px;line-height:1.6}
#collectionView .atlas-rarity-section{margin:25px 0 28px}
#collectionView .atlas-section-heading,#collectionView .atlas-section-heading>div{display:flex;align-items:center;gap:14px}
#collectionView .atlas-section-heading{justify-content:space-between;margin-bottom:12px}
#collectionView .atlas-section-heading h2,#collectionView .atlas-sidebar-heading h2{font-size:14px;line-height:1.4;font-weight:500;letter-spacing:.5px;margin:0;color:#e4e0d9}
#collectionView .atlas-section-heading>div>span{font-size:10px;color:#8d8e98}
#collectionView .atlas-all-tiers{padding:10px 16px;min-height:44px;border:1px solid #ffffff26;border-radius:7px;background:#1b1d23;font-size:14px;line-height:1.4;color:#d5d6dc;white-space:nowrap}
#collectionView .atlas-all-tiers span{margin-left:5px;color:#b7a476}
#collectionView .atlas-all-tiers[aria-pressed=true]{color:#e7d49d;background:#e1c58012;border-color:#e1c58055}
#collectionView .atlas-all-tiers:hover{border-color:#e1c58088;background:#e1c58018}
#collectionView .atlas-all-tiers:focus-visible{outline:2px solid #e1c580;outline-offset:3px}
#collectionView .atlas-rarity-chips{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;overflow:visible;padding:0}
#collectionView .atlas-tier-card{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:5px;min-height:0;padding:9px 10px;background:var(--atlas-surface);border:1px solid var(--atlas-border);border-radius:9px;text-align:left;color:var(--rarity);font:inherit;transition:border-color .18s,background .18s,transform .18s}
#collectionView .atlas-tier-card:hover{background:#202127;border-color:color-mix(in srgb,var(--rarity),transparent 50%);transform:translateY(-2px)}
#collectionView .atlas-tier-card[aria-pressed=true]{border-color:var(--rarity);background:color-mix(in srgb,var(--rarity) 7%,var(--atlas-surface));box-shadow:none}
#collectionView .atlas-tier-heading{display:flex;align-items:baseline;justify-content:space-between;gap:5px;min-width:0}
#collectionView .atlas-tier-heading>b{font:600 15px/1.2 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:.5px}
#collectionView .atlas-tier-heading>small{font:10px/1.4 -apple-system,BlinkMacSystemFont,sans-serif;color:#aaa8b1;opacity:1;white-space:nowrap}
#collectionView .atlas-tier-numbers{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 6px;min-width:0;font-variant-numeric:tabular-nums}
#collectionView .atlas-tier-numbers>strong{font-size:20px;line-height:1.15;letter-spacing:-.5px;font-weight:500;color:#eeedf0}
#collectionView .atlas-tier-numbers>span{font-size:10px;line-height:1.5;color:#9b99a4;white-space:nowrap}
#collectionView .atlas-tier-numbers>span b{font-weight:400;color:#b7b5c0}
#collectionView .atlas-progress-track{display:block;height:3px;width:100%;margin:0;border-radius:3px;background:#ffffff0b;overflow:hidden}
#collectionView .atlas-progress-track>i{display:block;height:100%;max-width:100%;border-radius:inherit;background:var(--rarity,var(--gold));font-style:normal}
#collectionView .atlas-tier-foot{display:flex;align-items:center;justify-content:space-between;gap:4px;color:#8f8e99;font-size:9px;line-height:1.3}
#collectionView .atlas-tier-foot b{font-weight:500;color:var(--rarity);font-variant-numeric:tabular-nums}
#collectionView .atlas-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:start;gap:25px;min-width:0}
#collectionView .atlas-themes{margin:0;padding:12px;border:1px solid #ffffff1a;border-radius:9px;background:#0e1219ed;min-width:0}
#collectionView .atlas-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 5px 15px}
#collectionView .atlas-sidebar-heading>span{font-size:11px;color:#b8bdc7;font-variant-numeric:tabular-nums}
#collectionView .atlas-theme-grid{display:flex;flex-direction:column;gap:6px;padding:0;min-width:0}
#collectionView .atlas-category-card{display:block;padding:11px 10px;border:1px solid transparent;background:transparent;border-radius:7px;min-width:0;transition:background .18s,border-color .18s}
#collectionView .atlas-category-card:hover{background:#ffffff09;border-color:#ffffff24}
#collectionView .atlas-category-card[aria-pressed=true]{background:#dfc28014;border-color:#dfc28066}
#collectionView .atlas-category-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:0}
#collectionView .atlas-category-heading strong{font-size:13px;line-height:1.5;color:#eeeef1;font-weight:500;overflow-wrap:anywhere}
#collectionView .atlas-category-heading>b{flex-shrink:0;font-size:10px;color:#d5c7a7;font-weight:500;font-variant-numeric:tabular-nums}
#collectionView .atlas-category-card[aria-pressed=true] .atlas-category-heading strong{color:#ead49b}
#collectionView .atlas-category-numbers{color:#b8beca;font-size:11px;line-height:1.5;margin:5px 0 8px;font-variant-numeric:tabular-nums}
#collectionView .atlas-category-numbers>span{display:inline;margin:0;font:inherit;color:inherit}
#collectionView .atlas-category-numbers>[data-progress-owned]{color:#f0e7d5;font-weight:500}
#collectionView .atlas-category-card .atlas-progress-track{height:3px;background:#ffffff17}
#collectionView .atlas-library{min-width:0}
#collectionView .atlas-controls{padding:16px;gap:14px;border:1px solid var(--atlas-border);border-radius:10px;background:var(--atlas-surface);min-width:0}
#collectionView .atlas-control-top{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0}
#collectionView .atlas-tabs{display:flex;gap:3px;flex-shrink:0;padding:3px;background:var(--atlas-deep);border:1px solid #ffffff06;border-radius:7px}
#collectionView .atlas-tabs button{padding:8px 13px;min-height:36px;border-radius:5px;font-size:12px;white-space:nowrap;color:#a5a4ae}
#collectionView .atlas-tabs button[aria-pressed=true]{background:#292824;border-color:#d7bd7d22;color:#ead397}
#collectionView .atlas-tabs button span{font-size:14px;line-height:1}
#collectionView .atlas-search{flex:1;flex-basis:auto;min-width:0;max-width:390px;width:auto;min-height:42px;border:1px solid #ffffff12;border-radius:7px;background:var(--atlas-deep);gap:10px;padding:0 12px}
#collectionView .atlas-search svg{width:16px;height:16px;flex-shrink:0;color:#8b8996}
#collectionView .atlas-search input{font-size:13px;height:40px;padding:8px 0;color:#e2e0e7}
#collectionView .atlas-search input::placeholder{color:#8b8996}
#collectionView .atlas-search:focus-within{border-color:#cdb37680;box-shadow:0 0 0 2px #cdb37612}
#collectionView .atlas-search input:focus-visible{outline:none}
#collectionView .atlas-filter-row{flex-wrap:nowrap;gap:12px;min-width:0}
#collectionView .atlas-active-filter{flex:1;min-width:0;overflow-wrap:anywhere;font-size:11px;line-height:1.6;color:#b2adb0}
#collectionView .atlas-sort-label{display:flex;align-items:center;gap:8px;flex-shrink:0;font-size:10px;color:#8d8b96}
#collectionView .atlas-filter-row select{flex:none;width:auto;min-height:34px;padding:7px 25px 7px 9px;font-size:11px;border:1px solid #ffffff12;border-radius:5px;background:#14151a;color:#c9c6d0;max-width:none}
#collectionView .atlas-clear{flex:none;margin:0;padding:6px 0 6px 9px;min-height:34px;font-size:10px;color:#b8a880;white-space:nowrap}
#collectionView .atlas-clear:hover{color:#f0d69a}
#collectionView .atlas-scope-note{margin:11px 2px 0;color:#94919e;font-size:11px;line-height:1.65}
#collectionView .atlas-results-toolbar{position:static;background:none;gap:12px;padding:13px 0 11px;margin-bottom:16px;min-width:0}
#collectionView .atlas-results-toolbar .filter-count{flex-basis:auto;margin:0;font-size:11px;line-height:1.6;color:#bab6c1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#collectionView .atlas-layouts{gap:3px;flex-shrink:0}
#collectionView .atlas-layouts button{padding:5px 9px;min-height:32px;font-size:10px;border-radius:5px}
#collectionView .atlas-layouts button span{font-size:15px;vertical-align:-1px;margin-right:3px}
#collectionView .atlas-layouts button[aria-pressed=true]{background:#ffffff07;border-color:#ffffff18;color:#ded8c5}
#collectionView #collectionGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px;min-width:0}
#collectionView #collectionGrid .card-foot{font-size:10px;min-height:32px;letter-spacing:0;gap:5px;flex-wrap:wrap}
#collectionView #collectionGrid .favorite-star{font-size:19px;min-width:32px;min-height:32px}
#collectionView #collectionGrid[data-layout=list]{display:flex;gap:0;border-color:var(--atlas-border);border-radius:9px}
#collectionView .atlas-row{grid-template-columns:42px minmax(0,1fr) 72px 72px;gap:14px;padding:15px;background:var(--atlas-surface)}
#collectionView .atlas-row:hover{background:#212228}
#collectionView .atlas-row-tier{font-size:12px;min-height:36px;border-color:color-mix(in srgb,var(--rarity),transparent 55%);background:color-mix(in srgb,var(--rarity) 6%,transparent)}
#collectionView .atlas-row-title strong{font:500 15px/1.55 var(--serif)}
#collectionView .atlas-row-title small{font-size:10px;color:#a09aa8}
#collectionView .atlas-row-stat b{font-size:15px;font-weight:500}
#collectionView .atlas-row-stat small{font-size:9px;color:#8f8a99}
#collectionView .atlas-pagination{gap:18px;margin-top:25px;font-size:11px}
#collectionView .atlas-pagination button{min-height:40px;font-size:11px;border-color:#ffffff18;border-radius:6px;padding:9px 14px}
#collectionView .atlas-pagination form{margin:0}
#collectionView .atlas-pagination input{width:49px;min-height:40px;font-size:14px;background:var(--atlas-surface);font-variant-numeric:tabular-nums}
#collectionView .atlas-page-meta{margin:14px 0 0;color:#9993a1;font-size:10px;gap:12px}
#collectionView .atlas-page-meta label{white-space:nowrap}
#collectionView .atlas-page-meta select{min-height:36px;font-size:10px;padding:7px;max-width:none;background:var(--atlas-surface);border-color:#ffffff14;border-radius:5px}
#collectionView #collectionGrid .empty-state{padding:50px 18px;border:1px dashed #e1c88823;background:#e1c88803;border-radius:10px}
#collectionView #collectionGrid .empty-state h3{color:#e0dacb;font-size:20px;line-height:1.6;margin:13px 0}
#collectionView #collectionGrid .empty-state p{color:#a29baa;font-size:12px;line-height:1.85}
#collectionView #collectionGrid .empty-state button{font-size:12px;min-height:44px}
@media(max-width:1120px){
 #collectionView .atlas-overview{padding:22px}
 #collectionView .atlas-overview-footer{align-items:start;flex-direction:column;gap:9px}
 #collectionView .atlas-rarity-chips{gap:7px}
 #collectionView .atlas-tier-card{padding:8px;gap:5px}
 #collectionView .atlas-tier-heading{align-items:baseline;gap:4px;flex-direction:row}
 #collectionView .atlas-workspace{grid-template-columns:190px minmax(0,1fr);gap:20px}
 #collectionView #collectionGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px}
}
/* Keep desktop category navigation available while browsing results. */
@media(min-width:901px){
 #collectionView .atlas-themes{position:sticky;top:16px;display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}
 #collectionView .atlas-sidebar-heading{flex-shrink:0}
 #collectionView .atlas-theme-grid{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d1b77755 transparent}
 #collectionView .atlas-category-card{flex-shrink:0}
}
@media(max-width:900px){
 #collectionView{padding:20px 0 30px}
 #collectionView .atlas-workspace{display:flex;flex-direction:column;gap:20px}
 #collectionView .atlas-themes{width:100%;border:0;padding:0}
 #collectionView .atlas-sidebar-heading{padding:0 0 10px}
 #collectionView .atlas-theme-grid{display:flex;flex-direction:row;gap:8px;overflow-x:auto;padding:0 1px 8px;scrollbar-width:thin;scrollbar-color:#d1b77735 transparent;scroll-snap-type:x proximity}
 #collectionView .atlas-category-card{flex:0 0 154px;padding:11px;background:var(--atlas-surface);border-color:var(--atlas-border);scroll-snap-align:start}
 #collectionView .atlas-category-numbers{margin-bottom:8px}
 #collectionView .atlas-library{width:100%}
 #collectionView .atlas-tier-numbers>strong{font-size:20px}
 #collectionView .atlas-tier-numbers>span{font-size:9px}
 #collectionView #collectionGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 14px}
}
@media(max-width:700px){
 #collectionView .atlas-rarity-chips{grid-template-columns:repeat(4,minmax(0,1fr))}
 #collectionView .atlas-tier-heading{flex-direction:row;align-items:baseline}
 #collectionView #collectionGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #collectionView .atlas-heading h1{font-size:24px}
 #collectionView .atlas-discovery strong{font-size:30px}
 #collectionView .atlas-total{font-size:13px}
 #collectionView .atlas-control-top{gap:12px}
}
@media(max-width:580px){
 #collectionView{padding:15px 0 25px}
 #collectionView .atlas-overview{padding:12px 14px;border-radius:9px}
 #collectionView .atlas-heading{align-items:flex-start;gap:10px;padding-bottom:10px}
 #collectionView .atlas-heading .eyebrow{font-size:7px;letter-spacing:1.1px}
 #collectionView .atlas-heading h1{font-size:22px;letter-spacing:1px;margin:0 0 3px}
 #collectionView .atlas-heading p{font-size:10px;line-height:1.6;max-width:185px}
 #collectionView .atlas-discovery{padding-top:2px;max-width:45%}
 #collectionView .atlas-stat-label{font-size:9px;margin-bottom:4px}
 #collectionView .atlas-discovery>div{gap:3px 5px}
 #collectionView .atlas-discovery strong{font-size:26px;letter-spacing:-.8px}
 #collectionView .atlas-total{font-size:11px}
 #collectionView .atlas-completion-label{font-size:10px;margin-bottom:5px}
 #collectionView .atlas-completion-label b{font-size:12px}
 #collectionView .collection-progress{height:4px}
 #collectionView .atlas-overview-footer{margin-top:8px;gap:6px}
 #collectionView .atlas-summary{gap:6px 13px;font-size:9px}
 #collectionView .atlas-summary b{font-size:10px;margin-left:2px}
 #collectionView .atlas-progress-note{font-size:8px;letter-spacing:0}
 #collectionView .atlas-rarity-section{margin:18px 0 19px}
 #collectionView .atlas-section-heading{margin-bottom:9px;gap:8px}
 #collectionView .atlas-section-heading>div{gap:8px}
 #collectionView .atlas-section-heading h2,#collectionView .atlas-sidebar-heading h2{font-size:12px;letter-spacing:0}
 #collectionView .atlas-section-heading>div>span{font-size:8px}
 #collectionView .atlas-all-tiers{font-size:13px;padding:9px 12px;min-height:44px}
 #collectionView .atlas-all-tiers span{margin-left:2px}
 #collectionView .atlas-rarity-chips{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 #collectionView .atlas-tier-card{gap:4px;padding:8px 9px;border-radius:7px}
 #collectionView .atlas-tier-heading>b{font-size:13px;letter-spacing:0}
 #collectionView .atlas-tier-heading>small{font-size:9px}
 #collectionView .atlas-tier-numbers{gap:2px 5px}
 #collectionView .atlas-tier-numbers>strong{font-size:19px;letter-spacing:0}
 #collectionView .atlas-tier-numbers>span{font-size:10px}
 #collectionView .atlas-tier-foot{font-size:10px;justify-content:flex-end}
 #collectionView .atlas-tier-foot>span{display:none}
 #collectionView .atlas-workspace{gap:13px}
 #collectionView .atlas-sidebar-heading{padding-bottom:9px}
 #collectionView .atlas-sidebar-heading>span{font-size:9px}
 #collectionView .atlas-theme-grid{gap:7px;padding-bottom:6px}
 #collectionView .atlas-category-card{flex-basis:157px;padding:10px;border-radius:7px}
 #collectionView .atlas-category-heading strong{font-size:11px}
 #collectionView .atlas-category-heading>b{font-size:10px}
 #collectionView .atlas-category-numbers{font-size:11px;margin:5px 0 7px}
 #collectionView .atlas-controls{padding:12px;gap:10px;border-radius:8px}
 #collectionView .atlas-control-top{flex-wrap:wrap;gap:9px}
 #collectionView .atlas-tabs{width:100%;padding:2px;gap:3px}
 #collectionView .atlas-tabs button{flex:1;min-height:36px;padding:7px 10px;font-size:11px}
 #collectionView .atlas-search{width:100%;max-width:none;flex-basis:100%;min-height:42px;gap:8px;padding:0 10px}
 #collectionView .atlas-search input{font-size:16px;height:40px}
 #collectionView .atlas-search input::placeholder{font-size:12px}
 #collectionView .atlas-search svg{width:15px;height:15px}
 #collectionView .atlas-filter-row{display:flex;flex-wrap:nowrap;gap:7px 9px}
 #collectionView .atlas-active-filter{font-size:10px;flex-basis:auto;padding:1px 0 2px}
 #collectionView .atlas-sort-label{flex:none;font-size:9px;gap:7px}
 #collectionView .atlas-sort-label>span{display:none}
 #collectionView .atlas-filter-row select{font-size:10px;min-height:36px;padding:7px 24px 7px 8px;flex:none;width:auto}
 #collectionView .atlas-clear{flex:none;min-height:36px;font-size:10px;padding:5px 0 5px 9px}
 #collectionView .atlas-scope-note{font-size:10px;margin-top:9px}
 #collectionView .atlas-results-toolbar{padding:9px 0;margin-bottom:13px;gap:8px}
 #collectionView .atlas-results-toolbar .filter-count{font-size:10px}
 #collectionView .atlas-layouts button{min-height:34px;font-size:9px;padding:5px 7px}
 #collectionView .atlas-layouts button span{font-size:13px;margin-right:1px}
 #collectionView #collectionGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
 #collectionView #collectionGrid .card-foot{font-size:10px;min-height:36px}
 #collectionView #collectionGrid .favorite-star{min-width:36px;min-height:36px;font-size:21px}
 #collectionView .atlas-row{grid-template-columns:33px minmax(0,1fr) 44px 44px;gap:7px;padding:12px 9px}
 #collectionView .atlas-row-tier{font-size:10px;min-height:32px}
 #collectionView .atlas-row-title strong{font-size:13px}
 #collectionView .atlas-row-title small{font-size:9px;line-height:1.6}
 #collectionView .atlas-row-stat b{font-size:11px}
 #collectionView .atlas-row-stat small{font-size:8px}
 #collectionView .atlas-pagination{gap:9px;margin-top:21px;font-size:10px}
 #collectionView .atlas-pagination button{min-height:40px;font-size:10px;padding:8px 10px}
 #collectionView .atlas-pagination input{min-height:40px;width:43px;font-size:16px}
 #collectionView .atlas-page-meta{font-size:9px;gap:8px}
 #collectionView .atlas-page-meta select{min-height:36px;font-size:10px;margin-left:3px}
 #collectionView #collectionGrid .empty-state{padding:35px 14px}
 #collectionView #collectionGrid .empty-state h3{font-size:17px}
 #collectionView #collectionGrid .empty-state p{font-size:11px}
}
@media(max-width:359px){
 #collectionView .atlas-rarity-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
 #collectionView .atlas-overview{padding:12px}
 #collectionView .atlas-heading h1{font-size:22px}
 #collectionView .atlas-heading p{max-width:145px}
 #collectionView .atlas-discovery strong{font-size:26px}
 #collectionView .atlas-total{font-size:10px}
 #collectionView .atlas-summary{gap:5px 9px}
 #collectionView .atlas-section-heading>div{display:block}
 #collectionView .atlas-section-heading>div>span{display:block;margin-top:3px}
 #collectionView .atlas-filter-row{flex-wrap:wrap}
 #collectionView .atlas-active-filter{flex-basis:100%}
 #collectionView .atlas-sort-label{flex:1}
 #collectionView .atlas-row{grid-template-columns:30px minmax(0,1fr) 39px 39px;gap:5px;padding:11px 7px}
 #collectionView .atlas-row-stat b{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 #collectionView .atlas-tier-card,#collectionView .atlas-category-card,#collectionView .collection-progress i{transition:none}
 #collectionView .atlas-tier-card:hover{transform:none}
}

/* Theme collections live alongside the card list, outside daily tasks. */
.atlas-subnav{display:flex;gap:26px;border-bottom:1px solid #ffffff14;margin:0 0 28px}
.atlas-subnav button{position:relative;padding:3px 2px 15px;background:none;border:0;color:#94949f;font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;cursor:pointer}
.atlas-subnav button.active{color:#ead49e}
.atlas-subnav button.active:after{content:"";position:absolute;bottom:-1px;height:2px;left:0;right:0;background:#ddc17e}
.atlas-subnav button:focus-visible,#themesView button:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
#themesView{padding:25px 15px 38px;min-width:0}
.themes-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:35px 0 30px}
.themes-heading .eyebrow{font-size:9px;letter-spacing:2.5px;color:#b7a77f}
.themes-heading h1{font:500 32px/1.4 var(--serif);letter-spacing:2px;margin:8px 0}
.themes-heading p{font-size:13px;line-height:1.8;color:#aaaab3;margin:0}
.themes-completed{display:flex;flex-direction:column;gap:8px;text-align:right;flex-shrink:0}
.themes-completed>span{font-size:11px;color:#aaaab3}
.themes-completed strong{font:500 26px/1.2 var(--serif);color:#ead49e;font-variant-numeric:tabular-nums}
#themesView .world-albums{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#themesView .world-album{min-height:310px;border-radius:12px;border-color:#d5c4922b}
#themesView .album-art{inset:0}
#themesView .album-overlay{background:linear-gradient(180deg,#0c142544,#0c1425db 52%,#0c1425 100%)}
#themesView .album-copy{padding:24px;display:flex;flex-direction:column;min-height:310px;box-sizing:border-box}
.theme-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#e4e4dd}
.theme-status{padding:5px 9px;border:1px solid #ffffff24;border-radius:20px;background:#10182099;font-size:10px}
#themesView .album-copy h2{font:500 27px/1.4 var(--serif);letter-spacing:2px;color:#f1ebdb;margin:40px 0 8px}
#themesView .album-copy p{font-size:12px;line-height:1.7;color:#b4bdc8;margin:0 0 28px}
.theme-progress-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;font-size:10px;color:#b3b8bf;font-variant-numeric:tabular-nums}
.theme-progress-label b{font-size:13px;font-weight:500;color:#f0deb2}
.theme-progress-label strong{font-size:11px;font-weight:500;color:#e4cc94}
#themesView .atlas-progress-track{display:block;height:4px;border-radius:4px;overflow:hidden;background:#ffffff18;margin:10px 0 17px}
#themesView .atlas-progress-track i{display:block;height:100%;background:#ddc17e;border-radius:inherit}
#themesView .theme-card-link{display:flex;justify-content:space-between;color:#c9bd9b;font-size:11px;letter-spacing:.5px}
.theme-card-link b{font-size:15px;font-weight:400}
.themes-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:23px}
.themes-footer p{font-size:11px;color:#91939e;line-height:1.8;margin:0}
.themes-footer .text-button,.daily-theme-link .text-button{font-size:12px;white-space:nowrap}
.daily-theme-link{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 0;border-bottom:1px solid #ffffff12;color:#999ca9;font-size:12px}
@media(max-width:900px){#themesView .world-albums{gap:12px}#themesView .album-copy{padding:19px}#themesView .album-copy h2{font-size:23px;letter-spacing:1px}.theme-progress-label{flex-wrap:wrap}}
@media(max-width:700px){#themesView{padding:20px 0 28px}.atlas-subnav{margin-bottom:24px}.themes-heading{margin:25px 0 22px;align-items:flex-start;gap:12px}.themes-heading h1{font-size:27px}.themes-heading p{font-size:12px;max-width:230px}.themes-completed{padding-top:22px}.themes-completed strong{font-size:23px}#themesView .world-albums{grid-template-columns:1fr;gap:16px}#themesView .world-album,#themesView .album-copy{min-height:280px}#themesView .album-copy{padding:23px}#themesView .album-copy h2{font-size:27px;margin-top:30px}.theme-progress-label{font-size:11px}.themes-footer{align-items:flex-start;flex-direction:column}.daily-theme-link{align-items:flex-start;flex-direction:column;gap:10px}}
@media(prefers-reduced-motion:reduce){#themesView .world-album,#themesView .album-art img{transition:none}}

/* Small, attainable albums and their daily discovery reward. */
.theme-discovery-banner{display:flex;align-items:center;gap:17px;padding:18px 21px;border:1px solid #d7c58b2b;border-radius:10px;background:linear-gradient(110deg,#c2aa6312,#1a2023);margin-bottom:24px}
.theme-discovery-icon{font:32px var(--serif);color:#dfc58d}
.theme-discovery-banner strong{font-size:14px;font-weight:500;color:#e3d3a9}
.theme-discovery-banner p{font-size:11px;line-height:1.8;color:#a5a6b0;margin:6px 0 0}
.theme-filters{display:flex;gap:8px;margin:0 0 19px;flex-wrap:wrap}
.theme-filters button{padding:9px 16px;min-height:38px;border:1px solid #ffffff16;border-radius:22px;background:#191a20;color:#a1a4ae;font-size:12px;cursor:pointer}
.theme-filters button[aria-pressed=true]{background:#d8bb7415;color:#ead399;border-color:#d8bb7450}
.theme-status.is-complete{color:#e5d19b;border-color:#d9b76f66;background:#342d19bd}
.theme-empty{grid-column:1/-1;text-align:center;padding:48px 20px;border:1px dashed #ffffff20;border-radius:12px;color:#a4a7b3;font-size:13px;line-height:1.8}
.theme-empty>span{font:40px var(--serif);color:#c9b984}.theme-empty p{margin:15px 0 20px}
#themesView .theme-back{font-size:12px;margin:2px 0 22px;min-height:36px}
.theme-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.theme-detail-heading .eyebrow{font-size:10px;letter-spacing:1.5px}
.theme-detail-heading h2{font:500 30px/1.4 var(--serif);margin:9px 0;color:#ebe6d8;letter-spacing:2px}
.theme-detail-heading p{font-size:12px;line-height:1.7;color:#a9a9b4;margin:0 0 10px}
.theme-detail-count{font-size:18px;color:#9d9fa9;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.theme-detail-count strong{font-size:35px;color:#e9d19b;font-weight:500}
.theme-detail-count>span{display:block;font-size:12px;margin-top:5px;color:#d5c29a}
#themesView #themeDetail>.atlas-progress-track{margin:15px 0 24px;height:5px}
.theme-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}
.theme-slot{min-width:0;border-radius:11px;border:1px solid #ffffff19;overflow:hidden;background:#171a21}
.theme-slot button{display:block;position:relative;width:100%;padding:0 0 17px;text-align:center;background:none;border:0;color:#ddd9cf;cursor:pointer;font:inherit}
.theme-slot-art{position:relative;height:145px;overflow:hidden;background:#171e2b;margin-bottom:18px}
.theme-slot-art .card-photo{display:block;width:100%;height:100%;object-fit:cover}
.theme-slot-art img,.theme-slot-art svg{width:100%;height:100%;object-fit:cover}
.theme-slot strong{display:block;font:500 18px/1.5 var(--serif);letter-spacing:1px;padding:0 8px}
.theme-slot small{display:block;color:#9b9faa;font-size:10px;margin-top:7px}
.theme-slot-number{position:absolute;top:12px;left:12px;font-size:9px;letter-spacing:1px;color:#c6bfae;background:#10151ac9;border-radius:4px;padding:4px 6px}
.theme-slot-placeholder{position:relative;min-height:240px;display:flex;flex-direction:column;justify-content:flex-end;text-align:center;padding:16px 0 17px;box-sizing:border-box;background:radial-gradient(ellipse at 50% 40%,#c4ae6420,transparent 65%)}
.theme-slot-placeholder .theme-slot-symbol{display:grid;place-items:center;flex:1;font:48px var(--serif);color:#b8a57555}
.theme-slot-placeholder strong{color:#aaa8a1}.theme-slot.is-missing{border-style:dashed}
.theme-slot.is-owned{border-color:#d7bf8144}.theme-slot.is-owned:hover{border-color:#d7bf8188}
.theme-slot.is-new{border-color:#e9d18a;animation:theme-discovery-glow 1s ease-out 2}
.theme-slot.is-new small{color:#e6ca81}
.theme-actions{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.theme-actions section{padding:22px;border:1px solid #ffffff15;border-radius:11px;background:#191b21}
.theme-actions h3{font-size:14px;line-height:1.6;font-weight:500;margin:0;color:#dedbd2}
.theme-actions p{font-size:11px;line-height:1.9;color:#9fa0ac;margin:9px 0 17px}
#themesView .theme-actions button{font-size:12px;min-height:40px}
#themesView button:disabled{cursor:default;opacity:.45}
.theme-actions .text-button{display:block;margin-top:9px}
.theme-completion-reward{display:flex;gap:17px;align-items:flex-start}
.theme-reward-icon{font:30px var(--serif);color:#b6a37b;padding-top:2px}
.theme-completion-reward.is-complete{border-color:#dfc57844;background:linear-gradient(120deg,#d0ad5c12,#191b21)}
.theme-detail-note{font-size:10px;line-height:1.9;color:#888c99;margin:20px 0 0}
@keyframes theme-discovery-glow{0%{box-shadow:0 0 0 0 #e9c97888}100%{box-shadow:0 0 0 16px #e9c97800}}
@media(max-width:700px){.theme-discovery-banner{padding:15px;align-items:flex-start;gap:12px}.theme-discovery-banner p{font-size:11px}.theme-filters{gap:7px}.theme-filters button{font-size:11px;padding:8px 13px}.theme-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.theme-slot-art{height:125px}.theme-slot-placeholder{min-height:220px}.theme-slot strong{font-size:17px}.theme-detail-heading h2{font-size:25px}.theme-detail-heading p{font-size:11px}.theme-detail-count strong{font-size:30px}.theme-actions{grid-template-columns:1fr}.theme-actions section{padding:19px}}
@media(prefers-reduced-motion:reduce){.theme-slot.is-new{animation:none}}

.weekly-section{margin:12px 0 40px}.weekly-section>.section-heading{align-items:baseline;gap:15px;flex-wrap:wrap}
#weeklyReset{font-size:11px;line-height:1.8;color:#9295a2}
.weekly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.weekly-card{border:1px solid #ffffff18;background:#181c24;border-radius:12px;padding:23px}
.weekly-card .eyebrow{font-size:8px;color:#9f916f}.weekly-card h3{font-size:16px;font-weight:500;margin:15px 0 18px}
.weekly-card p{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#b7aa87}
.weekly-card p span{color:#b5bac6;font-variant-numeric:tabular-nums}
.weekly-card .atlas-progress-track{display:block;height:4px;background:#ffffff12;border-radius:4px;margin:15px 0 20px;overflow:hidden}
.weekly-card .atlas-progress-track i{display:block;background:#d5be85;height:100%}
.weekly-card button{font-size:12px;min-height:40px}.weekly-card.ready{border-color:#d5be8566}.weekly-card.claimed{opacity:.65}
#achievementsView button:disabled{opacity:.5;cursor:default}
@media(max-width:700px){.weekly-grid{grid-template-columns:1fr;gap:12px}.weekly-card{padding:20px}.weekly-section{margin-bottom:28px}.museum-toolbar{flex-wrap:wrap;gap:10px}.museum-filters{flex-basis:100%}}

/* One atlas for owned cards, favorites and user-created groups. */
.atlas-groups{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line,#30343b)}
.atlas-groups label{color:#a5adbb;font-size:13px}.atlas-groups select{min-width:140px;max-width:100%;background:#14171d;color:#e8e4d9;border:1px solid #343a45;border-radius:8px;padding:10px}
.battle-coming{max-width:620px;margin:70px auto;text-align:center;padding:48px 20px}.battle-emblem{font-size:64px;color:#d8bd75;margin:28px 0}.battle-coming h1{font-size:42px;margin:16px 0}.battle-status{display:inline-block;border:1px solid #77613a;background:#282314;color:#e9cf8b;border-radius:30px;padding:10px 22px;letter-spacing:.12em}.battle-coming>p:not(.battle-status){color:#9da6b8;line-height:1.8;margin:20px 0 30px}
@media(max-width:600px){.atlas-groups{gap:8px}.atlas-groups label{width:100%}.atlas-groups select{flex:1;min-width:0}.atlas-groups .secondary-button{font-size:12px;padding:10px}.battle-coming{margin:28px auto;padding:28px 16px}}

/* Total collection and the next milestone use separate, truthful scales. */
#collectionView .atlas-total-completion{margin:4px 0 16px}
#collectionView .atlas-total-completion small{display:inline-block;margin-left:10px;font-size:10px;color:#a6a4aa;font-variant-numeric:tabular-nums}
#collectionView .atlas-total-completion .collection-progress{height:7px;background:#ffffff16}
#collectionView .atlas-total-completion .collection-progress i{display:block;height:100%;background:#8dbeb5}
#collectionView .atlas-total-completion .atlas-completion-label b{color:#a9d4cc}
@media(max-width:480px){#collectionView .atlas-total-completion small{display:block;margin:3px 0 0}}

.favorite-star.is-saving{position:relative;flex-shrink:0;pointer-events:none}
.favorite-star.is-saving::after{content:'';display:block;width:14px;height:14px;position:absolute;left:50%;top:50%;margin:-7px 0 0 -7px;border:1.5px solid #d6be7833;border-top-color:#d6be78;border-radius:50%;animation:favorite-saving .8s linear infinite}
@keyframes favorite-saving{to{transform:rotate(360deg)}}

/* A compact phone library; progress and filters expand when needed. */
@media(max-width:600px){
 #collectionView{padding:12px 0 24px}
 #collectionView .atlas-subnav{gap:22px;margin-bottom:12px}
 #collectionView .atlas-subnav button{font-size:12px;min-height:40px;padding:3px 2px 10px}
 #collectionView .atlas-overview{padding:12px 14px;border-radius:10px}
 #collectionView .atlas-heading{padding:0;gap:10px}
 #collectionView .atlas-heading h1{font-size:20px;margin:0}
 #collectionView .atlas-heading p{display:none}
 #collectionView .atlas-discovery{white-space:nowrap}
 #collectionView .atlas-stat-label{display:none}
 #collectionView .atlas-discovery>div{flex-wrap:nowrap;gap:4px}
 #collectionView .atlas-discovery strong{font-size:24px;letter-spacing:-.5px}
 #collectionView .atlas-total{font-size:9px}
 #collectionView :is(.atlas-progress-compact,.atlas-filter-compact)>summary{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:44px;padding:9px 0;list-style:none;cursor:pointer;
  color:#b6b9c3;font-size:11px;line-height:1.5;
 }
 #collectionView :is(.atlas-progress-compact,.atlas-filter-compact)>summary::-webkit-details-marker{display:none}
 #collectionView :is(.atlas-progress-compact,.atlas-filter-compact)>summary::after{
  content:"展开";width:auto;height:auto;flex:none;margin:0;border:0;
  color:#919ba9;font-size:10px;line-height:1.5;transform:none;
 }
 #collectionView :is(.atlas-progress-compact,.atlas-filter-compact)[open]>summary{
  position:sticky;top:0;z-index:8;background:#101113;
 }
 #collectionView :is(.atlas-progress-compact,.atlas-filter-compact)[open]>summary::after{content:"收起 ↑";color:#dec48a;transform:none}
 #collectionView .atlas-close-panel{
  display:block;width:100%;min-height:40px;margin:4px 0 12px;padding:8px 12px;
  border:1px solid #d0b8753d;border-radius:6px;background:#d0b8750a;color:#d8c38f;font-size:11px;
 }
 #collectionView .atlas-mobile-options{display:flex;gap:14px;border-bottom:1px solid #ffffff12}
 #collectionView .atlas-mobile-options>details{flex:1;min-width:0}
 #collectionView .atlas-mobile-options:has(details[open]){display:block}
 #collectionView .atlas-progress-compact{margin:0;border:0}
 #collectionView .atlas-progress-compact>.dialog-section-body{padding-top:8px}
 #collectionView .atlas-filter-compact{border:0}
 #collectionView .atlas-workspace{gap:0;margin-top:8px}
 #collectionView .atlas-filter-compact>.dialog-section-body{padding:8px 0 12px}
 #collectionView .atlas-rarity-section{margin:0 0 14px}
 #collectionView .atlas-section-heading{margin-bottom:8px}
 #collectionView .atlas-section-heading h2,#collectionView .atlas-sidebar-heading h2{font-size:12px}
 #collectionView .atlas-section-heading>div>span{display:none}
 #collectionView .atlas-all-tiers{font-size:11px;min-height:36px;padding:7px 10px}
 #collectionView .atlas-rarity-chips{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 #collectionView .atlas-tier-card{flex-direction:row;align-items:center;justify-content:space-between;padding:6px 8px;gap:4px;min-height:36px}
 #collectionView .atlas-tier-heading>b{font-size:11px}
 #collectionView .atlas-tier-heading>small,#collectionView .atlas-tier-foot,#collectionView .atlas-tier-numbers>span{display:none}
 #collectionView .atlas-tier-numbers>strong{font-size:13px}
 #collectionView .atlas-tier-card>.atlas-progress-track{display:none}
 #collectionView .atlas-sidebar-heading{padding-bottom:8px}
 #collectionView .atlas-category-card{flex-basis:118px;min-height:40px;padding:6px 8px}
 #collectionView .atlas-category-heading strong{font-size:11px}
 #collectionView .atlas-category-numbers{font-size:9px;margin:2px 0 0}
 #collectionView .atlas-category-heading>b,#collectionView .atlas-category-card>.atlas-progress-track{display:none}
 #collectionView .atlas-controls{padding:10px 0 0;border:0;background:none;gap:8px}
 #collectionView .atlas-control-top{flex-direction:row;align-items:center;flex-wrap:nowrap;gap:8px}
 #collectionView .atlas-tabs{width:auto;flex:0 0 auto;padding:2px;gap:2px}
 #collectionView .atlas-tabs button{flex:none;min-height:36px;padding:6px 10px;font-size:11px}
 #collectionView .atlas-search{flex:1;width:auto;min-width:0;min-height:40px}
 #collectionView .atlas-search input{height:38px;font-size:12px}
 #collectionView .atlas-filter-row{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}
 #collectionView .atlas-filter-row:has(#clearAtlasFilters:disabled){display:none}
 #collectionView .atlas-active-filter{flex:1;flex-basis:auto;font-size:10px;line-height:1.4}
 #collectionView .atlas-clear{min-height:36px;font-size:10px}
 #collectionView .atlas-scope-note{display:none}
 #collectionView .atlas-results-toolbar{flex-wrap:nowrap;padding:8px 0;margin:0 0 10px;gap:6px;align-items:center}
 #collectionView .atlas-results-toolbar .filter-count{flex:1;flex-basis:auto;min-width:0;font-size:10px}
 #collectionView .atlas-layouts button{min-height:36px;font-size:10px;padding:6px 9px}
 #collectionView #collectionGrid[data-layout=grid]{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #collectionView #collectionGrid[data-layout=grid] .encyclopedia-card{
  border-width:2px!important;border-radius:8px!important;padding:3px!important;
  box-shadow:0 2px 10px color-mix(in srgb,var(--card-accent),transparent 83%)!important;
 }
 #collectionView #collectionGrid[data-layout=grid] .encyclopedia-card:after{inset:2px;border-radius:5px}
 #collectionView #collectionGrid[data-layout=grid] .card-meta{inset:3px 3px auto;padding:0 4px;gap:3px;border-radius:3px 3px 0 0}
 #collectionView #collectionGrid[data-layout=grid] .card-meta h3{font-size:clamp(8px,5.6cqw,12px);-webkit-line-clamp:1}
 #collectionView #collectionGrid[data-layout=grid] .card-rarity{font-size:clamp(8px,5.5cqw,12px)}
 #collectionView #collectionGrid[data-layout=grid] .card-art{inset:calc(11% + 3px) 3px 24%}
 #collectionView #collectionGrid[data-layout=grid] .card-category{right:3px;bottom:3px;font-size:7px;padding:2px 3px}
 #collectionView #collectionGrid[data-layout=grid] .card-info{inset:76% 3px 3px;display:flex;min-height:0}
 #collectionView #collectionGrid[data-layout=grid] .card-tagline{display:none}
 #collectionView #collectionGrid[data-layout=grid] .card-stats{width:100%;height:100%;margin:0;padding:0;gap:0}
 #collectionView #collectionGrid[data-layout=grid] .card-stats>span{padding:2px 1px;gap:1px}
 #collectionView #collectionGrid[data-layout=grid] .card-stats small{font-size:6px;letter-spacing:.5px}
 #collectionView #collectionGrid[data-layout=grid] .card-stats b{font-size:clamp(10px,11cqw,15px);letter-spacing:-.25px}
 #collectionView #collectionGrid[data-layout=grid] .card-foot{margin:0;padding:0;min-height:32px;font-size:10px;gap:2px;flex-wrap:nowrap;justify-content:flex-end}
 #collectionView #collectionGrid[data-layout=grid] .card-foot>span:first-child{display:none}
 #collectionView #collectionGrid[data-layout=grid] .favorite-star{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;font-size:16px}
 #collectionView .atlas-pagination{gap:8px;margin-top:16px}
 #collectionView .atlas-pagination button{min-height:44px;font-size:10px;padding:8px}
}

/* Keep the archive usable when the browser panel is narrower than a phone. */
@media (max-width: 280px) {
  #collectionView .atlas-subnav,
  #collectionView .atlas-heading,
  #collectionView .atlas-section-heading,
  #collectionView .atlas-completion-label,
  #collectionView .atlas-control-top,
  #collectionView .atlas-results-toolbar {
    flex-wrap: wrap;
  }
  #collectionView .atlas-discovery {
    max-width: none;
    text-align: left;
  }
  #collectionView .atlas-control-top .atlas-search {
    flex-basis: 100%;
  }
  #collectionView .atlas-rarity-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #collectionView #collectionGrid[data-layout=grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cover fallback is a theme illustration, never a cropped vertical card face. */
#themesView .album-art .theme-cover-placeholder{position:absolute;inset:0;width:100%;height:100%;opacity:.85}
#themesView .album-art .card-photo{position:absolute;inset:0}
#themesView .album-art .archive-art{display:none}
#themesView .album-art .card-photo>img{opacity:0;transition:opacity .24s ease-out}
#themesView .album-art .card-photo.photo-loaded>img{opacity:1}
#themesView .album-overlay{background:linear-gradient(180deg,#0c142520,#0c1425b8 55%,#0c1425fa 100%)}
@media(prefers-reduced-motion:reduce){#themesView .album-art .card-photo>img{transition:none}}
