    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .montserrat {
        font-family: "Montserrat", sans-serif;
        font-optical-sizing: auto;
        font-weight: 500;
        font-style: normal;
    }
    body {
        font-family: "Montserrat", sans-serif;
        font-optical-sizing: auto;
        font-weight: 500;
        font-style: normal;
        line-height: 1.6;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .game-controls{
        display: inline-flex;
        text-align: center;
        align-items: center;
    }
    .banner {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #333;
        color: white;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    .banner-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .navigation {
        background-color: #34495e;
        padding: 1rem;
    }

    .navigation ul {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 2rem;
    }
    .nav-menu{
        position: relative;
    }
    .navigation a {
        color: white;
        text-decoration: none;
    }

    .main-content {
        display: flex;
        flex: 1;
        background: transparent;
        color: white;
        position: relative;
        margin-top: 150px;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        contain: content; /* Improve performance and ensure containment */
        position: relative;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .main-content::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Edge */
    }

    .header-panel {
        background: transparent;
        width: 250px;
        padding: 1rem;
    }

    .body-container {
        flex: 1;
        padding: 2rem;
        text-align: center;
        clip-path: polygon(2% 0, 100% 0, 98% 100%, 0% 100%);
        background: transparent;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);

    }

    .ending-panel {
        background: transparent;
        width: 200px;
        padding: 1rem;
    }

    .footer {
        background-color: #2c3e50;
        color: white;
        text-align: center;
        padding: 1rem;
        margin-top: auto;
    }

    .nav-menu {
        background: rgba(30, 30, 30, 0.9);
        padding: 20px 40px;
        border-radius: 15px;
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
        border: 1px solid rgba(147, 51, 234, 0.2);
    }

    .nav-list {
        display: flex;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* Fixed: Contained the button and its effects */
    .nav-item {
        position: relative;
        overflow: hidden;
        clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
    }

    .nav-button {
        display: block; /* Changed to block to fill the container */
        color: #fff;
        text-decoration: none;
        padding: 12px 24px;
        font-weight: bold;
        letter-spacing: 1px;
        text-transform: uppercase;
        position: relative;
        transition: all 0.3s ease;
        background: rgba(147, 51, 234, 0.1);
        z-index: 1; /* Ensure text stays above the effect */
    }

    .nav-button:hover {
        background: rgba(147, 51, 234, 0.2);
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.5),
                    0 0 40px rgba(147, 51, 234, 0.3);
        transform: translateY(-2px);
    }

    /* Fixed: Contained the sweep effect */
    .nav-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
        90deg,
        transparent,
        rgba(147, 51, 234, 0.2),
        transparent
        );
        transition: 0.5s;
        z-index: -1; /* Place the effect behind the text */
    }

    .nav-button:hover::before {
        left: 100%;
    }

    .nav-button.active {
        background: rgba(147, 51, 234, 0.8);
        box-shadow: 0 0 25px rgba(147, 51, 234, 0.8);
    }

    @keyframes pulse {
        0% {
        box-shadow: 0 0 25px rgba(147, 51, 234, 0.8);
        }
        50% {
        box-shadow: 0 0 35px rgba(147, 51, 234, 0.9);
        }
        100% {
        box-shadow: 0 0 25px rgba(147, 51, 234, 0.8);
        }
    }


    @media (max-width: 768px) {
        .main-content {
            flex-direction: column;
        }
        .header-panel, .ending-panel {
            width: 100%;
        }
    }


        /* The switch container */
        .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }

    /* Hide default checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    /* The slider */
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
    }

    /* The circle on the slider */
    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
    }

    /* When toggled */
    input:checked + .slider {
        background-color: #18d100;
    }

    input:checked + .slider:before {
        transform: translateX(26px);
    }

    /* Rounded slider */
    .slider.round {
        border-radius: 34px;
    }

    .slider.round:before {
        border-radius: 50%;
    }

    /* PRIZE CONFIG HANDLER */
    .prize-config-selector {
        color: white;
        text-align: center;
        background: transparent;
        border-radius: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        position: relative;
    }

    .config-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 15px;
        color: white;
    }

    .config-options {
        justify-content: center;
        gap: 20px;
    }

    .config-button {
        background: transparent;
        border-radius: 0;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .config-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        background: #c084fc;
    }

    .config-button.active {
        border-color: #a855f7;
        background: #9333ea;
    }
    .config-button.selected {
        border-color: #a855f7;
        background: #7c3aed;
    }
    .config-icon {
        font-size: 24px;
    }

    .config-label {
        font-size: 14px;
        color: #666;
        position: absolute;
        bottom: 5px;
        left: 75px;
    }

    /* Loading state */
    .config-button.loading {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .config-button.loading .config-icon {
        animation: spin 1s infinite linear;
    }

    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    /* PRIZE CONFIG HANDLER */
    
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .header-panel, .ending-panel {
        padding: 20px;
        border-radius: 0;
        clip-path: polygon(4% 0, 100% 0, 96% 100%, 0% 100%);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        flex: 1;
        min-width: 250px;
    }
    
    .ending-panel {
        margin-left: 20px;
    }
    
    .section {
        margin-bottom: 20px;
    }
    
    .section h2 {
        margin-top: 0;
    }
    
    .section ul {
        list-style-type: none;
        padding: 0;
    }
    
    .section ul li {
        margin-bottom: 10px;
    }
    
    .section button {
        margin-top: 10px;
        padding: 10px 15px;
        background-color: #9333ea;
        color: #fff;
        border: none;
        border-radius: 0;
        cursor: pointer;
    }

    .section button:hover {
        background-color: #7c3aed;
        text-align: center;
        font-size: 14px;
        color: #666;
        padding: 20px;
    }

    /* Primary Button */
.primary-button, .startbattle-button {
    background-color: #9333ea;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 0;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
    cursor: pointer;
    transition: background-color 0.3s ease, clip-path 0.3s ease;
}

/* Hover Effect for Primary Button */
.primary-button:hover, .startbattle-button:hover {
    background-color: #7c3aed;
}

/* Focus Style for Primary Button */
.primary-button:focus, .startbattle-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(147,51,234,0.5);
}

/* Secondary Button */
.secondary-button {
    background-color: transparent;
    border: 2px solid #a855f7;
    color: #a855f7;
    padding: 9px 18px;
    font-size: 16px;
    border-radius: 0;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, clip-path 0.3s ease;
}

/* Hover Effect for Secondary Button */
.secondary-button:hover {
    background-color: #a855f7;
    color: white;
}

/* Focus Style for Secondary Button */
.secondary-button:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 5px rgba(168,85,247,0.5);
}