/* ==========================================
   GAME PROTECTION STYLES
   ========================================== */

/* Unauthorized Domain Overlay */
#unauthorized-overlay {
    font-family: 'Roboto', Arial, sans-serif;
}

#unauthorized-overlay .unauthorized-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#unauthorized-overlay .unauthorized-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#unauthorized-overlay h2 {
    color: #e74c3c;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

#unauthorized-overlay p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

#unauthorized-overlay .unauthorized-domain {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #e74c3c;
}

#unauthorized-overlay .unauthorized-domain strong {
    color: #e74c3c;
    font-weight: 700;
}

#unauthorized-overlay .btn-go-official {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#unauthorized-overlay .btn-go-official:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Watermark */
#game-watermark {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* DevTools Warning Overlay */
.devtools-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.devtools-warning-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    text-align: center;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.devtools-warning-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 24px;
}

.devtools-warning-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.devtools-warning-content button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.devtools-warning-content button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Right-click disabled message */
.right-click-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s ease-out;
    z-index: 999998;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Disable text selection (applied by JS) */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading protection indicator */
.protection-loading {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    z-index: 999997;
    animation: fadeIn 0.3s ease-in;
}

.protection-loading::before {
    content: '🛡️ ';
    margin-right: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #unauthorized-overlay .unauthorized-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    #unauthorized-overlay h2 {
        font-size: 22px;
    }
    
    #unauthorized-overlay .unauthorized-icon {
        font-size: 60px;
    }
    
    .devtools-warning-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    #game-watermark {
        font-size: 24px !important;
    }
}

/* Print protection */
@media print {
    body {
        display: none !important;
    }
}
