* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    position: relative;
}

/* Стили для контента с полупрозрачным фоном */
.content {
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: filter 0.5s ease, opacity 0.5s ease;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Полупрозрачный фон с размытием */
.content.blurred {
    filter: blur(20px) brightness(0.7);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    position: relative;
}

/* Добавляем дополнительный полупрозрачный слой поверх контента */
.content.blurred::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Стили для оверлея с возрастным ограничением */
.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
    background: rgba(0, 0, 0, 0.85); /* Полупрозрачный черный фон */
    backdrop-filter: blur(5px); /* Легкое размытие фона */
}

.age-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Контейнер с возрастным ограничением */
.age-box {
    background: rgba(20, 20, 30, 0.95); /* Полупрозрачный темный фон */
    backdrop-filter: blur(20px); /* Сильное размытие для стеклянного эффекта */
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeIn 0.6s ease-out;
    position: relative;
    z-index: 2;
}

/* Эффект свечения по краям */
.age-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #ff4757, #ff6b81, #ff4757);
    border-radius: 21px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(5px);
}

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

.age-icon {
    font-size: 80px;
    color: #ff4757;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    }
    50% { 
        transform: scale(1.1); 
        text-shadow: 0 0 30px rgba(255, 71, 87, 0.8);
    }
    100% { 
        transform: scale(1); 
        text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    }
}

h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #fff, #ffccd3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.warning-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    padding: 0 10px;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.age-btn {
    padding: 16px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.age-btn::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.5s ease;
    z-index: -1;
}

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

.btn-yes {
    background: linear-gradient(45deg, #00b09b, #96c93d);
    color: white;
    box-shadow: 0 5px 25px rgba(0, 176, 155, 0.4);
    border: 2px solid rgba(150, 201, 61, 0.3);
}

.btn-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 176, 155, 0.6);
}

.btn-no {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    box-shadow: 0 5px 25px rgba(255, 65, 108, 0.4);
    border: 2px solid rgba(255, 75, 43, 0.3);
}

.btn-no:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 65, 108, 0.6);
}

.age-btn:active {
    transform: translateY(1px);
}

.footer-note {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    line-height: 1.5;
    padding: 0 10px;
}

/* Стили для уведомлений */
@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .age-box {
        padding: 30px 20px;
        width: 95%;
        margin: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .warning-text {
        font-size: 1em;
        padding: 0 5px;
    }
    
    .age-btn {
        padding: 14px 30px;
        min-width: 140px;
        font-size: 1em;
    }
    
    .age-icon {
        font-size: 60px;
    }
    
    .buttons {
        gap: 15px;
        margin: 20px 0;
    }
    
    .content {
        padding: 15px;
    }
    
    .content.blurred {
        filter: blur(15px) brightness(0.6);
    }
}

@media (max-width: 480px) {
    .buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .age-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .age-box {
        padding: 25px 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .warning-text {
        font-size: 0.95em;
    }
    
    .footer-note {
        font-size: 0.85em;
    }
}