body {
    margin: 0;
    /* Ensure body fills the entire viewport */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #282c34; /* Dark background for elegance */
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#kalimba-container {
    position: relative;
    /* Make container responsive to viewport size */
    width: 80vmin; /* 80% of viewport min dimension */
    height: 120vmin; /* Taller aspect ratio */
    max-width: 400px; /* Max width for larger screens */
    max-height: 600px; /* Max height for larger screens */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Tines at the top of the body */
    margin-bottom: 20px;
    transform: none; /* Remove initial scaling */
}

#kalimba-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80%;
    background-color: #6a4a3a; /* Warm wood color */
    border-radius: 50% / 60% 60% 10% 10%; /* Kalimba body shape */
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3), 0 10px 20px rgba(0,0,0,0.5);
    border: 2px solid #4a3226;
}

#tines-container {
    position: absolute;
    top: 10%; /* Position tines above the body */
    width: 90%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2px; /* Small gap between tines */
    padding-top: 20px;
    box-sizing: border-box;
}

.tine {
    /* Tine width and height will be set by JS, but ensure base styling is good */
    background-color: #c0c0c0; /* Silver color */
    border-radius: 2px 2px 10px 10px;
    border: 1px solid #a0a0a0;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.3), 0 2px 3px rgba(0,0,0,0.5);
    position: relative;
    transform-origin: bottom center;
    transition: transform 0.05s ease-out, background-color 0.05s ease-out;
    cursor: pointer;
}

.tine.active {
    background-color: #ffd700; /* Gold color when active */
    transform: translateY(-5px) scaleY(0.95); /* Visual feedback on pluck */
}

#instructions {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #b0b0b0;
}

/* No need for specific media queries if using vmin/vmax for scaling */
