body {
    background-color: #fde3a7; /* Light yellow background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: 'Comic Sans MS', cursive, sans-serif; /* Playful font */
}

#game-title {
    font-size: 36px;
    font-weight: bold;
    color: #f05d5e; /* Coral red */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Text shadow for depth */
    margin-bottom: 20px;
}

#scoreboard {
    font-size: 24px;
    color: #42a5f5; /* Blue */
    margin-bottom: 20px;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(8, 60px);
    gap: 5px;
    padding: 10px;
    background-color: #fff; /* White background */
    border: 5px solid #f05d5e; /* Coral red border */
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

.cell {
    width: 60px;
    height: 60px;
    background-color: #ffcc80; /* Light orange */
    border: 2px solid #f05d5e; /* Coral red border */
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #333; /* Dark gray text */
    border-radius: 10px; /* Rounded corners */
}

.robot {
    font-size: 36px;
    transition: transform 0.2s;
}

.goal {
    font-size: 36px;
    animation: pulse 1s infinite alternate;
}

.obstacle {
    background-color: #8d6e63; /* Brown */
}

.door {
    font-size: 36px;
    color: #388e3c; /* Green */
}

.key {
    font-size: 36px;
    color: #ffeb3b; /* Yellow */
}

.active-cell {
    background-color: #ffeb3b; /* Yellow */
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
