/* Major Morale Click Character v2.0.1 */

.mmcc-character {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 0;
    cursor: pointer;
    overflow: visible;
    isolation: isolate;
    transform-origin: 50% 75%;
    -webkit-tap-highlight-color: transparent;
}

.mmcc-character:focus-visible {
    outline: 3px solid rgba(240, 200, 58, 0.9);
    outline-offset: 4px;
}

.mmcc-body {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    user-select: none;
    pointer-events: none;
}

/*
 * Optional fixed eye-white background layer. This sits behind the pupils
 * and below the body image, which should have transparent eye openings.
 */
.mmcc-eye-whites {
    position: absolute;
    z-index: 1;
    left: var(--mmcc-eye-whites-left);
    top: var(--mmcc-eye-whites-top);
    width: var(--mmcc-eye-whites-width);
    height: var(--mmcc-eye-whites-height);
    max-width: none;
    object-fit: fill;
    transform: rotate(var(--mmcc-eye-whites-rotate));
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
}

/*
 * Optional repeated single-pupil layers. The same uploaded pupil image is
 * placed once for each eye, with independent resting left/top values.
 * JavaScript applies the same tracking shift to both so they move together.
 */
.mmcc-pupil {
    position: absolute;
    z-index: 2;
    width: var(--mmcc-pupil-width);
    height: var(--mmcc-pupil-height);
    max-width: none;
    object-fit: fill;
    transform:
        translate3d(
            var(--mmcc-eye-shift-x, 0px),
            var(--mmcc-eye-shift-y, 0px),
            0
        )
        rotate(var(--mmcc-pupil-rotate));
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
    will-change: transform;
}

.mmcc-pupil--left {
    left: var(--mmcc-left-pupil-left);
    top: var(--mmcc-left-pupil-top);
}

.mmcc-pupil--right {
    left: var(--mmcc-right-pupil-left);
    top: var(--mmcc-right-pupil-top);
}

/*
 * IMPORTANT RESPONSIVE PLACEMENT:
 * left/width percentages are relative to .mmcc-character width.
 * top/height percentages are relative to .mmcc-character height.
 * Since the body image defines this box, the hand scales with the character,
 * not with the browser viewport.
 */
.mmcc-hand {
    position: absolute;
    z-index: 4;
    left: var(--mmcc-hand-left);
    top: var(--mmcc-hand-top);
    width: var(--mmcc-hand-width);
    height: var(--mmcc-hand-height);
    max-width: none;
    object-fit: fill;
    transform: rotate(var(--mmcc-hand-rotate));
    transform-origin: 20% 20%;
    user-select: none;
    pointer-events: none;
}

/* Hover invitation is speech-only; body and hand remain completely still. */

.mmcc-hand-is-away {
    opacity: 0 !important;
}

.mmcc-speech {
    position: absolute;
    z-index: 10;
    top: 8%;
    left: 62%;
    width: max-content;
    max-width: min(240px, 42%);
    padding: 11px 15px;
    background: #fff;
    color: #171717;
    border: 3px solid #171717;
    border-radius: 16px;
    box-shadow: 4px 5px 0 rgba(0, 0, 0, .25);
    font-family: Arial, sans-serif;
    font-size: clamp(11px, 1.45vw, 15px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    opacity: 0;
    transform: scale(.72) rotate(-4deg);
    transform-origin: left bottom;
    pointer-events: none;
}

.mmcc-speech::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -12px;
    width: 17px;
    height: 17px;
    background: #fff;
    border-right: 3px solid #171717;
    border-bottom: 3px solid #171717;
    transform: rotate(45deg);
}

.mmcc-speech.is-visible {
    animation: mmccSpeech 2.35s ease both;
}

@keyframes mmccSpeech {
    0%   { opacity: 0; transform: scale(.68) rotate(-5deg); }
    10%  { opacity: 1; transform: scale(1.08) rotate(2deg); }
    18%  { transform: scale(1) rotate(0); }
    82%  { opacity: 1; }
    100% { opacity: 0; transform: scale(.88) rotate(3deg); }
}

.mmcc-character.mmcc-wiggle { animation: mmccWiggle .55s ease; }
.mmcc-character.mmcc-rubber { animation: mmccRubber .7s ease; }
.mmcc-character.mmcc-bounce { animation: mmccBounce .65s ease; }
.mmcc-character.mmcc-warning { animation: mmccWarning .55s ease; }
.mmcc-character.mmcc-recoil { animation: mmccRecoil .55s ease; }

