/* Help Modal Overlay */
.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.help-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.help-modal {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.help-overlay.active .help-modal {
    transform: translateY(0);
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.help-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.help-close:hover {
    color: #fff;
}

.help-section {
    margin-bottom: 1.5rem;
}

.help-section h4 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.help-section p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.help-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.control-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ddd;
}

.key-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dont-show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Cursor Hint */
.cursor-hint {
    position: fixed;
    pointer-events: none;
    background: rgba(0, 243, 255, 0.9);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 9998;
    transform: translate(15px, 15px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    transition: opacity 0.2s;
    opacity: 0;
}

.cursor-hint.visible {
    opacity: 1;
}

/* Help Trigger Button (Floating) */
.help-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.help-trigger:hover {
    background: var(--neon-cyan);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}