.webgames-page {
    min-height: 100vh;
    padding: 110px 40px 60px;
    color: white;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.webgames-hero {
    text-align: center;
    margin-bottom: 50px;
}

.webgames-hero h1 {
    font-size: 52px;
    color: #ffb347;
    text-shadow: 0 0 12px orange;
}

.webgames-hero p {
    font-size: 20px;
    text-shadow: 0 0 8px black;
}

.webgames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    gap: 30px;
    justify-content: center;
}

.webgame-card {
    display: block;
    text-decoration: none;
    color: white;

    background: rgba(15, 15, 25, 0.88);
    border: 2px solid rgba(255, 165, 0, 0.7);
    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 0 18px rgba(255, 140, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webgame-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 28px rgba(255, 170, 0, 0.9);
}

.webgame-thumb {
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #aeeff2;
}

.webgame-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webgame-thumb span {
    width: 100%;
    white-space: normal;
}

.flappybird-thumb {
    background: linear-gradient(#4ec0ca, #ffffff);
    color: orange;
    text-shadow: 2px 2px 0 black;
}

.webgame-info {
    padding: 18px;
    text-align: center;
}

.webgame-info h2 {
    margin: 0 0 10px;
    color: #ffb347;
}

.webgame-info p {
    margin: 0;
    font-size: 15px;
}