:root{font-family:system-ui,Segoe UI,sans-serif;color:#23243b;background:#f7f8fc;font-size:17px;line-height:1.45;--purple:#43368b;--muted:#514e69;--line:#d9d8e5;--subject:#ffdeaf;--verb:#dcfacb;--object:#dce8ff}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button,input,select{min-height:48px}button{cursor:pointer;border:1px solid #cac7da;border-radius:14px;color:#292443;background:#fff;padding:.55rem .86rem;font-weight:650;touch-action:manipulation}button:hover:not(:disabled){background:#f0ecff;border-color:#8a79c7}button:disabled:not(.card-body){opacity:.55;cursor:default}:focus-visible{outline:3px solid #5c39b0;outline-offset:4px}header{background:#fff;border-bottom:1px solid var(--line)}.top,main,footer{max-width:1180px;margin:auto;padding-inline:clamp(14px,4vw,54px)}.top{min-height:76px;display:flex;justify-content:space-between;align-items:center;gap:.75rem}.brand{display:flex;align-items:center;gap:.65rem;border:0;font-size:1.25rem;color:var(--purple);padding-left:0}.brand img{width:38px;height:38px}.header-actions,.activity-tools,.tabs{display:flex;gap:.55rem;flex-wrap:wrap}main{min-height:calc(100svh - 135px);padding-block:24px 36px;outline:none}footer{display:flex;justify-content:space-between;padding-block:12px 22px;color:var(--muted)}h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1.06;letter-spacing:-.05em;margin:.35em 0}.lead{font-size:1.15rem;color:var(--muted);max-width:35ch;margin:.7rem 0 1.15rem}.primary{background:var(--purple);color:#fff;border-color:var(--purple);padding:.7rem 1.35rem}.primary:hover:not(:disabled){background:#352768;color:#fff}.hero{min-height:440px;border:1px solid #e0dcef;border-radius:32px;background:#efedfb;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:1rem;padding:clamp(1.3rem,5vw,4rem);overflow:hidden}.hero h1{font-size:clamp(3rem,8vw,6.1rem);margin:0 0 .2em}.hero h1 span{color:#8063ca}.hero-art{display:flex;align-items:center;justify-content:center;padding:1rem}.hero-art span{display:grid;place-content:center;font-size:clamp(1.6rem,5vw,4rem);width:30%;max-width:110px;aspect-ratio:3/4;border:3px solid #242139;border-radius:17px;background:var(--subject);transform:rotate(-11deg)}.hero-art span:nth-child(2){background:var(--verb);transform:translateY(-20%) rotate(3deg)}.hero-art span:nth-child(3){background:var(--object);transform:rotate(12deg)}.back{margin-bottom:1rem}.eyebrow{letter-spacing:.07em;font-size:.9rem;font-weight:800;color:var(--purple)}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.4rem;max-width:890px}.choices button{min-height:120px;text-align:left;display:flex;align-items:center;gap:.9rem;padding:1rem;font-size:1.2rem}.choices span{background:#eeebfa;color:var(--purple);border-radius:13px;display:grid;place-items:center;min-width:54px;height:54px;font-size:1.5rem}.level{display:flex;gap:.8rem;align-items:center}.lesson-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.activity h1{font-size:clamp(1.85rem,4vw,2.8rem);margin:.2em 0}.activity .lead{margin:.35em 0 .65em;max-width:none}progress{width:100%;height:10px;accent-color:var(--purple)}.board{display:grid;grid-template-columns:minmax(140px,.7fr) minmax(0,2fr);gap:1rem;margin-top:1rem;align-items:stretch}.clue{display:grid;place-content:center;min-height:135px;text-align:center;border-radius:18px;background:#ece9fa;padding:.7rem;color:var(--muted)}.picture{display:flex;justify-content:center;align-items:center;gap:.3rem}.picture img{width:clamp(48px,9vw,104px);height:clamp(58px,10vw,110px);object-fit:contain}.slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;justify-items:center}.slot{display:flex;flex-direction:column;align-items:center;width:100%;padding:.2rem 0;border-radius:14px;position:relative;min-width:0}.slot-label{font-weight:750;text-align:center;font-size:clamp(.72rem,1.65vw,1rem);margin-bottom:.24rem}.slot.suggested{background:#efebff}.suggested .empty{border-color:var(--purple)}.empty{width:76%;aspect-ratio:146/205;max-width:134px;border:2px dashed #9a95ae;font-size:2rem;display:grid;place-items:center;margin-top:2%;color:var(--purple);background:#fff}.card{width:100%;max-width:178px;aspect-ratio:192/213;position:relative;flex:none;isolation:isolate;color:#17171c;--fill:var(--subject)}.tone-1{--fill:var(--verb)}.tone-2{--fill:var(--object)}.outline{position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;overflow:visible;pointer-events:none}.outline path{fill:var(--fill);stroke:#17171c;stroke-width:4;stroke-linejoin:round}.selected .outline path{stroke:#5337a6;stroke-width:6}.bad .outline path{stroke:#b12a37;stroke-width:7}.good .outline path{stroke:#247541;stroke-width:5}.card-body{position:absolute;top:4%;right:15%;bottom:6%;left:15%;width:70%;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3%;border:0;background:transparent!important;color:inherit;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:8px;min-width:0}.card-body:disabled{cursor:default}.card strong,.pron{border:2px solid #1c1c22;border-radius:8px;background:#fff;width:100%;padding:.08rem .12rem;text-align:center;font-size:clamp(.67rem,2.2vw,1.25rem);line-height:1.12;overflow-wrap:anywhere}.pron{background:#f3f3f4;font-size:clamp(.63rem,1.65vw,1rem);width:91%;font-weight:750}.art{flex:1;display:grid;place-items:center;width:94%;min-height:0;overflow:hidden;font-size:2.5rem}.art img{width:100%;height:100%;min-height:0;object-fit:contain}.picture .sprite{width:clamp(48px,9vw,104px)}.sprite{display:block;width:100%;max-width:103px;aspect-ratio:1;flex:none;border-radius:10px;overflow:hidden}.listen{position:absolute;top:-4px;right:3%;display:grid;place-items:center;width:48px;height:48px;padding:0;border-radius:50%;font-size:.95rem;line-height:1;z-index:2}.selection{position:absolute;top:0;left:-8%;background:#fff;color:var(--purple);border:2px solid currentColor;width:28px;height:28px;border-radius:50%;display:grid;place-items:center}.feedback{min-height:36px;display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin:.25rem 0}.success{color:#176238}.retry{color:#8e2335}.tray{background:#fff;border:1px solid var(--line);border-radius:19px;padding:.6rem .9rem .8rem}.tray p{margin:0 0 .5rem;color:var(--muted)}.options{display:flex;flex-wrap:wrap;gap:.65rem;justify-content:center}.options .card{width:clamp(87px,17vw,153px)}.stats{display:flex;gap:.7rem;flex-wrap:wrap;margin:1rem 0}.stats div{display:grid;background:#efecfb;border-radius:14px;padding:.7rem 1rem;min-width:140px}.stats b{font-size:2rem;color:var(--purple)}.panel{margin-top:1rem;border:1px solid var(--line);background:#fff;border-radius:17px;padding:1rem}.form{display:grid;gap:.85rem;max-width:750px}.form label{display:grid;gap:.25rem}.form fieldset{border:1px solid var(--line);border-radius:12px}.form .check{display:flex;align-items:center;gap:.6rem;min-height:48px}input[type=checkbox]{width:22px}input:not([type=checkbox]),select{padding:.45rem .65rem;border:1px solid #8e87a6;border-radius:9px;max-width:100%;width:100%;background:#fff;color:inherit}.level select{width:5rem}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}[aria-pressed=true]:not(.card-body){background:#e9e3ff;border-color:var(--purple)}.table-wrap{overflow:auto;margin-top:.75rem}table{border-collapse:collapse;width:100%}td,th{padding:.55rem;text-align:left;border-bottom:1px solid var(--line)}@media(min-width:720px){.slots{grid-template-columns:repeat(3,minmax(0,135.35px));justify-content:center}.slots .card{width:178px;max-width:none}.slots .empty{width:92%}.slots .slot:has(.card){z-index:1}.slots .listen{right:11%}}@media(max-width:680px){.top{padding-block:.3rem}.header-actions{justify-content:flex-end}.header-actions button{font-size:.84rem}.hero{grid-template-columns:1fr;min-height:0}.hero-art{max-width:260px}.board{grid-template-columns:1fr;gap:.4rem}.clue{min-height:76px;padding:.25rem}.choices button{min-height:92px;font-size:1rem}.choices span{min-width:38px;height:38px}.listen{font-size:.73rem}.slot-label{font-size:.75rem}.options .card{width:calc((100% - 1.3rem)/3)}}.ghost{position:fixed;width:122px;z-index:20;pointer-events:none;transform:translate(-50%,-50%);opacity:.84}.sprite:before{content:"";display:block;width:100%;height:100%;background:var(--sheet) var(--sheet-position)/var(--sheet-size) no-repeat}.sprite-lower{clip-path:inset(0 0 5% round 10px)}.sprite-pronoun{background:#fdd8a1;aspect-ratio:var(--crop-ratio);max-height:100%}.sprite-pronoun:before{-webkit-mask-image:radial-gradient(ellipse var(--notch-size) at var(--notch-position),transparent 99%,#000 100%);mask-image:radial-gradient(ellipse var(--notch-size) at var(--notch-position),transparent 99%,#000 100%)}.art{container-type:size}.art .sprite-pronoun{width:min(100%,calc(100cqh * var(--crop-ratio)))}
