* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #87CEEB 0%, #90EE90 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.score {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.milk-per-second {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.main-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.cow {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 0 auto;
}

.cow-body {
    position: absolute;
    width: 300px;
    height: 200px;
    background: white;
    border: 4px solid #333;
    border-radius: 50% 50% 40% 40%;
    left: 50px;
    top: 20px;
}

.cow-head {
    position: absolute;
    width: 120px;
    height: 100px;
    background: white;
    border: 4px solid #333;
    border-radius: 50%;
    left: -80px;
    top: 30px;
}

.cow-head::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
    top: 35px;
    left: 60px;
}

.cow-face {
    position: absolute;
    width: 150%;
    height: 150%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 10;
    left: -38px;
}

.cow-spots {
    position: absolute;
    background: #333;
    border-radius: 50%;
}

.spot1 {
    width: 50px;
    height: 40px;
    top: 30px;
    left: 50px;
}

.spot2 {
    width: 40px;
    height: 35px;
    top: 80px;
    left: 150px;
}

.spot3 {
    width: 45px;
    height: 38px;
    top: 120px;
    left: 80px;
}

.legs {
    position: absolute;
    bottom: 38px;
    left: 80px;
    display: flex;
    gap: 50px;
}

.leg {
    width: 25px;
    height: 60px;
    background: white;
    border: 3px solid #333;
    border-radius: 5px 5px 0 0;
}

.leg::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -3px;
    width: 31px;
    height: 15px;
    background: #333;
    border-radius: 0 0 8px 8px;
}

.udders {
    position: absolute;
    bottom: 60px;
    left: 120px;
    display: flex;
    gap: 20px;
}

.udder {
    width: 30px;
    height: 40px;
    background: #FFB6C1;
    border: 3px solid #333;
    border-radius: 0 0 50% 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

.udder:hover {
    transform: scale(1.1);
    background: #FF69B4;
}

.udder:active {
    transform: scale(0.95);
}

.milk-drops {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.milk-drop {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #333;
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
}

.points-popup {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Upgrade Shop */
.upgrade-shop {
    background: rgba(255, 255, 255, 0.9);
    border: 4px solid #333;
    border-radius: 15px;
    padding: 20px;
    width: 350px;
    max-height: 600px;
    overflow-y: auto;
}

.upgrade-shop h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid #333;
    padding-bottom: 10px;
}

.upgrade-section {
    margin-bottom: 30px;
}

.upgrade-section h3 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 15px;
}

.upgrade-button {
    background: #f0f0f0;
    border: 3px solid #999;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: not-allowed;
    transition: all 0.2s;
    opacity: 0.6;
}

.upgrade-button.affordable {
    background: #90EE90;
    border-color: #333;
    cursor: pointer;
    opacity: 1;
}

.upgrade-button.affordable:hover {
    background: #7FDD7F;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.upgrade-button.affordable:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.upgrade-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.upgrade-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.upgrade-cost {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

/* Save Indicator */
.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #90EE90;
    color: #333;
    padding: 10px 20px;
    border: 3px solid #333;
    border-radius: 10px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Production Breakdown */
.production-breakdown {
    background: rgba(255, 255, 200, 0.5);
    border: 2px solid #999;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    display: none;
}

.breakdown-item {
    font-size: 0.9rem;
    color: #333;
    margin: 3px 0;
    font-weight: bold;
}
