* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #1d1d1f;
    overflow: hidden; /* Prevent scrolling */
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

/* Robot Face Container */
.robot-face {
    width: 180px;
    height: 180px;
    background-color: #1a1a1a;
    border-radius: 55px; /* Squircle-ish */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 
        0 0 0 10px rgba(255, 255, 255, 0.8), /* Inner white border/glow */
        0 20px 40px rgba(0, 0, 0, 0.05); /* Soft shadow */
    margin-bottom: 15px;
    overflow: hidden; /* Ensure tears/tongue stay within face */
    cursor: pointer; /* Interaction hint */
    transition: transform 0.1s; /* Subtle press effect */
    user-select: none; /* Prevent text selection on double click */
}

.robot-face:active {
    transform: scale(0.98); /* Press effect */
}

/* Eyes */
.eye {
    width: 24px;
    height: 50px;
    background-color: #b5dcc6; /* Mint green color */
    border-radius: 12px;
    /* No default animation - static state */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Smooth transitions for shape changes */
}

/* Default Animation Class (for explicit reset) */
.anim-default.eye {
    animation: lookAround 8s 1 ease-in-out !important;
}

/* Mouth (Hidden by default) */
.mouth {
    position: absolute;
    bottom: 40px;
    width: 20px;
    height: 10px;
    background-color: #b5dcc6;
    border-radius: 5px;
    opacity: 0;
    transition: all 0.3s;
}

/* Tears (Hidden by default) */
.tear {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #5ac8fa; /* Blue tear color */
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    opacity: 0;
}
.tear.left { left: 55px; top: 90px; }
.tear.right { right: 55px; top: 90px; }

/* Action Bar (Mini Neo-Brutalism / Pop) */
.action-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto; /* Ensure it doesn't stretch to left */
    bottom: auto;
    width: max-content; /* Shrink to fit content exactly */
    max-width: 100vw;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    display: flex;
    flex-direction: row; /* Horizontal */
    justify-content: flex-end; /* Force right alignment */
    align-items: center;
    padding: 0;
    gap: 12px;
    box-shadow: none;
    z-index: 100;
    margin: 0; /* Reset margins */
}

.action-bar:hover {
    transform: none;
    box-shadow: none;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px; /* Slightly smaller roundness */
    cursor: pointer;
    transition: all 0.1s ease-out; /* Snappy */
    color: #1d1d1f;
    border: 2px solid #1d1d1f; /* Slightly thinner border */
    box-shadow: 3px 3px 0 #1d1d1f; /* Smaller shadow */
}

.action-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #1d1d1f;
    background: #ffdb58; /* Pop Yellow */
}

.action-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #1d1d1f; /* Collapse shadow */
    background: #ffcc00;
}

.action-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
    stroke: #1d1d1f; /* Force black stroke */
}

/* Hide Divider */
.divider {
    display: none;
}

/* Muted State */
.action-btn.muted {
    background: #ff3b30; /* Pop Red */
    color: #ffffff;
    box-shadow: 3px 3px 0 #1d1d1f;
}

.action-btn.muted svg {
    stroke: #ffffff; /* White icon on red */
}

.action-btn.muted:hover {
    background: #ff2d20;
    color: #ffffff;
    box-shadow: 4px 4px 0 #1d1d1f;
}

.action-btn.muted:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #1d1d1f;
}

/* Modal */
.modal {
    display: flex; /* Always flex if present */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease-out; /* 200ms fade */
    pointer-events: none; /* Prevent clicks when fading in/out */
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fbfbfb;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 24px;
    padding: 30px;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    
    /* Custom Scrollbar for Webkit */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.modal.open .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 24px;
    color: #1d1d1f;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #86868b;
    padding: 5px;
}

.close-btn:hover {
    color: #1d1d1f;
}

/* Modal Control Panel */
.modal-control-group {
    margin-bottom: 25px;
}

.modal-control-group h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #86868b;
    margin-bottom: 12px;
}

.modal-btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.modal-btn-grid button {
    padding: 10px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #1d1d1f;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
}

.modal-btn-grid button:hover {
    background: #f5f5f7;
    border-color: #d2d2d7;
    transform: scale(1.02);
}

