@font-face {
    font-family: pixelwide;
    src: url("Tiny5-Regular.ttf");
}

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

body {
    font-family: system-ui, sans-serif;
    background: #001b17;
    color: #ffffff;
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
    text-align: center;
    text-wrap: balance;
}

h1 {
    font-family: pixelwide;
    font-size: 64px;
    text-transform: uppercase;
    max-width: 600px;
    margin: 40px auto;
}

a {
    color: #eeff00;
}

p {
    font-size: 24px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 360px);
    justify-content: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 160px auto;
}

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

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

.thumb {
    aspect-ratio: 1/1;
    background: #111118;
    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 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}

.game-title, .authors {
    font-family: pixelwide;
    text-transform: uppercase;
}

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

.authors {
    font-size: 2rem;
    line-height: 1.3;
    color: #b2ce9a;
    margin-top: 0;
}

.intro {
    font-size: 1.2rem;
    color: #b6bca0;
    line-height: 1.3;
    margin-top: .1rem;
}

.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;
}
