#coords
{
    position: absolute;
    width: var(--cellW);
    height: var(--cellH);
    margin: 0;
    padding: 0;
    left: 12px;
    top: 12px;
    z-index: auto;
    pointer-events: none;
}

#coords .highlight
{
    position: absolute;
    z-index: 900;
    left: 0;
    top: 0;
    width: var(--cellW);
    height: var(--cellH);
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(3px);
}

#coordsText
{
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    width: fit-content;
    transform: translateX(-50%) scale(calc(1 / var(--scale) * 1.2));
    transform-origin: center calc(100% + 2px);
    white-space: nowrap;
    background: rgba(255,255,255,0.6);
    padding:  4px 6px;
    color: rgba(0,0,0,0.8);
    backdrop-filter: blur(3px);
    border-radius: 2px;
    font-family: Calibri;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 0 5px rgba(0,0,0,0.6);
    padding-bottom: 6px;
    z-index: 1000;
}

#coordsText::before
{
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 5px;
    background: rgba(255,255,255,0.6);
    transform: translateX(-50%);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}
