/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFB6D9 0%, #C5A3FF 100%);
    background-image: var(--splash-bg-image, linear-gradient(135deg, #FFB6D9 0%, #C5A3FF 100%));
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-out 3s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

/* Climbing Wall Container */
.cat-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 40px;
}

/* Climbing Wall */
.climbing-wall {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

/* Stick Figure */
.stick-figure {
    position: absolute;
    width: 40px;
    height: 60px;
    bottom: 0;
}

.stick-figure:nth-child(1) {
    left: 10%;
    animation: climb1 3s ease-in-out infinite;
}

.stick-figure:nth-child(2) {
    left: 35%;
    animation: climb2 3s ease-in-out infinite 0.5s;
}

.stick-figure:nth-child(3) {
    left: 60%;
    animation: climb3 3s ease-in-out infinite 1s;
}

.stick-figure:nth-child(4) {
    left: 85%;
    animation: climb4 3s ease-in-out infinite 1.5s;
}

@keyframes climb1 {
    0%, 100% { bottom: 0; }
    50% { bottom: 60%; }
}

@keyframes climb2 {
    0%, 100% { bottom: 0; }
    50% { bottom: 70%; }
}

@keyframes climb3 {
    0%, 100% { bottom: 0; }
    50% { bottom: 50%; }
}

@keyframes climb4 {
    0%, 100% { bottom: 0; }
    50% { bottom: 80%; }
}

/* Stick Figure Parts */
.stick-head {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.stick-body {
    width: 2px;
    height: 20px;
    background: white;
    margin: 0 auto;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.stick-arms {
    position: relative;
    height: 2px;
    width: 20px;
    background: white;
    margin: -10px auto 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.stick-legs {
    position: relative;
    height: 20px;
    width: 20px;
    margin: 0 auto;
}

.stick-leg {
    position: absolute;
    width: 2px;
    height: 15px;
    background: white;
    top: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.stick-leg:first-child {
    left: 5px;
    transform: rotate(-20deg);
}

.stick-leg:last-child {
    right: 5px;
    transform: rotate(20deg);
}

/* Loading Progress */
.loading-progress {
    width: 300px;
    text-align: center;
}

.progress-bar {
    display: none;
}

.progress-fill {
    display: none;
}

.progress-text {
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 480px) {
    .cat-container {
        width: 250px;
        height: 250px;
    }
    
    .stick-figure {
        width: 30px;
        height: 50px;
    }
    
    .stick-head {
        width: 10px;
        height: 10px;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    .progress-text {
        font-size: 20px;
    }
}
