/* Help Button - styled as tag */
.help-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-tag svg {
    width: 14px;
    height: 14px;
}

.help-tag:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 1101;
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border-focus);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1102;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.3);
}

.modal-content h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-purple);
    transform: rotate(90deg);
}

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

.help-section h3 {
    color: var(--accent-purple);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.help-section ul {
    list-style: none;
    padding: 0;
}

.help-section li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.help-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.example-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.example-commands code {
    background: rgba(147, 51, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--accent-purple);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-commands code:hover {
    background: rgba(147, 51, 234, 0.2);
    transform: translateY(-2px);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Game Container */
.game-container {
    margin: 1.5rem 0;
    border: 2px solid var(--border-focus);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.2);
}

.game-iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    display: block;
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .help-button {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 90vh;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .game-iframe {
        min-height: 400px;
    }
}