/* Galgenmännchen — spielspezifische Styles (Chrome aus ../style.css) */

.hero-galgen { font-size: 26px; font-weight: 800; letter-spacing: .18em; color: var(--gold); margin-bottom: 8px; }
/* S15: „Galgenmännchen" ist EIN 14-Buchstaben-Wort — der Standard-Hero
   (min 52px) sprengt 360px-Viewports → kleinere Untergrenze */
.hero h1 { font-size: clamp(34px, 10.5vw, 84px); }

.players { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.pl {
    display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--panel-border); font-size: 14px;
}
.pl .nm { display: flex; align-items: center; gap: 6px; }
.pl .score { color: var(--gold); font-weight: 800; }
.pl .tagx { font-size: 11.5px; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.pl.turn { border-color: var(--gold); box-shadow: 0 0 18px rgba(242, 193, 78, .25); animation: focus-pulse 1.6s infinite; }

.round-hint { text-align: center; color: var(--muted); font-size: 13px; min-height: 18px; margin: 0; }

/* Bühne: Galgen links, Wort rechts (mobil untereinander) */
.stage {
    display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap;
    width: min(100%, 640px); margin: 8px auto; padding: 14px;
    background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px;
}
#gallows { width: clamp(110px, 30vw, 160px); flex: none; }
#gallows .chalk { stroke: #e8ecf3; stroke-width: 4; stroke-linecap: round; fill: none; }
#gallows .fresh { animation: chalk-in .45s ease-out; }
@keyframes chalk-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.stage-right { flex: 1; min-width: 200px; display: grid; gap: 10px; justify-items: center; }

.word { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.wl {
    width: clamp(22px, 6.4vw, 34px); height: clamp(30px, 8.6vw, 44px);
    display: grid; place-items: center; font-weight: 800; font-size: clamp(16px, 5vw, 24px);
    border-bottom: 3px solid var(--muted); border-radius: 4px 4px 0 0;
    background: rgba(255, 255, 255, .04);
}
.wl.hit { color: var(--text); border-color: var(--green); animation: ttt-in .25s ease-out; }
.wl.lost { color: var(--red); border-color: var(--red); }
@keyframes ttt-in { from { transform: scale(.5); opacity: .2; } to { transform: none; opacity: 1; } }

.lives-row { text-align: center; color: var(--muted); font-size: 13.5px; min-height: 20px; margin: 0; }
.reveal { text-align: center; font-size: 16px; padding: 8px 14px; border-radius: 10px; background: rgba(242, 193, 78, .12); border: 1px solid rgba(242, 193, 78, .4); }

/* Bildschirm-Tastatur (S15: ≥44px-Ziele) */
.keyboard {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px;
    width: min(100%, 560px); margin: 10px auto 4px;
}
.keyboard.focus .key:not(:disabled) { border-color: rgba(242, 193, 78, .45); }
.key {
    min-height: 46px; border-radius: 9px; font: inherit; font-weight: 800; font-size: 16px;
    background: rgba(255, 255, 255, .07); border: 1px solid var(--panel-border); color: var(--text);
    cursor: pointer;
}
.key:disabled { cursor: default; opacity: .45; }
.key.hit { background: rgba(63, 191, 111, .3); border-color: var(--green); opacity: 1; }
.key.miss { background: rgba(229, 72, 77, .22); border-color: rgba(229, 72, 77, .6); opacity: .6; }

/* Wortgeber-Eingabe */
.action-box { width: min(560px, 100%); margin: 8px auto; }
.action-title { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.action-box.focus .action-title { font-size: 16.5px; font-weight: 800; color: var(--text); }
.compose-row { display: flex; gap: 8px; }
.compose-row input { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.compose-row .btn { min-height: 48px; white-space: nowrap; }
