/* Game container for buy section */
.game-container {
    margin: var(--spacing-lg) auto;
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

#carrot-game {
    display: none;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-medium);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-area {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: var(--background-dark);
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-sm);
}

.game-instructions {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.score-display {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.game-carrot {
    position: absolute;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.1s ease;
    user-select: none;
}

.game-carrot:hover {
    transform: scale(1.2);
}

.game-btn {
    background: var(--gradient-primary);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.5);
}

.game-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(47, 192, 34, 0.6);
}

.game-btn:active {
    transform: translateY(-2px);
}

/* Buy section enhancements */
.interactive-buy {
    position: relative;
    overflow: hidden;
}

.hidden-carrot {
    position: absolute;
    font-size: 3rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
}

.interactive-buy:hover .hidden-carrot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
}

.interactive-step {
    position: relative;
    cursor: pointer;
}

.interactive-step:hover {
    transform: translateY(-5px);
}

.interactive-step:hover .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.2);
}

/* Carrot rain animation */
.carrot-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.rain-carrot {
    position: absolute;
    width: 60px;   /* Increased size */
    height: 60px;  /* Increased size */
    animation: rainFall linear forwards;
    cursor: pointer;
    z-index: 10000;
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.7)); /* Added glow effect */
    transition: transform 0.3s ease, filter 0.3s ease;
    pointer-events: auto; /* Make sure it's clickable */
}

.rain-carrot:hover {
    filter: brightness(1.5) drop-shadow(0 0 12px rgba(255, 107, 0, 0.9));
    transform: scale(1.2) rotate(10deg);
}

.rain-carrot:active {
    filter: brightness(1.8) drop-shadow(0 0 15px rgba(255, 107, 0, 1));
    transform: scale(1.4) rotate(-10deg);
}

.carrot-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.3));
    transition: transform 0.1s ease;
}

.carrot-body {
    animation: bodyPulse 2s infinite alternate;
}

.carrot-top {
    animation: topWave 3s infinite alternate;
}

.carrot-explosion {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001;
}

@keyframes bodyPulse {
    0% {
        fill: #ff6b00;
    }
    100% {
        fill: #ff8a34;
    }
}

@keyframes topWave {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-2px);
    }
}

@keyframes rainFall {
    0% {
        transform: translateY(-5vh) rotate(0deg);
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0;
    }
}

/* Footer carrots */
.footer-carrots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.footer-carrot {
    font-size: 2rem;
    animation: floatFooterCarrot 3s ease-in-out infinite;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-carrot:hover {
    opacity: 1;
    transform: scale(1.3) rotate(20deg);
}

.footer-carrot:nth-child(1) {
    animation-delay: 0s;
}

.footer-carrot:nth-child(2) {
    animation-delay: 0.5s;
}

.footer-carrot:nth-child(3) {
    animation-delay: 1s;
}

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

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-rabbit {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: drop-shadow(0 0 3px rgba(255, 107, 0, 0.7));
    animation: logoFloat 3s ease-in-out infinite;
}

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

/* Enhanced responsive styles */
@media screen and (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 768px) {
    .about-features, 
    .buy-options,
    .roadmap-content-box,
    .social-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature, 
    .buy-option,
    .interactive-buy {
        width: 100%;
        max-width: 100%;
    }
    
    .roadmap-content-box {
        padding: 1rem;
    }
    
    .roadmap-item {
        margin-bottom: 2rem;
    }
    
    .rabbit {
        width: 150px;
        height: 150px;
    }
    
    .contract-address {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    /* Fix hero section for tablets */
    .hero {
        height: auto;
        min-height: 500px;
        padding-top: 120px;
        padding-bottom: 40px;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    /* Improve about section spacing */
    .about-content {
        gap: 2rem;
    }
    
    /* Better contract display */
    .contract-card {
        padding: 1.5rem 1rem;
    }
    
    /* Adjust robot positions for smaller screens */
    .robot1, .robot2, .robot3 {
        transform: scale(0.9);
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-rabbit {
        width: 25px;
        height: 25px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .rabbit {
        width: 120px;
        height: 120px;
    }
    
    .address {
        font-size: 0.8rem;
        word-break: break-all;
        padding: 8px;
    }
    
    .robot-container {
        transform: scale(0.7);
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Fix hero for mobile */
    .hero {
        min-height: 450px;
        padding-top: 100px;
    }
    
    /* Make sure carrot game button is visible */
    .interactive-element {
        margin-top: 20px;
        text-align: center;
    }
    
    /* Footer improvements */
    footer {
        padding: 1.5rem 0;
    }
    
    .footer-logo, .footer-links {
        text-align: center;
        margin-bottom: 15px;
    }
    
    /* Better readability for links */
    .social-link, .buy-option {
        margin-bottom: 10px;
    }
    
    /* Fix contract card spacing */
    .contract-card {
        padding: 1rem;
    }
}

/* Extra small screens */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .rabbit {
        width: 100px;
        height: 100px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
}

/* Hero background image */
.hero {
    position: relative;
    background-color: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/wecom-space.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05; /* Extremely transparent background image */
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 26, 0.1);  /* Further decreased opacity for almost invisible background */
    z-index: 1;
}

.hero .container {
    z-index: 2;
}

/* Add 589 necklace to the rabbit */
.rabbit-container {
    position: relative;
}

.rabbit-necklace {
    position: absolute;
    bottom: 45%;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: gold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
    z-index: 10;
}

.rabbit-necklace::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: gold;
    border-radius: 50%;
}