/* The adventure catalogue shares the site's cards, with clear subject shelves. */
.subject-math{--subject-color:#176d94;--subject-tint:#e5f5fc}
.subject-language{--subject-color:#b74460;--subject-tint:#fff0f3}
.subject-science{--subject-color:#39733c;--subject-tint:#ecf6e4}
.subject-social{--subject-color:#a05c19;--subject-tint:#fff2da}
.subject-mixed{--subject-color:#7250a3;--subject-tint:#f2ecfc}
.subject-all{--subject-color:#25274f;--subject-tint:#fff3a1}
body[data-screen="learn"] .game-shell{overflow:clip}
body.pop-theme[data-screen="learn"] .screen-heading{padding:0 4px;margin-bottom:20px;border:0;border-radius:0;background:none;box-shadow:none}
body.pop-theme[data-screen="learn"] .screen-heading .kicker{display:none}
body[data-screen="learn"] .screen-title{font-size:clamp(27px,3vw,36px);line-height:1.4;margin:0}
body[data-screen="learn"] .screen-subtitle{font-size:15px;margin-top:7px}
.subject-picker{position:sticky;top:10px;z-index:8;padding:16px 18px 18px;margin-bottom:30px;background:#fffef8;border:2px solid #d7d9dc;border-radius:18px;box-shadow:0 4px 12px #22254c0d;scroll-margin-top:10px}
.subject-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#25274f;font-size:18px}
.subject-picker-heading>span{font-size:14px;color:#526476}
.subject-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.subject-filter{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:9px 10px;border:2px solid #dce1e5;border-radius:12px;background:#fff;color:var(--subject-color);font:inherit;font-size:18px;font-weight:900;cursor:pointer;touch-action:manipulation}
.subject-filter svg{width:25px;height:25px;flex:none}
.subject-filter>span{white-space:nowrap}
.subject-filter small{display:grid;place-items:center;min-width:25px;height:25px;padding:0 5px;border-radius:20px;background:#eef1f2;color:#4c5b68;font-size:13px}
.subject-filter[aria-pressed="true"]{background:var(--subject-tint);border-color:var(--subject-color);box-shadow:0 3px 0 var(--subject-color)}
.subject-filter[aria-pressed="true"] small{background:var(--subject-color);color:white}
.subject-filter:hover{background:var(--subject-tint);border-color:var(--subject-color)}
.subject-filter:focus-visible{outline:3px solid #f1bd32;outline-offset:4px}
.subject-section{margin:0 0 44px;min-width:0}.subject-section:last-child{margin-bottom:8px}.subject-section[hidden]{display:none}
.subject-heading{display:flex;align-items:center;gap:14px;padding:12px 16px;margin-bottom:20px;border-left:6px solid var(--subject-color);border-radius:3px 14px 14px 3px;background:var(--subject-tint);color:var(--subject-color)}
.subject-mark{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:13px;background:white}
.subject-mark svg{width:32px;height:32px}
.subject-heading h2{display:flex;align-items:center;gap:14px;margin:0;font-size:29px;line-height:1.4;font-weight:900}
.subject-heading h2 small{font-size:14px;font-weight:800;color:#526476}
.subject-heading p{margin:2px 0 0;color:#526476;font-size:14px;line-height:1.5}
body.pop-theme[data-screen="learn"] .subject-section .learn-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
body.pop-theme[data-screen="learn"] .subject-section .lesson-tile{min-width:0;display:flex;flex-direction:column;border-radius:18px;box-shadow:3px 4px 0 #25274f}
body[data-screen="learn"] .subject-section .world-thumbnail{height:auto;aspect-ratio:16/10;flex:none}
body[data-screen="learn"] .subject-section .thumbnail-copy{left:14px;right:12px;bottom:15px}
.subject-section .world-thumbnail h3{color:#fffde2;font-size:clamp(21px,2vw,26px);line-height:1.4;margin:8px 0 0;text-align:left;text-shadow:0 2px 5px #10273480}
body[data-screen="learn"] .subject-section .world-eyebrow{font-size:12px;line-height:1.5}
body[data-screen="learn"] .subject-section .lesson-content{padding:16px;display:flex;flex-direction:column;flex:1;gap:12px}
body[data-screen="learn"] .subject-section .lesson-content>p{font-size:15px;line-height:1.7;margin:0}
body[data-screen="learn"] .subject-section .lesson-content>.game-button{font-size:18px;min-height:48px;margin:auto 0 2px;display:flex;align-items:center;justify-content:center}
body[data-screen="learn"] .subject-section .stage-loot{min-height:72px;margin:0;padding:10px;gap:8px}
body[data-screen="learn"] .subject-section .difficulty-picker{margin:0;gap:6px}
body[data-screen="learn"] .subject-section .difficulty-picker button{min-height:44px;padding:7px 2px;font-size:14px}
body[data-screen="learn"] .subject-section .extra-info{margin:2px 0 0;font-size:14px}
@media(max-width:1000px){
 .subject-buttons{gap:7px}.subject-filter{gap:6px;padding:8px 6px;font-size:16px}.subject-filter svg{width:21px;height:21px}.subject-filter small{min-width:20px;height:22px;font-size:12px}
 body.pop-theme[data-screen="learn"] .subject-section .learn-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media(max-width:620px){
 .subject-picker{top:6px;padding:12px;margin-bottom:22px;border-radius:15px}.subject-picker-heading{font-size:17px;margin-bottom:9px}.subject-picker-heading>span{font-size:13px}
 .subject-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.subject-filter{min-height:47px;font-size:16px;padding:7px 4px;gap:5px}.subject-filter svg{display:none}.subject-filter small{min-width:20px;height:20px;font-size:12px}
 .subject-section{margin-bottom:32px}.subject-heading{gap:10px;padding:10px 12px;margin-bottom:16px}.subject-mark{width:40px;height:40px}.subject-mark svg{width:27px;height:27px}.subject-heading h2{font-size:25px;gap:12px}.subject-heading p{font-size:13px}
 body.pop-theme[data-screen="learn"] .subject-section .learn-grid{grid-template-columns:1fr;gap:20px}
 body[data-screen="learn"] .subject-section .world-thumbnail{aspect-ratio:16/9}
 .subject-section .world-thumbnail h3{font-size:25px}
 body[data-screen="learn"] .subject-section .lesson-content{padding:15px}
}
@media(max-width:360px){.subject-filter{font-size:14px;gap:3px;padding-inline:3px}.subject-filter small{min-width:14px;padding:0 2px;font-size:11px}.subject-picker{padding:10px}}
@media(max-height:500px) and (orientation:landscape){.subject-picker{position:static}}
