/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
 Description: Child theme for Hello Elementor
 Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    color: #ffffff;
    background: #3d2f00; /* Fallback gold shade */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #3d2f00 0%,
        #b8860b 50%,
        #3d2f00 100%
    );
    background-size: 100% 100%;
    animation: gradientFlow 20s infinite linear;
    z-index: -2;
    pointer-events: none;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.container {
    text-align: center;
    position: relative;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.event-rules, .my-prizes, .spin-again-btn {
    background: linear-gradient(90deg, #ffd700, #b8860b);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.event-rules::before, .my-prizes::before, .spin-again-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-rules:hover::before, .my-prizes:hover::before, .spin-again-btn:hover::before {
    opacity: 1;
}

.event-rules:hover, .my-prizes:hover, .spin-again-btn:hover {
    background: linear-gradient(90deg, #b8860b, #ffd700);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
    animation: buttonGlow 1.2s infinite alternate;
}

@keyframes buttonGlow {
    0% { box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 8px 30px rgba(184, 134, 11, 0.9); }
}

.top-right button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    margin-left: 0px;
    transition: all 0.3s ease;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.top-right button:last-child {
    display: none !important;
}

.top-right button:hover {
    transform: scale(1.2) rotate(10deg);
    color: #b8860b;
}

.title {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(184, 134, 11, 0.6);
    font-size: 42px;
    margin-bottom: 50px;
    animation: glowing 1.8s infinite alternate;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    animation: borderGlow 2.5s infinite alternate;
}

@keyframes borderGlow {
    0% { width: 60%; }
    100% { width: 80%; }
}

@keyframes glowing {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 15px rgba(184, 134, 11, 0.9), 0 0 30px rgba(184, 134, 11, 0.6); }
}

.wheel-container {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
    animation: floating 6s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    will-change: transform;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ff007a 0deg 51.43deg,
        #00ffcc 51.43deg 102.86deg,
        #ffcc00 102.86deg 154.29deg,
        #00ddeb 154.29deg 205.72deg,
        #9933ff 205.72deg 257.15deg,
        #ff4d4d 257.15deg 308.58deg,
        #00ffcc 308.58deg 360deg
    );
    position: relative;
    transition: transform 5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 20px solid #8b6508;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    will-change: transform;
    overflow: visible;
}

.wheel .dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 3px #ffffff;
    animation: discoPulse 1.5s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: 20;
    will-change: transform, opacity;
}

@keyframes discoPulse {
    0% {
        background: #ffffff;
        box-shadow: 0 0 6px #ffffff, 0 0 12px #ffd700;
        transform: translate(-50%, -50%) scale(1);
    }
    33% {
        background: #ffd700;
        box-shadow: 0 0 8px #ffd700, 0 0 16px #ffffff;
        transform: translate(-50%, -50%) scale(1.1);
    }
    66% {
        background: #b8860b;
        box-shadow: 0 0 8px #b8860b, 0 0 16px #ffffff;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        background: #ffffff;
        box-shadow: 0 0 6px #ffffff, 0 0 12px #ffd700;
        transform: translate(-50%, -50%) scale(1);
    }
}

.wheel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
    transform: translateZ(-20px);
}

.segment {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
}

.prize-label {
    position: absolute;
    width: 100px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8), /* Sharp black shadow for definition */
        0 0 15px rgba(255, 215, 0, 0.9), /* Gold glow for contrast */
        0 0 25px rgba(255, 215, 0, 0.6); /* Wider gold glow for depth */
    letter-spacing: 1px;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.4);
    z-index: 10;
    animation: centerPulse 2.5s infinite alternate;
}

@keyframes centerPulse {
    0% { box-shadow: 0 0 20px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.4); }
    100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.9), inset 0 0 25px rgba(255, 255, 255, 0.6); }
}

.spin-btn {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #ffd700;
    border: none;
    padding: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    position: relative;
    overflow: hidden;
}

.spin-btn:hover {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.9), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    animation: pulse 1.2s infinite alternate;
}

.spin-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spin-btn:hover::before {
    opacity: 1;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.5); }
    100% { box-shadow: 0 8px 30px rgba(184, 134, 11, 0.9), inset 0 3px 8px rgba(255, 255, 255, 0.6); }
}

.pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%) rotateX(20deg);
    width: 35px;
    height: 45px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 11;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    animation: pointerGlow 1.8s infinite alternate;
}

.pointer:hover {
    transform: translateX(-50%) rotateX(20deg) scale(1.1);
}

