/* Приветственное модальное окно */
.welcome-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    will-change: opacity;
}

.welcome-modal-content {
    background: linear-gradient(to bottom, #4a5460 0%, #3a4450 50%, #2a3440 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 255, 0.1);
    position: relative;
    animation: slideDown 0.4s ease;
    border: 3px solid #7d8b9d;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.welcome-modal-content h2 {
    color: #00FFFF;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.welcome-modal-content p {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 15px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.welcome-close {
    position: absolute;
    right: 15px;
    top: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #7d8b9d;
    background: linear-gradient(to bottom, #5a6470, #4a5460);
    border: 2px solid #7d8b9d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}

.welcome-close:hover {
    color: #00FFFF;
    border-color: #00FFFF;
    background: linear-gradient(to bottom, #6a7480, #5a6470);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

  .text-highlight {
    color: rgba(0, 255, 255, 0.5);
  }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
    .welcome-modal-content {
        padding: 25px 15px;
        width: 95%;
    }

    .welcome-modal-content h2 {
        font-size: 1.2em;
    }

    .welcome-modal-content p {
        font-size: 0.95em;
        margin: 10px 0;
    }

    .welcome-close {
        right: 15px;
        top: 10px;
        font-size: 25px;
    }
}
