/* Ruota Market Social — tema scuro Gecko */
.rs-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #fff;
}
.rs-header { text-align: center; margin-bottom: 20px; }
.rs-logo { font-size: 3em; line-height: 1; }
.rs-title { font-size: 1.8em; font-weight: 900; color: #f0c040; margin: 8px 0 4px; }
.rs-subtitle { color: #888; font-size: 14px; margin: 0; }

/* Stats */
.rs-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.rs-stat {
    background: #1a1a1a;
    border: 1px solid rgba(240,200,64,0.3);
    border-radius: 12px;
    padding: 12px 32px;
    text-align: center;
}
.rs-stat-num {
    display: block;
    font-size: 2.4em;
    font-weight: 900;
    color: #f0c040;
    line-height: 1;
}
.rs-stat-label { font-size: 12px; color: #888; }

/* Wheel */
.rs-wheel-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    width: 340px;
}
.rs-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    color: #1a1a2e;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
#rs-canvas { display: block; border-radius: 50%; }

/* Spin button */
.rs-spin-area { text-align: center; margin-bottom: 20px; }
.rs-spin-btn {
    background: linear-gradient(135deg, #f0c040, #ff9500);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(240,200,64,0.4);
}
.rs-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(240,200,64,0.6);
}
.rs-spin-btn:disabled {
    background: #333;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
}
.rs-hint { color: #666; font-size: 13px; margin-top: 8px; }

/* Risultato */
.rs-risultato {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.rs-risultato-inner {
    background: #1a1a1a;
    border: 1px solid rgba(240,200,64,0.4);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    max-width: 360px;
    width: 90%;
}
.rs-ris-icon { font-size: 3.5em; margin-bottom: 12px; }
.rs-risultato-inner h3 { font-size: 1.5em; color: #f0c040; margin: 0 0 10px; }
.rs-risultato-inner p { color: #ccc; font-size: 14px; margin: 0 0 16px; }
.rs-coupon-code {
    background: #111;
    border: 2px dashed #f0c040;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 1.4em;
    font-weight: 900;
    letter-spacing: 3px;
    color: #f0c040;
    margin: 10px 0 6px;
}
.rs-risultato-inner small { color: #555; font-size: 12px; display: block; margin-bottom: 16px; }

/* Buttons */
.rs-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.rs-btn-primary {
    background: linear-gradient(135deg, #f0c040, #ff9500);
    color: #000;
}
.rs-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* Guest */
.rs-guest { text-align: center; padding: 40px; color: #888; }
.rs-guest p { margin-bottom: 16px; font-size: 15px; }

/* Legenda */
.rs-legenda {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 16px;
}
.rs-legenda h4 { color: #f0c040; margin: 0 0 12px; font-size: 14px; }
.rs-legenda-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rs-leg-item { font-size: 13px; color: #ccc; display: flex; align-items: center; gap: 8px; }
.rs-leg-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.rs-leg-item small { color: #666; margin-left: 4px; }
.rs-come-guadagnare h4 { color: #f0c040; margin: 0 0 8px; font-size: 13px; }
.rs-come-guadagnare ul { margin: 0; padding-left: 0; list-style: none; }
.rs-come-guadagnare li { font-size: 12px; color: #888; padding: 3px 0; }

/* Spinning animation */
.rs-container.rs-spinning #rs-canvas {
    animation: rs-glow 0.3s ease-in-out infinite alternate;
}
@keyframes rs-glow {
    from { box-shadow: 0 0 10px rgba(240,200,64,0.3); }
    to   { box-shadow: 0 0 30px rgba(240,200,64,0.7); }
}

@media (max-width: 380px) {
    .rs-wheel-wrap, #rs-canvas { width: 300px; height: 300px; }
}
