
.mmstw-teaser[hidden],
.mmstw-page-shell [hidden] {
    display: none !important;
}

.mmstw-teaser {
    --mmstw-accent: #b5121b;
    position: fixed;
    z-index: 999999;
    right: 18px;
    bottom: 22px;
    width: min(370px, calc(100vw - 28px));
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #e6e1dc;
    border-radius: 14px;
    background: #fff;
    color: #1c1c1c;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    font-family: inherit;
}

.mmstw-teaser h2 {
    margin: 0 38px 8px 0;
    color: #181818;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.mmstw-teaser-copy {
    margin: 0 0 10px;
    color: #4f4f4f;
    font-size: 15px;
    line-height: 1.45;
}

.mmstw-teaser-terms {
    margin: 0 0 16px;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.mmstw-teaser-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #444;
    font-size: 21px;
    line-height: 32px;
    cursor: pointer;
}

.mmstw-test-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #1d1d1d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
}

.mmstw-page-shell {
    --mmstw-accent: #b5121b;
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 24px auto 48px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    background: #fff;
    color: #1c1c1c;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
    font-family: inherit;
}

.mmstw-page-test-badge {
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 14px;
    margin: 0;
}

.mmstw-page-intro {
    padding: 28px 26px 24px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.mmstw-eyebrow {
    margin-bottom: 7px;
    color: var(--mmstw-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mmstw-page-intro h2 {
    margin: 0 0 8px;
    color: #161616;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.mmstw-page-intro p {
    max-width: 600px;
    margin: 0 auto;
    color: #595959;
    font-size: 15px;
    line-height: 1.5;
}

.mmstw-page-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(340px, .9fr);
    min-height: 500px;
}

.mmstw-wheel-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 34px 28px;
    background: #191919;
}

.mmstw-wheel-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(390px, 100%);
    aspect-ratio: 1;
    padding: 34px;
    box-sizing: border-box;
}

.mmstw-wheel {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: 8px solid #f5f3ef;
    border-radius: 50%;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255,255,255,.24);
    transform: rotate(0deg);
}

.mmstw-wheel::after {
    content: "MM";
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border: 5px solid #f5f3ef;
    border-radius: 50%;
    background: #fff;
    color: var(--mmstw-accent);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
    font-size: 22px;
    font-weight: 800;
    transform: translate(-50%, -50%);
}

.mmstw-wheel-label {
    display:none;
    --mmstw-label-angle: 0deg;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 106px;
    margin-left: -53px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    transform: rotate(var(--mmstw-label-angle)) translateY(calc(-1 * var(--mmstw-number-radius))) rotate(calc(-1 * var(--mmstw-label-angle)));
    transform-origin: center;
    pointer-events: none;
}

.mmstw-wheel-label.mmstw-wheel-label-long {
    font-size: 9px;
}

.mmstw-pointer {
    position: absolute;
    z-index: 3;
    top: 5px;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 30px solid var(--mmstw-accent);
    border-right: 14px solid transparent;
    border-left: 14px solid transparent;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35));
    transform: translateX(-50%);
}

.mmstw-prize-key {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    width: min(390px, 100%);
    margin-top: 8px;
}

.mmstw-prize-key-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #e9e9e9;
    font-size: 12px;
    line-height: 1.25;
}

.mmstw-prize-number {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.mmstw-content-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 34px;
    background: #fff;
}

.mmstw-stage-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.mmstw-content-column h2 {
    margin: 0 0 10px;
    color: #171717;
    font-size: 28px;
    line-height: 1.08;
}

.mmstw-content-column p {
    margin: 0 0 18px;
    color: #565656;
    line-height: 1.5;
}

.mmstw-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mmstw-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.mmstw-form-grid .mmstw-wide {
    grid-column: 1 / -1;
}

.mmstw-form-grid input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 7px;
    background: #fff;
    color: #171717;
    font: inherit;
}

.mmstw-form-grid input:focus {
    border-color: var(--mmstw-accent);
    outline: 3px solid rgba(181, 18, 27, .1);
}

