/* =============================================================
   DAILY SPIN — append this block to assets/css/style.css
   ============================================================= */

/* ── Section wrapper ── */
.tp-daily-spin-section { padding-top: 4rem; padding-bottom: 4rem; }

/* ── Two-column layout ── */
.tp-spin-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* ── Wheel container ── */
.tp-spin-canvas-wrap {
    position: relative;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
}

.tp-spin-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}
/* ── Pointer triangle ── */
.tp-spin-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.75rem;
    color: var(--tp-gray-800);
    line-height: 1;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ── Canvas ── */
#tp-spin-wheel {
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: block;
}

/* ── Controls column ── */
.tp-spin-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
    text-align: center;
}

/* ── Spin button (override size only, inherits tp-btn styles) ── */
.tp-spin-btn {
    width: 100%;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* ── Small note below button ── */
.tp-spin-note {
    font-size: 0.85rem;
    color: var(--tp-gray-500);
    line-height: 1.5;
    margin: 0;
}

/* ── Guest message ── */
.tp-spin-guest-msg {
    font-size: 1rem;
    color: var(--tp-gray-700);
    font-weight: 500;
}

/* ── Result banner (hidden by default, shown via JS) ── */
.tp-spin-result {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: var(--tp-radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    width: 100%;
}
.tp-spin-result.win {
    display: block;
    background: var(--tp-primary-light, #ede9fe);
    color: var(--tp-primary-dark, #4c1d95);
    border: 1.5px solid var(--tp-primary, #7c3aed);
    animation: tp-spin-pop 0.4s ease;
}
.tp-spin-result.lose {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
    animation: tp-spin-pop 0.4s ease;
}

@keyframes tp-spin-pop {
    0%   { transform: scale(0.85); opacity: 0; }
    60%  { transform: scale(1.06); }
    100% { transform: scale(1);    opacity: 1; }
}

/* ── Spinning animation on canvas wrapper ── */
.tp-spin-canvas-wrap.spinning #tp-spin-wheel {
    /* actual rotation is done via JS / canvas draw */
}

/* ── Disabled state ── */
.tp-spin-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: var(--tp-gray-200) !important;
    color: var(--tp-gray-500) !important;
    border-color: var(--tp-gray-300) !important;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .tp-spin-wrapper { gap: 2rem; }
    .tp-spin-canvas-wrap { width: 270px; height: 270px; }
    #tp-spin-wheel { width: 270px; height: 270px; }
}
