*{box-sizing:border-box}body{margin:0;background:#faf8f3;color:#292d3e;font-family:"Trebuchet MS",Arial,sans-serif}header,main,footer{max-width:1240px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;padding:30px 28px;border-bottom:1px solid #dcdedc}a{color:inherit}.brand{font-size:22px;font-weight:800;text-decoration:none;display:flex;gap:12px;align-items:center}.brand-star{color:#7362ac;font-size:32px}.main-site{font-size:14px;text-underline-offset:5px}main{padding:0 28px}.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:50px;align-items:center;padding:64px 0 56px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;color:#5f6774;margin-bottom:18px}h1{font-size:clamp(38px,5.6vw,70px);letter-spacing:-3px;line-height:1.07;margin:0 0 23px;font-weight:900}h1 span{color:#7362ac}.intro{max-width:580px;font-size:18px;line-height:1.6;color:#5d6371}.hero-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.hero-tags span{border:1px solid #dcdedc;border-radius:30px;padding:9px 13px;font-size:12px;font-weight:700}.hero-art{position:relative;padding:28px 0 50px;transform:rotate(3deg)}.hero-art img{width:100%;border-radius:28px;border:2px solid #514066;box-shadow:10px 12px 0 #ddd8e9}.sticker{position:absolute;right:-4px;bottom:0;background:#ffdc88;border:2px solid #514066;border-radius:25px;padding:18px 28px;font-size:23px;font-weight:900;transform:rotate(-10deg);box-shadow:4px 5px 0 #514066}.section-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.section-top h2{font-size:27px;letter-spacing:-1px}.section-top p{font-size:14px;color:#68707c}.filters{display:flex;align-items:flex-end;gap:14px;background:#eeeae4;padding:19px;border-radius:20px}.filters label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:700;flex:1}.filters .search{flex:1.6}input,select,button{font:inherit;font-size:15px;min-height:46px;border:1px solid #ccc8c2;border-radius:10px;background:white;padding:11px 12px;color:inherit;min-width:0;width:100%}.filters button{width:auto;background:#292d3e;color:white;border-color:#292d3e;cursor:pointer;white-space:nowrap}.collection-note{font-size:13px;line-height:1.6;color:#68707c;margin:17px 1px 25px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.card{border:1px solid #dedcdb;border-radius:21px;overflow:hidden;background:white;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}.card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #292d3e12}.preview{display:block;background:#e4def1}.preview img{display:block;width:100%;height:auto;aspect-ratio:480/250;object-fit:cover}.card-body{padding:21px;display:flex;flex-direction:column;flex:1}.tags{display:flex;gap:6px;flex-wrap:wrap}.tags span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;background:#f0edf7;border-radius:5px;padding:5px 7px;color:#65528c}.tags .live{background:#e2f2ed;color:#396959}.card h2{font-size:21px;line-height:1.2;margin:13px 0 10px;letter-spacing:-.4px}.card h2 a{text-decoration:none}.card h2 a:hover{text-decoration:underline}.card p{font-size:14px;line-height:1.6;color:#697080;margin:0 0 22px}.card-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.card-bottom>span{font-size:11px;color:#77808c}.card-bottom>div{display:flex;gap:7px}.play,.host{font-size:12px;font-weight:800;text-decoration:none;border-radius:8px;padding:9px 12px;background:#292d3e;color:white}.host{background:#eeeaf8;color:#65528c}.empty{padding:55px;text-align:center;border:1px dashed #c2bbcf;border-radius:20px}footer{margin:65px auto 0;padding:28px;display:flex;gap:20px;justify-content:space-between;border-top:1px solid #dedcdb;font-size:13px;color:#68707c}footer a{text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8b71c6;outline-offset:4px}[hidden]{display:none!important}@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{gap:28px}.filters{flex-wrap:wrap}.filters .search{flex-basis:100%}.filters label{flex-basis:30%}}@media(max-width:580px){header{padding:20px}.brand{font-size:18px}.main-site{font-size:12px}main{padding:0 20px}.hero{padding:37px 0;grid-template-columns:1fr;gap:0}.hero-art{display:none}h1{letter-spacing:-1.5px}.intro{font-size:16px}.grid{grid-template-columns:1fr;gap:20px}.section-top{align-items:flex-start;gap:8px;flex-direction:column}.section-top h2{margin-bottom:0}.filters{padding:15px}.filters label{flex-basis:40%}.filters button{width:100%}.card h2{font-size:23px}footer{flex-wrap:wrap;padding:25px 20px}.hero-tags span{font-size:11px}}@media(prefers-reduced-motion:reduce){.card{transition:none}.card:hover{transform:none}}.preview{position:relative;overflow:hidden;aspect-ratio:1120/820}.preview>img{position:absolute;inset:0;height:100%;object-fit:cover}.preview iframe{position:absolute;left:0;top:0;width:1120px;height:820px;border:0;transform-origin:top left;pointer-events:none;background:#faf8f3}.preview-label{position:absolute;right:8px;bottom:8px;border-radius:5px;padding:4px 7px;font-size:9px;font-weight:800;background:#fffe;color:#514066;z-index:2}.preview.ready>img{visibility:hidden}

header{flex-wrap:wrap;gap:12px}.lock-browser{width:auto;min-height:0;padding:8px 12px;font-size:12px;border-radius:8px;cursor:pointer;background:#eeeaf8;color:#65528c}header form{margin:0}

.hero-art{padding:12px 0 74px;max-width:380px;width:100%;justify-self:center}.hero-art img{display:block;max-width:300px;width:100%;height:auto;margin:0 auto}.hero-art .sticker{font-size:20px;padding:14px 22px;bottom:0;right:-5px}

.card .game-summary{margin-bottom:15px}.card-skills{margin-bottom:22px}.card-skills h3{font-size:13px;margin:0 0 8px;color:#292d3e}.card-skills ul{padding-left:19px;margin:0;color:#5d6473;font-size:14px;line-height:1.5}.card-skills li{margin:0 0 5px;padding-left:2px}.card-skills li:last-child{margin-bottom:0}.grid{align-items:start}

.hero{padding:36px 0 30px}.folder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0 28px}.folder-card{display:block;text-decoration:none;background:var(--folder-color);border:1px solid #292d3e24;border-radius:20px;padding:22px;transition:transform .15s}.folder-card:hover{transform:translateY(-3px)}.folder-card h3{font-size:25px;margin:9px 0}.folder-card p{font-size:14px;line-height:1.5;margin:0 0 16px;color:#444b5a}.folder-card>span:last-child{font-size:13px;font-weight:800}.folder-icon{display:block;font-size:32px;color:#65528c}.more-heading{margin-top:35px}.folder-grid.extras{grid-template-columns:repeat(2,minmax(0,1fr))}.browse-all,.back-grades{font-weight:800;font-size:14px;text-underline-offset:4px}.back-grades{margin-left:auto}.section-top{flex-wrap:wrap}#gradeFolders{padding-top:5px}#gradeFolders>h2{font-size:25px}@media(max-width:900px){.folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:580px){.folder-grid,.folder-grid.extras{grid-template-columns:1fr}.folder-card{padding:20px}.back-grades{margin-left:0}}@media(prefers-reduced-motion:reduce){.folder-card{transition:none}.folder-card:hover{transform:none}}

@font-face{font-family:"KA Peach Sugar";src:url("/game-library/fonts/ka-peach-sugar.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:"KA Sugar Rush";src:url("/game-library/fonts/ka-sugar-rush.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}body{font-family:"KA Sugar Rush","Trebuchet MS",Arial,sans-serif}.hero h1,#collection-heading,#gradeFolders>h2,.folder-card h3,.card h2{font-family:"KA Peach Sugar","Trebuchet MS",Arial,sans-serif;font-weight:400;letter-spacing:0}.hero h1{line-height:1.15}.folder-card h3,.card h2{line-height:1.25}.card-skills ul,.card p,.folder-card p{font-size:16px}.tags span{font-size:12px}.card-bottom>span{font-size:13px}.play,.host{font-size:14px}

body{font-family:"RY Simple Solver","Trebuchet MS",Arial,sans-serif;font-size:20px}.card-skills ul,.card p,.folder-card p{font-size:20px;line-height:1.55}.card h2{font-size:27px}.folder-card h3{font-size:32px}.tags span{font-size:14px}.card-bottom>span{font-size:16px}.play,.host,.back-grades,.browse-all{font-size:18px}.collection-note{font-size:18px}.filters label{font-size:18px}.filters input,.filters select,.filters button{font-size:20px}.section-top p{font-size:18px}.folder-card>span:last-child{font-size:20px}.intro{font-size:22px}.hero h1{font-size:clamp(44px,5.6vw,76px)}
.card-skills h3{font-size:28px!important;line-height:1.3;margin-bottom:12px;color:#292d3e}.card-skills ul{font-size:20px}.folder-card{padding:0;border:2px solid var(--folder-color);overflow:hidden;background:#fff;border-radius:22px}.folder-picture{position:relative;overflow:hidden;aspect-ratio:1.45;background:var(--folder-color);isolation:isolate}.folder-picture>img{position:absolute;width:100%;height:100%;object-fit:cover;transform:scale(1.25)}.folder-picture iframe{position:absolute;left:0;top:0;width:1120px;height:820px;border:0;transform-origin:top left;pointer-events:none}.folder-picture.ready>img{visibility:hidden}.folder-picture:after{content:"";position:absolute;inset:0;background:#13233f12;pointer-events:none;z-index:1}.folder-picture h3{position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);margin:0!important;text-align:center;background:#fff6e9ed;padding:12px 20px;border-radius:35px;font-family:"KA Peach Sugar",Arial,sans-serif!important;font-size:clamp(30px,3.1vw,44px)!important;line-height:1.2;white-space:nowrap;color:#fff;-webkit-text-stroke:1.2px #25334c;paint-order:stroke fill;text-shadow:1px 1px 0 #25334c,-1px -1px 0 #25334c,1px -1px 0 #25334c,-1px 1px 0 #25334c}.folder-picture h3 sup{font-family:inherit!important;font-size:.48em!important;vertical-align:super;line-height:0;margin-left:1px}.folder-info{padding:16px}.folder-stats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:13px}.folder-stats>span{flex:1;white-space:nowrap;background:var(--folder-color);border-radius:25px;padding:9px 12px;text-align:center;font-size:18px!important;font-weight:700}.explore-folder{display:block;text-align:center;border-radius:14px;padding:12px;background:var(--folder-color);font-size:21px!important;font-weight:700}.folder-card:hover{box-shadow:0 7px 20px #25334c12}@media(max-width:580px){.folder-picture h3{font-size:42px!important}.folder-stats>span{font-size:20px!important}}
.folder-picture h3{background:#000!important;color:#fff!important;-webkit-text-stroke:0!important;text-shadow:none!important;text-transform:uppercase!important;padding:14px 20px}.folder-picture h3 sup{text-transform:uppercase!important}
.more-skills{margin-top:12px}.more-skills summary{cursor:pointer;color:#3f3261;font-size:18px;font-weight:700;background:#eeeaf8;border-radius:10px;padding:10px 12px}.more-skills summary:focus-visible{outline:3px solid #8b71c6;outline-offset:3px}.more-skills .open-label{display:none}.more-skills[open] .open-label{display:inline}.more-skills[open] .closed-label{display:none}.more-skills ul{margin-top:12px}
.hero{grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:24px;padding:24px 0 22px;align-items:center}.hero h1{font-size:clamp(38px,4.3vw,58px);margin-bottom:13px}.hero .eyebrow{margin-bottom:10px}.hero .intro{font-size:20px;line-height:1.45;margin:0;max-width:540px}.hero-tags{margin-top:14px}.hero-tags span{padding:7px 11px;font-size:13px}.hero-art{max-width:440px;width:100%;padding:0 12px 20px;transform:none}.hero-art img{max-width:420px;width:100%;margin:0;border-radius:22px;box-shadow:6px 7px 0 #ddd8e9}.hero-art .sticker{font-size:17px;padding:9px 14px;right:0;bottom:0}.preview{aspect-ratio:1.45}.preview-label{font-size:10px;padding:4px 6px}#gradeFolders>h2{margin-top:15px}.collection-note{margin:12px 0 18px}.section-top h2{margin:14px 0}@media(max-width:900px){.hero{gap:20px;grid-template-columns:1.1fr .9fr}.hero-art{padding-bottom:14px}.hero-art .sticker{font-size:14px}}@media(max-width:580px){.hero{grid-template-columns:1fr;padding:25px 0 20px}.hero h1{font-size:40px}.hero-art{display:none}.hero .intro{font-size:19px}.hero-tags{gap:6px}.hero-tags span{font-size:12px}}
.hero-art img{height:300px;object-fit:cover;object-position:center 45%}@media(max-width:900px){.hero-art img{height:260px}}
.preview:not(.ready) iframe,.folder-picture:not(.ready) iframe{opacity:0}.preview.ready iframe,.folder-picture.ready iframe{opacity:1}

/* Four actual game screens form the homepage cover. */
.hero-art.hero-collage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:490px;padding:0;transform:none;align-self:center}
.hero-collage .hero-game{position:relative;min-width:0;aspect-ratio:1.38;border:2px solid #292d3e;border-radius:15px;overflow:hidden;background:#e4def1;box-shadow:3px 4px 0 #ddd8e9}
.hero-collage .hero-game>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;border-radius:0;box-shadow:none}
.hero-game-label{position:absolute;left:0;right:0;bottom:0;padding:6px 4px;background:#292d3ef2;color:white;font-family:"KA Peach Sugar","Trebuchet MS",sans-serif;font-size:18px;line-height:1.2;text-align:center;letter-spacing:.02em;z-index:2}
@media(max-width:900px){.hero-art.hero-collage{gap:10px}.hero-game-label{font-size:16px}}
@media(max-width:580px){.hero-art.hero-collage{display:grid;max-width:420px;margin-top:22px;width:100%;justify-self:center}.hero-game-label{font-size:17px}.hero-collage .hero-game{border-radius:12px}.hero{gap:0}}
/* Browse a named game through clear grade-and-unit folders. */
#gameCollections{margin:22px 0 40px}.game-collection{background:#f6effc;border-radius:22px;padding:24px}.collection-intro{font-size:20px;margin:0 0 25px}.game-unit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:22px}.collection-unit{display:flex;flex-direction:column;align-items:start;gap:15px;min-width:0;min-height:220px;padding:28px;background:white;border:2px solid #bca0d4;border-radius:24px;text-decoration:none;color:#342941;transition:border-color .15s,box-shadow .15s}.collection-unit:hover{border-color:#70509c;box-shadow:0 5px 0 #e3d3ee}.collection-unit:focus-visible{outline:3px solid #7040a0;outline-offset:4px}.collection-unit .collection-grade{font-family:'KA Peach Sugar',Arial,sans-serif;font-size:30px;line-height:1.15;text-transform:uppercase}.collection-grade sup{font-size:.6em}.collection-topic{font-size:21px;line-height:1.4;overflow-wrap:anywhere}.collection-unit small{font-size:15px;color:#665b71}.collection-unit b{font-size:19px;color:#79529d;margin-top:auto}.collection-fun{margin-top:32px}.collection-fun h3{font-family:'KA Peach Sugar',Arial,sans-serif;font-size:27px;margin-bottom:18px}.game-collection[hidden],.collection-unit[hidden],.collection-fun[hidden],#gameCollections[hidden]{display:none!important}@media(max-width:600px){.game-collection{padding:16px}.game-unit-grid{grid-template-columns:1fr;gap:16px}.collection-unit{min-height:190px;padding:23px}.collection-unit .collection-grade{font-size:29px}.collection-topic{font-size:20px}}

/* Keep grade-folder headings inside the thumbnail at every card width. */
.folder-picture{container-type:inline-size}
.folder-picture h3{max-width:calc(100% - 24px);box-sizing:border-box;white-space:normal;overflow-wrap:normal;word-break:normal;text-wrap:balance;font-size:clamp(24px,8cqw,40px)!important;line-height:1.15}
.collection-topic{overflow-wrap:normal;word-break:normal;hyphens:none}

.preview[data-game-screenshot] { background: #0b2940; }
.preview[data-game-screenshot] > img { object-fit: contain; transform: none; }

/* Search results show matching lessons instead of the complete course skill list. */
.card .card-skills[hidden]{display:none!important}