.pointer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    clip-path: polygon(50% 100%, 100% 0, 100% 100%);
    transform: translateX(1px) skewY(20deg);
    z-index: -1;
}

@keyframes pointerGlow {
    0% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); }
    100% { box-shadow: 0 5px 30px rgba(255, 215, 0, 0.9); }
}

.stats {
    margin-top: 25px;
    color: #ffffff;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spin-bonus .bonus-amount {
    color: #ffd700;
    font-weight: 700;
    font-size: 28px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.rules-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(61, 47, 0, 0.95);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    max-width: 500px;
    width: 90%;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.rules-section:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    animation: wiggle 0.6s ease-in-out;
}

@keyframes wiggle {
    0% { transform: translate(-50%, -50%) scale(0.8) rotate(0deg); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1) rotate(3deg); opacity: 1; }
    40% { transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
    60% { transform: translate(-50%, -50%) scale(1) rotate(2deg); }
    80% { transform: translate(-50%, -50%) scale(1) rotate(-1deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.rules-section h2 {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 30px rgba(184, 134, 11, 0.7);
    font-size: 32px;
    text-align: center;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glowText 2s infinite alternate;
}

@keyframes glowText {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.6); }
    to { text-shadow: 0 0 15px rgba(184, 134, 11, 0.9), 0 0 30px rgba(184, 134, 11, 0.7); }
}

.rules-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.rules-section li {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.8;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
}

.rules-section li:before {
    content: "🎮";
    font-size: 22px;
    color: #ffd700;
    position: absolute;
    left: -7px;
    animation: pulse 1.8s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

.rules-section .close-rules {
    background: linear-gradient(90deg, #ffd700, #b8860b);
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
    transition: all 0.3s ease-in-out;
    display: block;
    margin: 0 auto;
}

.rules-section .close-rules:hover {
    background: linear-gradient(90deg, #b8860b, #ffd700);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
}

.rules-section .close-rules:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.rules-section .close-rules:focus {
    outline: none;
}

.hidden {
    display: none;
}

/* Prize Modal Styles */
.prize-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.prize-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.prize-modal-content {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(184, 134, 11, 0.95));
    padding: 35px;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.prize-modal:not(.hidden) .prize-modal-content {
    transform: scale(1);
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    0% { transform: translateY(-100%) scale(0.8); opacity: 0; }
    70% { transform: translateY(10%) scale(1.05); opacity: 1; }
    100% { transform: translateY(0) scale(1); }
}

.prize-modal h2 {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 30px rgba(184, 134, 11, 0.7);
    font-size: 32px;
    margin: 0 0 25px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-align: center;
}

.prize-history-list {
    color: #ffffff;
    font-size: 18px;
}

.prize-entry {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    margin: 15px 0;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 5px solid #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prize-entry:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

/* State-specific styles */
.prize-entry.approved {
    border-left-color: #00cc00; /* Green retained for approved */
}

.prize-entry.rejected {
    border-left-color: #ff0000; /* Red retained for rejected */
}

.prize-entry.pending {
    border-left-color: #ffcc00; /* Yellow retained for pending */
}

.prize-text {
    display: block;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    font-size: 18px;
}

.prize-id {
    display: block;
    font-size: 16px;
    color: #ffffff;
    word-break: break-all;
    opacity: 0.9;
}

.prize-time {
    display: block;
    font-size: 16px;
    color: #ffffff;
    opacity: 0.9;
}

/* Default status text style (fallback) */
.status-text {
    display: block;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

/* Approved status text (light green) */
.prize-entry.approved .status-text {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

/* Rejected status text (red) */
.prize-entry.rejected .status-text {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

/* Pending status text (yellow) */
.prize-entry.pending .status-text {
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

.no-prizes {
    text-align: center;
    padding: 25px;
    color: #ffffff;
    font-style: italic;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
}

.close-modal {
    background: linear-gradient(90deg, #ffd700, #b8860b);
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin: 25px auto 0;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
}

.close-modal:hover {
    background: linear-gradient(90deg, #b8860b, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
}

/* Scrollbar styling */
.prize-modal-content::-webkit-scrollbar {
    width: 10px;
}

.prize-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.prize-modal-content::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}

.prize-modal-content::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* Win Modal Styles */
.win-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.win-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.win-modal-content {
    padding: 35px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.win-modal-content.winning {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(184, 134, 11, 0.95));
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.win-modal-content.zonk {
    background: linear-gradient(135deg, rgba(61, 47, 0, 0.95), rgba(30, 23, 0, 0.95));
    box-shadow: 0 10px 50px rgba(61, 47, 0, 0.8), inset 0 0 20px rgba(255, 215, 0, 0.3);
}

.win-modal:not(.hidden) .win-modal-content {
    transform: scale(1);
    animation: zoomIn 0.5s ease-in-out;
}

@keyframes zoomIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.win-modal-content.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.win-modal h2 {
    color: #ffffff;
    font-size: 34px;
    margin: 0 0 25px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.win-modal-content.winning h2 {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 30px rgba(184, 134, 11, 0.7);
    animation: glow 1.8s infinite alternate;
}

.win-modal-content.zonk h2 {
    text-shadow: 0 0 15px rgba(61, 47, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.7);
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 15px rgba(184, 134, 11, 0.9), 0 0 30px rgba(184, 134, 11, 0.7); }
}

.win-message {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
}

.win-modal-content.winning .win-message {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.win-modal-content.zonk .win-message {
    color: #b8860b;
    text-shadow: 0 0 15px rgba(184, 134, 11, 0.7);
}

.close-win-modal {
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.win-modal-content.winning .close-win-modal {
    background: linear-gradient(90deg, #ffd700, #b8860b);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
}

.win-modal-content.winning .close-win-modal:hover {
    background: linear-gradient(90deg, #b8860b, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
}

.win-modal-content.zonk .close-win-modal {
    background: linear-gradient(90deg, #3d2f00, #8b6508);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(61, 47, 0, 0.6);
}

.win-modal-content.zonk .close-win-modal:hover {
    background: linear-gradient(90deg, #8b6508, #b8860b);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.8);
}

/* Confetti container */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Spin Limit Modal Styles */
.spin-limit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.spin-limit-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.spin-limit-modal-content {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(184, 134, 11, 0.95));
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.8);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.spin-limit-modal:not(.hidden) .spin-limit-modal-content {
    transform: scale(1);
    animation: bounceIn 0.5s ease-in-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    80% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.spin-limit-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: pulse 1.8s infinite;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.spin-limit-modal-content h2 {
    color: #ffffff;
    margin: 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 30px rgba(184, 134, 11, 0.7);
}

.spin-limit-modal-content p {
    color: #ffffff;
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.spin-limit-ok-btn {
    background: linear-gradient(90deg, #ffd700, #b8860b);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
}

.spin-limit-ok-btn:hover {
    background: linear-gradient(90deg, #b8860b, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
}

.close-spin-limit-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.close-spin-limit-modal:hover {
    color: #ffd700;
}

/* Stats Container */
.stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Spin Bonus Styling */
.spin-bonus {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5), inset 0px 2px 5px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spin-bonus:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

.bonus-amount {
    font-weight: 700;
    color: #ffd700;
    font-size: 28px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Latest Winner Box */
.latest-winner-box {
    width: 100%;
    height: 60px;
    overflow: hidden;
    position: relative;
    border: 2px solid #ffd700;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 255, 255, 0.15));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.latest-winner {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.latest-winner.show {
    opacity: 1;
    transform: translateY(0);
    animation: pulse 1.8s infinite alternate ease-in-out;
}

.latest-winner.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 20px;
    }

    .wheel-container {
        width: 350px;
        height: 350px;
    }
    
    .stats {
    margin-top: 20px;
    }

    .title {
        font-size: 34px;
        margin-bottom: 60px;
    }

    .prize-label {
        font-size: 14px;
        width: 70px;
    }

    .rules-section {
        max-width: 400px;
        padding: 20px;
        transform: translate(-50%, -50%) scale(0.8);
        backdrop-filter: none;
        box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
    }

    .rules-section ul {
        margin: 0 0 15px;
    }

    .rules-section li {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    .prize-modal-content {
        padding: 25px;
        max-width: 450px;
    }

    .prize-modal h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .prize-history-list {
        font-size: 16px;
    }

    .prize-entry {
        padding: 15px;
        gap: 6px;
    }

    .prize-text {
        font-size: 16px;
    }

    .prize-id,
    .prize-time,
    .status-text {
        font-size: 14px;
    }
    
    .event-rules, .my-prizes, .spin-again-btn {
        animation: none;
        box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
    }
    
    .wheel .dot {
        box-shadow: 0 0 3px #ffffff;
        animation: discoPulse 1.5s infinite alternate ease-in-out;
    }
}

@media (max-width: 480px) {
    html, body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    body {
        display: block;
        background-attachment: scroll;
    }

    .container {
        padding: 15px;
        width: 100%;
        max-width: none;
        border-radius: 0;
        min-height: 100vh;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    
    .stats {
    margin-top: 20px;
    }

    .wheel-container {
        width: 300px;
        height: 300px;
    }

    .title {
        font-size: 28px;
        margin-bottom: 60px;
    }

    .wheel-center {
        width: 90px;
        height: 90px;
    }

    .spin-btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .prize-label {
        font-size: 12px;
        width: 60px;
    }

    .top-bar {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .rules-section {
        top: 48%;
        transform: translate(-50%, 0) scale(0.7);
        max-width: 350px;
        padding: 15px;
    }

    .rules-section h2 {
        font-size: 26px;
        margin: 0 0 10px;
    }

    .rules-section ul {
        margin: 0 0 10px;
    }

    .rules-section li {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 8px;
        padding-left: 25px;
    }

    .rules-section .close-rules {
        padding: 10px 25px;
    }
    
    .prize-modal-content {
        padding: 20px;
        max-width: 350px;
    }

    .prize-modal h2 {
        font-size: 24px;
        letter-spacing: 1.5px;
    }

    .prize-history-list {
        font-size: 14px;
    }

    .prize-entry {
        padding: 12px;
        gap: 5px;
    }

    .prize-text {
        font-size: 14px;
    }

    .prize-id,
    .prize-time,
    .status-text {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .wheel-container {
        width: 280px;
        height: 280px;
    }

    .container {
        padding: 10px;
    }
    
    .stats {
    margin-top: 20px;
    }

    .title {
        font-size: 24px;
        margin-bottom: 60px;
    }

    .rules-section {
        top: 35%;
        transform: translate(-50%, 0) scale(0.6);
        max-width: 300px;
        padding: 10px;
    }

    .prize-label {
        font-size: 10px;
        width: 50px;
    }

    .rules-section h2 {
        font-size: 22px;
        margin: 0 0 8px;
    }

    .rules-section ul {
        margin: 0 0 8px;
    }

    .rules-section li {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 6px;
        padding-left: 20px;
    }

    .rules-section .close-rules {
        padding: 8px 20px;
    }
    
    .prize-modal-content {
        padding: 15px;
        max-width: 300px;
    }

    .prize-modal h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .prize-history-list {
        font-size: 12px;
    }

    .prize-entry {
        padding: 10px;
        gap: 4px;
    }

    .prize-text {
        font-size: 12px;
    }

    .prize-id,
    .prize-time,
    .status-text {
        font-size: 10px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 900px;
    }

    .wheel-container {
        width: 550px;
        height: 550px;
    }
    
    .stats {
    margin-top: 20px;
    }

    .title {
        font-size: 48px;
        margin-bottom: 60px;
    }

    .rules-section {
        max-width: 600px;
        padding: 25px;
    }

    .prize-label {
        width: 120px;
    }

    .rules-section h2 {
        font-size: 36px;
    }

    .rules-section ul {
        margin: 0 0 20px;
    }

    .rules-section li {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
}

/* Global Modal Styles */
.username-modal,
.custom-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.username-modal:not(.hidden),
.custom-alert-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* Gaming-Themed Modal Content */
.username-modal-content,
.custom-alert-content {
    background: radial-gradient(circle at top left, #1a1a1a, #000);
    padding: 35px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.8), 
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.85);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    overflow: hidden;
}

/* Neon Border Glow Effect */
.username-modal-content::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ffd700, #b8860b, #ffd700);
    z-index: -1;
    filter: blur(15px);
    border-radius: 23px;
}

/* Animate Pop-Up */
.username-modal:not(.hidden) .username-modal-content,
.custom-alert-modal:not(.hidden) .custom-alert-content {
    transform: scale(1);
    animation: popIn 0.5s ease-in-out;
}

/* Modal Title */
.username-modal h2 {
    color: #ffffff;
    text-shadow: 0 0 15px #ffd700;
    font-size: 28px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-family: 'Orbitron', sans-serif;
}

/* Input Styling - Updated for Visibility */
#username-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 25px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder Text */
#username-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Focus Effect */
#username-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Button Styling - Gaming Look */
#submit-username,
.custom-alert-ok-btn {
    background: linear-gradient(90deg, #ffd700, #b8860b);
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Button Hover Effect */
#submit-username:hover,
.custom-alert-ok-btn:hover {
    background: linear-gradient(90deg, #b8860b, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
}

/* Button Active Effect */
#submit-username:active,
.custom-alert-ok-btn:active {
    transform: scale(0.95);
}

/* Custom Alert Text */
.custom-alert-content p {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* Animation */
@keyframes popIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}