* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTbpzLVcErBM6fz1KfNJFvEFPrk0jnjDCl_JA&s');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.15) 0%, rgba(37, 117, 252, 0.15) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

.screen {
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    display: none;
    animation: fadeIn 0.4s ease;
    color: rgba(255, 255, 255, 0.9);
}

.screen.active {
    display: block;
}

.age-warning {
    font-size: 48px;
    margin-bottom: 20px;
    color: rgba(255, 50, 50, 0.9);
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.5);
}

h1 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.warning-text {
    color: rgba(255, 100, 100, 0.9);
    font-weight: 600;
    font-size: 16px;
    padding: 10px;
    background: rgba(255, 50, 50, 0.1);
    border-radius: 10px;
    border-left: 3px solid rgba(255, 50, 50, 0.5);
}

.note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    margin-bottom: 20px;
}

.confirm-btn {
    background: linear-gradient(to right, rgba(255, 50, 50, 0.8), rgba(200, 0, 0, 0.8));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 50, 50, 0.3);
    background: linear-gradient(to right, rgba(255, 70, 70, 0.9), rgba(220, 20, 20, 0.9));
}

.phone-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.country-code {
    width: 100px;
}

.phone-number {
    flex: 1;
}

.phone-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    color: white;
}

.phone-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.phone-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-align: left;
    font-weight: 500;
}

.continue-btn {
    background: linear-gradient(to right, rgba(106, 17, 203, 0.8), rgba(37, 117, 252, 0.8));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.continue-btn:hover {
    background: linear-gradient(to right, rgba(126, 37, 223, 0.9), rgba(57, 137, 255, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.3);
}

.code-display {
    font-size: 32px;
    letter-spacing: 20px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-char {
    display: inline-block;
    width: 30px;
    text-align: center;
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.key {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.key:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.key:active {
    transform: scale(0.95);
}

.backspace {
    grid-column: span 2;
    background: rgba(255, 100, 100, 0.2);
    color: rgba(255, 200, 200, 0.9);
    font-size: 18px;
}

.backspace:hover {
    background: rgba(255, 100, 100, 0.3);
}

.success-icon {
    font-size: 64px;
    color: rgba(76, 255, 100, 0.9);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(76, 255, 100, 0.5);
}

.access-granted {
    color: rgba(76, 255, 100, 0.9);
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0;
}

.redirect-message {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 20px;
    font-style: italic;
}

.timer {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

.phone-display {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 10px 0 25px;
    font-size: 18px;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 95%;
    }
    
    .screen {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .age-warning {
        font-size: 40px;
    }
    
    .code-display {
        font-size: 26px;
        letter-spacing: 15px;
        margin: 25px 0;
        padding: 15px;
    }
    
    .key {
        padding: 18px;
        font-size: 22px;
    }
    
    .phone-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .country-code {
        width: 100%;
    }
}