.mmstw-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 15px 0 17px;
    color: #666;
    font-size: 12px;
    line-height: 1.42;
}

.mmstw-consent input {
    margin-top: 2px;
    accent-color: var(--mmstw-accent);
}

.mmstw-primary-button,
.mmstw-secondary-button {
    display: block;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 7px;
    font: inherit;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.mmstw-primary-button {
    border: 1px solid var(--mmstw-accent);
    background: var(--mmstw-accent);
    color: #fff !important;
}

.mmstw-primary-button:hover {
    filter: brightness(.94);
}

.mmstw-primary-button:disabled {
    opacity: .5;
    cursor: wait;
}

.mmstw-secondary-button {
    margin-top: 9px;
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #222 !important;
}

.mmstw-button-link {
    text-decoration: none !important;
}

.mmstw-form-message {
    min-height: 20px;
    margin: 10px 0 0 !important;
    color: #a5282e !important;
    font-size: 13px;
    line-height: 1.4;
}

.mmstw-result-kicker {
    margin-bottom: 8px;
    color: var(--mmstw-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
}

.mmstw-coupon-wrap {
    margin: 18px 0;
    padding: 13px;
    border: 1px dashed #c8c8c8;
    border-radius: 8px;
    background: #f8f8f8;
    text-align: center;
}

.mmstw-coupon-wrap span {
    display: block;
    color: #666;
    font-size: 12px;
}

.mmstw-coupon-wrap strong {
    display: block;
    margin-top: 4px;
    color: #171717;
    font-size: 22px;
    letter-spacing: .06em;
    user-select: all;
}

.mmstw-unavailable {
    max-width: 760px;
    margin: 30px auto;
    padding: 22px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

@media (max-width: 820px) {
    .mmstw-page-grid {
        grid-template-columns: 1fr;
    }

    .mmstw-wheel-column {
        padding: 22px 18px 20px;
    }

    .mmstw-wheel-stage {
        width: min(320px, 100%);
        padding: 34px 28px 18px;
    }

    .mmstw-wheel-label {
    display:none;
        transform: rotate(var(--mmstw-label-angle)) translateY(-101px) rotate(calc(-1 * var(--mmstw-label-angle)));
    }

    .mmstw-content-column {
        padding: 26px 24px 34px;
    }
}

@media (max-width: 600px) {
    .mmstw-teaser {
        right: 14px;
        bottom: 86px;
        left: 14px;
        width: auto;
        padding: 20px 18px 18px;
    }

    .mmstw-page-shell {
        margin: 12px auto 96px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .mmstw-page-intro {
        padding: 22px 18px 18px;
        text-align: left;
    }

    .mmstw-eyebrow {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .mmstw-page-intro h2 {
        margin-bottom: 5px;
        font-size: 28px;
    }

    .mmstw-page-intro p {
        font-size: 14px;
    }

    .mmstw-wheel-column {
        padding: 18px 16px 20px;
    }

    .mmstw-wheel-stage {
        width: min(274px, 100%);
        padding: 32px 22px 10px;
    }

    .mmstw-wheel {
        border-width: 6px;
    }

    .mmstw-wheel::after {
        width: 54px;
        height: 54px;
        border-width: 4px;
        font-size: 17px;
    }

    .mmstw-pointer {
        top: 5px;
        border-top-width: 24px;
        border-right-width: 11px;
        border-left-width: 11px;
    }

    .mmstw-wheel-label {
    display:none;
        display: none;
    }

    .mmstw-prize-key {
        grid-template-columns: 1fr 1fr;
        gap: 7px 12px;
        width: min(330px, 100%);
        margin-top: 10px;
    }

    .mmstw-prize-key-item {
        font-size: 11px;
    }

    .mmstw-prize-number {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        font-size: 10px;
    }

    .mmstw-content-column {
        padding: 24px 18px 34px;
    }

    .mmstw-form-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .mmstw-form-grid .mmstw-wide {
        grid-column: auto;
    }
}


/* Logged-in-only Spin & Win experience */
.mmstw-account-summary {
    margin-bottom: 16px;
    padding: 14px 15px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #f7f7f7;
}

.mmstw-account-summary span,
.mmstw-account-summary strong {
    display: block;
}

.mmstw-account-summary .mmstw-account-kicker {
    margin-bottom: 3px;
    color: #777;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mmstw-account-summary strong {
    color: #1b1b1b;
    font-size: 17px;
    line-height: 1.3;
}

.mmstw-account-summary strong + span {
    margin-top: 2px;
    color: #666;
    font-size: 12px;
}

.mmstw-login-card {
    padding: 30px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.mmstw-login-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    place-items: center;
    border-radius: 50%;
    background: var(--mmstw-accent);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.mmstw-login-card h2 {
    margin-bottom: 9px;
}

.mmstw-login-card p {
    max-width: 430px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 760px) {
    .mmstw-account-summary {
        margin-bottom: 13px;
        padding: 12px 13px;
    }

    .mmstw-login-card {
        padding: 24px 18px;
    }
}


.mmstw-wheel-number {
    --mmstw-label-angle: 0deg;
    --mmstw-number-radius: 132px;
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #171717;
    box-shadow: 0 2px 8px rgba(0,0,0,.24);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transform: rotate(var(--mmstw-label-angle)) translateY(-132px) rotate(calc(-1 * var(--mmstw-label-angle)));
    transform-origin: center;
    pointer-events: none;
}

.mmstw-wheel.mmstw-is-spinning {
    filter: saturate(1.06) brightness(1.02);
}

.mmstw-pointer.mmstw-is-spinning {
    animation: mmstw-pointer-tick .14s linear infinite;
}

@keyframes mmstw-pointer-tick {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(-7deg); }
}


@media (max-width: 820px) {
    .mmstw-wheel-number {
        --mmstw-number-radius: 102px;
        width: 25px;
        height: 25px;
        margin-left: -12.5px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .mmstw-wheel-number {
        --mmstw-number-radius: 88px;
        width: 24px;
        height: 24px;
        margin-left: -12px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .mmstw-wheel-number {
        --mmstw-number-radius: 82px;
    }
}


#mmstw-auth-loading {
    opacity: .78;
}

#mmstw-auth-loading .mmstw-login-icon {
    animation: mmstw-account-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes mmstw-account-pulse {
    from { transform: scale(.96); opacity: .65; }
    to { transform: scale(1.04); opacity: 1; }
}


/* beta.15: wheel numbers stay inside their matching slices */
.mmstw-wheel-number {
    top: auto;
    left: auto;
    width: 27px;
    height: 27px;
    margin: 0;
    z-index: 2;
    color: #171717;
    transform: translate(-50%, -50%) !important;
}

/* Make disabled actions readable instead of washed out */
#mmstw-spin-button:disabled,
.mmstw-primary-button:disabled {
    background: #dedede !important;
    border-color: #c8c8c8 !important;
    color: #4a4a4a !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

#mmstw-session-error-view .mmstw-login-icon {
    background: #6c1f23;
}

@media (max-width: 600px) {
    .mmstw-wheel-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}


/* beta.16: clear eligibility state and brand-consistent action */
#mmstw-spin-button,
#mmstw-spin-button:disabled {
    background: var(--mmstw-accent) !important;
    border-color: var(--mmstw-accent) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

#mmstw-spin-button:disabled {
    cursor: wait;
    filter: brightness(.92);
}

.mmstw-minimum-spend-note {
    margin: 0 0 14px !important;
    padding: 10px 12px;
    border-left: 3px solid var(--mmstw-accent);
    background: #faf6f6;
    color: #5b4a4a !important;
    font-size: 12px;
    line-height: 1.45;
}

.mmstw-status-card {
    padding: 28px;
    border: 1px solid #e4d7d7;
    border-radius: 12px;
    background: #fffafa;
    text-align: center;
}

.mmstw-status-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: var(--mmstw-accent);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.mmstw-status-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--mmstw-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.mmstw-status-card h2 {
    margin-bottom: 10px;
}

.mmstw-status-card p {
    margin-bottom: 0;
}
