body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.game_head {
    position: relative;
    background: linear-gradient(135deg, #1a2a6c, #1a2a6c 25%, #2a4858 75%, #2a4858);
    height: 280px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game_head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.3;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

.game-title {
    font-size: 36px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.9);
    color: #003580;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-title:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.playgame-container {
    max-width: 900px;
    margin: auto;
    padding: 0 15px;
}

.game-frame-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-top: -50px;
    position: relative;
    z-index: 3;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.game-frame-container img, iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 6px;
    object-fit: cover;
}

#gameThumbnail {
    filter: brightness(0.95);
    transition: filter 0.5s, transform 0.5s;
    animation: pulse 3s infinite;
}

#gameThumbnail:hover {
    filter: brightness(1.05);
    transform: scale(1.01);
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.play-btn-container {
    margin-top: 25px;
    margin-bottom: 30px;
}

.btn-primary {
    background: linear-gradient(to right, #003580, #005cbf);
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 53, 128, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(to right, #002460, #0046a6);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game_head {
        height: 200px;
    }
    
    .game-title {
        font-size: 28px;
        padding: 12px 24px;
    }
    
    .game-frame-container {
        margin-top: -40px;
        padding: 15px;
    }
    
    .game-frame-container img, iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .game_head {
        height: 160px;
    }
    
    .game-title {
        font-size: 24px;
        padding: 10px 20px;
    }
    
    .game-frame-container {
        margin-top: -30px;
        padding: 10px;
    }
    
    .game-frame-container img, iframe {
        height: 250px;
    }
    
    .btn-primary {
        padding: 10px 24px;
        font-size: 16px;
    }
}