:root {
    --bg: #1a1a2e;
    --gold: #f1c40f;
    --red: #e74c3c;
    --white: #ffffff;
}

body {
    margin: 0; padding: 0;
    background: var(--bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--white);
    display: flex; justify-content: center;
    overflow-x: hidden;
}

.container { text-align: center; width: 100%; max-width: 450px; padding: 20px; }
h1 { color: var(--gold); margin-top: 10px; font-size: 1.6rem; }
.subtitle { opacity: 0.7; font-size: 0.85rem; margin-bottom: 25px; }

/* Wheel */
.wheel-wrapper {
    position: relative;
    width: 320px; height: 320px;
    margin: 0 auto;
}

#wheelCanvas {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
    transition: transform 5s cubic-bezier(0.1, 0, 0.1, 1);
}

.pointer {
    position: absolute; top: -15px; left: 50%;
    transform: translateX(-50%);
    z-index: 20; font-size: 35px; color: #fff;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

.wheel-items-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 10;
    transition: transform 5s cubic-bezier(0.1, 0, 0.1, 1);
}

.wheel-item {
    position: absolute; width: 50%; height: 50%;
    top: 0; left: 50%; transform-origin: 0% 100%;
    display: flex; flex-direction: column; align-items: center;
    padding-top: 15px; box-sizing: border-box;
}

.wheel-item img { width: 35px; height: auto; margin-bottom: 4px; }
.wheel-item span { font-size: 0.65rem; font-weight: bold; color: #fff; text-align: center; }

#spinBtn {
    margin-top: 30px; width: 80%; padding: 15px;
    font-size: 1.2rem; font-weight: bold;
    background: var(--gold); border: none; border-radius: 50px;
    box-shadow: 0 5px 0 #bc9c07;
}

/* Modal & QR */
.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.9);
    z-index: 100; align-items: center; justify-content: center;
}

.modal-content {
    background: #fff; color: #333; padding: 25px;
    border-radius: 20px; width: 85%; max-width: 340px; text-align: center;
}

.winning-prize-display {
    background: #f8f9fa; border: 2px dashed var(--gold);
    border-radius: 15px; padding: 10px; margin: 15px 0;
}

#prizeImageInModal { width: 80px; margin-bottom: 5px; }
#prizeNameInModal { color: var(--red); font-size: 1.1rem; }

input {
    width: 100%; padding: 12px; margin: 8px 0;
    border: 1px solid #ddd; border-radius: 8px; font-size: 16px;
}

.btn-submit {
    width: 100%; padding: 14px; background: #27ae60;
    color: #fff; border: none; border-radius: 8px; font-weight: bold; margin-top: 10px;
}

.qr-container { padding: 10px; background: #fff; border: 1px solid #eee; margin: 15px auto; width: 180px; }
#bankQR { width: 100%; height: auto; }
.qr-note { font-size: 0.8rem; color: #666; }