@font-face {
    font-family: public-sans;
    src: url("PublicSans-VariableFont_wght.ttf");
}

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

body {
    font-family: public-sans, system-ui, sans-serif;
    background: #000000;
    color: #ccc;
    min-height: 100vh;
    padding: 2.3rem 1rem 4rem 2rem;
    text-wrap: balance;
    line-height: 1.4;
    font-size: 16px;
}

h1 {
    font-size: 3em;
    font-weight: normal;
    color: #fff;
}

h1 span {
    font-size: 0.33em;
    display: block;
}

a {
    color: #ccc;
}

p {
    max-width: 600px;
    margin: 1em 0;
    font-weight: 100;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    justify-content: start;
    gap: 2rem;
    margin: 100px auto;
}

.card {
    background: #222222;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #222222;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translate(-4px, -4px);
    border-color: #fff;
    box-shadow: 16px 16px #000;
}

.thumb {
    aspect-ratio: 4/3;
    background: #111111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-placeholder {
    font-size: 2.5rem;
    opacity: .25;
}

.info {
    padding: .9rem 1rem 1rem;
    display: flex;
    flex-direction: row;
    gap: .35rem;
    flex: 1;
    align-items: baseline;
    justify-content: space-between;
}

.title {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.3;
}

.updated {
    color: #666;
    font-size: 0.8rem;
}

.empty {
    text-align: center;
    color: #555566;
    margin-top: 4rem;
    font-size: 1.1rem;
}

.winner {
    background-color: #434d1f;
    border-color: #eeff00;
    position: relative;
    overflow: visible;
}
.winner::before {
    content: "";
    position: absolute;
    display: block;
    width: 140px;
    aspect-ratio: 97/47;
    background-image: url("winner-badge.png");
    background-size: contain;
    background-repeat: no-repeat;
    left: -12px;
    top: -6px;
    z-index: 10;
}
