
/* =========================================================
   POPUP SLOT — TEMA SAMURAI JEPANG
   Hitam Arang • Merah Darah • Emas • Katana • Kabut
========================================================= */

.SLOT {
    --blade-cut: 10px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    color: #f3dfb3;
    background-color: transparent;

    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "Playfair Display",
        Georgia,
        serif;
}

/* =========================================================
   OVERLAY
========================================================= */

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100vh;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(190, 0, 0, 0.17),
            transparent 34%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(215, 173, 77, 0.08),
            transparent 40%
        ),
        linear-gradient(
            rgba(2, 2, 2, 0.84),
            rgba(11, 0, 0, 0.86)
        );

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Kabut Jepang */
.popup-overlay::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            ellipse at 15% 80%,
            rgba(255, 255, 255, 0.04),
            transparent 32%
        ),
        radial-gradient(
            ellipse at 82% 25%,
            rgba(255, 255, 255, 0.025),
            transparent 30%
        );

    pointer-events: none;
}

/* =========================================================
   POPUP CONTAINER
========================================================= */

.popup-container {
    position: relative;

    width: 90%;
    max-width: 420px;
    padding-bottom: 20px;

    overflow: hidden;
    text-align: center;

    border: 1px solid rgba(215, 173, 77, 0.44);
    border-radius: 6px;

    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(185, 0, 0, 0.45) 0 7%,
            rgba(118, 0, 0, 0.13) 8%,
            transparent 26%
        ),
        radial-gradient(
            circle at 15% 18%,
            rgba(215, 173, 77, 0.08),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            rgba(20, 13, 11, 0.98),
            rgba(25, 4, 4, 0.97) 52%,
            rgba(3, 3, 3, 0.99)
        );

    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 0 30px rgba(164, 0, 0, 0.2),
        0 0 22px rgba(215, 173, 77, 0.1),
        inset 0 0 35px rgba(0, 0, 0, 0.48);

    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);

    animation:
        samuraiPopupIn 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.18),
        samuraiPopupPulse 4s ease-in-out infinite;
}

/* Matahari terbit Jepang */
.popup-container::before {
    content: "";
    position: absolute;
    top: -175px;
    right: -155px;
    z-index: 1;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(196, 0, 0, 0.13) 0deg 7deg,
            transparent 7deg 15deg
        );

    opacity: 0.9;
    pointer-events: none;

    animation: samuraiSunRotate 55s linear infinite;
}

/* Garis tebasan katana */
.popup-container::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -85%;
    z-index: 2;

    width: 45%;
    height: 320%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.06),
            rgba(240, 199, 95, 0.25),
            rgba(190, 0, 0, 0.12),
            transparent
        );

    transform: rotate(25deg);
    pointer-events: none;

    animation: katanaDiagonal 6s linear infinite;
}

/* =========================================================
   GAMBAR POPUP
========================================================= */

.popup-image {
    position: relative;
    z-index: 3;

    display: block;
    width: 100%;

    border-bottom: 1px solid rgba(215, 173, 77, 0.3);

    filter:
        contrast(1.04)
        saturate(0.95);
}

/* =========================================================
   BUTTON WRAPPER
========================================================= */

.clk-btn-sgp {
    position: relative;
    z-index: 3;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;

    width: 97%;
    padding: 20px;

    overflow: hidden;

    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        Georgia,
        serif;

    font-weight: 800;
}

.clk-btn-sgp::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: calc(100% - 34px);
    height: 2px;

    transform: translate(-50%, -50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(176, 0, 0, 0.75),
            rgba(238, 202, 104, 0.9),
            rgba(176, 0, 0, 0.75),
            transparent
        );

    opacity: 0.3;
    filter: blur(1px);
}

/* =========================================================
   BUTTON DASAR
========================================================= */

.clk-btn-sgp a {
    position: relative;
    z-index: 1;

    overflow: hidden;

    margin: 0;
    padding: 16px 12px;

    border: 1px solid transparent;
    border-radius: 4px;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    text-decoration: none;

    clip-path:
        polygon(
            var(--blade-cut) 0,
            100% 0,
            100% calc(100% - var(--blade-cut)),
            calc(100% - var(--blade-cut)) 100%,
            0 100%,
            0 var(--blade-cut)
        );

    box-shadow:
        0 8px 0 #020202,
        0 12px 20px rgba(0, 0, 0, 0.42);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.32s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.32s ease,
        border-color 0.32s ease,
        color 0.32s ease;
}

