:root {
    --forest-green: #27ae60;
    --leaf-green: #2ecc71;
    --wood-brown: #8d6e63;
    --soft-cream: #f9fbe7;
    --text-color: #3e2723;
    --heart-red: #ff5252;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--soft-cream);
    background-image: radial-gradient(var(--leaf-green) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 90vw;
    max-width: 600px;
    text-align: center;
    border: 8px solid var(--forest-green);
}

header h1 {
    color: var(--forest-green);
    margin: 0;
}

header p {
    font-style: italic;
    color: var(--wood-brown);
}

.intro-image {
    font-size: 5rem;
    margin: 30px 0;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: var(--forest-green);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    background: var(--leaf-green);
}

.small-btn {
    padding: 8px 15px;
    background: #eee;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Selection Screen */
.animal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.animal-select-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 3px solid #eee;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.animal-select-btn:hover {
    border-color: var(--leaf-green);
    background: var(--soft-cream);
    transform: translateY(-5px);
}

.animal-select-btn .emoji {
    font-size: 3.5rem;
}

.animal-select-btn .name {
    margin-top: 10px;
    font-weight: bold;
}

/* Clinic Screen */
.clinic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.happy-bar-container {
    width: 150px;
    height: 15px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

#happy-progress {
    height: 100%;
    background: var(--heart-red);
    transition: width 0.3s ease;
}

#animal-interaction-area {
    position: relative;
    height: 300px;
    background: #f1f8e9;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
}

#active-animal {
    font-size: 10rem;
    user-select: none;
}

#injury-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.injury-item {
    position: absolute;
    font-size: 2rem;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.injury-item:hover {
    transform: scale(1.2);
}

.dirt-spot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(121, 85, 72, 0.6);
    border-radius: 50%;
    filter: blur(5px);
    pointer-events: auto;
}

#clinic-speech-bubble {
    position: absolute;
    top: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-weight: bold;
    color: var(--forest-green);
    animation: popIn 0.3s ease-out;
}

.tool-belt {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 10px 15px;
    font-size: 1.1rem;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    border-color: var(--forest-green);
    transform: translateY(-2px);
}

.tool-btn.active {
    background: var(--forest-green);
    color: white;
    border-color: var(--forest-green);
}

/* Success Screen */
.happy-emoji {
    font-size: 6rem;
    margin: 20px 0;
    animation: heartBeat 1.5s infinite;
}

/* Animations */
.breathing {
    animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #bcaaa4;
}
