.hm-root{--hm-ink:#244658;--hm-green:#28795f;color:var(--hm-ink);padding:clamp(14px,3vw,24px);background:linear-gradient(150deg,#f2f9f4,#edf5fa);border:1px solid #d6e5df;border-radius:22px}
.hm-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.hm-options label{display:grid;gap:5px;font-size:.9rem;font-weight:700}.hm-options select{width:100%;min-width:0;min-height:44px;border:1px solid #b9d0c7;border-radius:10px;background:#fff;color:#244658;padding:8px 28px 8px 10px;font:inherit}.hm-options select:disabled{opacity:.7}
.hm-scene{display:flex;justify-content:center;align-items:center;gap:clamp(12px,4vw,40px);margin:12px 0 0}.hm-figure{width:clamp(120px,40%,190px);height:auto;flex-shrink:1;overflow:visible}.hm-figure [data-hm-part]{visibility:hidden}
.hm-dashboard{display:grid;gap:8px;min-width:100px}.hm-tag{color:#47765d;font-weight:750;font-size:.9rem}.hm-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#ffffffc9;padding:7px 12px;border-radius:12px}.hm-stat span{font-size:.85rem}.hm-stat strong{font-size:1.5rem;font-variant-numeric:tabular-nums}
.hm-language{margin:8px 0;text-align:center;font-size:.85rem;color:#55756b;font-weight:700}.hm-word{display:grid;grid-template-columns:repeat(var(--letters),minmax(0,1fr));gap:clamp(3px,.7vw,6px);width:100%;max-width:min(560px,calc(var(--letters) * 48px));margin:0 auto}.hm-letter{display:flex;justify-content:center;align-items:center;min-width:0;aspect-ratio:.85;background:white;border:1px solid #cbddd3;border-bottom:3px solid #4f9174;border-radius:7px 7px 3px 3px;font-size:clamp(.875rem,2.8vw,1.75rem);font-weight:800;line-height:1;box-shadow:0 3px 5px #34564508}.hm-missed{color:#a84240;border-bottom-color:#b9635d}
.hm-feedback{min-height:3em;display:flex;justify-content:center;align-items:center;text-align:center;margin:10px 0 5px;font-size:1rem;line-height:1.5;font-weight:650;overflow-wrap:anywhere}.hm-root[data-phase=won] .hm-feedback{color:#1f7252}.hm-root[data-phase=lost] .hm-feedback{color:#a3423e}
.hm-keyboard{display:grid;gap:6px;max-width:560px;margin-inline:auto}.hm-key-row{display:flex;justify-content:center;gap:5px}.hm-key-row button{font:inherit;font-weight:750;font-size:clamp(.875rem,2.8vw,1.1rem);min-width:0;min-height:44px;flex:0 1 47px;padding:5px 0;background:#fff;border:1px solid #afc8c3;border-radius:8px;color:#244658;box-shadow:0 2px 0 #bbcfca;cursor:pointer;touch-action:manipulation}.hm-key-row button:hover:enabled{background:#d8efe2;transform:translateY(-1px)}.hm-key-row button[data-state=correct]{background:#28795f;border-color:#28795f;color:white;opacity:1}.hm-key-row button[data-state=wrong]{background:#e7d5d2;border-color:#bba6a2;color:#806865;opacity:1;text-decoration:line-through}.hm-key-row button:disabled{cursor:default;box-shadow:none}.hm-key-row button[data-state=ready]:disabled{opacity:.45}
.hm-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin-top:16px}.hm-actions button{min-height:44px;flex:1 1 170px}.hm-clue{padding:12px 14px;background:#fff3ce;border:1px solid #ead7a7;border-radius:12px;line-height:1.5;margin:12px 0 0}.hm-help{margin-top:16px;font-size:.9rem;line-height:1.6}.hm-help summary{cursor:pointer;min-height:30px}.hm-help p{margin:6px 0 0;color:#4c665e}.hm-root :focus-visible{outline:3px solid #b47c16;outline-offset:3px}
@media(max-width:420px){.hm-root{padding:12px}.hm-options{gap:8px}.hm-scene{gap:10px}.hm-dashboard{min-width:110px}.hm-figure{width:43%}.hm-key-row{gap:3px}.hm-key-row button{border-radius:6px}.hm-feedback{font-size:.9rem}.hm-stat{padding:6px 9px}.hm-stat span{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.hm-key-row button:hover:enabled{transform:none}}
