body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
    min-width: 320px;
    transition: all 0.3s ease;
}

.game-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem !important;
}

.btn-enter-game {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
    width: 100%;
    margin-bottom: 15px;
}

.btn-enter-game:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    color: white !important;
}

.btn-enter-game:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-enter-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-enter-game:hover::before {
    left: 100%;
}

/* Contact Container */
.contact-container {
    margin-top: 1.5rem;
    animation: fadeInUp 0.5s ease-in-out;
    width: 100%;
}

.contact-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.9;
}

.contact-buttons-container {
    text-align: center;
    width: 100%;
}

/* Contact Buttons */
.btn-contact-line {
    background: linear-gradient(45deg, #00c300, #00b300) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 195, 0, 0.4);
    text-transform: none;
    letter-spacing: 0.5px;
    width: 100%;
    margin-bottom: 8px;
}

.btn-contact-line:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 195, 0, 0.6);
    color: white !important;
}

.btn-contact-telegram {
    background: linear-gradient(45deg, #0088cc, #0077bb) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    text-transform: none;
    letter-spacing: 0.5px;
    width: 100%;
    margin-bottom: 8px;
}

.btn-contact-telegram:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
    color: white !important;
}

.btn-contact-default {
    background: linear-gradient(45deg, #6c757d, #5a6268) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
    text-transform: none;
    letter-spacing: 0.5px;
    width: 100%;
    margin-bottom: 8px;
}

.btn-contact-default:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.6);
    color: white !important;
}

.loading-container {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
}

.loading-container p {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #ff6b6b;
    animation: spin 1s ease-in-out infinite;
}

/* Auto redirect loading state */
.auto-redirect-loading {
    padding: 40px;
    text-align: center;
}

.auto-redirect-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 5px;
    margin-bottom: 20px;
}

.auto-redirect-loading p {
    font-size: 1.2rem;
    margin: 0;
    animation: pulse 1.5s infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.btn-enter-game:disabled {
    background: linear-gradient(45deg, #6c757d, #adb5bd) !important;
    transform: none !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-enter-game:disabled:hover {
    transform: none !important;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Hide/Show animations */
.fade-out {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 576px) {
    .game-container {
        padding: 25px 20px;
        margin: 20px;
        min-width: auto;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .game-title {
        font-size: 2rem;
        margin-bottom: 1.5rem !important;
    }
    
    .btn-enter-game {
        font-size: 1rem;
        padding: 12px 18px;
    }
    
    .btn-contact-line,
    .btn-contact-telegram,
    .btn-contact-default {
        font-size: 0.95rem;
        padding: 10px 18px;
        margin-bottom: 6px;
    }
    
    .contact-container {
        margin-top: 1rem;
    }
    
    .contact-text {
        font-size: 0.85rem;
    }
    
    .loading-spinner {
        width: 35px;
        height: 35px;
        border-width: 3px;
    }
    
    .auto-redirect-loading .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }
}

/* Legacy styles (keep for compatibility) */
.custom-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #00ff88;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.redirect-info {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.thai-isp {
    color: #00ff88;
    font-weight: bold;
}

.foreign-ip {
    color: #ff6b6b;
    font-weight: bold;
}

.btn-custom-success {
    background: linear-gradient(45deg, #00ff88, #00d4aa) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-custom-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    color: white !important;
}

.btn-custom-danger {
    background: linear-gradient(45deg, #ff6b6b, #ff5252) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-custom-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white !important;
} 