.modal-btn-grid button.active {
    background: #0071e3;
    color: white;
    border-color: #0071e3;
}

/* Mute Button (Inside Modal) */
.mute-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f7;
    border-radius: 12px;
    cursor: pointer;
}

.mute-toggle input {
    cursor: pointer;
}

.mute-toggle label {
    cursor: pointer;
    font-size: 14px;
    color: #1d1d1f;
    font-weight: 500;
}

/* Warning Toast - Neo-Brutalism Alert */
.warning-toast {
    position: fixed;
    top: 30px; /* Position at top */
    left: 50%;
    transform: translateX(-50%) translateY(-200%); /* Start hidden above */
    background: #ffdb58; /* Pop Yellow */
    color: #1d1d1f; /* Dark Text */
    padding: 12px 24px;
    border: 3px solid #1d1d1f; /* Thick Black Border */
    border-radius: 12px; /* Slight Roundness */
    box-shadow: 4px 4px 0 #1d1d1f; /* Hard Shadow */
    font-size: 16px;
    font-weight: 800; /* Bold */
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy Slide */
    pointer-events: none;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Slide in */
}

@keyframes lookAround {
    0%, 10% { transform: scaleY(1) translate(0, 0); }
    5% { transform: scaleY(0.1) translate(0, 0); } /* Blink */
    
    20%, 40% { transform: scaleY(1) translate(-15px, 0); } /* Look Left */
    
    50%, 70% { transform: scaleY(1) translate(15px, 0); } /* Look Right */
    55% { transform: scaleY(0.1) translate(15px, 0); } /* Blink while looking right */
    
    80%, 100% { transform: scaleY(1) translate(0, 0); } /* Back to Center */
    95% { transform: scaleY(0.1) translate(0, 0); } /* Final Blink */
}

/* Status Badge */
.status-badge {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    z-index: 10;
    text-transform: uppercase;
}


.status-dot {
    width: 8px;
    height: 8px;
    background-color: #8bbfa1;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(0.9); }
}

/* =========================================
   1. MISCHIEVOUS ANIMATIONS (调皮)
   ========================================= */

/* Wink & Tongue */
.anim-wink-tongue.left-eye { animation: wink-left 2s 1; }
.anim-wink-tongue.right-eye { animation: none; }
.anim-wink-tongue .mouth { 
    opacity: 1; 
    height: 20px; 
    border-radius: 5px 5px 15px 15px;
    animation: tongue-out 2s 1;
}
@keyframes wink-left {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}
@keyframes tongue-out {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Roll Eyes */
.anim-roll-eyes { animation: roll-eyes 2s linear 1 !important; }
@keyframes roll-eyes {
    0% { transform: translate(0, -10px); }
    25% { transform: translate(10px, 0); }
    50% { transform: translate(0, 10px); }
    75% { transform: translate(-10px, 0); }
    100% { transform: translate(0, -10px); }
}

/* Bounce */
.anim-bounce { animation: bounce-eyes 0.8s 3 alternate !important; }
@keyframes bounce-eyes {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* Shifty */
.anim-shifty { animation: shifty-eyes 2s 1 !important; }
@keyframes shifty-eyes {
    0%, 90% { transform: translateX(0); }
    10%, 40% { transform: translateX(-15px); }
    50%, 80% { transform: translateX(15px); }
}

/* Zigzag */
.anim-zigzag { animation: zigzag-eyes 2s 1 linear !important; }
@keyframes zigzag-eyes {
    0% { transform: translate(0,0); }
    25% { transform: translate(10px, -10px); }
    50% { transform: translate(-10px, 0); }
    75% { transform: translate(10px, 10px); }
    100% { transform: translate(0,0); }
}

/* Cross Eyed */
.anim-cross-eyed.left-eye { transform: translateX(10px) rotate(15deg); animation: none !important; }
.anim-cross-eyed.right-eye { transform: translateX(-10px) rotate(-15deg); animation: none !important; }

/* One Up One Down */
.anim-one-up.left-eye { animation: one-up 1s infinite alternate !important; }
.anim-one-up.right-eye { animation: one-down 1s infinite alternate !important; }
@keyframes one-up { to { transform: translateY(-10px); } }
@keyframes one-down { to { transform: translateY(10px); } }

/* Shake Head */
.anim-shake-head { animation: shake-head 1s infinite ease-in-out !important; }
@keyframes shake-head {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-5deg); }
    75% { transform: translateX(10px) rotate(5deg); }
}

