body {
    margin: 0;
    padding: 0;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: sans-serif;
    overflow: hidden;
    user-select: none;
}

.piano-wrapper {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
}

.octave {
    height: 50%;
    width: 100%;
    display: flex;
    position: relative;
    border-bottom: 1px solid #222;
    box-sizing: border-box;
}

.octave:last-child {
    border-bottom: none;
}

/* Configuración de anchos */
#octave-upper {
    --black-width: 4.5%;
}

#octave-lower {
    --black-width: 4.5%;
}

.white-key {
    flex: 1;
    background: #f0f0f0;
    border-right: 1px solid #aaa;
    border-bottom: 1px solid #999;
    border-radius: 0 0 3px 3px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.05s;
    position: relative;
    z-index: 1;
}

.white-key:last-child {
    border-right: none;
}

.white-key.active {
    background: #FFB74D;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    border-bottom-color: #F57C00;
}

.black-key {
    position: absolute;
    top: 0;
    height: 60%;
    background: #111;
    z-index: 2;
    border-radius: 0 0 2px 2px;
    border: 1px solid #000;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: background 0.05s;
    width: var(--black-width);
}

.black-key.active {
    background: #FFB74D;
    border-color: #F57C00;
}

/* Se han eliminado los pseudo-elementos ::after que mostraban las letras */