.lang-home{margin:28px 0 12px}.lang-home h2{margin-bottom:4px}.lang-shell{max-width:1000px;margin:auto}.lang-content{display:grid;gap:12px;width:100%;max-width:950px;margin:0 auto}.lang-panel{display:grid;gap:12px;background:#fff;border:1px solid #d5e4e9;border-radius:20px;padding:clamp(12px,2vw,24px);text-align:center;min-width:0}.lang-panel h2{margin:0;color:#15394a;font-size:clamp(1.15rem,2.4vw,1.65rem)}.lang-panel button,.lang-controls button,.lang-panel select{min-height:48px;font-weight:650;touch-action:manipulation}.lang-panel .primary{background:#086577;color:#fff;border-color:#086577}.lang-label{text-align:left;font-weight:650}.lang-label span{float:right}.lang-panel select{width:100%;padding:10px;border:1px solid #a9c5cc;border-radius:10px;background:white;color:#163b49}.lang-panel input[type=range]{width:100%;accent-color:#086577}.lang-check{display:flex;align-items:center;text-align:left;gap:10px}.lang-check input{width:24px;height:24px;accent-color:#086577}.lang-small{font-size:.92em;color:#526779;margin:0}.lang-levels,.lang-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.lang-levels button,.lang-actions button{flex:1 1 120px}.lang-levels button{display:grid;gap:5px;text-align:center;padding:12px;background:#edf5f6;color:#15394a}.lang-levels button span{font-size:.85em;font-weight:400}.lang-levels button[aria-pressed=true]{border:2px solid #086577;background:#d7eef0}.lang-progress{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px;font-weight:650;color:#13586b;padding:0 6px}.lang-progress progress{width:100%;height:8px;accent-color:#086577}.lang-target{font-size:clamp(1.5rem,4vw,2.4rem);color:#086577}.lang-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:760px;margin:auto;width:100%}.lang-options.lang-n6{grid-template-columns:repeat(3,minmax(0,1fr))}.lang-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:white;color:#15394a;border:2px solid #cfe0e5;border-radius:16px;padding:8px;min-width:0;min-height:80px}.lang-options button img{width:100%;height:clamp(80px,19vh,160px);object-fit:contain;display:block}.lang-options button[aria-pressed=true]{border-color:#086577;background:#e2f2f4}.lang-options button.lang-correct{border-color:#32804b;background:#e6f4df;opacity:1}.lang-options button:disabled{opacity:1}.lang-feedback{margin:0;min-height:1.35em;color:#225c48;font-weight:650}.lang-photo img{width:100%;max-width:400px;height:clamp(120px,32vh,270px);object-fit:contain;display:block;margin:auto}.lang-photo:empty{display:none}.lang-example img{height:clamp(70px,17vh,155px)}.lang-word,.lang-letter-big{font-size:clamp(1.65rem,6vw,3rem);color:#086577;overflow-wrap:anywhere;line-height:1.1}.lang-letter-big{font-size:clamp(2.6rem,9vw,5rem);background:#e5f3f5;border-radius:16px;padding:12px}.lang-phrase{background:#edf5f6;padding:8px;border-radius:12px}.lang-phrase p{font-size:1.15em;margin:4px 0 8px}.lang-letter-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}.lang-letter-row span,.lang-tiles button{display:grid;place-items:center;min-width:44px;min-height:48px;padding:5px;background:#e3eff5;color:#086577;border:1px solid #a8c7d0;border-radius:10px;font-size:clamp(1.3rem,4vw,2.4rem);font-weight:750}.lang-letter-row .lang-result{background:#dff0dc;color:#286939;border-color:#74a66e}.lang-slots{gap:4px}.lang-slots span{min-width:clamp(27px,6vw,52px);font-size:clamp(1rem,3vw,2rem)}.lang-tiles button:disabled{opacity:.35}.lang-controls{margin-top:12px}.mel23-play .lang-content{width:100%;max-width:1000px;margin:auto}.mel23-play .lang-options button img{height:clamp(62px,15vh,135px)}.mel23-play .lang-photo img{height:clamp(80px,24vh,240px)}.mel23-play .lang-example img{height:clamp(60px,13vh,135px)}.mel23-play .lang-panel{padding:10px;gap:8px}.mel23-play .lang-word{font-size:clamp(1.5rem,5vw,2.7rem)}.high .lang-panel,.high .lang-options button,.high .lang-levels button{color:#111;background:#fff;border-color:#111}.high .lang-panel h2,.high .lang-target,.high .lang-word,.high .lang-progress{color:#111}.large .lang-panel{font-size:1.15em}.xlarge .lang-panel{font-size:1.3em}@media(min-width:700px) and (orientation:landscape){.lang-options.lang-n4{grid-template-columns:repeat(4,minmax(0,1fr))}.lang-options.lang-n6{grid-template-columns:repeat(6,minmax(0,1fr))}.lang-repeat .lang-photo img{height:clamp(75px,24vh,240px)}}@media(max-width:420px){.lang-panel{padding:10px;gap:9px}.lang-options{gap:6px}.lang-options button{padding:5px}.lang-options button img{height:clamp(65px,15vh,130px)}.lang-slots span{min-width:29px;min-height:40px}.lang-tiles button{min-width:42px}}
body.game-view:has(.lang-shell){overflow-x:hidden}.lang-shell .topline{flex-wrap:wrap}.lang-shell .topline h1{min-width:0;overflow-wrap:anywhere}.lang-shell .lang-controls{flex-wrap:wrap}.lang-shell .lang-controls button{flex:1 1 105px}.lang-panel button:focus-visible,.lang-panel select:focus-visible{outline:3px solid #c48811;outline-offset:2px}.lang-feedback:empty{min-height:0}
.lang-voice-settings{border:1px solid #d5e4e9;border-radius:12px;padding:12px;text-align:left;background:#f4f9fa;min-width:0}.lang-voice-settings summary{font-weight:700;color:#15394a;cursor:pointer;padding:4px 0}.lang-voice-settings[open]{display:grid;gap:10px}.lang-voice-settings label{display:block;margin:8px 0 4px}.lang-voice-settings select,.lang-voice-settings button{width:100%;margin-bottom:5px}.lang-voice-settings select{min-width:0;text-overflow:ellipsis}.lang-voice-settings p{margin:4px 0}.lang-feedback:empty{display:none}

/* V0.28 TEST3: compact controls, options collapsed, larger picture cards */
.lang-home{padding:18px 0 0;border-top:1px solid #c6e0e0;margin-top:24px}.lang-home h2{color:#132b42}.lang-home .activity img{object-fit:cover}.lang-more{flex:1 1 155px;min-width:0;border:1px solid #cddce0;border-radius:12px;background:#fff;color:#15394a;padding:0 12px}.lang-more summary{cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:650}.lang-more summary:after{content:'⌄'}.lang-more[open] summary:after{content:'⌃'}.lang-more div{display:grid;gap:8px;padding:4px 0 10px}.lang-more div button{width:100%;flex:auto}.lang-voice-settings h3{margin:12px 0 0;color:#15394a}.lang-photo img{height:clamp(150px,34vh,300px)}.lang-options button img{object-fit:contain;image-rendering:auto}.lang-panel .lang-feedback:empty{display:none}.lang-panel #lang-start{min-height:56px}.lang-panel .lang-actions #lang-skip{background:white;color:#526779}.lang-panel .lang-actions:empty{display:none}.lang-panel .lang-photo{min-width:0}.mel23-play .lang-photo img{height:clamp(85px,26vh,250px)}

/* V0.28 TEST4 : exemples des mots courts */
.lang-word-example{display:grid;gap:8px;justify-items:center;background:#f2f8f2;border-radius:14px;padding:12px}.lang-example-text{font-size:clamp(1.05rem,3vw,1.5rem);color:#15394a;font-weight:650;margin:0;line-height:1.45}.lang-letter-row .lang-result{min-width:60px;padding:5px 12px}.lang-word-example .lang-photo{width:100%}.lang-word-example .lang-photo img{height:clamp(95px,22vh,190px)}
