/* Collection reading follows the active Sanctuary's paper, Youth or cyber tokens. */
.sanctuary-collections{color:var(--san-ink,#392919);min-width:0}
.sanctuary-collection-controls{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;margin:20px 0}
.sanctuary-collection-controls label{font-weight:700}
.sanctuary-collection-controls select{font:inherit;min-width:0;max-width:100%;padding:12px 34px 12px 12px;border:1px solid var(--san-line,#a88963);border-radius:9px;background:var(--san-panel,#f5e9d3);color:var(--san-ink,#392919)}
.sanctuary-collection-count{font-size:1rem;font-weight:700;color:var(--san-accent,#805b27)}
.sanctuary-collection-note{font-size:.88rem!important;max-width:70ch;color:var(--san-muted,#6d5941)}
.sanctuary-collection-category{font:700 .88rem/1.4 var(--san-title,Georgia,serif);letter-spacing:.05em;margin:25px 0 10px;text-transform:uppercase;color:var(--san-muted,#6d5941)}
.sanctuary-collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;list-style:none;margin:0!important;padding:0!important}
.sanctuary-collection-slot{min-width:0;margin:0!important;padding:0!important}
.sanctuary-collection-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:208px;box-sizing:border-box;text-align:center;padding:12px;gap:10px;background:var(--san-panel,#f7edda);color:var(--san-ink,#392919);border:1px solid var(--san-line,#c7ad85);border-radius:12px;box-shadow:0 3px 8px #0000000b;font:inherit;cursor:pointer}
.sanctuary-collection-card:hover:not(.locked){border-color:var(--san-accent,#946b2d);box-shadow:0 4px 14px #00000014}
.sanctuary-collection-card strong{font-size:.93rem;line-height:1.35;overflow-wrap:anywhere}
.sanctuary-collection-card.locked{background:transparent;box-shadow:none;cursor:default;border-style:dashed}
.sanctuary-collection-lock{display:grid;place-items:center;height:95px;width:80px;font:italic 52px/1 Georgia,serif;color:var(--san-muted,#796e5e);opacity:.65}
.sanctuary-collection-state{font-size:.74rem;color:var(--san-muted,#6d5941);margin-top:auto}
.sanctuary-collection-art{display:grid;place-items:center;width:100%;height:115px;overflow:hidden}
.sanctuary-collection-art img,.sanctuary-collection-art canvas{width:100%;height:100%;object-fit:contain;display:block}
.sanctuary-collection-art.large{height:clamp(180px,26vh,285px);max-width:540px;margin:4px auto 20px}
.sanctuary-art-unavailable{font-size:.78rem;color:var(--san-muted,#6d5941)}
.sanctuary-collection-reading{margin:18px 0 0;padding:clamp(16px,3vw,30px);border:1px solid var(--san-line,#c7ad85);background:var(--san-panel,#f7edda);border-radius:14px}
.sanctuary-collection-reading h4{font:700 clamp(1.25rem,3vw,1.65rem)/1.35 var(--san-title,Georgia,serif);margin:8px 0 18px;color:var(--san-ink,#392919)}
.sanctuary-collection-reading h5{font:700 1.08rem/1.4 var(--san-title,Georgia,serif);margin:20px 0 10px}
.sanctuary-collection-reading p{font-size:1rem!important;line-height:1.75!important;max-width:70ch}
.sanctuary-collection-reading .sanctuary-collection-origin{font-size:.78rem!important;line-height:1.4!important;color:var(--san-muted,#6d5941)}
.sanctuary-collection-references{font-size:.86rem!important;color:var(--san-accent,#805b27)}
.sanctuary-collection-quote{padding-left:15px;border-left:3px solid var(--san-line,#c7ad85);font-style:italic}
.sanctuary-collection-history{margin-top:26px;border-top:1px solid var(--san-line,#c7ad85);padding-top:6px}
.sanctuary-collection-verse-number{font-size:.78rem;font-weight:700;color:var(--san-accent,#805b27);margin-right:4px}
.sanctuary-collection-sources{padding-left:20px;font-size:.86rem;color:var(--san-muted,#6d5941)}
.sanctuary-collection-sources p{font-size:.86rem!important}
.sanctuary-collections button:focus-visible,.sanctuary-collections select:focus-visible,.sanctuary-collection-reading h4:focus-visible{outline:3px solid var(--san-accent,#805b27);outline-offset:4px}
.sanctuary-collections button[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--san-accent,#805b27)}
@media(max-width:520px){.sanctuary-collection-controls{grid-template-columns:1fr;gap:7px}.sanctuary-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sanctuary-collection-card{padding:10px 7px;min-height:190px}.sanctuary-collection-art{height:95px}.sanctuary-collection-card strong{font-size:.85rem}.sanctuary-collection-reading{padding:16px}.sanctuary-collection-reading p{font-size:.95rem!important}}
@media(forced-colors:active){.sanctuary-collection-card,.sanctuary-collection-reading,.sanctuary-collection-controls select{background:Canvas;color:CanvasText;border-color:ButtonText}.sanctuary-collection-lock{opacity:1}.sanctuary-collection-card:hover:not(.locked){border-color:Highlight}}

/* Per-game illustrated disclosures fit the narrow backpack dock, not the room. */
.sanctuary-collection-game{margin:12px 0;border:1px solid var(--san-line,#c7ad85);border-radius:12px;background:var(--san-panel,#f7edda);overflow:hidden;min-width:0}
.sanctuary-collection-game-header{display:grid;grid-template-columns:64px minmax(0,1fr) 20px;align-items:center;gap:10px;min-height:80px;padding:9px;cursor:pointer;list-style:none;color:var(--san-ink,#392919)}
.sanctuary-collection-game-header::-webkit-details-marker{display:none}
.sanctuary-collection-game-header::marker{content:''}
.sanctuary-collection-game-header:hover{background:color-mix(in srgb,var(--san-accent,#805b27) 9%,transparent)}
.sanctuary-collection-game-header:focus-visible{outline:3px solid var(--san-accent,#805b27);outline-offset:-4px;border-radius:10px}
.sanctuary-collection-game-art{display:grid;place-items:center;height:64px;width:64px;overflow:hidden;border-radius:8px;background:var(--san-muted,#6d5941);color:var(--san-panel,#f7edda);font:32px/1 Georgia,serif;box-shadow:0 2px 5px #0003}
.sanctuary-collection-game-art img{width:100%;height:100%;object-fit:cover;display:block}
.sanctuary-collection-game[data-collection-game="a-small-voice"] .sanctuary-collection-game-art img{object-fit:contain;background:#253341}
.sanctuary-collection-game-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.sanctuary-collection-game-copy strong{font:700 1rem/1.3 var(--san-title,Georgia,serif);overflow-wrap:anywhere}
.sanctuary-collection-game-copy .sanctuary-collection-count{font:600 .76rem/1.4 system-ui,sans-serif;color:var(--san-muted,#6d5941)}
.sanctuary-collection-chevron{font-size:1.4rem;text-align:center}
.sanctuary-collection-game[open]>.sanctuary-collection-game-header .sanctuary-collection-chevron{transform:rotate(180deg)}
.sanctuary-collection-game-content{padding:0 10px 14px;border-top:1px solid var(--san-line,#c7ad85);min-width:0}
.sanctuary-collection-game-content .sanctuary-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sanctuary-collection-game-content .sanctuary-collection-card{min-height:165px;padding:8px 5px;gap:7px}
.sanctuary-collection-game-content .sanctuary-collection-card strong{font-size:.78rem}
.sanctuary-collection-game-content .sanctuary-collection-art{height:85px}
.sanctuary-collection-mystery{position:relative;isolation:isolate;border-radius:8px;background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--san-accent,#805b27) 16%,transparent),transparent 70%)}
.sanctuary-collection-mystery::before{content:'';position:absolute;width:54px;height:62px;border:1px solid var(--san-line,#c7ad85);border-radius:22px 22px 12px 12px;transform:rotate(-8deg);box-shadow:inset 0 0 0 4px var(--san-panel,#f7edda),inset 0 0 0 5px var(--san-line,#c7ad85)}
.sanctuary-collection-mystery::after{content:'✦';position:absolute;right:12%;top:6%;font-size:14px;color:var(--san-accent,#805b27)}
.sanctuary-collection-mystery .sanctuary-collection-lock{position:relative;z-index:1;opacity:1;width:auto;height:auto;font:italic 700 42px/1 Georgia,serif;color:var(--san-accent,#805b27);text-shadow:1px 2px 0 var(--san-panel,#f7edda)}
.sanctuary-collections .sanctuary-collection-reading{padding:14px 11px}
@media(forced-colors:active){.sanctuary-collection-game,.sanctuary-collection-game-content{border-color:ButtonText}.sanctuary-collection-mystery,.sanctuary-collection-game-art{background:Canvas;color:CanvasText}.sanctuary-collection-mystery::before{border-color:CanvasText;box-shadow:none}.sanctuary-collection-mystery .sanctuary-collection-lock{color:CanvasText;text-shadow:none}}
