/*
File Name: farm-games-style.css
Description: Version 65.0. Reveal Font Size Increase (1.5em).
*/

#koops-farm-games-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    border: none; 
    overflow: visible; 
    padding-bottom: 50px;
    position: relative;
    cursor: pointer;
}

/* --- BIG CENTER REVEAL --- */
#big-prize-reveal {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Hidden start */
    z-index: 500; 
    
    background: #ffd700;
    color: #5d4037;
    border: 4px solid #fff; 
    
    /* SIZE: 200px (Slightly larger than piles) */
    border-radius: 50%;
    width: 200px;
    height: 200px;
    padding: 15px; 
    
    /* FONT: 1.5em (Larger than the 1.3em background piles) */
    font-size: 1.5em; 
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(0,0,0,0.8), 0 0 5px #fff;
    
    /* Center text alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    
    pointer-events: none; 
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#big-prize-reveal.active {
    transform: translate(-50%, -50%) scale(1);
}

/* --- ALERT BANNERS --- */
.koops-alert-banner {
    background: #ff9800; 
    color: #fff; 
    text-align: center; 
    padding: 10px; 
    border-bottom: 3px solid #e65100;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.3;
}
.koops-alert-banner strong {
    color: #fff !important;
    text-transform: uppercase;
}
.koops-alert-banner.practice-mode {
    background: #ff9800; 
    border-bottom: 3px solid #e65100;
}
.koops-alert-banner.congrats-mode {
    background: #4caf50;
    border-bottom: 3px solid #1b5e20;
}

/* --- SIGNS --- */
.koops-intro-sign {
    background-color: #5d4037;
    color: #ffffff !important;
    padding: 15px 30px;
    border: 4px solid #fff;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    transform: rotate(-2deg);
    text-shadow: 2px 2px 0 #000;
    position: relative; 
    z-index: 5;
}
.koops-intro-sign.full-width {
    width: 100%;
    max-width: 700px;
    transform: none;
}
.koops-intro-sign h3 {
    color: #ffffff !important;
    margin: 0;
    padding-bottom: 8px;
    font-size: 2.5em; 
}
.koops-intro-sign p {
    color: #ffffff !important;
    margin: 0;
    font-weight: bold;
    font-size: 1.3em; 
}

.game-result {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffd700;
    background: rgba(0,0,0,0.8);
    display: none;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #fff;
}

/* --- BUG FIELD --- */
.bug-field {
    margin-top: 80px;
    position: relative;
    min-height: 400px; 
}
.bug-row {
    display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
    position: relative; 
    z-index: 10; 
}

/* DIRT PATCHES (170px) */
.bug-pile-container {
    width: 170px; height: 170px; 
    position: relative;
    cursor: pointer;
    background: rgba(0,0,0,0.3); 
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.2);
}
.bug-prize {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: #fff; text-shadow: 2px 2px 4px #000;
    
    /* Background piles are 1.3em */
    font-size: 1.3em; 
    
    padding: 10px;
    opacity: 0; transition: opacity 1s; z-index: 1;
}
.bug-prize.revealed { opacity: 1; }

.bug-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
    transition: opacity 0.5s;
}
.bug-overlay.eaten { opacity: 0; pointer-events: none; }

/* --- ANIMATED BUGS --- */
@keyframes bugJitter {
    0% { margin-left: 0px; margin-top: 0px; }
    25% { margin-left: 2px; margin-top: -2px; }
    50% { margin-left: -1px; margin-top: 2px; }
    75% { margin-left: -2px; margin-top: -1px; }
    100% { margin-left: 0px; margin-top: 0px; }
}
.bug { font-size: 34px; position: absolute; animation: bugJitter 2s infinite linear; }
.b1 { top: 20%; left: 20%; transform: rotate(10deg); animation-duration: 1.2s; }
.b2 { top: 30%; right: 20%; transform: rotate(-40deg); animation-duration: 1.5s; }
.b3 { bottom: 20%; left: 30%; transform: rotate(90deg); animation-duration: 0.8s; }
.b4 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-duration: 2.0s; }
.b5 { bottom: 30%; right: 10%; transform: rotate(180deg); animation-duration: 1.1s; }
.b6 { top: 60%; right: 20%; transform: rotate(45deg); animation-duration: 1.7s; }
.b7 { bottom: 40%; left: 10%; transform: rotate(-20deg); animation-duration: 1.3s; }
.b8 { top: 15%; right: 40%; transform: rotate(130deg); animation-duration: 0.9s; }

/* --- CHICKENS --- */
#hen-thinking {
    width: 350px; 
    position: absolute; bottom: -50px; left: 0px; 
    z-index: 20; 
    transition: opacity 0.5s;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.5));
    pointer-events: none;
}
#hen-backend {
    width: 350px; 
    position: absolute; display: none; 
    z-index: 100;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.5));
    pointer-events: none;
}
.eating-wobble {
    display: block !important;
    animation: eatAction 0.2s infinite alternate;
}
@keyframes eatAction {
    0% { transform: rotate(-5deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(5px); }
}
#hen-thumbs {
    width: 350px; 
    position: absolute; bottom: -50px; right: 0px;
    display: none;
    z-index: 20;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.5));
    animation: popUp 0.5s ease-out;
    pointer-events: none;
}
@keyframes popUp {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.game-locked { opacity: 0.5; pointer-events: none; filter: grayscale(100%); }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 600px) {
    #hen-thinking, #hen-backend, #hen-thumbs { width: 140px !important; }
    #hen-thinking { bottom: -10px; left: -10px; }
    #hen-thumbs { bottom: -10px; right: -10px; }
    
    .koops-alert-banner { font-size: 0.9em; padding: 8px; }
    .koops-intro-sign { padding: 8px 15px; margin-top: 5px; }
    .koops-intro-sign h3 { font-size: 1.6em; }
    .koops-intro-sign p { font-size: 1.0em; }
    
    .bug-field { margin-top: 40px; }
    .bug-row { gap: 20px; }
}