body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

main {
    top: 0;
    bottom: 0;
    max-height: 100%;
}

/* Banner */
#banner {
    position: relative;
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
    border-bottom: 4px solid #ef0000;
}



/* Checkered flag strip */
#banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-conic-gradient(#1a1a1a 0% 25%, #222 0% 50%);
    background-size: 32px 32px;
    opacity: 0.55;
}



/* Red speed-lines overlay */
#banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(239, 0, 0, 0.08) 50%,
        transparent 70%
    );
    pointer-events: none;
}

.banner-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-inner h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(2rem, 6vw, 4rem);
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(239,0,0,0.55), 2px 2px 0 #000;
}

.banner-inner p {
    color: #ccc;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin: 0;
    letter-spacing: 0.02em;
}

.banner-flag {
    display: inline-block;
    font-size: 2rem;
    margin-left: 0.4em;
    vertical-align: middle;
    animation: flag-wave 1.4s ease-in-out infinite alternate;
    transform-origin: bottom left;
}

@keyframes flag-wave {
    from { transform: rotate(-6deg); }
    to   { transform: rotate(6deg); }
}



/* Games section */
#games, #about {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem 3rem;
    /*align-items: flex-start;*/
    background: #f4f4f4;
}

#games > h2, #about > h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-style: italic;
    color: #1a1a1a;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    position: relative;
    display: inline-block;
}

#games > h2::after, #about > h2::after {
    content: "";
    display: block;
    height: 4px;
    background: #ef0000;
    margin-top: 0.3em;
    width: 60%;
    border-radius: 2px;
    margin-left: auto;
    margin-right: auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    width: 100%;
    max-width: 1100px;
}



/* Game card */
.game-card {
    background: #1c1c1c;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
    transition: transform 0.25s cubic-bezier(.22,1,.36,1),
                box-shadow 0.25s ease;
    position: relative;
}

.game-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #ef0000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

.game-card:hover::before {
    transform: scaleX(1);
}



/* Card thumbnail area */
.game-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card-thumb img {
    transform: scale(1.04);
}



/* Placeholder when no screenshot is set */
.game-card-thumb.no-image {
    background: repeating-conic-gradient(#222 0% 25%, #2a2a2a 0% 50%);
    background-size: 20px 20px;
}

.game-card-thumb.no-image::after {
    content: "🎮";
    font-size: 3rem;
    opacity: 0.3;
}



/* Card body */
.game-card-body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.game-card-title {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.35rem;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
}

.game-card-desc {
    font-size: 0.92rem;
    color: #aaa;
    line-height: 1.5;
    margin: 0;
}



.game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.game-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(239,0,0,0.15);
    color: #ef0000;
    border: 1px solid rgba(239,0,0,0.35);
    border-radius: 3px;
    padding: 0.2em 0.55em;
}

.game-card-footer {
    padding: 0 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    background: #ef0000;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.55em 1.1em;
    border-radius: 3px;
    transition: background 0.2s ease, transform 0.15s ease;
    align-self: flex-start;
}

.play-btn:hover {
    background: #c50000;
    transform: translateX(3px);
}

.play-btn::after {
    /*content: "▶";*/
    font-style: normal;
    font-size: 0.8em;
}



@media (max-width: 840px) {
    #banner {
        min-height: 160px;
    }

    #games, #about {
        padding: 1.75rem 1rem 2.5rem;
    }

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

@media (max-width: 480px) {
    #games, #about {
        padding: 1.25rem 0.75rem 2rem;
    }

    .game-card-body {
        padding: 0.9rem 1rem 1rem;
    }

    .game-card-footer {
        padding: 0 1rem 1rem;
    }
}