/* DGOJ Juego Responsable */

/* ---------- Ventana emergente ---------- */
.dgoj-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    transform: none;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dgoj-modal {
    position: relative;
    margin: 0;
    /* >=15% de la superficie visible en cualquier viewport */
    width: 50vw;
    min-width: 320px;
    min-height: 32vh;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dgoj-modal a.dgoj-popup-link {
    display: block;
    flex: 1;
}

.dgoj-modal img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 30vh;
    object-fit: contain;
}

.dgoj-modal .dgoj-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.dgoj-modal .dgoj-countdown {
    position: absolute;
    bottom: 6px;
    right: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
}

/* Móvil: ocupar también >=15% */
@media (max-width: 768px) {
    .dgoj-modal {
        width: 92vw;
        min-height: 40vh;
    }
    .dgoj-modal img { min-height: 38vh; }
}

/* ---------- Footer ---------- */
.dgoj-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 18px 12px;
    flex-wrap: wrap;
    background: #2d2d2d;
    width: 100%;
    box-sizing: border-box;
}

.dgoj-footer a { display: inline-block; }

.dgoj-footer img {
    max-height: 52px;
    height: 52px;
    width: auto;
    max-width: 60vw;
    object-fit: contain;
}

@media (max-width: 768px) {
    .dgoj-footer { gap: 14px; padding: 14px 10px; }
    .dgoj-footer img { height: 40px; max-height: 40px; }
}

/* ---------- Banda de advertencia en banners ---------- */
.dgoj-ad-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

/* banda debajo de la imagen, proporción natural -> texto legible */
.dgoj-ad-band {
    display: block;
    width: 100%;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.dgoj-ad-band img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.dgoj-ad-band a {
    display: block;
    width: 100%;
    height: 100%;
}

.dgoj-ad-band .dgoj-band-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #000;
    color: #fff;
    font-size: clamp(8px, 1.4vw, 14px);
    line-height: 1.15;
    text-align: center;
    padding: 4px 6px;
    box-sizing: border-box;
}
