body {
    font-family: 'Nunito', sans-serif;
    background-color: #f0f8ff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

#game-container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 20px 40px;
}

header {
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

header h1 {
    font-family: 'Fredoka One', cursive;
    color: #5a4b81;
    font-size: 3rem;
}

h2 {
    font-family: 'Fredoka One', cursive;
    color: #7d6ba0;
    text-align: center;
    margin-bottom: 20px;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    grid-template-areas: 
        "breeding result"
        "collection collection";
}

#breeding-area { grid-area: breeding; }
#result-area { grid-area: result; }
#collection-area { grid-area: collection; }

#breeding-area, #result-area {
    background-color: #faf8ff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.breeding-slots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.breeding-slot {
    width: 150px;
    height: 200px;
    border: 3px dashed #c9c0e0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    color: #aaa;
    transition: background-color 0.3s, border-color 0.3s;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.breeding-slot.fed::after {
    content: 'Fed!';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.breeding-slot.fed {
    border-color: #28a745;
}


.breeding-slot .cat-card-content {
    background-color: rgba(255,255,255,0.8);
    padding: 5px;
    border-radius: 5px;
}

#plus-sign {
    font-size: 2.5rem;
    color: #7d6ba0;
    font-weight: bold;
}

.slot-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button {
    font-family: 'Fredoka One', cursive;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

button:disabled {
    cursor: not-allowed;
    background-color: #e0e0e0;
    color: #999;
}

#breed-btn {
    background-color: #ff69b4;
    color: white;
}
#breed-btn:not(:disabled):hover { background-color: #ff85c1; transform: translateY(-2px); }

.feed-btn {
    background-color: #5cb85c;
    color: white;
}
.feed-btn:not(:disabled):hover { background-color: #6cd96c; transform: translateY(-2px); }

#clear-slots-btn {
    display: block;
    margin: 10px auto 0;
    background-color: #f0ad4e;
    color: white;
}
#clear-slots-btn:hover { background-color: #f3bd6a; }


#new-cat-display {
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e9e4f5;
    border-radius: 10px;
}

#new-cat-display p {
    color: #666;
    font-weight: bold;
}

#player-cats-collection {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    background: #faf8ff;
    padding: 20px;
    border-radius: 15px;
}

.cat-card {
    width: 120px;
    cursor: grab;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}
.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(90, 75, 129, 0.2);
}
.cat-card.locked {
    cursor: default;
}
.cat-card.locked:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cat-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
.cat-card .cat-name {
    font-weight: bold;
    color: #5a4b81;
    margin-top: 8px;
    font-size: 0.9em;
}

.locked .cat-name {
    color: #999;
}

.dragging {
    opacity: 0.5;
    transform: scale(1.1);
    cursor: grabbing;
}

