/* demo-game.css */
/* Tabs for indentation */

.demo-game-wrapper {
    position: relative;
    max-width: 100%;
}

.demo-game-inner {
    position: relative;
    width: 100%;
    min-height: 560px;      /* ensures visible area for cover */
    aspect-ratio: 16 / 9;
}

/* demo-game-fallback fills the inner box */
.demo-game-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: 0;
    background: #000;
}

/* Cover */
.demo-game-bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    -webkit-filter: blur(3px);
}

/* Overlay (button + age text) */
.demo-game-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
}

/* CTA button */
.demo-game-play-btn {
    background-color: #28303d;
    color: #ffffff;
    padding: 10px 30px;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}
.demo-game-play-btn:hover {
    opacity: 0.9;
}

/* Age-gate text */
.age-gate-text {
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 12px;
    margin: 0;
    padding: 10px 20px;
}

/* Iframe fills the inner box */
.demo-game-iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    display: block;
}

/* Responsive */
@media (max-width: 480px) {
    .demo-game-inner { min-height: 250px; }
    .demo-game-overlay { padding: 16px; }
}
