@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.welcome-content {
    position: relative;
    background: linear-gradient(180deg, rgba(20,20,20,0.9), rgba(8,8,8,0.96));
    padding: 64px 60px 52px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    max-width: 440px;
    width: 90%;
    animation: modalPop 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated glowing border trail — outer edge only, does not affect content */
.welcome-content::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 0%,
        transparent 74%,
        rgba(255, 255, 255, 0.9) 87%,
        rgba(255, 255, 255, 0.35) 92%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: borderTravel 4.5s linear infinite;
}

@keyframes borderTravel {
    to { --border-angle: 360deg; }
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    z-index: 3;
}

.welcome-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #6f6f6f;
    margin-bottom: 18px;
}

.welcome-content h2 {
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 44px;
    color: #f2f2f2;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.welcome-btn {
    width: 100%;
    padding: 16px 18px;
    margin: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: inherit;
}

.telegram-btn {
    background: rgba(255, 255, 255, 0.03);
    color: #d8d8d8;
}

.telegram-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.continue-btn {
    background: #f2f2f2;
    color: #0a0a0a;
    border: 1px solid #f2f2f2;
    font-weight: 600;
}

.continue-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.welcome-btn:active {
    transform: translateY(0);
}
