* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #0B1120;
    color: #FFFFFF;
    overflow-x: hidden;
    overflow-y: auto;
    user-select: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1E293B, #0B1120);
    z-index: -1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#0096D6 1px, transparent 1px),
        radial-gradient(#0096D6 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.1;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { background-position: 0 0, 25px 25px; }
    to { background-position: 100px 100px, 125px 125px; }
}

/* Corporate Header */
.hp-header {
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    background: rgba(11, 17, 32, 0.8);
    border-bottom: 1px solid #334155;
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.hp-logo {
    height: 40px;
    margin-right: 2rem;
    object-fit: contain;
}

.header-text h2 {
    font-weight: 900;
    font-size: 1.2rem;
    color: #0096D6;
    letter-spacing: 2px;
}

.header-text p {
    font-size: 0.8rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Corporate Footer */
.hp-footer {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: #64748B;
    background: rgba(11, 17, 32, 0.8);
    border-top: 1px solid #334155;
    z-index: 50;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 2rem 1rem;
}

.screen.show {
    display: flex;
    animation: fadeIn 0.5s ease-out forwards;
}

.form-container {
    background: rgba(11, 17, 32, 0.6);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #334155;
    border-top: 3px solid #0096D6;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 500px;
    width: 90%;
}

.subtitle {
    font-size: 1rem;
    color: #94A3B8;
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

input {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-weight: bold;
    outline: none;
    transition: all 0.3s;
}

input::placeholder {
    color: #64748B;
}

input:focus {
    border: 1px solid #0096D6;
    background: rgba(255, 255, 255, 0.1);
}

.submit-button {
    padding: 1rem;
    background: #0096D6;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,150,214,0.3);
    transition: all 0.2s;
}

.submit-button:hover {
    background: #00B4FF;
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error {
    color: #EF4444;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 1rem;
    min-height: 1.5em;
}

.main-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,150,214,0.4);
    margin-bottom: 1rem;
    letter-spacing: 4px;
    color: #FFFFFF;
}

.wheel-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap; /* Allows stacking on small screens */
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced gap to fit */
    align-items: center;
    justify-content: center;
    flex: 1;
}

.side-prize-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #334155;
    border-radius: 10px;
    width: 130px; /* Reduced width */
    height: 130px; /* Reduced height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    transition: transform 0.3s, border-color 0.3s;
}

.side-prize-card:hover {
    border-color: #0096D6;
    transform: scale(1.05);
}

.side-prize-card img {
    max-width: 70px; /* Reduced img size */
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    margin-bottom: 8px;
}

.side-prize-card .coupon-badge {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0096D6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 5px;
}

.side-prize-card span {
    color: #E2E8F0;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}

.wheel-container {
    position: relative;
    width: 450px; /* Reduced from 600px */
    height: 450px; /* Reduced from 600px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #FFFFFF;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #E5E7EB;
    position: relative;
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.15, 0.9, 0.2, 1);
    box-shadow: 0 0 40px rgba(0,0,0,0.9), 0 0 15px rgba(0,150,214,0.3) inset;
}

.slice-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 80px;
    transform-origin: 0% 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-right: 15px;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

.slice-image {
    width: 45px; /* Scaled down for 450px wheel */
    height: 45px;
    object-fit: contain;
    margin-bottom: 5px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.8));
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 3px;
}

.slice-coupon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #004F9F;
    border-radius: 5px;
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 5px;
    border: 2px solid #0096D6;
}

.spin-button {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 4px solid #0096D6;
    color: #004F9F;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.1s, background 0.3s;
}

.spin-button:hover {
    background: #F8FAFC;
}

.spin-button:active {
    transform: scale(0.95);
}

.spin-button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 17, 32, 0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.4s ease-out forwards;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #334155;
    border-top: 4px solid #0096D6;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(10px);
}

.congrats {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,150,214,0.4);
}

.modal-content p {
    font-size: 1.2rem;
    color: #94A3B8;
}

#prizeName {
    font-size: 2rem;
    margin: 1.5rem 0;
    color: #0096D6;
    text-transform: uppercase;
}

#prizeImageContainer {
    margin: 2rem 0;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#prizeImage {
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #334155;
}

.coupon-placeholder {
    width: 250px;
    height: 150px;
    background: linear-gradient(135deg, #0096D6, #004F9F);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 2px dashed #FFFFFF;
}

#couponText {
    font-size: 3rem;
    color: #FFFFFF;
    font-weight: 900;
}

.respin-button {
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    background: #0096D6;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,150,214,0.3);
    transition: all 0.2s;
}

.respin-button:hover {
    background: #00B4FF;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE MEDIA QUERIES to prevent clipping */
@media (max-width: 1024px) {
    .wheel-layout {
        gap: 20px;
    }
    .wheel-container {
        width: 400px;
        height: 400px;
    }
    .side-prize-card {
        width: 110px;
        height: 110px;
    }
    .side-prize-card img {
        max-width: 60px;
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .hp-header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .hp-logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .wheel-layout {
        flex-direction: column;
        gap: 30px;
    }
    .side-panel {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
    .wheel-container {
        width: 320px;
        height: 320px;
        order: -1; /* Puts wheel above side panels */
    }
    .form-container {
        order: -1;
    }
    .main-title {
        font-size: 1.8rem;
        text-align: center;
    }
    .spin-button {
        width: 70px;
        height: 70px;
        font-size: 1.1rem;
    }
}
