.hm-vibe {
  --game-ui-primary: #245c48;
  --hm-good: #166534;
  --hm-good-bg: #dcfce7;
  --hm-miss: #9f1239;
  --hm-miss-bg: #fff1f2;
}
.hm-theme.setup-card { border-color: var(--accent); }
.hm-vibe .game-stage {
  width: 100%; padding: clamp(10px, 2vw, 22px); border-radius: 20px;
  background: var(--game-ui-stage); box-shadow: var(--shadow); gap: 14px;
}
.hm-garden { width: min(100%, 940px); min-width: 0; }
.hm-banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 16px;
  padding: 20px; background: #174a42; color: #fff; margin-bottom: 14px;
}
.hm-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #163e3bf5, #174a42d9 47%, #174a4250),
    url("../assets/hangman/word-garden.svg") center / cover;
}
.hm-banner h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 5px 0; }
.hm-banner p { margin: 4px 0; line-height: 1.5; }
.hm-eyebrow { font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: #ffdf80; }
.hm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; align-items: start; }
.hm-play { display: grid; gap: 14px; }
.hm-word-panel { text-align: center; }
.hm-word-meta { margin: 0 0 12px; font-size: .85rem; color: var(--game-ui-muted); }
.hm-vibe .hm-word {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin: 0; letter-spacing: normal; font-family: inherit; color: var(--game-ui-ink);
}
.hm-letter {
  display: grid; place-items: center; width: clamp(27px, 4vw, 43px); height: 48px;
  border: 1px solid var(--game-ui-border); border-bottom: 3px solid #7a9c8b;
  border-radius: 8px; background: var(--game-ui-inset); font-size: 1.3rem; font-weight: 900;
}
.hm-letter.is-found { background: var(--hm-good-bg); color: var(--hm-good); border-color: #61b48b; animation: hm-letter-pop .2s ease-out; }
.hm-letter.is-revealed { background: var(--hm-miss-bg); color: var(--hm-miss); }
.hm-vibe .hm-keyboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 6px; margin: 0; width: 100%; }
.hm-vibe .hm-key {
  min-width: 0; width: 100%; height: 44px; border: 1px solid var(--game-ui-border);
  border-radius: 9px; font-size: .95rem; font-weight: 850;
  background: var(--game-ui-panel); color: var(--game-ui-ink);
}
.hm-vibe .hm-key:hover:not(:disabled) { border-color: var(--game-ui-focus); background: var(--game-ui-inset); transform: translateY(-2px); }
.hm-vibe .hm-key:focus-visible { outline: 3px solid var(--game-ui-focus); outline-offset: 2px; }
.hm-vibe .hm-key:disabled { opacity: .65; cursor: default; }
.hm-vibe .hm-key.correct { background: var(--hm-good-bg); color: var(--hm-good); border-color: #61b48b; opacity: 1; }
.hm-vibe .hm-key.wrong { background: var(--hm-miss-bg); color: var(--hm-miss); border-color: #e49bad; text-decoration: line-through; }
.hm-key-help { margin: 12px 0 0; color: var(--game-ui-muted); font-size: .8rem; line-height: 1.45; }
.hm-progress { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hm-lives { display: flex; gap: 5px; }
.hm-life { width: 15px; height: 20px; border-radius: 12px 2px 12px 2px; background: #31bb87; border: 1px solid #17825b; transform: rotate(20deg); }
.hm-life.is-lost { background: #d8c8cf; border-color: #ab8997; opacity: .45; }
.hm-drawing { display: block; width: 100%; height: 210px; border-radius: 12px; background: #173d36; }
.hm-drawing .hm-chalk { fill: none; stroke: #fff5d4; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hm-drawing .hm-part { position: static; animation: hm-letter-pop .25s ease-out; transform-origin: center; }
.hm-drawing .hm-drawing-frame { stroke: #75ac99; stroke-width: 7; fill: none; stroke-linecap: round; }
.hm-vibe .hm-status { color: var(--game-ui-ink); text-align: left; font-size: .95rem; line-height: 1.5; min-height: 3em; margin: 12px 0; }
.hm-status[data-outcome="win"] { color: var(--hm-good); }
.hm-status[data-outcome="loss"] { color: var(--hm-miss); }
.hm-replay { width: 100%; }
.hm-replay[hidden] { display: none; }
.hm-clue { margin-top: 14px; }
.hm-clue summary { cursor: pointer; padding: 4px 0; font-weight: 750; }
.hm-clue summary:focus-visible { outline: 3px solid var(--game-ui-focus); outline-offset: 3px; }
.hm-clue p { color: var(--game-ui-muted); font-size: .85rem; line-height: 1.5; }
[data-theme="dark"] .hm-vibe { --hm-good: #c4ffe5; --hm-good-bg: #143f34; --hm-miss: #ffb6c8; --hm-miss-bg: #482038; }
@keyframes hm-letter-pop { from { opacity: .35; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 720px) {
  .hm-layout { grid-template-columns: minmax(0, 1fr); }
  .hm-round { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 0 12px; }
  .hm-progress, .hm-status, .hm-replay { grid-column: 1; }
  .hm-drawing { grid-column: 2; grid-row: 1 / span 3; height: 160px; }
  .hm-progress { align-self: start; }
  .hm-banner { padding: 14px; }
}
@media (max-width: 420px) {
  .hm-round { grid-template-columns: minmax(0, 1fr) 90px; gap: 0 8px; }
  .hm-drawing { height: 145px; }
  .hm-progress strong { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-letter.is-found, .hm-drawing .hm-part { animation: none; }
  .hm-vibe .hm-key { transition: none; }
}
