/* Opening Screen Styles */
.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1200 0%, #000000 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.opening-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Enhanced Sunflower Bloom */
.sunflower-bloom {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 70px;
    filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.8));
    animation: floatGentle 6s ease-in-out infinite;
}

.petal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 140px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffc400 100%);
    border-radius: 50% 50% 0 0;
    transform-origin: 50% 100%;
    margin-left: -35px;
    margin-top: -140px;
    opacity: 0;
    animation: petalBloomEnhanced 4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(255, 215, 0, 0.6);
}

@keyframes petalBloomEnhanced {
    0% {
        transform: rotate(var(--rotation)) scale(0) translateY(30px);
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    75% {
        transform: rotate(var(--rotation)) scale(1.15) translateY(-8px);
    }
    100% {
        transform: rotate(var(--rotation)) scale(1) translateY(0);
        opacity: 1;
    }
}

.petal:nth-child(1) { --rotation: 0deg; animation-delay: 0.1s; }
.petal:nth-child(2) { --rotation: 45deg; animation-delay: 0.2s; }
.petal:nth-child(3) { --rotation: 90deg; animation-delay: 0.3s; }
.petal:nth-child(4) { --rotation: 135deg; animation-delay: 0.4s; }
.petal:nth-child(5) { --rotation: 180deg; animation-delay: 0.5s; }
.petal:nth-child(6) { --rotation: 225deg; animation-delay: 0.6s; }
.petal:nth-child(7) { --rotation: 270deg; animation-delay: 0.7s; }
.petal:nth-child(8) { --rotation: 315deg; animation-delay: 0.8s; }

/* Inner petals layer */
.petal-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 100px;
    background: linear-gradient(135deg, #ffe55c 0%, #ffd700 100%);
    border-radius: 50% 50% 0 0;
    transform-origin: 50% 100%;
    margin-left: -25px;
    margin-top: -100px;
    opacity: 0;
    animation: petalBloomEnhanced 4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: inset 0 -20px 30px rgba(0, 0, 0, 0.2);
}

.petal-inner:nth-child(9) { --rotation: 22.5deg; animation-delay: 1s; }
.petal-inner:nth-child(10) { --rotation: 67.5deg; animation-delay: 1.1s; }
.petal-inner:nth-child(11) { --rotation: 112.5deg; animation-delay: 1.2s; }
.petal-inner:nth-child(12) { --rotation: 157.5deg; animation-delay: 1.3s; }
.petal-inner:nth-child(13) { --rotation: 202.5deg; animation-delay: 1.4s; }
.petal-inner:nth-child(14) { --rotation: 247.5deg; animation-delay: 1.5s; }
.petal-inner:nth-child(15) { --rotation: 292.5deg; animation-delay: 1.6s; }
.petal-inner:nth-child(16) { --rotation: 337.5deg; animation-delay: 1.7s; }

.flower-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #4a2511 0%, #2d1508 100%);
    border-radius: 50%;
    animation: centerGrowEnhanced 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2s forwards;
    box-shadow: inset 0 -15px 30px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(74, 37, 17, 0.9);
}

@keyframes centerGrowEnhanced {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.3) rotate(270deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }
}

/* Center texture */
.flower-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: 
        radial-gradient(circle at 30% 30%, transparent 2px, #2d1508 2px, transparent 3px),
        radial-gradient(circle at 70% 40%, transparent 2px, #2d1508 2px, transparent 3px),
        radial-gradient(circle at 40% 70%, transparent 2px, #2d1508 2px, transparent 3px),
        radial-gradient(circle at 60% 60%, transparent 2px, #2d1508 2px, transparent 3px);
    background-size: 15px 15px;
    border-radius: 50%;
    opacity: 0.6;
}

/* Golden light rays */
.light-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.9), transparent);
    transform-origin: 0 0;
    opacity: 0;
    animation: rayAppear 3s ease-out 2.8s forwards;
    filter: blur(1px);
}

@keyframes rayAppear {
    0% {
        opacity: 0;
        height: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
        height: 180px;
    }
}

.light-ray:nth-child(17) { transform: rotate(0deg) translateX(-50%); animation-delay: 2.8s; }
.light-ray:nth-child(18) { transform: rotate(60deg) translateX(-50%); animation-delay: 2.9s; }
.light-ray:nth-child(19) { transform: rotate(120deg) translateX(-50%); animation-delay: 3s; }
.light-ray:nth-child(20) { transform: rotate(180deg) translateX(-50%); animation-delay: 3.1s; }
.light-ray:nth-child(21) { transform: rotate(240deg) translateX(-50%); animation-delay: 3.2s; }
.light-ray:nth-child(22) { transform: rotate(300deg) translateX(-50%); animation-delay: 3.3s; }

.unlock-text {
    color: var(--gold);
    font-size: 2.4em;
    font-family: 'Tangerine', cursive;
    font-weight: 700;
    margin-top: 50px;
    opacity: 0;
    animation: fadeInScale 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.8s forwards;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8),
                 0 5px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

.unlock-btn {
    margin-top: 50px;
    padding: 22px 70px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    background-size: 300% 300%;
    animation: gradientMove 4s ease infinite, fadeInScale 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) 4.2s forwards;
    border: 3px solid var(--gold);
    border-radius: 60px;
    color: #1a1200;
    font-size: 1.5em;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0;
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.5),
                inset 0 2px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.unlock-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
                height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.unlock-btn:hover::before {
    width: 400px;
    height: 400px;
}

.unlock-btn:hover {
    transform: scale(1.12) translateY(-5px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.7),
                inset 0 2px 0 rgba(255, 255, 255, 0.7);
}
