/* Splash screen styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--duotone-yellow), var(--duotone-black));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.splash-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    animation: wave 3s ease-in-out infinite;
}

.splash-text {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeIn 1.5s ease-out;
}

.splash-beta {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: bold;
    background-color: var(--duotone-yellow);
    color: var(--duotone-black);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    transform: translateY(-15px);
    animation: pulse 2s infinite;
    border: 1px solid var(--duotone-black);
}

@keyframes pulse {
    0% { transform: translateY(-15px) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
    100% { transform: translateY(-15px) scale(1); }
}

.splash-subtext {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 2s ease-out;
}

.splash-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='white' fill-opacity='0.5' d='M0,192L40,181.3C80,171,160,149,240,144C320,139,400,149,480,154.7C560,160,640,160,720,170.7C800,181,880,203,960,186.7C1040,171,1120,117,1200,112C1280,107,1360,149,1400,170.7L1440,192L1440,320L1400,320C1360,320,1280,320,1200,320C1120,320,1040,320,960,320C880,320,800,320,720,320C640,320,560,320,480,320C400,320,320,320,240,320C160,320,80,320,40,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 1440px 100px;
    animation: wave-animation 12s linear infinite;
}

.splash-wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.7;
    animation: wave-animation 8s linear infinite;
}

.splash-wave:nth-child(3) {
    bottom: 20px;
    opacity: 0.5;
    animation: wave-animation 4s linear infinite;
}

/* Kite animation removed */

.splash-loader {
    margin-top: 1rem;
    width: 60px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeIn 2.5s ease-out;
}

.splash-loader:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 6px;
    background: white;
    border-radius: 3px;
    animation: loader 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes wave-animation {
    0% { background-position-x: 0; }
    100% { background-position-x: 1440px; }
}

/* Kite animation keyframes removed */

@keyframes loader {
    0% { left: -20px; }
    100% { left: 100%; }
}

/* Media queries */
@media (max-width: 768px) {
    .splash-text {
        font-size: 2rem;
    }
    
    .splash-subtext {
        font-size: 1rem;
    }
}

/* iOS specific adjustments */
.ios-device .splash-screen {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}