
:root {
    --mcc-red: #a30d1c;
    --mcc-red-dark: #7d0915;
    --mcc-gold: #d89a30;
    --mcc-gold-dark: #b6791f;
    --mcc-cream: #f8f3eb;
    --mcc-text: #292929;
}

.mcc-roleta-root {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--mcc-text);
}

.mcc-roleta-root[data-popup="sim"] {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.mcc-roleta-root.mcc-hidden { display: none; }

.mcc-roleta-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(4px);
}

.mcc-roleta-card {
    position: relative;
    width: min(1080px, 100%);
    background: radial-gradient(circle at 20% 20%, #fffdf9, var(--mcc-cream));
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(360px, .95fr);
    gap: 18px;
    padding: 28px 28px 84px;
}

.mcc-roleta-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    color: #333;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    line-height: 1;
}

.mcc-roleta-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
}

.mcc-wheel-wrap {
    position: relative;
    width: min(420px, 85vw);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.mcc-wheel {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 10px solid var(--mcc-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,.22), inset 0 0 0 2px rgba(255,255,255,.45);
    background: repeating-conic-gradient(
        from -112.5deg,
        var(--mcc-red) 0deg 45deg,
        var(--mcc-gold) 45deg 90deg
    );
    transition: transform 4.8s cubic-bezier(.12,.65,.12,1);
    overflow: hidden;
}

.mcc-wheel::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
}

.mcc-wheel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from -112.5deg,
        transparent 0deg 43.8deg,
        rgba(255,255,255,.96) 43.8deg 45deg
    );
}

.mcc-segment {
    position: absolute;
    z-index: 2;
    color: #fff;
    text-align: center;
    font-weight: 900;
    line-height: .92;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.mcc-segment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.mcc-segment small {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.04;
}

/* labels ajustadas para ficarem dentro das fatias */
.mcc-seg-1 { top: 34px; left: 50%; transform: translateX(-50%); width: 82px; font-size: 26px; }
.mcc-seg-2 { top: 84px; right: 50px; width: 76px; font-size: 20px; }
.mcc-seg-3 { top: 162px; right: 24px; width: 76px; font-size: 20px; }
.mcc-seg-4 { bottom: 74px; right: 46px; width: 84px; font-size: 18px; }
.mcc-seg-5 { bottom: 26px; left: 50%; transform: translateX(-50%); width: 84px; font-size: 18px; }
.mcc-seg-6 { bottom: 74px; left: 46px; width: 84px; font-size: 18px; }
.mcc-seg-7 { top: 156px; left: 24px; width: 96px; font-size: 16px; }
.mcc-seg-8 { top: 84px; left: 50px; width: 76px; font-size: 20px; }

.mcc-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    z-index: 4;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 48px solid var(--mcc-gold-dark);
    filter: drop-shadow(0 4px 5px rgba(0,0,0,.3));
}

.mcc-spin-btn {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 6px solid #fff0c9;
    background: radial-gradient(circle, #fff1bf, var(--mcc-gold));
    color: var(--mcc-red);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(0,0,0,.26);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    line-height: 1;
}

.mcc-spin-btn:disabled { cursor: not-allowed; opacity: .75; }

.mcc-hint { text-align: center; font-size: 17px; margin: 24px 0 0; }
.mcc-hint strong { color: var(--mcc-red); }

.mcc-roleta-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8px 0 0;
}

.mcc-roleta-right h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(54px, 6vw, 84px);
    line-height: .9;
    color: var(--mcc-red);
    margin: 0 0 8px;
}

.mcc-roleta-right h3 { font-size: 23px; margin: 0 0 18px; }

.mcc-badge {
    width: fit-content;
    border: 1px solid var(--mcc-gold);
    color: var(--mcc-red);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 18px;
    background: rgba(255,255,255,.65);
    margin-bottom: 16px;
}

.mcc-rule { line-height: 1.5; font-size: 16px; margin: 0 0 18px; }
.mcc-rule strong { color: var(--mcc-red); }

.mcc-lead-form { display: grid; gap: 10px; margin-bottom: 18px; }
.mcc-lead-form label { font-weight: 800; font-size: 13px; }
.mcc-lead-form label span { font-weight: 400; color: #777; }

.mcc-lead-form input {
    width: 100%;
    margin-top: 4px;
    height: 45px;
    border: 1px solid #e4d7c5;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    background: white;
    box-sizing: border-box;
}

.mcc-form-note { font-size: 13px; margin: 2px 0 0; color: #555; }

.mcc-result {
    background: white;
    border: 1px solid #eee1d0;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.mcc-result small, .mcc-result span, .mcc-result em {
    display: block;
    color: #555;
    font-style: normal;
}

#mcc-prize-text { display: block; font-size: 22px; color: var(--mcc-red); margin: 4px 0 12px; }

.mcc-coupon-box {
    background: var(--mcc-cream);
    border: 1px dashed var(--mcc-gold);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.mcc-coupon-box b {
    display: block;
    background: var(--mcc-red);
    color: white;
    border-radius: 10px;
    padding: 12px;
    font-size: 26px;
    letter-spacing: .04em;
    margin: 7px 0;
}

.mcc-cta {
    display: block;
    text-align: center;
    background: var(--mcc-red);
    color: white !important;
    text-decoration: none;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 14px;
    font-weight: 900;
    font-size: 18px;
    border: 2px solid var(--mcc-gold);
}

.mcc-message { min-height: 22px; font-weight: 700; color: var(--mcc-red); margin-top: 10px; }

.mcc-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: linear-gradient(90deg, var(--mcc-red-dark), var(--mcc-red));
    color: white;
    padding: 18px 22px;
    text-align: center;
    font-size: 14px;
}

.mcc-footer span + span { border-left: 1px solid rgba(255,255,255,.35); }

@media (max-width: 920px) {
    .mcc-roleta-root[data-popup="sim"] { align-items: flex-start; overflow-y: auto; }
    .mcc-roleta-card { grid-template-columns: 1fr; padding: 24px 18px 116px; border-radius: 20px; }
    .mcc-roleta-right { padding-right: 0; }
    .mcc-roleta-right h2 { font-size: 56px; }
    .mcc-footer { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
    .mcc-footer span + span { border-left: 0; }
}

@media (max-width: 520px) {
    .mcc-wheel-wrap { width: min(360px, 92vw); }
    .mcc-segment small { font-size: 9px; }
    .mcc-seg-1 { top: 28px; width: 70px; font-size: 22px; }
    .mcc-seg-2 { top: 72px; right: 40px; width: 64px; font-size: 17px; }
    .mcc-seg-3 { top: 144px; right: 18px; width: 64px; font-size: 17px; }
    .mcc-seg-4 { bottom: 66px; right: 34px; width: 72px; font-size: 15px; }
    .mcc-seg-5 { bottom: 20px; width: 72px; font-size: 15px; }
    .mcc-seg-6 { bottom: 66px; left: 34px; width: 72px; font-size: 15px; }
    .mcc-seg-7 { top: 140px; left: 16px; width: 84px; font-size: 14px; }
    .mcc-seg-8 { top: 72px; left: 40px; width: 64px; font-size: 17px; }
    .mcc-spin-btn { width: 100px; height: 100px; font-size: 17px; }
}