/* Glitch */
.anim-glitch { animation: glitch 0.2s infinite !important; }
@keyframes glitch {
    0% { transform: translate(0,0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
    100% { transform: translate(0,0); }
}

/* =========================================
   2. LAUGH ANIMATIONS (笑)
   ========================================= */

/* Snicker */
.anim-snicker.eye {
    height: 30px;
    border-radius: 50% 50% 10px 10px;
    animation: snicker 0.2s infinite alternate !important;
}
@keyframes snicker {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

/* Chuckle */
.anim-chuckle.eye {
    height: 25px;
    border-radius: 50%;
    animation: chuckle 0.3s infinite alternate !important;
}
@keyframes chuckle {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* LOL */
.anim-lol.eye {
    height: 10px;
    width: 30px;
    border-radius: 5px;
    transform: rotate(-15deg);
    animation: lol 0.1s infinite !important;
}
.anim-lol.right-eye { transform: rotate(15deg); }
@keyframes lol {
    0% { margin-top: 0; }
    100% { margin-top: 5px; }
}

/* ROFL */
.anim-rofl.eye {
    animation: rofl 1s infinite linear !important;
}
@keyframes rofl {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-20deg); }
    100% { transform: rotate(0deg); }
}

/* Squint Vibrate */
.anim-squint-vibrate.eye {
    height: 5px;
    animation: vibrate 0.1s infinite !important;
}
@keyframes vibrate {
    0% { transform: translate(1px, 1px); }
    100% { transform: translate(-1px, -1px); }
}

/* Happy Dance */
.anim-happy-dance.eye {
    animation: happy-dance 0.5s infinite alternate !important;
}
@keyframes happy-dance {
    0% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(-10px) scaleY(0.8); }
    100% { transform: translateY(0) scaleY(1); }
}

/* Tears of Joy */
.anim-tears-joy.eye {
    height: 15px;
    width: 30px;
    border-radius: 50% 50% 0 0; /* Arc up */
    transform: rotate(0);
}
.anim-tears-joy .tear {
    opacity: 1;
    animation: tear-drop-fast 0.5s infinite;
}
@keyframes tear-drop-fast {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(40px) scale(1); opacity: 0; }
}

/* Wide Open Surprise Laugh */
.anim-wide-open.eye {
    height: 60px;
    width: 30px;
    border-radius: 20px;
    animation: pulse-laugh 0.5s infinite alternate !important;
}
@keyframes pulse-laugh {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Wobble Jelly */
.anim-wobble.eye {
    animation: wobble 0.5s infinite ease-in-out !important;
}
@keyframes wobble {
    0%, 100% { border-radius: 12px; transform: scale(1); }
    25% { border-radius: 50% 12px 12px 50%; transform: scale(1.1, 0.9); }
    75% { border-radius: 12px 50% 50% 12px; transform: scale(0.9, 1.1); }
}

/* Breathless */
.anim-breathless.eye {
    height: 20px;
    width: 24px;
    animation: breathless 2s infinite ease-in-out !important;
}
@keyframes breathless {
    0%, 100% { height: 20px; transform: translateY(0); }
    50% { height: 40px; transform: translateY(-5px); }
}

/* =========================================
   3. CRY ANIMATIONS (哭)
   ========================================= */

/* Whimper */
.anim-whimper.left-eye { transform: rotate(15deg); height: 30px; }
.anim-whimper.right-eye { transform: rotate(-15deg); height: 30px; }
.anim-whimper.eye { animation: whimper 1s infinite alternate !important; }
@keyframes whimper {
    0% { transform: translateY(0) rotate(15deg); }
    100% { transform: translateY(2px) rotate(15deg); }
}
.anim-whimper.right-eye { animation-name: whimper-right !important; }
@keyframes whimper-right {
    0% { transform: translateY(0) rotate(-15deg); }
    100% { transform: translateY(2px) rotate(-15deg); }
}

/* Sob */
.anim-sob.eye {
    height: 15px;
    width: 30px;
    animation: sob 1s infinite cubic-bezier(0.5, 0, 0.5, 1) !important;
}
@keyframes sob {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.1) scaleY(0.8); }
}