@keyframes mmccWiggle {
    0%,100% { transform: rotate(0); }
    20% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-3deg); }
    80% { transform: rotate(2deg); }
}

@keyframes mmccRubber {
    0%,100% { transform: scale(1); }
    25% { transform: scaleX(1.08) scaleY(.92); }
    45% { transform: scaleX(.94) scaleY(1.08); }
    65% { transform: scaleX(1.04) scaleY(.97); }
}

@keyframes mmccBounce {
    0%,100% { transform: translateY(0); }
    30% { transform: translateY(-16px) rotate(-2deg); }
    55% { transform: translateY(4px) rotate(1deg); }
    75% { transform: translateY(-4px); }
}

@keyframes mmccWarning {
    0%,100% { transform: rotate(0); }
    35% { transform: rotate(-3deg) scale(1.02); }
    65% { transform: rotate(2deg) scale(1.02); }
}

@keyframes mmccRecoil {
    0%,100% { transform: translate(0,0) rotate(0); }
    35% { transform: translate(-10px, 6px) rotate(-2deg) scale(.98); }
    70% { transform: translate(4px,-2px) rotate(1deg); }
}

/* Fixed-position clone used by the poke effect. */
.mmcc-giant-hand {
    position: fixed;
    z-index: 2147483002;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    user-select: none;
    will-change: left, top, width, height, transform, opacity;
}

.mmcc-giant-hand {
    object-fit: fill;
    transform-origin: 20% 20%;
}


/* Dramatic temporary screen break. */
.mmcc-screen-break {
    position: fixed;
    inset: 0;
    z-index: 2147483005;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--mmcc-impact-x) var(--mmcc-impact-y), rgba(255,255,255,.46) 0 2%, rgba(255,255,255,.12) 7%, transparent 20%);
    animation: mmccScreenFlash .24s ease-out both;
}

.mmcc-screen-break::before {
    content: "";
    position: absolute;
    inset: -10%;
    background: rgba(255,255,255,.17);
    opacity: 0;
    animation: mmccGlassFlash .22s ease-out both;
}

.mmcc-screen-break.mmcc-fade {
    animation: mmccBreakFade .9s ease forwards;
}

.mmcc-crack-origin,
.mmcc-impact-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.mmcc-crack-origin {
    border: 5px solid rgba(255,255,255,.92);
    box-shadow:
        0 0 0 5px rgba(0,0,0,.48),
        0 0 18px 8px rgba(255,255,255,.75),
        inset 0 0 12px rgba(0,0,0,.45);
}

.mmcc-impact-ring {
    z-index: 2147483006;
    border: 5px solid rgba(255,255,255,.85);
    box-shadow: 0 0 0 4px rgba(0,0,0,.35);
    animation: mmccImpactRing .7s ease-out forwards;
}

.mmcc-crack-line,
.mmcc-crack-branch {
    position: absolute;
    height: var(--mmcc-crack-thickness, 3px);
    transform-origin: 0 50%;
    background:
        linear-gradient(
            to right,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.92) 48%,
            rgba(255,255,255,.42) 78%,
            transparent 100%
        );
    clip-path: polygon(
        0 44%,
        14% 8%,
        30% 52%,
        47% 20%,
        63% 70%,
        78% 36%,
        100% 54%,
        100% 78%,
        78% 54%,
        62% 90%,
        46% 44%,
        29% 74%,
        14% 40%,
        0 62%
    );
    box-shadow:
        0 0 0 1px rgba(0,0,0,.50),
        0 1px 2px rgba(0,0,0,.52),
        0 -1px 0 rgba(255,255,255,.42);
    opacity: 0;
    filter: drop-shadow(0 0 1.5px rgba(255,255,255,.62));
    transform: rotate(var(--mmcc-angle)) scaleX(.02) skewX(-2deg);
    animation: mmccCrackGrow .34s cubic-bezier(.08,.72,.22,1) forwards;
}

.mmcc-crack-line--major {
    filter: drop-shadow(0 0 3px rgba(255,255,255,.78));
}

.mmcc-crack-branch {
    animation-duration: .28s;
}

