html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* BODY CENTER */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
}
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
     pointer-events: none; /* ⬅️ PENTING */
}

/* Overlay biar slot kelihatan */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
    pointer-events: none; /* ⬅️ PENTING */
}

/* SALJU */
body::before {
    content: "❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄";
    position: fixed;
    width: 100%;
    height: 100%;
    font-size: 30px;
    opacity: 0.1;
    animation: snow 20s linear infinite;
}

@keyframes snow {
    from { transform: translateY(-100px); }
    to { transform: translateY(100vh); }
}

/* WRAPPER */
.slot-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    align-items: center;
    position: relative;
    z-index: 5; /* ⬅️ SLOT DI ATAS */
}

/* HEADER */
.slot-header {
    position: absolute;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: gold;
    text-shadow: 0 0 10px red;
}

/* MESIN */
.machine {
    background: linear-gradient(#c40000, #7a0000);
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 0 40px gold;
    text-align: center;
    min-width: 420px;
}

/* LAMPU */
.lights {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.lights span {
    width: 16px;
    height: 16px;
    background: gold;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

.lights span:nth-child(2){animation-delay:.2s}
.lights span:nth-child(3){animation-delay:.4s}
.lights span:nth-child(4){animation-delay:.6s}
.lights span:nth-child(5){animation-delay:.8s}

@keyframes blink {
    from { opacity: .3 }
    to { opacity: 1 }
}

/* CONTROL */
.control {
    margin-bottom: 10px;
}

/* FRAME */
.frame {
    padding: 15px;
    background: #111;
    border-radius: 15px;
    border: 4px solid gold;
}



/* INI KUNCI UTAMA */
.reel-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* max 3 baris */
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;

    font-size: 18px;
    line-height: 1.2;
    font-weight: bold;
    color: #00ffcc;

    word-break: break-word;
    white-space: normal;
}
/* REELS */
.reels {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.reset-global {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;

    /* background: linear-gradient(145deg, #4d4c4c, #ff9900); */
    background: #979797;
    color: #5a0000;
    border: none;
    padding: 12px 20px;
    border-radius: 999px;

    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,.4);
    transition: transform .2s, box-shadow .2s;
}

.reset-global:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,.6);
}
/* .reel {
    width: 110px;
    height: 90px;
    background: #000;
    color: #00ff99;
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 3px solid gold;
    box-shadow: inset 0 0 15px red;
} */
 .reel {
    width: 140px;              /* boleh diperbesar */
    height: 100px;
    padding: 8px;
    background: #000;
      color: #00ff99;
    border-radius: 12px;
    border: 3px solid gold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* BUTTONS */
.spin-btn {
    margin-top: 15px;
    padding: 12px 35px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(#00c853, #009624);
    border: none;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px #004d1a;
}

.spin-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px #004d1a;
}

.reset-btn {
    margin-top: 10px;
    padding: 8px 25px;
    font-size: 14px;
    background: linear-gradient(#ffd600, #ffab00);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
