* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #08090b;
    color: #f2f2f2;
    font-family: Inter, Arial, sans-serif;
}

header {
    height: 74px;
    border-bottom: 1px solid #22252b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: #0d0f12;
}

header h1 {
    display: inline;
    margin: 0;
    font-size: 26px;
}

header span {
    margin-left: 8px;
    color: #858b96;
    font-size: 13px;
    letter-spacing: 2px;
}

.brand {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.status {
    color: #53dd88;
    font-size: 12px;
    letter-spacing: 1px;
}

main {
    width: min(1400px, 92%);
    margin: auto;
}

.hero {
    padding: 70px 0 35px;
}

.hero h2 {
    font-size: 44px;
    margin: 0 0 8px;
}

.hero p {
    color: #8b919b;
}

input {
    width: min(650px, 100%);
    padding: 17px 20px;
    margin-top: 25px;
    background: #111318;
    border: 1px solid #292d35;
    border-radius: 9px;
    color: white;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #656d7b;
}

.counter {
    color: #747b86;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
    padding-bottom: 80px;
}

.card {
    background: #101216;
    border: 1px solid #202329;
    border-radius: 10px;
    overflow: hidden;
    color: white;
    text-decoration: none;
    transition: transform .15s, border-color .15s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #4a505c;
}

.cover {
    aspect-ratio: 3 / 4;
    background: #15181d;
}

.cover img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nocover {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #343943;
    font-size: 32px;
    font-weight: bold;
}

.info {
    padding: 15px;
}

.info h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.tid,
.title-id {
    color: #7c8490;
    font-family: monospace;
}

.meta {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: #9da3ad;
    font-size: 12px;
}

.empty {
    color: #747b86;
}

.back {
    display: inline-block;
    margin: 40px 0;
    color: #9da3ad;
    text-decoration: none;
}

.game-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 55px;
    padding-bottom: 80px;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    background: #15181d;
    border-radius: 12px;
    overflow: hidden;
}

.details h1 {
    font-size: 42px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 250px));
    gap: 20px;
    margin-top: 40px;
}

.specs div {
    background: #111318;
    border: 1px solid #242830;
    padding: 18px;
    border-radius: 8px;
}

.specs label {
    display: block;
    color: #777e89;
    font-size: 12px;
    margin-bottom: 7px;
}

.description {
    max-width: 800px;
    margin-top: 35px;
    line-height: 1.7;
    color: #b8bdc5;
}

@media(max-width:700px) {
    .game-page {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 300px;
    }

    .hero h2 {
        font-size: 34px;
    }
}