.mmcc-crack-arc {
    position: absolute;
    left: var(--mmcc-impact-x);
    top: var(--mmcc-impact-y);
    width: var(--mmcc-arc-size);
    height: calc(var(--mmcc-arc-size) * .72);
    border-radius: 50%;
    transform: translate(-50%,-50%) rotate(var(--mmcc-arc-rotate)) scale(.3);
    opacity: 0;
    pointer-events: none;
    animation: mmccArcGrow .34s var(--mmcc-arc-delay) ease-out forwards;
}

.mmcc-crack-arc::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.4px solid transparent;
    border-top-color: rgba(255,255,255,.96);
    border-left-color: rgba(255,255,255,.72);
    box-shadow: 0 1px 0 rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.18);
    clip-path: polygon(50% 50%, 100% 0, 100% 100%, 0 100%, 0 0);
    transform: rotate(var(--mmcc-arc-start));
}

.mmcc-crack-chip {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.45));
    box-shadow: 0 0 0 1px rgba(0,0,0,.32);
    clip-path: polygon(50% 0, 100% 30%, 70% 100%, 0 70%, 14% 15%);
    transform: translate(-50%,-50%) rotate(var(--mmcc-chip-rotate));
    opacity: 0;
    animation: mmccChip .28s ease-out forwards;
}

.mmcc-glass-shard {
    position: absolute;
    left: var(--mmcc-shard-left);
    top: var(--mmcc-shard-top);
    width: var(--mmcc-shard-width);
    height: var(--mmcc-shard-height);
    background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.52);
    box-shadow: 0 1px 1px rgba(0,0,0,.2), inset 0 0 10px rgba(255,255,255,.08);
    clip-path: polygon(0 0, 86% 12%, 100% 40%, 72% 100%, 8% 88%, 0 38%);
    opacity: 0;
    transform: translate(-50%,-50%) rotate(var(--mmcc-shard-rotate));
    animation: mmccShard .72s var(--mmcc-shard-delay) ease-out forwards;
}

@keyframes mmccScreenFlash {
    0% { filter: brightness(1); }
    35% { filter: brightness(1.75); }
    100% { filter: brightness(1); }
}
@keyframes mmccGlassFlash { 0% { opacity: .72; } 100% { opacity: 0; } }
@keyframes mmccBreakFade { to { opacity: 0; } }
@keyframes mmccCrackGrow {
    0% { opacity: 0; transform: rotate(var(--mmcc-angle)) scaleX(.02) skewX(-2deg); }
    65% { opacity: var(--mmcc-crack-opacity, .9); }
    100% { opacity: var(--mmcc-crack-opacity, .9); transform: rotate(var(--mmcc-angle)) scaleX(1) skewX(-2deg); }
}
@keyframes mmccArcGrow {
    0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--mmcc-arc-rotate)) scale(.2); }
    100% { opacity: var(--mmcc-crack-opacity, .65); transform: translate(-50%,-50%) rotate(var(--mmcc-arc-rotate)) scale(1); }
}
@keyframes mmccChip {
    0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--mmcc-chip-rotate)) scale(.4); }
    100% { opacity: .9; transform: translate(-50%,-50%) rotate(var(--mmcc-chip-rotate)) scale(1); }
}
@keyframes mmccShard {
    0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--mmcc-shard-rotate)) scale(.5); }
    35% { opacity: .55; }
    100% { opacity: .13; transform: translate(calc(-50% + var(--mmcc-shard-dx)), calc(-50% + var(--mmcc-shard-dy))) rotate(calc(var(--mmcc-shard-rotate) + 14deg)) scale(1.04); }
}
@keyframes mmccImpactRing { to { width: 260px; height: 260px; opacity: 0; border-width: 1px; } }

