.leaf-match-board{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:26px}.leaf-match-board h3{font-size:23px;line-height:1.3;margin:12px 0 18px}.leaf-shapes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.leaf-shape{min-width:0;padding:10px;border:2px solid #a4b798;border-radius:12px;background:#fffdf4;cursor:pointer;color:var(--ink)}.leaf-shape svg{display:block;width:100%;height:160px}.leaf-shape strong{display:block;font:600 16px/1.5 system-ui,sans-serif;margin-top:8px}.leaf-shape[aria-pressed=true]{border-color:#a77430;background:#f8efd7}.leaf-shape.is-assigned{border-color:#668357}.leaf-names{display:grid;gap:12px}.leaf-name{width:100%;min-height:76px;padding:16px 12px;border:2px solid #a4b798;border-radius:12px;background:#fffdf4;color:var(--ink);font:600 17px/1.4 system-ui,sans-serif;cursor:pointer}.leaf-name.is-assigned{border-color:#668357;background:#edf3e5}.leaf-counter{font:600 16px/1.5 system-ui,sans-serif}.leaf-assignments{padding-left:20px;font-size:16px;line-height:1.6}.leaf-assignments button{margin:4px 0 4px 8px;padding:6px 10px;border:1px solid #829777;border-radius:8px;color:var(--ink);background:#fffdf4;font:14px/1.4 system-ui,sans-serif;cursor:pointer}.leaf-recap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.leaf-recap figure{margin:0;min-width:0}.leaf-recap svg{display:block;width:100%;height:210px}.leaf-recap strong,.leaf-recap em{display:block;text-align:center}.leaf-recap em{font-size:15px;margin:4px 0 12px}.leaf-recap p{font-size:16px;line-height:1.6;margin:8px 0}.leaf-habitat-focus{padding:18px 20px;background:#e8efde;border-left:4px solid #668357;border-radius:10px;margin-top:26px}.leaf-habitat-focus h3{font-size:23px;margin:0 0 12px}.leaf-habitat-focus p{margin:0;font-size:17px}[data-leaf-match-solution]:empty{display:none}@media(max-width:600px){.leaf-match-board{grid-template-columns:minmax(0,1fr);gap:12px}.leaf-shape svg{height:140px}.leaf-names{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.leaf-name{min-height:66px;font-size:15px;padding:12px 8px}.leaf-recap{gap:18px 14px}.leaf-recap svg{height:150px}.leaf-recap p{font-size:14px}.leaf-habitat-focus{padding:16px}.leaf-habitat-focus p{font-size:16px}}

/* Desktop: quattro specie, foglia sopra e albero sotto. Telefono: quattro righe, foglia e albero affiancati. */
.leaf-recap{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.leaf-recap-art{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.leaf-recap-leaf svg{height:135px}.leaf-recap-tree svg{height:205px}.leaf-recap strong{font-size:19px}.leaf-recap figcaption{margin-top:12px}.leaf-recap em{overflow-wrap:anywhere}@media(max-width:700px){.leaf-recap{grid-template-columns:minmax(0,1fr);gap:28px}.leaf-recap-art{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px}.leaf-recap-leaf svg{height:160px}.leaf-recap-tree svg{height:200px}.leaf-recap p{font-size:16px}}
