/* Artwork is 3840x2160 and #main is always 16:9 at full width, so every
   size below is in vw: 1vw = 38.4px of the artwork. Positions were measured
   off Blick_2026_HEF_Highscore_Screen_3840x2160.png. */

@font-face {
    font-family: 'Blick';
    src: url('Blick-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter-Regular-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter-Regular-latin-ext.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html, body {
    margin: 0;
    background: #fff;
    overflow: hidden;
}

#main {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    aspect-ratio: 16 / 9;
    background-image: url('blick_hef26.png');
    background-size: cover;
}

/* click and hold to compare against the designer's filled example */
#main:active {
    cursor: pointer;
    background-image: url('blick_hef26_example.png');
}

#leaderboard .item {
    position: absolute;
    /* text column: name ink starts at x=922, time ends at x=3178 */
    left: 23.83vw;
    right: 17.16vw;
    height: 6.72vw;              /* 258px row box */
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 2vw;
    color: #ff010b;
}

#leaderboard .item.visible {
    display: flex;
}

/* row boxes start at y=524, 859, 1195 */
#leaderboard .item:nth-child(1) { top: 13.65vw; color: #fff; }
#leaderboard .item:nth-child(2) { top: 22.37vw; }
#leaderboard .item:nth-child(3) { top: 31.12vw; }

#leaderboard .name {
    font-family: 'Blick', sans-serif;
    font-weight: 800;
    font-size: 2.75vw;           /* matched to the example: cap height 76px */
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

#leaderboard .score {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 2.10vw;           /* matched to the example: cap height 62px */
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}
