.app-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 8, 11, 0.08);
    backdrop-filter: blur(10px) saturate(104%);
    -webkit-backdrop-filter: blur(10px) saturate(104%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.42s ease, visibility 0.42s ease;
}

.app-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.12);
    opacity: 1;
    pointer-events: none;
}

.app-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-loader-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    padding: 0;
}

.app-loader-letter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    font-weight: 450;
    letter-spacing: -0.045em;
    color: rgba(248, 250, 252, 0.92);
}

.app-loader-letter {
    display: inline-block;
    opacity: 0.3;
    transform: translateY(2px);
    animation: appLoaderLetter 1.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: calc(var(--letter-index) * 0.045s);
}

.welcome-modal {
    position: fixed;
    inset: 0;
    z-index: 2900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 6, 10, 0.58);
    backdrop-filter: blur(16px) saturate(108%);
    -webkit-backdrop-filter: blur(16px) saturate(108%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.welcome-modal.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-modal-card {
    width: min(460px, calc(100vw - 28px));
    padding: 28px 28px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 34%),
        rgba(8, 10, 14, 0.96);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.welcome-modal-kicker {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #34d399;
}

.welcome-modal-title {
    margin-top: 12px;
    font-size: 32px;
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 700;
    color: #f8fafc;
}

.welcome-modal-copy {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
}

.welcome-badge-card {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03)),
        rgba(255, 255, 255, 0.02);
}

.welcome-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
    font-size: 28px;
}

.welcome-badge-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-badge-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8ee6c4;
}

.welcome-badge-name {
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: #f8fafc;
}

.welcome-badge-copy {
    font-size: 12px;
    line-height: 1.65;
    color: #94a3b8;
}

.welcome-modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.welcome-modal-btn {
    min-width: 172px;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0 18px;
    background: #f8fafc;
    color: #0a0c12;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.welcome-modal-btn:hover {
    transform: translateY(-1px);
    background: #ffffff;
}

.app-tour-overlay,
.app-tour-segment,
.app-tour-hitbox,
.app-tour-focus-ring,
.app-tour-tooltip,
.app-tour-targeted,
.app-tour-step,
.app-tour-step-label,
.app-tour-skip,
.app-tour-title,
.app-tour-copy,
.app-tour-footer,
.app-tour-hint,
.app-tour-progress,
.app-tour-progress-dot {
    display: none !important;
}

@keyframes appLoaderLetter {
    0%,
    100% {
        opacity: 0.3;
        transform: translateY(2px);
    }
    35% {
        opacity: 1;
        transform: translateY(0);
    }
    62% {
        opacity: 0.78;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .welcome-modal-card {
        width: min(420px, calc(100vw - 24px));
    }
}

@media (max-width: 640px) {
    .app-loader-panel {
        width: auto;
    }

    .welcome-modal {
        padding: 16px;
    }

    .welcome-modal-card {
        width: min(100%, calc(100vw - 16px));
        padding: 22px 18px 18px;
        border-radius: 20px;
    }

    .welcome-modal-title {
        font-size: 28px;
    }

    .welcome-badge-card {
        align-items: flex-start;
    }

    .welcome-modal-actions {
        justify-content: stretch;
    }

    .welcome-modal-btn {
        width: 100%;
    }
}
