:root { --robot-color: #25d366; --body-white: #f8fafc; --bg: #0f172a; } body { font-family: 'Tajawal', system-ui, -apple-system, sans-serif; background: var(--bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; } .sidebar-robot { display: flex; justify-content: center; padding: 20px; } .robot-card { position: relative; width: 480px; background: rgba(255, 255, 255, 0.03); border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); display: flex; justify-content: center; align-items: center; backdrop-filter: blur(15px); } #robot-canvas { height: 100%; width: 100%; cursor: pointer; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2)); } .robot-glow { position: absolute; width: 150px; height: 150px; background: radial-gradient(circle, var(--robot-color), transparent 70%); opacity: 0.1; pointer-events: none; z-index: 0; display: none; } .robot-card #robot-canvas { cursor: pointer; } .robot-canvas-fun { animation: robot-bounce 0.6s ease; } .robot-canvas-angry { filter: drop-shadow(0 10px 20px rgba(255, 70, 70, 0.35)); } .robot-canvas-collapse { animation: robot-collapse 1.2s ease forwards; } .robot-canvas-reappear { animation: robot-reappear 0.6s ease; } .robot-bubble { position: absolute; width: 10px; height: 10px; border-radius: 999px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(37, 211, 102, 0.2)); opacity: 0; pointer-events: none; animation: robot-bubble 0.9s ease forwards; z-index: 2; } .robot-bubble.robot-bubble-angry { background: radial-gradient(circle at 30% 30%, rgba(255, 210, 210, 0.9), rgba(255, 70, 70, 0.35)); } .robot-pop { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: 0.4px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.32); color: #eafff6; animation: robot-pop 0.9s ease forwards; pointer-events: none; z-index: 2; } @keyframes robot-bounce { 0% { transform: scale(1); } 35% { transform: scale(1.04); } 70% { transform: scale(0.98); } 100% { transform: scale(1); } } @keyframes robot-glow-pulse { 0% { opacity: 0.1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.1); } 100% { opacity: 0.1; transform: scale(1); } } @keyframes robot-collapse { 0% { opacity: 1; transform: scale(1); } 40% { opacity: 0.2; transform: scale(0.94); } 100% { opacity: 0; transform: scale(0.9); } } @keyframes robot-reappear { 0% { opacity: 0; transform: scale(0.92); } 100% { opacity: 1; transform: scale(1); } } @keyframes robot-bubble { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 40% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-16px) scale(1.1); } } @keyframes robot-pop { 0% { opacity: 0; transform: translate(-50%, 6px); } 30% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -12px); } }