*{box-sizing:border-box}body{margin:0;background:#eff6fc;color:#123750;font-family:Tahoma,Arial,sans-serif}header{max-width:1050px;margin:auto;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#fff}header a{color:#086b87;text-decoration:none;font-weight:800}main{max-width:1050px;margin:auto;padding:16px}.hero{background:linear-gradient(115deg,#144b77,#078779);color:white;border-radius:23px;padding:26px}.hero h1{margin:0;font-size:clamp(26px,5vw,39px)}.hero p{font-size:18px;line-height:1.7}.controls{margin:16px 0;display:flex;gap:10px;flex-wrap:wrap;background:#fff;border-radius:20px;padding:16px}.controls label{display:grid;gap:7px;font-weight:800;flex:1;min-width:140px}select,button,textarea{font:inherit;border:2px solid #bed9e6;border-radius:13px;padding:12px;background:#fff;color:#123750}button{cursor:pointer;font-weight:800;touch-action:manipulation}button:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #eda72b;outline-offset:3px}.primary{background:#0b827d;color:white;border-color:#0b827d}.game{background:white;padding:22px;border-radius:24px;border:1px solid #c1dce8;min-height:440px}.game-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.game h2{font-size:clamp(23px,4vw,32px);margin:5px 0}.game p{line-height:1.7}.game-top span{font-weight:900;background:#fff3bf;border-radius:30px;padding:9px;white-space:nowrap}.deck{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;padding:15px;background:#f1f8fc;border-radius:17px}.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:clamp(90px,21vw,136px);min-height:104px;border:3px solid #94c9d9;background:white;border-radius:19px;touch-action:none;user-select:none;cursor:grab}.tile .emoji{font-size:clamp(36px,7vw,60px)}.tile small{font-size:15px}.tile.selected{border-color:#db9d21;background:#fff6d9;box-shadow:0 0 0 3px #ffd873}.tile.placed{opacity:.3;pointer-events:none}.targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:12px;margin:18px 0}.target{background:#ecfafb;border:3px dashed #62aabd;min-height:115px;border-radius:19px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:10px}.target strong{font-size:19px}.target .caught{font-size:38px;display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.target.correct{background:#c7f6dd;border-color:#20a168}.ghost{position:fixed;transform:translate(-50%,-50%);pointer-events:none;z-index:999999;background:#fff4b5;border:3px solid #0b887d;border-radius:17px;font-size:58px;min-width:90px;text-align:center;box-shadow:0 12px 28px #0d344b55}.matchgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px;position:relative;margin-top:18px}.match-col{display:grid;gap:16px}.match-node{min-height:86px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:24px;background:#f3fafe;border:3px solid #a2cbdc;border-radius:16px;touch-action:none;position:relative;z-index:1;user-select:none}.match-node.answered{background:#d4f8dd;border-color:#18985f}.line-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}.line-canvas path{fill:none;stroke:#088b88;stroke-width:5;stroke-linecap:round}.find-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:580px;margin:18px auto}.find-cell{font-size:clamp(34px,6vw,52px);min-height:72px}.find-cell.found{background:#bbf6db;border-color:#159467}.sentence-slots{display:flex;gap:12px;flex-wrap:wrap;min-height:92px;margin:20px 0;border:3px dashed #8eb9cb;border-radius:16px;padding:12px}.word{font-size:22px;padding:12px 18px;background:#eaf8ff}.word.selected{background:#fff4c9}.storybox{background:#fff4df;border-radius:16px;padding:20px;font-size:21px;line-height:2}.question{font-size:20px;font-weight:800;margin:18px 0 10px}.answers{display:flex;gap:10px;flex-wrap:wrap}.answer{flex:1;min-width:115px;min-height:60px}.answer.correct{background:#c7f6d9}.answer.wrong{background:#ffdfd4}textarea{width:100%;min-height:150px;resize:vertical;line-height:1.8;font-size:20px}#feedback{background:#e5f4ff;padding:12px 16px;border-radius:14px;min-height:52px;font-weight:bold}#feedback.good{background:#daf6e3}#feedback.bad{background:#fff0d7}.actions{display:flex;gap:10px;justify-content:space-between}.note{color:#546d78;font-size:13px;line-height:1.8}.success{animation:pop .3s ease}@keyframes pop{from{transform:scale(.85)}to{transform:scale(1)}}@media(max-width:550px){main{padding:10px}.game{padding:13px}.controls{padding:10px}.tile{width:calc(50% - 10px)}.match-node{font-size:20px;min-height:78px}.find-grid{gap:6px}}@media print{header,.controls,.actions,.note{display:none}.hero{color:black;background:white}.game{border:0}}
.skill-panel{background:#ecf9f3;border:2px solid #b3dfd1;border-radius:15px;padding:12px 16px;margin:12px 0 18px}.skill-panel strong{font-size:17px}.skill-panel p{font-size:15px;line-height:1.7;margin:5px 0}.controls label{min-width:125px}@media(max-width:600px){.controls label{flex-basis:calc(50% - 12px)}.skill-panel{padding:10px}}
