/* ============================================================
   Verifikasi Usia — stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   Font Sen — di-host sendiri (subset latin) supaya tidak ada
   request ke fonts.googleapis.com / fonts.gstatic.com.
   ------------------------------------------------------------ */

@font-face {
    font-family: 'Sen';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/sen-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Sen';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/sen-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Sen';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/sen-800.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sen', Arial, Helvetica, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #000;
}

/* ------------------------------------------------------------
   Overlay + kartu popup
   ------------------------------------------------------------ */

.popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 999999;
    padding: 20px;
}

.age-popup {
    width: 480px;
    max-width: 92%;
    background: #101010;
    border: 1px solid #2b2b2b;
    border-radius: 18px;
    padding: 48px 40px 38px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.04);
}

.age-popup h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
}

.age-popup p {
    color: #bdbdbd;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* ------------------------------------------------------------
   Tombol
   ------------------------------------------------------------ */

.btn {
    width: 100%;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:focus-visible {
    outline: 2px solid #6ea8ff;
    outline-offset: 3px;
}

.btn-yes {
    background: #fff;
    color: #000;
    margin-bottom: 14px;
}

.btn-yes:hover {
    background: #ececec;
}

.btn-no {
    background: transparent;
    color: #ff3b55;
    border: 1.5px solid #ff3b55;
}

.btn-no:hover {
    background: rgba(255, 59, 85, 0.08);
}

/* Tombol belum boleh dipakai (dwell time / human signal belum terpenuhi) */
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ------------------------------------------------------------
   Baris notifikasi (rate limit, peringatan, hitung mundur)
   ------------------------------------------------------------ */

.notice {
    min-height: 18px;
    margin: 18px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.4;
    color: #8a8a8a !important;
}

.notice.warn {
    color: #ffb454 !important;
}

.notice.error {
    color: #ff3b55 !important;
}

/* ------------------------------------------------------------
   Honeypot — harus tak terlihat manusia, tapi tetap ada di DOM
   supaya bot yang meng-klik semua elemen ketahuan.
   Jangan pakai display:none (banyak bot melewatinya).
   ------------------------------------------------------------ */

.hp-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ------------------------------------------------------------
   Loading overlay
   ------------------------------------------------------------ */

.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    justify-content: center;
    align-items: center;
}

.loading-overlay.is-visible {
    display: flex;
}

.loader {
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .loader {
        animation-duration: 3s;
    }
    .btn {
        transition: none;
    }
}

/* ------------------------------------------------------------
   noscript
   ------------------------------------------------------------ */

.noscript-msg {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #000;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 600px) {
    .age-popup {
        padding: 40px 24px 30px;
    }
    .age-popup h2 {
        font-size: 21px;
    }
    .age-popup p {
        font-size: 15px;
    }
}