/* Border emas menyala */
.clk-btn-sgp a::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -2;

    border-radius: 5px;

    background:
        linear-gradient(
            135deg,
            #8d0000,
            #f0cc6b,
            #640000
        );

    opacity: 0;

    transition: opacity 0.28s ease;
}

/* Lapisan bagian dalam */
.clk-btn-sgp a::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;

    border-radius: 3px;

    background:
        linear-gradient(
            145deg,
            rgba(23, 15, 12, 0.98),
            rgba(8, 7, 6, 0.98)
        );
}

.clk-btn-sgp a:hover::after {
    opacity: 1;
}

.clk-btn-sgp a:hover {
    transform: translateY(-5px) scale(1.02);
}

.clk-btn-sgp a span {
    display: inline-block;

    transition: transform 0.28s ease;
}

.clk-btn-sgp a:hover span {
    transform: translateX(2px);
}

/* =========================================================
   LOGIN BUTTON — EMAS GELAP
========================================================= */

.login {
    position: relative;

    color: #eccb70 !important;

    border: 1px solid rgba(215, 173, 77, 0.48);

    background:
        linear-gradient(
            145deg,
            #2b2110,
            #0b0905
        );

    text-shadow:
        0 0 8px rgba(215, 173, 77, 0.24);
}

.login:hover {
    color: #fff0ae !important;

    border-color: #e8c362;

    background:
        linear-gradient(
            145deg,
            #473412,
            #151006
        );

    box-shadow:
        0 10px 0 #020202,
        0 18px 30px rgba(0, 0, 0, 0.48),
        0 0 22px rgba(215, 173, 77, 0.2);
}

/* =========================================================
   REGISTER BUTTON — MERAH SAMURAI
========================================================= */

.register {
    position: relative;

    color: #fff4dc !important;

    border: 1px solid rgba(255, 205, 135, 0.3);

    background:
        linear-gradient(
            145deg,
            #c51b1b,
            #7e0000 58%,
            #460000
        );

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.5);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.register:hover {
    color: #fff !important;

    border-color: #f2c269;

    background:
        linear-gradient(
            145deg,
            #e52d2d,
            #a30000 58%,
            #610000
        );

    box-shadow:
        0 10px 0 #020202,
        0 18px 30px rgba(0, 0, 0, 0.48),
        0 0 24px rgba(196, 0, 0, 0.28);
}

/* =========================================================
   INFO TABLE
========================================================= */

.info-table {
    position: relative;
    z-index: 3;

    width: 90%;
    margin: 20px auto;

    overflow: hidden;

    border: 1px solid rgba(215, 173, 77, 0.2);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 4px;

    color: #eee2cb;
    font-size: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(28, 17, 14, 0.92),
            rgba(6, 6, 6, 0.96)
        );

    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.42),
        inset 0 0 18px rgba(0, 0, 0, 0.26);
}

.info-table th {
    padding: 14px 10px;

    border: none;

    color: #fff0ce;

    background:
        linear-gradient(
            135deg,
            #9c0000,
            #4d0905 55%,
            #bb811f
        );

    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.75);
}

.info-table td {
    padding: 12px;

    border-bottom:
        1px solid rgba(215, 173, 77, 0.1);

    text-align: left;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background:
        linear-gradient(
            90deg,
            rgba(156, 0, 0, 0.13),
            rgba(215, 173, 77, 0.04),
            transparent
        );
}

/* =========================================================
   FOOTER POPUP
========================================================= */

.popup-footer {
    position: relative;
    z-index: 3;

    padding: 20px 12px;

    color: #cfc1a8;

    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Playfair Display",
        Georgia,
        serif;

    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   PARTIKEL EMAS
========================================================= */

.gold-particle {
    position: absolute;
    z-index: 1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(247, 210, 112, 0.9) 0%,
            rgba(171, 0, 0, 0.42) 55%,
            transparent 100%
        );

    box-shadow:
        0 0 9px rgba(239, 197, 84, 0.46),
        0 0 13px rgba(177, 0, 0, 0.24);

    pointer-events: none;

    animation:
        samuraiParticle 10s infinite ease-in-out;
}

/* =========================================================
   BORDER DEKORATIF
========================================================= */

.luxury-border {
    position: absolute;
    inset: 0;
    z-index: 4;

    border: 1px solid rgba(215, 173, 77, 0.22);
    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(215, 173, 77, 0.04) 32%,
            rgba(157, 0, 0, 0.08) 68%,
            transparent 100%
        );

    pointer-events: none;
}

