/* 🪢 Κρεμάλα (ομάδα «Γνώση & Τακτική») */
.hm-pick { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; overflow: auto; }
.hm-pick h2 { z-index: 1; margin: 0; font-size: 28px; color: #6a1b9a; text-shadow: 0 2px 0 #fff; }
.hm-sub { z-index: 1; margin: 0 0 6px; font-weight: 600; color: #4e342e; }
.hm-grades .qz-grade { background: linear-gradient(180deg, #7e57c2, #4527a0); }
.hm-grades .qz-grade .s { font-size: 12px; }
.hm-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 12px 16px; gap: 8px; overflow: hidden; }
.hm-top { z-index: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm-grade-btn { font-weight: 700; }
.hm-score { font-weight: 900; color: #4e342e; font-size: 17px; background: rgba(255,255,255,.7); border-radius: 12px; padding: 6px 12px; }
.hm-lives { margin-left: auto; font-size: 20px; letter-spacing: 2px; background: rgba(255,255,255,.7); border-radius: 12px; padding: 4px 10px; }
.hm-main { z-index: 1; flex: 1; min-height: 0; display: flex; gap: 16px; align-items: stretch; }
.hm-gallows { flex: 0 0 auto; width: min(360px, 36%); display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.55); border-radius: 22px; padding: 8px; overflow: hidden; }
.hm-gallows svg { width: 100%; height: 100%; }
.hm-wood { stroke: #8d6e63; stroke-width: 8; stroke-linecap: round; fill: none; }
.hm-rope { stroke: #c9a15a; stroke-width: 4; stroke-linecap: round; fill: none; stroke-dasharray: 3 3; }
.hm-limb { stroke: #37474f; stroke-width: 7; stroke-linecap: round; fill: none; }
/* Ο ήρωας κουνιέται πέρα-δώθε από το σκοινί· πιο γρήγορα όσο πληθαίνουν τα λάθη */
.hm-fig { transform-origin: 170px 30px; transform-box: view-box; animation: hm-swing 2s ease-in-out infinite alternate; }
@keyframes hm-swing { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.hm-fig.lost { animation: hm-drop 1.2s ease-in forwards; }
@keyframes hm-drop { 0% { transform: rotate(-9deg); } 30% { transform: rotate(14deg); } 60% { transform: rotate(-14deg) translateY(4px); } 100% { transform: rotate(6deg) translateY(10px); } }
.hm-fig.happy { animation: hm-happy .5s ease-in-out infinite alternate; }
@keyframes hm-happy { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-14px) rotate(4deg); } }
.hm-bird { animation: hm-peck 1.6s ease-in-out infinite; transform-origin: 110px 20px; transform-box: view-box; }
@keyframes hm-peck { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(18deg); } 90% { transform: rotate(-6deg); } }
.hm-sweat { animation: hm-sweat .9s ease-in infinite; }
@keyframes hm-sweat { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(18px); } }
.hm-bubble { animation: hm-pop .35s; transform-origin: 110px 80px; transform-box: view-box; }
.hm-play { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; }
.hm-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hm-slot { width: 60px; height: 72px; border: 3px solid #b39ddb; border-bottom: 7px solid #6a1b9a; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 900; color: #4a148c; background: rgba(255,255,255,.85); border-radius: 12px; box-shadow: 0 3px 0 rgba(0,0,0,.08); transition: transform .2s; }
.hm-slot.on { animation: hm-pop .3s; }
@keyframes hm-pop { 50% { transform: scale(1.25); background: #ffe082; } }
.hm-hint { font-size: 24px; font-weight: 700; color: #263238; background: rgba(255,249,196,.95); border: 3px solid #ffd54f; border-radius: 16px; padding: 12px 20px; max-width: 760px; text-align: center; line-height: 1.45; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.hm-hint-l { color: #8d6e63; font-weight: 900; font-size: 18px; display: block; margin-bottom: 4px; }
.hm-blank { color: #e65100; letter-spacing: 3px; font-size: 28px; background: #fff3e0; border-radius: 6px; padding: 0 6px; }
.hm-wrong { min-height: 22px; font-size: 17px; font-weight: 800; color: #c62828; letter-spacing: 3px; }
.hm-keys { display: grid; grid-template-columns: repeat(8, 46px); gap: 6px; justify-content: center; }
.hm-key { font-family: inherit; font-size: 20px; font-weight: 900; width: 46px; height: 44px; border-radius: 10px; border: 2px solid #b39ddb; background: #fff; color: #4a148c; cursor: pointer; box-shadow: 0 3px 0 #b39ddb; transition: transform .1s; }
.hm-key:hover:not(:disabled) { transform: translateY(-2px); background: #f3e5f5; }
.hm-key:disabled { cursor: default; opacity: .45; box-shadow: none; transform: translateY(2px); }
.hm-key.ok { background: #c8e6c9; border-color: #43a047; opacity: 1; }
.hm-key.bad { background: #ffcdd2; border-color: #e53935; opacity: .8; }
.hm-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hm-result { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; background: #fff; border-radius: 22px; padding: 18px 28px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.3); animation: ng-in .3s ease-out; }
.hm-result.hidden { display: none; }
.hm-result p { font-size: 20px; margin: 6px 0 12px; color: #37474f; }
.hm-res-e { font-size: 48px; line-height: 1; }
@media (max-width: 800px) { .hm-main { flex-direction: column; } .hm-gallows { width: 220px; align-self: center; } .hm-keys { grid-template-columns: repeat(6, 44px); } .hm-slot { width: 40px; height: 50px; font-size: 30px; } .hm-hint { font-size: 18px; } }
