
:root{color-scheme:light;--ink:#123b60;--blue:#075baa;--violet:#7531ae;--line:#cfdfec}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 100% 0,#d9f1ff,transparent 48%),radial-gradient(ellipse at 0 60%,#fff0c8,transparent 46%),#fffdf8;color:var(--ink);font:16px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:var(--blue);text-underline-offset:4px}a:hover{color:#812f9c}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ba5900;outline-offset:4px}[hidden]{display:none!important}.skip{position:absolute;left:12px;top:-70px;background:white;padding:10px;z-index:5}.skip:focus{top:10px}.wrap{width:min(1160px,calc(100% - 40px));margin:auto}header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 0;border-bottom:1px solid var(--line)}.brand{font-weight:900;font-size:20px;text-decoration:none;color:#153d75}.brand span{color:#a74d00}.back-link{padding:5px 13px;background:#e1ebfc;border:1px solid #aebfde;border-radius:10px;text-decoration:none;color:#193f73}nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-weight:700;font-size:14px}.hero{padding:50px 0 36px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px;align-items:center}.eyebrow{font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#8a4200;font-size:12px;margin:0 0 12px}h1{font-size:clamp(30px,4.7vw,52px);line-height:1.14;letter-spacing:-.035em;margin:0 0 20px;color:#114f93;max-width:900px}h1 em{font-style:normal;color:var(--violet)}.lead{font-size:18px;max-width:780px;margin:0 0 20px}.portrait{width:124px;height:124px;border-radius:50%;border:5px solid white;box-shadow:0 0 0 3px #efa824}.byline{font-size:14px;font-weight:700;color:#6c2a97}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.button,button.share{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:44px;border:1px solid #abcbea;border-radius:13px;padding:9px 16px;font-weight:800;text-decoration:none;background:white;color:#07529b;cursor:pointer}.button.primary{color:white;background:#075baa;border-color:#075baa}.button.secondary{background:#fff0cb;color:#8a4200;border-color:#e0c28a}.grades{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin:0 0 32px}.grade{padding:21px;border:1px solid #bfdfd4;border-radius:23px;background:#e0f4ea;text-decoration:none;color:#174c3c;box-shadow:0 4px 0 #c9e5d9}.grade:nth-child(2){background:#eee2fc;border-color:#d5b9ee;color:#5e278f;box-shadow:0 4px 0 #e0cdee}.grade:nth-child(3){background:#fff0d6;border-color:#edd2ac;color:#89440b;box-shadow:0 4px 0 #efddba}.grade:nth-child(4){background:#fce6ef;border-color:#eec3d3;color:#a0265d;box-shadow:0 4px 0 #efd0de}.grade strong{display:block;font-size:24px;line-height:1.4}.grade span{display:block;font-size:13px;margin-top:8px;font-weight:600}.filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:20px;margin:26px 0 12px}.filters label{font-size:13px;font-weight:800}.filters input,.filters select{display:block;width:100%;min-height:46px;border:1px solid #94b6d0;border-radius:10px;padding:8px;background:#fff;color:#153b60;margin-top:6px}.results{font-size:14px;color:#385676}.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:30px}.resource{background:#ffffffeb;border:1px solid var(--line);border-top:5px solid #2b93ba;border-radius:18px;padding:23px;display:flex;flex-direction:column;align-items:flex-start;scroll-margin-top:24px;min-width:0;box-shadow:0 5px 0 #a6bac110}.resource[data-kind=gramer]{border-top-color:#a069d1}.resource[data-kind=kaynak]{border-top-color:#eba342}.resource h3{font-size:20px;line-height:1.35;color:#163d71;margin:8px 0 12px;overflow-wrap:anywhere}.resource p{font-size:15px;line-height:1.65;margin:0 0 18px;overflow-wrap:anywhere}.tags{display:flex;flex-wrap:wrap;gap:7px;font-size:11px;font-weight:800}.tags span{background:#eaf3fa;color:#184d78;padding:3px 8px;border-radius:7px}.resource .actions{margin-top:auto}.resource .button,button.share{font-size:13px;min-height:42px;padding:8px 12px}.section-title{font-size:28px;line-height:1.3;margin:34px 0 8px;color:#31548a}.section-intro{margin-top:0;max-width:850px}.panel{border:1px solid #e2d3b7;background:#fff7e2;padding:24px;border-radius:20px;margin:28px 0}.panel h2{margin-top:0;font-size:24px;line-height:1.3;color:#884700}.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:25px 0}.step{background:white;border:1px solid var(--line);padding:24px;border-radius:20px}.step b{color:var(--violet);font-size:13px}.step h3{line-height:1.3;color:#174e87}.step p{font-size:15px;margin-bottom:0}.reading{max-width:820px}.reading h2{color:#164f86;margin-top:38px}.reading p{font-size:17px}.share-status{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:90vw;padding:10px 20px;border-radius:12px;background:#123b60;color:white;font-weight:700;z-index:10;box-shadow:0 5px 25px #153d7540}.share-status:empty{display:none}dialog{max-width:min(560px,90vw);border:1px solid #aec6dc;border-radius:20px;padding:25px;color:var(--ink);background:white}dialog input{width:100%;padding:12px;margin:14px 0;border:1px solid #a8bed2;border-radius:8px}dialog::backdrop{background:#14354f70}footer{border-top:1px solid var(--line);margin-top:50px;padding:24px 0 35px;font-size:13px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.count{font-weight:800;color:#77449b}.empty{padding:30px;border:2px dashed #bdcfdb;border-radius:18px}details{padding:16px 0;border-bottom:1px solid var(--line)}summary{font-weight:800;cursor:pointer;color:#164d86}blockquote{border-left:4px solid #e3b744;margin-left:0;padding:12px 22px;background:#fff4d7;font-weight:700}body:has(.resource:target) .resource:target{outline:3px solid #bd6a00;outline-offset:4px}@media(max-width:700px){.wrap{width:calc(100% - 28px)}header{align-items:flex-start;flex-direction:column;gap:10px;padding:18px 0}nav{gap:13px;font-size:13px}.hero{padding:32px 0 24px;gap:16px}.hero .portrait{width:75px;height:75px;align-self:start}.lead{font-size:16px}.grades{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grade{padding:15px}.grade strong{font-size:21px}.grade span{font-size:12px}.resource-grid,.steps{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr;padding:15px;gap:12px}.filters label:first-child{grid-column:1/-1}.resource{padding:20px}.section-title{font-size:24px}.button{padding:9px 12px;font-size:14px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Match the colourful activity cards used by the theme navigation. */
.resource{border-top-color:var(--resource-color,#075baa)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--resource-color,#075baa) 8%,white),color-mix(in srgb,var(--resource-color,#075baa) 20%,white));padding:18px}
.resource .game-cover{display:block;align-self:center;width:100%;height:135px;object-fit:contain;margin:0 0 12px}
.resource h3{color:var(--resource-color,#164d86)}.resource .button.primary{background:var(--resource-color,#075baa);border-color:var(--resource-color,#075baa)}
.hero{padding:28px 0 22px}.section-title{margin-top:24px}.tags span{background:#ffffffb5}

.portal-download-notice{position:fixed;z-index:20;bottom:16px;right:16px;max-width:min(420px,calc(100vw - 32px));padding:14px;background:#fff0bd;color:#174d57;border:2px solid #58a79d;border-radius:12px;font:700 14px/1.4 system-ui}.portal-download-notice button{margin-left:12px;padding:4px 8px;border:1px solid currentColor;border-radius:5px;background:transparent;color:inherit;cursor:pointer}.resource a[download]{background:#d4eee5;color:#14544e;border-color:#6bb6a7}

/* Illustrated discovery and teacher guide, shared with the student catalogue. */
h1,h2,h3,.grade strong{font-family:'Comic Sans MS','Trebuchet MS',sans-serif;font-weight:800}
.illustrated-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:24px;padding:24px 30px;margin:6px 0 24px;border:2px solid #718bd0;border-radius:28px;background:radial-gradient(ellipse at 35% 15%,#ffd779 0%,#ffebb8 25%,transparent 65%),linear-gradient(120deg,#d2edff,#e9dcfa);box-shadow:0 6px 0 #bfd6e6;overflow:hidden}
.illustrated-hero h1{color:#165294;font-size:clamp(28px,3.6vw,48px);line-height:1.18;margin:8px 0 16px}
.illustrated-hero .eyebrow{color:#8b4900;font-weight:900}.illustrated-hero .lead,.illustrated-hero p{color:#244b6b}.illustrated-hero .eyebrow{color:#8b4900}
.guide-scene{display:block;width:100%;height:100%;max-height:300px;object-fit:contain;align-self:center;border-radius:20px}
.button.primary,.resource .button.primary{color:#ffef9c}.button.primary:hover{filter:brightness(1.12)}
.section-title,.reading h2{color:#4932a3}.section-title:nth-of-type(2n){color:#a13a63}
.steps{gap:16px}.step{padding:18px 22px 24px;background:linear-gradient(145deg,#d0f3f6,#dce9ff);border:2px solid #72b5d1;box-shadow:0 5px 0 #93cbdc}
.step:nth-child(2){background:linear-gradient(145deg,#eee1ff,#f6e4f2);border-color:#b293df;box-shadow:0 5px 0 #d1b8e6}.step:nth-child(3){background:linear-gradient(145deg,#ffe7ab,#fff3d8);border-color:#d7aa49;box-shadow:0 5px 0 #e4c484}
.step-scene{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:18px;margin:0 0 10px}.step b{font-size:14px;color:#754116}.step h3{font-size:23px;margin:10px 0;color:#174b83}.step:nth-child(2) h3{color:#74329e}.step:nth-child(3) h3{color:#9b4b16}.step p{color:#183950}
.reading{max-width:none;padding:20px 28px;border:1px solid #c6cde8;border-radius:24px;background:linear-gradient(130deg,#e3f2fb,#f1e6fc,#fff2ce)}.reading h2:first-child{margin-top:6px}.reading h2{font-size:26px}.reading p{max-width:1000px}
.resource .game-cover{height:170px;object-fit:contain}.resource .play-mode{display:block;border:1px solid #9f6700;background:#ffedb3;color:#703400;font-size:12px;font-weight:800;border-radius:10px;padding:7px 10px;margin:8px 0}.resource .play-mode small{font-size:inherit}
.share-status{color:#ffec97}.grade strong{font-size:25px}.grade span{font-weight:700}.grade:hover{filter:saturate(1.2);outline:2px solid currentColor;outline-offset:2px}
@media(max-width:900px){.illustrated-hero{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;padding:22px}.steps{grid-template-columns:1fr}.step{display:grid;grid-template-columns:32% 1fr;gap:0 20px}.step-scene{grid-row:1/4;align-self:center;margin:0}.step b,.step h3,.step p{grid-column:2}}
@media(max-width:520px){.illustrated-hero{grid-template-columns:1fr;padding:20px}.guide-scene{max-height:175px;grid-row:1}.illustrated-hero h1{font-size:28px}.step{display:block;padding:18px}.step-scene{max-height:185px;margin:auto auto 12px}.reading{padding:20px}.reading h2{font-size:23px}}

.illustrated-hero h1 em{color:#803e9d}.illustrated-hero .count{color:#5e3b94}

/* Full-bleed illustrated posters; copy stays selectable and responsive. */
#screen-inner .hub-hero,.illustrated-hero{isolation:isolate;display:flex;align-items:center;position:relative;min-height:210px;padding:0;gap:0;overflow:hidden;border:2px solid #b1cae6;background:#163c64;box-shadow:0 5px 0 #b8cde0;border-radius:24px}
#screen-inner .hub-illustration,.illustrated-hero .guide-scene{position:absolute;inset:0;z-index:-2;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;mask-image:none;border-radius:0;display:block;filter:none}
#screen-inner .hub-illustration img{display:block;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:50% 43%}
.illustrated-hero .guide-scene{object-fit:cover;object-position:50% 43%}
#screen-inner .hub-hero::before,.illustrated-hero::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#102f5aeb 0%,#123853d9 32%,#14314975 61%,#12345108 100%);pointer-events:none}
#screen-inner .hub-hero::after{display:none}
#screen-inner .hub-copy{width:65%;min-width:0;position:relative;padding:18px 26px;background:none}
#screen-inner .hub-hero h2{font-size:clamp(24px,2.6vw,32px);line-height:1.22;letter-spacing:-.03em;text-shadow:0 2px 3px #08274c80;margin:8px 0 14px;color:#ffe18b}
#screen-inner .hub-hero .tw-0{color:#ffe18b}#screen-inner .hub-hero .tw-1{color:#91e6ff}#screen-inner .hub-hero .tw-2{color:#ffb8df}#screen-inner .hub-hero .tw-3{color:#adf2c6}
#screen-inner .hub-hero h2 small{color:#badfff;font-size:14px;line-height:1.45}
#screen-inner .hub-hero .eyebrow{color:#ffe492;font-size:11px;line-height:1.5;letter-spacing:.07em}
#screen-inner .hub-intro{color:#d1f5ed;font-size:15px;line-height:1.5;margin:0;max-width:540px;text-shadow:0 1px 2px #14334b}
#screen-inner .hero-sparks{color:#ffdf8a;font-size:12px;margin-top:14px;gap:14px}
#screen-inner .hero-sparks span:nth-child(2){color:#f4bdff}#screen-inner .hero-sparks span:nth-child(3){color:#a1e6ff}
#screen-inner .section-grid .section-card{isolation:isolate;display:flex;align-items:flex-end;grid-template-columns:none;position:relative;min-height:235px;padding:0;gap:0;background:#203751;border-color:color-mix(in srgb,var(--section-color) 55%,#d7edff);box-shadow:0 5px 0 color-mix(in srgb,var(--section-color) 55%,#c3dbf0)}
#screen-inner .section-grid .section-card .section-visual{position:absolute;inset:0;z-index:-2;width:100%;height:100%;min-height:0;border-radius:0;background:none;overflow:hidden}
#screen-inner .section-grid .section-card .section-visual img{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center 34%;border-radius:0}
#screen-inner .section-card::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#071d3200 0%,#102d4340 22%,color-mix(in srgb,var(--section-color) 33%,#0b243d) 70%,#102b46 100%);pointer-events:none}
#screen-inner .section-grid .section-card .section-copy{position:relative;display:flex;flex-direction:column;width:100%;gap:5px;min-width:0;padding:52px 18px 16px;background:none;align-items:flex-start}
#screen-inner .section-copy strong{font-size:22px;line-height:1.17;color:#ffe397;text-shadow:0 2px 2px #09273e;font-family:var(--display)}
#screen-inner .section-card:nth-child(4n+2) .section-copy strong{color:#efc3ff}
#screen-inner .section-card:nth-child(4n+3) .section-copy strong{color:#ffcc9a}
#screen-inner .section-card:nth-child(4n+4) .section-copy strong{color:#9ff2dd}
#screen-inner .section-copy strong small{color:#aee4ff;font-size:12px;font-style:italic;margin-top:5px;line-height:1.35}
#screen-inner .section-description{color:#e0f0c3;font-size:13px;line-height:1.45;text-shadow:0 1px #102b46}
#screen-inner .section-status{color:#b9e4ff;font-size:11px;font-weight:800}
#screen-inner .section-tags{display:flex;gap:5px}
#screen-inner .section-tags>span{color:#ffe69c;background:#112c597d;border-color:#c1e3f954;font-size:10px}
#screen-inner .section-grid .section-card .section-enter{margin-top:5px;border:1px solid #ffdf91;background:linear-gradient(120deg,#ffdc7f,#ffb769);color:#263b64;box-shadow:0 3px #142d4b;font-size:12px;min-height:35px;padding:7px 13px}
#screen-inner .section-card:hover .section-enter{background:#ffebae}
#screen-inner .section-grid>.section-card:last-child:nth-child(odd){grid-column:1/-1;grid-template-columns:none}
#screen-inner .section-grid>.section-card:last-child:nth-child(odd) .section-visual img{max-height:none;object-fit:cover}
#screen-inner .section-grid>.section-card:last-child:nth-child(odd) .section-copy{max-width:720px}
#screen-inner .section-grid>.section-card:last-child:nth-child(odd)::before{background:linear-gradient(90deg,#123353ed 0%,#173852c9 45%,#102f4b15 100%)}
#screen-inner .section-grid>.section-card:last-child:nth-child(odd) .section-copy{padding-top:30px}
#screen-inner .nav .back,.back-link{background:linear-gradient(120deg,#bd244c,#9f163d);color:#fff0ac;border:1px solid #ec7c8e;box-shadow:0 3px 0 #791234;font-weight:900}
#screen-inner .nav .back:hover,.back-link:hover{background:#d12b50;color:#fff0ac}
.back-link{padding:8px 13px;border-radius:11px;text-decoration:none}
.illustrated-hero{padding:30px;min-height:240px}
.illustrated-hero>div{width:65%;position:relative;z-index:1}
.illustrated-hero h1{color:#ffdc88;text-shadow:0 2px 2px #0b2845}.illustrated-hero h1 em{color:#a9e4ff}
.illustrated-hero .eyebrow{color:#ffe19a}.illustrated-hero p,.illustrated-hero .lead{color:#c8f1e9}.illustrated-hero .count{color:#f3c5ff}
.illustrated-hero .button{background:#ffde91;color:#1a4260;border-color:#ffcf61}.illustrated-hero .button.primary{background:#aee9fa;color:#173f69}
/* Display controls are available on both the home and interior screens. */
.portal-tools{display:flex;align-items:center;gap:7px;margin-left:auto;flex:none;font-family:'Trebuchet MS',sans-serif}
.portal-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 12px;border:1px solid #799fc9;border-radius:11px;font:800 12px/1.2 'Trebuchet MS',sans-serif;cursor:pointer;box-shadow:0 3px #b9cce0;background:#1c527e;color:#ffe59a;white-space:nowrap}
.portal-tools button[data-portal-close]{background:#ffdfcf;color:#9b284b;border-color:#e3a192}
.portal-tools button:hover{filter:brightness(1.12)}
.portal-tools svg{width:17px;height:17px;flex:none}.portal-tools button:focus-visible{outline:3px solid #ffae29;outline-offset:3px}
#screen-inner .minilogo{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.portal-notice{position:fixed;z-index:10000;inset:auto 12px 16px;margin:0 auto;max-width:610px;border:2px solid #e9b554;border-radius:15px;background:#fff3c9;color:#173e62;padding:14px 42px 14px 18px;box-shadow:0 8px 30px #0e304b40;font:700 14px/1.5 'Trebuchet MS',sans-serif}
.portal-notice[hidden]{display:none}.portal-notice button{position:absolute;right:8px;top:8px;border:0;background:none;font-size:22px;color:#a42c4c;cursor:pointer}
.portal-dialog{border:2px solid #e5aa63;border-radius:24px;background:linear-gradient(135deg,#fff0bc,#dff3fc);color:#173e62;padding:28px;max-width:440px;width:calc(100% - 32px);box-shadow:0 14px 60px #13294b66;font-family:'Trebuchet MS',sans-serif}
.portal-dialog::backdrop{background:#102b4c99;backdrop-filter:blur(5px)}
.portal-dialog h2{color:#9e2850;margin:0 0 12px;font-size:25px}.portal-dialog p{line-height:1.6;margin:0 0 18px;font-size:15px}
.portal-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.portal-dialog button{font:800 14px 'Trebuchet MS',sans-serif;border-radius:11px;padding:10px 16px;cursor:pointer;border:1px solid #89b0ca;background:#d5eaf7;color:#193f67}
.portal-dialog [data-close-confirm]{background:#ae2149;color:#ffecb6;border-color:#ae2149}
/* A brighter home masthead, orbit shapes, and a breathing space below grades. */
#screen-home .home-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px}
#screen-home .portal-stamp{display:inline-flex;align-items:center;gap:8px;padding:calc(6px * var(--fit)) calc(13px * var(--fit));border:1px solid #75bad4;border-radius:999px;background:linear-gradient(120deg,#164a76,#326cad);color:#ffe499;box-shadow:0 3px 0 #d4b157;font:900 calc(14px * var(--fit))/1.25 'Trebuchet MS',sans-serif;letter-spacing:.1em;text-shadow:0 1px #102f62}
#screen-home .adventure-star{font-size:1.4em;color:#ffce57}.adventure-english{color:#a7f0ff}
#screen-home .home-features{position:relative;margin-top:calc(22px * var(--fit))}
#screen-home .home-features::before{content:'';position:absolute;top:calc(-15px * var(--fit));height:2px;left:7%;right:7%;background:linear-gradient(90deg,transparent,#64c7d2 19%,#c9a7ee 36%,transparent 44%,transparent 56%,#f7bb62 64%,#ed92b6 81%,transparent)}
#screen-home .home-features::after{content:'✦  ◆  ✦';position:absolute;top:calc(-25px * var(--fit));left:50%;transform:translateX(-50%);font-size:calc(15px * var(--fit));line-height:1.2;letter-spacing:8px;color:#be6a13;text-shadow:12px 0 15px #ffdd89;pointer-events:none}
#screen-home .hero-banner{isolation:auto;overflow:visible}
#screen-home .hero-banner .hero-orbits{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:visible}
.hero-orbits i{position:absolute;display:block;aspect-ratio:1}
.hero-orbits .orbit-ring{width:12%;border:3px solid #7cbfe5;border-radius:50%;top:6%;right:4%;transform:rotate(-18deg);box-shadow:3px 3px 0 #e6c7f2}
.hero-orbits .orbit-sun{width:6%;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffef98,#f9ae33);left:8%;top:17%;box-shadow:0 4px 0 #d8903066}
.hero-orbits .orbit-gem{width:4%;background:linear-gradient(135deg,#c3a0f5,#8b5dcc);left:11%;bottom:21%;border-radius:20%;transform:rotate(30deg);box-shadow:3px 3px 0 #d0b0f4}
.hero-orbits .orbit-spark{right:7%;bottom:26%;width:6%;color:#d88519;font:900 clamp(20px,3vw,38px)/1 'Trebuchet MS',sans-serif;text-shadow:0 3px #ffe397}
@media(min-width:1100px){
 #screen-inner .section-grid:has(>.section-card:nth-child(5)){grid-template-columns:repeat(6,minmax(0,1fr))}
 #screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card{grid-column:span 3}
 #screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3){grid-column:span 2;min-height:240px}
 #screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3) .section-copy{padding:52px 17px 16px}
 #screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:last-child::before{background:linear-gradient(180deg,#071d3200 0%,#102d4340 22%,color-mix(in srgb,var(--section-color) 33%,#0b243d) 70%,#102b46 100%)}
}
@media(max-width:1000px){#screen-inner .hub-copy{width:75%;padding:18px 22px}#screen-inner .hub-hero{min-height:210px}#screen-inner .hub-hero h2{font-size:27px}.illustrated-hero>div{width:80%}}
@media(max-width:700px){
 #screen-inner .hub-hero{min-height:245px;align-items:flex-end;display:flex;flex-direction:row}
 #screen-inner .hub-copy{width:100%;padding:72px 18px 18px}
 #screen-inner .hub-hero::before,.illustrated-hero::before{background:linear-gradient(180deg,#0c2d4510 0%,#163c4d40 20%,#102f55d9 48%,#102f55fa 100%)}
 #screen-inner .hub-hero h2{font-size:27px}#screen-inner .hub-intro{font-size:13px}#screen-inner .hub-hero h2 small{font-size:12px}
 #screen-inner .hub-illustration img{object-position:center 28%}
 #screen-inner .hero-sparks{display:flex;font-size:11px}
 #screen-inner .section-grid{grid-template-columns:1fr}
 #screen-inner .section-grid .section-card,#screen-inner .section-grid>.section-card:last-child:nth-child(odd){grid-column:1;min-height:235px;grid-template-columns:none}
 #screen-inner .section-grid .section-card .section-copy,#screen-inner .section-grid>.section-card:last-child:nth-child(odd) .section-copy{padding:65px 18px 16px}
 #screen-inner .section-copy strong{font-size:21px}#screen-inner .section-copy strong small{font-size:12px}
 #screen-inner .section-grid>.section-card:last-child:nth-child(odd)::before{background:linear-gradient(180deg,#071d3200 0%,#102d4340 22%,color-mix(in srgb,var(--section-color) 33%,#0b243d) 70%,#102b46 100%)}
 #screen-inner .section-description{font-size:13px}#screen-inner .section-tags{display:flex}
 .illustrated-hero{min-height:300px;padding:90px 20px 20px;align-items:flex-end}.illustrated-hero>div{width:100%}
 .portal-tools button{min-height:32px;padding:6px 9px;font-size:11px}.portal-tools svg{width:15px;height:15px}
 #screen-home .home-top{flex-wrap:wrap;row-gap:8px;min-height:32px}
 #screen-home .portal-stamp{font-size:calc(11px * var(--fit));padding:5px 9px;letter-spacing:.05em}
}
@media(max-width:480px){
 #screen-home .home-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
 #screen-home .portal-stamp{font-size:10px;padding:6px 8px;letter-spacing:.01em;gap:4px;max-width:200px}
 #screen-home .portal-tools{gap:5px}.portal-tools button{padding:6px 7px;font-size:10px}
 #screen-home .portal-tools button{gap:4px;min-height:32px}
 #screen-inner .minilogo>.name{flex:1}#screen-inner .minilogo .portal-tools{justify-content:flex-end;width:100%;margin:0 0 4px}
 #screen-home .home-features{margin-top:calc(19px * var(--fit))}
 #screen-home .home-features::after{font-size:calc(13px * var(--fit));letter-spacing:5px;top:calc(-23px * var(--fit))}
 #screen-inner .hub-hero h2{font-size:25px}
}
@media(orientation:landscape) and (max-height:540px){
 #screen-home .home-top{min-height:29px}#screen-home .portal-stamp{font-size:calc(11px * var(--fit));padding:3px 10px}
 #screen-home .portal-tools button{min-height:27px;padding:4px 10px;font-size:11px}
 #screen-home .home-features{margin-top:calc(13px * var(--fit))}#screen-home .home-features::before{top:calc(-10px * var(--fit))}#screen-home .home-features::after{font-size:calc(11px * var(--fit));top:calc(-17px * var(--fit))}
}
@media(prefers-reduced-motion:reduce){.portal-tools button{transition:none}}

/* Compact theme and activity collections use the same illustrated design. */
#screen-inner .catalog-theme-grid{gap:12px}
#screen-inner .theme-scene,#screen-inner .theme-scene>img{aspect-ratio:16/9}
#screen-inner .theme-scene>img{height:100%;object-fit:cover;object-position:center 38%}
#screen-inner .catalog-theme-copy{padding:10px;gap:5px}
#screen-inner .catalog-resource-grid{gap:12px}
#screen-inner .catalog-resource h3{font-size:20px}
#screen-inner .catalog-resource p{font-size:13px;line-height:1.45}
#screen-inner .resource-copy{padding:13px}
#screen-inner .resource-art{height:125px}
#screen-inner .flagship .resource-art{min-height:155px;max-height:185px}
#screen-inner .preparing-card{margin:14px auto}
#screen-inner .preparing-card>div:last-child{padding:17px}
#screen-inner .preparing-card h3{font-size:23px}
@media(max-width:700px){#screen-inner .section-description{font-size:12px}#screen-inner .section-copy strong small{font-size:11px}#screen-inner .catalog-resource h3{font-size:19px}}

/* Theme games share the activity grid; Arena artwork keeps its full proportions. */
#screen-inner .arena-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 16px;padding:12px;border-radius:15px;background:linear-gradient(110deg,#d9eeff,#fff0bc 65%,#ead8fa);border:1px solid #b3c9df}
#screen-inner .arena-section-heading p{margin:0 0 4px;color:#53418b;font-size:12px;font-weight:800}
#screen-inner .arena-section-heading h2{margin:0;font-family:'Comic Sans MS','Trebuchet MS',sans-serif;font-size:clamp(21px,2.2vw,29px);line-height:1.15;color:#184f81}
#screen-inner .arena-section-heading>span{max-width:320px;color:#67348d;font-size:13px;font-weight:800;text-align:right;line-height:1.4}
#screen-inner .arena-section-heading small{display:block;color:#28567f;font-size:11px}
#screen-inner .arena-feature{width:100%;max-width:660px;min-width:0;margin:0 0 16px}
#screen-inner .arena-poster{display:block;position:relative;isolation:isolate;width:100%;margin:0;overflow:hidden;border:2px solid #dfb866;border-radius:20px;background:radial-gradient(ellipse at 20% 15%,#ffdc87,transparent 63%),radial-gradient(ellipse at 95% 15%,#c3a7ee,transparent 58%),linear-gradient(110deg,#fff1c8,#d6efff);box-shadow:0 5px 0 color-mix(in srgb,var(--arena-accent) 52%,#bdd3e8),0 8px 18px #18365924;transition:transform .15s,box-shadow .15s;text-decoration:none}
#screen-inner .arena-poster img{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:contain}
#screen-inner a.arena-poster:hover{transform:translateY(-2px);box-shadow:0 8px 0 #b09ad4,0 14px 25px #18365933}
#screen-inner a.arena-poster:focus-visible{outline:4px solid #3152b1;outline-offset:5px}
#screen-inner .arena-lock{position:absolute;right:12px;bottom:10px;padding:7px 12px;border:1px solid #b49ad5;border-radius:9px;background:#eee4ffed;color:#542883;font-size:12px;font-weight:850}
#screen-inner .arena-feature .catalog-tags{margin:0 0 8px}
#screen-inner .catalog-resource-grid>.arena-feature{margin-bottom:0;align-self:start}
#screen-inner .grammar-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1280px;gap:18px;align-items:start}
#screen-inner .grammar-activity-grid>.arena-feature{max-width:none}
#screen-inner .treasure-poster{aspect-ratio:3/1;container-type:inline-size;border-color:#cfb369;background:#123e43}
#screen-inner .treasure-landscape{position:absolute;inset:0;z-index:-2}
#screen-inner .treasure-landscape img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:50% 46%}
#screen-inner .treasure-poster:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#092e39ef 0%,#114b50cb 34%,#184e4b22 75%),linear-gradient(0deg,#082c38b0,transparent 40%)}
#screen-inner .treasure-character{position:absolute;right:9%;bottom:-29%;height:127%;width:35%;filter:drop-shadow(3px 5px 4px #093b3870);transition:transform .25s}
#screen-inner .treasure-character img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;object-position:center top}
#screen-inner .treasure-lettering{position:absolute;left:5%;top:9%;color:#ffe3a1;text-shadow:0 2px 0 #583818,0 4px 7px #082d35}
#screen-inner .treasure-lettering small{display:block;font:800 2.2cqw 'Trebuchet MS',sans-serif;letter-spacing:.24em;color:#a6ede1}
#screen-inner .treasure-lettering strong{display:block;font:900 6.3cqw/.95 Georgia,serif;letter-spacing:-.025em;background:linear-gradient(#fff4bf,#ffcb61);background-clip:text;-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 2px 0 #85501d);text-shadow:none;margin:1% 0 5%}
#screen-inner .treasure-lettering>span{display:block;font:800 1.9cqw 'Trebuchet MS',sans-serif;letter-spacing:.03em;color:#b8f6df}
#screen-inner .treasure-chapter{position:absolute;left:5%;bottom:6%;font:800 1.65cqw 'Trebuchet MS',sans-serif;color:#ffe4a2}
#screen-inner .treasure-enter{position:absolute;right:3%;bottom:6%;padding:1.4% 2.5%;border:1px solid #ebbd68;border-radius:9px;background:linear-gradient(#ffe6a0,#f5bb55);color:#164449;font:900 2cqw 'Trebuchet MS',sans-serif;box-shadow:0 2px 0 #98622f}
#screen-inner a.treasure-poster:hover .treasure-character{transform:translateY(-2%)}
@media(max-width:800px){#screen-inner .grammar-activity-grid{grid-template-columns:1fr;max-width:640px}}
@media(max-width:600px){
 #screen-inner .arena-section-heading{display:block;padding:10px 12px}
 #screen-inner .arena-section-heading>span{display:block;text-align:left;margin-top:6px;font-size:11px}
 #screen-inner .arena-section-heading small{font-size:10px}
 #screen-inner .arena-poster{border-radius:15px}
 #screen-inner .arena-lock{right:5px;bottom:5px;padding:4px 6px;font-size:9px}
}
@media(prefers-reduced-motion:reduce){#screen-inner .arena-poster,#screen-inner .treasure-character{transition:none}}

/* Full-width game posters and compact, expressive descriptions. */
#screen-inner .catalog-resource.poster-game-card:not(.flagship){display:flex;flex-direction:column;align-self:start;border-radius:19px;box-shadow:0 5px 0 color-mix(in srgb,var(--resource-color) 38%,#e5e9ee)}
#screen-inner .catalog-resource.poster-game-card .resource-art.game-poster{position:relative;isolation:isolate;container-type:inline-size;display:block;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:2.15;padding:0;border:0;border-bottom:3px solid color-mix(in srgb,var(--resource-color) 65%,#ffe29a);overflow:hidden;background:radial-gradient(ellipse at 15% 15%,#ffe1a5,transparent 62%),radial-gradient(ellipse at 85% 80%,color-mix(in srgb,var(--resource-color) 40%,#c3dafa),transparent 65%),linear-gradient(120deg,#dff6ed,#e4defa)}
#screen-inner .game-poster img{filter:none}
#screen-inner .game-poster.teenlife-poster .poster-fill{object-position:center top}
#screen-inner .teenlife-poster::after{content:none}
#screen-inner .teenlife-poster-label{position:absolute;z-index:2;bottom:10%;left:5%;right:5%;display:grid;gap:5px;color:#ffe6a0;text-shadow:0 2px 4px #102b51;font-family:'Trebuchet MS',sans-serif}
#screen-inner .teenlife-poster-label small{font-size:clamp(10px,2.8cqw,14px);font-weight:900;letter-spacing:.12em;color:#c1f7ee}
#screen-inner .teenlife-poster-label strong{font-size:clamp(18px,6.2cqw,30px);font-weight:900;line-height:1.04}
#screen-inner .studio-poster::after{content:none}
#screen-inner .studio-poster .teenlife-poster-label{bottom:18%}
#screen-inner .studio-poster .teenlife-poster-label strong{font-size:clamp(24px,8cqw,40px);color:#ffe392}
#screen-inner .teenlife-tags{gap:5px}
#screen-inner .teenlife-tags span{padding:4px 7px;font:800 11px/1.3 'Segoe UI',sans-serif;color:var(--resource-color);border-color:color-mix(in srgb,var(--resource-color) 25%,white)}
#screen-inner .game-poster .poster-scene,#screen-inner .game-poster .poster-fill{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#screen-inner .game-poster .poster-logo{position:absolute;inset:3% 4%;width:92%;height:94%;object-fit:contain;filter:drop-shadow(0 5px 3px #171a4e35)}
#screen-inner .poster-skybound .poster-logo{inset:7% 8%;width:84%;height:86%}
#screen-inner .poster-wordblast .poster-scene{filter:brightness(.8) saturate(.85)}
#screen-inner .poster-wordblast .poster-logo{inset:2% 1%;width:98%;height:96%}
#screen-inner .poster-vocabo::before,#screen-inner .poster-vocabasket::before{content:"";position:absolute;inset:-20%;z-index:-1;background:repeating-conic-gradient(from 8deg at 50% 50%,#fff8 0deg 2deg,transparent 2deg 27deg);transform:rotate(8deg)}
#screen-inner .game-poster .poster-wordmark{position:absolute;z-index:2;top:16%;right:6%;display:flex;flex-direction:column;font:1000 italic 8cqw/.94 'Trebuchet MS',sans-serif;letter-spacing:-.045em;color:#fff0aa;text-shadow:0 3px 0 #172c58,2px 0 0 #172c58,-2px 0 0 #172c58,0 5px 9px #18264e85;transform:rotate(-4deg)}
#screen-inner .poster-wordmark strong{font-size:1.37em;color:#83edff}
#screen-inner .poster-wordmark em{font-size:.76em;letter-spacing:.15em;color:#ffda70;text-align:center;margin-top:8px;font-style:normal}
#screen-inner .poster-wordracerquest .poster-scene{object-position:38% center;filter:hue-rotate(20deg)}
#screen-inner .poster-wordracerquest .poster-wordmark{top:12%;right:5%}
#screen-inner .poster-picword .poster-scene{filter:saturate(.8) brightness(.9)}
#screen-inner .poster-picword .poster-emblem{position:absolute;left:7%;top:16%;width:35%;height:72%;object-fit:contain;filter:drop-shadow(0 5px 4px #20204c70)}
#screen-inner .poster-picword .poster-wordmark{right:9%;top:19%;font-size:10cqw}
#screen-inner .poster-picword .poster-wordmark strong{color:#c9a1ff}
#screen-inner .poster-molipop .poster-scene{object-position:50% 32%}
#screen-inner .poster-molipop::after{content:"";position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#133e25b5);pointer-events:none}
#screen-inner .poster-molipop .poster-wordmark{display:block;top:auto;right:auto;left:6%;bottom:7%;font-size:11cqw;letter-spacing:-.035em;transform:rotate(-3deg);color:#fff6c9;text-shadow:0 3px 0 #214f2e,2px 0 #214f2e,-2px 0 #214f2e,0 5px 9px #122b2685}
#screen-inner .poster-molipop .poster-wordmark strong{font-size:1em;color:#d9f572}
#screen-inner .poster-wordmaster .poster-wordmark{inset:8% auto auto 50%;transform:translateX(-50%) rotate(-4deg);font-size:8.8cqw;text-align:center}
#screen-inner .poster-wordmaster .poster-wordmark strong{color:#97e3bb}
#screen-inner .poster-robot{position:absolute;left:-4%;bottom:-6%;width:43%;aspect-ratio:1;background-image:var(--robot-art);background-size:500% 200%;background-position:25% 0;background-repeat:no-repeat}
#screen-inner .poster-robot.purple{left:auto;right:-4%;background-position:25% 100%}
#screen-inner .poster-game-card .resource-copy{padding:10px 13px 11px;gap:6px;flex:none;font-family:'Trebuchet MS','Segoe UI',sans-serif}
#screen-inner .poster-game-card h3{font:900 italic clamp(21px,2vw,27px)/1.08 'Comic Sans MS','Trebuchet MS',sans-serif;letter-spacing:-.035em;color:var(--resource-color);text-shadow:1px 2px 0 #ffefb7;margin:0;padding:0 0 6px;position:relative}
#screen-inner .poster-game-card h3::after{content:"";position:absolute;bottom:0;left:0;width:65px;height:3px;border-radius:5px;background:linear-gradient(90deg,var(--resource-color),#ffc857)}
#screen-inner .poster-game-card p.game-invitation{color:var(--resource-color);font-size:14px;font-weight:900;line-height:1.35;margin:0}
#screen-inner .poster-game-card p.game-description{font-size:13px;font-weight:600;line-height:1.4;padding:6px 9px;background:#fff9;border-left:3px solid color-mix(in srgb,var(--resource-color) 65%,#f9c563);border-radius:0 10px 10px 0;color:#253f5d;margin:0;width:100%}
#screen-inner .game-features{display:flex;flex-wrap:wrap;gap:5px}
#screen-inner .game-features span{font-size:10px;font-weight:850;color:var(--resource-color);padding:4px 6px;border-radius:7px;background:#fff9;border:1px solid color-mix(in srgb,var(--resource-color) 25%,transparent)}
#screen-inner .poster-game-card .resource-action{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:2px 0 0;width:100%}
#screen-inner .poster-game-card .catalog-action{margin:0;min-height:39px;padding:9px 13px;font-size:12px;border-radius:10px}
#screen-inner .poster-game-card .play-mode{font-size:10px;padding:4px 7px;line-height:1.2;margin:0}
#screen-inner .poster-game-card .play-mode small{display:none}
#screen-inner .all-theme-games{margin:28px 0 8px}
#screen-inner .all-theme-games-heading{display:flex;align-items:center;justify-content:center;gap:22px;text-align:center;position:relative;padding:20px 14px 18px;margin:0 0 17px;border-radius:18px;background:radial-gradient(ellipse at 10% 30%,#b2e3e6,transparent 50%),radial-gradient(ellipse at 90% 80%,#e6c1f3,transparent 55%),linear-gradient(110deg,#dceaff,#fff0ba);border:1px solid #b8bedf;color:#294b85}
#screen-inner .all-theme-games-heading::before{content:"";position:absolute;top:0;left:4%;right:4%;height:4px;border-radius:8px;background:linear-gradient(90deg,#15a5a0,#6384d8,#bd5fd1,#f3a63f,#e76f85)}
#screen-inner .all-theme-eyebrow{font-size:10px;font-weight:900;letter-spacing:.12em;color:#79528a}
#screen-inner .all-theme-games-heading h2{font:900 28px/1.15 'Comic Sans MS','Trebuchet MS',sans-serif;margin:4px 0;color:#315689;text-shadow:1px 2px #fff4c3}
#screen-inner .all-theme-games-heading p{font-size:13px;font-weight:750;margin:0;color:#69518a}
#screen-inner .all-theme-spark{font-size:34px;color:#cd8b28;text-shadow:2px 2px #fff8c6;transform:rotate(12deg)}
@media(max-width:600px){
 #screen-inner .catalog-resource-grid:has(>.poster-game-card){grid-template-columns:1fr}
 #screen-inner .poster-game-card .resource-copy{padding:12px;gap:8px}
 #screen-inner .poster-game-card h3{font-size:25px}
 #screen-inner .all-theme-games-heading{gap:9px;padding:17px 10px}
 #screen-inner .all-theme-games-heading h2{font-size:23px}
 #screen-inner .all-theme-spark{font-size:23px}
 #screen-inner .all-theme-eyebrow{font-size:8px}
}

/* Teen Life: compact catalogue cards with readable descriptions and actions. */
/* Worksheet previews use the actual first page, aligned to its title. */
#screen-inner .resource-art[class*="art-revision-"]{padding:0;height:145px;overflow:hidden}
#screen-inner .resource-art[class*="art-revision-"] img{object-fit:cover;object-position:center top;filter:none}
@media(max-width:600px){
 #screen-inner .catalog-resource-grid:has(.resource-art[class*="art-revision-"]){grid-template-columns:1fr}
 #screen-inner .resource-art[class*="art-revision-"]{height:130px}
}
#screen-inner .poster-game-card:has(.teenlife-poster) .resource-art.game-poster{aspect-ratio:2}
#screen-inner .game-poster.teenlife-poster .poster-fill{object-fit:contain;object-position:center}
#screen-inner .game-poster.studio-poster .poster-fill{object-position:center top}
#screen-inner .game-poster.teenlife-poster img.poster-fill[src*="/teenlife-opinions-"]{object-position:center 45%}
#screen-inner .game-poster.teenlife-poster img.poster-fill[src*="/teenlife-quest-"]{object-position:center 20%}
#screen-inner .game-poster.teenlife-poster img.poster-fill[src*="/teenlife-frequency-"]{object-position:center top}
#screen-inner .poster-game-card:has(.teenlife-poster) .resource-copy{padding:8px 11px 9px;gap:4px}
#screen-inner .poster-game-card:has(.teenlife-poster) h3{font-size:clamp(20px,1.75vw,24px);line-height:1.12;padding-bottom:5px}
#screen-inner .poster-game-card:has(.teenlife-poster) p.game-description{padding:4px 8px}
#screen-inner .poster-game-card:has(.teenlife-poster) .teenlife-tags span{padding:3px 6px}
#screen-inner .teenlife-poster-label{gap:3px;bottom:9%}
#screen-inner .teenlife-poster-label strong{font-size:clamp(18px,5.6cqw,27px)}
#screen-inner .studio-poster .teenlife-poster-label{bottom:14%}
#screen-inner .studio-poster .teenlife-poster-label strong{font-size:clamp(23px,7cqw,34px)}
@media(max-width:600px){
 #screen-inner .poster-game-card:has(.teenlife-poster) .resource-art.game-poster{aspect-ratio:2}
 #screen-inner .poster-game-card:has(.teenlife-poster) h3{font-size:23px}
 #screen-inner .poster-game-card:has(.teenlife-poster) .catalog-action{min-height:42px}
}

/* Content types stay explicit in the latest feed and in skill resources. */
.content-type{display:inline-flex;align-items:center;align-self:flex-start;width:fit-content;max-width:100%;padding:5px 9px;border-radius:8px;background:#dceefa;border:1px solid #92bad4;color:#174e74;font:800 12px/1.3 'Trebuchet MS',sans-serif;overflow-wrap:anywhere}
.content-type.type-grammar{background:#f0defa;color:#653081;border-color:#c79ed9}
.content-type.type-test{background:#ffe7b3;color:#79410b;border-color:#dcb16c}
.content-type.type-pdf{background:#e0f0cc;color:#365917;border-color:#a9c887}
.content-type.type-skills{background:#d5f0e8;color:#116451;border-color:#8fbfae}
.content-type.type-resources{background:#dce5ff;color:#374c8a;border-color:#a7b6df}
#screen-inner .arena-feature>.content-type{margin:0 0 6px}

/* Each theme opens into four skill worlds, with its own PDFs and audio. */
#screen-inner .skill-worlds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:16px 0 22px}
#screen-inner .skill-tile{position:relative;isolation:isolate;min-width:0;min-height:254px;overflow:hidden;text-align:left;border:2px solid color-mix(in srgb,var(--skill-color) 45%,#ffe9bb);border-radius:21px;padding:0;background:#193947;color:#ffe9a3;box-shadow:0 5px color-mix(in srgb,var(--skill-color) 48%,#ffe9bb);cursor:pointer;transition:transform .18s}
#screen-inner .skill-tile:hover{transform:translateY(-3px)}
#screen-inner .skill-scene{position:absolute;inset:0;z-index:-2}
#screen-inner .skill-scene img{width:100%;height:100%;display:block;object-fit:cover;object-position:65% center}
#screen-inner .skill-tile::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#17344725,#173447b5 30%,#123344f5 72%)}
#screen-inner .skill-tile-copy{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:16px;height:100%;min-height:254px}
#screen-inner .skill-symbol{display:grid;place-items:center;align-self:flex-end;width:45px;height:45px;border-radius:14px;background:#fff0bedb;border:1px solid #ffe598;box-shadow:0 3px 10px #162f5155;font-size:27px;transform:rotate(6deg)}
#screen-inner .skill-tile strong{font:900 clamp(22px,2vw,29px)/1.12 var(--display);color:#ffe29d;text-shadow:0 2px #15304c}
#screen-inner .skill-tile strong small{font:800 14px/1.3 'Trebuchet MS',sans-serif;display:block;color:#c1f2e9;margin-top:4px}
#screen-inner .skill-promise{font:650 13px/1.45 'Trebuchet MS',sans-serif;color:#deedee;max-width:30ch}
#screen-inner .skill-status{font:800 10px/1.35 'Trebuchet MS',sans-serif;color:#ffdc94;margin-top:auto;padding-top:7px}
#screen-inner .skill-enter{display:flex;align-items:center;gap:14px;min-height:36px;padding:7px 10px;border-radius:9px;background:#ffdfa0;color:#343d56;font:850 12px/1.2 'Trebuchet MS',sans-serif;box-shadow:0 3px #c09a57}
#screen-inner .skills-return{border:1px solid #c28e8f;border-radius:11px;background:#ffe0d3;color:#9f2648;padding:10px 15px;min-height:42px;font:800 14px/1.3 'Trebuchet MS',sans-serif;cursor:pointer;margin:0 0 14px}
#screen-inner .skill-empty{display:flex;gap:18px;align-items:center;max-width:800px;margin:8px auto;padding:23px;border-radius:20px;border:2px solid color-mix(in srgb,var(--skill-color) 35%,#ffeac2);background:linear-gradient(110deg,color-mix(in srgb,var(--skill-color) 13%,#fff7df),#fff1cb);box-shadow:0 4px color-mix(in srgb,var(--skill-color) 24%,#ffeac2)}
#screen-inner .skill-empty>span{font-size:45px}#screen-inner .skill-empty h3{font:900 24px/1.2 var(--display);color:var(--skill-color);margin:0 0 8px}
#screen-inner .skill-empty p{font:650 15px/1.5 'Trebuchet MS',sans-serif;color:#2c4661;margin:0 0 10px}
#screen-inner .skill-empty strong{font:800 12px/1.3 'Trebuchet MS',sans-serif;color:var(--skill-color)}
#screen-inner .skill-resource-group{margin:18px 0 24px}#screen-inner .skill-group-title{font:900 21px/1.3 var(--display);color:#245873;margin:0 0 13px}
#screen-inner .skill-audio{min-width:0;border:1px solid #d5a4b9;border-radius:18px;background:linear-gradient(135deg,#fce5e7,#eee6fb);padding:16px;box-shadow:0 4px #dab9cc;display:flex;gap:12px;color:#344660}
#screen-inner .skill-audio>div{flex:1;min-width:0}#screen-inner .skill-audio-icon{font-size:25px}
#screen-inner .skill-audio h3{font:900 20px/1.3 var(--display);color:#98386b;margin:9px 0}#screen-inner .skill-audio p{font:600 13px/1.5 'Trebuchet MS',sans-serif;margin:0 0 10px}
#screen-inner .skill-audio audio{display:block;width:100%;min-width:0;margin:12px 0}#screen-inner .skill-download{display:inline-block;color:#7b2651;font:800 13px/1.3 'Trebuchet MS',sans-serif;padding:7px 0;text-underline-offset:3px}
@media(max-width:1000px){#screen-inner .skill-worlds{grid-template-columns:repeat(2,minmax(0,1fr))}#screen-inner .skill-tile,#screen-inner .skill-tile-copy{min-height:215px}#screen-inner .skill-symbol{width:38px;height:38px;font-size:24px}}
@media(max-width:600px){#screen-inner .skill-worlds{gap:12px;margin-top:12px}#screen-inner .skill-tile{border-radius:16px}#screen-inner .skill-tile-copy{padding:12px;gap:6px}#screen-inner .skill-tile strong{font-size:23px}#screen-inner .skill-tile strong small{font-size:12px}#screen-inner .skill-promise{font-size:12px}#screen-inner .skill-status{font-size:10px}#screen-inner .skill-enter{font-size:11px;padding:7px 8px;gap:8px}#screen-inner .skill-empty{padding:16px;gap:12px;align-items:flex-start}#screen-inner .skill-empty>span{font-size:31px}#screen-inner .skill-empty h3{font-size:21px}#screen-inner .skill-empty p{font-size:14px}#screen-inner .skill-resource-group .catalog-resource-grid{grid-template-columns:1fr}}
@media(max-width:359px){#screen-inner .skill-tile-copy{padding:10px}#screen-inner .skill-tile strong{font-size:20px}#screen-inner .skill-enter{gap:5px;font-size:10px}}
@media(prefers-reduced-motion:reduce){#screen-inner .skill-tile{transition:none}}







/* Composed artwork owns its lettering. Never crop it or overlay faces. */
#screen-inner .poster-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
#screen-inner .hub-hero{min-height:104px;display:flex;align-items:center;gap:0;background:radial-gradient(ellipse at 20% 15%,#fff3bc,transparent 70%),linear-gradient(105deg,#e2f0ed,#e7eafa 55%,#c1e1e0);border-color:#9fbfc9;box-shadow:0 3px #bccdd5;margin-bottom:12px;border-radius:18px}
#screen-inner .hub-hero::before,#screen-inner .hub-hero::after{display:none}
#screen-inner .hub-copy{position:relative;width:65%;max-width:65%;padding:12px 18px;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
#screen-inner .hub-hero h2{font:900 clamp(20px,1.8vw,25px)/1.15 var(--display);margin:3px 0 5px;letter-spacing:-.025em;color:#a72b40;text-shadow:0 1px #fff4d2;-webkit-text-stroke:0;filter:none}
#screen-inner .hub-hero .tw-0{color:#a62d3e}#screen-inner .hub-hero .tw-1{color:#145f7c}#screen-inner .hub-hero .tw-2{color:#79408c}#screen-inner .hub-hero .tw-3{color:#126955}
#screen-inner .hub-hero h2 small{color:#2b5573;font:750 italic 11px/1.25 'Trebuchet MS',sans-serif;margin-top:3px;letter-spacing:0}
#screen-inner .hub-hero .eyebrow{color:#944239;font-size:10px;margin:0 0 4px;letter-spacing:.03em;text-shadow:none}
#screen-inner .hub-intro{max-width:none;color:#274a60;font:650 12px/1.35 'Trebuchet MS',sans-serif;text-shadow:none;margin:0}
#screen-inner .hero-sparks{display:none}
#screen-inner .hub-illustration{position:absolute;inset:0 0 0 auto;z-index:0;width:34%;height:100%;min-height:0;mask-image:linear-gradient(90deg,transparent,#000 12%);pointer-events:none}
#screen-inner .hub-illustration img{object-fit:cover;object-position:center 40%;width:100%;height:100%;max-height:none;filter:none}
#screen-inner .section-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:12px;max-width:min(100%,calc((100svh - 400px)*3));margin:0 auto}
#screen-inner .section-grid .section-card,
#screen-inner .section-grid>.section-card:last-child:nth-child(odd),
#screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3){display:flex;flex-direction:column;align-items:stretch;flex:none;width:calc((100% - 24px)/3);grid-column:auto;min-height:0;padding:0;gap:0;border-radius:16px;container-type:normal;background:linear-gradient(105deg,color-mix(in srgb,var(--section-color) 12%,#fff3cd),#ffedbd);box-shadow:0 3px color-mix(in srgb,var(--section-color) 42%,#e3d4b2)}
#screen-inner .section-grid:not(:has(>.section-card:nth-child(5))){max-width:min(100%,calc((100svh - 400px)*2))}
#screen-inner .section-grid:not(:has(>.section-card:nth-child(5)))>.section-card{width:calc((100% - 12px)/2)}
#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child){max-width:min(100%,calc((100svh - 400px)*3))}
#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child)>.section-card{width:calc((100% - 24px)/3)}
#screen-inner .section-grid .section-card::before{display:none}
#screen-inner .section-grid .section-card .section-visual{display:block;position:relative;inset:auto;z-index:auto;width:100%;height:auto;min-height:0;aspect-ratio:2/1;overflow:hidden;mask-image:none;background:none}
#screen-inner .section-grid .section-card .section-visual img,
#screen-inner .section-grid>.section-card:last-child:nth-child(odd) .section-visual img{display:block;width:100%;height:100%;max-height:none;aspect-ratio:2/1;object-fit:contain;object-position:center;border-radius:0}
#screen-inner .section-grid .section-card .section-copy,
#screen-inner .section-grid>.section-card:last-child:nth-child(odd) .section-copy,
#screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3) .section-copy{display:flex;position:relative;flex:1;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:none;min-height:36px;padding:4px 9px;gap:5px;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
#screen-inner .section-grid .section-card .section-enter{display:flex;align-items:center;justify-content:center;gap:16px;min-height:27px;margin:0;padding:3px 10px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#812d3d;font:900 12px/1.3 'Trebuchet MS',sans-serif;text-shadow:none}
#screen-inner .section-card:hover .section-enter{background:#fff3cf}
#screen-inner .section-card:focus-visible,#screen-inner .skill-tile:focus-visible{outline:3px solid #bd244c;outline-offset:4px}
#screen-inner .section-grid .section-copy strong{font:900 20px/1.2 var(--display);color:var(--section-color);text-shadow:none;-webkit-text-stroke:0;filter:none}
#screen-inner .section-copy strong small{font:750 italic 11px/1.3 'Trebuchet MS',sans-serif;color:#36536c}
#screen-inner .hub-bottom{margin-top:12px;gap:8px}
#screen-inner .theme-shortcut{font-size:11px;padding:7px 11px;min-height:32px}
#screen-inner .hub-bottom>span{font-size:10px}
/* Four skills share the same full image and compact action footer. */
#screen-inner .skill-worlds{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
#screen-inner .skill-tile{display:flex;flex-direction:column;min-height:0;border-radius:16px;background:linear-gradient(100deg,color-mix(in srgb,var(--skill-color) 12%,#fff3cd),#ffedbd);box-shadow:0 3px color-mix(in srgb,var(--skill-color) 42%,#e3d4b2)}
#screen-inner .skill-tile::after{display:none}
#screen-inner .skill-scene{position:relative;inset:auto;z-index:auto;display:block;aspect-ratio:2/1;width:100%}
#screen-inner .skill-scene img{width:100%;height:100%;display:block;object-fit:contain;object-position:center}
#screen-inner .skill-tile-copy{position:relative;min-height:36px;height:auto;padding:4px 8px;align-items:center;justify-content:center;gap:0}
#screen-inner .skill-enter{font:900 12px/1.3 'Trebuchet MS',sans-serif;min-height:27px;padding:3px 8px;border:0;border-radius:8px;background:none;color:#812d3d;box-shadow:none;gap:12px}
#screen-inner .skill-tile:hover .skill-enter{background:#fff3cf}
#screen-inner .skill-group-title{color:#a52d40}
/* Theme artwork stays unobstructed; English names use English uppercase. */
#screen-inner .catalog-theme-grid{gap:11px}
#screen-inner .theme-scene,#screen-inner .theme-scene>img{aspect-ratio:16/9}
#screen-inner .theme-scene>img{object-fit:cover;object-position:center 38%}
#screen-inner .catalog-theme-copy{padding:8px 10px;gap:4px}
#screen-inner .catalog-theme-copy strong{font:900 clamp(18px,1.6vw,22px)/1.16 var(--display);letter-spacing:.015em;color:color-mix(in srgb,var(--resource-color) 80%,#092855)}
#screen-inner .catalog-theme-copy small{font-size:9px}
#screen-inner .catalog-theme-copy .theme-cta{font-size:10px;padding-top:2px}
@media(max-width:1000px){
 #screen-inner .section-grid,#screen-inner .section-grid:not(:has(>.section-card:nth-child(5))),#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child){max-width:100%}
 #screen-inner .section-grid .section-card,#screen-inner .section-grid>.section-card:last-child:nth-child(odd),#screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3),#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child)>.section-card{width:calc((100% - 12px)/2)}
 #screen-inner .skill-worlds{grid-template-columns:repeat(2,minmax(0,1fr))}
 #screen-inner .hub-hero{min-height:104px}
 #screen-inner .hub-hero h2{font-size:22px}
 #screen-inner .catalog-theme-copy strong{font-size:19px}
}
@media(max-width:700px){
 #screen-inner .hub-hero{min-height:130px;flex-direction:row;align-items:center}
 #screen-inner .hub-copy{width:65%;max-width:65%;padding:11px 12px;margin:0;border:0;background:none}
 #screen-inner .hub-hero h2{font-size:19px}
 #screen-inner .hub-hero h2 small{font-size:10px}
 #screen-inner .hub-hero .eyebrow{font-size:9px}
 #screen-inner .hub-intro{font-size:10px;line-height:1.3}
 #screen-inner .hub-illustration{width:34%;height:100%;min-height:0;inset:0 0 0 auto;position:absolute;mask-image:linear-gradient(90deg,transparent,#000 12%)}
 #screen-inner .hub-illustration img{object-fit:cover;object-position:61% center}
 #screen-inner .section-grid .section-card,#screen-inner .section-grid>.section-card:last-child:nth-child(odd),#screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3),#screen-inner .section-grid:not(:has(>.section-card:nth-child(5)))>.section-card,#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child)>.section-card{width:100%;min-height:0}
 #screen-inner .section-grid .section-card .section-copy,#screen-inner .section-grid>.section-card:last-child:nth-child(odd) .section-copy{min-height:38px;padding:5px 8px}
 #screen-inner .section-grid .section-card .section-enter{font-size:12px}
 #screen-inner .skill-tile,#screen-inner .skill-tile-copy{min-height:0}
 #screen-inner .skill-tile-copy{min-height:36px;padding:5px 4px}
 #screen-inner .skill-enter{font-size:10px;padding:3px 4px;gap:7px;min-height:26px}
 #screen-inner .catalog-theme-copy strong{font-size:17px;letter-spacing:0}
 #screen-inner .catalog-theme-copy{padding:8px;gap:5px}
 #screen-inner .catalog-theme-copy small{font-size:8px}
 #screen-inner .theme-scene,#screen-inner .theme-scene>img{aspect-ratio:16/9}
 #screen-inner .hub-bottom{align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){#screen-inner .section-card,#screen-inner .skill-tile{transition:none}}

/* Colour belongs to the action strip; poster artwork remains fully visible. */
body:not([data-class-theme="home"]){background:radial-gradient(ellipse 65% 65% at 0% 5%,#ffe5adbf,transparent 78%),radial-gradient(ellipse 65% 60% at 100% 15%,#b8e6dcad,transparent 78%),radial-gradient(ellipse 55% 65% at 80% 100%,#d8cef3a3,transparent 78%),linear-gradient(135deg,#fff6df,#eef6ee 55%,#f7eddf);background-attachment:fixed}
#screen-inner .hub-hero{margin-bottom:20px}
#screen-inner .hub-hero[data-hero-art="theme-personal"] .hub-illustration img,#screen-inner .hub-hero[data-hero-art="theme-kitchen"] .hub-illustration img{object-position:center 15%}
#screen-inner .section-grid{gap:22px;max-width:min(100%,calc((100svh - 430px)*3))}
#screen-inner .section-card{--footer-start:color-mix(in srgb,var(--section-color) 85%,#122c46);--footer-end:var(--section-color);--footer-ink:#fff0bd}
#screen-inner .section-grid .section-card,
#screen-inner .section-grid>.section-card:last-child:nth-child(odd),
#screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3){width:calc((100% - 44px)/3)}
#screen-inner .section-grid:not(:has(>.section-card:nth-child(5))){max-width:min(100%,calc((100svh - 430px)*2))}
#screen-inner .section-grid:not(:has(>.section-card:nth-child(5)))>.section-card{width:calc((100% - 22px)/2)}
#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child){max-width:min(100%,1100px)}
#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child)>.section-card{width:calc((100% - 44px)/3)}
#screen-inner .section-grid:not(:has(>.section-card:nth-child(3))){max-width:min(100%,780px)}
#screen-inner .section-grid .section-card[data-section-kind="vocabulary"]{--footer-start:#155b86;--footer-end:#167d8d}
#screen-inner .section-grid .section-card[data-section-kind="grammar"]{--footer-start:#633294;--footer-end:#8d3da0}
#screen-inner .section-grid .section-card[data-section-kind="tests"]{--footer-start:#f2b353;--footer-end:#ffd684;--footer-ink:#793026}
#screen-inner .section-grid .section-card[data-section-kind="skills"]{--footer-start:#08665f;--footer-end:#168275}
#screen-inner .section-grid .section-card[data-section-kind="resources"]{--footer-start:#a7343e;--footer-end:#b84939}
#screen-inner .section-grid .section-card .section-copy,
#screen-inner .section-grid>.section-card:last-child:nth-child(odd) .section-copy,
#screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3) .section-copy{min-height:40px;padding:4px 13px;background:linear-gradient(105deg,var(--footer-start),var(--footer-end));border-top:1px solid #ffe1a078}
#screen-inner .section-grid .section-card .section-enter{width:100%;justify-content:space-between;align-self:stretch;min-height:30px;padding:2px 0;background:none;color:var(--footer-ink);font-size:13px;letter-spacing:.015em}
#screen-inner .section-enter b,#screen-inner .skill-enter b{display:grid;place-items:center;min-width:25px;min-height:25px;border:1px solid currentColor;border-radius:50%;font-size:17px;line-height:1}
#screen-inner .section-grid .section-card:hover .section-copy{filter:brightness(1.08)}
#screen-inner .section-grid .section-copy strong,#screen-inner .section-grid .section-copy strong small{color:var(--footer-ink)}
#screen-inner .hub-bottom{margin-top:20px;gap:14px}
#screen-inner .hub-bottom>span{color:#514369;font-size:11px}
#screen-inner .theme-shortcut{display:inline-flex;align-items:center;gap:7px;border:1px solid #71419d;border-bottom:3px solid #4b287a;border-radius:12px;background:linear-gradient(110deg,#4e4597,#813f99);color:#ffedb2;font:900 13px/1.25 'Trebuchet MS',sans-serif;padding:10px 15px;min-height:40px;box-shadow:0 4px 12px #69428824}
#screen-inner .theme-shortcut span{font-size:10px;color:#eee0ff}
#screen-inner .theme-shortcut:hover{background:linear-gradient(110deg,#633799,#963e86);transform:translateY(-1px)}
#screen-inner .theme-shortcut:focus-visible{outline:3px solid #ad2845;outline-offset:4px}
#screen-inner .skill-worlds{gap:22px;margin-top:20px}
#screen-inner .skill-tile-copy{min-height:40px;padding:5px 11px;background:linear-gradient(110deg,color-mix(in srgb,var(--skill-color) 75%,#162946),color-mix(in srgb,var(--skill-color) 90%,#162946));border-top:1px solid #ffe1a078}
#screen-inner .skill-enter{width:100%;justify-content:space-between;background:none;color:#fff0bd;min-height:29px;font-size:13px}
#screen-inner .skill-tile:hover .skill-enter{background:none}
#screen-inner .skill-tile:hover .skill-tile-copy{filter:brightness(1.08)}
#screen-inner .catalog-theme-grid{gap:20px}
#screen-inner .catalog-theme-copy strong{color:var(--resource-color);text-shadow:0 1px #fff2d1}
/* Grade 8 starts with balanced unit cards; all categories live inside a unit. */
#screen-inner .unit-first-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:28px;max-width:1180px;margin:26px auto 0}
#screen-inner .unit-first-grid .unit-card{flex:0 1 calc((100% - 56px)/3);max-width:375px;min-width:0;padding:0;gap:0;align-items:stretch;border-radius:19px;border:2px solid color-mix(in srgb,var(--resource-color) 55%,#e3ebcd);box-shadow:0 5px color-mix(in srgb,var(--resource-color) 30%,#e6d6b2)}
#screen-inner .unit-card .theme-scene{width:100%;aspect-ratio:16/9}
#screen-inner .unit-card .catalog-theme-copy{padding:13px 16px 12px;gap:7px;flex:1;background:linear-gradient(115deg,color-mix(in srgb,var(--resource-color) 16%,#fff1cd),#fff1d8)}
#screen-inner .unit-card .unit-label{align-self:flex-start;font:900 14px/1.2 'Trebuchet MS',sans-serif;letter-spacing:.08em;padding:5px 9px;border-radius:8px;background:color-mix(in srgb,var(--resource-color) 75%,#142b45);color:#fff0bd}
#screen-inner .unit-card .catalog-theme-copy strong{font:900 clamp(21px,1.8vw,26px)/1.16 var(--display);letter-spacing:.015em;color:color-mix(in srgb,var(--resource-color) 88%,#142b45)}
#screen-inner .unit-card .catalog-theme-copy .theme-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:auto;padding-top:9px;color:color-mix(in srgb,var(--resource-color) 85%,#142b45);font:900 12px/1.25 'Trebuchet MS',sans-serif}
#screen-inner .unit-card .theme-cta b{font-size:21px}
@media(min-width:1001px) and (max-height:700px){
 #screen-inner{padding-bottom:16px}
 #screen-inner .hub-hero{min-height:80px;margin-bottom:16px}
 #screen-inner .hub-copy{padding-top:9px;padding-bottom:9px}
 #screen-inner .hub-hero h2{font-size:21px}
 #screen-inner .section-grid:has(>.section-card:nth-child(4)){max-width:min(100%,calc((100svh - 390px)*3))}
 #screen-inner .section-grid:has(>.section-card:nth-child(4)):not(:has(>.section-card:nth-child(5))){max-width:min(100%,calc((100svh - 390px)*2))}
 #screen-inner .hub-bottom{margin-top:16px}
}
@media(max-width:1000px){
 #screen-inner .section-grid,#screen-inner .section-grid:not(:has(>.section-card:nth-child(5))),#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child){max-width:100%;gap:20px}
 #screen-inner .section-grid .section-card,#screen-inner .section-grid>.section-card:last-child:nth-child(odd),#screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3),#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child)>.section-card,#screen-inner .section-grid:not(:has(>.section-card:nth-child(5)))>.section-card{width:calc((100% - 20px)/2)}
 #screen-inner .unit-first-grid{gap:22px;margin-top:20px}
 #screen-inner .unit-first-grid .unit-card{flex-basis:calc((100% - 22px)/2)}
 #screen-inner .skill-worlds{gap:20px}
}
@media(max-width:700px){
 #screen-inner .section-grid{gap:18px}
 #screen-inner .section-grid .section-card,#screen-inner .section-grid>.section-card:last-child:nth-child(odd),#screen-inner .section-grid:has(>.section-card:nth-child(5))>.section-card:nth-child(n+3),#screen-inner .section-grid:not(:has(>.section-card:nth-child(5)))>.section-card,#screen-inner .section-grid:has(>.section-card:nth-child(3):last-child)>.section-card{width:100%}
 #screen-inner .section-grid .section-card .section-enter{font-size:13px}
 #screen-inner .hub-bottom{justify-content:center;gap:14px}
 #screen-inner .theme-shortcut{flex-wrap:wrap;justify-content:center;max-width:100%;font-size:12px;padding:10px 12px}
 #screen-inner .skill-worlds{gap:16px}
 #screen-inner .skill-tile-copy{padding:5px 6px}
 #screen-inner .skill-enter{font-size:10px;gap:5px}
 #screen-inner .unit-first-grid{gap:22px}
 #screen-inner .unit-first-grid .unit-card{flex-basis:100%;max-width:360px}
 #screen-inner .unit-card .catalog-theme-copy strong{font-size:23px}
}
@media(prefers-reduced-motion:reduce){#screen-inner .theme-shortcut:hover{transform:none}}
/* Four section choices use the available width instead of a height-based box. */
body:not([data-class-theme="home"]):has(#screen-inner .section-grid>.section-card:nth-child(4):last-child) .wrap{max-width:1660px}
#screen-inner:has(.section-grid>.section-card:nth-child(4):last-child){max-width:100%}
#screen-inner .section-grid:has(>.section-card:nth-child(4):last-child):not(:has(>.section-card:nth-child(5))){max-width:100%;width:100%;gap:24px}
@media(min-width:1100px){
 #screen-inner .section-grid:has(>.section-card:nth-child(4):last-child)>.section-card:nth-child(n){width:calc((100% - 72px)/4)}
}
@media(min-width:701px) and (max-width:1099px){
 #screen-inner .section-grid:has(>.section-card:nth-child(4):last-child)>.section-card:nth-child(n){width:calc((100% - 24px)/2)}
}
@media(max-width:700px){
 #screen-inner .section-grid:has(>.section-card:nth-child(4):last-child)>.section-card:nth-child(n){width:100%}
}
#screen-inner .resource-action{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.catalog-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border:1px solid #2e8580;border-radius:11px;background:linear-gradient(110deg,#d1eee4,#c8e7f1);color:#125951!important;font:800 14px/1.25 system-ui,sans-serif;text-decoration:none;cursor:pointer;box-shadow:0 3px #91bfb8}
.catalog-download:hover{background:#b5e7d8}.catalog-download:focus-visible{outline:3px solid #ab2947;outline-offset:3px}.catalog-download[aria-busy="true"]{opacity:.7;cursor:progress}
#screen-inner .arena-download{display:flex;justify-content:flex-end;padding:9px 0 2px}
.portal-download-notice{position:fixed;z-index:10000;right:18px;bottom:18px;max-width:min(420px,calc(100vw - 36px));padding:13px 16px;background:#173c54;color:#ffedb4;border:2px solid #e6b958;border-radius:12px;box-shadow:0 5px 22px #142a4a40;font:700 14px/1.45 system-ui,sans-serif}.portal-download-notice[hidden]{display:none}.portal-download-notice button{margin-left:12px;padding:4px 8px;background:transparent;border:1px solid currentColor;border-radius:6px;color:inherit;cursor:pointer}

/* Five theme assessment categories: clear artwork, titles beneath the image. */
body:has(.test-category-grid){height:auto!important;min-height:100vh}
#screen-inner .section-grid.test-category-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:100%!important;max-width:none!important;gap:20px;margin:22px 0 28px}
#screen-inner .test-category-grid>.section-card.test-category{grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0;min-height:0;max-height:none;display:flex;flex-direction:column;position:relative;padding:0;overflow:hidden;text-align:left;border:2px solid color-mix(in srgb,var(--section-color) 50%,white);border-radius:20px;background:color-mix(in srgb,var(--section-color) 6%,#fffdf5);box-shadow:0 5px 0 color-mix(in srgb,var(--section-color) 35%,white)}
#screen-inner .test-category-grid>.test-category:before,#screen-inner .test-category-grid>.test-category:after{display:none}
#screen-inner .test-category .test-category-art{display:block;position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;background:#f3ead2}
#screen-inner .test-category-art img{display:block;width:100%;height:100%;object-fit:cover;filter:none;opacity:1}
#screen-inner .test-category-copy{position:relative;display:flex;flex-direction:column;gap:7px;padding:15px;width:100%;box-sizing:border-box;flex:1}
#screen-inner .test-category-copy>strong{font-size:clamp(18px,1.6vw,25px);line-height:1.25;color:var(--section-color);text-shadow:none;overflow-wrap:anywhere}
#screen-inner .test-category-copy>small{color:#3d5266;font:600 12px/1.4 system-ui}
#screen-inner .test-category-status{font:600 12px/1.5 system-ui;color:#455668;margin:2px 0 8px}
#screen-inner .section-grid .test-category .section-enter{display:flex;box-sizing:border-box;width:100%;min-height:42px;padding:9px 11px;margin-top:auto;background:var(--section-color);color:#fff!important;border-radius:11px;font:750 13px/1.3 system-ui;text-shadow:none;box-shadow:none}
#screen-inner .test-category:focus-visible{outline:3px solid #be3145;outline-offset:5px}
#screen-inner .resource-action audio{width:100%;min-width:0;max-width:100%;margin:6px 0}
@media(max-width:1100px){#screen-inner .section-grid.test-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px}}
@media(max-width:650px){#screen-inner .section-grid.test-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}#screen-inner .test-category-copy{padding:12px}#screen-inner .test-category-copy>strong{font-size:18px}}
@media(max-width:350px){#screen-inner .section-grid.test-category-grid{grid-template-columns:1fr!important}}
