
    @import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@400;600;800&display=swap');
    .hangman-game-container {
        --hg-board-bg: #1e3a2b; --hg-board-inner: #152b20; --hg-frame: #5c3826;
        --hg-chalk: #f8fafc; --hg-chalk-muted: #cbd5e1; --hg-chalk-yellow: #fde047;
        --hg-success: #34d399; --hg-error: #f87171; --hg-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        --hg-radius: 16px; font-family: 'Inter', system-ui, sans-serif;
        background-color: var(--hg-board-bg);
        background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
        background-size: 16px 16px; color: var(--hg-chalk); max-width: 900px;
        margin: 0 auto; padding: 24px; border-radius: var(--hg-radius);
        box-shadow: var(--hg-shadow); box-sizing: border-box; border: 10px solid var(--hg-frame);
        position: relative;
    }
    .hg-watermark-logo {
        position: absolute; bottom: 16px; right: 16px; width: 55px; height: 55px;
        object-fit: contain; opacity: 0.5; z-index: 10; pointer-events: none;
    }
    .hangman-game-container *, .hangman-game-container *::before, .hangman-game-container *::after { box-sizing: border-box; margin: 0; padding: 0; }
    .hg-header { text-align: center; margin-bottom: 16px; }
    .hg-title { font-family: 'Caveat', cursive; font-size: 2.6rem; font-weight: 700; color: var(--hg-chalk); margin-bottom: 2px; }
    .hg-subtitle { font-size: 0.9rem; color: var(--hg-chalk-muted); }
    .hg-stats-bar { display: flex; justify-content: space-between; align-items: center; background: rgba(0, 0, 0, 0.25); padding: 8px 16px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.2); margin-bottom: 20px; font-size: 0.9rem; font-weight: 600; }
    .hg-badge { background: rgba(255, 255, 255, 0.15); color: var(--hg-chalk-yellow); padding: 2px 10px; border-radius: 20px; font-weight: 700; font-family: 'Caveat', cursive; font-size: 1.2rem; }
    .hg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
    @media (max-width: 768px) { .hg-grid { grid-template-columns: 1fr; } }
    .hg-left-panel { display: flex; flex-direction: column; align-items: center; background-color: var(--hg-board-inner); padding: 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 15px rgba(0,0,0,0.5); width: 100%; }
    .hg-svg-wrapper { width: 100%; max-width: 240px; height: 240px; display: flex; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.2); border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.15); margin-bottom: 16px; }
    .hg-svg-wrapper svg { width: 100%; height: 100%; }
    .hg-part { stroke: #ffffff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: 0; filter: drop-shadow(0px 0px 2px rgba(255,255,255,0.8)); transition: opacity 0.25s ease-in-out; }
    .hg-part.visible { opacity: 1; }
    .hg-part.rope { stroke: #fde047; stroke-width: 3.5; stroke-dasharray: 4 2; }
    
    .hg-word-display { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 0px; margin-top: 10px; min-height: 48px; width: 100%; }
    .hg-word-group { display: inline-flex; flex-wrap: nowrap; gap: 3px; margin-right: 18px; margin-bottom: 6px; }
    .hg-word-group:last-child { margin-right: 0; }
    .hg-letter-box { width: 24px; height: 38px; border-bottom: 3px solid var(--hg-chalk); display: flex; align-items: center; justify-content: center; font-family: 'Caveat', cursive, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--hg-chalk); text-transform: uppercase; user-select: none; }
    .hg-letter-box.revealed-missed { color: var(--hg-error); border-bottom-color: var(--hg-error); }
    .hg-letter-box.symbol { border-bottom: none; width: auto; min-width: 10px; }
    
    .hg-right-panel { display: flex; flex-direction: column; gap: 16px; }
    .hg-keyboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
    .hg-key { aspect-ratio: 1; background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 6px; font-family: 'Caveat', cursive, sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--hg-chalk); cursor: pointer; display: flex; align-items: center; justify-content: center; user-select: none; outline: none; text-transform: uppercase; transition: all 0.15s ease; }
    .hg-key:hover:not(:disabled) { background: rgba(255, 255, 255, 0.22); border-color: var(--hg-chalk); }
    .hg-key:disabled { cursor: not-allowed; opacity: 0.3; }
    .hg-key.correct { background-color: rgba(52, 211, 153, 0.3) !important; color: var(--hg-success) !important; border-color: var(--hg-success) !important; opacity: 1 !important; }
    .hg-key.wrong { background-color: rgba(248, 113, 113, 0.25) !important; color: var(--hg-error) !important; border-color: var(--hg-error) !important; opacity: 0.6 !important; }
    .hg-status-modal { background-color: var(--hg-board-inner); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 16px; text-align: center; display: none; }
    .hg-status-modal.active { display: block; }
    .hg-status-modal.win { border-color: var(--hg-success); }
    .hg-status-modal.lose { border-color: var(--hg-error); }
    .hg-modal-title { font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.6rem; margin-bottom: 2px; }
    .hg-modal-title.win { color: var(--hg-success); }
    .hg-modal-title.lose { color: var(--hg-error); }
    .hg-restart-btn { background-color: rgba(255, 255, 255, 0.15); color: var(--hg-chalk); border: 1.5px solid var(--hg-chalk); padding: 8px 16px; border-radius: 8px; font-size: 0.95rem; font-weight: 700; cursor: pointer; width: 100%; margin-top: 10px; }
    .hg-restart-btn:hover { background-color: var(--hg-chalk); color: var(--hg-board-bg); }
    
