:root{font:17px/1.5 ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:#19233d;background:#f8f5ef;font-synthesis:none;--accent:#7354ad;--soft:#eee7f8}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button,select{min-height:48px;border:2px solid #b0b5c1;border-radius:13px;padding:10px 16px;background:white;color:#19233d}button{cursor:pointer;font-weight:700}button:hover{border-color:var(--accent);background:var(--soft)}button:focus-visible,select:focus-visible,a:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid #1743b2;outline-offset:4px}button[aria-disabled="true"],button:disabled{cursor:default}a{color:#19429d}h1,h2,p{margin:0}h1{font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.08;letter-spacing:-.035em}h2{font-size:clamp(1.35rem,3vw,1.85rem);line-height:1.25}p+p{margin-top:10px}[hidden]{display:none!important}.game-bar{min-height:72px;padding:12px 24px;border-bottom:1px solid #e0dbd6;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px}.home-link{font-size:.9rem;font-weight:700;min-height:44px;display:flex;align-items:center}.brand-tag{color:#555e71;font-size:.85rem}.cp-profile-slot{flex-shrink:0}main{width:min(100% - 40px,1040px);margin:28px auto 48px}section.panel{padding:clamp(20px,4vw,40px);background:white;border:1px solid #e1dcd8;border-radius:25px;box-shadow:0 8px 0 #e9e2d933}.welcome{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:36px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;font-weight:800;color:#56516a;margin-bottom:12px}.intro{font-size:1.15rem;margin:18px 0;color:#455069;max-width:48ch}.mini-art{width:100%;max-width:380px;height:auto;display:block;margin:22px auto}.setup{padding:24px;background:var(--soft);border-radius:20px;display:grid;gap:12px}.setup label{font-weight:700;font-size:.9rem}.setup select{width:100%}.primary{background:#2457db;color:white;border-color:#2457db}.primary:hover{background:#1746b7;color:white;border-color:#1746b7}.small{font-size:.86rem;color:#555e71}.setup .small{line-height:1.5}.setup .primary{margin-top:8px}.lesson-header,.round-head{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:24px}.word-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}.word-list li{background:var(--soft);border-radius:15px;padding:17px 20px;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}.translation{font-size:1.32rem;font-weight:800}.english{color:#455069;font-size:.92rem}.actions,.toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.toolbar{border-top:1px solid #e4e6ec;padding-top:18px}.progress{font-size:.86rem;color:#5b536d;margin-bottom:8px}.lesson-note{max-width:75ch;padding:15px 18px;background:#fff6db;border-radius:12px}.mechanic{min-height:180px}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.choice{width:100%;min-height:60px;overflow-wrap:anywhere;position:relative}.choice.selected,.choice[aria-pressed="true"]{background:#e7edff;border-color:#2457db}.choice.matched{background:#e3f2ea;border-color:#37765e}.pair-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pair-columns>div{display:grid;gap:10px}.prompt{font-size:1.2rem;font-weight:700;margin-bottom:18px}.mechanic-status{min-height:1.5em;margin:12px 0;color:#455069}.feedback{min-height:1.8em;font-weight:700;margin-top:18px;color:#264e40}.hint-text{padding:14px 18px;border-left:4px solid #d9a22b;background:#fff6db;white-space:pre-line;margin-top:16px}.help-box{background:#fff6db;border:2px solid #d4af55;border-radius:20px;padding:24px;margin-top:20px}.help-box h2{margin-bottom:14px}.help-box button{margin-top:18px}.ending .word-list{margin-top:24px}.static-guide{max-width:1000px;padding:24px;margin:auto;border-top:1px solid #ded9d4;color:#50596a;font-size:.92rem}.static-guide h2{font-size:1.15rem;margin-bottom:12px}.static-guide a{display:inline-flex;min-height:44px;align-items:center}noscript{display:block;max-width:1000px;margin:auto;padding:20px}.sequence{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;margin-bottom:16px}.sequence span{padding:8px 12px;border-radius:10px;background:var(--soft)}.swatch{display:inline-block;width:28px;height:28px;border:2px solid #677088;border-radius:8px;vertical-align:middle;margin-right:10px}.body-map{display:grid;grid-template-columns:150px 1fr;gap:18px}.body-map svg{width:100%;max-height:290px}.memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.memory-grid .choice{min-height:90px}.basket{padding:16px;border:2px dashed #c59d68;border-radius:14px;margin:16px 0}.mechanic ul{padding-left:24px}.mechanic>button{margin:12px 12px 0 0}@media(max-width:650px){.game-bar{padding:8px 14px;gap:8px;flex-wrap:wrap}.brand-tag{display:none}main{width:calc(100% - 24px);margin:16px auto 32px}.welcome{grid-template-columns:1fr;gap:16px}.welcome .mini-art{max-width:220px;margin:16px auto}.setup{padding:20px}.word-list{gap:10px}.word-list li{padding:14px}.translation{font-size:1.15rem}.panel{border-radius:20px}.lesson-header,.round-head{display:block}.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pair-columns{gap:10px}.choice{font-size:1rem;padding:10px 8px}.body-map{grid-template-columns:90px 1fr;gap:10px}.actions button{flex:1 1 140px}.toolbar button{flex:1 1 auto}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.column-label{font-size:.85rem;font-weight:800;color:#55536a}.colour-swatch{display:block;height:44px;border:2px solid #697287;border-radius:9px;margin-bottom:9px}.swatch-red{background:#DB403F}.swatch-blue{background:#2F67CF}.swatch-yellow{background:#F6D346}.swatch-green{background:#32985C}.swatch-orange{background:#EF8A2D}.swatch-purple{background:#8853AE}.swatch-pink{background:#EE91B3}.swatch-black{background:#262832}.swatch-white{background:#FFFFFF}.swatch-brown{background:#915E3D}.day-train{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0!important;min-height:44px;margin:12px 0}.day-train li{background:#e5eefb;border:2px solid #7e9aba;border-radius:9px;padding:6px 12px}.month-calendar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;padding:0!important;margin:16px 0}.month-calendar li{border:2px solid #b5c5ad;background:#f1f6ed;border-radius:12px;padding:12px;display:grid;gap:6px}.shopping-list{background:#fff5dc;border-radius:12px;padding:15px 15px 15px 40px!important;font-size:1.15rem}.family-clue{background:#f1ebf8;padding:18px;border-radius:12px;margin-bottom:18px;font-size:1.2rem;font-weight:700}.classroom-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.classroom-item{min-height:100px;border:2px solid #c4c9b9;border-bottom:7px solid #a1815c;border-radius:12px;padding:15px;display:flex;flex-direction:column;justify-content:center;background:#f5f6ed}.classroom-item.missing{background:#f3f4f7;border-style:dashed}.study-actions{display:flex;gap:12px;margin:16px 0}.study-actions button{width:auto}.body-map{display:grid;grid-template-columns:180px 1fr;gap:24px;align-items:center}.body-silhouette{width:180px;height:310px}.body-labels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}@media(max-width:650px){.body-map{grid-template-columns:100px 1fr;gap:12px}.body-silhouette{width:100px;height:240px}.body-labels{grid-template-columns:1fr}.classroom-item{padding:12px}.month-calendar{gap:8px}.month-calendar li{padding:10px}} 
.welcome>*{min-width:0}.setup select{min-width:0;max-width:100%}.recovery{padding:20px}
.mechanic-status:empty,.feedback:empty,.day-train:empty{display:none}.actions:has(>#next[hidden]){display:none}.round-head{margin-bottom:16px}.word-list li{overflow-wrap:normal}.word-list .translation{word-break:normal;hyphens:none}@media(max-width:650px){.word-list [data-long="true"]{grid-column:1/-1}.mechanic .prompt{font-size:1.08rem}.toolbar{gap:8px}.toolbar button{padding:9px 12px}}
@media(min-width:360px) and (max-width:650px){.body-map{grid-template-columns:125px minmax(0,1fr);gap:10px}.body-silhouette{width:125px;height:285px}}
#mechanic .tiles>.long-word{grid-column:1/-1;overflow-wrap:normal;word-break:normal}
.body-map-caption{margin-top:12px;font-size:.95rem;color:#455069}
@media(max-height:450px) and (min-width:650px){main{width:calc(100% - 24px);margin:10px auto 24px}section.panel{padding:16px 20px}.game-bar{min-height:52px;padding:4px 16px}.round-head{margin-bottom:8px}.round-head h2{font-size:1.25rem}.progress{margin-bottom:2px}.mechanic .prompt{font-size:1rem;margin-bottom:10px}.mechanic>.tiles,.memory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.month-calendar{grid-template-columns:repeat(4,minmax(0,1fr));margin:10px 0}.month-calendar li{padding:8px}.classroom-shelf{grid-template-columns:repeat(4,minmax(0,1fr))}.classroom-item{min-height:80px;padding:10px}.shopping-list{display:flex;gap:36px;margin:8px 0;padding-top:10px!important;padding-bottom:10px!important}.family-clue{padding:10px;margin-bottom:10px;font-size:1.05rem}.body-map{grid-template-columns:90px 1fr;gap:18px}.body-silhouette{height:145px;width:90px}.body-labels{grid-template-columns:repeat(2,minmax(0,1fr))}.choice,.memory-grid .choice{min-height:52px}.body-map-caption{margin-top:6px}.toolbar{margin-top:12px;padding-top:12px}.word-list{grid-template-columns:repeat(4,minmax(0,1fr))}.word-list [data-long="true"]{grid-column:span 2}}
.mechanic-status:not(:empty){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

.setup select{display:block;appearance:none;-webkit-appearance:none;min-height:48px;min-width:0;width:100%;max-width:100%;padding:10px 40px 10px 16px;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#455069 50%),linear-gradient(135deg,#455069 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;text-overflow:ellipsis}

/* Keep the first Play action visible when a small screen has little height. */
@media(max-width:650px) and (max-height:850px){
  .welcome .mini-art,.welcome>div>.small,.welcome .setup>.small{display:none}
  .welcome{gap:12px}
  .welcome .eyebrow{font-size:.68rem;margin-bottom:6px}
  .welcome h1{font-size:1.85rem}
  .welcome .intro{font-size:1rem;line-height:1.4;margin:8px 0 0}
  .welcome .setup{padding:14px;gap:6px}
  .welcome .setup .primary{margin-top:0}
}
@media(max-height:450px) and (min-width:650px){
  .welcome .mini-art,.welcome>div>.small,.welcome .setup>.small{display:none}
  .welcome{grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:16px}
  .welcome .eyebrow{font-size:.68rem;margin-bottom:6px}
  .welcome h1{font-size:1.85rem}
  .welcome .intro{font-size:1rem;line-height:1.4;margin:8px 0 0}
  .welcome .setup{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:6px}
  .welcome label[for="language"]{grid-area:1/1}
  .welcome #language{grid-area:2/1}
  .welcome label[for="batch"]{grid-area:1/2}
  .welcome #batch{grid-area:2/2}
  .welcome .setup .primary{grid-column:1/-1;margin-top:0}
}

:root{--accent:#46679e;--soft:#46679e15}
