
/* Penjat: independent, accessible bilingual exercise */
#penjat{scroll-margin-top:16px}
.hang-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.hang-badge{font-size:.78rem;padding:6px 10px;background:#e9f6f2;color:#156b59;border-radius:100px;font-weight:750}
.hang-translation{font-size:clamp(1.15rem,3.4vw,1.48rem);font-weight:800;background:#eaf5fe;color:#123a5a;padding:17px;border-radius:15px;margin-top:13px}
.hang-label{font-size:.81rem;text-transform:uppercase;letter-spacing:.04em;color:#52637a;font-weight:800}
.hang-target{display:flex;column-gap:30px;row-gap:18px;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;margin:18px 0 24px;min-height:80px}
.hang-word{display:inline-flex;gap:5px;flex-wrap:nowrap;white-space:nowrap;padding:6px 3px 4px;border-radius:8px;background:#f4f8fc}
.hang-cell{display:inline-flex;flex:none;width:clamp(19px,2.2vw,29px);min-height:38px;justify-content:center;align-items:center;border-bottom:3px solid #2b7197;font-weight:850;font-size:clamp(.9rem,2vw,1.2rem);color:#103f58}
.hang-punct{border:0;width:auto;min-width:10px}
.hang-layout{display:grid;grid-template-columns:minmax(135px,195px) 1fr;gap:20px;align-items:center}
.hang-drawing{width:100%;max-height:212px}
.hang-drawing .piece{visibility:hidden;stroke:#146d84;stroke-width:5;fill:none;stroke-linecap:round}
.hang-keys{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.hang-key{background:#f2f8fd;border:2px solid #c5dceb;color:#174866;border-radius:10px;min-height:40px;font-weight:800;padding:3px}
.hang-key:disabled{background:#e6ebe9;color:#64737d;opacity:.77}
.hang-key.correct{background:#d8f6e6;color:#17694b;border-color:#4aa785}
.hang-key.incorrect{background:#ffedf0;color:#922f43;border-color:#df929b}
.hang-actions{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}
.hang-info{background:#f2f7fb;padding:11px 14px;border-radius:12px;color:#193c59}
.hang-result{min-height:50px;font-weight:750;margin:12px 0}
.hang-result.win{color:#087850}.hang-result.lose{color:#a13542}
.hang-stats{color:#52637a;font-size:.88rem}
@media(max-width:560px){.hang-layout{grid-template-columns:1fr}.hang-drawing{height:120px}.hang-target{column-gap:22px;row-gap:15px}.hang-word{gap:3px;padding:5px 2px 3px}.hang-keys{gap:4px}.hang-key{min-height:43px}.hang-cell{width:clamp(16px,4.2vw,21px);min-height:34px;font-size:.93rem}}

.quick-entry{display:grid;grid-template-columns:1.3fr 1fr;gap:14px;margin:0 14px 20px}.quick-feature,.quick-other{border-radius:20px;padding:22px;box-shadow:0 6px 22px #1a37600d}.quick-feature{background:linear-gradient(145deg,#0d726b,#135d87);color:white}.quick-other{background:white;border:1px solid #dce5ee}.quick-feature h2{font-size:2rem;margin:3px 0 4px}.quick-feature p,.quick-other p{margin:8px 0 0}.quick-feature .es{color:#d8f4f5}.quick-overline{font-size:.76rem;text-transform:uppercase;letter-spacing:.07em;font-weight:800;color:#bcf6e7}.quick-primary,.quick-secondary{display:inline-flex;flex-wrap:wrap;align-items:center;gap:5px;border-radius:12px;padding:12px 16px;font-weight:800;text-decoration:none;margin-top:14px}.quick-primary{background:white;color:#075d5b}.quick-secondary{background:#e5f0f9;color:#175477}.quick-primary span{font-weight:500;font-size:.85rem}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}.hero-actions a{display:flex;flex-direction:column;min-width:180px;padding:13px 16px;border-radius:12px;text-decoration:none;font-weight:800}.hero-actions small{font-size:.77rem;margin-top:2px;font-weight:500}.hero-hang{background:#aef2d7;color:#084e4c;box-shadow:0 5px 18px #0002}.hero-lessons{background:#ffffff20;color:white;border:1px solid #ffffff75}.hero-actions a:focus-visible,.quick-entry a:focus-visible{outline:3px solid #ffb52b;outline-offset:3px}#exercicis{scroll-margin-top:16px}@media(max-width:650px){.quick-entry{grid-template-columns:1fr;margin:0 10px 15px}.hero-actions a{width:100%}.quick-feature,.quick-other{padding:19px}}

/* R3: teclat just sota la frase als mobils. El recompte d errors es manté visible. */
@media(max-width:600px){
#penjat .hang-layout{display:flex;flex-direction:column;align-items:stretch;gap:0}
#penjat .hang-drawing{display:none}
#penjat .hang-target{min-height:0;margin:10px 0 12px;row-gap:10px;column-gap:19px}
#penjat .hang-word{padding:3px 2px 2px}
#penjat .hang-cell{min-height:30px}
#penjat .hang-translation{padding:12px 14px;margin-top:8px;font-size:1.18rem}
#penjat .hang-info{padding:8px 11px}
#penjat .hang-keys{gap:5px}
#penjat .hang-key{min-height:40px}
#penjat .hang-result{min-height:15px;margin:6px 0}
#penjat .hang-label{font-size:.76rem}
#penjat #hang-round{font-size:.72rem;line-height:1.1;margin:0}
#penjat .hang-layout .small{margin:4px 0 5px;font-size:.8rem}
#penjat .hang-info{font-size:.87rem;line-height:1.15}
}
