/* Shared set pages: the same purple portal, real artwork, white paper previews. */
[hidden]{display:none!important}
.collection-set,.library-page{--max:1280px}
.collection-set :is(a,button,input,select):focus-visible,.library-page :is(a,button,input,select):focus-visible{outline:3px solid #6244bb;outline-offset:4px}
.collection-set .site-header nav a,.library-page .site-header nav a{display:inline-flex;align-items:center;min-height:44px}
.set-intro{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);align-items:center;gap:36px;padding-block:30px 52px}
.set-intro h1{font-size:clamp(42px,4.6vw,66px);letter-spacing:-1.7px;overflow-wrap:anywhere}
.set-intro h1>span{display:block;font-size:.54em;margin-bottom:10px}
.set-intro .eyebrow{font-size:12px;flex-wrap:wrap;gap:6px}
.set-action{font-size:18px;line-height:1.65;max-width:48ch}
.set-age{font-size:13px;color:#3b5672;margin-bottom:0}
.set-intro .access-note{margin-bottom:12px}
.set-intro .text-link{font-size:14px}
.set-scene{padding:8px 8px 0;border-radius:32px;background:#6244bb;box-shadow:9px 10px 0 #e8defa;overflow:hidden;min-width:0}
.set-scene>img{width:100%;height:auto;object-fit:contain;border-radius:26px 26px 4px 4px;background:#fff}
.set-scene>span{display:block;color:#fff;font:500 17px/1.4 Fredoka,sans-serif;padding:15px 14px 18px}
.set-materials{background:#f5f0fc;padding:48px 0 42px;border-block:1px solid #e4dcec}
.set-materials .filters{margin:0 0 24px;display:flex;gap:8px;flex-wrap:wrap}
.set-materials .filters button{min-height:44px}
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.resource-card{min-width:0;display:flex;flex-direction:column;border-radius:22px;border:1px solid #e0d5ee;background:#fff;overflow:hidden;box-shadow:0 4px 0 #e9e0f4}
.resource-preview{display:flex;align-items:center;justify-content:center;height:285px;padding:22px;background:#eee7f8;border-bottom:1px solid #e6dced}
.resource-preview img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 5px 6px #122e5326)}
.resource-copy{padding:24px;display:flex;flex-direction:column;flex:1;min-width:0}
.resource-copy h3{font:500 27px/1.18 Fraunces,Georgia,serif;letter-spacing:-.5px;color:#122e53;margin:0 0 18px;overflow-wrap:anywhere}
.resource-copy label{font-size:13px;font-weight:600;margin-bottom:6px}
.resource-copy select{width:100%;max-width:100%;min-height:48px;border:1px solid #b5a5cf;border-radius:9px;background:#fff;color:#122e53;font:16px 'Segoe UI',sans-serif;padding:9px 30px 9px 10px}
.resource-meta{font-size:12px;line-height:1.6;color:#45556b;margin:12px 0 20px}
.resource-download{align-self:flex-start;margin-top:auto;font-size:16px;min-height:48px}
.set-parent{display:grid;grid-template-columns:1fr 1.2fr;gap:50px;padding-block:56px}
.set-parent p:not(.eyebrow){max-width:62ch}
.set-next{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding-block:10px 50px}
.set-next h2{font-size:34px;margin:0}
.library-main{padding-block:30px 60px}
.library-main>h1{font-size:clamp(44px,5.7vw,72px);letter-spacing:-2px}
.library-lead{max-width:60ch;font-size:18px}
.library-tools{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;max-width:850px;margin:30px 0 16px}
.library-tools label{font-size:13px;font-weight:600;min-width:0}
.library-tools input,.library-tools select{display:block;width:100%;height:48px;margin-top:6px;background:#fff;border:1px solid #b5a5cf;border-radius:10px;padding:10px;font:16px 'Segoe UI',sans-serif;color:#122e53}
#library-count{font-size:14px;color:#45556b;margin-bottom:24px}
.library-page .resource-kind{font-size:12px;font-weight:650;color:#6244bb;margin-bottom:8px}
.library-page .resource-copy h3{font-size:25px;margin-bottom:16px}
.library-page .resource-copy .text-link{margin-top:auto;font-size:14px}
#library-more{display:block;margin:36px auto 0}
#set-game-dialog{width:calc(100% - 24px);max-width:1600px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:16px;overflow:hidden}
#set-game-dialog .game-dialog-head{height:70px}
#set-game-dialog h2{margin:0}
#set-game-frame{height:calc(100% - 70px)}
#set-game-frame iframe{width:100%;height:100%;border:0;display:block}
.home .catalog-material-count{font-size:12px;margin:16px 0 0;color:#6244bb;border-top:1px solid #e4dcec;padding-top:12px}
.home .adventure-body h3 a:hover{text-decoration:underline;text-underline-offset:5px}
@media(max-width:1000px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.set-intro{gap:24px}.set-intro h1{font-size:46px}.set-action{font-size:16px}}
@media(max-width:760px){
 .collection-set .wrap,.library-page .wrap{width:calc(100% - 36px)}
 .collection-set .site-header,.library-page .site-header{flex-wrap:wrap}
 .set-intro{grid-template-columns:1fr;gap:23px;padding-block:20px 35px}
 .set-intro>div:first-child{display:contents}
 .set-intro .eyebrow{grid-row:1;margin:0}
 .set-intro h1{grid-row:2;font-size:clamp(39px,10vw,55px);margin:0;letter-spacing:-1.2px}
 .set-intro h1>span{font-size:.56em;margin-bottom:7px}
 .set-scene{grid-row:3;margin:0 7px 0 0;border-radius:24px;padding:6px 6px 0;box-shadow:6px 7px 0 #e8defa}
 .set-scene>img{border-radius:18px 18px 4px 4px}
 .set-scene>span{font-size:15px;padding:12px}
 .set-action{grid-row:4;margin:0;font-size:16px}
 .set-intro .hero-actions{grid-row:5;gap:8px;display:grid}
 .set-intro .hero-actions .button{width:100%}
 .set-intro .hero-actions .text-link{justify-content:center}
 .set-intro .access-note{grid-row:6;margin:0;text-align:center}
 .set-age{grid-row:7;margin:-10px 0 0;text-align:center}
 .set-materials{padding:32px 0}
 .set-materials .section-heading h2{font-size:36px}
 .set-materials .filters{gap:8px;padding-right:0}
 .set-materials .filters button{font-size:12px;padding:9px 13px}
 .resource-grid{gap:22px}
 .resource-copy{padding:22px}
 .set-parent{grid-template-columns:1fr;gap:20px;padding-block:36px}
 .set-next{padding-bottom:36px}
 .set-next h2{font-size:31px}
 .library-main{padding-top:22px}
 .library-tools{grid-template-columns:1fr;gap:14px;margin-top:24px}
 .library-lead{font-size:16px}
 #set-game-dialog .game-dialog-head{height:82px;padding:10px;gap:10px}
 #set-game-dialog h2{font-size:16px;max-width:50%}
 #set-game-dialog .small-button{max-width:155px;font-size:13px;min-height:46px}
 #set-game-frame{height:calc(100% - 82px)}
}
@media(max-width:560px){.resource-grid{grid-template-columns:1fr}.resource-preview{height:310px}.resource-copy h3{font-size:28px}}
