
#warningOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFade .35s ease;
}

.warningBox {
    background: var(--panel);
    color: var(--text);
    border-radius: 14px;
    padding: 2rem;
    max-width: 760px;
    width: calc(100% - 2rem);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    animation: modalIn .4s cubic-bezier(.22,1,.36,1);
}

.warningTitle {
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.warningGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 200px);
    gap: 22px;
    justify-content: center;
    margin-bottom: 2rem;
}

.warningItem {
    transition: transform .25s ease, box-shadow .25s ease;
}

.warningItem:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

.warningItem img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.warningItem span {
    display: block;
    margin-top: .6rem;
    font-size: .85rem;
    letter-spacing: 2px;
    color: var(--text);
}

#warningClose {
    background: var(--link);
    color: var(--bg);
    border: none;
    padding: .7rem 2.2rem;
    letter-spacing: 3px;
    border-radius: 6px;
    cursor: pointer;
    transition: .25s;
}

#warningClose:hover {
    background: var(--link-hover);
    transform: translateY(-2px);
}

.hideWarning {
    opacity: 0;
    transform: scale(.96);
    transition: .35s ease;
}

@keyframes modalIn {
    from {opacity:0; transform:translateY(20px) scale(.96);}
    to {opacity:1; transform:translateY(0) scale(1);}
}

@keyframes overlayFade {
    from {opacity:0;}
    to {opacity:1;}
}

@media (max-width: 600px) {

    .warningGrid {
        grid-template-columns: repeat(auto-fit, 140px);
        gap: 16px;
    }

    .warningItem img {
        width: 140px;
        height: 140px;
    }

    .warningBox {
        padding: 1.5rem;
    }

}