.luxury-border::before,
.luxury-border::after {
    content: "";
    position: absolute;

    width: 42px;
    height: 42px;

    border-color: #d7ad4d;
    opacity: 0.65;
}

.luxury-border::before {
    top: 7px;
    left: 7px;

    border-top: 2px solid;
    border-left: 2px solid;
}

.luxury-border::after {
    right: 7px;
    bottom: 7px;

    border-right: 2px solid;
    border-bottom: 2px solid;
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border: 1px solid rgba(215, 173, 77, 0.42);
    border-radius: 3px;

    background:
        linear-gradient(
            145deg,
            rgba(31, 20, 13, 0.94),
            rgba(5, 5, 5, 0.95)
        );

    box-shadow:
        0 0 15px rgba(215, 173, 77, 0.1),
        inset 0 0 9px rgba(0, 0, 0, 0.4);

    cursor: pointer;

    transform: rotate(45deg);

    transition:
        transform 0.28s ease,
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.close-btn:hover {
    border-color: #efc25c;

    background:
        linear-gradient(
            145deg,
            #b70000,
            #5b0000
        );

    transform: rotate(135deg) scale(1.06);

    box-shadow:
        0 0 19px rgba(193, 0, 0, 0.4),
        0 0 11px rgba(215, 173, 77, 0.2);
}

.close-btn::before,
.close-btn::after {
    content: "";
    position: absolute;

    width: 16px;
    height: 2px;

    border-radius: 2px;

    background: #f2cf75;
}

.close-btn::before {
    transform: rotate(0deg);
}

.close-btn::after {
    transform: rotate(90deg);
}

/* =========================================================
   ANIMASI
========================================================= */

@keyframes samuraiPopupPulse {
    0%,
    100% {
        box-shadow:
            0 28px 60px rgba(0, 0, 0, 0.72),
            0 0 0 1px rgba(255, 255, 255, 0.025) inset,
            0 0 20px rgba(164, 0, 0, 0.14),
            0 0 15px rgba(215, 173, 77, 0.08);
    }

    50% {
        box-shadow:
            0 28px 60px rgba(0, 0, 0, 0.72),
            0 0 0 1px rgba(255, 255, 255, 0.035) inset,
            0 0 31px rgba(187, 0, 0, 0.23),
            0 0 23px rgba(215, 173, 77, 0.14);
    }
}

@keyframes katanaDiagonal {
    0% {
        transform:
            translate(-80%, -65%)
            rotate(25deg);
    }

    100% {
        transform:
            translate(235%, 75%)
            rotate(25deg);
    }
}

@keyframes samuraiPopupIn {
    0% {
        opacity: 0;
        transform:
            scale(0.65)
            rotate(-5deg);
    }

    55% {
        transform:
            scale(1.02)
            rotate(1deg);
    }

    100% {
        opacity: 1;
        transform:
            scale(1)
            rotate(0);
    }
}

@keyframes samuraiSunRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes samuraiParticle {
    0%,
    100% {
        opacity: 0;
        transform:
            translateY(0)
            translateX(0)
            rotate(0deg);
    }

    10% {
        opacity: 0.65;
    }

    90% {
        opacity: 0.65;
    }

    100% {
        opacity: 0;
        transform:
            translateY(-120px)
            translateX(40px)
            rotate(180deg);
    }
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 768px) {
    .clk-btn-sgp {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .clk-btn-sgp a {
        padding: 18px 12px;
    }
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 480px) {
    .popup-container {
        width: 95%;
        max-width: 350px;
    }

    .clk-btn-sgp {
        width: 100%;
        padding: 16px;
    }

    .clk-btn-sgp a {
        padding: 16px 10px;
        font-size: 14px;
    }

    .info-table {
        width: 92%;
        font-size: 13px;
    }

    .info-table th,
    .info-table td {
        padding: 10px 8px;
    }

    .popup-footer {
        padding: 17px 12px;
        font-size: 12px;
    }

    .close-btn {
        top: 11px;
        right: 11px;

        width: 29px;
        height: 29px;
    }

    .close-btn::before,
    .close-btn::after {
        width: 13px;
    }
}

/* =========================================================
   AKSESIBILITAS ANIMASI
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .popup-container,
    .popup-container::before,
    .popup-container::after,
    .gold-particle {
        animation: none !important;
    }

    .clk-btn-sgp a,
    .close-btn {
        transition: none;
    }
}

