/* Collection and teacher are paged viewport panels, independent of reading screens. */
body:is([data-screen=collection],[data-screen=teacher]) #screen{
 height:calc(100dvh - var(--hud-height));min-height:0;display:flex;flex-direction:column;padding-top:18px;padding-bottom:18px;
}
body:is([data-screen=collection],[data-screen=teacher]) .screen-heading{flex-shrink:0;margin-bottom:15px;gap:15px}
body:is([data-screen=collection],[data-screen=teacher]) .screen-heading h1{font-size:clamp(28px,2.6vw,40px);margin-bottom:0}
.viewport-panel{display:flex;flex-direction:column;flex:1;min-height:0;border:1px solid #c5ad6a66;border-radius:9px;background:linear-gradient(135deg,#203f37aa,#102b30);padding:22px 25px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-shrink:0;border-bottom:1px solid var(--line);padding-bottom:14px}
.panel-heading h2{font-size:28px;margin:0}.panel-heading .text-button{font-size:14px}
.panel-content{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:22px 0;overflow:auto}
.panel-pager{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:14px;flex-shrink:0}
.panel-pager span{font-size:15px;white-space:nowrap}.panel-pager button:disabled{opacity:.35;cursor:default;transform:none}
.viewport-panel .collection-awards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin:0;width:100%;max-height:100%}
.viewport-panel .award{padding:25px 12px}.viewport-panel .award strong{font-size:23px}.viewport-panel .award small{font-size:13px}
.viewport-panel .collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;width:100%;max-height:100%}
.viewport-panel .collectible img,.viewport-panel .unknown-art{height:clamp(110px,23dvh,240px)}
.viewport-panel .unknown-art{display:grid;place-items:center;line-height:1}
.viewport-panel .collectible strong{font-size:17px;line-height:1.6}.viewport-panel .collectible small{font-size:13px}
.teacher-step{max-width:1050px;display:flex;gap:40px;align-items:flex-start}
.teacher-step-number{font:600 clamp(70px,7vw,120px)/1 var(--serif);color:var(--gold);opacity:.75}
.teacher-step h2{font-size:clamp(30px,3vw,44px);margin:0 0 25px}
.teacher-step ul{padding-left:25px;margin:0}
.teacher-step li{font-size:clamp(20px,1.7vw,27px);line-height:1.8;margin-bottom:22px;color:#c5d0b5;padding-left:7px}
@media(max-width:1000px){
 .viewport-panel .collection-awards,.viewport-panel .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px}
 .viewport-panel .award{padding:22px}.teacher-step{gap:22px}.teacher-step-number{font-size:65px}
}
@media(max-height:760px) and (min-width:601px){
 .viewport-panel{padding:15px 20px}.panel-heading{padding-bottom:10px}.panel-heading h2{font-size:24px}
 .panel-content{padding:14px 0}.viewport-panel .award{padding:18px 10px}
 .viewport-panel .award>span{width:48px;height:48px;font-size:24px;margin-bottom:12px}
 .viewport-panel .award strong{font-size:19px}
 .viewport-panel .collectible img,.viewport-panel .unknown-art{height:18dvh}
 .teacher-step li{font-size:21px;line-height:1.65;margin-bottom:15px}.teacher-step h2{font-size:32px;margin-bottom:17px}
}
@media(max-width:600px){
 body:is([data-screen=collection],[data-screen=teacher]) #screen{height:calc(100dvh - var(--hud-height) - 70px - env(safe-area-inset-bottom));padding:12px 12px 14px}
 body:is([data-screen=collection],[data-screen=teacher]) .screen-heading{margin-bottom:10px}
 body:is([data-screen=collection],[data-screen=teacher]) .screen-heading h1{font-size:25px}
 body:is([data-screen=collection],[data-screen=teacher]) .screen-heading .eyebrow{font-size:11px;margin-bottom:6px}
 body[data-screen=teacher] .screen-heading>.outline-button{font-size:12px;min-height:36px;padding:6px 12px}
 .viewport-panel{padding:12px;min-height:0}
 .panel-heading{gap:8px;padding-bottom:10px}.panel-heading h2{font-size:21px}.panel-heading .text-button{font-size:12px}
 .panel-content{padding:12px 0}
 .viewport-panel .collection-awards,.viewport-panel .collection-grid{gap:10px}
 .viewport-panel .collection-awards:has(>.award:only-child),.viewport-panel .collection-grid:has(>.collectible:only-child){grid-template-columns:1fr;max-width:260px}
 .viewport-panel .award{padding:17px 8px}.viewport-panel .award>span{width:52px;height:52px;margin-bottom:12px;font-size:26px}
 .viewport-panel .award strong{font-size:19px;line-height:1.5}.viewport-panel .award small{font-size:12px}
 .viewport-panel .collectible{padding:10px}.viewport-panel .collectible strong{font-size:15px}.viewport-panel .collectible small{font-size:12px}
 .viewport-panel .collectible img,.viewport-panel .unknown-art{height:clamp(90px,18dvh,170px)}
 .panel-pager{gap:8px;padding-top:10px}.panel-pager button{font-size:12px;padding:8px;min-height:38px}.panel-pager span{font-size:12px}
 .teacher-step{display:block}.teacher-step-number{display:block;font-size:42px;margin-bottom:13px}
 .teacher-step h2{font-size:27px;margin-bottom:17px}
 .teacher-step li{font-size:17px;line-height:1.75;margin-bottom:16px}
}
@media print{body:is([data-screen=collection],[data-screen=teacher]) #screen{height:auto;display:block}.panel-content{overflow:visible}.panel-pager{display:none}}

