.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.1s, opacity 0.2s;
    width: 100%;
}

.btn.small {
    width: auto;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.primary {
    background-color: var(--accent);
    color: white;
}

.btn.primary:hover:not(:disabled) {
    background-color: var(--accent-hover);
}

.btn.secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff;
}

.btn.danger-outline {
    background: transparent;
    border: 1px solid var(--danger);
    color: #ffaaa4;
}

.btn.danger-outline:hover:not(:disabled),
.btn.danger-outline:focus-visible {
    background: color-mix(in srgb, var(--danger) 18%, transparent);
    color: var(--text-main);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes bounce-mini {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.btn-icon {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.btn-info {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Round Buttons (Auxiliary/Debug) */
.btn-round {
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-round.small {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem;
}

/* Premium Modal Back Button */
.modal .modal-back-button {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.modal .modal-back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-gold);
    transform: translateY(-50%) rotate(-90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

/* Unified Pixel Close Button */
.btn-pixel-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 4px 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: Arial, sans-serif; /* Standard cross character */
}

.btn-pixel-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: scale(1.1);
}

.btn-pixel-close:active {
    transform: scale(0.9);
}