/* Numeric-only alignment panel. */
.mmcc-test-panel {
    position: fixed;
    z-index: 2147483640;
    right: 14px;
    bottom: 14px;
    width: min(440px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    box-sizing: border-box;
    padding: 13px;
    background: rgba(255,255,255,.98);
    color: #171717;
    border: 2px solid #171717;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
    font: 13px/1.35 Arial, sans-serif;
}

.mmcc-test-panel * { box-sizing: border-box; }
.mmcc-test-panel h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.2; }
.mmcc-test-panel h4 { margin: 12px 0 6px; font-size: 13px; }
.mmcc-test-panel p { margin: 5px 0 8px; line-height: 1.35; }
.mmcc-test-panel .mmcc-test-status { font-weight: 700; }
.mmcc-test-grid {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 105px;
    gap: 6px 9px;
    align-items: center;
}
.mmcc-test-grid label { min-width: 0; }
.mmcc-test-grid input[type="number"] {
    width: 105px;
    min-height: 32px;
    padding: 4px 6px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font: inherit;
}
.mmcc-test-grid input[type="number"]:focus {
    outline: 2px solid #f0c83a;
    outline-offset: 1px;
    border-color: #171717;
}

.mmcc-test-section {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #dcdcde;
}
.mmcc-test-section h4 {
    margin-top: 0;
}
.mmcc-test-panel h5 {
    margin: 9px 0 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.mmcc-mini-note {
    color: #50575e;
    font-size: 12px;
}
.mmcc-test-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mmcc-readout {
    margin-top: 4px;
    padding: 7px 8px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    line-height: 1.45;
}
.mmcc-test-peak {
    border-top: 2px solid #f0c83a;
}

.mmcc-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.mmcc-test-panel button {
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid #171717;
    border-radius: 4px;
    background: #f0c83a;
    color: #171717;
    font-weight: 700;
    cursor: pointer;
}
.mmcc-test-panel button.mmcc-secondary { background: #fff; }
.mmcc-test-note {
    padding: 7px 8px;
    background: #f6f0e3;
    border-left: 3px solid #f0c83a;
}

.mmcc-notice {
    padding: 10px 12px;
    border: 1px solid #d63638;
    background: #fff;
    color: #171717;
}

@media (max-width: 700px) {
    .mmcc-speech {
        top: 3%;
        left: 50%;
        max-width: 46%;
        padding: 8px 10px;
        border-width: 2px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mmcc-character,
    .mmcc-speech,
    .mmcc-screen-break,
    .mmcc-crack-line,
    .mmcc-crack-branch,
    .mmcc-crack-arc,
    .mmcc-crack-chip,
    .mmcc-glass-shard,
    .mmcc-impact-ring {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   Ambient eyes, Catch the Major, and catch rewards
   ========================================================= */
.mmcc-eye-whites,
.mmcc-pupil {
    transition: transform 120ms ease;
}

/*
 * Blinking is handled by two skin-tone upper-eyelid overlays. The pupils and
 * eye whites never shrink during a blink, so pupil tracking remains intact.
 * These layers sit above the pupils but below the body artwork. Because the
 * body has transparent eye openings, the surrounding face artwork naturally
 * masks the rectangular eyelid layers.
 */
.mmcc-eyelid {
    position: absolute;
    z-index: 2;
    top: calc(var(--mmcc-left-pupil-top) - 1.55%);
    width: calc(var(--mmcc-pupil-width) + 4.35%);
    height: 6%;
    border-radius: 48% 48% 55% 55%;
    background:
        linear-gradient(
            180deg,
            #f7cfb0 0%,
            #f2bea0 45%,
            #e7a982 78%,
            #cc8767 100%
        );
    box-shadow: inset 0 -0.5px 0 rgba(100, 56, 39, 0.18);
    transform: scaleY(0);
    transform-origin: 50% 0%;
    pointer-events: none;
    user-select: none;
    will-change: transform;
}

.mmcc-eyelid--left {
    left: calc(var(--mmcc-left-pupil-left) - 2.15%);
    top: calc(var(--mmcc-left-pupil-top) - 1.55%);
}

.mmcc-eyelid--right {
    left: calc(var(--mmcc-right-pupil-left) - 2.15%);
    top: calc(var(--mmcc-right-pupil-top) - 1.55%);
}

.mmcc-character.mmcc-blink .mmcc-eyelid,
.mmcc-peek-character.mmcc-blink .mmcc-eyelid {
    animation: mmcc-eyelid-blink 180ms ease-in-out both;
}

@keyframes mmcc-eyelid-blink {
    0%, 100% {
        transform: scaleY(0);
    }
    42%, 58% {
        transform: scaleY(1);
    }
}

.mmcc-peeker {
    --mmcc-peek-width: 145px;
    position: fixed;
    z-index: 2147483150;
    bottom: 0;
    width: var(--mmcc-peek-width);
    height: calc(var(--mmcc-peek-width) * 1.25);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(112%);
    transition: transform .48s cubic-bezier(.18,.82,.2,1), filter .2s ease;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.mmcc-peeker--left { left: max(10px, env(safe-area-inset-left)); }
.mmcc-peeker--right { right: max(10px, env(safe-area-inset-right)); }
.mmcc-peeker.is-visible { transform: translateY(42%); }
.mmcc-peeker.is-caught { transform: translateY(18%) scale(1.08); filter: drop-shadow(0 6px 6px rgba(0,0,0,.2)); }
.mmcc-peeker.is-leaving { transform: translateY(115%) scale(.96); }
.mmcc-peeker:focus-visible { outline: 3px solid #F0C83A; outline-offset: 3px; border-radius: 16px; }

.mmcc-peek-character {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    isolation: isolate;
    transform-origin: center bottom;
}

.mmcc-peeker__speech {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: 82%;
    width: max-content;
    max-width: min(235px, 74vw);
    padding: 8px 11px;
    border: 3px solid #171717;
    border-radius: 14px;
    background: #fff;
    color: #171717;
    box-shadow: 4px 5px 0 rgba(0,0,0,.24);
    font: 700 13px/1.18 Arial, sans-serif;
    text-align: center;
    white-space: normal;
    transform: translateX(-50%) rotate(-2deg);
    pointer-events: none;
}

.mmcc-peeker__speech::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    background: #fff;
    border-right: 3px solid #171717;
    border-bottom: 3px solid #171717;
    transform: rotate(45deg);
}

.mmcc-toast {
    position: fixed;
    z-index: 2147483210;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    max-width: min(420px, calc(100vw - 32px));
    padding: 10px 15px;
    border: 3px solid #171717;
    border-radius: 14px;
    background: #fff;
    color: #171717;
    box-shadow: 5px 6px 0 rgba(0,0,0,.25);
    font: 700 14px/1.25 Arial, sans-serif;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 18px) scale(.94);
    transition: opacity .22s ease, transform .22s ease;
}
.mmcc-toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

.mmcc-reward-overlay {
    position: fixed;
    z-index: 2147483250;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(19, 25, 13, .74);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .2s ease;
}
.mmcc-reward-overlay.is-visible { opacity: 1; }

.mmcc-reward-card {
    position: relative;
    width: min(520px, 100%);
    padding: 28px 26px 24px;
    border: 5px solid #232D0B;
    border-radius: 18px;
    background: #F6F0E3;
    color: #171717;
    box-shadow: 0 18px 55px rgba(0,0,0,.38), inset 0 0 0 3px #fff;
    font-family: Arial, sans-serif;
    text-align: center;
    transform: translateY(18px) scale(.94) rotate(-.5deg);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.mmcc-reward-overlay.is-visible .mmcc-reward-card { transform: translateY(0) scale(1) rotate(0); }
.mmcc-reward-card--coupon { border-style: dashed; background: #fff8d9; }
.mmcc-reward-card--achievement { background: #f4ead3; }
.mmcc-reward-card--boost { background: #fff8cd; }
.mmcc-reward-card--classified { background: #f7f3e8; }
.mmcc-reward-media { display:flex; flex-direction:column; gap:12px; align-items:center; }
.mmcc-reward-media__image { display:block; max-width:100%; max-height:56vh; width:auto; height:auto; border:2px solid #151515; background:#fff; box-shadow:0 8px 20px rgba(0,0,0,.18); }
.mmcc-reward-media__caption { margin:0; font-size:14px; line-height:1.45; text-align:center; }

.mmcc-reward-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #232D0B;
    font: 700 28px/1 Arial, sans-serif;
    cursor: pointer;
}
.mmcc-reward-kicker {
    margin-bottom: 7px;
    color: #35420F;
    font: 800 12px/1.2 Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.mmcc-reward-title {
    margin: 0 0 12px;
    color: #232D0B;
    font: 800 clamp(23px, 5vw, 34px)/1.05 Georgia, serif;
}
.mmcc-reward-body {
    margin: 0 auto;
    max-width: 430px;
    font: 700 16px/1.4 Arial, sans-serif;
}
.mmcc-reward-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.mmcc-reward-button {
    min-height: 44px;
    padding: 10px 16px;
    border: 3px solid #232D0B;
    border-radius: 10px;
    background: #fff;
    color: #232D0B;
    box-shadow: 3px 4px 0 rgba(0,0,0,.2);
    font: 800 14px/1.15 Arial, sans-serif;
    cursor: pointer;
}
.mmcc-reward-button.is-primary { background: #F0C83A; }
.mmcc-reward-button:active { transform: translateY(2px); box-shadow: 1px 2px 0 rgba(0,0,0,.2); }

.mmcc-boost-fx {
    position: fixed;
    z-index: 2147483240;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.mmcc-boost-fx span {
    position: absolute;
    display: block;
    padding: 5px 8px;
    border: 2px solid #232D0B;
    border-radius: 8px;
    background: #F0C83A;
    color: #232D0B;
    box-shadow: 2px 3px 0 rgba(0,0,0,.2);
    font: 800 13px/1 Arial, sans-serif;
    opacity: 0;
    transform: translateY(30px) rotate(var(--mmcc-fx-rotate));
    animation: mmccBoostPop 2.5s var(--mmcc-fx-delay) ease-out forwards;
}
@keyframes mmccBoostPop {
    0% { opacity: 0; transform: translateY(38px) scale(.5) rotate(var(--mmcc-fx-rotate)); }
    18% { opacity: 1; transform: translateY(0) scale(1.08) rotate(var(--mmcc-fx-rotate)); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-90px) scale(.9) rotate(var(--mmcc-fx-rotate)); }
}

@media (max-width: 680px) {
    .mmcc-peeker__speech { font-size: 12px; max-width: min(205px, 72vw); }
    .mmcc-reward-card { padding: 26px 18px 20px; }
    .mmcc-reward-actions { flex-direction: column; }
    .mmcc-reward-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mmcc-eye-whites,
    .mmcc-pupil,
    .mmcc-peeker,
    .mmcc-toast,
    .mmcc-reward-overlay,
    .mmcc-reward-card { transition-duration: .01ms !important; }
    .mmcc-boost-fx span { animation-duration: .01ms !important; }
}

/* Keep Catch-the-Major speech bubbles inside the viewport at either edge. */
.mmcc-peeker--left .mmcc-peeker__speech {
    left: 0;
    transform: translateX(0) rotate(-2deg);
}
.mmcc-peeker--left .mmcc-peeker__speech::after { left: 42px; margin-left: 0; }
.mmcc-peeker--right .mmcc-peeker__speech {
    left: auto;
    right: 0;
    transform: rotate(2deg);
}
.mmcc-peeker--right .mmcc-peeker__speech::after { left: auto; right: 42px; margin-left: 0; }

/* Major Morale Playground shortcode: [major_morale_playground] */
.mmcc-playground {
    width: min(1080px, 100%);
    margin: 28px auto;
    padding: 0;
    color: #232D0B;
    font-family: Arial, sans-serif;
}
.mmcc-playground__intro {
    padding: 24px 26px;
    border: 4px solid #232D0B;
    border-radius: 16px 16px 0 0;
    background: #35420F;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.mmcc-playground__eyebrow {
    margin-bottom: 6px;
    color: #F0C83A;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}
.mmcc-playground__intro h2 {
    margin: 0 0 8px;
    color: #F0C83A;
    font: 900 clamp(28px, 5vw, 42px)/1 Georgia, serif;
}
.mmcc-playground__intro p { margin: 0; max-width: 780px; font-weight: 700; line-height: 1.45; }
.mmcc-playground__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 4px solid #232D0B;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #E9E0CD;
}
.mmcc-playground__group {
    padding: 18px;
    border: 3px solid #35420F;
    border-radius: 12px;
    background: #F6F0E3;
    box-shadow: 3px 4px 0 rgba(0,0,0,.11);
}
.mmcc-playground__group h3 { margin: 0 0 7px; color: #35420F; font: 900 22px/1.1 Georgia, serif; }
.mmcc-playground__group p { margin: 0 0 14px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.mmcc-playground__buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.mmcc-playground__buttons button {
    min-height: 42px;
    padding: 9px 13px;
    border: 3px solid #232D0B;
    border-radius: 8px;
    background: #fff;
    color: #232D0B;
    box-shadow: 2px 3px 0 rgba(0,0,0,.17);
    font: 800 13px/1.15 Arial, sans-serif;
    cursor: pointer;
}
.mmcc-playground__buttons button.is-primary { background: #F0C83A; }
.mmcc-playground__buttons button:active { transform: translateY(2px); box-shadow: 1px 1px 0 rgba(0,0,0,.17); }
.mmcc-playground__note { margin-top: 12px !important; color: #666158; font-size: 12px !important; }
.mmcc-playground__status { min-height: 20px; margin-top: 12px; color: #35420F; font-size: 13px; font-weight: 800; }
@media (max-width: 760px) {
    .mmcc-playground__grid { grid-template-columns: 1fr; padding: 10px; }
    .mmcc-playground__intro { padding: 20px 18px; }
    .mmcc-playground__buttons { flex-direction: column; }
    .mmcc-playground__buttons button { width: 100%; }
}

/* v1.21: speech timing and varied Catch-the-Major peeks. */
.mmcc-speech.is-visible {
    animation-duration: var(--mmcc-speech-duration, 4200ms);
}

.mmcc-peeker {
    --mmcc-peek-scale: 1;
    --mmcc-peek-rot: 0deg;
    --mmcc-peek-inset: 14px;
    --mmcc-peek-y: 45vh;
    left: auto;
    right: auto;
    top: auto;
    bottom: 0;
    transform-origin: center bottom;
}
.mmcc-peeker--bottom-left,
.mmcc-peeker--tiny-left,
.mmcc-peeker--low-center-left { left: max(var(--mmcc-peek-inset), env(safe-area-inset-left)); }
.mmcc-peeker--bottom-right,
.mmcc-peeker--tiny-right,
.mmcc-peeker--low-center-right { right: max(var(--mmcc-peek-inset), env(safe-area-inset-right)); }
.mmcc-peeker--bottom-left,
.mmcc-peeker--bottom-right,
.mmcc-peeker--tiny-left,
.mmcc-peeker--tiny-right,
.mmcc-peeker--low-center-left,
.mmcc-peeker--low-center-right {
    transform: translateY(112%) scale(var(--mmcc-peek-scale)) rotate(var(--mmcc-peek-rot));
}
.mmcc-peeker--bottom-left.is-visible,
.mmcc-peeker--bottom-right.is-visible,
.mmcc-peeker--tiny-left.is-visible,
.mmcc-peeker--tiny-right.is-visible,
.mmcc-peeker--low-center-left.is-visible,
.mmcc-peeker--low-center-right.is-visible {
    transform: translateY(42%) scale(var(--mmcc-peek-scale)) rotate(var(--mmcc-peek-rot));
}
.mmcc-peeker--bottom-left.is-caught,
.mmcc-peeker--bottom-right.is-caught,
.mmcc-peeker--tiny-left.is-caught,
.mmcc-peeker--tiny-right.is-caught,
.mmcc-peeker--low-center-left.is-caught,
.mmcc-peeker--low-center-right.is-caught {
    transform: translateY(18%) scale(calc(var(--mmcc-peek-scale) * 1.08)) rotate(var(--mmcc-peek-rot));
}
.mmcc-peeker--bottom-left.is-leaving,
.mmcc-peeker--bottom-right.is-leaving,
.mmcc-peeker--tiny-left.is-leaving,
.mmcc-peeker--tiny-right.is-leaving,
.mmcc-peeker--low-center-left.is-leaving,
.mmcc-peeker--low-center-right.is-leaving {
    transform: translateY(118%) scale(var(--mmcc-peek-scale)) rotate(var(--mmcc-peek-rot));
}

.mmcc-peeker--side-left,
.mmcc-peeker--side-right {
    top: var(--mmcc-peek-y);
    bottom: auto;
    transform-origin: center center;
}
.mmcc-peeker--side-left {
    left: 0;
    transform: translate(-105%, -50%) scale(var(--mmcc-peek-scale)) rotate(var(--mmcc-peek-rot));
}
.mmcc-peeker--side-right {
    right: 0;
    transform: translate(105%, -50%) scale(var(--mmcc-peek-scale)) rotate(var(--mmcc-peek-rot));
}
.mmcc-peeker--side-left.is-visible { transform: translate(-31%, -50%) scale(var(--mmcc-peek-scale)) rotate(var(--mmcc-peek-rot)); }
.mmcc-peeker--side-right.is-visible { transform: translate(31%, -50%) scale(var(--mmcc-peek-scale)) rotate(var(--mmcc-peek-rot)); }
.mmcc-peeker--side-left.is-caught { transform: translate(-10%, -50%) scale(calc(var(--mmcc-peek-scale) * 1.07)) rotate(var(--mmcc-peek-rot)); }
.mmcc-peeker--side-right.is-caught { transform: translate(10%, -50%) scale(calc(var(--mmcc-peek-scale) * 1.07)) rotate(var(--mmcc-peek-rot)); }
.mmcc-peeker--side-left.is-leaving { transform: translate(-110%, -50%) scale(.94) rotate(var(--mmcc-peek-rot)); }
.mmcc-peeker--side-right.is-leaving { transform: translate(110%, -50%) scale(.94) rotate(var(--mmcc-peek-rot)); }

/* A more comic-like speech balloon with a real outlined pointer. */
.mmcc-peeker__speech {
    left: 50%;
    right: auto;
    bottom: 84%;
    padding: 10px 14px;
    border: 3px solid #171717;
    border-radius: 28px 34px 30px 36px / 31px 27px 35px 29px;
    background: #fff;
    box-shadow: 4px 5px 0 rgba(0,0,0,.22);
    transform: translateX(-50%) rotate(-1.5deg);
}
.mmcc-peeker__speech::before,
.mmcc-peeker__speech::after {
    content:"";
    position:absolute;
    width:0;
    height:0;
    background:transparent;
    transform:none;
}
.mmcc-peeker__speech::before {
    left: 38px;
    bottom: -25px;
    border: 12px solid transparent;
    border-top-color: #171717;
}
.mmcc-peeker__speech::after {
    left: 41px;
    bottom: -18px;
    border: 9px solid transparent;
    border-top-color: #fff;
}
.mmcc-peeker--bottom-right .mmcc-peeker__speech,
.mmcc-peeker--tiny-right .mmcc-peeker__speech,
.mmcc-peeker--low-center-right .mmcc-peeker__speech {
    left:auto;
    right:0;
    transform:rotate(1.5deg);
}
.mmcc-peeker--bottom-right .mmcc-peeker__speech::before,
.mmcc-peeker--tiny-right .mmcc-peeker__speech::before,
.mmcc-peeker--low-center-right .mmcc-peeker__speech::before { left:auto; right:38px; }
.mmcc-peeker--bottom-right .mmcc-peeker__speech::after,
.mmcc-peeker--tiny-right .mmcc-peeker__speech::after,
.mmcc-peeker--low-center-right .mmcc-peeker__speech::after { left:auto; right:41px; }
.mmcc-peeker--bottom-left .mmcc-peeker__speech,
.mmcc-peeker--tiny-left .mmcc-peeker__speech,
.mmcc-peeker--low-center-left .mmcc-peeker__speech { left:0; transform:rotate(-1.5deg); }

.mmcc-peeker--side-left .mmcc-peeker__speech {
    left: 72%;
    right:auto;
    top: 8%;
    bottom:auto;
    transform: rotate(-1deg);
}
.mmcc-peeker--side-left .mmcc-peeker__speech::before {
    left:-25px; right:auto; top:55%; bottom:auto;
    border:12px solid transparent;
    border-right-color:#171717;
}
.mmcc-peeker--side-left .mmcc-peeker__speech::after {
    left:-18px; right:auto; top:calc(55% + 3px); bottom:auto;
    border:9px solid transparent;
    border-right-color:#fff;
}
.mmcc-peeker--side-right .mmcc-peeker__speech {
    left:auto;
    right:72%;
    top:8%;
    bottom:auto;
    transform:rotate(1deg);
}
.mmcc-peeker--side-right .mmcc-peeker__speech::before {
    left:auto; right:-25px; top:55%; bottom:auto;
    border:12px solid transparent;
    border-left-color:#171717;
}
.mmcc-peeker--side-right .mmcc-peeker__speech::after {
    left:auto; right:-18px; top:calc(55% + 3px); bottom:auto;
    border:9px solid transparent;
    border-left-color:#fff;
}

@media (max-width:680px) {
    .mmcc-peeker--side-left .mmcc-peeker__speech { left:68%; }
    .mmcc-peeker--side-right .mmcc-peeker__speech { right:68%; }
}

