body {
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    width: 1920px; /* Target resolution */
    height: 1080px; /* Target resolution */
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    background-color: #222; /* Fallback */
}

#alleyway {
    width: 100%;
    height: 100%;
    background-image: url('https://via.placeholder.com/1920x1080/404040/808080?text=Alleyway+Background'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Cats will sit near the bottom */
    padding-bottom: 50px; /* Space for interaction panel */
}

.cat-container {
    position: absolute;
    bottom: 50px; /* Adjust based on cat image height */
    width: 200px; /* Adjust as needed for cat image */
    height: 200px; /* Adjust as needed for cat image */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 1s ease-in-out, right 1s ease-in-out; /* For smooth cat movement */
}

.cat-image {
    width: 150px; /* Size of the cat */
    height: 150px;
    background-image: url('https://via.placeholder.com/150x150/FFD700/000000?text=Cat'); /* Placeholder cat */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
}

.cat-bubble {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 8px 15px;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    font-size: 0.9em;
    color: #333;
    animation: fadein 0.5s;
    position: relative;
    top: -10px;
}

.cat-happiness-bar {
    width: 100px;
    height: 10px;
    background-color: #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cat-happiness-fill {
    height: 100%;
    width: 50%; /* Initial state */
    background-color: #4CAF50;
    transition: width 0.5s ease-out;
}

#interaction-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#cat-input {
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    width: 300px;
    font-size: 1em;
    background-color: #444;
    color: white;
}

#cat-input::placeholder {
    color: #bbb;
}

#offer-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

#offer-button:hover {
    background-color: #45a049;
}

#feedback-message {
    margin-left: 20px;
    color: white;
    font-size: 1.1em;
    min-width: 250px; /* Ensure space for messages */
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
