/* TWA / PWA standalone — ana ekran ikonundan açılış splash */

html.tu-stand-booting {
    overflow: hidden;
}

.tu-stand-splash {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    place-items: center;
    padding: 2rem 1.25rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(56, 189, 248, 0.18), transparent 58%),
        linear-gradient(165deg, #f8fafc 0%, #ffffff 42%, #eef2ff 100%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}

/* [hidden] kullanmadan yalnızca sınıf ile göster — !important gerekmez */
html.tu-stand-booting .tu-stand-splash {
    display: grid;
}

.tu-stand-splash.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tu-stand-splash__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
    max-width: 18rem;
}

.tu-stand-splash__icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(148, 163, 184, 0.2);
    animation: tu-stand-float 2.5s ease-in-out infinite;
}

.tu-stand-splash__icon--fallback {
    display: grid;
    place-items: center;
    background: #0f172a;
    color: #7dd3fc;
    font-size: 2rem;
}

.tu-stand-splash__ring {
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.45rem;
    border-radius: 50%;
    border: 2.5px solid #e2e8f0;
    border-top-color: #0ea5e9;
    animation: tu-stand-spin 0.7s linear infinite;
}

.tu-stand-splash__title {
    margin: 0.4rem 0 0;
    font-family: var(--font-persian, "Shabnam", Tahoma, sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.tu-stand-splash__sub {
    margin: 0;
    font-family: var(--font-persian, "Shabnam", Tahoma, sans-serif);
    font-size: 0.86rem;
    color: #64748b;
}

@keyframes tu-stand-spin {
    to { transform: rotate(360deg); }
}

@keyframes tu-stand-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .tu-stand-splash__icon,
    .tu-stand-splash__ring {
        animation: none;
    }
}
