:root {
    --primary: #eab308; /* Yellow */
    --bg-gradient: linear-gradient(135deg, #fef08a, #fde047, #facc15);
}

.spinner-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.input-section {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255,255,255,0.5);
    padding: 20px;
    border-radius: 16px;
}

textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 1.1rem;
    resize: vertical;
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: inherit;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.wheel-section {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #ef4444;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .wheel-container { width: 300px; height: 300px; }
}