/* Wail */
.anim-wail.eye {
    height: 40px;
    animation: wail 0.1s infinite !important;
    background-color: #5ac8fa; /* Blue eyes */
}
.anim-wail .tear { opacity: 1; animation: tear-stream 0.3s infinite linear; }
@keyframes wail {
    0% { transform: translate(1px, 1px); }
    100% { transform: translate(-1px, -1px); }
}
@keyframes tear-stream {
    to { transform: translateY(60px) rotate(-45deg); opacity: 0; }
}

/* Tear Drop */
.anim-tear-drop.eye { height: 20px; width: 30px; border-radius: 10px 10px 50% 50%; }
.anim-tear-drop .tear.left { opacity: 1; animation: tear-drop-slow 2s infinite; }
@keyframes tear-drop-slow {
    0% { transform: translateY(0) scale(0.5); opacity: 1; }
    80% { transform: translateY(50px) scale(1); opacity: 0; }
    100% { opacity: 0; }
}

/* Fountain */
.anim-fountain.eye { height: 5px; width: 30px; }
.anim-fountain .tear { 
    opacity: 1; 
    box-shadow: 10px 0 0 #5ac8fa, -10px 0 0 #5ac8fa;
    animation: fountain 0.5s infinite linear;
}
@keyframes fountain {
    0% { transform: translateY(0) translateX(0) scale(0.5); }
    100% { transform: translateY(-30px) translateX(-20px) scale(1.5); opacity: 0; }
}
.anim-fountain .tear.right { animation-name: fountain-right; }
@keyframes fountain-right {
    0% { transform: translateY(0) translateX(0) scale(0.5); }
    100% { transform: translateY(-30px) translateX(20px) scale(1.5); opacity: 0; }
}

/* Tremble */
.anim-tremble.eye {
    height: 40px;
    animation: tremble 4s infinite !important;
}
@keyframes tremble {
    0%, 90% { transform: scale(1); }
    92%, 98% { transform: scale(0.95); }
    94%, 96% { transform: translate(1px, 0); }
}

/* Sad Blink */
.anim-sad-blink.eye {
    animation: sad-blink 3s infinite !important;
    height: 30px;
}
@keyframes sad-blink {
    0%, 60%, 100% { transform: scaleY(1); }
    70% { transform: scaleY(0.1); }
    80% { transform: scaleY(1); }
}

/* Floods */
.anim-floods.eye {
    height: 50px;
    background-color: #0071e3;
    border-radius: 50% 50% 40% 40%;
    animation: floods 2s infinite ease-in-out !important;
}
.anim-floods .tear { opacity: 0; } /* Tears are inside eyes */
@keyframes floods {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05) translateY(2px); }
}

/* Despair */
.anim-despair.eye {
    animation: despair 4s infinite !important;
    opacity: 0.5;
}
@keyframes despair {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(0.8); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Tantrum */
.anim-tantrum.eye {
    background-color: #ff3b30; /* Red angry/cry */
    animation: tantrum 0.2s infinite !important;
}
@keyframes tantrum {
    0% { transform: translate(0,0) rotate(0); }
    25% { transform: translate(2px, 2px) rotate(5deg); }
    50% { transform: translate(-2px, -2px) rotate(-5deg); }
    75% { transform: translate(-2px, 2px) rotate(5deg); }
    100% { transform: translate(0,0); }
}

/* Mouse Tracking State - Smoother for tracking */
.eye.tracking {
    transition: transform 0.1s ease-out; /* Fast response */
}

/* Typography */
h1 {
    font-size: 42px;
    font-weight: 700;
    margin-top: 10px;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.name-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

p {
    font-size: 18px;
    color: #6e6e73;
    line-height: 1.5;
    max-width: 400px;
    font-weight: 400;
}

.wechat-id {
    margin-top: 0;
}

.text-group {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Closer spacing for text */
    align-items: center;
}