/* ================================
   WRAPPER
================================ */
.uug-spin-wrapper {
    max-width: 420px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

/* ================================
   WHEEL CONTAINER
================================ */
.uug-wheel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

/* ================================
   WHEEL
================================ */
.uug-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 14px solid #111;
    box-shadow:
        inset 0 0 0 4px rgba(255,255,255,0.08);
    transition: transform 4.5s cubic-bezier(0.17,0.67,0.12,0.99);
}

/* CENTER KNOB */
.uug-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    background: #111;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 0 6px #fff;
    z-index: 3;
}

/* ================================
   POINTER
================================ */
.uug-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);

    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 28px solid #e63946;

    z-index: 10;
}


/* ================================
   LABELS
================================ */
.uug-wheel-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.uug-label-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-origin: center;
}

.uug-wheel-label {
    position: absolute;

    /* 🔐 TRUE CENTERING */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(115px);

    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}


@media (max-width: 768px) {
    .uug-wheel-label {
        font-size: 12px;
        transform: translate(-50%, -50%) translateX(105px);
    }
}

@media (max-width: 480px) {
    .uug-wheel-label {
        font-size: 11px;
        transform: translate(-50%, -50%) translateX(95px);
    }
}



/* ================================
   SPIN BUTTON
================================ */
.uug-spin-btn {
    margin-top: 24px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    min-width: 180px;
}

.uug-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================
   RESULT MESSAGE
================================ */
.uug-spin-message {
    display: none;
    margin: 14px auto 28px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #15803d, #22c55e);
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    text-align: center;
     width: fit-content;      /* 🔥 wrap to text */
    max-width: 90%;
    white-space: nowrap;     /* keep it compact */
}


@media (max-width: 480px) {
    .uug-spin-message {
        margin-bottom: 14px;
    }
}




/* ================================
   COOLDOWN TEXT
================================ */
.uug-cooldown-text {
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.95;
}

/* ================================
   GAME LOADING
================================ */
.uug-spin-game-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* ==================================================
   ðŸ”¥ HARDENED FULLSCREEN PLAY-AGAIN OVERLAY (FINAL)
================================================== */
#uug-play-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0);
    backdrop-filter: blur(1px);
}

/* OVERLAY BOX */
#uug-play-banner .overlay-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: min(92%, 420px);
    padding: 26px 22px;

    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 18px;

    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}


/* OVERLAY TITLE */
#uug-play-banner .ready {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 900;
    color: #fde047;
    margin-bottom: 18px;
    line-height: 1.25;
}

#uug-play-banner .countdown {
    color: #ffffff;      /* make text white */
    font-weight: 600;
    opacity: 0.95;
}

@media (max-width: 480px) {
    #uug-play-banner .countdown {
        font-size: 13px;
    }
}



/* ACTION BUTTONS */
.uug-play-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.uug-play-actions button {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 800;

    border-radius: 12px;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    white-space: nowrap;
}

/* BUTTON COLORS */
.uug-btn-again {
    background: #fde047;
    color: #14532d;
}

.uug-btn-other {
    background: #0ea5e9;
    color: #fff;
}

/* ================================
   MOBILE SAFETY
================================ */
@media (max-width: 480px) {

    .uug-play-actions {
        flex-direction: column;
    }

    .uug-play-actions button {
        width: 100%;
    }
}


/* ======================================
   USER ACTIVITY LOG – FRONTEND
====================================== */

.uug-activity-log {
    max-width: 900px;
    margin: 30px auto;
}

/* TABLE */
.uug-activity-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fff;
}

.uug-activity-table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 14px 12px;
    background: #f6f7f7;
    border-bottom: 3px solid #4f46e5;
    color: #111;
    text-align: left;
}

.uug-activity-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

/* POINT COLORS */
.uug-plus {
    color: #16a34a;
    font-weight: 700;
}

.uug-zero {
    color: #6b7280;
}

/* ======================================
   FILTER
====================================== */
.uug-activity-filter {
    margin: 16px 0;
}

.uug-activity-filter select {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-weight: 600;
}

/* ======================================
   PAGINATION – FRONTEND (CENTERED)
====================================== */

.uug-activity-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 30px auto 40px;
    width: 100%;
    text-align: center;
}

.uug-activity-pagination .uug-page-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #4f46e5;
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}

.uug-activity-pagination .uug-page-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.uug-activity-pagination .uug-page-status {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

/* MOBILE SAFE */
@media (max-width: 480px) {
    .uug-activity-pagination {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================
   FRONTEND PAGINATION — ADMIN BUTTON STYLE
========================================= */

.uug-activity-log-wrapper .uug-activity-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

/* Button look (admin-like) */
.uug-activity-log-wrapper .uug-page-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #f6f7f7;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    color: #2c3338 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

/* Hover (admin-like) */
.uug-activity-log-wrapper .uug-page-btn:hover {
    background: #f0f0f1;
    border-color: #2271b1;
    color: #2271b1 !important;
}

/* Page text */
.uug-activity-log-wrapper .uug-page-status {
    font-size: 13px;
    font-weight: 500;
    color: #2c3338;
}


.uug-activity-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.uug-activity-pagination {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f6f7f7;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.uug-activity-pagination .uug-page-btn {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    color: #2c3338 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
}

.uug-activity-pagination .uug-page-btn:hover {
    background: #f0f0f1;
    border-color: #2271b1;
    color: #2271b1 !important;
}

.uug-activity-pagination .uug-page-status {
    font-size: 13px;
    font-weight: 600;
}





/* =========================================
   MOBILE STABILITY PATCH (NO SIZE CHANGE)
========================================= */

.uug-wheel-container {
    contain: layout paint;   /* isolate wheel from page layout */
    overflow: hidden;        /* prevent paint bleed */
}



.uug-guest-earn-note {
    color: #ffffff;
    text-align: center;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}

.uug-guest-earn-note small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: normal;
    opacity: 0.95;
}

