:root{color-scheme:light;--ink:#213c44;--teal:#087b80;--coral:#ce4d37;--board:#edf2f3;--outline:#bdcdd1}
*{box-sizing:border-box}body{margin:0;background:#293b40;color:var(--ink);font:700 16px/1.45 Nunito,system-ui,sans-serif;padding:24px 22px 18px;min-height:100vh;min-height:100dvh}
button,summary{-webkit-tap-highlight-color:transparent}button{font:800 1rem/1.2 Nunito,system-ui,sans-serif;cursor:pointer;min-height:44px}button:disabled{cursor:default;opacity:.45}button:focus-visible,summary:focus-visible{outline:3px solid #edb938;outline-offset:3px}h1,h2{font-family:Lexend,system-ui,sans-serif}h1{margin:0;font-size:clamp(1.9rem,4vw,2.7rem);line-height:1.16;letter-spacing:-.045em}h1 span{color:#ffc563}h2{margin:0;font-size:1.05rem}p{margin:0}
.page-heading{max-width:1120px;margin:0 auto 20px;display:flex;justify-content:space-between;align-items:center;gap:16px;color:#fff}.eyebrow{font-size:.7rem;letter-spacing:.16em;color:#9ddbdd;margin-bottom:5px}.intro{font-weight:600;color:#dbe9eb;margin-top:7px}.progress{background:#3b5157;border:1px solid #5a737a;border-radius:16px;padding:10px 18px;text-align:center;flex-shrink:0}.progress strong{display:block;color:#ffca72;font:700 1.8rem/1.1 Lexend,system-ui}.progress span{font-size:.78rem}
.game-board{max-width:1120px;margin:auto;background:var(--board);border:1px solid #b6c8cd;border-radius:20px;padding:20px;box-shadow:0 10px 24px #101b242b}.tray-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.tray-heading p{font-size:.86rem;font-weight:600;color:#526b73}.choice-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;padding:8px 10px;border:1px solid var(--outline);border-radius:12px;margin-bottom:12px;position:sticky;top:8px;z-index:5;box-shadow:0 3px 8px #233c400a}.choice-bar p{font-size:.87rem;flex:1;min-width:0}.choice-buttons{display:flex;gap:6px;flex-wrap:wrap}.choice-buttons button{border:0;padding:9px 14px;border-radius:9px;font-size:.87rem}.needs-button{background:#087b80;color:white}.wants-button{background:#ce4d37;color:white}.return-button{background:#e8eff1;color:#294852}.choice-buttons span{margin-left:8px}
.picture-tray{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;padding:12px;background:#dce7eb;border:1px solid #bdcdd3;border-radius:14px;margin-bottom:18px;min-height:76px}.picture-tray:empty:after{content:'All pictures are in a group. Ready to check?';grid-column:1/-1;align-self:center;text-align:center;color:#49666e;font-size:.9rem}
.picture-card{min-width:0;width:100%;border:2px solid #d6e0e2;border-radius:12px;background:#fff;color:#203943;padding:5px 5px 9px;box-shadow:0 3px 0 #a8bac233;user-select:none;display:flex;flex-direction:column;align-items:center;gap:4px;position:relative}.picture-card:hover{border-color:#809fa8}.picture-card[aria-pressed=true]{outline:3px solid #216aaf;outline-offset:2px;border-color:#fff;background:#edf6ff}.picture-card.dragging{opacity:.4}.picture{width:100%;height:92px;background:var(--tint,#eff5f7);border-radius:8px;display:grid;place-items:center;pointer-events:none}.picture img{width:100%;height:100%;object-fit:contain;pointer-events:none}.card-name{font-weight:900;font-size:.9rem;line-height:1.2;min-height:1.2em;pointer-events:none}.card-feedback{font-size:.72rem;line-height:1.15;pointer-events:none}.card-feedback:empty{display:none}.picture-card.correct{border-color:#138059;background:#effaf4}.picture-card.revise{border-color:#bb3f33;background:#fff1ee}.picture-card.unplaced{border-color:#ad6d00}.correct .card-feedback{color:#126342}.revise .card-feedback{color:#a22d23}.unplaced .card-feedback{color:#855000}
.sorting-areas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.category{min-width:0;border-radius:14px;overflow:clip;border:1px solid #a5c9cc;background:#f7fcfc}.category-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#fff;padding:12px 16px;background:#087b80}.category-heading h2{font-size:1.13rem}.category-heading p{font-size:.8rem;font-weight:600;margin-top:3px;color:#fff}.wants-category{border-color:#e1bbae;background:#fff9f5}.wants-category .category-heading{background:#ce4d37}.zone-count{font:700 1.1rem Lexend,system-ui;background:#ffffff26;border:1px solid #ffffff69;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}.drop-zone{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:9px;min-height:144px;margin:10px;padding:10px;border:2px dashed #83b8bc;border-radius:10px;transition:background .15s}.wants-category .drop-zone{border-color:#d9a28d}.drop-zone.over{background:#dbe9ef;border-style:solid}.empty-label{align-self:center;line-height:100px;color:#526c72;font-size:.86rem;pointer-events:none}.drop-zone .picture-card{width:calc((100% - 27px)/4);max-width:130px;flex-shrink:0}.drop-zone .picture{height:72px}.drop-zone .card-name{font-size:.8rem}
.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}.controls button{padding:12px 21px;border:0;border-radius:10px;color:#fff;background:#087b80;box-shadow:0 3px 0 #055c61}.controls #reset-btn{color:#a23426;background:#ffe1d5;box-shadow:0 3px 0 #e6b5a3}.controls p{flex:1;min-width:200px;font-size:.88rem;font-weight:700;color:#47636b}.controls p.success{color:#0a684b}.talk-note{color:#e5eef0;max-width:1120px;margin:15px auto 0;font-size:.88rem;font-weight:600}.talk-note summary{color:#ffd08a;cursor:pointer;min-height:44px;display:list-item;padding-top:10px}.talk-note p{margin:8px 0 12px;max-width:900px}#review{margin-top:18px;border-top:1px solid #bfced2;padding-top:12px;font-size:.9rem}#review summary{cursor:pointer;min-height:44px;padding-top:8px}#review ul{padding-left:24px}#review li{margin-bottom:9px;font-weight:600}#review li strong{font-weight:900}
@media(max-height:680px) and (min-width:900px){body{padding:12px 18px}.page-heading{margin-bottom:12px}.eyebrow{display:none}h1{font-size:2rem}.intro{font-size:.87rem;margin-top:4px}.progress{padding:5px 14px}.progress strong{font-size:1.3rem}.game-board{padding:14px}.picture-tray{gap:8px;padding:8px;margin-bottom:12px}.picture{height:70px}.card-name{font-size:.85rem}.category-heading{padding:8px 13px}.category-heading h2{font-size:1rem}.drop-zone{min-height:94px;margin:8px;padding:8px}.empty-label{line-height:70px}.choice-bar{margin-bottom:8px;padding:4px 8px}.controls{margin-top:12px}.talk-note{margin-top:8px}}
@media(max-width:899px){.picture-tray{grid-template-columns:repeat(4,minmax(0,1fr))}.picture{height:100px}.choice-bar{align-items:flex-start;flex-direction:column;gap:6px}.choice-buttons{width:100%}.choice-buttons button{flex:1}.drop-zone .picture-card{width:calc((100% - 9px)/2)}.drop-zone .picture{height:85px}}
@media(max-width:540px){body{padding:14px 10px}.page-heading{gap:8px;margin-bottom:14px}.intro{font-size:.88rem}.progress{padding:8px 10px;max-width:78px}.progress strong{font-size:1.4rem}.progress span{font-size:.7rem}.game-board{padding:12px;border-radius:16px}.tray-heading{display:block}.tray-heading p{margin-top:4px;font-size:.8rem}.picture-tray{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:7px}.picture{height:74px}.card-name{font-size:.79rem}.picture-card{padding:4px 4px 7px;gap:3px;border-radius:10px}.choice-bar{top:5px;padding:7px}.choice-buttons{gap:4px}.choice-buttons button{padding:8px 7px;font-size:.8rem}.choice-buttons span{display:none}.sorting-areas{grid-template-columns:minmax(0,1fr);gap:12px}.drop-zone{min-height:130px}.drop-zone .picture-card{width:calc((100% - 18px)/3)}.drop-zone .picture{height:70px}.category-heading{padding:10px 13px}.controls button{flex:1;padding:12px 10px}.controls p{flex-basis:100%;min-width:0}.eyebrow{font-size:.63rem}.talk-note{margin-top:8px}}
@media(max-width:350px){.picture-tray{grid-template-columns:repeat(2,minmax(0,1fr))}.picture{height:88px}.drop-zone .picture-card{width:calc((100% - 9px)/2)}.progress{display:none}.choice-buttons button{font-size:.76rem}.page-heading h1{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.picture{position:relative;display:block}.picture img{position:absolute;inset:0;min-width:0;min-height:0;max-width:100%;max-height:100%}
