/* Duck Runner Game Section */
#game-section {
    min-height: 100vh;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #90EE90 100%);
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

#game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.game-header {
    margin-bottom: 2rem;
}

.game-header h2 {
    font-size: 3rem;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.game-header p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
}

.game-instructions {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.game-instructions h3 {
    color: #e3b44e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.game-instructions ul {
    list-style: none;
    padding: 0;
}

.game-instructions li {
    padding: 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

.game-instructions li::before {
    content: '🦆 ';
    margin-right: 0.5rem;
}

/* Game Canvas Container */
.game-canvas-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #87CEEB;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    padding: 20px;
    border: 5px solid #e3b44e;
}

#game-canvas {
    width: 100%;
    height: auto;
    border-radius: 15px;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 70%, #90EE90 100%);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
}

/* Game UI */
.game-ui {
    margin-top: 2rem;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e3b44e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.game-btn {
    background: linear-gradient(135deg, #e3b44e 0%, #f5d78e 100%);
    color: #333;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 180, 78, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 180, 78, 0.6);
}

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

.game-btn.primary {
    background: linear-gradient(135deg, #51cf66 0%, #69db7c 100%);
    animation: pulse 2s ease-in-out infinite;
}

.game-btn.danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
}

/* Game Screens */
.game-screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.game-screen.active {
    display: block;
}

#game-start-screen {
    text-align: center;
}

#game-start-screen h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

#game-over-screen {
    text-align: center;
}

#game-over-screen h3 {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    animation: shake 0.5s ease;
}

#game-over-screen p {
    font-size: 1.3rem;
    color: #333;
    margin: 1rem 0;
}

#final-score {
    font-size: 3rem;
    font-weight: bold;
    color: #e3b44e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.game-over-quote {
    font-style: italic;
    font-size: 1.1rem !important;
    color: #555 !important;
    max-width: 500px;
    margin: 1.5rem auto !important;
    padding: 1rem;
    background: rgba(227, 180, 78, 0.1);
    border-left: 4px solid #e3b44e;
    border-radius: 8px;
    line-height: 1.6;
}

/* Mobile Only Elements */
.mobile-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
}

/* Fullscreen Styles */
#game-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    padding: 20px;
}

#game-section.fullscreen .game-canvas-container {
    max-width: 100%;
}

#game-section.fullscreen #game-canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Decorative Elements */
.cloud-decoration {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: floatCloud 20s linear infinite;
}

.cloud-decoration:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.cloud-decoration:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 5s;
}

.cloud-decoration:nth-child(3) {
    top: 60%;
    left: 5%;
    animation-delay: 10s;
}

@keyframes floatCloud {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100vw);
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .game-header h2 {
        font-size: 2.5rem;
    }
    
    .game-canvas-container {
        padding: 15px;
    }
    
    .stat-box {
        min-width: 120px;
        padding: 1rem 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    #game-section {
        padding: 80px 15px 30px;
    }
    
    .game-header h2 {
        font-size: 2rem;
    }
    
    .game-header p {
        font-size: 1rem;
    }
    
    .game-instructions {
        padding: 1rem;
    }
    
    .game-instructions h3 {
        font-size: 1.2rem;
    }
    
    .game-instructions li {
        font-size: 1rem;
    }
    
    .game-canvas-container {
        padding: 10px;
        border-width: 3px;
    }
    
    .game-stats {
        gap: 1.5rem;
    }
    
    .stat-box {
        min-width: 100px;
        padding: 0.8rem 1rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .game-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    #game-over-screen h3 {
        font-size: 2rem;
    }
    
    #final-score {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .game-header h2 {
        font-size: 1.8rem;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-box {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .game-controls {
        flex-direction: column;
    }
    
    .game-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Loading Animation */
.game-loading {
    text-align: center;
    padding: 2rem;
}

.game-loading::after {
    content: '🦆';
    font-size: 3rem;
    display: block;
    animation: bounce 1s ease-in-out infinite;
}

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