/* Прелоадер */
.preloader-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f79a34;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-global.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Падающие суши */
.sushi-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.sushi {
    position: absolute;
    font-size: 30px;
    animation: fall linear infinite;
    opacity: 0.6;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Логотип Miami */
.logo-preloader-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.logo-preloader {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 72px;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 2px;
}

.sushi-tagline {
    color: #fff;
    font-size: 18px;
    margin-top: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Суши-ролл спиннер */
.sushi-spinner {
    position: relative;
    z-index: 10;
    width: 120px;
    height: 120px;
    margin: 30px auto;
    animation: rotate 5s linear infinite;
}

.sushi-roll {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border: 8px solid #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.sushi-roll::before {
    content: '🍣';
    font-size: 60px;
    animation: bounce 1.5s ease-in-out infinite alternate;
    z-index: 3;
}

.sushi-rice {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: #fff;
    border: 3px dashed #ddd;
}

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

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

/* Палочки для суши */
.chopsticks {
    position: absolute;
    z-index: 10;
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.chopstick {
    position: absolute;
    width: 8px;
    height: 120px;
    background: linear-gradient(to bottom, #8B4513, #D2691E);
    border-radius: 4px;
    top: 15px;
}

.chopstick:nth-child(1) {
    left: 35px;
    transform: rotate(-15deg);
    animation: chopstickMove1 1s ease-in-out infinite;
}

.chopstick:nth-child(2) {
    right: 35px;
    transform: rotate(15deg);
    animation: chopstickMove2 1s ease-in-out infinite;
}

@keyframes chopstickMove1 {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-20deg) translateY(10px); }
}

@keyframes chopstickMove2 {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(20deg) translateY(10px); }
}

/* Текст загрузки */
.loading-text {
    position: relative;
    z-index: 10;
    color: #fff;
    font-size: 16px;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 20px;
    font-weight: 300;
}

.loading-text span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

.loading-text span:nth-child(1) { animation-delay: 0s; }
.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }
.loading-text span:nth-child(8) { animation-delay: 0.7s; }
.loading-text span:nth-child(9) { animation-delay: 0.8s; }

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

/* Васаби и имбирь */
.wasabi {
    position: absolute;
    font-size: 24px;
    z-index: 5;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}
