﻿        /* --- Miss Minutes (Notebook themed) --- */
        @keyframes mm-float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-4px);
            }
        }

        @keyframes mm-blink {

            0%,
            42%,
            46%,
            100% {
                ry: 15;
            }

            44% {
                ry: 1;
            }
        }

        @keyframes mm-pop-in {
            0% {
                transform: translateX(-50%) scale(0.3);
                opacity: 0;
            }

            50% {
                transform: translateX(-50%) scale(1.15);
                opacity: 1;
            }

            70% {
                transform: translateX(-50%) scale(0.95);
            }

            100% {
                transform: translateX(-50%) scale(1);
            }
        }

        @keyframes mm-jump {

            0%,
            100% {
                transform: translateY(0) rotate(0);
            }

            25% {
                transform: translateY(-12px) rotate(-3deg);
            }

            50% {
                transform: translateY(0);
            }

            75% {
                transform: translateY(-5px) rotate(2deg);
            }
        }

        @keyframes mm-wiggle {

            0%,
            100% {
                transform: rotate(0);
            }

            25% {
                transform: rotate(-4deg);
            }

            50% {
                transform: rotate(3deg);
            }

            75% {
                transform: rotate(-2deg);
            }
        }

        @keyframes mm-bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            40% {
                transform: translateY(-8px);
            }

            60% {
                transform: translateY(0);
            }

            80% {
                transform: translateY(-4px);
            }
        }

        @keyframes mm-wave {

            0%,
            100% {
                transform: rotate(0);
            }

            25% {
                transform: rotate(5deg);
            }

            50% {
                transform: rotate(-4deg);
            }

            75% {
                transform: rotate(3deg);
            }
        }

        @keyframes mm-glow-pulse {

            0%,
            100% {
                filter: drop-shadow(0 0 20px rgba(217, 48, 37, 0.3));
            }

            50% {
                filter: drop-shadow(0 0 35px rgba(217, 48, 37, 0.6));
            }
        }

        @keyframes mm-idle-drift {

            0%,
            100% {
                transform: translateY(0) rotate(0);
            }

            25% {
                transform: translateY(-2px) rotate(0.5deg);
            }

            50% {
                transform: translateY(-4px) rotate(-0.5deg);
            }

            75% {
                transform: translateY(-1px) rotate(0.3deg);
            }
        }

        @keyframes mm-bubble-pop {
            0% {
                transform: scale(0.5);
                opacity: 0;
            }

            65% {
                transform: scale(1.05);
                opacity: 1;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        #mm-global {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9000;
            transition: left 0.6s ease, top 0.6s ease, bottom 0.6s ease, right 0.6s ease, transform 0.4s ease, opacity 0.4s ease;
            will-change: transform, opacity;
        }

        #mm-global.mm-pop-in {
            animation: mm-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        .mm-global-clock {
            width: 90px;
            height: 90px;
            cursor: pointer;
            animation: mm-idle-drift 6s ease-in-out infinite;
            filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
            transition: filter 0.3s, transform 0.5s ease, width 0.4s ease, height 0.4s ease;
            will-change: transform;
        }

        .mm-global-clock:hover {
            filter: drop-shadow(0 6px 20px rgba(217, 48, 37, 0.25));
            transform: scale(1.08);
        }

        .mm-global-clock.mm-emotion-jump {
            animation: mm-jump 0.8s ease !important;
        }

        .mm-global-clock.mm-emotion-wiggle {
            animation: mm-wiggle 0.7s ease !important;
        }

        .mm-global-clock.mm-emotion-bounce {
            animation: mm-bounce 0.7s ease !important;
        }

        .mm-global-clock.mm-emotion-wave {
            animation: mm-wave 0.9s ease !important;
        }

        .mm-global-clock.mm-emotion-glow {
            animation: mm-glow-pulse 1.5s ease 2 !important;
        }

        .mm-global-clock.mm-emotion-idle {
            animation: mm-idle-drift 6s ease-in-out infinite !important;
        }

        .mm-global-bubble {
            background: white;
            border: 2px solid #2c2c2c;
            border-radius: 12px 12px 0 12px;
            padding: 10px 14px;
            font-family: 'Patrick Hand', cursive;
            font-size: 14px;
            color: #2c2c2c;
            max-width: 260px;
            min-width: 120px;
            box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08);
            line-height: 1.4;
            word-wrap: break-word;
            position: absolute;
            bottom: calc(100% + 12px);
            right: 0;
            will-change: transform, opacity;
        }

        .mm-global-bubble.mm-bubble-animate {
            animation: mm-bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        .mm-global-bubble::after {
            content: '';
            position: absolute;
            bottom: -8px;
            right: 16px;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 8px solid white;
        }

        .mm-global-bubble::before {
            content: '';
            position: absolute;
            bottom: -11px;
            right: 14px;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 10px solid #2c2c2c;
        }

        /* Bubble below MM (when near top of screen) */
        #mm-global.mm-bubble-below .mm-global-bubble {
            bottom: auto;
            top: calc(100% + 12px);
        }

        #mm-global.mm-bubble-below .mm-global-bubble::after {
            bottom: auto;
            top: -8px;
            border-top: none;
            border-bottom: 8px solid white;
        }

        #mm-global.mm-bubble-below .mm-global-bubble::before {
            bottom: auto;
            top: -11px;
            border-top: none;
            border-bottom: 10px solid #2c2c2c;
        }

        /* Sleeping/corner state */
        #mm-global.mm-sleeping {
            opacity: 0.7;
        }

        #mm-global.mm-sleeping .mm-global-clock {
            width: 55px;
            height: 55px;
            animation: mm-idle-drift 8s ease-in-out infinite;
            filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
        }

        #mm-global.mm-sleeping .mm-global-clock:hover {
            opacity: 1;
            transform: scale(1.15);
            filter: drop-shadow(0 4px 12px rgba(217, 48, 37, 0.2));
        }

        .mm-option-btn {
            display: inline-block;
            padding: 6px 16px;
            background: white;
            color: #2c2c2c;
            border: 1.5px solid #c0b8a8;
            font-family: 'Courier Prime', monospace;
            font-size: 11px;
            font-weight: bold;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.15s;
        }

        .mm-option-btn:hover {
            background: #f4f1ea;
            border-color: #2c2c2c;
        }

        .mm-theme-toggle {
            display: block;
            margin-top: 8px;
            padding: 4px 10px;
            background: #2c2c2c;
            color: #f4f1ea;
            border: 1px solid #1a1a1a;
            font-family: 'Courier Prime', monospace;
            font-size: 10px;
            font-weight: bold;
            letter-spacing: 0.05em;
            cursor: pointer;
            text-transform: uppercase;
            transition: all 0.2s;
        }

        .mm-theme-toggle:hover {
            background: #d93025;
            border-color: #a93226;
        }

        #mm-global.mm-dragging .mm-global-clock {
            animation: none !important;
            cursor: grabbing;
        }

        @media (max-width:640px) {
            #mm-global {
                bottom: 100px; /* above mobile dock */
                right: auto;
                left: 50%;
                transform: translateX(-50%);
            }

            .mm-global-clock {
                width: 70px;
                height: 70px;
                /* Simpler animation — no rotate, avoids subpixel rasterization cost */
                animation: mm-float 5s ease-in-out infinite;
            }

            .mm-global-bubble {
                max-width: 220px;
                font-size: 13px;
                padding: 8px 10px;
                right: auto;
                left: 50%;
                transform: translateX(-50%);
            }

            .mm-global-bubble::after {
                right: auto;
                left: 50%;
                margin-left: -8px;
            }

            .mm-global-bubble::before {
                right: auto;
                left: 50%;
                margin-left: -10px;
            }

            #mm-global.mm-sleeping .mm-global-clock {
                width: 45px;
                height: 45px;
            }
        }

        @media (min-width:641px) and (max-width:1024px) {
            #mm-global {
                bottom: 80px;
                left: 50%;
                transform: translateX(-50%);
                right: auto;
            }

            .mm-global-clock {
                /* Simpler animation on tablet — no rotate */
                animation: mm-float 5s ease-in-out infinite;
            }

            .mm-global-bubble {
                right: auto;
                left: 50%;
                transform: translateX(-50%);
                max-width: 280px;
            }

            .mm-global-bubble::after {
                right: auto;
                left: 50%;
                margin-left: -8px;
            }

            .mm-global-bubble::before {
                right: auto;
                left: 50%;
                margin-left: -10px;
            }

            #mm-global.mm-sleeping .mm-global-clock {
                width: 50px;
                height: 50px;
            }
        }
