* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(90, 90, 255, 0.12), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(160, 70, 255, 0.10), transparent 30%),
        #08090d;
    color: #ffffff;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

/* HEADER */

header {
    position: relative;
    overflow: hidden;
    padding: 80px 7% 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0)
        );
}

header::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    top: -300px;
    background: rgba(100, 90, 255, 0.18);
    filter: blur(100px);
    border-radius: 50%;
}

header h1 {
    position: relative;
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    background: linear-gradient(90deg, #ffffff, #aaaaff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    position: relative;
    margin: 18px 0 0;
    color: #8e919d;
    font-size: 17px;
}

/* MAIN */

main {
    width: min(1250px, 88%);
    margin: 0 auto;
    padding: 45px 0 70px;
}

#status {
    margin-bottom: 25px;
    color: #777b87;
    font-size: 14px;
}

/* GAME GRID */

.games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* GAME CARD */

.game {
    position: relative;
    min-height: 175px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    overflow: hidden;

    text-decoration: none;
    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.04);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.game::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -100px;
    right: -70px;

    background: rgba(110, 100, 255, 0.18);
    filter: blur(55px);
    border-radius: 50%;

    transition: 0.25s ease;
}

.game:hover {
    transform: translateY(-7px);
    border-color: rgba(150, 145, 255, 0.45);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.38),
        0 0 35px rgba(100, 90, 255, 0.08);
}

.game:hover::before {
    transform: scale(1.4);
    background: rgba(120, 110, 255, 0.28);
}

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

.game-content {
    padding: 22px;
}

.game h2 {
    position: relative;
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.game-message {
    position: relative;
    margin: 0 0 10px;
    color: #a8aabc;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.game-date {
    position: relative;
    margin: 0 0 10px;
    color: #6b6e7a;
    font-size: 12px;
}

.game-play {
    position: relative;
    margin: 0;
    color: #858894;
    font-size: 14px;
    transition: color 0.2s ease;
}

.game:hover .game-play {
    color: #b5b7c2;
}

/* FOOTER */

footer {
    width: 100%;
    padding: 28px 20px;
    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    color: #626570;
    font-size: 13px;

    background: rgba(0, 0, 0, 0.18);
}

footer strong {
    color: #a5a7b0;
    font-weight: 600;
}

/* MOBILE */

@media (max-width: 600px) {
    header {
        padding: 55px 7% 50px;
    }

    header h1 {
        letter-spacing: -2px;
    }

    main {
        width: 90%;
        padding-top: 30px;
    }

    .games {
        grid-template-columns: 1fr;
    }

    .game {
        min-height: 145px;
    }
}

/* Game status: disabled / updating */

.game.game-blocked {
    cursor: not-allowed;
    opacity: 0.72;
    filter: grayscale(0.35);
}

.game.game-blocked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.04);
}

.game.game-blocked:hover::before {
    transform: none;
    background: rgba(110, 100, 255, 0.18);
}

.game-status-msg {
    position: relative;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

.game-status-disabled {
    color: #ff8f8f;
}

.game-status-updating {
    color: #f5d76e;
}

.game-play-blocked {
    color: #6b6e7a !important;
}

.game.game-blocked:hover .game-play {
    color: #6b6e7a;
}
