/* Splash Screen CSS - Premium Casino Edition */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483000;
    background: radial-gradient(circle at 50% 35%, #2d1b4e 0%, #1a1033 55%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-screen.splash-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#splash-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.45));
    animation: casinoFloat 3s ease-in-out infinite;
    margin-bottom: 30px;
    border-radius: 16px;
}

/* Brand text under logo */
.splash-brand {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: brandGlow 2s ease-in-out infinite;
}

/* Progress Bar Container */
.splash-loader-container {
    width: 260px;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
}

/* The actual moving bar */
.splash-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #f59e0b, #ff007a);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: loaderFill 7s linear forwards, loaderShine 1.5s linear infinite;
}

/* Casino chip decorations */
.splash-chip {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b 70%);
    border: 4px dashed rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    animation: chipSpin 6s linear infinite;
}

.splash-chip.chip-2 { background: radial-gradient(circle at 30% 30%, #ff007a, #7a0030 70%); animation-duration: 7s; }
.splash-chip.chip-3 { background: radial-gradient(circle at 30% 30%, #22c55e, #0f7a35 70%); animation-duration: 8s; }
.splash-chip.chip-4 { background: radial-gradient(circle at 30% 30%, #4f46e5, #221a7a 70%); animation-duration: 5s; }
.splash-chip.chip-5 { background: radial-gradient(circle at 30% 30%, #f59e0b, #8a5a00 70%); animation-duration: 9s; }

/* Sparkle stars */
.splash-sparkle {
    position: absolute;
    color: #ffd700;
    font-size: 18px;
    opacity: 0;
    animation: sparkleTwinkle 2.5s ease-in-out infinite;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
}

.splash-sparkle.sp-1 { top: 15%; left: 12%; animation-delay: 0s; }
.splash-sparkle.sp-2 { top: 25%; right: 15%; animation-delay: 0.6s; }
.splash-sparkle.sp-3 { bottom: 22%; left: 20%; animation-delay: 1.1s; }
.splash-sparkle.sp-4 { bottom: 15%; right: 12%; animation-delay: 1.6s; }
.splash-sparkle.sp-5 { top: 10%; right: 40%; animation-delay: 0.3s; }
.splash-sparkle.sp-6 { bottom: 30%; right: 35%; animation-delay: 2.1s; }

/* Animations */
@keyframes casinoFloat {
    0%   { transform: translateY(0px) scale(1); }
    50%  { transform: translateY(-16px) scale(1.04) rotate(1deg); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes brandGlow {
    0%, 100% { text-shadow: 0 0 12px rgba(255, 215, 0, 0.5); }
    50%      { text-shadow: 0 0 28px rgba(255, 215, 0, 0.95); }
}

@keyframes loaderFill {
    0%   { width: 0%; }
    100% { width: 100%; }
}

@keyframes loaderShine {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

@keyframes chipSpin {
    0%   { transform: translateY(120vh) rotate(0deg); }
    100% { transform: translateY(-20vh) rotate(720deg); }
}

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.6); }
    50%      { opacity: 1; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    #splash-logo, .splash-brand, .splash-chip, .splash-sparkle { animation: none; }
    .splash-loader-bar { animation: loaderFill 7s linear forwards; }
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #ffffff;
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    z-index: 9998;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

.nav-item {
    text-decoration: none;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 5px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item i {
    font-size: 1.4rem;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item:hover {
    color: #6610f2;
}

.nav-item.active {
    color: #6610f2;
}
