*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: white;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 32px 16px 24px;

}

.sheet-music {
    width: min(500px, 50vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* outline: 1px solid #CCC; */
    margin-top: 10vh;
    padding: 12px 8px 16px;
    gap: 12px;
    position: relative;
    min-height: 220px;
}

.sheet-music img {
    max-width: 65%;
    height: auto;
    display: block;
}

.sheet-music img:not([src]) {
    display: none;
}

.play-button {
    appearance: none;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.play-button:hover {
    background: #111;
}

.result {
    min-height: 1.5em;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.round {
    min-height: 1.5em;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}


.piano {
    display: flex;
    margin-top: auto;
    margin-bottom: 20vh;
}

.key {
    height: calc(var(--width)*4);
    width: var(--width);
}

.white {
    --width: clamp(32px, 3vw, 64px);
    background-color: white;
    border: 1px solid black;
}

.black {
    --width: calc(clamp(32px, 3vw, 64px) * 0.6);
    background-color: black;
    margin-left: calc(var(--width)/-2);
    margin-right: calc(var(--width)/-2);
    z-index: 1;
}

.white:active {
    background-color: #CCC;
}

.black:active {
    background-color: #333;
}