/*
 * Minimal preloader — clean white screen with a spinning ring and a
 * small brand wordmark. Replaces the gold-gradient luxury treatment.
 */

#tk-preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--color-surface, #ffffff);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 400ms ease, visibility 400ms ease;
}

#tk-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#tk-preloader.skip-instant {
    display: none !important;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.preloader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--color-text, #1a1a1a);
    animation: preloaderSpin 700ms linear infinite;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

.preloader-brand {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text-muted, #6e6e6e);
}

@media (prefers-reduced-motion: reduce) {
    .preloader-spinner {
        animation: none;
        border-top-color: rgba(0, 0, 0, 0.08);
        border-left-color: var(--color-text, #1a1a1a);
    }
}
