:root{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;background:#f5f3e9;color:#284a50}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;border:0;border-radius:12px;color:inherit;background:#edf0e6;padding:12px 16px;font-weight:800}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #d99d30;outline-offset:4px}button:disabled{cursor:default}header{max-width:1180px;margin:auto;padding:24px 28px;display:flex;justify-content:space-between;gap:20px}.brand{font-size:25px;font-weight:900;color:#167d6f;text-decoration:none;letter-spacing:1px}.brand small{font-size:8px;letter-spacing:1.7px;display:block;margin-top:4px}nav{display:flex;align-items:center;gap:20px;font-size:13px;font-weight:bold}nav a{color:#597273}main{max-width:1100px;padding:10px 28px 30px;margin:auto}.hero{margin:12px 0 28px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:900;color:#7b877a}h1{font-size:clamp(38px,5vw,62px);line-height:1.07;letter-spacing:-2px;margin:12px 0}h1 em{font-style:normal;color:#177f70}h1 span{font-size:40px;margin-left:15px}.hero>p:last-child{color:#79887f;font-size:15px}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:25px}.tabs button{text-align:left;padding:20px;border:2px solid transparent;background:#eee3f8;box-shadow:0 4px 0 #47413014}.tabs button:nth-child(2){background:#e0edf5}.tabs button:nth-child(3){background:#fff0cb}.tabs button[aria-pressed=true]{border-color:#217f70;box-shadow:0 4px 0 #217f70}.tabs span{display:block;font-size:26px;color:#536e77;margin-bottom:15px}.tabs b{display:block;font-size:19px}.tabs small{display:block;font-size:11px;margin-top:6px;color:#6f7c77}.layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:23px}.panel{padding:24px;background:white;border:1px solid #e1e6dc;border-radius:24px}.top{display:flex;align-items:center;justify-content:space-between;gap:10px}h2{font-size:23px;margin:6px 0 12px}.stars{white-space:nowrap;background:#fff0c8;padding:10px 15px;border-radius:25px;font-weight:900}.clue{font-size:15px;line-height:1.8;white-space:pre-line;color:#58766e}.board-shell{padding:22px 12px;background:#f3f6ed;border-radius:20px;margin:20px 0}.board{display:grid;gap:12px;max-width:410px;margin:auto}.slot,.piece{position:relative;min-height:75px;border-radius:12px;display:grid;place-items:center;padding:12px 8px;font-weight:900;overflow-wrap:anywhere;font-size:24px;text-align:center}.slot{background:#e7ece2;border:2px dashed #b7cbbf;color:#a0b3a5;transition:background .15s}.slot:empty:before{content:'+';font-size:25px;color:#a9bdae}.slot.filled{color:#345168;background:#d9eaf4;border:2px solid #94bfd0}.slot:nth-child(3n+2).filled{background:#ece1f5;border-color:#bea4d1}.slot:nth-child(3n).filled{background:#f8e8bf;border-color:#ddc17f}.slot.filled:after,.piece:after{content:'';position:absolute;width:18px;height:18px;border-radius:50%;background:inherit;top:-9px;left:calc(50% - 9px);border-top:2px solid #a8c6c2;pointer-events:none}.slot.drag-over{background:#cee9c8;border-style:solid}.tray-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.tray-head h3{font-size:14px}.tray-head span{font-size:11px;color:#819084}.tray{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:14px 0}.piece{background:#e8e1f3;border:2px solid #c9bada;min-height:65px;font-size:22px;user-select:none;touch-action:manipulation}.piece:nth-child(3n+2){background:#dfeef4;border-color:#accbd8}.piece:nth-child(3n){background:#faeccb;border-color:#deca94}.piece.selected{outline:3px solid #2b8e74;outline-offset:2px}.piece[hidden]{display:none}.board.solved .slot{background:#d7ebc9;border-color:#86ad75;color:#3d6340}#feedback{min-height:50px;font-size:14px;color:#47766b;line-height:1.7}.actions{display:flex;flex-wrap:wrap;gap:8px}.actions button{font-size:12px}.primary{background:#177d6d;color:white;box-shadow:0 3px 0 #105c50}label{display:block;font-weight:800;font-size:13px;margin:18px 0 8px}select{width:100%;border-radius:12px;padding:12px;border:1px solid #d6dfd3;background:#fbfcf6;color:#345a54}.muted{font-size:13px;line-height:1.7;color:#7c897e}.how{background:#f4f4e8;padding:17px;border-radius:18px;margin:20px 0}.how h3{font-size:15px;margin:0}.how ol{font-size:13px;line-height:1.8;padding-left:20px}.how p{font-size:11px;line-height:1.7;color:#7b887e}.summary strong{font-size:28px;color:#2d806d;display:block}.summary span{display:block;font-size:11px;color:#879387;margin:6px 0 20px}.fine{font-size:10px;line-height:1.7;color:#879387}.more{display:block;padding:20px;border-radius:18px;margin-top:16px;background:#e4e6f5;text-decoration:none;font-size:13px;font-weight:bold;color:#62638a}footer{text-align:center;margin-top:28px;font-size:11px;color:#88978a}.math .slot,.math .piece{font-size:17px}@media(max-width:740px){header{padding:16px;align-items:flex-start}.brand{font-size:20px}.brand small{font-size:6px}nav{font-size:10px;gap:10px;flex-wrap:wrap;justify-content:flex-end}main{padding:0 14px 24px}.tabs{gap:8px}.tabs button{padding:14px 10px}.tabs b{font-size:14px}.tabs small{font-size:9px}.tabs span{font-size:23px}.layout{grid-template-columns:1fr}.panel{padding:17px}.board-shell{padding:20px 10px}.slot,.piece{min-height:66px;font-size:21px}.math .slot,.math .piece{font-size:13px;padding:7px 3px}.tray{gap:12px}.board{gap:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
