
/* =========================================
   PLAY TOUR - SPLASH SCREEN
   File: public_html/main.css
========================================= */

:root {
    --bg: #101827;
    --bg-deep: #0b1220;
    --blue: #59aaff;
    --blue-bright: #8bc7ff;
    --cyan: #52e5ff;
    --purple: #9a75ff;
    --text: #f5f8ff;
    --muted: #8797b2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.splash-screen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            ellipse at 50% 42%,
            rgba(40, 83, 145, 0.2) 0%,
            transparent 43%
        ),
        linear-gradient(
            145deg,
            #131e31 0%,
            #101827 48%,
            #0b1220 100%
        );
}

.background-gradient {
    position: absolute;
    inset: 0;
    z-index: -5;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(69, 127, 255, 0.09),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(147, 83, 255, 0.09),
            transparent 35%
        );
    pointer-events: none;
}

/* Background grid */

.bg-grid {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(
            rgba(133, 177, 255, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(133, 177, 255, 0.045) 1px,
            transparent 1px
        );
    background-size: 38px 38px;
    opacity: 0.65;
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        black 10%,
        transparent 78%
    );
    mask-image: radial-gradient(
        ellipse at center,
        black 10%,
        transparent 78%
    );
    pointer-events: none;
}

/* Ambient glow */

.aura {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.2;
    z-index: -2;
    pointer-events: none;
    animation: auraPulse 5s ease-in-out infinite alternate;
}

.aura-one {
    top: 12%;
    left: -100px;
    background: #287bff;
}

.aura-two {
    right: -100px;
    bottom: 8%;
    background: #8c48ff;
    animation-delay: 1.5s;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Main content */

.splash-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    padding: 28px 26px;
    animation: fadeIn 0.8s ease both;
}

/* Logo */

.logo-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 170px;
    margin-bottom: 31px;
    animation: logoFloat 4s ease-in-out infinite;
}

.aura-glow {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: rgba(65, 142, 255, 0.23);
    filter: blur(31px);
    transform: scale(1.08);
    animation: glowPulse 3s ease-in-out infinite;
}

.logo-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 116px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 197, 255, 0.4);
    border-radius: 29px;
    background: linear-gradient(
        145deg,
        rgba(36, 54, 83, 0.96),
        rgba(14, 24, 42, 0.97)
    );
    box-shadow:
        0 0 0 6px rgba(84, 157, 255, 0.045),
        0 0 28px rgba(73, 151, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    z-index: 2;
}

.logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 21px;
}

.fallback-logo {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 21px;
    background: linear-gradient(135deg, #55a9ff, #7864ff);
    font-family: "Orbitron", sans-serif;
    font-size: 35px;
    font-weight: 900;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
}

/* Rotating ring */

.spin-ring {
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(94, 175, 255, 0.22);
    border-radius: 50%;
    animation: spinRing 8s linear infinite;
}

.spin-ring::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px dashed rgba(105, 185, 255, 0.22);
    border-radius: 50%;
}

.ring-dot {
    position: absolute;
    top: 13px;
    left: 25px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow:
        0 0 8px var(--cyan),
        0 0 18px rgba(82, 229, 255, 0.7);
}

/* Brand title */

.brand-content {
    width: 100%;
    text-align: center;
    animation: fadeUp 0.8s 0.15s ease both;
}

.brand-title {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(31px, 8vw, 43px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 2.2px;
    color: #f5f8ff;
    text-shadow:
        0 0 22px rgba(95, 164, 255, 0.13);
}

.brand-title span {
    color: var(--blue);
    background: linear-gradient(
        100deg,
        #68b7ff 0%,
        #85a5ff 55%,
        #b38bff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    margin-top: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #9db1cf;
}

/* Loading */

.loading-container {
    width: 100%;
    max-width: 270px;
    margin-top: 53px;
    animation: fadeUp 0.8s 0.3s ease both;
}

.loading-track {
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(151, 179, 218, 0.14);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.loading-progress {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #398cff,
        #5fe5ff,
        #9a83ff
    );
    box-shadow: 0 0 12px rgba(87, 172, 255, 0.6);
    transform: scaleX(0);
    transform-origin: left;
    animation: loadingBar 2.2s ease-in-out forwards;
}

.loading-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
}

.loading-text {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    color: #8497b5;
}

.loading-percent {
    min-width: 32px;
    text-align: right;
    font-family: "Orbitron", sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #8bc7ff;
}

/* Status pill */

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 29px;
    padding: 10px 15px;
    border: 1px solid rgba(122, 167, 228, 0.16);
    border-radius: 50px;
    background: rgba(49, 70, 103, 0.2);
    color: #a6b7d2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    animation: fadeUp 0.8s 0.45s ease both;
}

.status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #5df0b2;
    box-shadow: 0 0 10px rgba(93, 240, 178, 0.8);
    animation: statusBlink 1.5s ease-in-out infinite;
}

/* Footer */

.splash-footer {
    position: absolute;
    right: 15px;
    bottom: max(23px, env(safe-area-inset-bottom));
    left: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    animation: fadeIn 1s 0.5s ease both;
}

.footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(118, 166, 226, 0.15);
    border-radius: 50px;
    background: rgba(32, 47, 71, 0.34);
    color: #a8bad5;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.footer-badge-icon {
    color: #81baff;
    font-size: 12px;
}

.copyright {
    color: #657792;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* Animations */

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(13px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@keyframes auraPulse {
    from {
        opacity: 0.12;
        transform: scale(0.9);
    }
    to {
        opacity: 0.25;
        transform: scale(1.12);
    }
}

@keyframes spinRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingBar {
    0% {
        transform: scaleX(0);
    }
    35% {
        transform: scaleX(0.4);
    }
    70% {
        transform: scaleX(0.76);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes statusBlink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

/* Small screens */

@media (max-width: 360px) {
    .logo-area {
        width: 145px;
        height: 145px;
        margin-bottom: 25px;
    }

    .logo-frame {
        width: 100px;
        height: 100px;
        border-radius: 25px;
    }

    .brand-title {
        font-size: 29px;
        letter-spacing: 1.6px;
    }

    .brand-subtitle {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .loading-container {
        margin-top: 40px;
    }

    .status-pill {
        font-size: 8px;
    }
}

/* Respect device animation preferences */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
