/* ========================================
   POPUP DAFTAR LOMBA
======================================== */

.lomba-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease,
                visibility 0.3s ease;
    z-index: 9999;
}


/* Popup aktif */

.lomba-modal.active {
    opacity: 1;
    visibility: visible;
}


/* ========================================
   ISI POPUP
======================================== */

.lomba-modal-content {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 15px;
    padding: 32px;
    overflow-y: auto;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s ease;
}


/* Animasi ketika popup muncul */

.lomba-modal.active .lomba-modal-content {
    transform: translateY(0) scale(1);
}


/* ========================================
   CLOSE BUTTON
======================================== */

.lomba-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #bdbdbd;
    color: #ffffff;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}


.lomba-modal-close:hover {
    background: red;
    transform: rotate(90deg);
}


/* ========================================
   HEADER POPUP
======================================== */

.lomba-modal-header {
    padding-right: 30px;
    margin-bottom: 18px;
}


.lomba-modal-header small {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}


.lomba-modal-header h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.4;
    color: #222;
}


.lomba-modal-header p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #f8b738;
}


/* ========================================
   CONTAINER TOMBOL
======================================== */

.lomba-modal-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid #f8b738;
    border-radius: 10px;
    background: #f8f8f8;
    max-height: 62vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}


/* ========================================
   TOMBOL LOMBA
======================================== */

.lomba-modal-button {
    min-height: 48px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8b738;
    color: #222;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.lomba-modal-button:hover {
    background: #f5ae24;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}