/* ============================================================
   PUNISHMENT WHEEL – CSS
   ============================================================ */

/* --- CONTAINER --- */
#punishment-wheel-container {
    position: relative;
    text-align: center;
    margin: 20px auto;
    padding: 10px;
    width: 100%;
    max-width: 600px;
}

/* --- WHEEL (canvas) --- */
#punishment-wheel-wheel {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #444 0%, #222 60%, #111 100%);
    box-shadow:
        inset 0px 2px 15px rgba(255,255,255,0.15),
        0px 10px 25px rgba(0,0,0,0.45);
}

/* ============================================================
   POINTER – STICKING TO THE WHEEL EDGE
   ============================================================ */

#punishment-wheel-indicator {
    position: absolute;
    width: 0;
    height: 0;

    /* triangle down */
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 32px solid gold;

    /* placed just above the wheel edge */
    top: calc(50% - (min(600px, 100%) / 2) - 33px);

    left: 50%;
    transform: translateX(-50%);

    filter: drop-shadow(0px 4px 7px rgba(0,0,0,0.6));

    animation: punishmentIndicatorFloat 2.5s ease-in-out infinite;
}

@keyframes punishmentIndicatorFloat {
    0%   { transform: translateX(-50%) rotate(-3deg); }
    50%  { transform: translateX(-50%) rotate(3deg); }
    100% { transform: translateX(-50%) rotate(-3deg); }
}

/* ============================================================
   BUTTON
   ============================================================ */
#punishment-wheel-btn {
    margin-top: 25px;
    padding: 15px 32px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;

    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ff3c00, #ff0000);
    color: white;
    font-weight: bold;

    letter-spacing: 0.5px;
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

#punishment-wheel-btn:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}

#punishment-wheel-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* ============================================================
   MODAL
   ============================================================ */
#punishment-wheel-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    padding: 20px;

    background-color: rgba(0,0,0,0.75);

    align-items: center;
    justify-content: center;
}

#punishment-wheel-modal[style*="display: flex"] {
    display: flex !important;
}

#punishment-wheel-modal-content {
    background: #ffffff;
    color: #111;
    padding: 28px 22px;
    border-radius: 18px;
    text-align: center;

    width: 100%;
    max-width: 420px;

    font-size: 26px;
    font-weight: bold;

    box-shadow: 0 15px 40px rgba(0,0,0,0.45);
    animation: punishmentModalFadeIn 0.25s ease-out;
}

@keyframes punishmentModalFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

#punishment-wheel-modal button {
    margin-top: 25px;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;

    border-radius: 999px;
    border: none;

    background: #333;
    color: #fff;
    transition: 0.2s;
}

#punishment-wheel-modal button:hover {
    background: #000;
    transform: translateY(-1px);
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 480px) {
    #punishment-wheel-container {
        padding: 5px;
    }

    #punishment-wheel-btn {
        width: 100%;
        font-size: 16px;
        padding: 13px 20px;
    }

    #punishment-wheel-modal-content {
        max-width: 90%;
        font-size: 22px;
        padding: 22px 16px;
    }

    #punishment-wheel-modal button {
        width: 100%;
        font-size: 15px;
        font-weight: bold;
        padding: 12px;
    }

    #punishment-wheel-indicator {
        margin-top: 35px;
    }
}